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 |
Gets a metrics configuration (specified by the metrics configuration ID) from the bucket. Note that this doesn't include the daily storage metrics.
To use this operation, you must have permissions to perform the
s3:GetMetricsConfiguration
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.
For information about CloudWatch request metrics for Amazon S3, see Monitoring Metrics with Amazon CloudWatch.
The following operations are related to GetBucketMetricsConfiguration
:
Synopsis
- data GetBucketMetricsConfiguration = GetBucketMetricsConfiguration' {
- expectedBucketOwner :: Maybe Text
- bucket :: BucketName
- id :: Text
- newGetBucketMetricsConfiguration :: BucketName -> Text -> GetBucketMetricsConfiguration
- getBucketMetricsConfiguration_expectedBucketOwner :: Lens' GetBucketMetricsConfiguration (Maybe Text)
- getBucketMetricsConfiguration_bucket :: Lens' GetBucketMetricsConfiguration BucketName
- getBucketMetricsConfiguration_id :: Lens' GetBucketMetricsConfiguration Text
- data GetBucketMetricsConfigurationResponse = GetBucketMetricsConfigurationResponse' {}
- newGetBucketMetricsConfigurationResponse :: Int -> GetBucketMetricsConfigurationResponse
- getBucketMetricsConfigurationResponse_metricsConfiguration :: Lens' GetBucketMetricsConfigurationResponse (Maybe MetricsConfiguration)
- getBucketMetricsConfigurationResponse_httpStatus :: Lens' GetBucketMetricsConfigurationResponse Int
Creating a Request
data GetBucketMetricsConfiguration Source #
See: newGetBucketMetricsConfiguration
smart constructor.
GetBucketMetricsConfiguration' | |
|
Instances
newGetBucketMetricsConfiguration Source #
Create a value of GetBucketMetricsConfiguration
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:GetBucketMetricsConfiguration'
, getBucketMetricsConfiguration_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:GetBucketMetricsConfiguration'
, getBucketMetricsConfiguration_bucket
- The name of the bucket containing the metrics configuration to retrieve.
$sel:id:GetBucketMetricsConfiguration'
, getBucketMetricsConfiguration_id
- The ID used to identify the metrics configuration.
Request Lenses
getBucketMetricsConfiguration_expectedBucketOwner :: Lens' GetBucketMetricsConfiguration (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.
getBucketMetricsConfiguration_bucket :: Lens' GetBucketMetricsConfiguration BucketName Source #
The name of the bucket containing the metrics configuration to retrieve.
getBucketMetricsConfiguration_id :: Lens' GetBucketMetricsConfiguration Text Source #
The ID used to identify the metrics configuration.
Destructuring the Response
data GetBucketMetricsConfigurationResponse Source #
See: newGetBucketMetricsConfigurationResponse
smart constructor.
GetBucketMetricsConfigurationResponse' | |
|
Instances
newGetBucketMetricsConfigurationResponse Source #
Create a value of GetBucketMetricsConfigurationResponse
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:metricsConfiguration:GetBucketMetricsConfigurationResponse'
, getBucketMetricsConfigurationResponse_metricsConfiguration
- Specifies the metrics configuration.
$sel:httpStatus:GetBucketMetricsConfigurationResponse'
, getBucketMetricsConfigurationResponse_httpStatus
- The response's http status code.
Response Lenses
getBucketMetricsConfigurationResponse_metricsConfiguration :: Lens' GetBucketMetricsConfigurationResponse (Maybe MetricsConfiguration) Source #
Specifies the metrics configuration.
getBucketMetricsConfigurationResponse_httpStatus :: Lens' GetBucketMetricsConfigurationResponse Int Source #
The response's http status code.