Class: AWSCDK::CodeBuild::EFSFileSystemLocationProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CodeBuild::EFSFileSystemLocationProps
- Defined in:
- code_build/efs_file_system_location_props.rb
Overview
Construction properties for EfsFileSystemLocation.
Instance Attribute Summary collapse
-
#identifier ⇒ String
readonly
The name used to access a file system created by Amazon EFS.
-
#location ⇒ String
readonly
A string that specifies the location of the file system, like Amazon EFS.
-
#mount_options ⇒ String?
readonly
The mount options for a file system such as Amazon EFS.
-
#mount_point ⇒ String
readonly
The location in the container where you mount the file system.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(identifier:, location:, mount_point:, mount_options: nil) ⇒ EFSFileSystemLocationProps
constructor
A new instance of EFSFileSystemLocationProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(identifier:, location:, mount_point:, mount_options: nil) ⇒ EFSFileSystemLocationProps
Returns a new instance of EFSFileSystemLocationProps.
11 12 13 14 15 16 17 18 19 20 |
# File 'code_build/efs_file_system_location_props.rb', line 11 def initialize(identifier:, location:, mount_point:, mount_options: nil) @identifier = identifier Jsii::Type.check_type(@identifier, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "identifier") @location = location Jsii::Type.check_type(@location, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "location") @mount_point = mount_point Jsii::Type.check_type(@mount_point, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "mountPoint") @mount_options = Jsii::Type.check_type(@mount_options, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "mountOptions") unless @mount_options.nil? end |
Instance Attribute Details
#identifier ⇒ String (readonly)
The name used to access a file system created by Amazon EFS.
25 26 27 |
# File 'code_build/efs_file_system_location_props.rb', line 25 def identifier @identifier end |
#location ⇒ String (readonly)
A string that specifies the location of the file system, like Amazon EFS.
This value looks like fs-abcd1234.efs.us-west-2.amazonaws.com:/my-efs-mount-directory.
31 32 33 |
# File 'code_build/efs_file_system_location_props.rb', line 31 def location @location end |
#mount_options ⇒ String? (readonly)
Default: 'nfsvers=4.1,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2'.
The mount options for a file system such as Amazon EFS.
40 41 42 |
# File 'code_build/efs_file_system_location_props.rb', line 40 def @mount_options end |
#mount_point ⇒ String (readonly)
The location in the container where you mount the file system.
35 36 37 |
# File 'code_build/efs_file_system_location_props.rb', line 35 def mount_point @mount_point end |
Class Method Details
.jsii_properties ⇒ Object
42 43 44 45 46 47 48 49 |
# File 'code_build/efs_file_system_location_props.rb', line 42 def self.jsii_properties { :identifier => "identifier", :location => "location", :mount_point => "mountPoint", :mount_options => "mountOptions", } end |
Instance Method Details
#to_jsii ⇒ Object
51 52 53 54 55 56 57 58 59 60 |
# File 'code_build/efs_file_system_location_props.rb', line 51 def to_jsii result = {} result.merge!({ "identifier" => @identifier, "location" => @location, "mountPoint" => @mount_point, "mountOptions" => @mount_options, }) result.compact end |