Struct aws_sdk_ec2::input::DeleteCustomerGatewayInput
source · #[non_exhaustive]pub struct DeleteCustomerGatewayInput { /* private fields */ }
Expand description
Contains the parameters for DeleteCustomerGateway.
Implementations§
source§impl DeleteCustomerGatewayInput
impl DeleteCustomerGatewayInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<DeleteCustomerGateway, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<DeleteCustomerGateway, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<DeleteCustomerGateway
>
Examples found in repository?
src/client.rs (line 26163)
26149 26150 26151 26152 26153 26154 26155 26156 26157 26158 26159 26160 26161 26162 26163 26164 26165 26166 26167 26168 26169 26170 26171 26172 26173 26174 26175 26176 26177 26178 26179 26180 26181 26182 26183 26184 26185 26186 26187 26188 26189 26190 26191
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::DeleteCustomerGateway,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::DeleteCustomerGatewayError>,
> {
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::DeleteCustomerGatewayOutput,
aws_smithy_http::result::SdkError<crate::error::DeleteCustomerGatewayError>,
> {
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 DeleteCustomerGatewayInput
.
source§impl DeleteCustomerGatewayInput
impl DeleteCustomerGatewayInput
sourcepub fn customer_gateway_id(&self) -> Option<&str>
pub fn customer_gateway_id(&self) -> Option<&str>
The ID of the customer gateway.
Trait Implementations§
source§impl Clone for DeleteCustomerGatewayInput
impl Clone for DeleteCustomerGatewayInput
source§fn clone(&self) -> DeleteCustomerGatewayInput
fn clone(&self) -> DeleteCustomerGatewayInput
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