Class: Ansible::Ruby::Modules::Lambda

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/cloud/amazon/lambda.rb

Overview

Allows for the management of Lambda functions.

Instance Method Summary collapse

Methods inherited from Base

#ansible_name, #to_h

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_arnObject?

Returns The parent object that contains the target Amazon Resource Name (ARN) of an Amazon SQS queue or Amazon SNS topic.

Returns:

  • (Object, nil)

    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

#descriptionObject?

Returns A short, user-defined function description. Lambda does not use this value. Assign a meaningful description as you see fit.

Returns:

  • (Object, nil)

    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_variablesString?

Returns A dictionary of environment variables the Lambda function is given.

Returns:

  • (String, nil)

    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

#handlerString?

Returns The function within your code that Lambda calls to begin execution.

Returns:

  • (String, nil)

    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_sizeInteger?

Returns The amount of memory, in MB, your Lambda function is given.

Returns:

  • (Integer, nil)

    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

#nameString

Returns The name you want to assign to the function you are uploading. Cannot be changed.

Returns:

  • (String)

    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

#roleString?

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).

Returns:

  • (String, nil)

    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

#runtimeString?

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).

Returns:

  • (String, nil)

    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_bucketObject?

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.

Returns:

  • (Object, nil)

    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_keyObject?

Returns The Amazon S3 object (the deployment package) key name you want to upload,s3_bucket and s3_key are required together.

Returns:

  • (Object, nil)

    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_versionObject?

Returns The Amazon S3 object (the deployment package) version you want to upload.

Returns:

  • (Object, nil)

    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.

Returns:

  • (:present, :absent, nil)

    Create or delete Lambda function



16
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/lambda.rb', line 16

attribute :state

#tagsHash?

Returns tag dict to apply to the function (requires botocore 1.5.40 or above).

Returns:

  • (Hash, nil)

    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

#timeoutInteger?

Returns The function maximum execution time in seconds after which Lambda should terminate the function.

Returns:

  • (Integer, nil)

    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_idsArray<String>, ...

Returns List of VPC security group IDs to associate with the Lambda function. Required when vpc_subnet_ids is used.

Returns:

  • (Array<String>, String, nil)

    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_idsArray<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.

Returns:

  • (Array<String>, String, nil)

    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_fileString?

Returns A .zip file containing your deployment package,If C(state=present) then either zip_file or s3_bucket must be present.

Returns:

  • (String, nil)

    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