Class: AWSCDK::ECS::AlternateTargetProps
- Inherits:
-
AlternateTargetOptions
- Object
- AlternateTargetOptions
- AWSCDK::ECS::AlternateTargetProps
- Defined in:
- ecs/alternate_target_props.rb
Overview
Properties for AlternateTarget configuration.
Instance Attribute Summary collapse
-
#alternate_target_group ⇒ AWSCDK::Interfaces::AWSElasticloadbalancingv2::ITargetGroupRef
readonly
The alternate target group.
-
#production_listener ⇒ AWSCDK::ECS::ListenerRuleConfiguration
readonly
The production listener rule ARN (ALB) or listener ARN (NLB).
-
#role ⇒ AWSCDK::IAM::IRole?
readonly
The IAM role for the configuration.
-
#test_listener ⇒ AWSCDK::ECS::ListenerRuleConfiguration?
readonly
The test listener configuration.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(role: nil, test_listener: nil, alternate_target_group:, production_listener:) ⇒ AlternateTargetProps
constructor
A new instance of AlternateTargetProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(role: nil, test_listener: nil, alternate_target_group:, production_listener:) ⇒ AlternateTargetProps
Returns a new instance of AlternateTargetProps.
11 12 13 14 15 16 17 18 19 20 |
# File 'ecs/alternate_target_props.rb', line 11 def initialize(role: nil, test_listener: nil, alternate_target_group:, production_listener:) @role = role Jsii::Type.check_type(@role, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfaWFtLklSb2xlIn0=")), "role") unless @role.nil? @test_listener = test_listener Jsii::Type.check_type(@test_listener, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWNzLkxpc3RlbmVyUnVsZUNvbmZpZ3VyYXRpb24ifQ==")), "testListener") unless @test_listener.nil? @alternate_target_group = alternate_target_group Jsii::Type.check_type(@alternate_target_group, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLmF3c19lbGFzdGljbG9hZGJhbGFuY2luZ3YyLklUYXJnZXRHcm91cFJlZiJ9")), "alternateTargetGroup") @production_listener = production_listener Jsii::Type.check_type(@production_listener, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWNzLkxpc3RlbmVyUnVsZUNvbmZpZ3VyYXRpb24ifQ==")), "productionListener") end |
Instance Attribute Details
#alternate_target_group ⇒ AWSCDK::Interfaces::AWSElasticloadbalancingv2::ITargetGroupRef (readonly)
The alternate target group.
35 36 37 |
# File 'ecs/alternate_target_props.rb', line 35 def alternate_target_group @alternate_target_group end |
#production_listener ⇒ AWSCDK::ECS::ListenerRuleConfiguration (readonly)
The production listener rule ARN (ALB) or listener ARN (NLB).
39 40 41 |
# File 'ecs/alternate_target_props.rb', line 39 def production_listener @production_listener end |
#role ⇒ AWSCDK::IAM::IRole? (readonly)
Note:
Default: - a new role will be created
The IAM role for the configuration.
26 27 28 |
# File 'ecs/alternate_target_props.rb', line 26 def role @role end |
#test_listener ⇒ AWSCDK::ECS::ListenerRuleConfiguration? (readonly)
Note:
Default: - none
The test listener configuration.
31 32 33 |
# File 'ecs/alternate_target_props.rb', line 31 def test_listener @test_listener end |
Class Method Details
.jsii_properties ⇒ Object
41 42 43 44 45 46 47 48 |
# File 'ecs/alternate_target_props.rb', line 41 def self.jsii_properties { :role => "role", :test_listener => "testListener", :alternate_target_group => "alternateTargetGroup", :production_listener => "productionListener", } end |
Instance Method Details
#to_jsii ⇒ Object
50 51 52 53 54 55 56 57 58 59 60 |
# File 'ecs/alternate_target_props.rb', line 50 def to_jsii result = {} result.merge!(super) result.merge!({ "role" => @role, "testListener" => @test_listener, "alternateTargetGroup" => @alternate_target_group, "productionListener" => @production_listener, }) result.compact end |