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

GetSSHPublicKey() public method

Retrieves the specified SSH public key, including metadata about the key.

The SSH public key retrieved by this action is 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 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 GetSSHPublicKey ( GetSSHPublicKeyRequest request ) : GetSSHPublicKeyResponse
request GetSSHPublicKeyRequest Container for the necessary parameters to execute the GetSSHPublicKey service method.
return GetSSHPublicKeyResponse
        public GetSSHPublicKeyResponse GetSSHPublicKey(GetSSHPublicKeyRequest request)
        {
            var marshaller = new GetSSHPublicKeyRequestMarshaller();
            var unmarshaller = GetSSHPublicKeyResponseUnmarshaller.Instance;

            return Invoke<GetSSHPublicKeyRequest,GetSSHPublicKeyResponse>(request, marshaller, unmarshaller);
        }
AmazonIdentityManagementServiceClient