describeLifecycleConfiguration method
Future<LifecycleConfigurationDescription>
describeLifecycleConfiguration({
- required String fileSystemId,
Returns the current LifecycleConfiguration
object for the
specified Amazon EFS file system. EFS lifecycle management uses the
LifecycleConfiguration
object to identify which files to move
to the EFS Infrequent Access (IA) storage class. For a file system without
a LifecycleConfiguration
object, the call returns an empty
array in the response.
This operation requires permissions for the
elasticfilesystem:DescribeLifecycleConfiguration
operation.
May throw InternalServerError. May throw BadRequest. May throw FileSystemNotFound.
Parameter fileSystemId
:
The ID of the file system whose LifecycleConfiguration
object
you want to retrieve (String).
Implementation
Future<LifecycleConfigurationDescription> describeLifecycleConfiguration({
required String fileSystemId,
}) async {
ArgumentError.checkNotNull(fileSystemId, 'fileSystemId');
_s.validateStringLength(
'fileSystemId',
fileSystemId,
0,
128,
isRequired: true,
);
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri:
'/2015-02-01/file-systems/${Uri.encodeComponent(fileSystemId)}/lifecycle-configuration',
exceptionFnMap: _exceptionFns,
);
return LifecycleConfigurationDescription.fromJson(response);
}