Struct aws_sdk_gamelift::types::IpPermission
source · #[non_exhaustive]pub struct IpPermission {
pub from_port: Option<i32>,
pub to_port: Option<i32>,
pub ip_range: Option<String>,
pub protocol: Option<IpProtocol>,
}
Expand description
A range of IP addresses and port settings that allow inbound traffic to connect to processes on an instance in a fleet. Processes are assigned an IP address/port number combination, which must fall into the fleet's allowed ranges. For container fleets, the port settings must use the same port numbers as the fleet's connection ports.
For Realtime Servers fleets, Amazon GameLift automatically opens two port ranges, one for TCP messaging and one for UDP.
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.from_port: Option<i32>
A starting value for a range of allowed port numbers.
For fleets using Linux builds, only ports 22
and 1026-60000
are valid.
For fleets using Windows builds, only ports 1026-60000
are valid.
to_port: Option<i32>
An ending value for a range of allowed port numbers. Port numbers are end-inclusive. This value must be equal to or greater than FromPort
.
For fleets using Linux builds, only ports 22
and 1026-60000
are valid.
For fleets using Windows builds, only ports 1026-60000
are valid.
ip_range: Option<String>
A range of allowed IP addresses. This value must be expressed in CIDR notation. Example: "000.000.000.000/[subnet mask]
" or optionally the shortened version "0.0.0.0/[subnet mask]
".
protocol: Option<IpProtocol>
The network communication protocol used by the fleet.
Implementations§
source§impl IpPermission
impl IpPermission
sourcepub fn from_port(&self) -> Option<i32>
pub fn from_port(&self) -> Option<i32>
A starting value for a range of allowed port numbers.
For fleets using Linux builds, only ports 22
and 1026-60000
are valid.
For fleets using Windows builds, only ports 1026-60000
are valid.
sourcepub fn to_port(&self) -> Option<i32>
pub fn to_port(&self) -> Option<i32>
An ending value for a range of allowed port numbers. Port numbers are end-inclusive. This value must be equal to or greater than FromPort
.
For fleets using Linux builds, only ports 22
and 1026-60000
are valid.
For fleets using Windows builds, only ports 1026-60000
are valid.
sourcepub fn ip_range(&self) -> Option<&str>
pub fn ip_range(&self) -> Option<&str>
A range of allowed IP addresses. This value must be expressed in CIDR notation. Example: "000.000.000.000/[subnet mask]
" or optionally the shortened version "0.0.0.0/[subnet mask]
".
sourcepub fn protocol(&self) -> Option<&IpProtocol>
pub fn protocol(&self) -> Option<&IpProtocol>
The network communication protocol used by the fleet.
source§impl IpPermission
impl IpPermission
sourcepub fn builder() -> IpPermissionBuilder
pub fn builder() -> IpPermissionBuilder
Creates a new builder-style object to manufacture IpPermission
.
Trait Implementations§
source§impl Clone for IpPermission
impl Clone for IpPermission
source§fn clone(&self) -> IpPermission
fn clone(&self) -> IpPermission
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for IpPermission
impl Debug for IpPermission
source§impl PartialEq for IpPermission
impl PartialEq for IpPermission
source§fn eq(&self, other: &IpPermission) -> bool
fn eq(&self, other: &IpPermission) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for IpPermission
Auto Trait Implementations§
impl Freeze for IpPermission
impl RefUnwindSafe for IpPermission
impl Send for IpPermission
impl Sync for IpPermission
impl Unpin for IpPermission
impl UnwindSafe for IpPermission
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