Copyright | (c) 2013-2017 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 |
Language | Haskell2010 |
Deletes the access key pair associated with the specified IAM user.
If you do not specify a user name, IAM determines the user name implicitly based on the AWS access key ID signing the request. Because this action works for access keys under the AWS account, you can use this action to manage root credentials even if the AWS account has no associated users.
Creating a Request
Creates a value of DeleteAccessKey
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
dakUserName
- The name of the user whose access key pair you want to delete. This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-dakAccessKeyId
- The access key ID for the access key ID and secret access key you want to delete. This parameter allows (per its regex pattern ) a string of characters that can consist of any upper or lowercased letter or digit.
data DeleteAccessKey Source #
See: deleteAccessKey
smart constructor.
Request Lenses
dakUserName :: Lens' DeleteAccessKey (Maybe Text) Source #
The name of the user whose access key pair you want to delete. This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-
dakAccessKeyId :: Lens' DeleteAccessKey AccessKey Source #
The access key ID for the access key ID and secret access key you want to delete. This parameter allows (per its regex pattern ) a string of characters that can consist of any upper or lowercased letter or digit.
Destructuring the Response
deleteAccessKeyResponse :: DeleteAccessKeyResponse Source #
Creates a value of DeleteAccessKeyResponse
with the minimum fields required to make a request.
data DeleteAccessKeyResponse Source #
See: deleteAccessKeyResponse
smart constructor.