pub struct CreateReservedInstancesListing { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateReservedInstancesListing
.
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.
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 Reserved Instance Marketplace in the Amazon EC2 User Guide.
Implementations§
source§impl CreateReservedInstancesListing
impl CreateReservedInstancesListing
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<CreateReservedInstancesListing, AwsResponseRetryClassifier>, SdkError<CreateReservedInstancesListingError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<CreateReservedInstancesListing, AwsResponseRetryClassifier>, SdkError<CreateReservedInstancesListingError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<CreateReservedInstancesListingOutput, SdkError<CreateReservedInstancesListingError>>
pub async fn send(
self
) -> Result<CreateReservedInstancesListingOutput, SdkError<CreateReservedInstancesListingError>>
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 client_token(self, input: impl Into<String>) -> Self
pub fn client_token(self, input: impl Into<String>) -> Self
Unique, case-sensitive identifier you provide to ensure idempotency of your listings. This helps avoid duplicate listings. For more information, see Ensuring Idempotency.
sourcepub fn set_client_token(self, input: Option<String>) -> Self
pub fn set_client_token(self, input: Option<String>) -> Self
Unique, case-sensitive identifier you provide to ensure idempotency of your listings. This helps avoid duplicate listings. For more information, see Ensuring Idempotency.
sourcepub fn instance_count(self, input: i32) -> Self
pub fn instance_count(self, input: i32) -> Self
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.
sourcepub fn set_instance_count(self, input: Option<i32>) -> Self
pub fn set_instance_count(self, input: Option<i32>) -> Self
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.
sourcepub fn price_schedules(self, input: PriceScheduleSpecification) -> Self
pub fn price_schedules(self, input: PriceScheduleSpecification) -> Self
Appends an item to PriceSchedules
.
To override the contents of this collection use set_price_schedules
.
A list specifying the price of the Standard Reserved Instance for each month remaining in the Reserved Instance term.
sourcepub fn set_price_schedules(
self,
input: Option<Vec<PriceScheduleSpecification>>
) -> Self
pub fn set_price_schedules(
self,
input: Option<Vec<PriceScheduleSpecification>>
) -> Self
A list specifying the price of the Standard Reserved Instance for each month remaining in the Reserved Instance term.
sourcepub fn reserved_instances_id(self, input: impl Into<String>) -> Self
pub fn reserved_instances_id(self, input: impl Into<String>) -> Self
The ID of the active Standard Reserved Instance.
sourcepub fn set_reserved_instances_id(self, input: Option<String>) -> Self
pub fn set_reserved_instances_id(self, input: Option<String>) -> Self
The ID of the active Standard Reserved Instance.
Trait Implementations§
source§impl Clone for CreateReservedInstancesListing
impl Clone for CreateReservedInstancesListing
source§fn clone(&self) -> CreateReservedInstancesListing
fn clone(&self) -> CreateReservedInstancesListing
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more