Class GetSshPublicKeyRequest

    • Method Detail

      • userName

        public final String userName()

        The name of the IAM user associated with the SSH public key.

        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: _+=,.@-

        Returns:
        The name of the IAM user associated with the SSH public key.

        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: _+=,.@-

      • sshPublicKeyId

        public final String sshPublicKeyId()

        The unique identifier for the SSH public key.

        This parameter allows (through its regex pattern) a string of characters that can consist of any upper or lowercased letter or digit.

        Returns:
        The unique identifier for the SSH public key.

        This parameter allows (through its regex pattern) a string of characters that can consist of any upper or lowercased letter or digit.

      • encoding

        public final EncodingType encoding()

        Specifies the public key encoding format to use in the response. To retrieve the public key in ssh-rsa format, use SSH. To retrieve the public key in PEM format, use PEM.

        If the service returns an enum value that is not available in the current SDK version, encoding will return EncodingType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from encodingAsString().

        Returns:
        Specifies the public key encoding format to use in the response. To retrieve the public key in ssh-rsa format, use SSH. To retrieve the public key in PEM format, use PEM.
        See Also:
        EncodingType
      • encodingAsString

        public final String encodingAsString()

        Specifies the public key encoding format to use in the response. To retrieve the public key in ssh-rsa format, use SSH. To retrieve the public key in PEM format, use PEM.

        If the service returns an enum value that is not available in the current SDK version, encoding will return EncodingType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from encodingAsString().

        Returns:
        Specifies the public key encoding format to use in the response. To retrieve the public key in ssh-rsa format, use SSH. To retrieve the public key in PEM format, use PEM.
        See Also:
        EncodingType
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object