Class: AWSCDK::DynamoDB::CfnTable::S3BucketSourceProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
dynamo_db/cfn_table.rb

Overview

The S3 bucket that is being imported from.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(s3_bucket:, s3_bucket_owner: nil, s3_key_prefix: nil) ⇒ S3BucketSourceProperty

Returns a new instance of S3BucketSourceProperty.

Parameters:

  • s3_bucket (String)

    The S3 bucket that is being imported from.

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

    The account number of the S3 bucket that is being imported from.

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

    The key prefix shared by all S3 Objects that are being imported.



1586
1587
1588
1589
1590
1591
1592
1593
# File 'dynamo_db/cfn_table.rb', line 1586

def initialize(s3_bucket:, s3_bucket_owner: nil, s3_key_prefix: nil)
  @s3_bucket = s3_bucket
  Jsii::Type.check_type(@s3_bucket, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "s3Bucket")
  @s3_bucket_owner = s3_bucket_owner
  Jsii::Type.check_type(@s3_bucket_owner, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "s3BucketOwner") unless @s3_bucket_owner.nil?
  @s3_key_prefix = s3_key_prefix
  Jsii::Type.check_type(@s3_key_prefix, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "s3KeyPrefix") unless @s3_key_prefix.nil?
end

Instance Attribute Details

#s3_bucketString (readonly)

The S3 bucket that is being imported from.



1599
1600
1601
# File 'dynamo_db/cfn_table.rb', line 1599

def s3_bucket
  @s3_bucket
end

#s3_bucket_ownerString? (readonly)

The account number of the S3 bucket that is being imported from.

If the bucket is owned by the requester this is optional.



1606
1607
1608
# File 'dynamo_db/cfn_table.rb', line 1606

def s3_bucket_owner
  @s3_bucket_owner
end

#s3_key_prefixString? (readonly)

The key prefix shared by all S3 Objects that are being imported.



1611
1612
1613
# File 'dynamo_db/cfn_table.rb', line 1611

def s3_key_prefix
  @s3_key_prefix
end

Class Method Details

.jsii_propertiesObject



1613
1614
1615
1616
1617
1618
1619
# File 'dynamo_db/cfn_table.rb', line 1613

def self.jsii_properties
  {
    :s3_bucket => "s3Bucket",
    :s3_bucket_owner => "s3BucketOwner",
    :s3_key_prefix => "s3KeyPrefix",
  }
end

Instance Method Details

#to_jsiiObject



1621
1622
1623
1624
1625
1626
1627
1628
1629
# File 'dynamo_db/cfn_table.rb', line 1621

def to_jsii
  result = {}
  result.merge!({
    "s3Bucket" => @s3_bucket,
    "s3BucketOwner" => @s3_bucket_owner,
    "s3KeyPrefix" => @s3_key_prefix,
  })
  result.compact
end