Class: AWSCDK::Bedrock::CfnPromptVersion::CachePointBlockProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type:) ⇒ CachePointBlockProperty

Returns a new instance of CachePointBlockProperty.

Parameters:

  • type (String)

    Specifies the type of cache point within the CachePointBlock.



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

#typeString (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_propertiesObject



621
622
623
624
625
# File 'bedrock/cfn_prompt_version.rb', line 621

def self.jsii_properties
  {
    :type => "type",
  }
end

Instance Method Details

#to_jsiiObject



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