Class: AWSCDK::S3Files::CfnAccessPointProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::S3Files::CfnAccessPointProps
- Defined in:
- s3_files/cfn_access_point_props.rb
Overview
Properties for defining a CfnAccessPoint.
Instance Attribute Summary collapse
-
#client_token ⇒ String?
readonly
(optional) A string of up to 64 ASCII characters that Amazon EFS uses to ensure idempotent creation.
-
#file_system_id ⇒ String
readonly
The ID of the S3 Files file system that the access point provides access to.
- #posix_user ⇒ AWSCDK::IResolvable, ... readonly
- #root_directory ⇒ AWSCDK::IResolvable, ... readonly
- #tags ⇒ Array<AWSCDK::S3Files::CfnAccessPoint::AccessPointTagProperty>? readonly
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(file_system_id:, client_token: nil, posix_user: nil, root_directory: nil, tags: nil) ⇒ CfnAccessPointProps
constructor
A new instance of CfnAccessPointProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(file_system_id:, client_token: nil, posix_user: nil, root_directory: nil, tags: nil) ⇒ CfnAccessPointProps
Returns a new instance of CfnAccessPointProps.
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 = .is_a?(Array) ? .map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::S3Files::CfnAccessPoint::AccessPointTagProperty.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zM2ZpbGVzLkNmbkFjY2Vzc1BvaW50LkFjY2Vzc1BvaW50VGFnUHJvcGVydHkifSwia2luZCI6ImFycmF5In19")), "tags") unless @tags.nil? end |
Instance Attribute Details
#client_token ⇒ String? (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_id ⇒ String (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_user ⇒ AWSCDK::IResolvable, ... (readonly)
39 40 41 |
# File 's3_files/cfn_access_point_props.rb', line 39 def posix_user @posix_user end |
#root_directory ⇒ AWSCDK::IResolvable, ... (readonly)
42 43 44 |
# File 's3_files/cfn_access_point_props.rb', line 42 def root_directory @root_directory end |
#tags ⇒ Array<AWSCDK::S3Files::CfnAccessPoint::AccessPointTagProperty>? (readonly)
45 46 47 |
# File 's3_files/cfn_access_point_props.rb', line 45 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |