#[non_exhaustive]pub struct ModifyTrafficMirrorFilterRuleInput { /* private fields */ }
Implementations§
source§impl ModifyTrafficMirrorFilterRuleInput
impl ModifyTrafficMirrorFilterRuleInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<ModifyTrafficMirrorFilterRule, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<ModifyTrafficMirrorFilterRule, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<ModifyTrafficMirrorFilterRule
>
Examples found in repository?
68083 68084 68085 68086 68087 68088 68089 68090 68091 68092 68093 68094 68095 68096 68097 68098 68099 68100 68101 68102 68103 68104 68105 68106 68107 68108 68109 68110 68111 68112 68113 68114 68115 68116 68117 68118 68119 68120 68121 68122 68123 68124 68125
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::ModifyTrafficMirrorFilterRule,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::ModifyTrafficMirrorFilterRuleError>,
> {
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::ModifyTrafficMirrorFilterRuleOutput,
aws_smithy_http::result::SdkError<crate::error::ModifyTrafficMirrorFilterRuleError>,
> {
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 ModifyTrafficMirrorFilterRuleInput
.
source§impl ModifyTrafficMirrorFilterRuleInput
impl ModifyTrafficMirrorFilterRuleInput
sourcepub fn traffic_mirror_filter_rule_id(&self) -> Option<&str>
pub fn traffic_mirror_filter_rule_id(&self) -> Option<&str>
The ID of the Traffic Mirror rule.
sourcepub fn traffic_direction(&self) -> Option<&TrafficDirection>
pub fn traffic_direction(&self) -> Option<&TrafficDirection>
The type of traffic to assign to the rule.
sourcepub fn rule_number(&self) -> Option<i32>
pub fn rule_number(&self) -> Option<i32>
The number of the Traffic Mirror rule. This number must be unique for each Traffic Mirror rule in a given direction. The rules are processed in ascending order by rule number.
sourcepub fn rule_action(&self) -> Option<&TrafficMirrorRuleAction>
pub fn rule_action(&self) -> Option<&TrafficMirrorRuleAction>
The action to assign to the rule.
sourcepub fn destination_port_range(&self) -> Option<&TrafficMirrorPortRangeRequest>
pub fn destination_port_range(&self) -> Option<&TrafficMirrorPortRangeRequest>
The destination ports that are associated with the Traffic Mirror rule.
sourcepub fn source_port_range(&self) -> Option<&TrafficMirrorPortRangeRequest>
pub fn source_port_range(&self) -> Option<&TrafficMirrorPortRangeRequest>
The port range to assign to the Traffic Mirror rule.
sourcepub fn protocol(&self) -> Option<i32>
pub fn protocol(&self) -> Option<i32>
The protocol, for example TCP, to assign to the Traffic Mirror rule.
sourcepub fn destination_cidr_block(&self) -> Option<&str>
pub fn destination_cidr_block(&self) -> Option<&str>
The destination CIDR block to assign to the Traffic Mirror rule.
sourcepub fn source_cidr_block(&self) -> Option<&str>
pub fn source_cidr_block(&self) -> Option<&str>
The source CIDR block to assign to the Traffic Mirror rule.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
The description to assign to the Traffic Mirror rule.
sourcepub fn remove_fields(&self) -> Option<&[TrafficMirrorFilterRuleField]>
pub fn remove_fields(&self) -> Option<&[TrafficMirrorFilterRuleField]>
The properties that you want to remove from the Traffic Mirror filter rule.
When you remove a property from a Traffic Mirror filter rule, the property is set to the default.
Trait Implementations§
source§impl Clone for ModifyTrafficMirrorFilterRuleInput
impl Clone for ModifyTrafficMirrorFilterRuleInput
source§fn clone(&self) -> ModifyTrafficMirrorFilterRuleInput
fn clone(&self) -> ModifyTrafficMirrorFilterRuleInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more