Class: AWSCDK::Pinpoint::CfnAppProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Pinpoint::CfnAppProps
- Defined in:
- pinpoint/cfn_app_props.rb
Overview
Properties for defining a CfnApp.
Instance Attribute Summary collapse
-
#name ⇒ String
readonly
The display name of the application.
-
#tags ⇒ Object?
readonly
An array of key-value pairs to apply to this resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name:, tags: nil) ⇒ CfnAppProps
constructor
A new instance of CfnAppProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name:, tags: nil) ⇒ CfnAppProps
Returns a new instance of CfnAppProps.
11 12 13 14 15 16 |
# File 'pinpoint/cfn_app_props.rb', line 11 def initialize(name:, tags: nil) @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") @tags = Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJhbnkifQ==")), "tags") unless @tags.nil? end |
Instance Attribute Details
#name ⇒ String (readonly)
The display name of the application.
22 23 24 |
# File 'pinpoint/cfn_app_props.rb', line 22 def name @name end |
#tags ⇒ Object? (readonly)
An array of key-value pairs to apply to this resource.
For more information, see Tag .
29 30 31 |
# File 'pinpoint/cfn_app_props.rb', line 29 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
31 32 33 34 35 36 |
# File 'pinpoint/cfn_app_props.rb', line 31 def self.jsii_properties { :name => "name", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
38 39 40 41 42 43 44 45 |
# File 'pinpoint/cfn_app_props.rb', line 38 def to_jsii result = {} result.merge!({ "name" => @name, "tags" => @tags, }) result.compact end |