aws_sdk_ec2/client/
create_transit_gateway.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 [`CreateTransitGateway`](crate::operation::create_transit_gateway::builders::CreateTransitGatewayFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`description(impl Into<String>)`](crate::operation::create_transit_gateway::builders::CreateTransitGatewayFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::create_transit_gateway::builders::CreateTransitGatewayFluentBuilder::set_description):<br>required: **false**<br><p>A description of the transit gateway.</p><br>
7    ///   - [`options(TransitGatewayRequestOptions)`](crate::operation::create_transit_gateway::builders::CreateTransitGatewayFluentBuilder::options) / [`set_options(Option<TransitGatewayRequestOptions>)`](crate::operation::create_transit_gateway::builders::CreateTransitGatewayFluentBuilder::set_options):<br>required: **false**<br><p>The transit gateway options.</p><br>
8    ///   - [`tag_specifications(TagSpecification)`](crate::operation::create_transit_gateway::builders::CreateTransitGatewayFluentBuilder::tag_specifications) / [`set_tag_specifications(Option<Vec::<TagSpecification>>)`](crate::operation::create_transit_gateway::builders::CreateTransitGatewayFluentBuilder::set_tag_specifications):<br>required: **false**<br><p>The tags to apply to the transit gateway.</p><br>
9    ///   - [`dry_run(bool)`](crate::operation::create_transit_gateway::builders::CreateTransitGatewayFluentBuilder::dry_run) / [`set_dry_run(Option<bool>)`](crate::operation::create_transit_gateway::builders::CreateTransitGatewayFluentBuilder::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>
10    /// - On success, responds with [`CreateTransitGatewayOutput`](crate::operation::create_transit_gateway::CreateTransitGatewayOutput) with field(s):
11    ///   - [`transit_gateway(Option<TransitGateway>)`](crate::operation::create_transit_gateway::CreateTransitGatewayOutput::transit_gateway): <p>Information about the transit gateway.</p>
12    /// - On failure, responds with [`SdkError<CreateTransitGatewayError>`](crate::operation::create_transit_gateway::CreateTransitGatewayError)
13    pub fn create_transit_gateway(&self) -> crate::operation::create_transit_gateway::builders::CreateTransitGatewayFluentBuilder {
14        crate::operation::create_transit_gateway::builders::CreateTransitGatewayFluentBuilder::new(self.handle.clone())
15    }
16}