aws_sdk_ec2/client/create_internet_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 [`CreateInternetGateway`](crate::operation::create_internet_gateway::builders::CreateInternetGatewayFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`tag_specifications(TagSpecification)`](crate::operation::create_internet_gateway::builders::CreateInternetGatewayFluentBuilder::tag_specifications) / [`set_tag_specifications(Option<Vec::<TagSpecification>>)`](crate::operation::create_internet_gateway::builders::CreateInternetGatewayFluentBuilder::set_tag_specifications):<br>required: **false**<br><p>The tags to assign to the internet gateway.</p><br>
7 /// - [`dry_run(bool)`](crate::operation::create_internet_gateway::builders::CreateInternetGatewayFluentBuilder::dry_run) / [`set_dry_run(Option<bool>)`](crate::operation::create_internet_gateway::builders::CreateInternetGatewayFluentBuilder::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>
8 /// - On success, responds with [`CreateInternetGatewayOutput`](crate::operation::create_internet_gateway::CreateInternetGatewayOutput) with field(s):
9 /// - [`internet_gateway(Option<InternetGateway>)`](crate::operation::create_internet_gateway::CreateInternetGatewayOutput::internet_gateway): <p>Information about the internet gateway.</p>
10 /// - On failure, responds with [`SdkError<CreateInternetGatewayError>`](crate::operation::create_internet_gateway::CreateInternetGatewayError)
11 pub fn create_internet_gateway(&self) -> crate::operation::create_internet_gateway::builders::CreateInternetGatewayFluentBuilder {
12 crate::operation::create_internet_gateway::builders::CreateInternetGatewayFluentBuilder::new(self.handle.clone())
13 }
14}