Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
This implementation of the GET action returns an analytics configuration (identified by the analytics configuration ID) from the bucket.
To use this operation, you must have permissions to perform the
s3:GetAnalyticsConfiguration
action. The bucket owner has this
permission by default. The bucket owner can grant this permission to
others. For more information about permissions, see
Permissions Related to Bucket Subresource Operations
and
Managing Access Permissions to Your Amazon S3 Resources
in the Amazon S3 User Guide.
For information about Amazon S3 analytics feature, see Amazon S3 Analytics – Storage Class Analysis in the Amazon S3 User Guide.
Related Resources
Synopsis
- data GetBucketAnalyticsConfiguration = GetBucketAnalyticsConfiguration' {
- expectedBucketOwner :: Maybe Text
- bucket :: BucketName
- id :: Text
- newGetBucketAnalyticsConfiguration :: BucketName -> Text -> GetBucketAnalyticsConfiguration
- getBucketAnalyticsConfiguration_expectedBucketOwner :: Lens' GetBucketAnalyticsConfiguration (Maybe Text)
- getBucketAnalyticsConfiguration_bucket :: Lens' GetBucketAnalyticsConfiguration BucketName
- getBucketAnalyticsConfiguration_id :: Lens' GetBucketAnalyticsConfiguration Text
- data GetBucketAnalyticsConfigurationResponse = GetBucketAnalyticsConfigurationResponse' {}
- newGetBucketAnalyticsConfigurationResponse :: Int -> GetBucketAnalyticsConfigurationResponse
- getBucketAnalyticsConfigurationResponse_analyticsConfiguration :: Lens' GetBucketAnalyticsConfigurationResponse (Maybe AnalyticsConfiguration)
- getBucketAnalyticsConfigurationResponse_httpStatus :: Lens' GetBucketAnalyticsConfigurationResponse Int
Creating a Request
data GetBucketAnalyticsConfiguration Source #
See: newGetBucketAnalyticsConfiguration
smart constructor.
GetBucketAnalyticsConfiguration' | |
|
Instances
newGetBucketAnalyticsConfiguration Source #
Create a value of GetBucketAnalyticsConfiguration
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:expectedBucketOwner:GetBucketAnalyticsConfiguration'
, getBucketAnalyticsConfiguration_expectedBucketOwner
- The account ID of the expected bucket owner. If the bucket is owned by a
different account, the request will fail with an HTTP
403 (Access Denied)
error.
$sel:bucket:GetBucketAnalyticsConfiguration'
, getBucketAnalyticsConfiguration_bucket
- The name of the bucket from which an analytics configuration is
retrieved.
$sel:id:GetBucketAnalyticsConfiguration'
, getBucketAnalyticsConfiguration_id
- The ID that identifies the analytics configuration.
Request Lenses
getBucketAnalyticsConfiguration_expectedBucketOwner :: Lens' GetBucketAnalyticsConfiguration (Maybe Text) Source #
The account ID of the expected bucket owner. If the bucket is owned by a
different account, the request will fail with an HTTP
403 (Access Denied)
error.
getBucketAnalyticsConfiguration_bucket :: Lens' GetBucketAnalyticsConfiguration BucketName Source #
The name of the bucket from which an analytics configuration is retrieved.
getBucketAnalyticsConfiguration_id :: Lens' GetBucketAnalyticsConfiguration Text Source #
The ID that identifies the analytics configuration.
Destructuring the Response
data GetBucketAnalyticsConfigurationResponse Source #
See: newGetBucketAnalyticsConfigurationResponse
smart constructor.
GetBucketAnalyticsConfigurationResponse' | |
|
Instances
newGetBucketAnalyticsConfigurationResponse Source #
Create a value of GetBucketAnalyticsConfigurationResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:analyticsConfiguration:GetBucketAnalyticsConfigurationResponse'
, getBucketAnalyticsConfigurationResponse_analyticsConfiguration
- The configuration and any analyses for the analytics filter.
$sel:httpStatus:GetBucketAnalyticsConfigurationResponse'
, getBucketAnalyticsConfigurationResponse_httpStatus
- The response's http status code.
Response Lenses
getBucketAnalyticsConfigurationResponse_analyticsConfiguration :: Lens' GetBucketAnalyticsConfigurationResponse (Maybe AnalyticsConfiguration) Source #
The configuration and any analyses for the analytics filter.
getBucketAnalyticsConfigurationResponse_httpStatus :: Lens' GetBucketAnalyticsConfigurationResponse Int Source #
The response's http status code.