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 analytics configuration for the bucket (specified by the analytics configuration ID).
To use this operation, you must have permissions to perform the
s3:PutAnalyticsConfiguration
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 analytics feature, see Amazon S3 Analytics – Storage Class Analysis.
The following operations are related to
DeleteBucketAnalyticsConfiguration
:
Synopsis
- data DeleteBucketAnalyticsConfiguration = DeleteBucketAnalyticsConfiguration' {
- expectedBucketOwner :: Maybe Text
- bucket :: BucketName
- id :: Text
- newDeleteBucketAnalyticsConfiguration :: BucketName -> Text -> DeleteBucketAnalyticsConfiguration
- deleteBucketAnalyticsConfiguration_expectedBucketOwner :: Lens' DeleteBucketAnalyticsConfiguration (Maybe Text)
- deleteBucketAnalyticsConfiguration_bucket :: Lens' DeleteBucketAnalyticsConfiguration BucketName
- deleteBucketAnalyticsConfiguration_id :: Lens' DeleteBucketAnalyticsConfiguration Text
- data DeleteBucketAnalyticsConfigurationResponse = DeleteBucketAnalyticsConfigurationResponse' {
- newDeleteBucketAnalyticsConfigurationResponse :: DeleteBucketAnalyticsConfigurationResponse
Creating a Request
data DeleteBucketAnalyticsConfiguration Source #
See: newDeleteBucketAnalyticsConfiguration
smart constructor.
DeleteBucketAnalyticsConfiguration' | |
|
Instances
newDeleteBucketAnalyticsConfiguration Source #
Create a value of DeleteBucketAnalyticsConfiguration
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:DeleteBucketAnalyticsConfiguration'
, deleteBucketAnalyticsConfiguration_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:DeleteBucketAnalyticsConfiguration'
, deleteBucketAnalyticsConfiguration_bucket
- The name of the bucket from which an analytics configuration is deleted.
$sel:id:DeleteBucketAnalyticsConfiguration'
, deleteBucketAnalyticsConfiguration_id
- The ID that identifies the analytics configuration.
Request Lenses
deleteBucketAnalyticsConfiguration_expectedBucketOwner :: Lens' DeleteBucketAnalyticsConfiguration (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.
deleteBucketAnalyticsConfiguration_bucket :: Lens' DeleteBucketAnalyticsConfiguration BucketName Source #
The name of the bucket from which an analytics configuration is deleted.
deleteBucketAnalyticsConfiguration_id :: Lens' DeleteBucketAnalyticsConfiguration Text Source #
The ID that identifies the analytics configuration.
Destructuring the Response
data DeleteBucketAnalyticsConfigurationResponse Source #
See: newDeleteBucketAnalyticsConfigurationResponse
smart constructor.
Instances
Eq DeleteBucketAnalyticsConfigurationResponse Source # | |
Read DeleteBucketAnalyticsConfigurationResponse Source # | |
Show DeleteBucketAnalyticsConfigurationResponse Source # | |
Generic DeleteBucketAnalyticsConfigurationResponse Source # | |
Defined in Amazonka.S3.DeleteBucketAnalyticsConfiguration type Rep DeleteBucketAnalyticsConfigurationResponse :: Type -> Type # | |
NFData DeleteBucketAnalyticsConfigurationResponse Source # | |
type Rep DeleteBucketAnalyticsConfigurationResponse Source # | |
Defined in Amazonka.S3.DeleteBucketAnalyticsConfiguration type Rep DeleteBucketAnalyticsConfigurationResponse = D1 ('MetaData "DeleteBucketAnalyticsConfigurationResponse" "Amazonka.S3.DeleteBucketAnalyticsConfiguration" "libZSservicesZSamazonka-s3ZSamazonka-s3" 'False) (C1 ('MetaCons "DeleteBucketAnalyticsConfigurationResponse'" 'PrefixI 'False) (U1 :: Type -> Type)) |
newDeleteBucketAnalyticsConfigurationResponse :: DeleteBucketAnalyticsConfigurationResponse Source #
Create a value of DeleteBucketAnalyticsConfigurationResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.