Class CfnService.VpcLatticeConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ecs.CfnService.VpcLatticeConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnService.VpcLatticeConfigurationProperty>
- Enclosing interface:
CfnService.VpcLatticeConfigurationProperty
@Stability(Stable)
public static final class CfnService.VpcLatticeConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnService.VpcLatticeConfigurationProperty>
A builder for
CfnService.VpcLatticeConfigurationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnService.VpcLatticeConfigurationProperty.getPortName()
Sets the value ofCfnService.VpcLatticeConfigurationProperty.getRoleArn()
targetGroupArn
(String targetGroupArn) Sets the value ofCfnService.VpcLatticeConfigurationProperty.getTargetGroupArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
portName
@Stability(Stable) public CfnService.VpcLatticeConfigurationProperty.Builder portName(String portName) Sets the value ofCfnService.VpcLatticeConfigurationProperty.getPortName()
- Parameters:
portName
- The name of the port mapping to register in the VPC Lattice target group. This parameter is required. This is the name of theportMapping
you defined in your task definition.- Returns:
this
-
roleArn
@Stability(Stable) public CfnService.VpcLatticeConfigurationProperty.Builder roleArn(String roleArn) Sets the value ofCfnService.VpcLatticeConfigurationProperty.getRoleArn()
- Parameters:
roleArn
- The ARN of the IAM role to associate with this VPC Lattice configuration. This parameter is required. This is the Amazon ECS infrastructure IAM role that is used to manage your VPC Lattice infrastructure.- Returns:
this
-
targetGroupArn
@Stability(Stable) public CfnService.VpcLatticeConfigurationProperty.Builder targetGroupArn(String targetGroupArn) Sets the value ofCfnService.VpcLatticeConfigurationProperty.getTargetGroupArn()
- Parameters:
targetGroupArn
- The full Amazon Resource Name (ARN) of the target group or groups associated with the VPC Lattice configuration that the Amazon ECS tasks will be registered to. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnService.VpcLatticeConfigurationProperty>
- Returns:
- a new instance of
CfnService.VpcLatticeConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-