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

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

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

Read DeleteBucketInventoryConfiguration Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketInventoryConfiguration

Show DeleteBucketInventoryConfiguration Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketInventoryConfiguration

NFData DeleteBucketInventoryConfiguration Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketInventoryConfiguration

Eq DeleteBucketInventoryConfiguration Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketInventoryConfiguration

Hashable DeleteBucketInventoryConfiguration Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketInventoryConfiguration

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

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

DeleteBucketInventoryConfiguration, deleteBucketInventoryConfiguration_bucket - The name of the bucket containing the inventory configuration to delete.

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

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

NFData DeleteBucketInventoryConfigurationResponse Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketInventoryConfiguration

Eq 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" "amazonka-s3-2.0-CNZtv1UmVzj28JXsFvwNoj" 'False) (C1 ('MetaCons "DeleteBucketInventoryConfigurationResponse'" 'PrefixI 'False) (U1 :: Type -> Type))