Struct aws_sdk_ec2::input::SendDiagnosticInterruptInput
source · #[non_exhaustive]pub struct SendDiagnosticInterruptInput { /* private fields */ }
Implementations§
source§impl SendDiagnosticInterruptInput
impl SendDiagnosticInterruptInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<SendDiagnosticInterrupt, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<SendDiagnosticInterrupt, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<SendDiagnosticInterrupt
>
Examples found in repository?
src/client.rs (line 77744)
77730 77731 77732 77733 77734 77735 77736 77737 77738 77739 77740 77741 77742 77743 77744 77745 77746 77747 77748 77749 77750 77751 77752 77753 77754 77755 77756 77757 77758 77759 77760 77761 77762 77763 77764 77765 77766 77767 77768 77769 77770 77771 77772
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::SendDiagnosticInterrupt,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::SendDiagnosticInterruptError>,
> {
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::SendDiagnosticInterruptOutput,
aws_smithy_http::result::SdkError<crate::error::SendDiagnosticInterruptError>,
> {
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 SendDiagnosticInterruptInput
.
source§impl SendDiagnosticInterruptInput
impl SendDiagnosticInterruptInput
sourcepub fn instance_id(&self) -> Option<&str>
pub fn instance_id(&self) -> Option<&str>
The ID of the instance.
Trait Implementations§
source§impl Clone for SendDiagnosticInterruptInput
impl Clone for SendDiagnosticInterruptInput
source§fn clone(&self) -> SendDiagnosticInterruptInput
fn clone(&self) -> SendDiagnosticInterruptInput
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