Struct aws_sdk_ec2::input::DescribeVpnGatewaysInput
source · #[non_exhaustive]pub struct DescribeVpnGatewaysInput { /* private fields */ }Expand description
Contains the parameters for DescribeVpnGateways.
Implementations§
source§impl DescribeVpnGatewaysInput
impl DescribeVpnGatewaysInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<DescribeVpnGateways, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<DescribeVpnGateways, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<DescribeVpnGateways>
Examples found in repository?
52864 52865 52866 52867 52868 52869 52870 52871 52872 52873 52874 52875 52876 52877 52878 52879 52880 52881 52882 52883 52884 52885 52886 52887 52888 52889 52890 52891 52892 52893 52894 52895 52896 52897 52898 52899 52900 52901 52902 52903 52904 52905 52906
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::DescribeVpnGateways,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::DescribeVpnGatewaysError>,
> {
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::DescribeVpnGatewaysOutput,
aws_smithy_http::result::SdkError<crate::error::DescribeVpnGatewaysError>,
> {
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 DescribeVpnGatewaysInput.
source§impl DescribeVpnGatewaysInput
impl DescribeVpnGatewaysInput
sourcepub fn filters(&self) -> Option<&[Filter]>
pub fn filters(&self) -> Option<&[Filter]>
One or more filters.
-
amazon-side-asn- The Autonomous System Number (ASN) for the Amazon side of the gateway. -
attachment.state- The current state of the attachment between the gateway and the VPC (attaching|attached|detaching|detached). -
attachment.vpc-id- The ID of an attached VPC. -
availability-zone- The Availability Zone for the virtual private gateway (if applicable). -
state- The state of the virtual private gateway (pending|available|deleting|deleted). -
tag:- The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value. For example, to find all resources that have a tag with the key Ownerand the valueTeamA, specifytag:Ownerfor the filter name andTeamAfor the filter value. -
tag-key- The key of a tag assigned to the resource. Use this filter to find all resources assigned a tag with a specific key, regardless of the tag value. -
type- The type of virtual private gateway. Currently the only supported type isipsec.1. -
vpn-gateway-id- The ID of the virtual private gateway.
sourcepub fn vpn_gateway_ids(&self) -> Option<&[String]>
pub fn vpn_gateway_ids(&self) -> Option<&[String]>
One or more virtual private gateway IDs.
Default: Describes all your virtual private gateways.
Trait Implementations§
source§impl Clone for DescribeVpnGatewaysInput
impl Clone for DescribeVpnGatewaysInput
source§fn clone(&self) -> DescribeVpnGatewaysInput
fn clone(&self) -> DescribeVpnGatewaysInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more