Class CfnConnector.SftpConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.transfer.CfnConnector.SftpConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnConnector.SftpConfigProperty>
- Enclosing interface:
CfnConnector.SftpConfigProperty
@Stability(Stable)
public static final class CfnConnector.SftpConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnConnector.SftpConfigProperty>
A builder for
CfnConnector.SftpConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.trustedHostKeys(List<String> trustedHostKeys) Sets the value ofCfnConnector.SftpConfigProperty.getTrustedHostKeys()userSecretId(String userSecretId) Sets the value ofCfnConnector.SftpConfigProperty.getUserSecretId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
trustedHostKeys
@Stability(Stable) public CfnConnector.SftpConfigProperty.Builder trustedHostKeys(List<String> trustedHostKeys) Sets the value ofCfnConnector.SftpConfigProperty.getTrustedHostKeys()- Parameters:
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 thessh-keyscancommand 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 isssh-rsa. - For ECDSA keys, the
<key type>string is eitherecdsa-sha2-nistp256,ecdsa-sha2-nistp384, orecdsa-sha2-nistp521, depending on the size of the key you generated.
- For RSA keys, the
- Returns:
this
-
userSecretId
Sets the value ofCfnConnector.SftpConfigProperty.getUserSecretId()- Parameters:
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.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnConnector.SftpConfigProperty>- Returns:
- a new instance of
CfnConnector.SftpConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-