Class: AWSCDK::BedrockAgentCore::CfnBrowserCustom::S3LocationProperty

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

Overview

The S3 location.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(bucket:, prefix:) ⇒ S3LocationProperty

Returns a new instance of S3LocationProperty.

Parameters:

  • bucket (String)

    The S3 location bucket name.

  • prefix (String)

    The S3 location object prefix.



924
925
926
927
928
929
# File 'bedrock_agent_core/cfn_browser_custom.rb', line 924

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

Instance Attribute Details

#bucketString (readonly)

The S3 location bucket name.



935
936
937
# File 'bedrock_agent_core/cfn_browser_custom.rb', line 935

def bucket
  @bucket
end

#prefixString (readonly)

The S3 location object prefix.



940
941
942
# File 'bedrock_agent_core/cfn_browser_custom.rb', line 940

def prefix
  @prefix
end

Class Method Details

.jsii_propertiesObject



942
943
944
945
946
947
# File 'bedrock_agent_core/cfn_browser_custom.rb', line 942

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

Instance Method Details

#to_jsiiObject



949
950
951
952
953
954
955
956
# File 'bedrock_agent_core/cfn_browser_custom.rb', line 949

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