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 |
Amazonka.S3.DeleteBucketMetricsConfiguration
Description
Deletes a metrics configuration for the Amazon CloudWatch request metrics (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:PutMetricsConfiguration
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
DeleteBucketMetricsConfiguration
:
Synopsis
- data DeleteBucketMetricsConfiguration = DeleteBucketMetricsConfiguration' {
- expectedBucketOwner :: Maybe Text
- bucket :: BucketName
- id :: Text
- newDeleteBucketMetricsConfiguration :: BucketName -> Text -> DeleteBucketMetricsConfiguration
- deleteBucketMetricsConfiguration_expectedBucketOwner :: Lens' DeleteBucketMetricsConfiguration (Maybe Text)
- deleteBucketMetricsConfiguration_bucket :: Lens' DeleteBucketMetricsConfiguration BucketName
- deleteBucketMetricsConfiguration_id :: Lens' DeleteBucketMetricsConfiguration Text
- data DeleteBucketMetricsConfigurationResponse = DeleteBucketMetricsConfigurationResponse' {
- newDeleteBucketMetricsConfigurationResponse :: DeleteBucketMetricsConfigurationResponse
Creating a Request
data DeleteBucketMetricsConfiguration Source #
See: newDeleteBucketMetricsConfiguration
smart constructor.
Constructors
DeleteBucketMetricsConfiguration' | |
Fields
|
Instances
newDeleteBucketMetricsConfiguration Source #
Arguments
:: BucketName | |
-> Text | |
-> DeleteBucketMetricsConfiguration |
Create a value of DeleteBucketMetricsConfiguration
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:DeleteBucketMetricsConfiguration'
, deleteBucketMetricsConfiguration_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:DeleteBucketMetricsConfiguration'
, deleteBucketMetricsConfiguration_bucket
- The name of the bucket containing the metrics configuration to delete.
$sel:id:DeleteBucketMetricsConfiguration'
, deleteBucketMetricsConfiguration_id
- The ID used to identify the metrics configuration.
Request Lenses
deleteBucketMetricsConfiguration_expectedBucketOwner :: Lens' DeleteBucketMetricsConfiguration (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.
deleteBucketMetricsConfiguration_bucket :: Lens' DeleteBucketMetricsConfiguration BucketName Source #
The name of the bucket containing the metrics configuration to delete.
deleteBucketMetricsConfiguration_id :: Lens' DeleteBucketMetricsConfiguration Text Source #
The ID used to identify the metrics configuration.
Destructuring the Response
data DeleteBucketMetricsConfigurationResponse Source #
See: newDeleteBucketMetricsConfigurationResponse
smart constructor.
Constructors
DeleteBucketMetricsConfigurationResponse' | |
Instances
newDeleteBucketMetricsConfigurationResponse :: DeleteBucketMetricsConfigurationResponse Source #
Create a value of DeleteBucketMetricsConfigurationResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.