aws-cdk-lib.aws_ec2.CfnTrafficMirrorFilterRuleProps

interface CfnTrafficMirrorFilterRuleProps

LanguageType name
.NETAmazon.CDK.AWS.EC2.CfnTrafficMirrorFilterRuleProps
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsec2#CfnTrafficMirrorFilterRuleProps
Javasoftware.amazon.awscdk.services.ec2.CfnTrafficMirrorFilterRuleProps
Pythonaws_cdk.aws_ec2.CfnTrafficMirrorFilterRuleProps
TypeScript aws-cdk-lib » aws_ec2 » CfnTrafficMirrorFilterRuleProps

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 { aws_ec2 as ec2 } from 'aws-cdk-lib';
const cfnTrafficMirrorFilterRuleProps: ec2.CfnTrafficMirrorFilterRuleProps = {
  destinationCidrBlock: 'destinationCidrBlock',
  ruleAction: 'ruleAction',
  ruleNumber: 123,
  sourceCidrBlock: 'sourceCidrBlock',
  trafficDirection: 'trafficDirection',
  trafficMirrorFilterId: 'trafficMirrorFilterId',

  // the properties below are optional
  description: 'description',
  destinationPortRange: {
    fromPort: 123,
    toPort: 123,
  },
  protocol: 123,
  sourcePortRange: {
    fromPort: 123,
    toPort: 123,
  },
};

Properties

NameTypeDescription
destinationCidrBlockstringThe destination CIDR block to assign to the Traffic Mirror rule.
ruleActionstringThe action to take on the filtered traffic.
ruleNumbernumberThe number of the Traffic Mirror rule.
sourceCidrBlockstringThe source CIDR block to assign to the Traffic Mirror rule.
trafficDirectionstringThe type of traffic.
trafficMirrorFilterIdstringThe ID of the filter that this rule is associated with.
description?stringThe description of the Traffic Mirror rule.
destinationPortRange?IResolvable | TrafficMirrorPortRangePropertyThe destination port range.
protocol?numberThe protocol, for example UDP, to assign to the Traffic Mirror rule.
sourcePortRange?IResolvable | TrafficMirrorPortRangePropertyThe source port range.

destinationCidrBlock

Type: string

The destination CIDR block to assign to the Traffic Mirror rule.


ruleAction

Type: string

The action to take on the filtered traffic.


ruleNumber

Type: number

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.


sourceCidrBlock

Type: string

The source CIDR block to assign to the Traffic Mirror rule.


trafficDirection

Type: string

The type of traffic.


trafficMirrorFilterId

Type: string

The ID of the filter that this rule is associated with.


description?

Type: string (optional)

The description of the Traffic Mirror rule.


destinationPortRange?

Type: IResolvable | TrafficMirrorPortRangeProperty (optional)

The destination port range.


protocol?

Type: number (optional)

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.


sourcePortRange?

Type: IResolvable | TrafficMirrorPortRangeProperty (optional)

The source port range.