Struct aws_sdk_ec2::input::BundleInstanceInput
source · #[non_exhaustive]pub struct BundleInstanceInput { /* private fields */ }
Expand description
Contains the parameters for BundleInstance.
Implementations§
source§impl BundleInstanceInput
impl BundleInstanceInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<BundleInstance, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<BundleInstance, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<BundleInstance
>
Examples found in repository?
src/client.rs (line 12563)
12549 12550 12551 12552 12553 12554 12555 12556 12557 12558 12559 12560 12561 12562 12563 12564 12565 12566 12567 12568 12569 12570 12571 12572 12573 12574 12575 12576 12577 12578 12579 12580 12581 12582 12583 12584 12585 12586 12587 12588 12589 12590 12591
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::BundleInstance,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::BundleInstanceError>,
> {
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::BundleInstanceOutput,
aws_smithy_http::result::SdkError<crate::error::BundleInstanceError>,
> {
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 BundleInstanceInput
.
source§impl BundleInstanceInput
impl BundleInstanceInput
sourcepub fn instance_id(&self) -> Option<&str>
pub fn instance_id(&self) -> Option<&str>
The ID of the instance to bundle.
Type: String
Default: None
Required: Yes
Trait Implementations§
source§impl Clone for BundleInstanceInput
impl Clone for BundleInstanceInput
source§fn clone(&self) -> BundleInstanceInput
fn clone(&self) -> BundleInstanceInput
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more