Class CfnConnector.SftpConfigProperty.Builder

All Implemented Interfaces:<CfnConnector.SftpConfigProperty>
Enclosing interface:

@Stability(Stable) public static final class CfnConnector.SftpConfigProperty.Builder extends Object implements<CfnConnector.SftpConfigProperty>
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • trustedHostKeys

      @Stability(Stable) public CfnConnector.SftpConfigProperty.Builder trustedHostKeys(List<String> trustedHostKeys)
      trustedHostKeys - The public portion of the host key, or keys, that are used to identify the external server to which you are connecting. You can use the ssh-keyscan command against the SFTP server to retrieve the necessary key.

      The three standard SSH public key format elements are <key type> , <body base64> , and an optional <comment> , with spaces between each element. Specify only the <key type> and <body base64> : do not enter the <comment> portion of the key.

      For the trusted host key, AWS Transfer Family accepts RSA and ECDSA keys.

      • For RSA keys, the <key type> string is ssh-rsa .
      • For ECDSA keys, the <key type> string is either ecdsa-sha2-nistp256 , ecdsa-sha2-nistp384 , or ecdsa-sha2-nistp521 , depending on the size of the key you generated.

      Run this command to retrieve the SFTP server host key, where your SFTP server name is .


      This prints the public host key to standard output. ssh-rsa AAAAB3Nza...<long-string-for-public-key

      Copy and paste this string into the TrustedHostKeys field for the create-connector command or into the Trusted host keys field in the console.

    • userSecretId

      @Stability(Stable) public CfnConnector.SftpConfigProperty.Builder userSecretId(String userSecretId)
      userSecretId - The identifier for the secret (in AWS Secrets Manager) that contains the SFTP user's private key, password, or both. The identifier must be the Amazon Resource Name (ARN) of the secret.
    • build

      @Stability(Stable) public CfnConnector.SftpConfigProperty build()
      Builds the configured instance.
      Specified by:
      build in interface<CfnConnector.SftpConfigProperty>
      a new instance of CfnConnector.SftpConfigProperty
      NullPointerException - if any required attribute was not provided