Struct aws_sdk_ec2::client::fluent_builders::CreateTrafficMirrorSession [−][src]
pub struct CreateTrafficMirrorSession<C = DynConnector, M = AwsMiddleware, R = Standard> { /* fields omitted */ }
Expand description
Fluent builder constructing a request to CreateTrafficMirrorSession
.
Creates a Traffic Mirror session.
A Traffic Mirror session actively copies packets from a Traffic Mirror source to a Traffic Mirror target. Create a filter, and then assign it to the session to define a subset of the traffic to mirror, for example all TCP traffic.
The Traffic Mirror source and the Traffic Mirror target (monitoring appliances) can be in the same VPC, or in a different VPC connected via VPC peering or a transit gateway.
By default, no traffic is mirrored. Use CreateTrafficMirrorFilter to create filter rules that specify the traffic to mirror.
Implementations
impl<C, M, R> CreateTrafficMirrorSession<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> CreateTrafficMirrorSession<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<CreateTrafficMirrorSessionOutput, SdkError<CreateTrafficMirrorSessionError>> where
R::Policy: SmithyRetryPolicy<CreateTrafficMirrorSessionInputOperationOutputAlias, CreateTrafficMirrorSessionOutput, CreateTrafficMirrorSessionError, CreateTrafficMirrorSessionInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<CreateTrafficMirrorSessionOutput, SdkError<CreateTrafficMirrorSessionError>> where
R::Policy: SmithyRetryPolicy<CreateTrafficMirrorSessionInputOperationOutputAlias, CreateTrafficMirrorSessionOutput, CreateTrafficMirrorSessionError, CreateTrafficMirrorSessionInputOperationRetryAlias>,
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, which can be set when configuring the client.
The ID of the source network interface.
The ID of the source network interface.
The ID of the Traffic Mirror target.
The ID of the Traffic Mirror target.
The ID of the Traffic Mirror filter.
The ID of the Traffic Mirror filter.
The number of bytes in each packet to mirror. These are bytes after the VXLAN header. Do not specify this parameter when you want to mirror the entire packet. To mirror a subset of the packet, set this to the length (in bytes) that you want to mirror. For example, if you set this value to 100, then the first 100 bytes that meet the filter criteria are copied to the target.
If you do not want to mirror the entire packet, use the PacketLength
parameter to specify the number of bytes in each packet to mirror.
The number of bytes in each packet to mirror. These are bytes after the VXLAN header. Do not specify this parameter when you want to mirror the entire packet. To mirror a subset of the packet, set this to the length (in bytes) that you want to mirror. For example, if you set this value to 100, then the first 100 bytes that meet the filter criteria are copied to the target.
If you do not want to mirror the entire packet, use the PacketLength
parameter to specify the number of bytes in each packet to mirror.
The session number determines the order in which sessions are evaluated when an interface is used by multiple sessions. The first session with a matching filter is the one that mirrors the packets.
Valid values are 1-32766.
The session number determines the order in which sessions are evaluated when an interface is used by multiple sessions. The first session with a matching filter is the one that mirrors the packets.
Valid values are 1-32766.
The VXLAN ID for the Traffic Mirror session. For more information about the VXLAN
protocol, see RFC 7348. If you do
not specify a VirtualNetworkId
, an account-wide unique id is chosen at
random.
The VXLAN ID for the Traffic Mirror session. For more information about the VXLAN
protocol, see RFC 7348. If you do
not specify a VirtualNetworkId
, an account-wide unique id is chosen at
random.
The description of the Traffic Mirror session.
The description of the Traffic Mirror session.
Appends an item to TagSpecifications
.
To override the contents of this collection use set_tag_specifications
.
The tags to assign to a Traffic Mirror session.
The tags to assign to a Traffic Mirror session.
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
.
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
.
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to ensure idempotency.
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to ensure idempotency.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !RefUnwindSafe for CreateTrafficMirrorSession<C, M, R>
impl<C, M, R> Send for CreateTrafficMirrorSession<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for CreateTrafficMirrorSession<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for CreateTrafficMirrorSession<C, M, R>
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !UnwindSafe for CreateTrafficMirrorSession<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more