aws_sdk_ec2/client/
create_transit_gateway_peering_attachment.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 [`CreateTransitGatewayPeeringAttachment`](crate::operation::create_transit_gateway_peering_attachment::builders::CreateTransitGatewayPeeringAttachmentFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`transit_gateway_id(impl Into<String>)`](crate::operation::create_transit_gateway_peering_attachment::builders::CreateTransitGatewayPeeringAttachmentFluentBuilder::transit_gateway_id) / [`set_transit_gateway_id(Option<String>)`](crate::operation::create_transit_gateway_peering_attachment::builders::CreateTransitGatewayPeeringAttachmentFluentBuilder::set_transit_gateway_id):<br>required: **true**<br><p>The ID of the transit gateway.</p><br>
7    ///   - [`peer_transit_gateway_id(impl Into<String>)`](crate::operation::create_transit_gateway_peering_attachment::builders::CreateTransitGatewayPeeringAttachmentFluentBuilder::peer_transit_gateway_id) / [`set_peer_transit_gateway_id(Option<String>)`](crate::operation::create_transit_gateway_peering_attachment::builders::CreateTransitGatewayPeeringAttachmentFluentBuilder::set_peer_transit_gateway_id):<br>required: **true**<br><p>The ID of the peer transit gateway with which to create the peering attachment.</p><br>
8    ///   - [`peer_account_id(impl Into<String>)`](crate::operation::create_transit_gateway_peering_attachment::builders::CreateTransitGatewayPeeringAttachmentFluentBuilder::peer_account_id) / [`set_peer_account_id(Option<String>)`](crate::operation::create_transit_gateway_peering_attachment::builders::CreateTransitGatewayPeeringAttachmentFluentBuilder::set_peer_account_id):<br>required: **true**<br><p>The ID of the Amazon Web Services account that owns the peer transit gateway.</p><br>
9    ///   - [`peer_region(impl Into<String>)`](crate::operation::create_transit_gateway_peering_attachment::builders::CreateTransitGatewayPeeringAttachmentFluentBuilder::peer_region) / [`set_peer_region(Option<String>)`](crate::operation::create_transit_gateway_peering_attachment::builders::CreateTransitGatewayPeeringAttachmentFluentBuilder::set_peer_region):<br>required: **true**<br><p>The Region where the peer transit gateway is located.</p><br>
10    ///   - [`options(CreateTransitGatewayPeeringAttachmentRequestOptions)`](crate::operation::create_transit_gateway_peering_attachment::builders::CreateTransitGatewayPeeringAttachmentFluentBuilder::options) / [`set_options(Option<CreateTransitGatewayPeeringAttachmentRequestOptions>)`](crate::operation::create_transit_gateway_peering_attachment::builders::CreateTransitGatewayPeeringAttachmentFluentBuilder::set_options):<br>required: **false**<br><p>Requests a transit gateway peering attachment.</p><br>
11    ///   - [`tag_specifications(TagSpecification)`](crate::operation::create_transit_gateway_peering_attachment::builders::CreateTransitGatewayPeeringAttachmentFluentBuilder::tag_specifications) / [`set_tag_specifications(Option<Vec::<TagSpecification>>)`](crate::operation::create_transit_gateway_peering_attachment::builders::CreateTransitGatewayPeeringAttachmentFluentBuilder::set_tag_specifications):<br>required: **false**<br><p>The tags to apply to the transit gateway peering attachment.</p><br>
12    ///   - [`dry_run(bool)`](crate::operation::create_transit_gateway_peering_attachment::builders::CreateTransitGatewayPeeringAttachmentFluentBuilder::dry_run) / [`set_dry_run(Option<bool>)`](crate::operation::create_transit_gateway_peering_attachment::builders::CreateTransitGatewayPeeringAttachmentFluentBuilder::set_dry_run):<br>required: **false**<br><p>Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.</p><br>
13    /// - On success, responds with [`CreateTransitGatewayPeeringAttachmentOutput`](crate::operation::create_transit_gateway_peering_attachment::CreateTransitGatewayPeeringAttachmentOutput) with field(s):
14    ///   - [`transit_gateway_peering_attachment(Option<TransitGatewayPeeringAttachment>)`](crate::operation::create_transit_gateway_peering_attachment::CreateTransitGatewayPeeringAttachmentOutput::transit_gateway_peering_attachment): <p>The transit gateway peering attachment.</p>
15    /// - On failure, responds with [`SdkError<CreateTransitGatewayPeeringAttachmentError>`](crate::operation::create_transit_gateway_peering_attachment::CreateTransitGatewayPeeringAttachmentError)
16    pub fn create_transit_gateway_peering_attachment(
17        &self,
18    ) -> crate::operation::create_transit_gateway_peering_attachment::builders::CreateTransitGatewayPeeringAttachmentFluentBuilder {
19        crate::operation::create_transit_gateway_peering_attachment::builders::CreateTransitGatewayPeeringAttachmentFluentBuilder::new(
20            self.handle.clone(),
21        )
22    }
23}