#[non_exhaustive]pub struct CreateGatewayInput {
pub egress_cidr_blocks: Option<Vec<String>>,
pub name: Option<String>,
pub networks: Option<Vec<GatewayNetwork>>,
}Expand description
Creates a new gateway. The request must include at least one network (up to 4).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.egress_cidr_blocks: Option<Vec<String>>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.
name: Option<String>The name of the gateway. This name can not be modified after the gateway is created.
networks: Option<Vec<GatewayNetwork>>The list of networks that you want to add.
Implementations§
source§impl CreateGatewayInput
impl CreateGatewayInput
sourcepub fn egress_cidr_blocks(&self) -> &[String]
pub fn egress_cidr_blocks(&self) -> &[String]
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.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .egress_cidr_blocks.is_none().
sourcepub fn name(&self) -> Option<&str>
pub fn name(&self) -> Option<&str>
The name of the gateway. This name can not be modified after the gateway is created.
sourcepub fn networks(&self) -> &[GatewayNetwork]
pub fn networks(&self) -> &[GatewayNetwork]
The list of networks that you want to add.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .networks.is_none().
source§impl CreateGatewayInput
impl CreateGatewayInput
sourcepub fn builder() -> CreateGatewayInputBuilder
pub fn builder() -> CreateGatewayInputBuilder
Creates a new builder-style object to manufacture CreateGatewayInput.
Trait Implementations§
source§impl Clone for CreateGatewayInput
impl Clone for CreateGatewayInput
source§fn clone(&self) -> CreateGatewayInput
fn clone(&self) -> CreateGatewayInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for CreateGatewayInput
impl Debug for CreateGatewayInput
source§impl PartialEq for CreateGatewayInput
impl PartialEq for CreateGatewayInput
source§fn eq(&self, other: &CreateGatewayInput) -> bool
fn eq(&self, other: &CreateGatewayInput) -> bool
self and other values to be equal, and is used
by ==.