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

UploadSSHPublicKey() public method

Uploads an SSH public key and associates it with the specified IAM user.

The SSH public key uploaded by this action can be used only for authenticating the associated IAM user to an AWS CodeCommit repository. For more information about using SSH keys to authenticate to an AWS CodeCommit repository, see Set up AWS CodeCommit for SSH Connections in the AWS CodeCommit User Guide.

/// The request was rejected because the SSH public key is already associated with the /// specified IAM user. /// /// The request was rejected because the public key is malformed or otherwise invalid. /// /// 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 request was rejected because the public key encoding format is unsupported or /// unrecognized. ///
public UploadSSHPublicKey ( UploadSSHPublicKeyRequest request ) : UploadSSHPublicKeyResponse
request UploadSSHPublicKeyRequest Container for the necessary parameters to execute the UploadSSHPublicKey service method.
return UploadSSHPublicKeyResponse
        public UploadSSHPublicKeyResponse UploadSSHPublicKey(UploadSSHPublicKeyRequest request)
        {
            var marshaller = new UploadSSHPublicKeyRequestMarshaller();
            var unmarshaller = UploadSSHPublicKeyResponseUnmarshaller.Instance;

            return Invoke<UploadSSHPublicKeyRequest,UploadSSHPublicKeyResponse>(request, marshaller, unmarshaller);
        }
AmazonIdentityManagementServiceClient