Class CfnTrafficMirrorTarget
Specifies a target for your Traffic Mirror session.
Inherited Members
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnTrafficMirrorTarget : CfnResource, IInspectable, ITaggable
Syntax (vb)
Public Class CfnTrafficMirrorTarget
Inherits CfnResource
Implements IInspectable, ITaggable
Remarks
A Traffic Mirror target is the destination for mirrored traffic. The Traffic Mirror source and the Traffic Mirror target (monitoring appliances) can be in the same VPC, or in different VPCs connected via VPC peering or a transit gateway.
A Traffic Mirror target can be a network interface, a Network Load Balancer, or a Gateway Load Balancer endpoint.
To use the target in a Traffic Mirror session, use AWS::EC2::TrafficMirrorSession .
CloudformationResource: AWS::EC2::TrafficMirrorTarget
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 cfnTrafficMirrorTarget = new CfnTrafficMirrorTarget(this, "MyCfnTrafficMirrorTarget", new CfnTrafficMirrorTargetProps {
Description = "description",
GatewayLoadBalancerEndpointId = "gatewayLoadBalancerEndpointId",
NetworkInterfaceId = "networkInterfaceId",
NetworkLoadBalancerArn = "networkLoadBalancerArn",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
});
Synopsis
Constructors
CfnTrafficMirrorTarget(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnTrafficMirrorTarget(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
CfnTrafficMirrorTarget(Construct, String, ICfnTrafficMirrorTargetProps) |
Properties
AttrId | |
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | |
Description | The description of the Traffic Mirror target. |
GatewayLoadBalancerEndpointId | The ID of the Gateway Load Balancer endpoint. |
NetworkInterfaceId | The network interface ID that is associated with the target. |
NetworkLoadBalancerArn | The Amazon Resource Name (ARN) of the Network Load Balancer that is associated with the target. |
Tags | Tag Manager which manages the tags for this resource. |
TagsRaw | The tags to assign to the Traffic Mirror target. |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnTrafficMirrorTarget(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnTrafficMirrorTarget(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CfnTrafficMirrorTarget(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnTrafficMirrorTarget(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
CfnTrafficMirrorTarget(Construct, String, ICfnTrafficMirrorTargetProps)
public CfnTrafficMirrorTarget(Construct scope, string id, ICfnTrafficMirrorTargetProps props = null)
Parameters
- scope Constructs.Construct
Scope in which this resource is defined.
- id System.String
Construct identifier for this resource (unique in its scope).
- props ICfnTrafficMirrorTargetProps
Resource properties.
Properties
AttrId
public virtual string AttrId { get; }
Property Value
System.String
Remarks
CloudformationAttribute: Id
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
System.String
CfnProperties
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.Object>
Overrides
Description
The description of the Traffic Mirror target.
public virtual string Description { get; set; }
Property Value
System.String
GatewayLoadBalancerEndpointId
The ID of the Gateway Load Balancer endpoint.
public virtual string GatewayLoadBalancerEndpointId { get; set; }
Property Value
System.String
NetworkInterfaceId
The network interface ID that is associated with the target.
public virtual string NetworkInterfaceId { get; set; }
Property Value
System.String
NetworkLoadBalancerArn
The Amazon Resource Name (ARN) of the Network Load Balancer that is associated with the target.
public virtual string NetworkLoadBalancerArn { get; set; }
Property Value
System.String
Tags
Tag Manager which manages the tags for this resource.
public virtual TagManager Tags { get; }
Property Value
TagsRaw
The tags to assign to the Traffic Mirror target.
public virtual ICfnTag[] TagsRaw { get; set; }
Property Value
ICfnTag[]
Methods
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.
RenderProperties(IDictionary<String, Object>)
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props System.Collections.Generic.IDictionary<System.String, System.Object>
Returns
System.Collections.Generic.IDictionary<System.String, System.Object>