getStorageLensConfiguration method
Gets the Amazon S3 Storage Lens configuration. For more information, see
Assessing
your storage activity and usage with Amazon S3 Storage Lens in the
Amazon S3 User Guide. For a complete list of S3 Storage Lens
metrics, see S3
Storage Lens metrics glossary in the Amazon S3 User Guide.
Parameter accountId :
The account ID of the requester.
Parameter configId :
The ID of the Amazon S3 Storage Lens configuration.
Implementation
Future<GetStorageLensConfigurationResult> getStorageLensConfiguration({
required String accountId,
required String configId,
}) async {
final headers = <String, String>{
'x-amz-account-id': accountId.toString(),
};
final $result = await _protocol.sendRaw(
method: 'GET',
requestUri: '/v20180820/storagelens/${Uri.encodeComponent(configId)}',
headers: headers,
exceptionFnMap: _exceptionFns,
);
final $elem = await _s.xmlFromResponse($result);
return GetStorageLensConfigurationResult(
storageLensConfiguration: StorageLensConfiguration.fromXml($elem),
);
}