Class: AWSCDK::Pinpoint::CfnInAppTemplateProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Pinpoint::CfnInAppTemplateProps
- Defined in:
- pinpoint/cfn_in_app_template_props.rb
Overview
Properties for defining a CfnInAppTemplate.
Instance Attribute Summary collapse
-
#content ⇒ AWSCDK::IResolvable, ...
readonly
An object that contains information about the content of an in-app message, including its title and body text, text colors, background colors, images, buttons, and behaviors.
-
#custom_config ⇒ Object?
readonly
Custom data, in the form of key-value pairs, that is included in an in-app messaging payload.
-
#layout ⇒ String?
readonly
A string that determines the appearance of the in-app message.
-
#tags ⇒ Object?
readonly
An array of key-value pairs to apply to this resource.
-
#template_description ⇒ String?
readonly
An optional description of the in-app template.
-
#template_name ⇒ String
readonly
The name of the in-app message template.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(template_name:, content: nil, custom_config: nil, layout: nil, tags: nil, template_description: nil) ⇒ CfnInAppTemplateProps
constructor
A new instance of CfnInAppTemplateProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(template_name:, content: nil, custom_config: nil, layout: nil, tags: nil, template_description: nil) ⇒ CfnInAppTemplateProps
Returns a new instance of CfnInAppTemplateProps.
15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'pinpoint/cfn_in_app_template_props.rb', line 15 def initialize(template_name:, content: nil, custom_config: nil, layout: nil, tags: nil, template_description: nil) @template_name = template_name Jsii::Type.check_type(@template_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "templateName") @content = content Jsii::Type.check_type(@content, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfcGlucG9pbnQuQ2ZuSW5BcHBUZW1wbGF0ZS5JbkFwcE1lc3NhZ2VDb250ZW50UHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "content") unless @content.nil? @custom_config = custom_config Jsii::Type.check_type(@custom_config, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJhbnkifQ==")), "customConfig") unless @custom_config.nil? @layout = layout Jsii::Type.check_type(@layout, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "layout") unless @layout.nil? @tags = Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJhbnkifQ==")), "tags") unless @tags.nil? @template_description = template_description Jsii::Type.check_type(@template_description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "templateDescription") unless @template_description.nil? end |
Instance Attribute Details
#content ⇒ AWSCDK::IResolvable, ... (readonly)
An object that contains information about the content of an in-app message, including its title and body text, text colors, background colors, images, buttons, and behaviors.
39 40 41 |
# File 'pinpoint/cfn_in_app_template_props.rb', line 39 def content @content end |
#custom_config ⇒ Object? (readonly)
Custom data, in the form of key-value pairs, that is included in an in-app messaging payload.
44 45 46 |
# File 'pinpoint/cfn_in_app_template_props.rb', line 44 def custom_config @custom_config end |
#layout ⇒ String? (readonly)
A string that determines the appearance of the in-app message. You can specify one of the following:.
BOTTOM_BANNER– a message that appears as a banner at the bottom of the page.TOP_BANNER– a message that appears as a banner at the top of the page.OVERLAYS– a message that covers entire screen.MOBILE_FEED– a message that appears in a window in front of the page.MIDDLE_BANNER– a message that appears as a banner in the middle of the page.CAROUSEL– a scrollable layout of up to five unique messages.
56 57 58 |
# File 'pinpoint/cfn_in_app_template_props.rb', line 56 def layout @layout end |
#tags ⇒ Object? (readonly)
An array of key-value pairs to apply to this resource.
For more information, see Tag .
63 64 65 |
# File 'pinpoint/cfn_in_app_template_props.rb', line 63 def @tags end |
#template_description ⇒ String? (readonly)
An optional description of the in-app template.
68 69 70 |
# File 'pinpoint/cfn_in_app_template_props.rb', line 68 def template_description @template_description end |
#template_name ⇒ String (readonly)
The name of the in-app message template.
34 35 36 |
# File 'pinpoint/cfn_in_app_template_props.rb', line 34 def template_name @template_name end |
Class Method Details
.jsii_properties ⇒ Object
70 71 72 73 74 75 76 77 78 79 |
# File 'pinpoint/cfn_in_app_template_props.rb', line 70 def self.jsii_properties { :template_name => "templateName", :content => "content", :custom_config => "customConfig", :layout => "layout", :tags => "tags", :template_description => "templateDescription", } end |
Instance Method Details
#to_jsii ⇒ Object
81 82 83 84 85 86 87 88 89 90 91 92 |
# File 'pinpoint/cfn_in_app_template_props.rb', line 81 def to_jsii result = {} result.merge!({ "templateName" => @template_name, "content" => @content, "customConfig" => @custom_config, "layout" => @layout, "tags" => @tags, "templateDescription" => @template_description, }) result.compact end |