Struct aws_sdk_ec2::operation::describe_fleets::DescribeFleetsInput
source · #[non_exhaustive]pub struct DescribeFleetsInput {
pub dry_run: Option<bool>,
pub max_results: Option<i32>,
pub next_token: Option<String>,
pub fleet_ids: Option<Vec<String>>,
pub filters: Option<Vec<Filter>>,
}
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.dry_run: Option<bool>
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
max_results: Option<i32>
The maximum number of items to return for this request. To get the next page of items, make another request with the token returned in the output. For more information, see Pagination.
next_token: Option<String>
The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.
fleet_ids: Option<Vec<String>>
The IDs of the EC2 Fleets.
If a fleet is of type instant
, you must specify the fleet ID, otherwise it does not appear in the response.
filters: Option<Vec<Filter>>
The filters.
-
activity-status
- The progress of the EC2 Fleet (error
|pending-fulfillment
|pending-termination
|fulfilled
). -
excess-capacity-termination-policy
- Indicates whether to terminate running instances if the target capacity is decreased below the current EC2 Fleet size (true
|false
). -
fleet-state
- The state of the EC2 Fleet (submitted
|active
|deleted
|failed
|deleted-running
|deleted-terminating
|modifying
). -
replace-unhealthy-instances
- Indicates whether EC2 Fleet should replace unhealthy instances (true
|false
). -
type
- The type of request (instant
|request
|maintain
).
Implementations§
source§impl DescribeFleetsInput
impl DescribeFleetsInput
sourcepub fn dry_run(&self) -> Option<bool>
pub fn dry_run(&self) -> Option<bool>
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
sourcepub fn max_results(&self) -> Option<i32>
pub fn max_results(&self) -> Option<i32>
The maximum number of items to return for this request. To get the next page of items, make another request with the token returned in the output. For more information, see Pagination.
sourcepub fn next_token(&self) -> Option<&str>
pub fn next_token(&self) -> Option<&str>
The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.
sourcepub fn fleet_ids(&self) -> &[String]
pub fn fleet_ids(&self) -> &[String]
The IDs of the EC2 Fleets.
If a fleet is of type instant
, you must specify the fleet ID, otherwise it does not appear in the response.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .fleet_ids.is_none()
.
sourcepub fn filters(&self) -> &[Filter]
pub fn filters(&self) -> &[Filter]
The filters.
-
activity-status
- The progress of the EC2 Fleet (error
|pending-fulfillment
|pending-termination
|fulfilled
). -
excess-capacity-termination-policy
- Indicates whether to terminate running instances if the target capacity is decreased below the current EC2 Fleet size (true
|false
). -
fleet-state
- The state of the EC2 Fleet (submitted
|active
|deleted
|failed
|deleted-running
|deleted-terminating
|modifying
). -
replace-unhealthy-instances
- Indicates whether EC2 Fleet should replace unhealthy instances (true
|false
). -
type
- The type of request (instant
|request
|maintain
).
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .filters.is_none()
.
source§impl DescribeFleetsInput
impl DescribeFleetsInput
sourcepub fn builder() -> DescribeFleetsInputBuilder
pub fn builder() -> DescribeFleetsInputBuilder
Creates a new builder-style object to manufacture DescribeFleetsInput
.
Trait Implementations§
source§impl Clone for DescribeFleetsInput
impl Clone for DescribeFleetsInput
source§fn clone(&self) -> DescribeFleetsInput
fn clone(&self) -> DescribeFleetsInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DescribeFleetsInput
impl Debug for DescribeFleetsInput
source§impl PartialEq for DescribeFleetsInput
impl PartialEq for DescribeFleetsInput
source§fn eq(&self, other: &DescribeFleetsInput) -> bool
fn eq(&self, other: &DescribeFleetsInput) -> bool
self
and other
values to be equal, and is used
by ==
.