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.DeleteBucketAccessKey

Description

Deletes an access key for the specified Amazon Lightsail bucket.

We recommend that you delete an access key if the secret access key is compromised.

For more information about access keys, see Creating access keys for a bucket in Amazon Lightsail in the Amazon Lightsail Developer Guide.

Synopsis

Creating a Request

data DeleteBucketAccessKey Source #

See: newDeleteBucketAccessKey smart constructor.

Constructors

DeleteBucketAccessKey' 

Fields

  • bucketName :: Text

    The name of the bucket that the access key belongs to.

  • accessKeyId :: Text

    The ID of the access key to delete.

    Use the GetBucketAccessKeys action to get a list of access key IDs that you can specify.

Instances

Instances details
Eq DeleteBucketAccessKey Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteBucketAccessKey

Read DeleteBucketAccessKey Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteBucketAccessKey

Show DeleteBucketAccessKey Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteBucketAccessKey

Generic DeleteBucketAccessKey Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteBucketAccessKey

Associated Types

type Rep DeleteBucketAccessKey :: Type -> Type #

NFData DeleteBucketAccessKey Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteBucketAccessKey

Methods

rnf :: DeleteBucketAccessKey -> () #

Hashable DeleteBucketAccessKey Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteBucketAccessKey

ToJSON DeleteBucketAccessKey Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteBucketAccessKey

AWSRequest DeleteBucketAccessKey Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteBucketAccessKey

Associated Types

type AWSResponse DeleteBucketAccessKey #

ToHeaders DeleteBucketAccessKey Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteBucketAccessKey

ToPath DeleteBucketAccessKey Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteBucketAccessKey

ToQuery DeleteBucketAccessKey Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteBucketAccessKey

type Rep DeleteBucketAccessKey Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteBucketAccessKey

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

Defined in Amazonka.Lightsail.DeleteBucketAccessKey

newDeleteBucketAccessKey Source #

Create a value of DeleteBucketAccessKey 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:bucketName:DeleteBucketAccessKey', deleteBucketAccessKey_bucketName - The name of the bucket that the access key belongs to.

$sel:accessKeyId:DeleteBucketAccessKey', deleteBucketAccessKey_accessKeyId - The ID of the access key to delete.

Use the GetBucketAccessKeys action to get a list of access key IDs that you can specify.

Request Lenses

deleteBucketAccessKey_bucketName :: Lens' DeleteBucketAccessKey Text Source #

The name of the bucket that the access key belongs to.

deleteBucketAccessKey_accessKeyId :: Lens' DeleteBucketAccessKey Text Source #

The ID of the access key to delete.

Use the GetBucketAccessKeys action to get a list of access key IDs that you can specify.

Destructuring the Response

data DeleteBucketAccessKeyResponse Source #

See: newDeleteBucketAccessKeyResponse smart constructor.

Constructors

DeleteBucketAccessKeyResponse' 

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 DeleteBucketAccessKeyResponse Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteBucketAccessKey

Read DeleteBucketAccessKeyResponse Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteBucketAccessKey

Show DeleteBucketAccessKeyResponse Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteBucketAccessKey

Generic DeleteBucketAccessKeyResponse Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteBucketAccessKey

Associated Types

type Rep DeleteBucketAccessKeyResponse :: Type -> Type #

NFData DeleteBucketAccessKeyResponse Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteBucketAccessKey

type Rep DeleteBucketAccessKeyResponse Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteBucketAccessKey

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

newDeleteBucketAccessKeyResponse Source #

Create a value of DeleteBucketAccessKeyResponse 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:DeleteBucketAccessKeyResponse', deleteBucketAccessKeyResponse_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:DeleteBucketAccessKeyResponse', deleteBucketAccessKeyResponse_httpStatus - The response's http status code.

Response Lenses

deleteBucketAccessKeyResponse_operations :: Lens' DeleteBucketAccessKeyResponse (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.