putStorageLensConfiguration method
Puts an Amazon S3 Storage Lens configuration. For more information about
S3 Storage Lens, see Working
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 S3 Storage Lens configuration.
Parameter storageLensConfiguration :
The S3 Storage Lens configuration.
Parameter tags :
The tag set of the S3 Storage Lens configuration.
Implementation
Future<void> putStorageLensConfiguration({
required String accountId,
required String configId,
required StorageLensConfiguration storageLensConfiguration,
List<StorageLensTag>? tags,
}) async {
final headers = <String, String>{
'x-amz-account-id': accountId.toString(),
};
await _protocol.send(
method: 'PUT',
requestUri: '/v20180820/storagelens/${Uri.encodeComponent(configId)}',
headers: headers,
payload: PutStorageLensConfigurationRequest(
accountId: accountId,
configId: configId,
storageLensConfiguration: storageLensConfiguration,
tags: tags)
.toXml('PutStorageLensConfigurationRequest'),
endpoint: _resolveEndpoint(
requiresAccountId: true,
accountId: accountId,
),
hostPrefix: '{AccountId}.',
exceptionFnMap: _exceptionFns,
);
}