Struct aws_sdk_transfer::types::SftpConnectorConfig
source · #[non_exhaustive]pub struct SftpConnectorConfig {
pub user_secret_id: Option<String>,
pub trusted_host_keys: Option<Vec<String>>,
}Expand description
Contains the details for an SFTP connector object. The connector object is used for transferring files to and from a partner's SFTP server.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.user_secret_id: Option<String>The identifier for the secret (in Amazon Web Services Secrets Manager) that contains the SFTP user's private key, password, or both. The identifier can be either the Amazon Resource Name (ARN) or the name of the secret.
trusted_host_keys: Option<Vec<String>>The public portion of the host key, or keys, that are used to authenticate the user to 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
, , and an optional
, with spaces between each element. Specify only the
and : do not enter the
portion of the key.
For the trusted host key, Transfer Family accepts RSA and ECDSA keys.
-
For RSA keys, the key type is
ssh-rsa. -
For ECDSA keys, the key type is either
ecdsa-sha2-nistp256,ecdsa-sha2-nistp384, orecdsa-sha2-nistp521, depending on the size of the key you generated.
Implementations§
source§impl SftpConnectorConfig
impl SftpConnectorConfig
sourcepub fn user_secret_id(&self) -> Option<&str>
pub fn user_secret_id(&self) -> Option<&str>
The identifier for the secret (in Amazon Web Services Secrets Manager) that contains the SFTP user's private key, password, or both. The identifier can be either the Amazon Resource Name (ARN) or the name of the secret.
sourcepub fn trusted_host_keys(&self) -> Option<&[String]>
pub fn trusted_host_keys(&self) -> Option<&[String]>
The public portion of the host key, or keys, that are used to authenticate the user to 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
, , and an optional
, with spaces between each element. Specify only the
and : do not enter the
portion of the key.
For the trusted host key, Transfer Family accepts RSA and ECDSA keys.
-
For RSA keys, the key type is
ssh-rsa. -
For ECDSA keys, the key type is either
ecdsa-sha2-nistp256,ecdsa-sha2-nistp384, orecdsa-sha2-nistp521, depending on the size of the key you generated.
source§impl SftpConnectorConfig
impl SftpConnectorConfig
sourcepub fn builder() -> SftpConnectorConfigBuilder
pub fn builder() -> SftpConnectorConfigBuilder
Creates a new builder-style object to manufacture SftpConnectorConfig.
Trait Implementations§
source§impl Clone for SftpConnectorConfig
impl Clone for SftpConnectorConfig
source§fn clone(&self) -> SftpConnectorConfig
fn clone(&self) -> SftpConnectorConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for SftpConnectorConfig
impl Debug for SftpConnectorConfig
source§impl PartialEq for SftpConnectorConfig
impl PartialEq for SftpConnectorConfig
source§fn eq(&self, other: &SftpConnectorConfig) -> bool
fn eq(&self, other: &SftpConnectorConfig) -> bool
self and other values to be equal, and is used
by ==.