Class: AWSCDK::EFS::AccessPointProps
- Inherits:
-
AccessPointOptions
- Object
- AccessPointOptions
- AWSCDK::EFS::AccessPointProps
- Defined in:
- efs/access_point_props.rb
Overview
Properties for the AccessPoint.
Instance Attribute Summary collapse
-
#client_token ⇒ String?
readonly
The opaque string specified in the request to ensure idempotent creation.
-
#create_acl ⇒ AWSCDK::EFS::Acl?
readonly
Specifies the POSIX IDs and permissions to apply when creating the access point's root directory.
-
#file_system ⇒ AWSCDK::Interfaces::AWSEFS::IFileSystemRef
readonly
The efs filesystem.
-
#path ⇒ String?
readonly
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?
readonly
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.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(client_token: nil, create_acl: nil, path: nil, posix_user: nil, file_system:) ⇒ AccessPointProps
constructor
A new instance of AccessPointProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(client_token: nil, create_acl: nil, path: nil, posix_user: nil, file_system:) ⇒ AccessPointProps
Returns a new instance of AccessPointProps.
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_token ⇒ String? (readonly)
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_acl ⇒ AWSCDK::EFS::Acl? (readonly)
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.
39 40 41 |
# File 'efs/access_point_props.rb', line 39 def create_acl @create_acl end |
#file_system ⇒ AWSCDK::Interfaces::AWSEFS::IFileSystemRef (readonly)
The efs filesystem.
56 57 58 |
# File 'efs/access_point_props.rb', line 56 def file_system @file_system end |
#path ⇒ String? (readonly)
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.
44 45 46 |
# File 'efs/access_point_props.rb', line 44 def path @path end |
#posix_user ⇒ AWSCDK::EFS::PosixUser? (readonly)
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.
52 53 54 |
# File 'efs/access_point_props.rb', line 52 def posix_user @posix_user end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |