Struct aws_sdk_ec2::input::AttachClassicLinkVpcInput
source · #[non_exhaustive]pub struct AttachClassicLinkVpcInput { /* private fields */ }
Implementations§
source§impl AttachClassicLinkVpcInput
impl AttachClassicLinkVpcInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<AttachClassicLinkVpc, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<AttachClassicLinkVpc, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<AttachClassicLinkVpc
>
Examples found in repository?
src/client.rs (line 11484)
11470 11471 11472 11473 11474 11475 11476 11477 11478 11479 11480 11481 11482 11483 11484 11485 11486 11487 11488 11489 11490 11491 11492 11493 11494 11495 11496 11497 11498 11499 11500 11501 11502 11503 11504 11505 11506 11507 11508 11509 11510 11511 11512
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::AttachClassicLinkVpc,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::AttachClassicLinkVpcError>,
> {
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::AttachClassicLinkVpcOutput,
aws_smithy_http::result::SdkError<crate::error::AttachClassicLinkVpcError>,
> {
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 AttachClassicLinkVpcInput
.
source§impl AttachClassicLinkVpcInput
impl AttachClassicLinkVpcInput
sourcepub fn dry_run(&self) -> Option<bool>
pub fn dry_run(&self) -> Option<bool>
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
sourcepub fn groups(&self) -> Option<&[String]>
pub fn groups(&self) -> Option<&[String]>
The ID of one or more of the VPC's security groups. You cannot specify security groups from a different VPC.
sourcepub fn instance_id(&self) -> Option<&str>
pub fn instance_id(&self) -> Option<&str>
The ID of an EC2-Classic instance to link to the ClassicLink-enabled VPC.
Trait Implementations§
source§impl Clone for AttachClassicLinkVpcInput
impl Clone for AttachClassicLinkVpcInput
source§fn clone(&self) -> AttachClassicLinkVpcInput
fn clone(&self) -> AttachClassicLinkVpcInput
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