Class: AWSCDK::Bedrock::CfnPrompt::CachePointBlockProperty

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

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.



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

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



628
629
630
631
632
# File 'bedrock/cfn_prompt.rb', line 628

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

Instance Method Details

#to_jsiiObject



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