Amazon.IdentityManagement.AmazonIdentityManagementServiceClient.CreateServiceSpecificCredential C# (CSharp) Method

CreateServiceSpecificCredential() public method

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.

/// The request was rejected because it attempted to create resources beyond the current /// AWS account limits. The error message describes the limit exceeded. /// /// The request was rejected because it referenced an entity that does not exist. The /// error message describes the entity. /// /// The specified service does not support service-specific credentials. ///
public CreateServiceSpecificCredential ( CreateServiceSpecificCredentialRequest request ) : CreateServiceSpecificCredentialResponse
request Amazon.IdentityManagement.Model.CreateServiceSpecificCredentialRequest Container for the necessary parameters to execute the CreateServiceSpecificCredential service method.
return Amazon.IdentityManagement.Model.CreateServiceSpecificCredentialResponse
        public CreateServiceSpecificCredentialResponse CreateServiceSpecificCredential(CreateServiceSpecificCredentialRequest request)
        {
            var marshaller = new CreateServiceSpecificCredentialRequestMarshaller();
            var unmarshaller = CreateServiceSpecificCredentialResponseUnmarshaller.Instance;

            return Invoke<CreateServiceSpecificCredentialRequest,CreateServiceSpecificCredentialResponse>(request, marshaller, unmarshaller);
        }
AmazonIdentityManagementServiceClient