/AWS1/CL_TRNSFTPCNCTORCONFIG¶
Contains the details for an SFTP connector object. The connector object is used for transferring files to and from a partner's SFTP server.
CONSTRUCTOR¶
IMPORTING¶
Optional arguments:¶
iv_usersecretid TYPE /AWS1/TRNSECRETID /AWS1/TRNSECRETID¶
The identifier for the secret (in Amazon Web Services 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.
Required when creating an SFTP connector
Optional when updating an existing SFTP connector
it_trustedhostkeys TYPE /AWS1/CL_TRNSFTPCNCTORTRUSTE00=>TT_SFTPCNCTORTRUSTEDHOSTKEYLST TT_SFTPCNCTORTRUSTEDHOSTKEYLST¶
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-keyscancommand against the SFTP server to retrieve the necessary key.
TrustedHostKeysis optional forCreateConnector. If not provided, you can useTestConnectionto retrieve the server host key during the initial connection attempt, and subsequently update the connector with the observed host key.When creating connectors with egress config (VPC_LATTICE type connectors), since host name is not something we can verify, the only accepted trusted host key format is
key-type key-bodywithout the host name. For example:ssh-rsa AAAAB3Nza...<long-string-for-public-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, 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.Run this command to retrieve the SFTP server host key, where your SFTP server name is
ftp.host.com.
ssh-keyscan ftp.host.comThis prints the public host key to standard output.
ftp.host.com ssh-rsa AAAAB3Nza...<long-string-for-public-key>Copy and paste this string into the
TrustedHostKeysfield for thecreate-connectorcommand or into the Trusted host keys field in the console.For VPC Lattice type connectors (VPC_LATTICE), remove the hostname from the key and use only the
key-type key-bodyformat. In this example, it should be:ssh-rsa AAAAB3Nza...<long-string-for-public-key>
iv_maxconcurrentconnections TYPE /AWS1/TRNMAXCONCURRENTCONNS /AWS1/TRNMAXCONCURRENTCONNS¶
Specify the number of concurrent connections that your connector creates to the remote server. The default value is
1. The maximum values is5.If you are using the Amazon Web Services Management Console, the default value is
5.This parameter specifies the number of active connections that your connector can establish with the remote server at the same time. Increasing this value can enhance connector performance when transferring large file batches by enabling parallel operations.
Queryable Attributes¶
UserSecretId¶
The identifier for the secret (in Amazon Web Services 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.
Required when creating an SFTP connector
Optional when updating an existing SFTP connector
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_USERSECRETID() |
Getter for USERSECRETID, with configurable default |
ASK_USERSECRETID() |
Getter for USERSECRETID w/ exceptions if field has no value |
HAS_USERSECRETID() |
Determine if USERSECRETID has a value |
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-keyscancommand against the SFTP server to retrieve the necessary key.
TrustedHostKeysis optional forCreateConnector. If not provided, you can useTestConnectionto retrieve the server host key during the initial connection attempt, and subsequently update the connector with the observed host key.When creating connectors with egress config (VPC_LATTICE type connectors), since host name is not something we can verify, the only accepted trusted host key format is
key-type key-bodywithout the host name. For example:ssh-rsa AAAAB3Nza...<long-string-for-public-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, 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.Run this command to retrieve the SFTP server host key, where your SFTP server name is
ftp.host.com.
ssh-keyscan ftp.host.comThis prints the public host key to standard output.
ftp.host.com ssh-rsa AAAAB3Nza...<long-string-for-public-key>Copy and paste this string into the
TrustedHostKeysfield for thecreate-connectorcommand or into the Trusted host keys field in the console.For VPC Lattice type connectors (VPC_LATTICE), remove the hostname from the key and use only the
key-type key-bodyformat. In this example, it should be:ssh-rsa AAAAB3Nza...<long-string-for-public-key>
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_TRUSTEDHOSTKEYS() |
Getter for TRUSTEDHOSTKEYS, with configurable default |
ASK_TRUSTEDHOSTKEYS() |
Getter for TRUSTEDHOSTKEYS w/ exceptions if field has no val |
HAS_TRUSTEDHOSTKEYS() |
Determine if TRUSTEDHOSTKEYS has a value |
MaxConcurrentConnections¶
Specify the number of concurrent connections that your connector creates to the remote server. The default value is
1. The maximum values is5.If you are using the Amazon Web Services Management Console, the default value is
5.This parameter specifies the number of active connections that your connector can establish with the remote server at the same time. Increasing this value can enhance connector performance when transferring large file batches by enabling parallel operations.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_MAXCONCURRENTCONNECTIONS() |
Getter for MAXCONCURRENTCONNECTIONS, with configurable defau |
ASK_MAXCONCURRENTCONNECTIONS() |
Getter for MAXCONCURRENTCONNECTIONS w/ exceptions if field h |
HAS_MAXCONCURRENTCONNECTIONS() |
Determine if MAXCONCURRENTCONNECTIONS has a value |