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.
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.
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 must be the Amazon Resource Name (ARN) of the secret.
trusted_host_keys: Option<Vec<String>>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 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.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.
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 must be the Amazon Resource Name (ARN) of the secret.
sourcepub fn trusted_host_keys(&self) -> &[String]
pub fn trusted_host_keys(&self) -> &[String]
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 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.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.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .trusted_host_keys.is_none().
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
impl StructuralPartialEq for SftpConnectorConfig
Auto Trait Implementations§
impl Freeze for SftpConnectorConfig
impl RefUnwindSafe for SftpConnectorConfig
impl Send for SftpConnectorConfig
impl Sync for SftpConnectorConfig
impl Unpin for SftpConnectorConfig
impl UnwindSafe for SftpConnectorConfig
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more