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 |
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
- data DeleteBucketAccessKey = DeleteBucketAccessKey' {
- bucketName :: Text
- accessKeyId :: Text
- newDeleteBucketAccessKey :: Text -> Text -> DeleteBucketAccessKey
- deleteBucketAccessKey_bucketName :: Lens' DeleteBucketAccessKey Text
- deleteBucketAccessKey_accessKeyId :: Lens' DeleteBucketAccessKey Text
- data DeleteBucketAccessKeyResponse = DeleteBucketAccessKeyResponse' {
- operations :: Maybe [Operation]
- httpStatus :: Int
- newDeleteBucketAccessKeyResponse :: Int -> DeleteBucketAccessKeyResponse
- deleteBucketAccessKeyResponse_operations :: Lens' DeleteBucketAccessKeyResponse (Maybe [Operation])
- deleteBucketAccessKeyResponse_httpStatus :: Lens' DeleteBucketAccessKeyResponse Int
Creating a Request
data DeleteBucketAccessKey Source #
See: newDeleteBucketAccessKey
smart constructor.
DeleteBucketAccessKey' | |
|
Instances
newDeleteBucketAccessKey Source #
:: Text | |
-> Text | |
-> DeleteBucketAccessKey |
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.
DeleteBucketAccessKeyResponse' | |
|
Instances
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.
deleteBucketAccessKeyResponse_httpStatus :: Lens' DeleteBucketAccessKeyResponse Int Source #
The response's http status code.