libZSservicesZSamazonka-lightsailZSamazonka-lightsail
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.Lightsail.DeleteBucket

Description

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

Creating a Request

data DeleteBucket Source #

See: newDeleteBucket smart constructor.

Constructors

DeleteBucket' 

Fields

  • forceDelete :: Maybe Bool

    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.

  • bucketName :: Text

    The name of the bucket to delete.

    Use the GetBuckets action to get a list of bucket names that you can specify.

Instances

Instances details
Eq DeleteBucket Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteBucket

Read DeleteBucket Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteBucket

Show DeleteBucket Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteBucket

Generic DeleteBucket Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteBucket

Associated Types

type Rep DeleteBucket :: Type -> Type #

NFData DeleteBucket Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteBucket

Methods

rnf :: DeleteBucket -> () #

Hashable DeleteBucket Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteBucket

ToJSON DeleteBucket Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteBucket

AWSRequest DeleteBucket Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteBucket

Associated Types

type AWSResponse DeleteBucket #

ToHeaders DeleteBucket Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteBucket

ToPath DeleteBucket Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteBucket

ToQuery DeleteBucket Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteBucket

type Rep DeleteBucket Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteBucket

type Rep DeleteBucket = D1 ('MetaData "DeleteBucket" "Amazonka.Lightsail.DeleteBucket" "libZSservicesZSamazonka-lightsailZSamazonka-lightsail" 'False) (C1 ('MetaCons "DeleteBucket'" 'PrefixI 'True) (S1 ('MetaSel ('Just "forceDelete") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "bucketName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse DeleteBucket Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteBucket

newDeleteBucket Source #

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.

Constructors

DeleteBucketResponse' 

Fields

  • operations :: Maybe [Operation]

    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.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq DeleteBucketResponse Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteBucket

Read DeleteBucketResponse Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteBucket

Show DeleteBucketResponse Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteBucket

Generic DeleteBucketResponse Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteBucket

Associated Types

type Rep DeleteBucketResponse :: Type -> Type #

NFData DeleteBucketResponse Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteBucket

Methods

rnf :: DeleteBucketResponse -> () #

type Rep DeleteBucketResponse Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteBucket

type Rep DeleteBucketResponse = D1 ('MetaData "DeleteBucketResponse" "Amazonka.Lightsail.DeleteBucket" "libZSservicesZSamazonka-lightsailZSamazonka-lightsail" 'False) (C1 ('MetaCons "DeleteBucketResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "operations") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Operation])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

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.