Class: AWSCDK::Bedrock::CfnPromptVersionProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Bedrock::CfnPromptVersionProps
- Defined in:
- bedrock/cfn_prompt_version_props.rb
Overview
Properties for defining a CfnPromptVersion.
Instance Attribute Summary collapse
-
#description ⇒ String?
readonly
The description of the prompt version.
-
#prompt_arn ⇒ String
readonly
The Amazon Resource Name (ARN) of the version of the prompt.
-
#tags ⇒ Hash{String => String}?
readonly
A map of tags attached to the prompt version and their values.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(prompt_arn:, description: nil, tags: nil) ⇒ CfnPromptVersionProps
constructor
A new instance of CfnPromptVersionProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(prompt_arn:, description: nil, tags: nil) ⇒ CfnPromptVersionProps
Returns a new instance of CfnPromptVersionProps.
12 13 14 15 16 17 18 19 |
# File 'bedrock/cfn_prompt_version_props.rb', line 12 def initialize(prompt_arn:, description: nil, tags: nil) @prompt_arn = prompt_arn Jsii::Type.check_type(@prompt_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "promptArn") @description = description Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil? @tags = Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoibWFwIn19")), "tags") unless @tags.nil? end |
Instance Attribute Details
#description ⇒ String? (readonly)
The description of the prompt version.
30 31 32 |
# File 'bedrock/cfn_prompt_version_props.rb', line 30 def description @description end |
#prompt_arn ⇒ String (readonly)
The Amazon Resource Name (ARN) of the version of the prompt.
25 26 27 |
# File 'bedrock/cfn_prompt_version_props.rb', line 25 def prompt_arn @prompt_arn end |
#tags ⇒ Hash{String => String}? (readonly)
A map of tags attached to the prompt version and their values.
35 36 37 |
# File 'bedrock/cfn_prompt_version_props.rb', line 35 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
37 38 39 40 41 42 43 |
# File 'bedrock/cfn_prompt_version_props.rb', line 37 def self.jsii_properties { :prompt_arn => "promptArn", :description => "description", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
45 46 47 48 49 50 51 52 53 |
# File 'bedrock/cfn_prompt_version_props.rb', line 45 def to_jsii result = {} result.merge!({ "promptArn" => @prompt_arn, "description" => @description, "tags" => @tags, }) result.compact end |