Class: AWSCDK::Bedrock::CfnPrompt::TextS3LocationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
bedrock/cfn_prompt.rb

Overview

The Amazon S3 location of the prompt text.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(bucket:, key:, version: nil) ⇒ TextS3LocationProperty

Returns a new instance of TextS3LocationProperty.

Parameters:

  • bucket (String)

    The Amazon S3 bucket containing the prompt text.

  • key (String)

    The object key for the Amazon S3 location.

  • version (String, nil) (defaults to: nil)

    The version of the Amazon S3 location to use.



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

#bucketString (readonly)

The Amazon S3 bucket containing the prompt text.



1366
1367
1368
# File 'bedrock/cfn_prompt.rb', line 1366

def bucket
  @bucket
end

#keyString (readonly)

The object key for the Amazon S3 location.



1371
1372
1373
# File 'bedrock/cfn_prompt.rb', line 1371

def key
  @key
end

#versionString? (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_propertiesObject



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_jsiiObject



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