Class: AWSCDK::S3::CfnBucket::OwnershipControlsProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
s3/cfn_bucket.rb

Overview

Specifies the container element for Object Ownership rules.

S3 Object Ownership is an Amazon S3 bucket-level setting that you can use to disable access control lists (ACLs) and take ownership of every object in your bucket, simplifying access management for data stored in Amazon S3. For more information, see Controlling ownership of objects and disabling ACLs in the Amazon S3 User Guide .

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(rules:) ⇒ OwnershipControlsProperty

Returns a new instance of OwnershipControlsProperty.

Parameters:



2871
2872
2873
2874
# File 's3/cfn_bucket.rb', line 2871

def initialize(rules:)
  @rules = rules
  Jsii::Type.check_type(@rules, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfczMuQ2ZuQnVja2V0Lk93bmVyc2hpcENvbnRyb2xzUnVsZVByb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "rules")
end

Instance Attribute Details

Class Method Details

.jsii_propertiesObject



2882
2883
2884
2885
2886
# File 's3/cfn_bucket.rb', line 2882

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

Instance Method Details

#to_jsiiObject



2888
2889
2890
2891
2892
2893
2894
# File 's3/cfn_bucket.rb', line 2888

def to_jsii
  result = {}
  result.merge!({
    "rules" => @rules,
  })
  result.compact
end