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 a Amazon Lightsail bucket.
When you delete your bucket, the bucket name is released and can be reused for a new bucket in your account or another AWS account.
Synopsis
- data DeleteBucket = DeleteBucket' {
- forceDelete :: Maybe Bool
- bucketName :: Text
- newDeleteBucket :: Text -> DeleteBucket
- deleteBucket_forceDelete :: Lens' DeleteBucket (Maybe Bool)
- deleteBucket_bucketName :: Lens' DeleteBucket Text
- data DeleteBucketResponse = DeleteBucketResponse' {
- operations :: Maybe [Operation]
- httpStatus :: Int
- newDeleteBucketResponse :: Int -> DeleteBucketResponse
- deleteBucketResponse_operations :: Lens' DeleteBucketResponse (Maybe [Operation])
- deleteBucketResponse_httpStatus :: Lens' DeleteBucketResponse Int
Creating a Request
data DeleteBucket Source #
See: newDeleteBucket
smart constructor.
DeleteBucket' | |
|
Instances
Create a value of DeleteBucket
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:forceDelete:DeleteBucket'
, deleteBucket_forceDelete
- A Boolean value that indicates whether to force delete the bucket.
You must force delete the bucket if it has one of the following conditions:
- The bucket is the origin of a distribution.
- The bucket has instances that were granted access to it using the SetResourceAccessForBucket action.
- The bucket has objects.
- The bucket has access keys.
Force deleting a bucket might impact other resources that rely on the bucket, such as instances, distributions, or software that use the issued access keys.
$sel:bucketName:DeleteBucket'
, deleteBucket_bucketName
- The name of the bucket to delete.
Use the GetBuckets action to get a list of bucket names that you can specify.
Request Lenses
deleteBucket_forceDelete :: Lens' DeleteBucket (Maybe Bool) Source #
A Boolean value that indicates whether to force delete the bucket.
You must force delete the bucket if it has one of the following conditions:
- The bucket is the origin of a distribution.
- The bucket has instances that were granted access to it using the SetResourceAccessForBucket action.
- The bucket has objects.
- The bucket has access keys.
Force deleting a bucket might impact other resources that rely on the bucket, such as instances, distributions, or software that use the issued access keys.
deleteBucket_bucketName :: Lens' DeleteBucket Text Source #
The name of the bucket to delete.
Use the GetBuckets action to get a list of bucket names that you can specify.
Destructuring the Response
data DeleteBucketResponse Source #
See: newDeleteBucketResponse
smart constructor.
DeleteBucketResponse' | |
|
Instances
newDeleteBucketResponse Source #
Create a value of DeleteBucketResponse
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:operations:DeleteBucketResponse'
, deleteBucketResponse_operations
- An array of objects that describe the result of the action, such as the
status of the request, the timestamp of the request, and the resources
affected by the request.
$sel:httpStatus:DeleteBucketResponse'
, deleteBucketResponse_httpStatus
- The response's http status code.
Response Lenses
deleteBucketResponse_operations :: Lens' DeleteBucketResponse (Maybe [Operation]) Source #
An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.
deleteBucketResponse_httpStatus :: Lens' DeleteBucketResponse Int Source #
The response's http status code.