Show / Hide Table of Contents

Class CfnTrafficMirrorFilterRule

Creates a Traffic Mirror filter rule.

Inheritance
object
CfnElement
CfnRefElement
CfnResource
CfnTrafficMirrorFilterRule
Implements
IInspectable
ITrafficMirrorFilterRuleRef
IConstruct
IDependable
IEnvironmentAware
ITaggableV2
Inherited Members
CfnResource.IsCfnResource(object)
CfnResource.AddDeletionOverride(string)
CfnResource.AddDependency(CfnResource)
CfnResource.AddDependsOn(CfnResource)
CfnResource.AddMetadata(string, object)
CfnResource.AddOverride(string, object)
CfnResource.AddPropertyDeletionOverride(string)
CfnResource.AddPropertyOverride(string, object)
CfnResource.ApplyRemovalPolicy(RemovalPolicy?, IRemovalPolicyOptions)
CfnResource.GetAtt(string, ResolutionTypeHint?)
CfnResource.GetMetadata(string)
CfnResource.ObtainDependencies()
CfnResource.ObtainResourceDependencies()
CfnResource.RemoveDependency(CfnResource)
CfnResource.ReplaceDependency(CfnResource, CfnResource)
CfnResource.ShouldSynthesize()
CfnResource.ToString()
CfnResource.ValidateProperties(object)
CfnResource.CfnOptions
CfnResource.CfnResourceType
CfnResource.Env
CfnResource.UpdatedProperites
CfnResource.UpdatedProperties
CfnRefElement.Ref
CfnElement.IsCfnElement(object)
CfnElement.OverrideLogicalId(string)
CfnElement.CreationStack
CfnElement.LogicalId
CfnElement.Stack
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnTrafficMirrorFilterRule : CfnResource, IInspectable, ITrafficMirrorFilterRuleRef, IConstruct, IDependable, IEnvironmentAware, ITaggableV2
Syntax (vb)
Public Class CfnTrafficMirrorFilterRule Inherits CfnResource Implements IInspectable, ITrafficMirrorFilterRuleRef, IConstruct, IDependable, IEnvironmentAware, ITaggableV2
Remarks

A Traffic Mirror rule defines the Traffic Mirror source traffic to mirror.

You need the Traffic Mirror filter ID when you create the rule.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-trafficmirrorfilterrule.html

CloudformationResource: AWS::EC2::TrafficMirrorFilterRule

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
             // The values are placeholders you should change.
             using Amazon.CDK.AWS.EC2;

             var cfnTrafficMirrorFilterRule = new CfnTrafficMirrorFilterRule(this, "MyCfnTrafficMirrorFilterRule", new CfnTrafficMirrorFilterRuleProps {
                 DestinationCidrBlock = "destinationCidrBlock",
                 RuleAction = "ruleAction",
                 RuleNumber = 123,
                 SourceCidrBlock = "sourceCidrBlock",
                 TrafficDirection = "trafficDirection",
                 TrafficMirrorFilterId = "trafficMirrorFilterId",

                 // the properties below are optional
                 Description = "description",
                 DestinationPortRange = new TrafficMirrorPortRangeProperty {
                     FromPort = 123,
                     ToPort = 123
                 },
                 Protocol = 123,
                 SourcePortRange = new TrafficMirrorPortRangeProperty {
                     FromPort = 123,
                     ToPort = 123
                 },
                 Tags = new [] { new CfnTag {
                     Key = "key",
                     Value = "value"
                 } }
             });

Synopsis

Constructors

CfnTrafficMirrorFilterRule(Construct, string, ICfnTrafficMirrorFilterRuleProps)

Create a new AWS::EC2::TrafficMirrorFilterRule.

Properties

AttrTrafficMirrorFilterRuleId

The ID of the Traffic Mirror rule.

CFN_RESOURCE_TYPE_NAME

The CloudFormation resource type name for this resource class.

CdkTagManager

Tag Manager which manages the tags for this resource.

CfnProperties

Creates a Traffic Mirror filter rule.

Description

The description of the Traffic Mirror rule.

DestinationCidrBlock

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

DestinationPortRange

The destination port range.

Protocol

The protocol, for example UDP, to assign to the Traffic Mirror rule.

RuleAction

The action to take on the filtered traffic.

RuleNumber

The number of the Traffic Mirror rule.

SourceCidrBlock

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

SourcePortRange

The source port range.

Tags

Tags on Traffic Mirroring filter rules.

TrafficDirection

The type of traffic.

TrafficMirrorFilterId

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

TrafficMirrorFilterRuleRef

A reference to a TrafficMirrorFilterRule resource.

Methods

ArnForTrafficMirrorFilterRule(ITrafficMirrorFilterRuleRef)

Creates a Traffic Mirror filter rule.

FromTrafficMirrorFilterRuleId(Construct, string, string)

Creates a new ITrafficMirrorFilterRuleRef from a trafficMirrorFilterRuleId.

Inspect(TreeInspector)

Examines the CloudFormation resource and discloses attributes.

IsCfnTrafficMirrorFilterRule(object)

Checks whether the given object is a CfnTrafficMirrorFilterRule.

RenderProperties(IDictionary<string, object>)

Creates a Traffic Mirror filter rule.

Constructors

CfnTrafficMirrorFilterRule(Construct, string, ICfnTrafficMirrorFilterRuleProps)

Create a new AWS::EC2::TrafficMirrorFilterRule.

public CfnTrafficMirrorFilterRule(Construct scope, string id, ICfnTrafficMirrorFilterRuleProps props)
Parameters
scope Construct

Scope in which this resource is defined.

id string

Construct identifier for this resource (unique in its scope).

props ICfnTrafficMirrorFilterRuleProps

Resource properties.

Remarks

A Traffic Mirror rule defines the Traffic Mirror source traffic to mirror.

You need the Traffic Mirror filter ID when you create the rule.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-trafficmirrorfilterrule.html

CloudformationResource: AWS::EC2::TrafficMirrorFilterRule

ExampleMetadata: fixture=_generated

Properties

AttrTrafficMirrorFilterRuleId

The ID of the Traffic Mirror rule.

public virtual string AttrTrafficMirrorFilterRuleId { get; }
Property Value

string

Remarks

CloudformationAttribute: TrafficMirrorFilterRuleId

CFN_RESOURCE_TYPE_NAME

The CloudFormation resource type name for this resource class.

public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value

string

Remarks

A Traffic Mirror rule defines the Traffic Mirror source traffic to mirror.

You need the Traffic Mirror filter ID when you create the rule.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-trafficmirrorfilterrule.html

CloudformationResource: AWS::EC2::TrafficMirrorFilterRule

ExampleMetadata: fixture=_generated

CdkTagManager

Tag Manager which manages the tags for this resource.

public virtual TagManager CdkTagManager { get; }
Property Value

TagManager

Remarks

A Traffic Mirror rule defines the Traffic Mirror source traffic to mirror.

You need the Traffic Mirror filter ID when you create the rule.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-trafficmirrorfilterrule.html

CloudformationResource: AWS::EC2::TrafficMirrorFilterRule

ExampleMetadata: fixture=_generated

CfnProperties

Creates a Traffic Mirror filter rule.

protected override IDictionary<string, object> CfnProperties { get; }
Property Value

IDictionary<string, object>

Overrides
CfnResource.CfnProperties
Remarks

A Traffic Mirror rule defines the Traffic Mirror source traffic to mirror.

You need the Traffic Mirror filter ID when you create the rule.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-trafficmirrorfilterrule.html

CloudformationResource: AWS::EC2::TrafficMirrorFilterRule

ExampleMetadata: fixture=_generated

Description

The description of the Traffic Mirror rule.

public virtual string? Description { get; set; }
Property Value

string

Remarks

A Traffic Mirror rule defines the Traffic Mirror source traffic to mirror.

You need the Traffic Mirror filter ID when you create the rule.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-trafficmirrorfilterrule.html

CloudformationResource: AWS::EC2::TrafficMirrorFilterRule

ExampleMetadata: fixture=_generated

DestinationCidrBlock

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

public virtual string DestinationCidrBlock { get; set; }
Property Value

string

Remarks

A Traffic Mirror rule defines the Traffic Mirror source traffic to mirror.

You need the Traffic Mirror filter ID when you create the rule.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-trafficmirrorfilterrule.html

CloudformationResource: AWS::EC2::TrafficMirrorFilterRule

ExampleMetadata: fixture=_generated

DestinationPortRange

The destination port range.

public virtual object? DestinationPortRange { get; set; }
Property Value

object

Remarks

Type union: either IResolvable or CfnTrafficMirrorFilterRule.ITrafficMirrorPortRangeProperty

Protocol

The protocol, for example UDP, to assign to the Traffic Mirror rule.

public virtual double? Protocol { get; set; }
Property Value

double?

Remarks

A Traffic Mirror rule defines the Traffic Mirror source traffic to mirror.

You need the Traffic Mirror filter ID when you create the rule.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-trafficmirrorfilterrule.html

CloudformationResource: AWS::EC2::TrafficMirrorFilterRule

ExampleMetadata: fixture=_generated

RuleAction

The action to take on the filtered traffic.

public virtual string RuleAction { get; set; }
Property Value

string

Remarks

A Traffic Mirror rule defines the Traffic Mirror source traffic to mirror.

You need the Traffic Mirror filter ID when you create the rule.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-trafficmirrorfilterrule.html

CloudformationResource: AWS::EC2::TrafficMirrorFilterRule

ExampleMetadata: fixture=_generated

RuleNumber

The number of the Traffic Mirror rule.

public virtual double RuleNumber { get; set; }
Property Value

double

Remarks

A Traffic Mirror rule defines the Traffic Mirror source traffic to mirror.

You need the Traffic Mirror filter ID when you create the rule.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-trafficmirrorfilterrule.html

CloudformationResource: AWS::EC2::TrafficMirrorFilterRule

ExampleMetadata: fixture=_generated

SourceCidrBlock

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

public virtual string SourceCidrBlock { get; set; }
Property Value

string

Remarks

A Traffic Mirror rule defines the Traffic Mirror source traffic to mirror.

You need the Traffic Mirror filter ID when you create the rule.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-trafficmirrorfilterrule.html

CloudformationResource: AWS::EC2::TrafficMirrorFilterRule

ExampleMetadata: fixture=_generated

SourcePortRange

The source port range.

public virtual object? SourcePortRange { get; set; }
Property Value

object

Remarks

Type union: either IResolvable or CfnTrafficMirrorFilterRule.ITrafficMirrorPortRangeProperty

Tags

Tags on Traffic Mirroring filter rules.

public virtual ICfnTag[]? Tags { get; set; }
Property Value

ICfnTag[]

Remarks

A Traffic Mirror rule defines the Traffic Mirror source traffic to mirror.

You need the Traffic Mirror filter ID when you create the rule.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-trafficmirrorfilterrule.html

CloudformationResource: AWS::EC2::TrafficMirrorFilterRule

ExampleMetadata: fixture=_generated

TrafficDirection

The type of traffic.

public virtual string TrafficDirection { get; set; }
Property Value

string

Remarks

A Traffic Mirror rule defines the Traffic Mirror source traffic to mirror.

You need the Traffic Mirror filter ID when you create the rule.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-trafficmirrorfilterrule.html

CloudformationResource: AWS::EC2::TrafficMirrorFilterRule

ExampleMetadata: fixture=_generated

TrafficMirrorFilterId

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

public virtual string TrafficMirrorFilterId { get; set; }
Property Value

string

Remarks

A Traffic Mirror rule defines the Traffic Mirror source traffic to mirror.

You need the Traffic Mirror filter ID when you create the rule.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-trafficmirrorfilterrule.html

CloudformationResource: AWS::EC2::TrafficMirrorFilterRule

ExampleMetadata: fixture=_generated

TrafficMirrorFilterRuleRef

A reference to a TrafficMirrorFilterRule resource.

public virtual ITrafficMirrorFilterRuleReference TrafficMirrorFilterRuleRef { get; }
Property Value

ITrafficMirrorFilterRuleReference

Remarks

A Traffic Mirror rule defines the Traffic Mirror source traffic to mirror.

You need the Traffic Mirror filter ID when you create the rule.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-trafficmirrorfilterrule.html

CloudformationResource: AWS::EC2::TrafficMirrorFilterRule

ExampleMetadata: fixture=_generated

Methods

ArnForTrafficMirrorFilterRule(ITrafficMirrorFilterRuleRef)

Creates a Traffic Mirror filter rule.

public static string ArnForTrafficMirrorFilterRule(ITrafficMirrorFilterRuleRef resource)
Parameters
resource ITrafficMirrorFilterRuleRef
Returns

string

Remarks

A Traffic Mirror rule defines the Traffic Mirror source traffic to mirror.

You need the Traffic Mirror filter ID when you create the rule.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-trafficmirrorfilterrule.html

CloudformationResource: AWS::EC2::TrafficMirrorFilterRule

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
             // The values are placeholders you should change.
             using Amazon.CDK.AWS.EC2;

             var cfnTrafficMirrorFilterRule = new CfnTrafficMirrorFilterRule(this, "MyCfnTrafficMirrorFilterRule", new CfnTrafficMirrorFilterRuleProps {
                 DestinationCidrBlock = "destinationCidrBlock",
                 RuleAction = "ruleAction",
                 RuleNumber = 123,
                 SourceCidrBlock = "sourceCidrBlock",
                 TrafficDirection = "trafficDirection",
                 TrafficMirrorFilterId = "trafficMirrorFilterId",

                 // the properties below are optional
                 Description = "description",
                 DestinationPortRange = new TrafficMirrorPortRangeProperty {
                     FromPort = 123,
                     ToPort = 123
                 },
                 Protocol = 123,
                 SourcePortRange = new TrafficMirrorPortRangeProperty {
                     FromPort = 123,
                     ToPort = 123
                 },
                 Tags = new [] { new CfnTag {
                     Key = "key",
                     Value = "value"
                 } }
             });

FromTrafficMirrorFilterRuleId(Construct, string, string)

Creates a new ITrafficMirrorFilterRuleRef from a trafficMirrorFilterRuleId.

public static ITrafficMirrorFilterRuleRef FromTrafficMirrorFilterRuleId(Construct scope, string id, string trafficMirrorFilterRuleId)
Parameters
scope Construct
id string
trafficMirrorFilterRuleId string
Returns

ITrafficMirrorFilterRuleRef

Remarks

A Traffic Mirror rule defines the Traffic Mirror source traffic to mirror.

You need the Traffic Mirror filter ID when you create the rule.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-trafficmirrorfilterrule.html

CloudformationResource: AWS::EC2::TrafficMirrorFilterRule

ExampleMetadata: fixture=_generated

Inspect(TreeInspector)

Examines the CloudFormation resource and discloses attributes.

public virtual void Inspect(TreeInspector inspector)
Parameters
inspector TreeInspector

tree inspector to collect and process attributes.

Remarks

A Traffic Mirror rule defines the Traffic Mirror source traffic to mirror.

You need the Traffic Mirror filter ID when you create the rule.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-trafficmirrorfilterrule.html

CloudformationResource: AWS::EC2::TrafficMirrorFilterRule

ExampleMetadata: fixture=_generated

IsCfnTrafficMirrorFilterRule(object)

Checks whether the given object is a CfnTrafficMirrorFilterRule.

public static bool IsCfnTrafficMirrorFilterRule(object x)
Parameters
x object
Returns

bool

Remarks

A Traffic Mirror rule defines the Traffic Mirror source traffic to mirror.

You need the Traffic Mirror filter ID when you create the rule.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-trafficmirrorfilterrule.html

CloudformationResource: AWS::EC2::TrafficMirrorFilterRule

ExampleMetadata: fixture=_generated

RenderProperties(IDictionary<string, object>)

Creates a Traffic Mirror filter rule.

protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
props IDictionary<string, object>
Returns

IDictionary<string, object>

Overrides
CfnResource.RenderProperties(IDictionary<string, object>)
Remarks

A Traffic Mirror rule defines the Traffic Mirror source traffic to mirror.

You need the Traffic Mirror filter ID when you create the rule.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-trafficmirrorfilterrule.html

CloudformationResource: AWS::EC2::TrafficMirrorFilterRule

ExampleMetadata: fixture=_generated

Implements

IInspectable
ITrafficMirrorFilterRuleRef
Constructs.IConstruct
Constructs.IDependable
IEnvironmentAware
ITaggableV2
Back to top Generated by DocFX