Struct aws_sdk_ec2::input::EnableSerialConsoleAccessInput
source · #[non_exhaustive]pub struct EnableSerialConsoleAccessInput { /* private fields */ }
Implementations§
source§impl EnableSerialConsoleAccessInput
impl EnableSerialConsoleAccessInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<EnableSerialConsoleAccess, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<EnableSerialConsoleAccess, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<EnableSerialConsoleAccess
>
Examples found in repository?
src/client.rs (line 56131)
56117 56118 56119 56120 56121 56122 56123 56124 56125 56126 56127 56128 56129 56130 56131 56132 56133 56134 56135 56136 56137 56138 56139 56140 56141 56142 56143 56144 56145 56146 56147 56148 56149 56150 56151 56152 56153 56154 56155 56156 56157 56158 56159
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::EnableSerialConsoleAccess,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::EnableSerialConsoleAccessError>,
> {
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::EnableSerialConsoleAccessOutput,
aws_smithy_http::result::SdkError<crate::error::EnableSerialConsoleAccessError>,
> {
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 EnableSerialConsoleAccessInput
.
Trait Implementations§
source§impl Clone for EnableSerialConsoleAccessInput
impl Clone for EnableSerialConsoleAccessInput
source§fn clone(&self) -> EnableSerialConsoleAccessInput
fn clone(&self) -> EnableSerialConsoleAccessInput
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