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 |
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
- data CreateBucketAccessKey = CreateBucketAccessKey' {
- bucketName :: Text
- newCreateBucketAccessKey :: Text -> CreateBucketAccessKey
- createBucketAccessKey_bucketName :: Lens' CreateBucketAccessKey Text
- data CreateBucketAccessKeyResponse = CreateBucketAccessKeyResponse' {
- accessKey :: Maybe AccessKey
- operations :: Maybe [Operation]
- httpStatus :: Int
- newCreateBucketAccessKeyResponse :: Int -> CreateBucketAccessKeyResponse
- createBucketAccessKeyResponse_accessKey :: Lens' CreateBucketAccessKeyResponse (Maybe AccessKey)
- createBucketAccessKeyResponse_operations :: Lens' CreateBucketAccessKeyResponse (Maybe [Operation])
- createBucketAccessKeyResponse_httpStatus :: Lens' CreateBucketAccessKeyResponse Int
Creating a Request
data CreateBucketAccessKey Source #
See: newCreateBucketAccessKey
smart constructor.
CreateBucketAccessKey' | |
|
Instances
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.
CreateBucketAccessKeyResponse' | |
|
Instances
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.
createBucketAccessKeyResponse_httpStatus :: Lens' CreateBucketAccessKeyResponse Int Source #
The response's http status code.