Class: Ansible::Ruby::Modules::Lambda
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Lambda
- Defined in:
- lib/ansible/ruby/modules/generated/cloud/amazon/lambda.rb
Overview
Allows for the management of Lambda functions.
Instance Method Summary collapse
-
#dead_letter_arn ⇒ Object?
The parent object that contains the target Amazon Resource Name (ARN) of an Amazon SQS queue or Amazon SNS topic.
-
#description ⇒ Object?
A short, user-defined function description.
-
#environment_variables ⇒ String?
A dictionary of environment variables the Lambda function is given.
-
#handler ⇒ String?
The function within your code that Lambda calls to begin execution.
-
#memory_size ⇒ Integer?
The amount of memory, in MB, your Lambda function is given.
-
#name ⇒ String
The name you want to assign to the function you are uploading.
-
#role ⇒ String?
The Amazon Resource Name (ARN) of the IAM role that Lambda assumes when it executes your function to access any other Amazon Web Services (AWS) resources.
-
#runtime ⇒ String?
The runtime environment for the Lambda function you are uploading.
-
#s3_bucket ⇒ Object?
Amazon S3 bucket name where the .zip file containing your deployment package is stored,If C(state=present) then either zip_file or s3_bucket must be present.,s3_bucket and s3_key are required together.
-
#s3_key ⇒ Object?
The Amazon S3 object (the deployment package) key name you want to upload,s3_bucket and s3_key are required together.
-
#s3_object_version ⇒ Object?
The Amazon S3 object (the deployment package) version you want to upload.
-
#state ⇒ :present, ...
Create or delete Lambda function.
-
#tags ⇒ Hash?
Tag dict to apply to the function (requires botocore 1.5.40 or above).
-
#timeout ⇒ Integer?
The function maximum execution time in seconds after which Lambda should terminate the function.
-
#vpc_security_group_ids ⇒ Array<String>, ...
List of VPC security group IDs to associate with the Lambda function.
-
#vpc_subnet_ids ⇒ Array<String>, ...
List of subnet IDs to run Lambda function in.
-
#zip_file ⇒ String?
A .zip file containing your deployment package,If C(state=present) then either zip_file or s3_bucket must be present.
Methods inherited from Base
Methods inherited from Ansible::Ruby::Models::Base
attr_option, attr_options, attribute, fix_inclusion, #initialize, remove_existing_validations, #to_h, validates
Constructor Details
This class inherits a constructor from Ansible::Ruby::Models::Base
Instance Method Details
#dead_letter_arn ⇒ Object?
Returns The parent object that contains the target Amazon Resource Name (ARN) of an Amazon SQS queue or Amazon SNS topic.
68 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/lambda.rb', line 68 attribute :dead_letter_arn |
#description ⇒ Object?
Returns A short, user-defined function description. Lambda does not use this value. Assign a meaningful description as you see fit.
45 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/lambda.rb', line 45 attribute :description |
#environment_variables ⇒ String?
Returns A dictionary of environment variables the Lambda function is given.
64 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/lambda.rb', line 64 attribute :environment_variables |
#handler ⇒ String?
Returns The function within your code that Lambda calls to begin execution.
28 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/lambda.rb', line 28 attribute :handler |
#memory_size ⇒ Integer?
Returns The amount of memory, in MB, your Lambda function is given.
52 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/lambda.rb', line 52 attribute :memory_size |
#name ⇒ String
Returns The name you want to assign to the function you are uploading. Cannot be changed.
12 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/lambda.rb', line 12 attribute :name |
#role ⇒ String?
Returns The Amazon Resource Name (ARN) of the IAM role that Lambda assumes when it executes your function to access any other Amazon Web Services (AWS) resources. You may use the bare ARN if the role belongs to the same AWS account.,Required when C(state=present).
24 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/lambda.rb', line 24 attribute :role |
#runtime ⇒ String?
Returns The runtime environment for the Lambda function you are uploading. Required when creating a function. Use parameters as described in boto3 docs. Current example runtime environments are nodejs, nodejs4.3, java8 or python2.7,Required when C(state=present).
20 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/lambda.rb', line 20 attribute :runtime |
#s3_bucket ⇒ Object?
Returns Amazon S3 bucket name where the .zip file containing your deployment package is stored,If C(state=present) then either zip_file or s3_bucket must be present.,s3_bucket and s3_key are required together.
36 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/lambda.rb', line 36 attribute :s3_bucket |
#s3_key ⇒ Object?
Returns The Amazon S3 object (the deployment package) key name you want to upload,s3_bucket and s3_key are required together.
39 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/lambda.rb', line 39 attribute :s3_key |
#s3_object_version ⇒ Object?
Returns The Amazon S3 object (the deployment package) version you want to upload.
42 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/lambda.rb', line 42 attribute :s3_object_version |
#state ⇒ :present, ...
Returns Create or delete Lambda function.
16 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/lambda.rb', line 16 attribute :state |
#tags ⇒ Hash?
Returns tag dict to apply to the function (requires botocore 1.5.40 or above).
71 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/lambda.rb', line 71 attribute :tags |
#timeout ⇒ Integer?
Returns The function maximum execution time in seconds after which Lambda should terminate the function.
48 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/lambda.rb', line 48 attribute :timeout |
#vpc_security_group_ids ⇒ Array<String>, ...
Returns List of VPC security group IDs to associate with the Lambda function. Required when vpc_subnet_ids is used.
60 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/lambda.rb', line 60 attribute :vpc_security_group_ids |
#vpc_subnet_ids ⇒ Array<String>, ...
Returns List of subnet IDs to run Lambda function in. Use this option if you need to access resources in your VPC. Leave empty if you don’t want to run the function in a VPC.
56 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/lambda.rb', line 56 attribute :vpc_subnet_ids |
#zip_file ⇒ String?
Returns A .zip file containing your deployment package,If C(state=present) then either zip_file or s3_bucket must be present.
32 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/lambda.rb', line 32 attribute :zip_file |