1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`CreateGateway`](crate::operation::create_gateway::builders::CreateGatewayFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`egress_cidr_blocks(impl Into<String>)`](crate::operation::create_gateway::builders::CreateGatewayFluentBuilder::egress_cidr_blocks) / [`set_egress_cidr_blocks(Option<Vec::<String>>)`](crate::operation::create_gateway::builders::CreateGatewayFluentBuilder::set_egress_cidr_blocks):<br>required: **true**<br>The range of IP addresses that are allowed to contribute content or initiate output requests for flows communicating with this gateway. These IP addresses should be in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16.<br>
    ///   - [`name(impl Into<String>)`](crate::operation::create_gateway::builders::CreateGatewayFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::create_gateway::builders::CreateGatewayFluentBuilder::set_name):<br>required: **true**<br>The name of the gateway. This name can not be modified after the gateway is created.<br>
    ///   - [`networks(GatewayNetwork)`](crate::operation::create_gateway::builders::CreateGatewayFluentBuilder::networks) / [`set_networks(Option<Vec::<GatewayNetwork>>)`](crate::operation::create_gateway::builders::CreateGatewayFluentBuilder::set_networks):<br>required: **true**<br>The list of networks that you want to add.<br>
    /// - On success, responds with [`CreateGatewayOutput`](crate::operation::create_gateway::CreateGatewayOutput) with field(s):
    ///   - [`gateway(Option<Gateway>)`](crate::operation::create_gateway::CreateGatewayOutput::gateway): The settings for a gateway, including its networks.
    /// - On failure, responds with [`SdkError<CreateGatewayError>`](crate::operation::create_gateway::CreateGatewayError)
    pub fn create_gateway(&self) -> crate::operation::create_gateway::builders::CreateGatewayFluentBuilder {
        crate::operation::create_gateway::builders::CreateGatewayFluentBuilder::new(self.handle.clone())
    }
}