Class: AWSCDK::BedrockAgentCore::CfnMemory::MetadataSchemaEntryProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
bedrock_agent_core/cfn_memory.rb

Overview

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key:, extraction_config: nil, type: nil) ⇒ MetadataSchemaEntryProperty

Returns a new instance of MetadataSchemaEntryProperty.

Parameters:



1604
1605
1606
1607
1608
1609
1610
1611
# File 'bedrock_agent_core/cfn_memory.rb', line 1604

def initialize(key:, extraction_config: nil, type: nil)
  @key = key
  Jsii::Type.check_type(@key, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "key")
  @extraction_config = extraction_config.is_a?(Hash) ? ::AWSCDK::BedrockAgentCore::CfnMemory::ExtractionConfigProperty.new(**extraction_config.transform_keys(&:to_sym)) : extraction_config
  Jsii::Type.check_type(@extraction_config, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrYWdlbnRjb3JlLkNmbk1lbW9yeS5FeHRyYWN0aW9uQ29uZmlnUHJvcGVydHkifV19fQ==")), "extractionConfig") unless @extraction_config.nil?
  @type = type
  Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type") unless @type.nil?
end

Instance Attribute Details

#keyString (readonly)

Key name for metadata fields.



1617
1618
1619
# File 'bedrock_agent_core/cfn_memory.rb', line 1617

def key
  @key
end

#typeString? (readonly)

Supported data types for metadata values.



1625
1626
1627
# File 'bedrock_agent_core/cfn_memory.rb', line 1625

def type
  @type
end

Class Method Details

.jsii_propertiesObject



1627
1628
1629
1630
1631
1632
1633
# File 'bedrock_agent_core/cfn_memory.rb', line 1627

def self.jsii_properties
  {
    :key => "key",
    :extraction_config => "extractionConfig",
    :type => "type",
  }
end

Instance Method Details

#to_jsiiObject



1635
1636
1637
1638
1639
1640
1641
1642
1643
# File 'bedrock_agent_core/cfn_memory.rb', line 1635

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