Struct aws_sdk_ec2::input::CreateCustomerGatewayInput
source · #[non_exhaustive]pub struct CreateCustomerGatewayInput { /* private fields */ }
Expand description
Contains the parameters for CreateCustomerGateway.
Implementations§
source§impl CreateCustomerGatewayInput
impl CreateCustomerGatewayInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateCustomerGateway, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateCustomerGateway, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<CreateCustomerGateway
>
Examples found in repository?
15369 15370 15371 15372 15373 15374 15375 15376 15377 15378 15379 15380 15381 15382 15383 15384 15385 15386 15387 15388 15389 15390 15391 15392 15393 15394 15395 15396 15397 15398 15399 15400 15401 15402 15403 15404 15405 15406 15407 15408 15409 15410 15411
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::CreateCustomerGateway,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::CreateCustomerGatewayError>,
> {
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::CreateCustomerGatewayOutput,
aws_smithy_http::result::SdkError<crate::error::CreateCustomerGatewayError>,
> {
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 CreateCustomerGatewayInput
.
source§impl CreateCustomerGatewayInput
impl CreateCustomerGatewayInput
sourcepub fn bgp_asn(&self) -> Option<i32>
pub fn bgp_asn(&self) -> Option<i32>
For devices that support BGP, the customer gateway's BGP ASN.
Default: 65000
sourcepub fn public_ip(&self) -> Option<&str>
pub fn public_ip(&self) -> Option<&str>
This member has been deprecated. The Internet-routable IP address for the customer gateway's outside interface. The address must be static.
sourcepub fn certificate_arn(&self) -> Option<&str>
pub fn certificate_arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) for the customer gateway certificate.
sourcepub fn type(&self) -> Option<&GatewayType>
pub fn type(&self) -> Option<&GatewayType>
The type of VPN connection that this customer gateway supports (ipsec.1
).
sourcepub fn tag_specifications(&self) -> Option<&[TagSpecification]>
pub fn tag_specifications(&self) -> Option<&[TagSpecification]>
The tags to apply to the customer gateway.
sourcepub fn device_name(&self) -> Option<&str>
pub fn device_name(&self) -> Option<&str>
A name for the customer gateway device.
Length Constraints: Up to 255 characters.
sourcepub fn ip_address(&self) -> Option<&str>
pub fn ip_address(&self) -> Option<&str>
IPv4 address for the customer gateway device's outside interface. The address must be static.
Trait Implementations§
source§impl Clone for CreateCustomerGatewayInput
impl Clone for CreateCustomerGatewayInput
source§fn clone(&self) -> CreateCustomerGatewayInput
fn clone(&self) -> CreateCustomerGatewayInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more