deleteStorageLensConfiguration method

Future<void> deleteStorageLensConfiguration({
  1. required String accountId,
  2. required String configId,
})
Deletes the Amazon S3 Storage Lens configuration. For more information about S3 Storage Lens, see Assessing your storage activity and usage with Amazon S3 Storage Lens in the Amazon S3 User Guide.

Parameter accountId : The account ID of the requester.

Parameter configId : The ID of the S3 Storage Lens configuration.

Implementation

Future<void> deleteStorageLensConfiguration({
  required String accountId,
  required String configId,
}) async {
  final headers = <String, String>{
    'x-amz-account-id': accountId.toString(),
  };
  await _protocol.send(
    method: 'DELETE',
    requestUri: '/v20180820/storagelens/${Uri.encodeComponent(configId)}',
    headers: headers,
    endpoint: _resolveEndpoint(
      requiresAccountId: true,
      accountId: accountId,
    ),
    hostPrefix: '{AccountId}.',
    exceptionFnMap: _exceptionFns,
  );
}