aws_sdk_transfer/client/test_connection.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3 /// Constructs a fluent builder for the [`TestConnection`](crate::operation::test_connection::builders::TestConnectionFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`connector_id(impl Into<String>)`](crate::operation::test_connection::builders::TestConnectionFluentBuilder::connector_id) / [`set_connector_id(Option<String>)`](crate::operation::test_connection::builders::TestConnectionFluentBuilder::set_connector_id):<br>required: **true**<br><p>The unique identifier for the connector.</p><br>
7 /// - On success, responds with [`TestConnectionOutput`](crate::operation::test_connection::TestConnectionOutput) with field(s):
8 /// - [`connector_id(Option<String>)`](crate::operation::test_connection::TestConnectionOutput::connector_id): <p>Returns the identifier of the connector object that you are testing.</p>
9 /// - [`status(Option<String>)`](crate::operation::test_connection::TestConnectionOutput::status): <p>Returns <code>OK</code> for successful test, or <code>ERROR</code> if the test fails.</p>
10 /// - [`status_message(Option<String>)`](crate::operation::test_connection::TestConnectionOutput::status_message): <p>Returns <code>Connection succeeded</code> if the test is successful. Or, returns a descriptive error message if the test fails. The following list provides troubleshooting details, depending on the error message that you receive.</p> <ul> <li> <p>Verify that your secret name aligns with the one in Transfer Role permissions.</p></li> <li> <p>Verify the server URL in the connector configuration , and verify that the login credentials work successfully outside of the connector.</p></li> <li> <p>Verify that the secret exists and is formatted correctly.</p></li> <li> <p>Verify that the trusted host key in the connector configuration matches the <code>ssh-keyscan</code> output.</p></li> </ul>
11 /// - [`sftp_connection_details(Option<SftpConnectorConnectionDetails>)`](crate::operation::test_connection::TestConnectionOutput::sftp_connection_details): <p>Structure that contains the SFTP connector host key.</p>
12 /// - On failure, responds with [`SdkError<TestConnectionError>`](crate::operation::test_connection::TestConnectionError)
13 pub fn test_connection(&self) -> crate::operation::test_connection::builders::TestConnectionFluentBuilder {
14 crate::operation::test_connection::builders::TestConnectionFluentBuilder::new(self.handle.clone())
15 }
16}