aws_sdk_eventbridge/client/
update_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 [`UpdateConnection`](crate::operation::update_connection::builders::UpdateConnectionFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`name(impl Into<String>)`](crate::operation::update_connection::builders::UpdateConnectionFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::update_connection::builders::UpdateConnectionFluentBuilder::set_name):<br>required: **true**<br><p>The name of the connection to update.</p><br>
7    ///   - [`description(impl Into<String>)`](crate::operation::update_connection::builders::UpdateConnectionFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::update_connection::builders::UpdateConnectionFluentBuilder::set_description):<br>required: **false**<br><p>A description for the connection.</p><br>
8    ///   - [`authorization_type(ConnectionAuthorizationType)`](crate::operation::update_connection::builders::UpdateConnectionFluentBuilder::authorization_type) / [`set_authorization_type(Option<ConnectionAuthorizationType>)`](crate::operation::update_connection::builders::UpdateConnectionFluentBuilder::set_authorization_type):<br>required: **false**<br><p>The type of authorization to use for the connection.</p><br>
9    ///   - [`auth_parameters(UpdateConnectionAuthRequestParameters)`](crate::operation::update_connection::builders::UpdateConnectionFluentBuilder::auth_parameters) / [`set_auth_parameters(Option<UpdateConnectionAuthRequestParameters>)`](crate::operation::update_connection::builders::UpdateConnectionFluentBuilder::set_auth_parameters):<br>required: **false**<br><p>The authorization parameters to use for the connection.</p><br>
10    ///   - [`invocation_connectivity_parameters(ConnectivityResourceParameters)`](crate::operation::update_connection::builders::UpdateConnectionFluentBuilder::invocation_connectivity_parameters) / [`set_invocation_connectivity_parameters(Option<ConnectivityResourceParameters>)`](crate::operation::update_connection::builders::UpdateConnectionFluentBuilder::set_invocation_connectivity_parameters):<br>required: **false**<br><p>For connections to private APIs, the parameters to use for invoking the API.</p> <p>For more information, see <a href="https://docs.aws.amazon.com/eventbridge/latest/userguide/connection-private.html">Connecting to private APIs</a> in the <i> <i>Amazon EventBridge User Guide</i> </i>.</p><br>
11    ///   - [`kms_key_identifier(impl Into<String>)`](crate::operation::update_connection::builders::UpdateConnectionFluentBuilder::kms_key_identifier) / [`set_kms_key_identifier(Option<String>)`](crate::operation::update_connection::builders::UpdateConnectionFluentBuilder::set_kms_key_identifier):<br>required: **false**<br><p>The identifier of the KMS customer managed key for EventBridge to use, if you choose to use a customer managed key to encrypt this connection. The identifier can be the key Amazon Resource Name (ARN), KeyId, key alias, or key alias ARN.</p> <p>If you do not specify a customer managed key identifier, EventBridge uses an Amazon Web Services owned key to encrypt the connection.</p> <p>For more information, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/viewing-keys.html">Identify and view keys</a> in the <i>Key Management Service Developer Guide</i>.</p><br>
12    /// - On success, responds with [`UpdateConnectionOutput`](crate::operation::update_connection::UpdateConnectionOutput) with field(s):
13    ///   - [`connection_arn(Option<String>)`](crate::operation::update_connection::UpdateConnectionOutput::connection_arn): <p>The ARN of the connection that was updated.</p>
14    ///   - [`connection_state(Option<ConnectionState>)`](crate::operation::update_connection::UpdateConnectionOutput::connection_state): <p>The state of the connection that was updated.</p>
15    ///   - [`creation_time(Option<DateTime>)`](crate::operation::update_connection::UpdateConnectionOutput::creation_time): <p>A time stamp for the time that the connection was created.</p>
16    ///   - [`last_modified_time(Option<DateTime>)`](crate::operation::update_connection::UpdateConnectionOutput::last_modified_time): <p>A time stamp for the time that the connection was last modified.</p>
17    ///   - [`last_authorized_time(Option<DateTime>)`](crate::operation::update_connection::UpdateConnectionOutput::last_authorized_time): <p>A time stamp for the time that the connection was last authorized.</p>
18    /// - On failure, responds with [`SdkError<UpdateConnectionError>`](crate::operation::update_connection::UpdateConnectionError)
19    pub fn update_connection(&self) -> crate::operation::update_connection::builders::UpdateConnectionFluentBuilder {
20        crate::operation::update_connection::builders::UpdateConnectionFluentBuilder::new(self.handle.clone())
21    }
22}