@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.342Z") @Stability(value=Stable) public interface CfnTrafficMirrorFilterRuleProps extends software.amazon.jsii.JsiiSerializable
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();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnTrafficMirrorFilterRuleProps.Builder
A builder for
CfnTrafficMirrorFilterRuleProps |
static class |
CfnTrafficMirrorFilterRuleProps.Jsii$Proxy
An implementation for
CfnTrafficMirrorFilterRuleProps |
| Modifier and Type | Method and Description |
|---|---|
static CfnTrafficMirrorFilterRuleProps.Builder |
builder() |
default String |
getDescription()
The description of the Traffic Mirror rule.
|
String |
getDestinationCidrBlock()
The destination CIDR block to assign to the Traffic Mirror rule.
|
default Object |
getDestinationPortRange()
The destination port range.
|
default Number |
getProtocol()
The protocol, for example UDP, to assign to the Traffic Mirror rule.
|
String |
getRuleAction()
The action to take on the filtered traffic.
|
Number |
getRuleNumber()
The number of the Traffic Mirror rule.
|
String |
getSourceCidrBlock()
The source CIDR block to assign to the Traffic Mirror rule.
|
default Object |
getSourcePortRange()
The source port range.
|
String |
getTrafficDirection()
The type of traffic.
|
String |
getTrafficMirrorFilterId()
The ID of the filter that this rule is associated with.
|
@Stability(value=Stable) @NotNull String getDestinationCidrBlock()
@Stability(value=Stable) @NotNull String getRuleAction()
@Stability(value=Stable) @NotNull Number getRuleNumber()
This number must be unique for each Traffic Mirror rule in a given direction. The rules are processed in ascending order by rule number.
@Stability(value=Stable) @NotNull String getSourceCidrBlock()
@Stability(value=Stable) @NotNull String getTrafficDirection()
@Stability(value=Stable) @NotNull String getTrafficMirrorFilterId()
@Stability(value=Stable) @Nullable default String getDescription()
@Stability(value=Stable) @Nullable default Object getDestinationPortRange()
@Stability(value=Stable) @Nullable default Number getProtocol()
For information about the protocol value, see Protocol Numbers on the Internet Assigned Numbers Authority (IANA) website.
@Stability(value=Stable) @Nullable default Object getSourcePortRange()
@Stability(value=Stable) static CfnTrafficMirrorFilterRuleProps.Builder builder()
Copyright © 2022. All rights reserved.