Class: AWSCDK::S3::CfnMultiRegionAccessPointProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::S3::CfnMultiRegionAccessPointProps
- Defined in:
- s3/cfn_multi_region_access_point_props.rb
Overview
Properties for defining a CfnMultiRegionAccessPoint.
Instance Attribute Summary collapse
-
#name ⇒ String?
readonly
The name of the Multi-Region Access Point.
-
#public_access_block_configuration ⇒ AWSCDK::IResolvable, ...
readonly
The PublicAccessBlock configuration that you want to apply to this Multi-Region Access Point.
-
#regions ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::S3::CfnMultiRegionAccessPoint::RegionProperty>
readonly
A collection of the Regions and buckets associated with the Multi-Region Access Point.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(regions:, name: nil, public_access_block_configuration: nil) ⇒ CfnMultiRegionAccessPointProps
constructor
A new instance of CfnMultiRegionAccessPointProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(regions:, name: nil, public_access_block_configuration: nil) ⇒ CfnMultiRegionAccessPointProps
Returns a new instance of CfnMultiRegionAccessPointProps.
12 13 14 15 16 17 18 19 |
# File 's3/cfn_multi_region_access_point_props.rb', line 12 def initialize(regions:, name: nil, public_access_block_configuration: nil) @regions = regions Jsii::Type.check_type(@regions, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfczMuQ2ZuTXVsdGlSZWdpb25BY2Nlc3NQb2ludC5SZWdpb25Qcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "regions") @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") unless @name.nil? @public_access_block_configuration = public_access_block_configuration.is_a?(Hash) ? ::AWSCDK::S3::CfnMultiRegionAccessPoint::PublicAccessBlockConfigurationProperty.new(**public_access_block_configuration.transform_keys(&:to_sym)) : public_access_block_configuration Jsii::Type.check_type(@public_access_block_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zMy5DZm5NdWx0aVJlZ2lvbkFjY2Vzc1BvaW50LlB1YmxpY0FjY2Vzc0Jsb2NrQ29uZmlndXJhdGlvblByb3BlcnR5In1dfX0=")), "publicAccessBlockConfiguration") unless @public_access_block_configuration.nil? end |
Instance Attribute Details
#name ⇒ String? (readonly)
The name of the Multi-Region Access Point.
30 31 32 |
# File 's3/cfn_multi_region_access_point_props.rb', line 30 def name @name end |
#public_access_block_configuration ⇒ AWSCDK::IResolvable, ... (readonly)
The PublicAccessBlock configuration that you want to apply to this Multi-Region Access Point.
You can enable the configuration options in any combination. For more information about when Amazon S3 considers an object public, see The Meaning of "Public" in the Amazon S3 User Guide .
37 38 39 |
# File 's3/cfn_multi_region_access_point_props.rb', line 37 def public_access_block_configuration @public_access_block_configuration end |
#regions ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::S3::CfnMultiRegionAccessPoint::RegionProperty> (readonly)
A collection of the Regions and buckets associated with the Multi-Region Access Point.
25 26 27 |
# File 's3/cfn_multi_region_access_point_props.rb', line 25 def regions @regions end |
Class Method Details
.jsii_properties ⇒ Object
39 40 41 42 43 44 45 |
# File 's3/cfn_multi_region_access_point_props.rb', line 39 def self.jsii_properties { :regions => "regions", :name => "name", :public_access_block_configuration => "publicAccessBlockConfiguration", } end |
Instance Method Details
#to_jsii ⇒ Object
47 48 49 50 51 52 53 54 55 |
# File 's3/cfn_multi_region_access_point_props.rb', line 47 def to_jsii result = {} result.merge!({ "regions" => @regions, "name" => @name, "publicAccessBlockConfiguration" => @public_access_block_configuration, }) result.compact end |