Class: AWSCDK::S3::CfnBucket::AccessControlTranslationProperty

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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(owner:) ⇒ AccessControlTranslationProperty

Returns a new instance of AccessControlTranslationProperty.

Parameters:

  • owner (String)

    Specifies the replica ownership.



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

#ownerString (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_propertiesObject



1076
1077
1078
1079
1080
# File 's3/cfn_bucket.rb', line 1076

def self.jsii_properties
  {
    :owner => "owner",
  }
end

Instance Method Details

#to_jsiiObject



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