Class: AWSCDK::CodeDeploy::ECSApplicationProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
code_deploy/ecs_application_props.rb

Overview

Construction properties for EcsApplication.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(application_name: nil) ⇒ ECSApplicationProps

Returns a new instance of ECSApplicationProps.

Parameters:

  • application_name (String, nil) (defaults to: nil)

    The physical, human-readable name of the CodeDeploy Application.



8
9
10
11
# File 'code_deploy/ecs_application_props.rb', line 8

def initialize(application_name: nil)
  @application_name = application_name
  Jsii::Type.check_type(@application_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "applicationName") unless @application_name.nil?
end

Instance Attribute Details

#application_nameString? (readonly)

Note:

Default: an auto-generated name will be used

The physical, human-readable name of the CodeDeploy Application.

Returns:

  • (String, nil)


17
18
19
# File 'code_deploy/ecs_application_props.rb', line 17

def application_name
  @application_name
end

Class Method Details

.jsii_propertiesObject



19
20
21
22
23
# File 'code_deploy/ecs_application_props.rb', line 19

def self.jsii_properties
  {
    :application_name => "applicationName",
  }
end

Instance Method Details

#to_jsiiObject



25
26
27
28
29
30
31
# File 'code_deploy/ecs_application_props.rb', line 25

def to_jsii
  result = {}
  result.merge!({
    "applicationName" => @application_name,
  })
  result.compact
end