Class: AWSCDK::CodeBuild::EFSFileSystemLocationProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
code_build/efs_file_system_location_props.rb

Overview

Construction properties for EfsFileSystemLocation.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(identifier:, location:, mount_point:, mount_options: nil) ⇒ EFSFileSystemLocationProps

Returns a new instance of EFSFileSystemLocationProps.

Parameters:

  • identifier (String)

    The name used to access a file system created by Amazon EFS.

  • location (String)

    A string that specifies the location of the file system, like Amazon EFS.

  • mount_point (String)

    The location in the container where you mount the file system.

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

    The mount options for a file system such as Amazon EFS.



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 = mount_options
  Jsii::Type.check_type(@mount_options, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "mountOptions") unless @mount_options.nil?
end

Instance Attribute Details

#identifierString (readonly)

The name used to access a file system created by Amazon EFS.

Returns:

  • (String)


25
26
27
# File 'code_build/efs_file_system_location_props.rb', line 25

def identifier
  @identifier
end

#locationString (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.

Returns:

  • (String)


31
32
33
# File 'code_build/efs_file_system_location_props.rb', line 31

def location
  @location
end

#mount_optionsString? (readonly)

Note:

Default: 'nfsvers=4.1,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2'.

The mount options for a file system such as Amazon EFS.

Returns:

  • (String, nil)


40
41
42
# File 'code_build/efs_file_system_location_props.rb', line 40

def mount_options
  @mount_options
end

#mount_pointString (readonly)

The location in the container where you mount the file system.

Returns:

  • (String)


35
36
37
# File 'code_build/efs_file_system_location_props.rb', line 35

def mount_point
  @mount_point
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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