amazonka-s3-2.0: Amazon Simple Storage Service SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

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 fails with the HTTP status code 403 Forbidden (access denied).

  • 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
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

AWSRequest 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 #

Read DeleteBucketMetricsConfiguration Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketMetricsConfiguration

Show DeleteBucketMetricsConfiguration Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketMetricsConfiguration

NFData DeleteBucketMetricsConfiguration Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketMetricsConfiguration

Eq DeleteBucketMetricsConfiguration Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketMetricsConfiguration

Hashable DeleteBucketMetricsConfiguration Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketMetricsConfiguration

type AWSResponse 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" "amazonka-s3-2.0-CNZtv1UmVzj28JXsFvwNoj" '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))))

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 fails with the HTTP status code 403 Forbidden (access denied).

DeleteBucketMetricsConfiguration, deleteBucketMetricsConfiguration_bucket - The name of the bucket containing the metrics configuration to delete.

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 fails with the HTTP status code 403 Forbidden (access denied).

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
Generic 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

NFData DeleteBucketMetricsConfigurationResponse Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketMetricsConfiguration

Eq 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" "amazonka-s3-2.0-CNZtv1UmVzj28JXsFvwNoj" '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.