Class: AWSCDK::Lambda::FileSystemConfig

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

Overview

FileSystem configurations for the Lambda function.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(arn:, local_mount_path:, connections: nil, dependency: nil, policies: nil) ⇒ FileSystemConfig

Returns a new instance of FileSystemConfig.

Parameters:

  • arn (String)

    ARN of the access point.

  • local_mount_path (String)

    mount path in the lambda runtime environment.

  • connections (AWSCDK::EC2::Connections, nil) (defaults to: nil)

    connections object used to allow ingress traffic from lambda function.

  • dependency (Array<Constructs::IDependable>, nil) (defaults to: nil)

    array of IDependable that lambda function depends on.

  • policies (Array<AWSCDK::IAM::PolicyStatement>, nil) (defaults to: nil)

    additional IAM policies required for the lambda function.



12
13
14
15
16
17
18
19
20
21
22
23
# File 'lambda/file_system_config.rb', line 12

def initialize(arn:, local_mount_path:, connections: nil, dependency: nil, policies: nil)
  @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")
  @connections = connections
  Jsii::Type.check_type(@connections, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWMyLkNvbm5lY3Rpb25zIn0=")), "connections") unless @connections.nil?
  @dependency = dependency
  Jsii::Type.check_type(@dependency, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImNvbnN0cnVjdHMuSURlcGVuZGFibGUifSwia2luZCI6ImFycmF5In19")), "dependency") unless @dependency.nil?
  @policies = policies
  Jsii::Type.check_type(@policies, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLmF3c19pYW0uUG9saWN5U3RhdGVtZW50In0sImtpbmQiOiJhcnJheSJ9fQ==")), "policies") unless @policies.nil?
end

Instance Attribute Details

#arnString (readonly)

ARN of the access point.

Returns:

  • (String)


28
29
30
# File 'lambda/file_system_config.rb', line 28

def arn
  @arn
end

#connectionsAWSCDK::EC2::Connections? (readonly)

Note:

Default: - no connections required to add extra ingress rules for Lambda function

connections object used to allow ingress traffic from lambda function.

Returns:



37
38
39
# File 'lambda/file_system_config.rb', line 37

def connections
  @connections
end

#dependencyArray<Constructs::IDependable>? (readonly)

Note:

Default: - no dependency

array of IDependable that lambda function depends on.

Returns:

  • (Array<Constructs::IDependable>, nil)


42
43
44
# File 'lambda/file_system_config.rb', line 42

def dependency
  @dependency
end

#local_mount_pathString (readonly)

mount path in the lambda runtime environment.

Returns:

  • (String)


32
33
34
# File 'lambda/file_system_config.rb', line 32

def local_mount_path
  @local_mount_path
end

#policiesArray<AWSCDK::IAM::PolicyStatement>? (readonly)

Note:

Default: - no additional policies required

additional IAM policies required for the lambda function.

Returns:



47
48
49
# File 'lambda/file_system_config.rb', line 47

def policies
  @policies
end

Class Method Details

.jsii_propertiesObject



49
50
51
52
53
54
55
56
57
# File 'lambda/file_system_config.rb', line 49

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

Instance Method Details

#to_jsiiObject



59
60
61
62
63
64
65
66
67
68
69
# File 'lambda/file_system_config.rb', line 59

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