Class: AWSCDK::AppConfig::ApplicationProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::AppConfig::ApplicationProps
- Defined in:
- app_config/application_props.rb
Overview
Properties for the Application construct.
Instance Attribute Summary collapse
-
#application_name ⇒ String?
readonly
The name of the application.
-
#description ⇒ String?
readonly
The description for the application.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(application_name: nil, description: nil) ⇒ ApplicationProps
constructor
A new instance of ApplicationProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(application_name: nil, description: nil) ⇒ ApplicationProps
Returns a new instance of ApplicationProps.
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_name ⇒ String? (readonly)
Note:
Default: - A name is generated.
The name of the application.
20 21 22 |
# File 'app_config/application_props.rb', line 20 def application_name @application_name end |
#description ⇒ String? (readonly)
Note:
Default: - No description.
The description for the application.
25 26 27 |
# File 'app_config/application_props.rb', line 25 def description @description end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |