libZSservicesZSamazonka-s3ZSamazonka-s3
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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

Creating a Request

data DeleteBucketMetricsConfiguration Source #

See: newDeleteBucketMetricsConfiguration smart constructor.

Constructors

DeleteBucketMetricsConfiguration' 

Fields

  • expectedBucketOwner :: Maybe Text

    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.

  • bucket :: BucketName

    The name of the bucket containing the metrics configuration to delete.

  • id :: Text

    The ID used to identify the metrics configuration.

Instances

Instances details
Eq DeleteBucketMetricsConfiguration Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketMetricsConfiguration

Read DeleteBucketMetricsConfiguration Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketMetricsConfiguration

Show DeleteBucketMetricsConfiguration Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketMetricsConfiguration

Generic DeleteBucketMetricsConfiguration Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketMetricsConfiguration

Associated Types

type Rep DeleteBucketMetricsConfiguration :: Type -> Type #

NFData DeleteBucketMetricsConfiguration Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketMetricsConfiguration

Hashable DeleteBucketMetricsConfiguration Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketMetricsConfiguration

AWSRequest DeleteBucketMetricsConfiguration Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketMetricsConfiguration

ToHeaders DeleteBucketMetricsConfiguration Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketMetricsConfiguration

ToPath DeleteBucketMetricsConfiguration Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketMetricsConfiguration

ToQuery DeleteBucketMetricsConfiguration Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketMetricsConfiguration

type Rep DeleteBucketMetricsConfiguration Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketMetricsConfiguration

type Rep DeleteBucketMetricsConfiguration = D1 ('MetaData "DeleteBucketMetricsConfiguration" "Amazonka.S3.DeleteBucketMetricsConfiguration" "libZSservicesZSamazonka-s3ZSamazonka-s3" 'False) (C1 ('MetaCons "DeleteBucketMetricsConfiguration'" 'PrefixI 'True) (S1 ('MetaSel ('Just "expectedBucketOwner") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "bucket") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 BucketName) :*: S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse DeleteBucketMetricsConfiguration Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketMetricsConfiguration

newDeleteBucketMetricsConfiguration Source #

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 #

Instances

Instances details
Eq DeleteBucketMetricsConfigurationResponse Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketMetricsConfiguration

Read DeleteBucketMetricsConfigurationResponse Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketMetricsConfiguration

Show DeleteBucketMetricsConfigurationResponse Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketMetricsConfiguration

Generic DeleteBucketMetricsConfigurationResponse Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketMetricsConfiguration

NFData DeleteBucketMetricsConfigurationResponse Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketMetricsConfiguration

type Rep DeleteBucketMetricsConfigurationResponse Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketMetricsConfiguration

type Rep DeleteBucketMetricsConfigurationResponse = D1 ('MetaData "DeleteBucketMetricsConfigurationResponse" "Amazonka.S3.DeleteBucketMetricsConfiguration" "libZSservicesZSamazonka-s3ZSamazonka-s3" 'False) (C1 ('MetaCons "DeleteBucketMetricsConfigurationResponse'" 'PrefixI 'False) (U1 :: Type -> Type))

newDeleteBucketMetricsConfigurationResponse :: DeleteBucketMetricsConfigurationResponse Source #

Create a value of DeleteBucketMetricsConfigurationResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.