#[non_exhaustive]pub struct ModifyTrafficMirrorSessionInput { /* private fields */ }
Implementations§
source§impl ModifyTrafficMirrorSessionInput
impl ModifyTrafficMirrorSessionInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<ModifyTrafficMirrorSession, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<ModifyTrafficMirrorSession, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<ModifyTrafficMirrorSession
>
Examples found in repository?
68305 68306 68307 68308 68309 68310 68311 68312 68313 68314 68315 68316 68317 68318 68319 68320 68321 68322 68323 68324 68325 68326 68327 68328 68329 68330 68331 68332 68333 68334 68335 68336 68337 68338 68339 68340 68341 68342 68343 68344 68345 68346 68347
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::ModifyTrafficMirrorSession,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::ModifyTrafficMirrorSessionError>,
> {
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::ModifyTrafficMirrorSessionOutput,
aws_smithy_http::result::SdkError<crate::error::ModifyTrafficMirrorSessionError>,
> {
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 ModifyTrafficMirrorSessionInput
.
source§impl ModifyTrafficMirrorSessionInput
impl ModifyTrafficMirrorSessionInput
sourcepub fn traffic_mirror_session_id(&self) -> Option<&str>
pub fn traffic_mirror_session_id(&self) -> Option<&str>
The ID of the Traffic Mirror session.
sourcepub fn traffic_mirror_target_id(&self) -> Option<&str>
pub fn traffic_mirror_target_id(&self) -> Option<&str>
The Traffic Mirror target. The target must be in the same VPC as the source, or have a VPC peering connection with the source.
sourcepub fn traffic_mirror_filter_id(&self) -> Option<&str>
pub fn traffic_mirror_filter_id(&self) -> Option<&str>
The ID of the Traffic Mirror filter.
sourcepub fn packet_length(&self) -> Option<i32>
pub fn packet_length(&self) -> Option<i32>
The number of bytes in each packet to mirror. These are bytes after the VXLAN header. To mirror a subset, set this to the length (in bytes) 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. Do not specify this parameter when you want to mirror the entire packet.
sourcepub fn session_number(&self) -> Option<i32>
pub fn session_number(&self) -> Option<i32>
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.
sourcepub fn virtual_network_id(&self) -> Option<i32>
pub fn virtual_network_id(&self) -> Option<i32>
The virtual network ID of the Traffic Mirror session.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
The description to assign to the Traffic Mirror session.
sourcepub fn remove_fields(&self) -> Option<&[TrafficMirrorSessionField]>
pub fn remove_fields(&self) -> Option<&[TrafficMirrorSessionField]>
The properties that you want to remove from the Traffic Mirror session.
When you remove a property from a Traffic Mirror session, the property is set to the default.
Trait Implementations§
source§impl Clone for ModifyTrafficMirrorSessionInput
impl Clone for ModifyTrafficMirrorSessionInput
source§fn clone(&self) -> ModifyTrafficMirrorSessionInput
fn clone(&self) -> ModifyTrafficMirrorSessionInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more