amazonka-lightsail-2.0: Amazon Lightsail SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.Lightsail.CreateBucketAccessKey

Description

Creates a new access key for the specified Amazon Lightsail bucket. Access keys consist of an access key ID and corresponding secret access key.

Access keys grant full programmatic access to the specified bucket and its objects. You can have a maximum of two access keys per bucket. Use the GetBucketAccessKeys action to get a list of current access keys for a specific bucket. For more information about access keys, see Creating access keys for a bucket in Amazon Lightsail in the Amazon Lightsail Developer Guide.

The secretAccessKey value is returned only in response to the CreateBucketAccessKey action. You can get a secret access key only when you first create an access key; you cannot get the secret access key later. If you lose the secret access key, you must create a new access key.

Synopsis

Creating a Request

data CreateBucketAccessKey Source #

See: newCreateBucketAccessKey smart constructor.

Constructors

CreateBucketAccessKey' 

Fields

  • bucketName :: Text

    The name of the bucket that the new access key will belong to, and grant access to.

Instances

Instances details
ToJSON CreateBucketAccessKey Source # 
Instance details

Defined in Amazonka.Lightsail.CreateBucketAccessKey

ToHeaders CreateBucketAccessKey Source # 
Instance details

Defined in Amazonka.Lightsail.CreateBucketAccessKey

ToPath CreateBucketAccessKey Source # 
Instance details

Defined in Amazonka.Lightsail.CreateBucketAccessKey

ToQuery CreateBucketAccessKey Source # 
Instance details

Defined in Amazonka.Lightsail.CreateBucketAccessKey

AWSRequest CreateBucketAccessKey Source # 
Instance details

Defined in Amazonka.Lightsail.CreateBucketAccessKey

Associated Types

type AWSResponse CreateBucketAccessKey #

Generic CreateBucketAccessKey Source # 
Instance details

Defined in Amazonka.Lightsail.CreateBucketAccessKey

Associated Types

type Rep CreateBucketAccessKey :: Type -> Type #

Read CreateBucketAccessKey Source # 
Instance details

Defined in Amazonka.Lightsail.CreateBucketAccessKey

Show CreateBucketAccessKey Source # 
Instance details

Defined in Amazonka.Lightsail.CreateBucketAccessKey

NFData CreateBucketAccessKey Source # 
Instance details

Defined in Amazonka.Lightsail.CreateBucketAccessKey

Methods

rnf :: CreateBucketAccessKey -> () #

Eq CreateBucketAccessKey Source # 
Instance details

Defined in Amazonka.Lightsail.CreateBucketAccessKey

Hashable CreateBucketAccessKey Source # 
Instance details

Defined in Amazonka.Lightsail.CreateBucketAccessKey

type AWSResponse CreateBucketAccessKey Source # 
Instance details

Defined in Amazonka.Lightsail.CreateBucketAccessKey

type Rep CreateBucketAccessKey Source # 
Instance details

Defined in Amazonka.Lightsail.CreateBucketAccessKey

type Rep CreateBucketAccessKey = D1 ('MetaData "CreateBucketAccessKey" "Amazonka.Lightsail.CreateBucketAccessKey" "amazonka-lightsail-2.0-77hvsZhtZFxFduYae8QaN0" 'False) (C1 ('MetaCons "CreateBucketAccessKey'" 'PrefixI 'True) (S1 ('MetaSel ('Just "bucketName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newCreateBucketAccessKey Source #

Create a value of CreateBucketAccessKey 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:CreateBucketAccessKey', createBucketAccessKey_bucketName - The name of the bucket that the new access key will belong to, and grant access to.

Request Lenses

createBucketAccessKey_bucketName :: Lens' CreateBucketAccessKey Text Source #

The name of the bucket that the new access key will belong to, and grant access to.

Destructuring the Response

data CreateBucketAccessKeyResponse Source #

See: newCreateBucketAccessKeyResponse smart constructor.

Constructors

CreateBucketAccessKeyResponse' 

Fields

  • accessKey :: Maybe AccessKey

    An object that describes the access key that is created.

  • 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
Generic CreateBucketAccessKeyResponse Source # 
Instance details

Defined in Amazonka.Lightsail.CreateBucketAccessKey

Associated Types

type Rep CreateBucketAccessKeyResponse :: Type -> Type #

Show CreateBucketAccessKeyResponse Source # 
Instance details

Defined in Amazonka.Lightsail.CreateBucketAccessKey

NFData CreateBucketAccessKeyResponse Source # 
Instance details

Defined in Amazonka.Lightsail.CreateBucketAccessKey

Eq CreateBucketAccessKeyResponse Source # 
Instance details

Defined in Amazonka.Lightsail.CreateBucketAccessKey

type Rep CreateBucketAccessKeyResponse Source # 
Instance details

Defined in Amazonka.Lightsail.CreateBucketAccessKey

type Rep CreateBucketAccessKeyResponse = D1 ('MetaData "CreateBucketAccessKeyResponse" "Amazonka.Lightsail.CreateBucketAccessKey" "amazonka-lightsail-2.0-77hvsZhtZFxFduYae8QaN0" 'False) (C1 ('MetaCons "CreateBucketAccessKeyResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "accessKey") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe AccessKey)) :*: (S1 ('MetaSel ('Just "operations") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Operation])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newCreateBucketAccessKeyResponse Source #

Create a value of CreateBucketAccessKeyResponse 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:accessKey:CreateBucketAccessKeyResponse', createBucketAccessKeyResponse_accessKey - An object that describes the access key that is created.

$sel:operations:CreateBucketAccessKeyResponse', createBucketAccessKeyResponse_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:CreateBucketAccessKeyResponse', createBucketAccessKeyResponse_httpStatus - The response's http status code.

Response Lenses

createBucketAccessKeyResponse_accessKey :: Lens' CreateBucketAccessKeyResponse (Maybe AccessKey) Source #

An object that describes the access key that is created.

createBucketAccessKeyResponse_operations :: Lens' CreateBucketAccessKeyResponse (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.