Class: AWSCDK::ECS::CfnService::VPCLatticeConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(port_name:, role_arn:, target_group_arn:) ⇒ VPCLatticeConfigurationProperty

Returns a new instance of VPCLatticeConfigurationProperty.

Parameters:

  • port_name (String)

    The name of the port mapping to register in the VPC Lattice target group.

  • role_arn (String)

    The ARN of the IAM role to associate with this VPC Lattice configuration.

  • target_group_arn (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.



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_nameString (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_arnString (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_arnString (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_propertiesObject



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_jsiiObject



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