Struct aws_sdk_ec2::input::DescribeCustomerGatewaysInput
source · #[non_exhaustive]pub struct DescribeCustomerGatewaysInput { /* private fields */ }
Expand description
Contains the parameters for DescribeCustomerGateways.
Implementations§
source§impl DescribeCustomerGatewaysInput
impl DescribeCustomerGatewaysInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<DescribeCustomerGateways, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<DescribeCustomerGateways, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<DescribeCustomerGateways
>
Examples found in repository?
35162 35163 35164 35165 35166 35167 35168 35169 35170 35171 35172 35173 35174 35175 35176 35177 35178 35179 35180 35181 35182 35183 35184 35185 35186 35187 35188 35189 35190 35191 35192 35193 35194 35195 35196 35197 35198 35199 35200 35201 35202 35203 35204
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::DescribeCustomerGateways,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::DescribeCustomerGatewaysError>,
> {
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::DescribeCustomerGatewaysOutput,
aws_smithy_http::result::SdkError<crate::error::DescribeCustomerGatewaysError>,
> {
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 DescribeCustomerGatewaysInput
.
source§impl DescribeCustomerGatewaysInput
impl DescribeCustomerGatewaysInput
sourcepub fn customer_gateway_ids(&self) -> Option<&[String]>
pub fn customer_gateway_ids(&self) -> Option<&[String]>
One or more customer gateway IDs.
Default: Describes all your customer gateways.
sourcepub fn filters(&self) -> Option<&[Filter]>
pub fn filters(&self) -> Option<&[Filter]>
One or more filters.
-
bgp-asn
- The customer gateway's Border Gateway Protocol (BGP) Autonomous System Number (ASN). -
customer-gateway-id
- The ID of the customer gateway. -
ip-address
- The IP address of the customer gateway device's external interface. -
state
- The state of the customer gateway (pending
|available
|deleting
|deleted
). -
type
- The type of customer gateway. Currently, the only supported type isipsec.1
. -
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 Owner
and the valueTeamA
, specifytag:Owner
for the filter name andTeamA
for 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.
Trait Implementations§
source§impl Clone for DescribeCustomerGatewaysInput
impl Clone for DescribeCustomerGatewaysInput
source§fn clone(&self) -> DescribeCustomerGatewaysInput
fn clone(&self) -> DescribeCustomerGatewaysInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more