Class: AWSCDK::Lambda::FileSystemConfig
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Lambda::FileSystemConfig
- Defined in:
- lambda/file_system_config.rb
Overview
FileSystem configurations for the Lambda function.
Instance Attribute Summary collapse
-
#arn ⇒ String
readonly
ARN of the access point.
-
#connections ⇒ AWSCDK::EC2::Connections?
readonly
connections object used to allow ingress traffic from lambda function.
-
#dependency ⇒ Array<Constructs::IDependable>?
readonly
array of IDependable that lambda function depends on.
-
#local_mount_path ⇒ String
readonly
mount path in the lambda runtime environment.
-
#policies ⇒ Array<AWSCDK::IAM::PolicyStatement>?
readonly
additional IAM policies required for the lambda function.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(arn:, local_mount_path:, connections: nil, dependency: nil, policies: nil) ⇒ FileSystemConfig
constructor
A new instance of FileSystemConfig.
- #to_jsii ⇒ Object
Constructor Details
#initialize(arn:, local_mount_path:, connections: nil, dependency: nil, policies: nil) ⇒ FileSystemConfig
Returns a new instance of FileSystemConfig.
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
#arn ⇒ String (readonly)
ARN of the access point.
28 29 30 |
# File 'lambda/file_system_config.rb', line 28 def arn @arn end |
#connections ⇒ AWSCDK::EC2::Connections? (readonly)
Default: - no connections required to add extra ingress rules for Lambda function
connections object used to allow ingress traffic from lambda function.
37 38 39 |
# File 'lambda/file_system_config.rb', line 37 def connections @connections end |
#dependency ⇒ Array<Constructs::IDependable>? (readonly)
Default: - no dependency
array of IDependable that lambda function depends on.
42 43 44 |
# File 'lambda/file_system_config.rb', line 42 def dependency @dependency end |
#local_mount_path ⇒ String (readonly)
mount path in the lambda runtime environment.
32 33 34 |
# File 'lambda/file_system_config.rb', line 32 def local_mount_path @local_mount_path end |
#policies ⇒ Array<AWSCDK::IAM::PolicyStatement>? (readonly)
Default: - no additional policies required
additional IAM policies required for the lambda function.
47 48 49 |
# File 'lambda/file_system_config.rb', line 47 def policies @policies end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |