1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`AttachInternetGateway`](crate::operation::attach_internet_gateway::builders::AttachInternetGatewayFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`dry_run(bool)`](crate::operation::attach_internet_gateway::builders::AttachInternetGatewayFluentBuilder::dry_run) / [`set_dry_run(Option<bool>)`](crate::operation::attach_internet_gateway::builders::AttachInternetGatewayFluentBuilder::set_dry_run): <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>
    ///   - [`internet_gateway_id(impl Into<String>)`](crate::operation::attach_internet_gateway::builders::AttachInternetGatewayFluentBuilder::internet_gateway_id) / [`set_internet_gateway_id(Option<String>)`](crate::operation::attach_internet_gateway::builders::AttachInternetGatewayFluentBuilder::set_internet_gateway_id): <p>The ID of the internet gateway.</p>
    ///   - [`vpc_id(impl Into<String>)`](crate::operation::attach_internet_gateway::builders::AttachInternetGatewayFluentBuilder::vpc_id) / [`set_vpc_id(Option<String>)`](crate::operation::attach_internet_gateway::builders::AttachInternetGatewayFluentBuilder::set_vpc_id): <p>The ID of the VPC.</p>
    /// - On success, responds with [`AttachInternetGatewayOutput`](crate::operation::attach_internet_gateway::AttachInternetGatewayOutput)
    /// - On failure, responds with [`SdkError<AttachInternetGatewayError>`](crate::operation::attach_internet_gateway::AttachInternetGatewayError)
    pub fn attach_internet_gateway(
        &self,
    ) -> crate::operation::attach_internet_gateway::builders::AttachInternetGatewayFluentBuilder
    {
        crate::operation::attach_internet_gateway::builders::AttachInternetGatewayFluentBuilder::new(
            self.handle.clone(),
        )
    }
}