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 |
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
- data DeleteBucketInventoryConfiguration = DeleteBucketInventoryConfiguration' {
- expectedBucketOwner :: Maybe Text
- bucket :: BucketName
- id :: Text
- newDeleteBucketInventoryConfiguration :: BucketName -> Text -> DeleteBucketInventoryConfiguration
- deleteBucketInventoryConfiguration_expectedBucketOwner :: Lens' DeleteBucketInventoryConfiguration (Maybe Text)
- deleteBucketInventoryConfiguration_bucket :: Lens' DeleteBucketInventoryConfiguration BucketName
- deleteBucketInventoryConfiguration_id :: Lens' DeleteBucketInventoryConfiguration Text
- data DeleteBucketInventoryConfigurationResponse = DeleteBucketInventoryConfigurationResponse' {
- newDeleteBucketInventoryConfigurationResponse :: DeleteBucketInventoryConfigurationResponse
Creating a Request
data DeleteBucketInventoryConfiguration Source #
See: newDeleteBucketInventoryConfiguration
smart constructor.
DeleteBucketInventoryConfiguration' | |
|
Instances
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 #
See: newDeleteBucketInventoryConfigurationResponse
smart constructor.
Instances
Eq DeleteBucketInventoryConfigurationResponse Source # | |
Read DeleteBucketInventoryConfigurationResponse Source # | |
Show DeleteBucketInventoryConfigurationResponse Source # | |
Generic DeleteBucketInventoryConfigurationResponse Source # | |
Defined in Amazonka.S3.DeleteBucketInventoryConfiguration type Rep DeleteBucketInventoryConfigurationResponse :: Type -> Type # | |
NFData DeleteBucketInventoryConfigurationResponse Source # | |
type Rep DeleteBucketInventoryConfigurationResponse Source # | |
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)) |
newDeleteBucketInventoryConfigurationResponse :: DeleteBucketInventoryConfigurationResponse Source #
Create a value of DeleteBucketInventoryConfigurationResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.