Class: AWSCDK::CustomerProfiles::CfnObjectType::FieldMapProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CustomerProfiles::CfnObjectType::FieldMapProperty
- Defined in:
- customer_profiles/cfn_object_type.rb
Overview
A map of the name and ObjectType field.
Instance Attribute Summary collapse
-
#name ⇒ String?
readonly
Name of the field.
-
#object_type_field ⇒ AWSCDK::IResolvable, ...
readonly
Represents a field in a ProfileObjectType.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name: nil, object_type_field: nil) ⇒ FieldMapProperty
constructor
A new instance of FieldMapProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name: nil, object_type_field: nil) ⇒ FieldMapProperty
Returns a new instance of FieldMapProperty.
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
#name ⇒ String? (readonly)
Name of the field.
694 695 696 |
# File 'customer_profiles/cfn_object_type.rb', line 694 def name @name end |
#object_type_field ⇒ AWSCDK::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_properties ⇒ Object
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_jsii ⇒ Object
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 |