#[non_exhaustive]pub struct UpdateFleetAttributesInput {
pub fleet_id: Option<String>,
pub name: Option<String>,
pub description: Option<String>,
pub new_game_session_protection_policy: Option<ProtectionPolicy>,
pub resource_creation_limit_policy: Option<ResourceCreationLimitPolicy>,
pub metric_groups: Option<Vec<String>>,
pub anywhere_configuration: Option<AnywhereConfiguration>,
}
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.fleet_id: Option<String>
A unique identifier for the fleet to update attribute metadata for. You can use either the fleet ID or ARN value.
name: Option<String>
A descriptive label that is associated with a fleet. Fleet names do not need to be unique.
description: Option<String>
A human-readable description of a fleet.
new_game_session_protection_policy: Option<ProtectionPolicy>
The game session protection policy to apply to all new game sessions created in this fleet. Game sessions that already exist are not affected. You can set protection for individual game sessions using UpdateGameSession .
-
NoProtection -- The game session can be terminated during a scale-down event.
-
FullProtection -- If the game session is in an
ACTIVE
status, it cannot be terminated during a scale-down event.
resource_creation_limit_policy: Option<ResourceCreationLimitPolicy>
Policy settings that limit the number of game sessions an individual player can create over a span of time.
metric_groups: Option<Vec<String>>
The name of a metric group to add this fleet to. Use a metric group in Amazon CloudWatch to aggregate the metrics from multiple fleets. Provide an existing metric group name, or create a new metric group by providing a new name. A fleet can only be in one metric group at a time.
anywhere_configuration: Option<AnywhereConfiguration>
Amazon GameLift Anywhere configuration options.
Implementations§
source§impl UpdateFleetAttributesInput
impl UpdateFleetAttributesInput
sourcepub fn fleet_id(&self) -> Option<&str>
pub fn fleet_id(&self) -> Option<&str>
A unique identifier for the fleet to update attribute metadata for. You can use either the fleet ID or ARN value.
sourcepub fn name(&self) -> Option<&str>
pub fn name(&self) -> Option<&str>
A descriptive label that is associated with a fleet. Fleet names do not need to be unique.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
A human-readable description of a fleet.
sourcepub fn new_game_session_protection_policy(&self) -> Option<&ProtectionPolicy>
pub fn new_game_session_protection_policy(&self) -> Option<&ProtectionPolicy>
The game session protection policy to apply to all new game sessions created in this fleet. Game sessions that already exist are not affected. You can set protection for individual game sessions using UpdateGameSession .
-
NoProtection -- The game session can be terminated during a scale-down event.
-
FullProtection -- If the game session is in an
ACTIVE
status, it cannot be terminated during a scale-down event.
sourcepub fn resource_creation_limit_policy(
&self
) -> Option<&ResourceCreationLimitPolicy>
pub fn resource_creation_limit_policy( &self ) -> Option<&ResourceCreationLimitPolicy>
Policy settings that limit the number of game sessions an individual player can create over a span of time.
sourcepub fn metric_groups(&self) -> &[String]
pub fn metric_groups(&self) -> &[String]
The name of a metric group to add this fleet to. Use a metric group in Amazon CloudWatch to aggregate the metrics from multiple fleets. Provide an existing metric group name, or create a new metric group by providing a new name. A fleet can only be in one metric group at a time.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .metric_groups.is_none()
.
sourcepub fn anywhere_configuration(&self) -> Option<&AnywhereConfiguration>
pub fn anywhere_configuration(&self) -> Option<&AnywhereConfiguration>
Amazon GameLift Anywhere configuration options.
source§impl UpdateFleetAttributesInput
impl UpdateFleetAttributesInput
sourcepub fn builder() -> UpdateFleetAttributesInputBuilder
pub fn builder() -> UpdateFleetAttributesInputBuilder
Creates a new builder-style object to manufacture UpdateFleetAttributesInput
.
Trait Implementations§
source§impl Clone for UpdateFleetAttributesInput
impl Clone for UpdateFleetAttributesInput
source§fn clone(&self) -> UpdateFleetAttributesInput
fn clone(&self) -> UpdateFleetAttributesInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for UpdateFleetAttributesInput
impl Debug for UpdateFleetAttributesInput
source§impl PartialEq for UpdateFleetAttributesInput
impl PartialEq for UpdateFleetAttributesInput
source§fn eq(&self, other: &UpdateFleetAttributesInput) -> bool
fn eq(&self, other: &UpdateFleetAttributesInput) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for UpdateFleetAttributesInput
Auto Trait Implementations§
impl Freeze for UpdateFleetAttributesInput
impl RefUnwindSafe for UpdateFleetAttributesInput
impl Send for UpdateFleetAttributesInput
impl Sync for UpdateFleetAttributesInput
impl Unpin for UpdateFleetAttributesInput
impl UnwindSafe for UpdateFleetAttributesInput
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