Struct aws_sdk_ec2::input::ModifyVpcTenancyInput
source · #[non_exhaustive]pub struct ModifyVpcTenancyInput { /* private fields */ }
Implementations§
source§impl ModifyVpcTenancyInput
impl ModifyVpcTenancyInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<ModifyVpcTenancy, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<ModifyVpcTenancy, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<ModifyVpcTenancy
>
Examples found in repository?
src/client.rs (line 70229)
70215 70216 70217 70218 70219 70220 70221 70222 70223 70224 70225 70226 70227 70228 70229 70230 70231 70232 70233 70234 70235 70236 70237 70238 70239 70240 70241 70242 70243 70244 70245 70246 70247 70248 70249 70250 70251 70252 70253 70254 70255 70256 70257
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::ModifyVpcTenancy,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::ModifyVpcTenancyError>,
> {
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::ModifyVpcTenancyOutput,
aws_smithy_http::result::SdkError<crate::error::ModifyVpcTenancyError>,
> {
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 ModifyVpcTenancyInput
.
source§impl ModifyVpcTenancyInput
impl ModifyVpcTenancyInput
sourcepub fn instance_tenancy(&self) -> Option<&VpcTenancy>
pub fn instance_tenancy(&self) -> Option<&VpcTenancy>
The instance tenancy attribute for the VPC.
Trait Implementations§
source§impl Clone for ModifyVpcTenancyInput
impl Clone for ModifyVpcTenancyInput
source§fn clone(&self) -> ModifyVpcTenancyInput
fn clone(&self) -> ModifyVpcTenancyInput
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