Class: AWSCDK::S3::CfnBucket::ReplicationConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::S3::CfnBucket::ReplicationConfigurationProperty
- Defined in:
- s3/cfn_bucket.rb
Overview
A container for replication rules.
You can add up to 1,000 rules. The maximum size of a replication configuration is 2 MB. The latest version of the replication configuration XML is V2. For more information about XML V2 replication configurations, see Replication configuration in the Amazon S3 User Guide .
Instance Attribute Summary collapse
-
#role ⇒ String
readonly
The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that Amazon S3 assumes when replicating objects.
-
#rules ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::S3::CfnBucket::ReplicationRuleProperty>
readonly
A container for one or more replication rules.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(role:, rules:) ⇒ ReplicationConfigurationProperty
constructor
A new instance of ReplicationConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(role:, rules:) ⇒ ReplicationConfigurationProperty
Returns a new instance of ReplicationConfigurationProperty.
3339 3340 3341 3342 3343 3344 |
# File 's3/cfn_bucket.rb', line 3339 def initialize(role:, rules:) @role = role Jsii::Type.check_type(@role, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "role") @rules = rules Jsii::Type.check_type(@rules, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfczMuQ2ZuQnVja2V0LlJlcGxpY2F0aW9uUnVsZVByb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "rules") end |
Instance Attribute Details
#role ⇒ String (readonly)
The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that Amazon S3 assumes when replicating objects.
For more information, see How to Set Up Replication in the Amazon S3 User Guide .
3352 3353 3354 |
# File 's3/cfn_bucket.rb', line 3352 def role @role end |
#rules ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::S3::CfnBucket::ReplicationRuleProperty> (readonly)
A container for one or more replication rules.
A replication configuration must have at least one rule and can contain a maximum of 1,000 rules.
3359 3360 3361 |
# File 's3/cfn_bucket.rb', line 3359 def rules @rules end |
Class Method Details
.jsii_properties ⇒ Object
3361 3362 3363 3364 3365 3366 |
# File 's3/cfn_bucket.rb', line 3361 def self.jsii_properties { :role => "role", :rules => "rules", } end |
Instance Method Details
#to_jsii ⇒ Object
3368 3369 3370 3371 3372 3373 3374 3375 |
# File 's3/cfn_bucket.rb', line 3368 def to_jsii result = {} result.merge!({ "role" => @role, "rules" => @rules, }) result.compact end |