Class: AWSCDK::AppConfig::ApplicationProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
app_config/application_props.rb

Overview

Properties for the Application construct.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(application_name: nil, description: nil) ⇒ ApplicationProps

Returns a new instance of ApplicationProps.

Parameters:

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

    The name of the application.

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

    The description for the application.



9
10
11
12
13
14
# File 'app_config/application_props.rb', line 9

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

Instance Attribute Details

#application_nameString? (readonly)

Note:

Default: - A name is generated.

The name of the application.

Returns:

  • (String, nil)


20
21
22
# File 'app_config/application_props.rb', line 20

def application_name
  @application_name
end

#descriptionString? (readonly)

Note:

Default: - No description.

The description for the application.

Returns:

  • (String, nil)


25
26
27
# File 'app_config/application_props.rb', line 25

def description
  @description
end

Class Method Details

.jsii_propertiesObject



27
28
29
30
31
32
# File 'app_config/application_props.rb', line 27

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

Instance Method Details

#to_jsiiObject



34
35
36
37
38
39
40
41
# File 'app_config/application_props.rb', line 34

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