Class: AWSCDK::Bedrock::CfnPrompt::CachePointBlockProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Bedrock::CfnPrompt::CachePointBlockProperty
- Defined in:
- bedrock/cfn_prompt.rb
Overview
Defines a section of content to be cached for reuse in subsequent API calls.
Instance Attribute Summary collapse
-
#type ⇒ String
readonly
Specifies the type of cache point within the CachePointBlock.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(type:) ⇒ CachePointBlockProperty
constructor
A new instance of CachePointBlockProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(type:) ⇒ CachePointBlockProperty
Returns a new instance of CachePointBlockProperty.
617 618 619 620 |
# File 'bedrock/cfn_prompt.rb', line 617 def initialize(type:) @type = type Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type") end |
Instance Attribute Details
#type ⇒ String (readonly)
Specifies the type of cache point within the CachePointBlock.
626 627 628 |
# File 'bedrock/cfn_prompt.rb', line 626 def type @type end |
Class Method Details
.jsii_properties ⇒ Object
628 629 630 631 632 |
# File 'bedrock/cfn_prompt.rb', line 628 def self.jsii_properties { :type => "type", } end |
Instance Method Details
#to_jsii ⇒ Object
634 635 636 637 638 639 640 |
# File 'bedrock/cfn_prompt.rb', line 634 def to_jsii result = {} result.merge!({ "type" => @type, }) result.compact end |