Struct aws_sdk_ec2::input::DeleteTrafficMirrorTargetInput
source · #[non_exhaustive]pub struct DeleteTrafficMirrorTargetInput { /* private fields */ }
Implementations§
source§impl DeleteTrafficMirrorTargetInput
impl DeleteTrafficMirrorTargetInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<DeleteTrafficMirrorTarget, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<DeleteTrafficMirrorTarget, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<DeleteTrafficMirrorTarget
>
Examples found in repository?
src/client.rs (line 30065)
30051 30052 30053 30054 30055 30056 30057 30058 30059 30060 30061 30062 30063 30064 30065 30066 30067 30068 30069 30070 30071 30072 30073 30074 30075 30076 30077 30078 30079 30080 30081 30082 30083 30084 30085 30086 30087 30088 30089 30090 30091 30092 30093
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::DeleteTrafficMirrorTarget,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::DeleteTrafficMirrorTargetError>,
> {
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::DeleteTrafficMirrorTargetOutput,
aws_smithy_http::result::SdkError<crate::error::DeleteTrafficMirrorTargetError>,
> {
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 DeleteTrafficMirrorTargetInput
.
source§impl DeleteTrafficMirrorTargetInput
impl DeleteTrafficMirrorTargetInput
sourcepub fn traffic_mirror_target_id(&self) -> Option<&str>
pub fn traffic_mirror_target_id(&self) -> Option<&str>
The ID of the Traffic Mirror target.
Trait Implementations§
source§impl Clone for DeleteTrafficMirrorTargetInput
impl Clone for DeleteTrafficMirrorTargetInput
source§fn clone(&self) -> DeleteTrafficMirrorTargetInput
fn clone(&self) -> DeleteTrafficMirrorTargetInput
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