Class: AWSCDK::Bedrock::CfnPrompt::TextS3LocationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Bedrock::CfnPrompt::TextS3LocationProperty
- Defined in:
- bedrock/cfn_prompt.rb
Overview
The Amazon S3 location of the prompt text.
Instance Attribute Summary collapse
-
#bucket ⇒ String
readonly
The Amazon S3 bucket containing the prompt text.
-
#key ⇒ String
readonly
The object key for the Amazon S3 location.
-
#version ⇒ String?
readonly
The version of the Amazon S3 location to use.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(bucket:, key:, version: nil) ⇒ TextS3LocationProperty
constructor
A new instance of TextS3LocationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(bucket:, key:, version: nil) ⇒ TextS3LocationProperty
Returns a new instance of TextS3LocationProperty.
1353 1354 1355 1356 1357 1358 1359 1360 |
# File 'bedrock/cfn_prompt.rb', line 1353 def initialize(bucket:, key:, version: nil) @bucket = bucket Jsii::Type.check_type(@bucket, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "bucket") @key = key Jsii::Type.check_type(@key, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "key") @version = version Jsii::Type.check_type(@version, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "version") unless @version.nil? end |
Instance Attribute Details
#bucket ⇒ String (readonly)
The Amazon S3 bucket containing the prompt text.
1366 1367 1368 |
# File 'bedrock/cfn_prompt.rb', line 1366 def bucket @bucket end |
#key ⇒ String (readonly)
The object key for the Amazon S3 location.
1371 1372 1373 |
# File 'bedrock/cfn_prompt.rb', line 1371 def key @key end |
#version ⇒ String? (readonly)
The version of the Amazon S3 location to use.
1376 1377 1378 |
# File 'bedrock/cfn_prompt.rb', line 1376 def version @version end |
Class Method Details
.jsii_properties ⇒ Object
1378 1379 1380 1381 1382 1383 1384 |
# File 'bedrock/cfn_prompt.rb', line 1378 def self.jsii_properties { :bucket => "bucket", :key => "key", :version => "version", } end |
Instance Method Details
#to_jsii ⇒ Object
1386 1387 1388 1389 1390 1391 1392 1393 1394 |
# File 'bedrock/cfn_prompt.rb', line 1386 def to_jsii result = {} result.merge!({ "bucket" => @bucket, "key" => @key, "version" => @version, }) result.compact end |