Class: AWSCDK::Bedrock::CfnDataSource::S3DataSourceConfigurationProperty

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

Overview

The configuration information to connect to Amazon S3 as your data source.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(bucket_arn:, bucket_owner_account_id: nil, inclusion_prefixes: nil) ⇒ S3DataSourceConfigurationProperty

Returns a new instance of S3DataSourceConfigurationProperty.

Parameters:

  • bucket_arn (String)

    The Amazon Resource Name (ARN) of the S3 bucket that contains your data.

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

    The account ID for the owner of the S3 bucket.

  • inclusion_prefixes (Array<String>, nil) (defaults to: nil)

    A list of S3 prefixes to include certain files or content.



1828
1829
1830
1831
1832
1833
1834
1835
# File 'bedrock/cfn_data_source.rb', line 1828

def initialize(bucket_arn:, bucket_owner_account_id: nil, inclusion_prefixes: nil)
  @bucket_arn = bucket_arn
  Jsii::Type.check_type(@bucket_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "bucketArn")
  @bucket_owner_account_id = 
  Jsii::Type.check_type(@bucket_owner_account_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "bucketOwnerAccountId") unless @bucket_owner_account_id.nil?
  @inclusion_prefixes = inclusion_prefixes
  Jsii::Type.check_type(@inclusion_prefixes, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "inclusionPrefixes") unless @inclusion_prefixes.nil?
end

Instance Attribute Details

#bucket_arnString (readonly)

The Amazon Resource Name (ARN) of the S3 bucket that contains your data.



1841
1842
1843
# File 'bedrock/cfn_data_source.rb', line 1841

def bucket_arn
  @bucket_arn
end

#bucket_owner_account_idString? (readonly)

The account ID for the owner of the S3 bucket.



1846
1847
1848
# File 'bedrock/cfn_data_source.rb', line 1846

def 
  @bucket_owner_account_id
end

#inclusion_prefixesArray<String>? (readonly)

A list of S3 prefixes to include certain files or content.

This field is an array with a maximum of one item, which can contain a string that has a maximum length of 300 characters. For more information, see Organizing objects using prefixes .



1853
1854
1855
# File 'bedrock/cfn_data_source.rb', line 1853

def inclusion_prefixes
  @inclusion_prefixes
end

Class Method Details

.jsii_propertiesObject



1855
1856
1857
1858
1859
1860
1861
# File 'bedrock/cfn_data_source.rb', line 1855

def self.jsii_properties
  {
    :bucket_arn => "bucketArn",
    :bucket_owner_account_id => "bucketOwnerAccountId",
    :inclusion_prefixes => "inclusionPrefixes",
  }
end

Instance Method Details

#to_jsiiObject



1863
1864
1865
1866
1867
1868
1869
1870
1871
# File 'bedrock/cfn_data_source.rb', line 1863

def to_jsii
  result = {}
  result.merge!({
    "bucketArn" => @bucket_arn,
    "bucketOwnerAccountId" => @bucket_owner_account_id,
    "inclusionPrefixes" => @inclusion_prefixes,
  })
  result.compact
end