Class: AWSCDK::Bedrock::CfnPromptVersion::CachePointBlockProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Bedrock::CfnPromptVersion::CachePointBlockProperty
- Defined in:
- bedrock/cfn_prompt_version.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.
610 611 612 613 |
# File 'bedrock/cfn_prompt_version.rb', line 610 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.
619 620 621 |
# File 'bedrock/cfn_prompt_version.rb', line 619 def type @type end |
Class Method Details
.jsii_properties ⇒ Object
621 622 623 624 625 |
# File 'bedrock/cfn_prompt_version.rb', line 621 def self.jsii_properties { :type => "type", } end |
Instance Method Details
#to_jsii ⇒ Object
627 628 629 630 631 632 633 |
# File 'bedrock/cfn_prompt_version.rb', line 627 def to_jsii result = {} result.merge!({ "type" => @type, }) result.compact end |