#[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 ==
.impl StructuralPartialEq for CreateGatewayInput
Auto Trait Implementations§
impl Freeze for CreateGatewayInput
impl RefUnwindSafe for CreateGatewayInput
impl Send for CreateGatewayInput
impl Sync for CreateGatewayInput
impl Unpin for CreateGatewayInput
impl UnwindSafe for CreateGatewayInput
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more