Class: AWSCDK::S3::CfnBucket::ReplicationConfigurationProperty

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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(role:, rules:) ⇒ ReplicationConfigurationProperty

Returns a new instance of ReplicationConfigurationProperty.

Parameters:



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

#roleString (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

#rulesAWSCDK::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_propertiesObject



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_jsiiObject



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