Class: AWSCDK::BedrockAgentCore::CfnMemory::MetadataSchemaEntryProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::BedrockAgentCore::CfnMemory::MetadataSchemaEntryProperty
- Defined in:
- bedrock_agent_core/cfn_memory.rb
Overview
Instance Attribute Summary collapse
- #extraction_config ⇒ AWSCDK::IResolvable, ... readonly
-
#key ⇒ String
readonly
Key name for metadata fields.
-
#type ⇒ String?
readonly
Supported data types for metadata values.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(key:, extraction_config: nil, type: nil) ⇒ MetadataSchemaEntryProperty
constructor
A new instance of MetadataSchemaEntryProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(key:, extraction_config: nil, type: nil) ⇒ MetadataSchemaEntryProperty
Returns a new instance of MetadataSchemaEntryProperty.
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
#extraction_config ⇒ AWSCDK::IResolvable, ... (readonly)
1620 1621 1622 |
# File 'bedrock_agent_core/cfn_memory.rb', line 1620 def extraction_config @extraction_config end |
#key ⇒ String (readonly)
Key name for metadata fields.
1617 1618 1619 |
# File 'bedrock_agent_core/cfn_memory.rb', line 1617 def key @key end |
#type ⇒ String? (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_properties ⇒ Object
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_jsii ⇒ Object
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 |