Class: AWSCDK::EntityResolution::CfnSchemaMappingProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
entity_resolution/cfn_schema_mapping_props.rb

Overview

Properties for defining a CfnSchemaMapping.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(mapped_input_fields:, schema_name:, description: nil, tags: nil) ⇒ CfnSchemaMappingProps

Returns a new instance of CfnSchemaMappingProps.

Parameters:



13
14
15
16
17
18
19
20
21
22
# File 'entity_resolution/cfn_schema_mapping_props.rb', line 13

def initialize(mapped_input_fields:, schema_name:, description: nil, tags: nil)
  @mapped_input_fields = mapped_input_fields
  Jsii::Type.check_type(@mapped_input_fields, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZW50aXR5cmVzb2x1dGlvbi5DZm5TY2hlbWFNYXBwaW5nLlNjaGVtYUlucHV0QXR0cmlidXRlUHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "mappedInputFields")
  @schema_name = schema_name
  Jsii::Type.check_type(@schema_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "schemaName")
  @description = description
  Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil?
  @tags = tags.is_a?(Array) ? tags.map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : tags
  Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil?
end

Instance Attribute Details

#descriptionString? (readonly)

A description of the schema.



42
43
44
# File 'entity_resolution/cfn_schema_mapping_props.rb', line 42

def description
  @description
end

#mapped_input_fieldsAWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::EntityResolution::CfnSchemaMapping::SchemaInputAttributeProperty> (readonly)

A list of MappedInputFields .

Each MappedInputField corresponds to a column the source data table, and contains column name plus additional information that AWS Entity Resolution uses for matching.



30
31
32
# File 'entity_resolution/cfn_schema_mapping_props.rb', line 30

def mapped_input_fields
  @mapped_input_fields
end

#schema_nameString (readonly)

The name of the schema.

There can't be multiple SchemaMappings with the same name.



37
38
39
# File 'entity_resolution/cfn_schema_mapping_props.rb', line 37

def schema_name
  @schema_name
end

#tagsArray<AWSCDK::CfnTag>? (readonly)

The tags used to organize, track, or control access for this resource.



47
48
49
# File 'entity_resolution/cfn_schema_mapping_props.rb', line 47

def tags
  @tags
end

Class Method Details

.jsii_propertiesObject



49
50
51
52
53
54
55
56
# File 'entity_resolution/cfn_schema_mapping_props.rb', line 49

def self.jsii_properties
  {
    :mapped_input_fields => "mappedInputFields",
    :schema_name => "schemaName",
    :description => "description",
    :tags => "tags",
  }
end

Instance Method Details

#to_jsiiObject



58
59
60
61
62
63
64
65
66
67
# File 'entity_resolution/cfn_schema_mapping_props.rb', line 58

def to_jsii
  result = {}
  result.merge!({
    "mappedInputFields" => @mapped_input_fields,
    "schemaName" => @schema_name,
    "description" => @description,
    "tags" => @tags,
  })
  result.compact
end