#[non_exhaustive]pub struct CreateReservedInstancesListingInput { /* private fields */ }
Expand description
Contains the parameters for CreateReservedInstancesListing.
Implementations§
source§impl CreateReservedInstancesListingInput
impl CreateReservedInstancesListingInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateReservedInstancesListing, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateReservedInstancesListing, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<CreateReservedInstancesListing
>
Examples found in repository?
20301 20302 20303 20304 20305 20306 20307 20308 20309 20310 20311 20312 20313 20314 20315 20316 20317 20318 20319 20320 20321 20322 20323 20324 20325 20326 20327 20328 20329 20330 20331 20332 20333 20334 20335 20336 20337 20338 20339 20340 20341 20342 20343
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::CreateReservedInstancesListing,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::CreateReservedInstancesListingError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// 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](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::CreateReservedInstancesListingOutput,
aws_smithy_http::result::SdkError<crate::error::CreateReservedInstancesListingError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture CreateReservedInstancesListingInput
.
source§impl CreateReservedInstancesListingInput
impl CreateReservedInstancesListingInput
sourcepub fn client_token(&self) -> Option<&str>
pub fn client_token(&self) -> Option<&str>
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) -> Option<i32>
pub fn instance_count(&self) -> Option<i32>
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) -> Option<&[PriceScheduleSpecification]>
pub fn price_schedules(&self) -> Option<&[PriceScheduleSpecification]>
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) -> Option<&str>
pub fn reserved_instances_id(&self) -> Option<&str>
The ID of the active Standard Reserved Instance.
Trait Implementations§
source§impl Clone for CreateReservedInstancesListingInput
impl Clone for CreateReservedInstancesListingInput
source§fn clone(&self) -> CreateReservedInstancesListingInput
fn clone(&self) -> CreateReservedInstancesListingInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more