Class: AWSCDK::CustomerProfiles::CfnIntegration::ObjectTypeMappingProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
customer_profiles/cfn_integration.rb

Overview

A map in which each key is an event type from an external application such as Segment or Shopify, and each value is an ObjectTypeName (template) used to ingest the event.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key:, value:) ⇒ ObjectTypeMappingProperty

Returns a new instance of ObjectTypeMappingProperty.

Parameters:

  • key (String)

    The key.

  • value (String)

    The value.



837
838
839
840
841
842
# File 'customer_profiles/cfn_integration.rb', line 837

def initialize(key:, value:)
  @key = key
  Jsii::Type.check_type(@key, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "key")
  @value = value
  Jsii::Type.check_type(@value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "value")
end

Instance Attribute Details

#keyString (readonly)

The key.



848
849
850
# File 'customer_profiles/cfn_integration.rb', line 848

def key
  @key
end

#valueString (readonly)

The value.



853
854
855
# File 'customer_profiles/cfn_integration.rb', line 853

def value
  @value
end

Class Method Details

.jsii_propertiesObject



855
856
857
858
859
860
# File 'customer_profiles/cfn_integration.rb', line 855

def self.jsii_properties
  {
    :key => "key",
    :value => "value",
  }
end

Instance Method Details

#to_jsiiObject



862
863
864
865
866
867
868
869
# File 'customer_profiles/cfn_integration.rb', line 862

def to_jsii
  result = {}
  result.merge!({
    "key" => @key,
    "value" => @value,
  })
  result.compact
end