Class: AWSCDK::EFS::AccessPointProps

Inherits:
AccessPointOptions
  • Object
show all
Defined in:
efs/access_point_props.rb

Overview

Properties for the AccessPoint.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(client_token: nil, create_acl: nil, path: nil, posix_user: nil, file_system:) ⇒ AccessPointProps

Returns a new instance of AccessPointProps.

Parameters:

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

    The opaque string specified in the request to ensure idempotent creation.

  • create_acl (AWSCDK::EFS::Acl, nil) (defaults to: nil)

    Specifies the POSIX IDs and permissions to apply when creating the access point's root directory.

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

    Specifies the path on the EFS file system to expose as the root directory to NFS clients using the access point to access the EFS file system.

  • posix_user (AWSCDK::EFS::PosixUser, nil) (defaults to: nil)

    The full POSIX identity, including the user ID, group ID, and any secondary group IDs, on the access point that is used for all file system operations performed by NFS clients using the access point.

  • file_system (AWSCDK::Interfaces::AWSEFS::IFileSystemRef)

    The efs filesystem.



12
13
14
15
16
17
18
19
20
21
22
23
# File 'efs/access_point_props.rb', line 12

def initialize(client_token: nil, create_acl: nil, path: nil, posix_user: nil, file_system:)
  @client_token = client_token
  Jsii::Type.check_type(@client_token, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "clientToken") unless @client_token.nil?
  @create_acl = create_acl.is_a?(Hash) ? ::AWSCDK::EFS::Acl.new(**create_acl.transform_keys(&:to_sym)) : create_acl
  Jsii::Type.check_type(@create_acl, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWZzLkFjbCJ9")), "createAcl") unless @create_acl.nil?
  @path = path
  Jsii::Type.check_type(@path, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "path") unless @path.nil?
  @posix_user = posix_user.is_a?(Hash) ? ::AWSCDK::EFS::PosixUser.new(**posix_user.transform_keys(&:to_sym)) : posix_user
  Jsii::Type.check_type(@posix_user, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWZzLlBvc2l4VXNlciJ9")), "posixUser") unless @posix_user.nil?
  @file_system = file_system
  Jsii::Type.check_type(@file_system, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLmF3c19lZnMuSUZpbGVTeXN0ZW1SZWYifQ==")), "fileSystem")
end

Instance Attribute Details

#client_tokenString? (readonly)

Note:

Default: - No client token

The opaque string specified in the request to ensure idempotent creation.



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

def client_token
  @client_token
end

#create_aclAWSCDK::EFS::Acl? (readonly)

Note:

Default: - None. The directory specified by path must exist.

Specifies the POSIX IDs and permissions to apply when creating the access point's root directory.

If the root directory specified by path does not exist, EFS creates the root directory and applies the permissions specified here. If the specified path does not exist, you must specify create_acl.

Returns:



39
40
41
# File 'efs/access_point_props.rb', line 39

def create_acl
  @create_acl
end

#file_systemAWSCDK::Interfaces::AWSEFS::IFileSystemRef (readonly)

The efs filesystem.



56
57
58
# File 'efs/access_point_props.rb', line 56

def file_system
  @file_system
end

#pathString? (readonly)

Note:

Default: '/'

Specifies the path on the EFS file system to expose as the root directory to NFS clients using the access point to access the EFS file system.

Returns:

  • (String, nil)


44
45
46
# File 'efs/access_point_props.rb', line 44

def path
  @path
end

#posix_userAWSCDK::EFS::PosixUser? (readonly)

Note:

Default: - user identity not enforced

The full POSIX identity, including the user ID, group ID, and any secondary group IDs, on the access point that is used for all file system operations performed by NFS clients using the access point.

Specify this to enforce a user identity using an access point.

Returns:

See Also:

  • [Enforcing a User Identity Using an Access Point](https://docs.aws.amazon.com/efs/latest/ug/efs-access-points.html)


52
53
54
# File 'efs/access_point_props.rb', line 52

def posix_user
  @posix_user
end

Class Method Details

.jsii_propertiesObject



58
59
60
61
62
63
64
65
66
# File 'efs/access_point_props.rb', line 58

def self.jsii_properties
  {
    :client_token => "clientToken",
    :create_acl => "createAcl",
    :path => "path",
    :posix_user => "posixUser",
    :file_system => "fileSystem",
  }
end

Instance Method Details

#to_jsiiObject



68
69
70
71
72
73
74
75
76
77
78
79
# File 'efs/access_point_props.rb', line 68

def to_jsii
  result = {}
  result.merge!(super)
  result.merge!({
    "clientToken" => @client_token,
    "createAcl" => @create_acl,
    "path" => @path,
    "posixUser" => @posix_user,
    "fileSystem" => @file_system,
  })
  result.compact
end