Skip to content

EC2  >  Operations  >  create_reserved_instances_listing

create_reserved_instances_listing

Operation

create_reserved_instances_listing async

create_reserved_instances_listing(input: CreateReservedInstancesListingInput, plugins: list[Plugin] | None = None) -> CreateReservedInstancesListingOutput

Creates a listing for Amazon EC2 Standard Reserved Instances to be sold in the Reserved Instance Marketplace. You can submit one Standard Reserved Instance listing at a time. To get a list of your Standard Reserved Instances, you can use the DescribeReservedInstances operation.

Note

Only Standard Reserved Instances can be sold in the Reserved Instance Marketplace. Convertible Reserved Instances cannot be sold.

The Reserved Instance Marketplace matches sellers who want to resell Standard Reserved Instance capacity that they no longer need with buyers who want to purchase additional capacity. Reserved Instances bought and sold through the Reserved Instance Marketplace work like any other Reserved Instances.

To sell your Standard Reserved Instances, you must first register as a seller in the Reserved Instance Marketplace. After completing the registration process, you can create a Reserved Instance Marketplace listing of some or all of your Standard Reserved Instances, and specify the upfront price to receive for them. Your Standard Reserved Instance listings then become available for purchase. To view the details of your Standard Reserved Instance listing, you can use the DescribeReservedInstancesListings operation.

For more information, see Sell in the Reserved Instance Marketplace in the Amazon EC2 User Guide.

Parameters:

Name Type Description Default
input CreateReservedInstancesListingInput

An instance of CreateReservedInstancesListingInput.

required
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
CreateReservedInstancesListingOutput

An instance of CreateReservedInstancesListingOutput.

Input

CreateReservedInstancesListingInput dataclass

Bases: _SerdeShape

Contains the parameters for CreateReservedInstancesListing.

Attributes

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

Unique, case-sensitive identifier you provide to ensure idempotency of your listings. This helps avoid duplicate listings. For more information, see Ensuring Idempotency.

instance_count class-attribute instance-attribute
instance_count: int | None = ...

The number of instances that are a part of a Reserved Instance account to be listed in the Reserved Instance Marketplace. This number should be less than or equal to the instance count associated with the Reserved Instance ID specified in this call.

price_schedules class-attribute instance-attribute
price_schedules: list[PriceScheduleSpecification] | None = ...

A list specifying the price of the Standard Reserved Instance for each month remaining in the Reserved Instance term.

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

The ID of the active Standard Reserved Instance.

Output

CreateReservedInstancesListingOutput dataclass

Bases: _SerdeShape

Contains the output of CreateReservedInstancesListing.

Attributes

reserved_instances_listings class-attribute instance-attribute
reserved_instances_listings: list[ReservedInstancesListing] | None = ...

Information about the Standard Reserved Instance listing.

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.