Class: AWSCDK::Bedrock::CfnPromptVersionProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
bedrock/cfn_prompt_version_props.rb

Overview

Properties for defining a CfnPromptVersion.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(prompt_arn:, description: nil, tags: nil) ⇒ CfnPromptVersionProps

Returns a new instance of CfnPromptVersionProps.

Parameters:

  • prompt_arn (String)

    The Amazon Resource Name (ARN) of the version of the prompt.

  • description (String, nil) (defaults to: nil)

    The description of the prompt version.

  • tags (Hash{String => String}, nil) (defaults to: nil)

    A map of tags attached to the prompt version and their values.



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 = tags
  Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoibWFwIn19")), "tags") unless @tags.nil?
end

Instance Attribute Details

#descriptionString? (readonly)

The description of the prompt version.



30
31
32
# File 'bedrock/cfn_prompt_version_props.rb', line 30

def description
  @description
end

#prompt_arnString (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

#tagsHash{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
  @tags
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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