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 |
Amazonka.Lightsail.GetBucketAccessKeys
Description
Returns the existing access key IDs for the specified Amazon Lightsail bucket.
This action does not return the secret access key value of an access key. You can get a secret access key only when you create it from the response of the CreateBucketAccessKey action. If you lose the secret access key, you must create a new access key.
Synopsis
- data GetBucketAccessKeys = GetBucketAccessKeys' {
- bucketName :: Text
- newGetBucketAccessKeys :: Text -> GetBucketAccessKeys
- getBucketAccessKeys_bucketName :: Lens' GetBucketAccessKeys Text
- data GetBucketAccessKeysResponse = GetBucketAccessKeysResponse' {
- accessKeys :: Maybe [AccessKey]
- httpStatus :: Int
- newGetBucketAccessKeysResponse :: Int -> GetBucketAccessKeysResponse
- getBucketAccessKeysResponse_accessKeys :: Lens' GetBucketAccessKeysResponse (Maybe [AccessKey])
- getBucketAccessKeysResponse_httpStatus :: Lens' GetBucketAccessKeysResponse Int
Creating a Request
data GetBucketAccessKeys Source #
See: newGetBucketAccessKeys
smart constructor.
Constructors
GetBucketAccessKeys' | |
Fields
|
Instances
newGetBucketAccessKeys Source #
Arguments
:: Text | |
-> GetBucketAccessKeys |
Create a value of GetBucketAccessKeys
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:GetBucketAccessKeys'
, getBucketAccessKeys_bucketName
- The name of the bucket for which to return access keys.
Request Lenses
getBucketAccessKeys_bucketName :: Lens' GetBucketAccessKeys Text Source #
The name of the bucket for which to return access keys.
Destructuring the Response
data GetBucketAccessKeysResponse Source #
See: newGetBucketAccessKeysResponse
smart constructor.
Constructors
GetBucketAccessKeysResponse' | |
Fields
|
Instances
newGetBucketAccessKeysResponse Source #
Create a value of GetBucketAccessKeysResponse
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:accessKeys:GetBucketAccessKeysResponse'
, getBucketAccessKeysResponse_accessKeys
- An object that describes the access keys for the specified bucket.
$sel:httpStatus:GetBucketAccessKeysResponse'
, getBucketAccessKeysResponse_httpStatus
- The response's http status code.
Response Lenses
getBucketAccessKeysResponse_accessKeys :: Lens' GetBucketAccessKeysResponse (Maybe [AccessKey]) Source #
An object that describes the access keys for the specified bucket.
getBucketAccessKeysResponse_httpStatus :: Lens' GetBucketAccessKeysResponse Int Source #
The response's http status code.