Class: AWSCDK::Lambda::CfnFunction::FileSystemConfigProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
lambda/cfn_function.rb

Overview

Details about the connection between a Lambda function and an Amazon EFS file system .

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(arn:, local_mount_path:) ⇒ FileSystemConfigProperty

Returns a new instance of FileSystemConfigProperty.

Parameters:

  • arn (String)

    The Amazon Resource Name (ARN) of the Amazon EFS access point that provides access to the file system.

  • local_mount_path (String)

    The path where the function can access the file system, starting with /mnt/ .



1269
1270
1271
1272
1273
1274
# File 'lambda/cfn_function.rb', line 1269

def initialize(arn:, local_mount_path:)
  @arn = arn
  Jsii::Type.check_type(@arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "arn")
  @local_mount_path = local_mount_path
  Jsii::Type.check_type(@local_mount_path, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "localMountPath")
end

Instance Attribute Details

#arnString (readonly)

The Amazon Resource Name (ARN) of the Amazon EFS access point that provides access to the file system.



1280
1281
1282
# File 'lambda/cfn_function.rb', line 1280

def arn
  @arn
end

#local_mount_pathString (readonly)

The path where the function can access the file system, starting with /mnt/ .



1285
1286
1287
# File 'lambda/cfn_function.rb', line 1285

def local_mount_path
  @local_mount_path
end

Class Method Details

.jsii_propertiesObject



1287
1288
1289
1290
1291
1292
# File 'lambda/cfn_function.rb', line 1287

def self.jsii_properties
  {
    :arn => "arn",
    :local_mount_path => "localMountPath",
  }
end

Instance Method Details

#to_jsiiObject



1294
1295
1296
1297
1298
1299
1300
1301
# File 'lambda/cfn_function.rb', line 1294

def to_jsii
  result = {}
  result.merge!({
    "arn" => @arn,
    "localMountPath" => @local_mount_path,
  })
  result.compact
end