#[non_exhaustive]pub struct UpdateVpcAttachmentInput { /* private fields */ }Implementations§
source§impl UpdateVpcAttachmentInput
impl UpdateVpcAttachmentInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<UpdateVpcAttachment, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<UpdateVpcAttachment, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<UpdateVpcAttachment>
Examples found in repository?
src/client.rs (line 10565)
10551 10552 10553 10554 10555 10556 10557 10558 10559 10560 10561 10562 10563 10564 10565 10566 10567 10568 10569 10570 10571 10572 10573 10574 10575 10576 10577 10578 10579 10580 10581 10582 10583 10584 10585 10586 10587 10588 10589 10590 10591 10592 10593
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::UpdateVpcAttachment,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::UpdateVpcAttachmentError>,
> {
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::UpdateVpcAttachmentOutput,
aws_smithy_http::result::SdkError<crate::error::UpdateVpcAttachmentError>,
> {
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 UpdateVpcAttachmentInput.
source§impl UpdateVpcAttachmentInput
impl UpdateVpcAttachmentInput
sourcepub fn attachment_id(&self) -> Option<&str>
pub fn attachment_id(&self) -> Option<&str>
The ID of the attachment.
sourcepub fn add_subnet_arns(&self) -> Option<&[String]>
pub fn add_subnet_arns(&self) -> Option<&[String]>
Adds a subnet ARN to the VPC attachment.
sourcepub fn remove_subnet_arns(&self) -> Option<&[String]>
pub fn remove_subnet_arns(&self) -> Option<&[String]>
Removes a subnet ARN from the attachment.
sourcepub fn options(&self) -> Option<&VpcOptions>
pub fn options(&self) -> Option<&VpcOptions>
Additional options for updating the VPC attachment.
Trait Implementations§
source§impl Clone for UpdateVpcAttachmentInput
impl Clone for UpdateVpcAttachmentInput
source§fn clone(&self) -> UpdateVpcAttachmentInput
fn clone(&self) -> UpdateVpcAttachmentInput
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