aws_sdk_rtbfabric/client/
create_link.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 [`CreateLink`](crate::operation::create_link::builders::CreateLinkFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`gateway_id(impl Into<String>)`](crate::operation::create_link::builders::CreateLinkFluentBuilder::gateway_id) / [`set_gateway_id(Option<String>)`](crate::operation::create_link::builders::CreateLinkFluentBuilder::set_gateway_id):<br>required: **true**<br><p>The unique identifier of the gateway.</p><br>
7    ///   - [`peer_gateway_id(impl Into<String>)`](crate::operation::create_link::builders::CreateLinkFluentBuilder::peer_gateway_id) / [`set_peer_gateway_id(Option<String>)`](crate::operation::create_link::builders::CreateLinkFluentBuilder::set_peer_gateway_id):<br>required: **true**<br><p>The unique identifier of the peer gateway.</p><br>
8    ///   - [`attributes(LinkAttributes)`](crate::operation::create_link::builders::CreateLinkFluentBuilder::attributes) / [`set_attributes(Option<LinkAttributes>)`](crate::operation::create_link::builders::CreateLinkFluentBuilder::set_attributes):<br>required: **false**<br><p>Attributes of the link.</p><br>
9    ///   - [`http_responder_allowed(bool)`](crate::operation::create_link::builders::CreateLinkFluentBuilder::http_responder_allowed) / [`set_http_responder_allowed(Option<bool>)`](crate::operation::create_link::builders::CreateLinkFluentBuilder::set_http_responder_allowed):<br>required: **false**<br><p>Boolean to specify if an HTTP responder is allowed.</p><br>
10    ///   - [`tags(impl Into<String>, impl Into<String>)`](crate::operation::create_link::builders::CreateLinkFluentBuilder::tags) / [`set_tags(Option<HashMap::<String, String>>)`](crate::operation::create_link::builders::CreateLinkFluentBuilder::set_tags):<br>required: **false**<br><p>A map of the key-value pairs of the tag or tags to assign to the resource.</p><br>
11    ///   - [`log_settings(LinkLogSettings)`](crate::operation::create_link::builders::CreateLinkFluentBuilder::log_settings) / [`set_log_settings(Option<LinkLogSettings>)`](crate::operation::create_link::builders::CreateLinkFluentBuilder::set_log_settings):<br>required: **true**<br><p>Settings for the application logs.</p><br>
12    /// - On success, responds with [`CreateLinkOutput`](crate::operation::create_link::CreateLinkOutput) with field(s):
13    ///   - [`gateway_id(String)`](crate::operation::create_link::CreateLinkOutput::gateway_id): <p>The unique identifier of the gateway.</p>
14    ///   - [`peer_gateway_id(String)`](crate::operation::create_link::CreateLinkOutput::peer_gateway_id): <p>The unique identifier of the peer gateway.</p>
15    ///   - [`status(LinkStatus)`](crate::operation::create_link::CreateLinkOutput::status): <p>The status of the request.</p>
16    ///   - [`created_at(DateTime)`](crate::operation::create_link::CreateLinkOutput::created_at): <p>The timestamp of when the link was created.</p>
17    ///   - [`updated_at(DateTime)`](crate::operation::create_link::CreateLinkOutput::updated_at): <p>The timestamp of when the link was updated.</p>
18    ///   - [`direction(Option<LinkDirection>)`](crate::operation::create_link::CreateLinkOutput::direction): <p>The direction of the link.</p>
19    ///   - [`flow_modules(Option<Vec::<ModuleConfiguration>>)`](crate::operation::create_link::CreateLinkOutput::flow_modules): <p>The configuration of flow modules.</p>
20    ///   - [`pending_flow_modules(Option<Vec::<ModuleConfiguration>>)`](crate::operation::create_link::CreateLinkOutput::pending_flow_modules): <p>The configuration of pending flow modules.</p>
21    ///   - [`attributes(Option<LinkAttributes>)`](crate::operation::create_link::CreateLinkOutput::attributes): <p>Attributes of the link.</p>
22    ///   - [`link_id(String)`](crate::operation::create_link::CreateLinkOutput::link_id): <p>The unique identifier of the link.</p>
23    ///   - [`customer_provided_id(Option<String>)`](crate::operation::create_link::CreateLinkOutput::customer_provided_id): <p>The customer-provided unique identifier of the link.</p>
24    /// - On failure, responds with [`SdkError<CreateLinkError>`](crate::operation::create_link::CreateLinkError)
25    pub fn create_link(&self) -> crate::operation::create_link::builders::CreateLinkFluentBuilder {
26        crate::operation::create_link::builders::CreateLinkFluentBuilder::new(self.handle.clone())
27    }
28}