Class: AWSCDK::BedrockAgentCore::CfnDataset::S3SourceProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
bedrock_agent_core/cfn_dataset.rb

Overview

S3 location of a JSONL file containing dataset examples.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(s3_uri:) ⇒ S3SourceProperty

Returns a new instance of S3SourceProperty.

Parameters:

  • s3_uri (String)

    S3 URI of the JSONL file (e.g. s3://my-bucket/path/to/examples.jsonl).



703
704
705
706
# File 'bedrock_agent_core/cfn_dataset.rb', line 703

def initialize(s3_uri:)
  @s3_uri = s3_uri
  Jsii::Type.check_type(@s3_uri, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "s3Uri")
end

Instance Attribute Details

#s3_uriString (readonly)

S3 URI of the JSONL file (e.g. s3://my-bucket/path/to/examples.jsonl).



712
713
714
# File 'bedrock_agent_core/cfn_dataset.rb', line 712

def s3_uri
  @s3_uri
end

Class Method Details

.jsii_propertiesObject



714
715
716
717
718
# File 'bedrock_agent_core/cfn_dataset.rb', line 714

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

Instance Method Details

#to_jsiiObject



720
721
722
723
724
725
726
# File 'bedrock_agent_core/cfn_dataset.rb', line 720

def to_jsii
  result = {}
  result.merge!({
    "s3Uri" => @s3_uri,
  })
  result.compact
end