Class: AWSCDK::EFS::Acl
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EFS::Acl
- Defined in:
- efs/acl.rb
Overview
Permissions as POSIX ACL.
Instance Attribute Summary collapse
-
#owner_gid ⇒ String
readonly
Specifies the POSIX group ID to apply to the RootDirectory.
-
#owner_uid ⇒ String
readonly
Specifies the POSIX user ID to apply to the RootDirectory.
-
#permissions ⇒ String
readonly
Specifies the POSIX permissions to apply to the RootDirectory, in the format of an octal number representing the file's mode bits.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(owner_gid:, owner_uid:, permissions:) ⇒ Acl
constructor
A new instance of Acl.
- #to_jsii ⇒ Object
Constructor Details
#initialize(owner_gid:, owner_uid:, permissions:) ⇒ Acl
Returns a new instance of Acl.
10 11 12 13 14 15 16 17 |
# File 'efs/acl.rb', line 10 def initialize(owner_gid:, owner_uid:, permissions:) @owner_gid = owner_gid Jsii::Type.check_type(@owner_gid, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "ownerGid") @owner_uid = owner_uid Jsii::Type.check_type(@owner_uid, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "ownerUid") @permissions = Jsii::Type.check_type(@permissions, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "permissions") end |
Instance Attribute Details
#owner_gid ⇒ String (readonly)
Specifies the POSIX group ID to apply to the RootDirectory.
Accepts values from 0 to 2^32 (4294967295).
24 25 26 |
# File 'efs/acl.rb', line 24 def owner_gid @owner_gid end |
#owner_uid ⇒ String (readonly)
Specifies the POSIX user ID to apply to the RootDirectory.
Accepts values from 0 to 2^32 (4294967295).
30 31 32 |
# File 'efs/acl.rb', line 30 def owner_uid @owner_uid end |
#permissions ⇒ String (readonly)
Specifies the POSIX permissions to apply to the RootDirectory, in the format of an octal number representing the file's mode bits.
34 35 36 |
# File 'efs/acl.rb', line 34 def @permissions end |
Class Method Details
.jsii_properties ⇒ Object
36 37 38 39 40 41 42 |
# File 'efs/acl.rb', line 36 def self.jsii_properties { :owner_gid => "ownerGid", :owner_uid => "ownerUid", :permissions => "permissions", } end |
Instance Method Details
#to_jsii ⇒ Object
44 45 46 47 48 49 50 51 52 |
# File 'efs/acl.rb', line 44 def to_jsii result = {} result.merge!({ "ownerGid" => @owner_gid, "ownerUid" => @owner_uid, "permissions" => @permissions, }) result.compact end |