| Copyright | (c) 2013-2018 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 |
Network.AWS.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
- updateServiceSpecificCredential :: Text -> StatusType -> UpdateServiceSpecificCredential
- data UpdateServiceSpecificCredential
- usscUserName :: Lens' UpdateServiceSpecificCredential (Maybe Text)
- usscServiceSpecificCredentialId :: Lens' UpdateServiceSpecificCredential Text
- usscStatus :: Lens' UpdateServiceSpecificCredential StatusType
- updateServiceSpecificCredentialResponse :: UpdateServiceSpecificCredentialResponse
- data UpdateServiceSpecificCredentialResponse
Creating a Request
updateServiceSpecificCredential Source #
Arguments
| :: Text | |
| -> StatusType | |
| -> UpdateServiceSpecificCredential |
Creates a value of UpdateServiceSpecificCredential with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
usscUserName- 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 (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: _+=,.@-usscServiceSpecificCredentialId- The unique identifier of the service-specific credential. This parameter allows (per its regex pattern ) a string of characters that can consist of any upper or lowercased letter or digit.usscStatus- The status to be assigned to the service-specific credential.
data UpdateServiceSpecificCredential Source #
See: updateServiceSpecificCredential smart constructor.
Instances
Request Lenses
usscUserName :: 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 (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: _+=,.@-
usscServiceSpecificCredentialId :: Lens' UpdateServiceSpecificCredential Text Source #
The unique identifier of the service-specific credential. This parameter allows (per its regex pattern ) a string of characters that can consist of any upper or lowercased letter or digit.
usscStatus :: Lens' UpdateServiceSpecificCredential StatusType Source #
The status to be assigned to the service-specific credential.
Destructuring the Response
updateServiceSpecificCredentialResponse :: UpdateServiceSpecificCredentialResponse Source #
Creates a value of UpdateServiceSpecificCredentialResponse with the minimum fields required to make a request.
data UpdateServiceSpecificCredentialResponse Source #
See: updateServiceSpecificCredentialResponse smart constructor.