interface VpcLatticeConfigurationProperty
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.ECS.CfnService.VpcLatticeConfigurationProperty |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsecs#CfnService_VpcLatticeConfigurationProperty |
![]() | software.amazon.awscdk.services.ecs.CfnService.VpcLatticeConfigurationProperty |
![]() | aws_cdk.aws_ecs.CfnService.VpcLatticeConfigurationProperty |
![]() | aws-cdk-lib » aws_ecs » CfnService » VpcLatticeConfigurationProperty |
The VPC Lattice configuration for your service that holds the information for the target group(s) Amazon ECS tasks will be registered to.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ecs as ecs } from 'aws-cdk-lib';
const vpcLatticeConfigurationProperty: ecs.CfnService.VpcLatticeConfigurationProperty = {
portName: 'portName',
roleArn: 'roleArn',
targetGroupArn: 'targetGroupArn',
};
Properties
Name | Type | Description |
---|---|---|
port | string | The name of the port mapping to register in the VPC Lattice target group. |
role | string | The ARN of the IAM role to associate with this VPC Lattice configuration. |
target | string | 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. |
portName
Type:
string
The name of the port mapping to register in the VPC Lattice target group.
This is the name of the portMapping
you defined in your task definition.
roleArn
Type:
string
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.
targetGroupArn
Type:
string
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.