#[non_exhaustive]pub struct SftpConnectorConfigBuilder { /* private fields */ }
Expand description
A builder for SftpConnectorConfig
.
Implementations§
source§impl SftpConnectorConfigBuilder
impl SftpConnectorConfigBuilder
sourcepub fn user_secret_id(self, input: impl Into<String>) -> Self
pub fn user_secret_id(self, input: impl Into<String>) -> Self
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 set_user_secret_id(self, input: Option<String>) -> Self
pub fn set_user_secret_id(self, input: Option<String>) -> Self
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 get_user_secret_id(&self) -> &Option<String>
pub fn get_user_secret_id(&self) -> &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.
sourcepub fn trusted_host_keys(self, input: impl Into<String>) -> Self
pub fn trusted_host_keys(self, input: impl Into<String>) -> Self
Appends an item to trusted_host_keys
.
To override the contents of this collection use set_trusted_host_keys
.
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.
sourcepub fn set_trusted_host_keys(self, input: Option<Vec<String>>) -> Self
pub fn set_trusted_host_keys(self, input: Option<Vec<String>>) -> Self
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.
sourcepub fn get_trusted_host_keys(&self) -> &Option<Vec<String>>
pub fn get_trusted_host_keys(&self) -> &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.
sourcepub fn build(self) -> SftpConnectorConfig
pub fn build(self) -> SftpConnectorConfig
Consumes the builder and constructs a SftpConnectorConfig
.
Trait Implementations§
source§impl Clone for SftpConnectorConfigBuilder
impl Clone for SftpConnectorConfigBuilder
source§fn clone(&self) -> SftpConnectorConfigBuilder
fn clone(&self) -> SftpConnectorConfigBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SftpConnectorConfigBuilder
impl Debug for SftpConnectorConfigBuilder
source§impl Default for SftpConnectorConfigBuilder
impl Default for SftpConnectorConfigBuilder
source§fn default() -> SftpConnectorConfigBuilder
fn default() -> SftpConnectorConfigBuilder
source§impl PartialEq for SftpConnectorConfigBuilder
impl PartialEq for SftpConnectorConfigBuilder
source§fn eq(&self, other: &SftpConnectorConfigBuilder) -> bool
fn eq(&self, other: &SftpConnectorConfigBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SftpConnectorConfigBuilder
Auto Trait Implementations§
impl Freeze for SftpConnectorConfigBuilder
impl RefUnwindSafe for SftpConnectorConfigBuilder
impl Send for SftpConnectorConfigBuilder
impl Sync for SftpConnectorConfigBuilder
impl Unpin for SftpConnectorConfigBuilder
impl UnwindSafe for SftpConnectorConfigBuilder
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> 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