Class: AWSCDK::CustomerProfiles::CfnObjectType::FieldMapProperty

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

Overview

A map of the name and ObjectType field.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name: nil, object_type_field: nil) ⇒ FieldMapProperty

Returns a new instance of FieldMapProperty.

Parameters:



683
684
685
686
687
688
# File 'customer_profiles/cfn_object_type.rb', line 683

def initialize(name: nil, object_type_field: nil)
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") unless @name.nil?
  @object_type_field = object_type_field.is_a?(Hash) ? ::AWSCDK::CustomerProfiles::CfnObjectType::ObjectTypeFieldProperty.new(**object_type_field.transform_keys(&:to_sym)) : object_type_field
  Jsii::Type.check_type(@object_type_field, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jdXN0b21lcnByb2ZpbGVzLkNmbk9iamVjdFR5cGUuT2JqZWN0VHlwZUZpZWxkUHJvcGVydHkifV19fQ==")), "objectTypeField") unless @object_type_field.nil?
end

Instance Attribute Details

#nameString? (readonly)

Name of the field.



694
695
696
# File 'customer_profiles/cfn_object_type.rb', line 694

def name
  @name
end

#object_type_fieldAWSCDK::IResolvable, ... (readonly)

Represents a field in a ProfileObjectType.



699
700
701
# File 'customer_profiles/cfn_object_type.rb', line 699

def object_type_field
  @object_type_field
end

Class Method Details

.jsii_propertiesObject



701
702
703
704
705
706
# File 'customer_profiles/cfn_object_type.rb', line 701

def self.jsii_properties
  {
    :name => "name",
    :object_type_field => "objectTypeField",
  }
end

Instance Method Details

#to_jsiiObject



708
709
710
711
712
713
714
715
# File 'customer_profiles/cfn_object_type.rb', line 708

def to_jsii
  result = {}
  result.merge!({
    "name" => @name,
    "objectTypeField" => @object_type_field,
  })
  result.compact
end