Class: AWSCDK::S3::CfnBucket::OwnershipControlsRuleProperty

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

Overview

Specifies an Object Ownership rule.

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(object_ownership: nil) ⇒ OwnershipControlsRuleProperty

Returns a new instance of OwnershipControlsRuleProperty.

Parameters:

  • object_ownership (String, nil) (defaults to: nil)

    Specifies an object ownership rule.



2906
2907
2908
2909
# File 's3/cfn_bucket.rb', line 2906

def initialize(object_ownership: nil)
  @object_ownership = object_ownership
  Jsii::Type.check_type(@object_ownership, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "objectOwnership") unless @object_ownership.nil?
end

Instance Attribute Details

#object_ownershipString? (readonly)

Specifies an object ownership rule.



2915
2916
2917
# File 's3/cfn_bucket.rb', line 2915

def object_ownership
  @object_ownership
end

Class Method Details

.jsii_propertiesObject



2917
2918
2919
2920
2921
# File 's3/cfn_bucket.rb', line 2917

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

Instance Method Details

#to_jsiiObject



2923
2924
2925
2926
2927
2928
2929
# File 's3/cfn_bucket.rb', line 2923

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