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