Class: AWSCDK::S3::CfnBucket::OwnershipControlsRuleProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::S3::CfnBucket::OwnershipControlsRuleProperty
- 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
-
#object_ownership ⇒ String?
readonly
Specifies an object ownership rule.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(object_ownership: nil) ⇒ OwnershipControlsRuleProperty
constructor
A new instance of OwnershipControlsRuleProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(object_ownership: nil) ⇒ OwnershipControlsRuleProperty
Returns a new instance of OwnershipControlsRuleProperty.
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_ownership ⇒ String? (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_properties ⇒ Object
2917 2918 2919 2920 2921 |
# File 's3/cfn_bucket.rb', line 2917 def self.jsii_properties { :object_ownership => "objectOwnership", } end |
Instance Method Details
#to_jsii ⇒ Object
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 |