Class: AWSCDK::QBusiness::CfnPlugin::S3Property

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
q_business/cfn_plugin.rb

Overview

Information required for Amazon Q Business to find a specific file in an Amazon S3 bucket.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(bucket:, key:) ⇒ S3Property

Returns a new instance of S3Property.

Parameters:

  • bucket (String)

    The name of the S3 bucket that contains the file.

  • key (String)

    The name of the file.



904
905
906
907
908
909
# File 'q_business/cfn_plugin.rb', line 904

def initialize(bucket:, key:)
  @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")
end

Instance Attribute Details

#bucketString (readonly)

The name of the S3 bucket that contains the file.



915
916
917
# File 'q_business/cfn_plugin.rb', line 915

def bucket
  @bucket
end

#keyString (readonly)

The name of the file.



920
921
922
# File 'q_business/cfn_plugin.rb', line 920

def key
  @key
end

Class Method Details

.jsii_propertiesObject



922
923
924
925
926
927
# File 'q_business/cfn_plugin.rb', line 922

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

Instance Method Details

#to_jsiiObject



929
930
931
932
933
934
935
936
# File 'q_business/cfn_plugin.rb', line 929

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