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.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
Eq CreateBucketAccessKey Source # 
Instance details

Defined in Amazonka.Lightsail.CreateBucketAccessKey

Read CreateBucketAccessKey Source # 
Instance details

Defined in Amazonka.Lightsail.CreateBucketAccessKey

Show CreateBucketAccessKey Source # 
Instance details

Defined in Amazonka.Lightsail.CreateBucketAccessKey

Generic CreateBucketAccessKey Source # 
Instance details

Defined in Amazonka.Lightsail.CreateBucketAccessKey

Associated Types

type Rep CreateBucketAccessKey :: Type -> Type #

NFData CreateBucketAccessKey Source # 
Instance details

Defined in Amazonka.Lightsail.CreateBucketAccessKey

Methods

rnf :: CreateBucketAccessKey -> () #

Hashable CreateBucketAccessKey Source # 
Instance details

Defined in Amazonka.Lightsail.CreateBucketAccessKey

ToJSON CreateBucketAccessKey Source # 
Instance details

Defined in Amazonka.Lightsail.CreateBucketAccessKey

AWSRequest CreateBucketAccessKey Source # 
Instance details

Defined in Amazonka.Lightsail.CreateBucketAccessKey

Associated Types

type AWSResponse 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

type Rep CreateBucketAccessKey Source # 
Instance details

Defined in Amazonka.Lightsail.CreateBucketAccessKey

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

Defined in Amazonka.Lightsail.CreateBucketAccessKey

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

Defined in Amazonka.Lightsail.CreateBucketAccessKey

Show CreateBucketAccessKeyResponse Source # 
Instance details

Defined in Amazonka.Lightsail.CreateBucketAccessKey

Generic CreateBucketAccessKeyResponse Source # 
Instance details

Defined in Amazonka.Lightsail.CreateBucketAccessKey

Associated Types

type Rep CreateBucketAccessKeyResponse :: Type -> Type #

NFData 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" "libZSservicesZSamazonka-lightsailZSamazonka-lightsail" '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.