Skip to content

EC2  >  Operations  >  describe_spot_fleet_requests

describe_spot_fleet_requests

Operation

describe_spot_fleet_requests async

describe_spot_fleet_requests(request: DescribeSpotFleetRequestsInput | DescribeSpotFleetRequestsInputDict, /, *, plugins: list[Plugin] | None = None) -> DescribeSpotFleetRequestsOutput
describe_spot_fleet_requests(*, plugins: list[Plugin] | None = None, **kwargs: Unpack[DescribeSpotFleetRequestsInputDict]) -> DescribeSpotFleetRequestsOutput

Describes your Spot Fleet requests.

Spot Fleet requests are deleted 48 hours after they are canceled and their instances are terminated.

Parameters:

Name Type Description Default
plugins list[Plugin] | None

A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations.

None

Returns:

Type Description
DescribeSpotFleetRequestsOutput

An instance of DescribeSpotFleetRequestsOutput.

Input

Pass the input fields as keyword arguments, or pass a model or dictionary as the first positional argument. Pass plugins separately as a keyword argument.

Model

DescribeSpotFleetRequestsInput dataclass

Bases: _SerdeShape

Contains the parameters for DescribeSpotFleetRequests.

Attributes
dry_run class-attribute instance-attribute
dry_run: bool | None = ...

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 class-attribute instance-attribute
max_results: int | None = ...

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 class-attribute instance-attribute
next_token: str | None = ...

The token to include in another request to get the next page of items. This value is null when there are no more items to return.

spot_fleet_request_ids class-attribute instance-attribute
spot_fleet_request_ids: list[str] | None = ...

The IDs of the Spot Fleet requests.

Dictionaries

DescribeSpotFleetRequestsInputDict

Bases: TypedDict

Dictionary form of DescribeSpotFleetRequestsInput.

Attributes
dry_run instance-attribute
dry_run: bool | None

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 instance-attribute
max_results: int | None

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 instance-attribute
next_token: str | None

The token to include in another request to get the next page of items. This value is null when there are no more items to return.

spot_fleet_request_ids instance-attribute
spot_fleet_request_ids: Sequence[str] | None

The IDs of the Spot Fleet requests.

Output

DescribeSpotFleetRequestsOutput dataclass

Bases: _SerdeShape

Contains the output of DescribeSpotFleetRequests.

Attributes

next_token class-attribute instance-attribute
next_token: str | None = ...

The token to include in another request to get the next page of items. This value is null when there are no more items to return.

response_metadata class-attribute instance-attribute
response_metadata: ResponseMetadata = ...

Metadata about the response that produced this output. Use this to recover the request identifiers a service's support team needs in order to investigate a call. Members of the metadata are individually optional.

spot_fleet_request_configs class-attribute instance-attribute
spot_fleet_request_configs: list[SpotFleetRequestConfig] | None = ...

Information about the configuration of your Spot Fleet.