Struct aws_sdk_ec2::input::CreateTrafficMirrorTargetInput
source · #[non_exhaustive]pub struct CreateTrafficMirrorTargetInput { /* private fields */ }
Implementations§
source§impl CreateTrafficMirrorTargetInput
impl CreateTrafficMirrorTargetInput
sourcepub async fn make_operation(
self,
_config: &Config
) -> Result<Operation<CreateTrafficMirrorTarget, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
self,
_config: &Config
) -> Result<Operation<CreateTrafficMirrorTarget, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<CreateTrafficMirrorTarget
>
Examples found in repository?
22513 22514 22515 22516 22517 22518 22519 22520 22521 22522 22523 22524 22525 22526 22527 22528 22529 22530 22531 22532 22533 22534 22535 22536 22537 22538 22539 22540 22541 22542 22543 22544 22545 22546 22547 22548 22549 22550 22551 22552 22553 22554 22555
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::CreateTrafficMirrorTarget,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::CreateTrafficMirrorTargetError>,
> {
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::CreateTrafficMirrorTargetOutput,
aws_smithy_http::result::SdkError<crate::error::CreateTrafficMirrorTargetError>,
> {
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 CreateTrafficMirrorTargetInput
.
source§impl CreateTrafficMirrorTargetInput
impl CreateTrafficMirrorTargetInput
sourcepub fn network_interface_id(&self) -> Option<&str>
pub fn network_interface_id(&self) -> Option<&str>
The network interface ID that is associated with the target.
sourcepub fn network_load_balancer_arn(&self) -> Option<&str>
pub fn network_load_balancer_arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) of the Network Load Balancer that is associated with the target.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
The description of the Traffic Mirror target.
sourcepub fn tag_specifications(&self) -> Option<&[TagSpecification]>
pub fn tag_specifications(&self) -> Option<&[TagSpecification]>
The tags to assign to the Traffic Mirror target.
sourcepub fn dry_run(&self) -> Option<bool>
pub fn dry_run(&self) -> Option<bool>
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
sourcepub fn client_token(&self) -> Option<&str>
pub fn client_token(&self) -> Option<&str>
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to ensure idempotency.
sourcepub fn gateway_load_balancer_endpoint_id(&self) -> Option<&str>
pub fn gateway_load_balancer_endpoint_id(&self) -> Option<&str>
The ID of the Gateway Load Balancer endpoint.
Trait Implementations§
source§impl Clone for CreateTrafficMirrorTargetInput
impl Clone for CreateTrafficMirrorTargetInput
source§fn clone(&self) -> CreateTrafficMirrorTargetInput
fn clone(&self) -> CreateTrafficMirrorTargetInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more