Struct aws_sdk_gamelift::client::fluent_builders::StopFleetActions
source · [−]pub struct StopFleetActions { /* private fields */ }
Expand description
Fluent builder constructing a request to StopFleetActions
.
Suspends certain types of activity in a fleet location. Currently, this operation is used to stop auto-scaling activity. For multi-location fleets, fleet actions are managed separately for each location.
Stopping fleet actions has several potential purposes. It allows you to temporarily stop auto-scaling activity but retain your scaling policies for use in the future. For multi-location fleets, you can set up fleet-wide auto-scaling, and then opt out of it for certain locations.
This operation can be used in the following ways:
-
To stop actions on instances in the fleet's home Region, provide a fleet ID and the type of actions to suspend.
-
To stop actions on instances in one of the fleet's remote locations, provide a fleet ID, a location name, and the type of actions to suspend.
If successful, GameLift no longer initiates scaling events except in response to manual changes using UpdateFleetCapacity
. You can view a fleet's stopped actions using DescribeFleetAttributes
or DescribeFleetLocationAttributes
. Suspended activity can be restarted using StartFleetActions
.
Learn more
Related actions
CreateFleet
| UpdateFleetCapacity
| PutScalingPolicy
| DescribeEC2InstanceLimits
| DescribeFleetAttributes
| DescribeFleetLocationAttributes
| UpdateFleetAttributes
| StopFleetActions
| DeleteFleet
| All APIs by task
Implementations
sourceimpl StopFleetActions
impl StopFleetActions
sourcepub async fn send(
self
) -> Result<StopFleetActionsOutput, SdkError<StopFleetActionsError>>
pub async fn send(
self
) -> Result<StopFleetActionsOutput, SdkError<StopFleetActionsError>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn fleet_id(self, input: impl Into<String>) -> Self
pub fn fleet_id(self, input: impl Into<String>) -> Self
A unique identifier for the fleet to stop actions on. You can use either the fleet ID or ARN value.
sourcepub fn set_fleet_id(self, input: Option<String>) -> Self
pub fn set_fleet_id(self, input: Option<String>) -> Self
A unique identifier for the fleet to stop actions on. You can use either the fleet ID or ARN value.
sourcepub fn actions(self, input: FleetAction) -> Self
pub fn actions(self, input: FleetAction) -> Self
Appends an item to Actions
.
To override the contents of this collection use set_actions
.
List of actions to suspend on the fleet.
sourcepub fn set_actions(self, input: Option<Vec<FleetAction>>) -> Self
pub fn set_actions(self, input: Option<Vec<FleetAction>>) -> Self
List of actions to suspend on the fleet.
sourcepub fn location(self, input: impl Into<String>) -> Self
pub fn location(self, input: impl Into<String>) -> Self
The fleet location to stop fleet actions for. Specify a location in the form of an Amazon Web Services Region code, such as us-west-2
.
sourcepub fn set_location(self, input: Option<String>) -> Self
pub fn set_location(self, input: Option<String>) -> Self
The fleet location to stop fleet actions for. Specify a location in the form of an Amazon Web Services Region code, such as us-west-2
.
Trait Implementations
sourceimpl Clone for StopFleetActions
impl Clone for StopFleetActions
sourcefn clone(&self) -> StopFleetActions
fn clone(&self) -> StopFleetActions
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl !RefUnwindSafe for StopFleetActions
impl Send for StopFleetActions
impl Sync for StopFleetActions
impl Unpin for StopFleetActions
impl !UnwindSafe for StopFleetActions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more