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.DeleteBucketInventoryConfiguration

Description

Deletes an inventory configuration (identified by the inventory ID) from the bucket.

To use this operation, you must have permissions to perform the s3:PutInventoryConfiguration 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 the Amazon S3 inventory feature, see Amazon S3 Inventory.

Operations related to DeleteBucketInventoryConfiguration include:

Synopsis

Creating a Request

data DeleteBucketInventoryConfiguration Source #

Constructors

DeleteBucketInventoryConfiguration' 

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 inventory configuration to delete.

  • id :: Text

    The ID used to identify the inventory configuration.

Instances

Instances details
Eq DeleteBucketInventoryConfiguration Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketInventoryConfiguration

Read DeleteBucketInventoryConfiguration Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketInventoryConfiguration

Show DeleteBucketInventoryConfiguration Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketInventoryConfiguration

Generic DeleteBucketInventoryConfiguration Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketInventoryConfiguration

Associated Types

type Rep DeleteBucketInventoryConfiguration :: Type -> Type #

NFData DeleteBucketInventoryConfiguration Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketInventoryConfiguration

Hashable DeleteBucketInventoryConfiguration Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketInventoryConfiguration

AWSRequest DeleteBucketInventoryConfiguration Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketInventoryConfiguration

ToHeaders DeleteBucketInventoryConfiguration Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketInventoryConfiguration

ToPath DeleteBucketInventoryConfiguration Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketInventoryConfiguration

ToQuery DeleteBucketInventoryConfiguration Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketInventoryConfiguration

type Rep DeleteBucketInventoryConfiguration Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketInventoryConfiguration

type Rep DeleteBucketInventoryConfiguration = D1 ('MetaData "DeleteBucketInventoryConfiguration" "Amazonka.S3.DeleteBucketInventoryConfiguration" "libZSservicesZSamazonka-s3ZSamazonka-s3" 'False) (C1 ('MetaCons "DeleteBucketInventoryConfiguration'" '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 DeleteBucketInventoryConfiguration Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketInventoryConfiguration

newDeleteBucketInventoryConfiguration Source #

Create a value of DeleteBucketInventoryConfiguration 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:DeleteBucketInventoryConfiguration', deleteBucketInventoryConfiguration_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:DeleteBucketInventoryConfiguration', deleteBucketInventoryConfiguration_bucket - The name of the bucket containing the inventory configuration to delete.

$sel:id:DeleteBucketInventoryConfiguration', deleteBucketInventoryConfiguration_id - The ID used to identify the inventory configuration.

Request Lenses

deleteBucketInventoryConfiguration_expectedBucketOwner :: Lens' DeleteBucketInventoryConfiguration (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.

deleteBucketInventoryConfiguration_bucket :: Lens' DeleteBucketInventoryConfiguration BucketName Source #

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

deleteBucketInventoryConfiguration_id :: Lens' DeleteBucketInventoryConfiguration Text Source #

The ID used to identify the inventory configuration.

Destructuring the Response

data DeleteBucketInventoryConfigurationResponse Source #

Instances

Instances details
Eq DeleteBucketInventoryConfigurationResponse Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketInventoryConfiguration

Read DeleteBucketInventoryConfigurationResponse Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketInventoryConfiguration

Show DeleteBucketInventoryConfigurationResponse Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketInventoryConfiguration

Generic DeleteBucketInventoryConfigurationResponse Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketInventoryConfiguration

NFData DeleteBucketInventoryConfigurationResponse Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketInventoryConfiguration

type Rep DeleteBucketInventoryConfigurationResponse Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketInventoryConfiguration

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