Class: AWSCDK::EFS::Acl

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
efs/acl.rb

Overview

Permissions as POSIX ACL.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(owner_gid:, owner_uid:, permissions:) ⇒ Acl

Returns a new instance of Acl.

Parameters:

  • owner_gid (String)

    Specifies the POSIX group ID to apply to the RootDirectory.

  • owner_uid (String)

    Specifies the POSIX user ID to apply to the RootDirectory.

  • permissions (String)

    Specifies the POSIX permissions to apply to the RootDirectory, in the format of an octal number representing the file's mode bits.



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 = permissions
  Jsii::Type.check_type(@permissions, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "permissions")
end

Instance Attribute Details

#owner_gidString (readonly)

Specifies the POSIX group ID to apply to the RootDirectory.

Accepts values from 0 to 2^32 (4294967295).

Returns:

  • (String)


24
25
26
# File 'efs/acl.rb', line 24

def owner_gid
  @owner_gid
end

#owner_uidString (readonly)

Specifies the POSIX user ID to apply to the RootDirectory.

Accepts values from 0 to 2^32 (4294967295).

Returns:

  • (String)


30
31
32
# File 'efs/acl.rb', line 30

def owner_uid
  @owner_uid
end

#permissionsString (readonly)

Specifies the POSIX permissions to apply to the RootDirectory, in the format of an octal number representing the file's mode bits.

Returns:

  • (String)


34
35
36
# File 'efs/acl.rb', line 34

def permissions
  @permissions
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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