Class: AWSCDK::DynamoDB::CfnTable::S3BucketSourceProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::DynamoDB::CfnTable::S3BucketSourceProperty
- Defined in:
- dynamo_db/cfn_table.rb
Overview
The S3 bucket that is being imported from.
Instance Attribute Summary collapse
-
#s3_bucket ⇒ String
readonly
The S3 bucket that is being imported from.
-
#s3_bucket_owner ⇒ String?
readonly
The account number of the S3 bucket that is being imported from.
-
#s3_key_prefix ⇒ String?
readonly
The key prefix shared by all S3 Objects that are being imported.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(s3_bucket:, s3_bucket_owner: nil, s3_key_prefix: nil) ⇒ S3BucketSourceProperty
constructor
A new instance of S3BucketSourceProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(s3_bucket:, s3_bucket_owner: nil, s3_key_prefix: nil) ⇒ S3BucketSourceProperty
Returns a new instance of S3BucketSourceProperty.
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_bucket ⇒ String (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_owner ⇒ String? (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_prefix ⇒ String? (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_properties ⇒ Object
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_jsii ⇒ Object
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 |