Class: AWSCDK::S3Files::CfnAccessPointProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
s3_files/cfn_access_point_props.rb

Overview

Properties for defining a CfnAccessPoint.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(file_system_id:, client_token: nil, posix_user: nil, root_directory: nil, tags: nil) ⇒ CfnAccessPointProps

Returns a new instance of CfnAccessPointProps.

Parameters:



14
15
16
17
18
19
20
21
22
23
24
25
# File 's3_files/cfn_access_point_props.rb', line 14

def initialize(file_system_id:, client_token: nil, posix_user: nil, root_directory: nil, tags: nil)
  @file_system_id = file_system_id
  Jsii::Type.check_type(@file_system_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "fileSystemId")
  @client_token = client_token
  Jsii::Type.check_type(@client_token, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "clientToken") unless @client_token.nil?
  @posix_user = posix_user.is_a?(Hash) ? ::AWSCDK::S3Files::CfnAccessPoint::PosixUserProperty.new(**posix_user.transform_keys(&:to_sym)) : posix_user
  Jsii::Type.check_type(@posix_user, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zM2ZpbGVzLkNmbkFjY2Vzc1BvaW50LlBvc2l4VXNlclByb3BlcnR5In1dfX0=")), "posixUser") unless @posix_user.nil?
  @root_directory = root_directory.is_a?(Hash) ? ::AWSCDK::S3Files::CfnAccessPoint::RootDirectoryProperty.new(**root_directory.transform_keys(&:to_sym)) : root_directory
  Jsii::Type.check_type(@root_directory, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zM2ZpbGVzLkNmbkFjY2Vzc1BvaW50LlJvb3REaXJlY3RvcnlQcm9wZXJ0eSJ9XX19")), "rootDirectory") unless @root_directory.nil?
  @tags = tags.is_a?(Array) ? tags.map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::S3Files::CfnAccessPoint::AccessPointTagProperty.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : tags
  Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zM2ZpbGVzLkNmbkFjY2Vzc1BvaW50LkFjY2Vzc1BvaW50VGFnUHJvcGVydHkifSwia2luZCI6ImFycmF5In19")), "tags") unless @tags.nil?
end

Instance Attribute Details

#client_tokenString? (readonly)

(optional) A string of up to 64 ASCII characters that Amazon EFS uses to ensure idempotent creation.



36
37
38
# File 's3_files/cfn_access_point_props.rb', line 36

def client_token
  @client_token
end

#file_system_idString (readonly)

The ID of the S3 Files file system that the access point provides access to.



31
32
33
# File 's3_files/cfn_access_point_props.rb', line 31

def file_system_id
  @file_system_id
end

#posix_userAWSCDK::IResolvable, ... (readonly)



39
40
41
# File 's3_files/cfn_access_point_props.rb', line 39

def posix_user
  @posix_user
end

#root_directoryAWSCDK::IResolvable, ... (readonly)



42
43
44
# File 's3_files/cfn_access_point_props.rb', line 42

def root_directory
  @root_directory
end

Class Method Details

.jsii_propertiesObject



47
48
49
50
51
52
53
54
55
# File 's3_files/cfn_access_point_props.rb', line 47

def self.jsii_properties
  {
    :file_system_id => "fileSystemId",
    :client_token => "clientToken",
    :posix_user => "posixUser",
    :root_directory => "rootDirectory",
    :tags => "tags",
  }
end

Instance Method Details

#to_jsiiObject



57
58
59
60
61
62
63
64
65
66
67
# File 's3_files/cfn_access_point_props.rb', line 57

def to_jsii
  result = {}
  result.merge!({
    "fileSystemId" => @file_system_id,
    "clientToken" => @client_token,
    "posixUser" => @posix_user,
    "rootDirectory" => @root_directory,
    "tags" => @tags,
  })
  result.compact
end