Class: AWSCDK::Wisdom::CfnMessageTemplate::MessageTemplateAttributesProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Wisdom::CfnMessageTemplate::MessageTemplateAttributesProperty
- Defined in:
- wisdom/cfn_message_template.rb
Overview
The attributes that are used with the message template.
Instance Attribute Summary collapse
-
#agent_attributes ⇒ AWSCDK::IResolvable, ...
readonly
The agent attributes that are used with the message template.
-
#custom_attributes ⇒ AWSCDK::IResolvable, ...
readonly
The custom attributes that are used with the message template.
-
#customer_profile_attributes ⇒ AWSCDK::IResolvable, ...
readonly
The customer profile attributes that are used with the message template.
-
#system_attributes ⇒ AWSCDK::IResolvable, ...
readonly
The system attributes that are used with the message template.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(agent_attributes: nil, custom_attributes: nil, customer_profile_attributes: nil, system_attributes: nil) ⇒ MessageTemplateAttributesProperty
constructor
A new instance of MessageTemplateAttributesProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(agent_attributes: nil, custom_attributes: nil, customer_profile_attributes: nil, system_attributes: nil) ⇒ MessageTemplateAttributesProperty
Returns a new instance of MessageTemplateAttributesProperty.
1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 |
# File 'wisdom/cfn_message_template.rb', line 1598 def initialize(agent_attributes: nil, custom_attributes: nil, customer_profile_attributes: nil, system_attributes: nil) @agent_attributes = agent_attributes.is_a?(Hash) ? ::AWSCDK::Wisdom::CfnMessageTemplate::AgentAttributesProperty.new(**agent_attributes.transform_keys(&:to_sym)) : agent_attributes Jsii::Type.check_type(@agent_attributes, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c193aXNkb20uQ2ZuTWVzc2FnZVRlbXBsYXRlLkFnZW50QXR0cmlidXRlc1Byb3BlcnR5In1dfX0=")), "agentAttributes") unless @agent_attributes.nil? @custom_attributes = custom_attributes Jsii::Type.check_type(@custom_attributes, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsicHJpbWl0aXZlIjoic3RyaW5nIn0sImtpbmQiOiJtYXAifX1dfX0=")), "customAttributes") unless @custom_attributes.nil? @customer_profile_attributes = customer_profile_attributes.is_a?(Hash) ? ::AWSCDK::Wisdom::CfnMessageTemplate::CustomerProfileAttributesProperty.new(**customer_profile_attributes.transform_keys(&:to_sym)) : customer_profile_attributes Jsii::Type.check_type(@customer_profile_attributes, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c193aXNkb20uQ2ZuTWVzc2FnZVRlbXBsYXRlLkN1c3RvbWVyUHJvZmlsZUF0dHJpYnV0ZXNQcm9wZXJ0eSJ9XX19")), "customerProfileAttributes") unless @customer_profile_attributes.nil? @system_attributes = system_attributes.is_a?(Hash) ? ::AWSCDK::Wisdom::CfnMessageTemplate::SystemAttributesProperty.new(**system_attributes.transform_keys(&:to_sym)) : system_attributes Jsii::Type.check_type(@system_attributes, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c193aXNkb20uQ2ZuTWVzc2FnZVRlbXBsYXRlLlN5c3RlbUF0dHJpYnV0ZXNQcm9wZXJ0eSJ9XX19")), "systemAttributes") unless @system_attributes.nil? end |
Instance Attribute Details
#agent_attributes ⇒ AWSCDK::IResolvable, ... (readonly)
The agent attributes that are used with the message template.
1613 1614 1615 |
# File 'wisdom/cfn_message_template.rb', line 1613 def agent_attributes @agent_attributes end |
#custom_attributes ⇒ AWSCDK::IResolvable, ... (readonly)
The custom attributes that are used with the message template.
1618 1619 1620 |
# File 'wisdom/cfn_message_template.rb', line 1618 def custom_attributes @custom_attributes end |
#customer_profile_attributes ⇒ AWSCDK::IResolvable, ... (readonly)
The customer profile attributes that are used with the message template.
1623 1624 1625 |
# File 'wisdom/cfn_message_template.rb', line 1623 def customer_profile_attributes @customer_profile_attributes end |
#system_attributes ⇒ AWSCDK::IResolvable, ... (readonly)
The system attributes that are used with the message template.
1628 1629 1630 |
# File 'wisdom/cfn_message_template.rb', line 1628 def system_attributes @system_attributes end |
Class Method Details
.jsii_properties ⇒ Object
1630 1631 1632 1633 1634 1635 1636 1637 |
# File 'wisdom/cfn_message_template.rb', line 1630 def self.jsii_properties { :agent_attributes => "agentAttributes", :custom_attributes => "customAttributes", :customer_profile_attributes => "customerProfileAttributes", :system_attributes => "systemAttributes", } end |
Instance Method Details
#to_jsii ⇒ Object
1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 |
# File 'wisdom/cfn_message_template.rb', line 1639 def to_jsii result = {} result.merge!({ "agentAttributes" => @agent_attributes, "customAttributes" => @custom_attributes, "customerProfileAttributes" => @customer_profile_attributes, "systemAttributes" => @system_attributes, }) result.compact end |