Class: AWSCDK::Bedrock::CfnPromptVersion::PromptMetadataEntryProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Bedrock::CfnPromptVersion::PromptMetadataEntryProperty
- Defined in:
- bedrock/cfn_prompt_version.rb
Overview
Contains a key-value pair that defines a metadata tag and value to attach to a prompt variant.
For more information, see Create a prompt using Prompt management .
Instance Attribute Summary collapse
-
#key ⇒ String
readonly
The key of a metadata tag for a prompt variant.
-
#value ⇒ String
readonly
The value of a metadata tag for a prompt variant.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(key:, value:) ⇒ PromptMetadataEntryProperty
constructor
A new instance of PromptMetadataEntryProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(key:, value:) ⇒ PromptMetadataEntryProperty
Returns a new instance of PromptMetadataEntryProperty.
938 939 940 941 942 943 |
# File 'bedrock/cfn_prompt_version.rb', line 938 def initialize(key:, value:) @key = key Jsii::Type.check_type(@key, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "key") @value = value Jsii::Type.check_type(@value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "value") end |
Instance Attribute Details
#key ⇒ String (readonly)
The key of a metadata tag for a prompt variant.
949 950 951 |
# File 'bedrock/cfn_prompt_version.rb', line 949 def key @key end |
#value ⇒ String (readonly)
The value of a metadata tag for a prompt variant.
954 955 956 |
# File 'bedrock/cfn_prompt_version.rb', line 954 def value @value end |
Class Method Details
.jsii_properties ⇒ Object
956 957 958 959 960 961 |
# File 'bedrock/cfn_prompt_version.rb', line 956 def self.jsii_properties { :key => "key", :value => "value", } end |
Instance Method Details
#to_jsii ⇒ Object
963 964 965 966 967 968 969 970 |
# File 'bedrock/cfn_prompt_version.rb', line 963 def to_jsii result = {} result.merge!({ "key" => @key, "value" => @value, }) result.compact end |