Class: AWSCDK::ECS::AlternateTargetOptions

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
ecs/alternate_target_options.rb

Overview

Options for AlternateTarget configuration.

Direct Known Subclasses

AlternateTargetProps

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(role: nil, test_listener: nil) ⇒ AlternateTargetOptions

Returns a new instance of AlternateTargetOptions.

Parameters:



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

#roleAWSCDK::IAM::IRole? (readonly)

Note:

Default: - a new role will be created

The IAM role for the configuration.

Returns:



20
21
22
# File 'ecs/alternate_target_options.rb', line 20

def role
  @role
end

#test_listenerAWSCDK::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_propertiesObject



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_jsiiObject



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