aws_sdk_transfer/client/update_connector.rs
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`UpdateConnector`](crate::operation::update_connector::builders::UpdateConnectorFluentBuilder) operation.
///
/// - The fluent builder is configurable:
/// - [`connector_id(impl Into<String>)`](crate::operation::update_connector::builders::UpdateConnectorFluentBuilder::connector_id) / [`set_connector_id(Option<String>)`](crate::operation::update_connector::builders::UpdateConnectorFluentBuilder::set_connector_id):<br>required: **true**<br><p>The unique identifier for the connector.</p><br>
/// - [`url(impl Into<String>)`](crate::operation::update_connector::builders::UpdateConnectorFluentBuilder::url) / [`set_url(Option<String>)`](crate::operation::update_connector::builders::UpdateConnectorFluentBuilder::set_url):<br>required: **false**<br><p>The URL of the partner's AS2 or SFTP endpoint.</p><br>
/// - [`as2_config(As2ConnectorConfig)`](crate::operation::update_connector::builders::UpdateConnectorFluentBuilder::as2_config) / [`set_as2_config(Option<As2ConnectorConfig>)`](crate::operation::update_connector::builders::UpdateConnectorFluentBuilder::set_as2_config):<br>required: **false**<br><p>A structure that contains the parameters for an AS2 connector object.</p><br>
/// - [`access_role(impl Into<String>)`](crate::operation::update_connector::builders::UpdateConnectorFluentBuilder::access_role) / [`set_access_role(Option<String>)`](crate::operation::update_connector::builders::UpdateConnectorFluentBuilder::set_access_role):<br>required: **false**<br><p>Connectors are used to send files using either the AS2 or SFTP protocol. For the access role, provide the Amazon Resource Name (ARN) of the Identity and Access Management role to use.</p> <p><b>For AS2 connectors</b></p> <p>With AS2, you can send files by calling <code>StartFileTransfer</code> and specifying the file paths in the request parameter, <code>SendFilePaths</code>. We use the file’s parent directory (for example, for <code>--send-file-paths /bucket/dir/file.txt</code>, parent directory is <code>/bucket/dir/</code>) to temporarily store a processed AS2 message file, store the MDN when we receive them from the partner, and write a final JSON file containing relevant metadata of the transmission. So, the <code>AccessRole</code> needs to provide read and write access to the parent directory of the file location used in the <code>StartFileTransfer</code> request. Additionally, you need to provide read and write access to the parent directory of the files that you intend to send with <code>StartFileTransfer</code>.</p> <p>If you are using Basic authentication for your AS2 connector, the access role requires the <code>secretsmanager:GetSecretValue</code> permission for the secret. If the secret is encrypted using a customer-managed key instead of the Amazon Web Services managed key in Secrets Manager, then the role also needs the <code>kms:Decrypt</code> permission for that key.</p> <p><b>For SFTP connectors</b></p> <p>Make sure that the access role provides read and write access to the parent directory of the file location that's used in the <code>StartFileTransfer</code> request. Additionally, make sure that the role provides <code>secretsmanager:GetSecretValue</code> permission to Secrets Manager.</p><br>
/// - [`logging_role(impl Into<String>)`](crate::operation::update_connector::builders::UpdateConnectorFluentBuilder::logging_role) / [`set_logging_role(Option<String>)`](crate::operation::update_connector::builders::UpdateConnectorFluentBuilder::set_logging_role):<br>required: **false**<br><p>The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that allows a connector to turn on CloudWatch logging for Amazon S3 events. When set, you can view connector activity in your CloudWatch logs.</p><br>
/// - [`sftp_config(SftpConnectorConfig)`](crate::operation::update_connector::builders::UpdateConnectorFluentBuilder::sftp_config) / [`set_sftp_config(Option<SftpConnectorConfig>)`](crate::operation::update_connector::builders::UpdateConnectorFluentBuilder::set_sftp_config):<br>required: **false**<br><p>A structure that contains the parameters for an SFTP connector object.</p><br>
/// - [`security_policy_name(impl Into<String>)`](crate::operation::update_connector::builders::UpdateConnectorFluentBuilder::security_policy_name) / [`set_security_policy_name(Option<String>)`](crate::operation::update_connector::builders::UpdateConnectorFluentBuilder::set_security_policy_name):<br>required: **false**<br><p>Specifies the name of the security policy for the connector.</p><br>
/// - On success, responds with [`UpdateConnectorOutput`](crate::operation::update_connector::UpdateConnectorOutput) with field(s):
/// - [`connector_id(String)`](crate::operation::update_connector::UpdateConnectorOutput::connector_id): <p>Returns the identifier of the connector object that you are updating.</p>
/// - On failure, responds with [`SdkError<UpdateConnectorError>`](crate::operation::update_connector::UpdateConnectorError)
pub fn update_connector(&self) -> crate::operation::update_connector::builders::UpdateConnectorFluentBuilder {
crate::operation::update_connector::builders::UpdateConnectorFluentBuilder::new(self.handle.clone())
}
}