Class CfnTrafficMirrorTarget
A CloudFormation AWS::EC2::TrafficMirrorTarget
.
Inherited Members
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.AWS.EC2.dll
Syntax (csharp)
public class CfnTrafficMirrorTarget : CfnResource, IConstruct, IDependable, IInspectable
Syntax (vb)
Public Class CfnTrafficMirrorTarget
Inherits CfnResource
Implements IConstruct, IDependable, IInspectable
Remarks
Specifies a target for your Traffic Mirror session.
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(Construct, String, ICfnTrafficMirrorTargetProps) | Create a new |
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 |
Properties
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 | 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(Construct, String, ICfnTrafficMirrorTargetProps)
Create a new AWS::EC2::TrafficMirrorTarget
.
public CfnTrafficMirrorTarget(Construct scope, string id, ICfnTrafficMirrorTargetProps props = null)
Parameters
- scope Construct
- scope in which this resource is defined.
- id System.String
- scoped id of the resource.
- props ICfnTrafficMirrorTargetProps
- resource properties.
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
Properties
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
Remarks
GatewayLoadBalancerEndpointId
The ID of the Gateway Load Balancer endpoint.
public virtual string GatewayLoadBalancerEndpointId { get; set; }
Property Value
System.String
Remarks
NetworkInterfaceId
The network interface ID that is associated with the target.
public virtual string NetworkInterfaceId { get; set; }
Property Value
System.String
Remarks
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
Remarks
Tags
The tags to assign to the Traffic Mirror target.
public virtual TagManager Tags { get; }
Property Value
Remarks
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>