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 |
Changes the status of the specified access key from Active to Inactive, or vice versa. This operation can be used to disable a user's key as part of a key rotation workflow.
If the UserName
is not specified, the user name is determined
implicitly based on the Amazon Web Services access key ID used to sign
the request. This operation works for access keys under the Amazon Web
Services account. Consequently, you can use this operation to manage
Amazon Web Services account root user credentials even if the Amazon Web
Services account has no associated users.
For information about rotating keys, see Managing keys and certificates in the IAM User Guide.
Synopsis
- data UpdateAccessKey = UpdateAccessKey' {}
- newUpdateAccessKey :: AccessKey -> StatusType -> UpdateAccessKey
- updateAccessKey_userName :: Lens' UpdateAccessKey (Maybe Text)
- updateAccessKey_accessKeyId :: Lens' UpdateAccessKey AccessKey
- updateAccessKey_status :: Lens' UpdateAccessKey StatusType
- data UpdateAccessKeyResponse = UpdateAccessKeyResponse' {
- newUpdateAccessKeyResponse :: UpdateAccessKeyResponse
Creating a Request
data UpdateAccessKey Source #
See: newUpdateAccessKey
smart constructor.
UpdateAccessKey' | |
|
Instances
:: AccessKey | |
-> StatusType | |
-> UpdateAccessKey |
Create a value of UpdateAccessKey
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:userName:UpdateAccessKey'
, updateAccessKey_userName
- The name of the user whose key you want to update.
This parameter allows (through 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: _+=,.@-
$sel:accessKeyId:UpdateAccessKey'
, updateAccessKey_accessKeyId
- The access key ID of the secret access key you want to update.
This parameter allows (through its regex pattern) a string of characters that can consist of any upper or lowercased letter or digit.
$sel:status:UpdateAccessKey'
, updateAccessKey_status
- The status you want to assign to the secret access key. Active
means
that the key can be used for programmatic calls to Amazon Web Services,
while Inactive
means that the key cannot be used.
Request Lenses
updateAccessKey_userName :: Lens' UpdateAccessKey (Maybe Text) Source #
The name of the user whose key you want to update.
This parameter allows (through 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: _+=,.@-
updateAccessKey_accessKeyId :: Lens' UpdateAccessKey AccessKey Source #
The access key ID of the secret access key you want to update.
This parameter allows (through its regex pattern) a string of characters that can consist of any upper or lowercased letter or digit.
updateAccessKey_status :: Lens' UpdateAccessKey StatusType Source #
The status you want to assign to the secret access key. Active
means
that the key can be used for programmatic calls to Amazon Web Services,
while Inactive
means that the key cannot be used.
Destructuring the Response
data UpdateAccessKeyResponse Source #
See: newUpdateAccessKeyResponse
smart constructor.
Instances
Eq UpdateAccessKeyResponse Source # | |
Defined in Amazonka.IAM.UpdateAccessKey | |
Read UpdateAccessKeyResponse Source # | |
Show UpdateAccessKeyResponse Source # | |
Defined in Amazonka.IAM.UpdateAccessKey showsPrec :: Int -> UpdateAccessKeyResponse -> ShowS # show :: UpdateAccessKeyResponse -> String # showList :: [UpdateAccessKeyResponse] -> ShowS # | |
Generic UpdateAccessKeyResponse Source # | |
Defined in Amazonka.IAM.UpdateAccessKey type Rep UpdateAccessKeyResponse :: Type -> Type # | |
NFData UpdateAccessKeyResponse Source # | |
Defined in Amazonka.IAM.UpdateAccessKey rnf :: UpdateAccessKeyResponse -> () # | |
type Rep UpdateAccessKeyResponse Source # | |
newUpdateAccessKeyResponse :: UpdateAccessKeyResponse Source #
Create a value of UpdateAccessKeyResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.