aws_sdk_mediaconnect/client/create_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 [`CreateGateway`](crate::operation::create_gateway::builders::CreateGatewayFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`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><p>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.</p><br>
7 /// - [`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><p>The name of the gateway. This name can not be modified after the gateway is created.</p><br>
8 /// - [`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><p>The list of networks that you want to add to the gateway.</p><br>
9 /// - On success, responds with [`CreateGatewayOutput`](crate::operation::create_gateway::CreateGatewayOutput) with field(s):
10 /// - [`gateway(Option<Gateway>)`](crate::operation::create_gateway::CreateGatewayOutput::gateway): <p>The gateway that you created.</p>
11 /// - On failure, responds with [`SdkError<CreateGatewayError>`](crate::operation::create_gateway::CreateGatewayError)
12 pub fn create_gateway(&self) -> crate::operation::create_gateway::builders::CreateGatewayFluentBuilder {
13 crate::operation::create_gateway::builders::CreateGatewayFluentBuilder::new(self.handle.clone())
14 }
15}