aws_sdk_ec2/client/create_carrier_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 [`CreateCarrierGateway`](crate::operation::create_carrier_gateway::builders::CreateCarrierGatewayFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`vpc_id(impl Into<String>)`](crate::operation::create_carrier_gateway::builders::CreateCarrierGatewayFluentBuilder::vpc_id) / [`set_vpc_id(Option<String>)`](crate::operation::create_carrier_gateway::builders::CreateCarrierGatewayFluentBuilder::set_vpc_id):<br>required: **true**<br><p>The ID of the VPC to associate with the carrier gateway.</p><br>
7 /// - [`tag_specifications(TagSpecification)`](crate::operation::create_carrier_gateway::builders::CreateCarrierGatewayFluentBuilder::tag_specifications) / [`set_tag_specifications(Option<Vec::<TagSpecification>>)`](crate::operation::create_carrier_gateway::builders::CreateCarrierGatewayFluentBuilder::set_tag_specifications):<br>required: **false**<br><p>The tags to associate with the carrier gateway.</p><br>
8 /// - [`dry_run(bool)`](crate::operation::create_carrier_gateway::builders::CreateCarrierGatewayFluentBuilder::dry_run) / [`set_dry_run(Option<bool>)`](crate::operation::create_carrier_gateway::builders::CreateCarrierGatewayFluentBuilder::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>
9 /// - [`client_token(impl Into<String>)`](crate::operation::create_carrier_gateway::builders::CreateCarrierGatewayFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::create_carrier_gateway::builders::CreateCarrierGatewayFluentBuilder::set_client_token):<br>required: **false**<br><p>Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see <a href="https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html">How to ensure idempotency</a>.</p><br>
10 /// - On success, responds with [`CreateCarrierGatewayOutput`](crate::operation::create_carrier_gateway::CreateCarrierGatewayOutput) with field(s):
11 /// - [`carrier_gateway(Option<CarrierGateway>)`](crate::operation::create_carrier_gateway::CreateCarrierGatewayOutput::carrier_gateway): <p>Information about the carrier gateway.</p>
12 /// - On failure, responds with [`SdkError<CreateCarrierGatewayError>`](crate::operation::create_carrier_gateway::CreateCarrierGatewayError)
13 pub fn create_carrier_gateway(&self) -> crate::operation::create_carrier_gateway::builders::CreateCarrierGatewayFluentBuilder {
14 crate::operation::create_carrier_gateway::builders::CreateCarrierGatewayFluentBuilder::new(self.handle.clone())
15 }
16}