Learn R Programming

paws (version 0.1.12)

lambda: AWS Lambda

Description

Overview

This is the AWS Lambda API Reference. The AWS Lambda Developer Guide provides additional information. For the service overview, see What is AWS Lambda, and for information about how the service works, see AWS Lambda: How it Works in the AWS Lambda Developer Guide.

Usage

lambda(config = list())

Value

A client for the service. You can call the service's operations using syntax like svc$operation(...), where svc is the name you've assigned to the client. The available operations are listed in the Operations section.

Arguments

config

Optional configuration of credentials, endpoint, and/or region.

Service syntax

svc <- lambda(
  config = list(
    credentials = list(
      creds = list(
        access_key_id = "string",
        secret_access_key = "string",
        session_token = "string"
      ),
      profile = "string"
    ),
    endpoint = "string",
    region = "string"
  )
)

Operations

add_layer_version_permissionAdds permissions to the resource-based policy of a version of an AWS Lambda layer
add_permissionGrants an AWS service or another account permission to use a function
create_aliasCreates an alias for a Lambda function version
create_code_signing_configCreates a code signing configuration
create_event_source_mappingCreates a mapping between an event source and an AWS Lambda function
create_functionCreates a Lambda function
delete_aliasDeletes a Lambda function alias
delete_code_signing_configDeletes the code signing configuration
delete_event_source_mappingDeletes an event source mapping
delete_functionDeletes a Lambda function
delete_function_code_signing_configRemoves the code signing configuration from the function
delete_function_concurrencyRemoves a concurrent execution limit from a function
delete_function_event_invoke_configDeletes the configuration for asynchronous invocation for a function, version, or alias
delete_layer_versionDeletes a version of an AWS Lambda layer
delete_provisioned_concurrency_configDeletes the provisioned concurrency configuration for a function
get_account_settingsRetrieves details about your account's limits and usage in an AWS Region
get_aliasReturns details about a Lambda function alias
get_code_signing_configReturns information about the specified code signing configuration
get_event_source_mappingReturns details about an event source mapping
get_functionReturns information about the function or function version, with a link to download the deployment package that's valid for 10 minutes
get_function_code_signing_configReturns the code signing configuration for the specified function
get_function_concurrencyReturns details about the reserved concurrency configuration for a function
get_function_configurationReturns the version-specific settings of a Lambda function or version
get_function_event_invoke_configRetrieves the configuration for asynchronous invocation for a function, version, or alias
get_layer_versionReturns information about a version of an AWS Lambda layer, with a link to download the layer archive that's valid for 10 minutes
get_layer_version_by_arnReturns information about a version of an AWS Lambda layer, with a link to download the layer archive that's valid for 10 minutes
get_layer_version_policyReturns the permission policy for a version of an AWS Lambda layer
get_policyReturns the resource-based IAM policy for a function, version, or alias
get_provisioned_concurrency_configRetrieves the provisioned concurrency configuration for a function's alias or version
invokeInvokes a Lambda function
invoke_asyncFor asynchronous function invocation, use Invoke
list_aliasesReturns a list of aliases for a Lambda function
list_code_signing_configsReturns a list of code signing configurations
list_event_source_mappingsLists event source mappings
list_function_event_invoke_configsRetrieves a list of configurations for asynchronous invocation for a function
list_functionsReturns a list of Lambda functions, with the version-specific configuration of each
list_functions_by_code_signing_configList the functions that use the specified code signing configuration
list_layersLists AWS Lambda layers and shows information about the latest version of each
list_layer_versionsLists the versions of an AWS Lambda layer
list_provisioned_concurrency_configsRetrieves a list of provisioned concurrency configurations for a function
list_tagsReturns a function's tags
list_versions_by_functionReturns a list of versions, with the version-specific configuration of each
publish_layer_versionCreates an AWS Lambda layer from a ZIP archive
publish_versionCreates a version from the current code and configuration of a function
put_function_code_signing_configUpdate the code signing configuration for the function
put_function_concurrencySets the maximum number of simultaneous executions for a function, and reserves capacity for that concurrency level
put_function_event_invoke_configConfigures options for asynchronous invocation on a function, version, or alias
put_provisioned_concurrency_configAdds a provisioned concurrency configuration to a function's alias or version
remove_layer_version_permissionRemoves a statement from the permissions policy for a version of an AWS Lambda layer
remove_permissionRevokes function-use permission from an AWS service or another account
tag_resourceAdds tags to a function
untag_resourceRemoves tags from a function
update_aliasUpdates the configuration of a Lambda function alias
update_code_signing_configUpdate the code signing configuration
update_event_source_mappingUpdates an event source mapping
update_function_codeUpdates a Lambda function's code
update_function_configurationModify the version-specific settings of a Lambda function
update_function_event_invoke_configUpdates the configuration for asynchronous invocation for a function, version, or alias

Examples

Run this code
if (FALSE) {
svc <- lambda()
# The following example grants permission for the account 223456789012 to
# use version 1 of a layer named my-layer.
svc$add_layer_version_permission(
  Action = "lambda:GetLayerVersion",
  LayerName = "my-layer",
  Principal = "223456789012",
  StatementId = "xaccount",
  VersionNumber = 1L
)
}

Run the code above in your browser using DataLab