Class: AWSCDK::ECS::AlternateTargetOptions
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ECS::AlternateTargetOptions
- Defined in:
- ecs/alternate_target_options.rb
Overview
Options for AlternateTarget configuration.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#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) ⇒ AlternateTargetOptions
constructor
A new instance of AlternateTargetOptions.
- #to_jsii ⇒ Object
Constructor Details
#initialize(role: nil, test_listener: nil) ⇒ AlternateTargetOptions
Returns a new instance of AlternateTargetOptions.
9 10 11 12 13 14 |
# File 'ecs/alternate_target_options.rb', line 9 def initialize(role: nil, test_listener: nil) @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? end |
Instance Attribute Details
#role ⇒ AWSCDK::IAM::IRole? (readonly)
Note:
Default: - a new role will be created
The IAM role for the configuration.
20 21 22 |
# File 'ecs/alternate_target_options.rb', line 20 def role @role end |
#test_listener ⇒ AWSCDK::ECS::ListenerRuleConfiguration? (readonly)
Note:
Default: - none
The test listener configuration.
25 26 27 |
# File 'ecs/alternate_target_options.rb', line 25 def test_listener @test_listener end |
Class Method Details
.jsii_properties ⇒ Object
27 28 29 30 31 32 |
# File 'ecs/alternate_target_options.rb', line 27 def self.jsii_properties { :role => "role", :test_listener => "testListener", } end |
Instance Method Details
#to_jsii ⇒ Object
34 35 36 37 38 39 40 41 |
# File 'ecs/alternate_target_options.rb', line 34 def to_jsii result = {} result.merge!({ "role" => @role, "testListener" => @test_listener, }) result.compact end |