Class: AWSCDK::ECS::CfnService::VPCLatticeConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ECS::CfnService::VPCLatticeConfigurationProperty
- Defined in:
- ecs/cfn_service.rb
Overview
The VPC Lattice configuration for your service that holds the information for the target group(s) Amazon ECS tasks will be registered to.
Instance Attribute Summary collapse
-
#port_name ⇒ String
readonly
The name of the port mapping to register in the VPC Lattice target group.
-
#role_arn ⇒ String
readonly
The ARN of the IAM role to associate with this VPC Lattice configuration.
-
#target_group_arn ⇒ String
readonly
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.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(port_name:, role_arn:, target_group_arn:) ⇒ VPCLatticeConfigurationProperty
constructor
A new instance of VPCLatticeConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(port_name:, role_arn:, target_group_arn:) ⇒ VPCLatticeConfigurationProperty
Returns a new instance of VPCLatticeConfigurationProperty.
3294 3295 3296 3297 3298 3299 3300 3301 |
# File 'ecs/cfn_service.rb', line 3294 def initialize(port_name:, role_arn:, target_group_arn:) @port_name = port_name Jsii::Type.check_type(@port_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "portName") @role_arn = role_arn Jsii::Type.check_type(@role_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "roleArn") @target_group_arn = target_group_arn Jsii::Type.check_type(@target_group_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "targetGroupArn") end |
Instance Attribute Details
#port_name ⇒ String (readonly)
The name of the port mapping to register in the VPC Lattice target group.
This is the name of the port_mapping you defined in your task definition.
3309 3310 3311 |
# File 'ecs/cfn_service.rb', line 3309 def port_name @port_name end |
#role_arn ⇒ String (readonly)
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.
3316 3317 3318 |
# File 'ecs/cfn_service.rb', line 3316 def role_arn @role_arn end |
#target_group_arn ⇒ String (readonly)
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.
3321 3322 3323 |
# File 'ecs/cfn_service.rb', line 3321 def target_group_arn @target_group_arn end |
Class Method Details
.jsii_properties ⇒ Object
3323 3324 3325 3326 3327 3328 3329 |
# File 'ecs/cfn_service.rb', line 3323 def self.jsii_properties { :port_name => "portName", :role_arn => "roleArn", :target_group_arn => "targetGroupArn", } end |
Instance Method Details
#to_jsii ⇒ Object
3331 3332 3333 3334 3335 3336 3337 3338 3339 |
# File 'ecs/cfn_service.rb', line 3331 def to_jsii result = {} result.merge!({ "portName" => @port_name, "roleArn" => @role_arn, "targetGroupArn" => @target_group_arn, }) result.compact end |