Interface CfnTrafficMirrorFilterRuleProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnTrafficMirrorFilterRuleProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.101.0 (build b95fe5d)",
date="2024-07-12T19:34:00.756Z")
@Stability(Stable)
public interface CfnTrafficMirrorFilterRuleProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining a
CfnTrafficMirrorFilterRule
.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.ec2.*; CfnTrafficMirrorFilterRuleProps cfnTrafficMirrorFilterRuleProps = CfnTrafficMirrorFilterRuleProps.builder() .destinationCidrBlock("destinationCidrBlock") .ruleAction("ruleAction") .ruleNumber(123) .sourceCidrBlock("sourceCidrBlock") .trafficDirection("trafficDirection") .trafficMirrorFilterId("trafficMirrorFilterId") // the properties below are optional .description("description") .destinationPortRange(TrafficMirrorPortRangeProperty.builder() .fromPort(123) .toPort(123) .build()) .protocol(123) .sourcePortRange(TrafficMirrorPortRangeProperty.builder() .fromPort(123) .toPort(123) .build()) .build();
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnTrafficMirrorFilterRuleProps
static final class
An implementation forCfnTrafficMirrorFilterRuleProps
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default String
The description of the Traffic Mirror rule.The destination CIDR block to assign to the Traffic Mirror rule.default Object
The destination port range.default Number
The protocol, for example UDP, to assign to the Traffic Mirror rule.The action to take on the filtered traffic.The number of the Traffic Mirror rule.The source CIDR block to assign to the Traffic Mirror rule.default Object
The source port range.The type of traffic.The ID of the filter that this rule is associated with.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getDestinationCidrBlock
The destination CIDR block to assign to the Traffic Mirror rule.- See Also:
-
getRuleAction
The action to take on the filtered traffic.- See Also:
-
getRuleNumber
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.
- See Also:
-
getSourceCidrBlock
The source CIDR block to assign to the Traffic Mirror rule.- See Also:
-
getTrafficDirection
The type of traffic.- See Also:
-
getTrafficMirrorFilterId
The ID of the filter that this rule is associated with.- See Also:
-
getDescription
The description of the Traffic Mirror rule.- See Also:
-
getDestinationPortRange
The destination port range.- See Also:
-
getProtocol
The protocol, for example UDP, to assign to the Traffic Mirror rule.For information about the protocol value, see Protocol Numbers on the Internet Assigned Numbers Authority (IANA) website.
- See Also:
-
getSourcePortRange
The source port range.- See Also:
-
builder
-