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 |
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.
UpdateServiceSpecificCredential' | |
|
Instances
newUpdateServiceSpecificCredential Source #
:: 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.
Instances
Eq UpdateServiceSpecificCredentialResponse Source # | |
Read UpdateServiceSpecificCredentialResponse Source # | |
Defined in Amazonka.IAM.UpdateServiceSpecificCredential | |
Show UpdateServiceSpecificCredentialResponse Source # | |
Generic UpdateServiceSpecificCredentialResponse Source # | |
Defined in Amazonka.IAM.UpdateServiceSpecificCredential type Rep UpdateServiceSpecificCredentialResponse :: Type -> Type # | |
NFData UpdateServiceSpecificCredentialResponse Source # | |
Defined in Amazonka.IAM.UpdateServiceSpecificCredential rnf :: UpdateServiceSpecificCredentialResponse -> () # | |
type Rep UpdateServiceSpecificCredentialResponse Source # | |
Defined in Amazonka.IAM.UpdateServiceSpecificCredential type Rep UpdateServiceSpecificCredentialResponse = D1 ('MetaData "UpdateServiceSpecificCredentialResponse" "Amazonka.IAM.UpdateServiceSpecificCredential" "libZSservicesZSamazonka-iamZSamazonka-iam" 'False) (C1 ('MetaCons "UpdateServiceSpecificCredentialResponse'" 'PrefixI 'False) (U1 :: Type -> Type)) |
newUpdateServiceSpecificCredentialResponse :: UpdateServiceSpecificCredentialResponse Source #
Create a value of UpdateServiceSpecificCredentialResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.