Class: AWSCDK::S3::CfnMultiRegionAccessPoint::RegionProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::S3::CfnMultiRegionAccessPoint::RegionProperty
- Defined in:
- s3/cfn_multi_region_access_point.rb
Overview
A bucket associated with a specific Region when creating Multi-Region Access Points.
Instance Attribute Summary collapse
-
#bucket ⇒ String
readonly
The name of the associated bucket for the Region.
-
#bucket_account_id ⇒ String?
readonly
The AWS account ID that owns the Amazon S3 bucket that's associated with this Multi-Region Access Point.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(bucket:, bucket_account_id: nil) ⇒ RegionProperty
constructor
A new instance of RegionProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(bucket:, bucket_account_id: nil) ⇒ RegionProperty
Returns a new instance of RegionProperty.
625 626 627 628 629 630 |
# File 's3/cfn_multi_region_access_point.rb', line 625 def initialize(bucket:, bucket_account_id: nil) @bucket = bucket Jsii::Type.check_type(@bucket, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "bucket") @bucket_account_id = bucket_account_id Jsii::Type.check_type(@bucket_account_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "bucketAccountId") unless @bucket_account_id.nil? end |
Instance Attribute Details
#bucket ⇒ String (readonly)
The name of the associated bucket for the Region.
636 637 638 |
# File 's3/cfn_multi_region_access_point.rb', line 636 def bucket @bucket end |
#bucket_account_id ⇒ String? (readonly)
The AWS account ID that owns the Amazon S3 bucket that's associated with this Multi-Region Access Point.
641 642 643 |
# File 's3/cfn_multi_region_access_point.rb', line 641 def bucket_account_id @bucket_account_id end |
Class Method Details
.jsii_properties ⇒ Object
643 644 645 646 647 648 |
# File 's3/cfn_multi_region_access_point.rb', line 643 def self.jsii_properties { :bucket => "bucket", :bucket_account_id => "bucketAccountId", } end |
Instance Method Details
#to_jsii ⇒ Object
650 651 652 653 654 655 656 657 |
# File 's3/cfn_multi_region_access_point.rb', line 650 def to_jsii result = {} result.merge!({ "bucket" => @bucket, "bucketAccountId" => @bucket_account_id, }) result.compact end |