Class: AWSCDK::S3::CfnBucket::AccessControlTranslationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::S3::CfnBucket::AccessControlTranslationProperty
- Defined in:
- s3/cfn_bucket.rb
Overview
Specify this only in a cross-account scenario (where source and destination bucket owners are not the same), and you want to change replica ownership to the AWS account that owns the destination bucket.
If this is not specified in the replication configuration, the replicas are owned by same AWS account that owns the source object.
Instance Attribute Summary collapse
-
#owner ⇒ String
readonly
Specifies the replica ownership.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(owner:) ⇒ AccessControlTranslationProperty
constructor
A new instance of AccessControlTranslationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(owner:) ⇒ AccessControlTranslationProperty
Returns a new instance of AccessControlTranslationProperty.
1063 1064 1065 1066 |
# File 's3/cfn_bucket.rb', line 1063 def initialize(owner:) @owner = owner Jsii::Type.check_type(@owner, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "owner") end |
Instance Attribute Details
#owner ⇒ String (readonly)
Specifies the replica ownership.
For default and valid values, see PUT bucket replication in the Amazon S3 API Reference .
1074 1075 1076 |
# File 's3/cfn_bucket.rb', line 1074 def owner @owner end |
Class Method Details
.jsii_properties ⇒ Object
1076 1077 1078 1079 1080 |
# File 's3/cfn_bucket.rb', line 1076 def self.jsii_properties { :owner => "owner", } end |
Instance Method Details
#to_jsii ⇒ Object
1082 1083 1084 1085 1086 1087 1088 |
# File 's3/cfn_bucket.rb', line 1082 def to_jsii result = {} result.merge!({ "owner" => @owner, }) result.compact end |