@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SftpConnectorConfig extends Object implements Serializable, Cloneable, StructuredPojo
Contains the details for an SFTP connector object. The connector object is used for transferring files to and from a partner's SFTP server.
Because the SftpConnectorConfig
data type is used for both creating and updating SFTP connectors, its
parameters, TrustedHostKeys
and UserSecretId
are marked as not required. This is a bit
misleading, as they are not required when you are updating an existing SFTP connector, but are required when
you are creating a new SFTP connector.
Constructor and Description |
---|
SftpConnectorConfig() |
Modifier and Type | Method and Description |
---|---|
SftpConnectorConfig |
clone() |
boolean |
equals(Object obj) |
List<String> |
getTrustedHostKeys()
The public portion of the host key, or keys, that are used to identify the external server to which you are
connecting.
|
String |
getUserSecretId()
The identifier for the secret (in Amazon Web Services Secrets Manager) that contains the SFTP user's private key,
password, or both.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setTrustedHostKeys(Collection<String> trustedHostKeys)
The public portion of the host key, or keys, that are used to identify the external server to which you are
connecting.
|
void |
setUserSecretId(String userSecretId)
The identifier for the secret (in Amazon Web Services Secrets Manager) that contains the SFTP user's private key,
password, or both.
|
String |
toString()
Returns a string representation of this object.
|
SftpConnectorConfig |
withTrustedHostKeys(Collection<String> trustedHostKeys)
The public portion of the host key, or keys, that are used to identify the external server to which you are
connecting.
|
SftpConnectorConfig |
withTrustedHostKeys(String... trustedHostKeys)
The public portion of the host key, or keys, that are used to identify the external server to which you are
connecting.
|
SftpConnectorConfig |
withUserSecretId(String userSecretId)
The identifier for the secret (in Amazon Web Services Secrets Manager) that contains the SFTP user's private key,
password, or both.
|
public void setUserSecretId(String 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.
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.public String getUserSecretId()
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.
public SftpConnectorConfig withUserSecretId(String 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.
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.public List<String> getTrustedHostKeys()
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, 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 ftp.host.com
.
ssh-keyscan ftp.host.com
This 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 TrustedHostKeys
field for the create-connector
command or into the Trusted host keys field in the console.
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, 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
ftp.host.com
.
ssh-keyscan ftp.host.com
This 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 TrustedHostKeys
field for the
create-connector
command or into the Trusted host keys field in the console.
public void setTrustedHostKeys(Collection<String> 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, 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 ftp.host.com
.
ssh-keyscan ftp.host.com
This 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 TrustedHostKeys
field for the create-connector
command or into the Trusted host keys field in the console.
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, 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
ftp.host.com
.
ssh-keyscan ftp.host.com
This 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 TrustedHostKeys
field for the
create-connector
command or into the Trusted host keys field in the console.
public SftpConnectorConfig withTrustedHostKeys(String... 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, 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 ftp.host.com
.
ssh-keyscan ftp.host.com
This 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 TrustedHostKeys
field for the create-connector
command or into the Trusted host keys field in the console.
NOTE: This method appends the values to the existing list (if any). Use
setTrustedHostKeys(java.util.Collection)
or withTrustedHostKeys(java.util.Collection)
if you
want to override the existing values.
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, 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
ftp.host.com
.
ssh-keyscan ftp.host.com
This 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 TrustedHostKeys
field for the
create-connector
command or into the Trusted host keys field in the console.
public SftpConnectorConfig withTrustedHostKeys(Collection<String> 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, 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 ftp.host.com
.
ssh-keyscan ftp.host.com
This 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 TrustedHostKeys
field for the create-connector
command or into the Trusted host keys field in the console.
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, 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
ftp.host.com
.
ssh-keyscan ftp.host.com
This 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 TrustedHostKeys
field for the
create-connector
command or into the Trusted host keys field in the console.
public String toString()
toString
in class Object
Object.toString()
public SftpConnectorConfig clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.