Class CfnTrafficMirrorTarget.Builder

java.lang.Object
software.amazon.awscdk.services.ec2.CfnTrafficMirrorTarget.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTrafficMirrorTarget>
Enclosing class:
CfnTrafficMirrorTarget

@Stability(Stable) public static final class CfnTrafficMirrorTarget.Builder extends Object implements software.amazon.jsii.Builder<CfnTrafficMirrorTarget>
A fluent builder for CfnTrafficMirrorTarget.
  • Method Details

    • create

      @Stability(Stable) public static CfnTrafficMirrorTarget.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnTrafficMirrorTarget.Builder.
    • description

      @Stability(Stable) public CfnTrafficMirrorTarget.Builder description(String description)
      The description of the Traffic Mirror target.

      Parameters:
      description - The description of the Traffic Mirror target. This parameter is required.
      Returns:
      this
    • gatewayLoadBalancerEndpointId

      @Stability(Stable) public CfnTrafficMirrorTarget.Builder gatewayLoadBalancerEndpointId(String gatewayLoadBalancerEndpointId)
      The ID of the Gateway Load Balancer endpoint.

      Parameters:
      gatewayLoadBalancerEndpointId - The ID of the Gateway Load Balancer endpoint. This parameter is required.
      Returns:
      this
    • networkInterfaceId

      @Stability(Stable) public CfnTrafficMirrorTarget.Builder networkInterfaceId(String networkInterfaceId)
      The network interface ID that is associated with the target.

      Parameters:
      networkInterfaceId - The network interface ID that is associated with the target. This parameter is required.
      Returns:
      this
    • networkLoadBalancerArn

      @Stability(Stable) public CfnTrafficMirrorTarget.Builder networkLoadBalancerArn(String networkLoadBalancerArn)
      The Amazon Resource Name (ARN) of the Network Load Balancer that is associated with the target.

      Parameters:
      networkLoadBalancerArn - The Amazon Resource Name (ARN) of the Network Load Balancer that is associated with the target. This parameter is required.
      Returns:
      this
    • tags

      @Stability(Stable) public CfnTrafficMirrorTarget.Builder tags(List<? extends CfnTag> tags)
      The tags to assign to the Traffic Mirror target.

      Parameters:
      tags - The tags to assign to the Traffic Mirror target. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public CfnTrafficMirrorTarget build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnTrafficMirrorTarget>
      Returns:
      a newly built instance of CfnTrafficMirrorTarget.