GetStorageLensConfiguration
Note
This operation is not supported by directory buckets.
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.
Note
To use this action, you must have permission to perform the
s3:GetStorageLensConfiguration action. For more information, see Setting permissions to use Amazon S3 Storage Lens in the
Amazon S3 User Guide.
Request Syntax
GET /v20180820/storagelens/storagelensid HTTP/1.1
Host: s3-control.amazonaws.com
x-amz-account-id: AccountId
URI Request Parameters
The request uses the following URI parameters.
- storagelensid
-
The ID of the Amazon S3 Storage Lens configuration.
Length Constraints: Minimum length of 1. Maximum length of 64.
Pattern:
[a-zA-Z0-9\-\_\.]+Required: Yes
- x-amz-account-id
-
The account ID of the requester.
Length Constraints: Maximum length of 64.
Pattern:
^\d{12}$Required: Yes
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
<?xml version="1.0" encoding="UTF-8"?>
<StorageLensConfiguration>
<Id>string</Id>
<AccountLevel>
<ActivityMetrics>
<IsEnabled>boolean</IsEnabled>
</ActivityMetrics>
<AdvancedCostOptimizationMetrics>
<IsEnabled>boolean</IsEnabled>
</AdvancedCostOptimizationMetrics>
<AdvancedDataProtectionMetrics>
<IsEnabled>boolean</IsEnabled>
</AdvancedDataProtectionMetrics>
<AdvancedPerformanceMetrics>
<IsEnabled>boolean</IsEnabled>
</AdvancedPerformanceMetrics>
<BucketLevel>
<ActivityMetrics>
<IsEnabled>boolean</IsEnabled>
</ActivityMetrics>
<AdvancedCostOptimizationMetrics>
<IsEnabled>boolean</IsEnabled>
</AdvancedCostOptimizationMetrics>
<AdvancedDataProtectionMetrics>
<IsEnabled>boolean</IsEnabled>
</AdvancedDataProtectionMetrics>
<AdvancedPerformanceMetrics>
<IsEnabled>boolean</IsEnabled>
</AdvancedPerformanceMetrics>
<DetailedStatusCodesMetrics>
<IsEnabled>boolean</IsEnabled>
</DetailedStatusCodesMetrics>
<PrefixLevel>
<StorageMetrics>
<IsEnabled>boolean</IsEnabled>
<SelectionCriteria>
<Delimiter>string</Delimiter>
<MaxDepth>integer</MaxDepth>
<MinStorageBytesPercentage>double</MinStorageBytesPercentage>
</SelectionCriteria>
</StorageMetrics>
</PrefixLevel>
</BucketLevel>
<DetailedStatusCodesMetrics>
<IsEnabled>boolean</IsEnabled>
</DetailedStatusCodesMetrics>
<StorageLensGroupLevel>
<SelectionCriteria>
<Exclude>
<Arn>string</Arn>
</Exclude>
<Include>
<Arn>string</Arn>
</Include>
</SelectionCriteria>
</StorageLensGroupLevel>
</AccountLevel>
<Include>
<Buckets>
<Arn>string</Arn>
</Buckets>
<Regions>
<Region>string</Region>
</Regions>
</Include>
<Exclude>
<Buckets>
<Arn>string</Arn>
</Buckets>
<Regions>
<Region>string</Region>
</Regions>
</Exclude>
<DataExport>
<CloudWatchMetrics>
<IsEnabled>boolean</IsEnabled>
</CloudWatchMetrics>
<S3BucketDestination>
<AccountId>string</AccountId>
<Arn>string</Arn>
<Encryption>
<SSE-KMS>
<KeyId>string</KeyId>
</SSE-KMS>
<SSE-S3>
</SSE-S3>
</Encryption>
<Format>string</Format>
<OutputSchemaVersion>string</OutputSchemaVersion>
<Prefix>string</Prefix>
</S3BucketDestination>
<StorageLensTableDestination>
<