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 |
Generates a set of credentials consisting of a user name and password that can be used to access the service specified in the request. These credentials are generated by IAM, and can be used only for the specified service.
You can have a maximum of two sets of service-specific credentials for each supported service per user.
The only supported service at this time is AWS CodeCommit.
You can reset the password to a new service-generated value by calling ResetServiceSpecificCredential
.
For more information about service-specific credentials, see Using IAM with AWS CodeCommit: Git Credentials, SSH Keys, and AWS Access Keys in the IAM User Guide .
Synopsis
- createServiceSpecificCredential :: Text -> Text -> CreateServiceSpecificCredential
- data CreateServiceSpecificCredential
- csscUserName :: Lens' CreateServiceSpecificCredential Text
- csscServiceName :: Lens' CreateServiceSpecificCredential Text
- createServiceSpecificCredentialResponse :: Int -> CreateServiceSpecificCredentialResponse
- data CreateServiceSpecificCredentialResponse
- csscrsServiceSpecificCredential :: Lens' CreateServiceSpecificCredentialResponse (Maybe ServiceSpecificCredential)
- csscrsResponseStatus :: Lens' CreateServiceSpecificCredentialResponse Int
Creating a Request
createServiceSpecificCredential Source #
Creates a value of CreateServiceSpecificCredential
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
csscUserName
- The name of the IAM user that is to be associated with the credentials. The new service-specific credentials have the same permissions as the associated user except that they can be used only to access the specified service. 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: _+=,.@-csscServiceName
- The name of the AWS service that is to be associated with the credentials. The service you specify here is the only service that can be accessed using these credentials.
data CreateServiceSpecificCredential Source #
See: createServiceSpecificCredential
smart constructor.
Instances
Request Lenses
csscUserName :: Lens' CreateServiceSpecificCredential Text Source #
The name of the IAM user that is to be associated with the credentials. The new service-specific credentials have the same permissions as the associated user except that they can be used only to access the specified service. 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: _+=,.@-
csscServiceName :: Lens' CreateServiceSpecificCredential Text Source #
The name of the AWS service that is to be associated with the credentials. The service you specify here is the only service that can be accessed using these credentials.
Destructuring the Response
createServiceSpecificCredentialResponse Source #
Creates a value of CreateServiceSpecificCredentialResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
csscrsServiceSpecificCredential
- A structure that contains information about the newly created service-specific credential. Important: This is the only time that the password for this credential set is available. It cannot be recovered later. Instead, you will have to reset the password withResetServiceSpecificCredential
.csscrsResponseStatus
- -- | The response status code.
data CreateServiceSpecificCredentialResponse Source #
See: createServiceSpecificCredentialResponse
smart constructor.
Instances
Response Lenses
csscrsServiceSpecificCredential :: Lens' CreateServiceSpecificCredentialResponse (Maybe ServiceSpecificCredential) Source #
A structure that contains information about the newly created service-specific credential. Important: This is the only time that the password for this credential set is available. It cannot be recovered later. Instead, you will have to reset the password with ResetServiceSpecificCredential
.
csscrsResponseStatus :: Lens' CreateServiceSpecificCredentialResponse Int Source #
- - | The response status code.