@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.344Z") @Stability(value=Stable) public class CfnTrafficMirrorTarget extends CfnResource implements IInspectable
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 .
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.*;
CfnTrafficMirrorTarget cfnTrafficMirrorTarget = CfnTrafficMirrorTarget.Builder.create(this, "MyCfnTrafficMirrorTarget")
.description("description")
.gatewayLoadBalancerEndpointId("gatewayLoadBalancerEndpointId")
.networkInterfaceId("networkInterfaceId")
.networkLoadBalancerArn("networkLoadBalancerArn")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnTrafficMirrorTarget.Builder
A fluent builder for
CfnTrafficMirrorTarget. |
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnTrafficMirrorTarget(software.constructs.Construct scope,
String id)
Create a new `AWS::EC2::TrafficMirrorTarget`.
|
|
CfnTrafficMirrorTarget(software.constructs.Construct scope,
String id,
CfnTrafficMirrorTargetProps props)
Create a new `AWS::EC2::TrafficMirrorTarget`.
|
protected |
CfnTrafficMirrorTarget(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnTrafficMirrorTarget(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
protected Map<String,Object> |
getCfnProperties() |
String |
getDescription()
The description of the Traffic Mirror target.
|
String |
getGatewayLoadBalancerEndpointId()
The ID of the Gateway Load Balancer endpoint.
|
String |
getNetworkInterfaceId()
The network interface ID that is associated with the target.
|
String |
getNetworkLoadBalancerArn()
The Amazon Resource Name (ARN) of the Network Load Balancer that is associated with the target.
|
TagManager |
getTags()
The tags to assign to the Traffic Mirror target.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setDescription(String value)
The description of the Traffic Mirror target.
|
void |
setGatewayLoadBalancerEndpointId(String value)
The ID of the Gateway Load Balancer endpoint.
|
void |
setNetworkInterfaceId(String value)
The network interface ID that is associated with the target.
|
void |
setNetworkLoadBalancerArn(String value)
The Amazon Resource Name (ARN) of the Network Load Balancer that is associated with the target.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnTrafficMirrorTarget(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnTrafficMirrorTarget(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnTrafficMirrorTarget(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@Nullable
CfnTrafficMirrorTargetProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties.@Stability(value=Stable)
public CfnTrafficMirrorTarget(@NotNull
software.constructs.Construct scope,
@NotNull
String id)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public TagManager getTags()
@Stability(value=Stable) @Nullable public String getDescription()
@Stability(value=Stable)
public void setDescription(@Nullable
String value)
@Stability(value=Stable) @Nullable public String getGatewayLoadBalancerEndpointId()
@Stability(value=Stable)
public void setGatewayLoadBalancerEndpointId(@Nullable
String value)
@Stability(value=Stable) @Nullable public String getNetworkInterfaceId()
@Stability(value=Stable)
public void setNetworkInterfaceId(@Nullable
String value)
@Stability(value=Stable) @Nullable public String getNetworkLoadBalancerArn()
@Stability(value=Stable)
public void setNetworkLoadBalancerArn(@Nullable
String value)
Copyright © 2022. All rights reserved.