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.IAM.UpdateServiceSpecificCredential
Description
Sets the status of a service-specific credential to Active
or
Inactive
. Service-specific credentials that are inactive cannot be
used for authentication to the service. This operation can be used to
disable a user's service-specific credential as part of a credential
rotation work flow.
Synopsis
- data UpdateServiceSpecificCredential = UpdateServiceSpecificCredential' {}
- newUpdateServiceSpecificCredential :: Text -> StatusType -> UpdateServiceSpecificCredential
- updateServiceSpecificCredential_userName :: Lens' UpdateServiceSpecificCredential (Maybe Text)
- updateServiceSpecificCredential_serviceSpecificCredentialId :: Lens' UpdateServiceSpecificCredential Text
- updateServiceSpecificCredential_status :: Lens' UpdateServiceSpecificCredential StatusType
- data UpdateServiceSpecificCredentialResponse = UpdateServiceSpecificCredentialResponse' {
- newUpdateServiceSpecificCredentialResponse :: UpdateServiceSpecificCredentialResponse
Creating a Request
data UpdateServiceSpecificCredential Source #
See: newUpdateServiceSpecificCredential
smart constructor.
Constructors
UpdateServiceSpecificCredential' | |
Fields
|
Instances
newUpdateServiceSpecificCredential Source #
Arguments
:: Text |
|
-> StatusType | |
-> UpdateServiceSpecificCredential |
Create a value of UpdateServiceSpecificCredential
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:UpdateServiceSpecificCredential'
, updateServiceSpecificCredential_userName
- The name of the IAM user associated with the service-specific
credential. If you do not specify this value, then the operation assumes
the user whose credentials are used to call the operation.
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:serviceSpecificCredentialId:UpdateServiceSpecificCredential'
, updateServiceSpecificCredential_serviceSpecificCredentialId
- The unique identifier of the service-specific credential.
This parameter allows (through its regex pattern) a string of characters that can consist of any upper or lowercased letter or digit.
$sel:status:UpdateServiceSpecificCredential'
, updateServiceSpecificCredential_status
- The status to be assigned to the service-specific credential.
Request Lenses
updateServiceSpecificCredential_userName :: Lens' UpdateServiceSpecificCredential (Maybe Text) Source #
The name of the IAM user associated with the service-specific credential. If you do not specify this value, then the operation assumes the user whose credentials are used to call the operation.
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: _+=,.@-
updateServiceSpecificCredential_serviceSpecificCredentialId :: Lens' UpdateServiceSpecificCredential Text Source #
The unique identifier of the service-specific credential.
This parameter allows (through its regex pattern) a string of characters that can consist of any upper or lowercased letter or digit.
updateServiceSpecificCredential_status :: Lens' UpdateServiceSpecificCredential StatusType Source #
The status to be assigned to the service-specific credential.
Destructuring the Response
data UpdateServiceSpecificCredentialResponse Source #
See: newUpdateServiceSpecificCredentialResponse
smart constructor.
Constructors
UpdateServiceSpecificCredentialResponse' | |
Instances
newUpdateServiceSpecificCredentialResponse :: UpdateServiceSpecificCredentialResponse Source #
Create a value of UpdateServiceSpecificCredentialResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.