Class: AWSCDK::S3::CfnMultiRegionAccessPoint::RegionProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(bucket:, bucket_account_id: nil) ⇒ RegionProperty

Returns a new instance of RegionProperty.

Parameters:

  • bucket (String)

    The name of the associated bucket for the Region.

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

    The AWS account ID that owns the Amazon S3 bucket that's associated with this Multi-Region Access Point.



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 = 
  Jsii::Type.check_type(@bucket_account_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "bucketAccountId") unless @bucket_account_id.nil?
end

Instance Attribute Details

#bucketString (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_idString? (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
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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