Actions, resources, and condition keys for AWS Lambda
AWS Lambda (service prefix: lambda) provides the following
service-specific operations, resources, actions, and condition keys for use in IAM permission
policies.
References:
-
Learn how to configure this service.
-
View a list of the API operations available for this service.
-
Learn how to secure this service and its resources by using IAM permission policies.
-
View the programmatic service authorization reference
for this service.
Topics
API operations defined by AWS Lambda
The following table maps API operations to the IAM actions they authorize. Only condition keys that have static values for the given API and action are listed; for the full set of condition keys supported by each action, see the Actions table.
| Operation | SDK client | IAM action | Condition key | Possible value(s) | Access level |
|---|---|---|---|---|---|
|
AddLayerVersionPermission |
lambda |
Permissions management, Write |
|||
|
AddPermission |
lambda |
Permissions management, Write |
|||
|
CheckpointDurableExecution |
lambda |
Write |
|||
|
CreateAlias |
lambda |
Write |
|||
|
CreateCapacityProvider |
lambda |
Write |
|||
Tagging, Write |
|||||
iam:PassedToService |
lambda.amazonaws.com |
Write |
|||
|
CreateCodeSigningConfig |
lambda |
Write |
|||
Tagging, Write |
|||||
|
CreateEventSourceMapping |
lambda |
Write |
|||
Tagging, Write |
|||||
|
CreateFunction |
lambda |
Write |
|||
Read |
|||||
Write |
|||||
Tagging, Write |
|||||
iam:PassedToService |
lambda.amazonaws.com |
Write |
|||
|
CreateFunctionUrlConfig |
lambda |
Write |
|||
|
DeleteAlias |
lambda |
Write |
|||
|
DeleteCapacityProvider |
lambda |
Write |
|||
|
DeleteCodeSigningConfig |
lambda |
Write |
|||
|
DeleteEventSourceMapping |
lambda |
Write |
|||
|
DeleteFunction |
lambda |
Write |
|||
|
DeleteFunctionCodeSigningConfig |
lambda |
Write |
|||
|
DeleteFunctionConcurrency |
lambda |
Write |
|||
|
DeleteFunctionEventInvokeConfig |
lambda |
Write |
|||
|
DeleteFunctionUrlConfig |
lambda |
Write |
|||
|
DeleteLayerVersion |
lambda |
Write |
|||
|
DeleteProvisionedConcurrencyConfig |
lambda |
Write |
|||
|
GetAccountSettings |
lambda |
Read |
|||
|
GetAlias |
lambda |
Read |
|||
|
GetCapacityProvider |
lambda |
Read |
|||
|
GetCodeSigningConfig |
lambda |
Read |
|||
|
GetDurableExecution |
lambda |
Read |
|||
|
GetDurableExecutionHistory |
lambda |
Read |
|||
|
GetDurableExecutionState |
lambda |
Read |
|||
|
GetEventSourceMapping |
lambda |
Read |
|||
|
GetFunction |
lambda |
Read |
|||
Read |
|||||
|
GetFunctionCodeSigningConfig |
lambda |
Read |
|||
|
GetFunctionConcurrency |
lambda |
Read |
|||
|
GetFunctionConfiguration |
lambda |
Read |
|||
|
GetFunctionEventInvokeConfig |
lambda |
Read |
|||
|
GetFunctionRecursionConfig |
lambda |
Read |
|||
|
GetFunctionScalingConfig |
lambda |
Read |
|||
|
GetFunctionUrlConfig |
lambda |
Read |
|||
|
GetLayerVersion |
lambda |
Read |
|||
|
GetLayerVersionByArn |
lambda |
Read |
|||
|
GetLayerVersionPolicy |
lambda |
Read |
|||
|
GetPolicy |
lambda |
Read |
|||
|
GetProvisionedConcurrencyConfig |
lambda |
Read |
|||
|
GetRuntimeManagementConfig |
lambda |
Read |
|||
|
Invoke |
lambda |
Write |
|||
|
InvokeAsync |
lambda |
Write |
|||
|
InvokeWithResponseStream |
lambda |
Write |
|||
|
ListAliases |
lambda |
List |
|||
|
ListCapacityProviders |
lambda |
List |
|||
|
ListCodeSigningConfigs |
lambda |
List |
|||
|
ListDurableExecutionsByFunction |
lambda |
List |
|||
|
ListEventSourceMappings |
lambda |
List |
|||
|
ListFunctionEventInvokeConfigs |
lambda |
List |
|||
|
ListFunctionUrlConfigs |
lambda |
List |
|||
|
ListFunctionVersionsByCapacityProvider |
lambda |
List |
|||
|
ListFunctions |
lambda |
List |
|||
|
ListFunctionsByCodeSigningConfig |
lambda |
List |
|||
|
ListLayerVersions |
lambda |
List |
|||
|
ListLayers |
lambda |
List |
|||
|
ListProvisionedConcurrencyConfigs |
lambda |
List |
|||
|
ListTags |
lambda |
Read |
|||
|
ListVersionsByFunction |
lambda |
List |
|||
|
PublishLayerVersion |
lambda |
Write |
|||
|
PublishVersion |
lambda |
Write |
|||
|
PutFunctionCodeSigningConfig |
lambda |
Write |
|||
|
PutFunctionConcurrency |
lambda |
Write |
|||
|
PutFunctionEventInvokeConfig |
lambda |
Write |
|||
|
PutFunctionRecursionConfig |
lambda |
Write |
|||
|
PutFunctionScalingConfig |
lambda |
Write |
|||
|
PutProvisionedConcurrencyConfig |
lambda |
Write |
|||
|
PutRuntimeManagementConfig |
lambda |
Write |
|||
|
RemoveLayerVersionPermission |
lambda |
Permissions management, Write |
|||
|
RemovePermission |
lambda |
Permissions management, Write |
|||
|
SendDurableExecutionCallbackFailure |
lambda |
Write |
|||
|
SendDurableExecutionCallbackHeartbeat |
lambda |
Write |
|||
|
SendDurableExecutionCallbackSuccess |
lambda |
Write |
|||
|
StopDurableExecution |
lambda |
Write |
|||
|
TagResource |
lambda |
Tagging, Write |
|||
|
UntagResource |
lambda |
Tagging, Write |
|||
|
UpdateAlias |
lambda |
Write |
|||
|
UpdateCapacityProvider |
lambda |
Write |
|||
|
UpdateCodeSigningConfig |
lambda |
Write |
|||
|
UpdateEventSourceMapping |
lambda |
Write |
|||
|
UpdateFunctionCode |
lambda |
Write |
|||
|
UpdateFunctionConfiguration |
lambda |
Read |
|||
Write |
|||||
Write |
|||||
iam:PassedToService |
lambda.amazonaws.com |
Write |
|||
|
UpdateFunctionEventInvokeConfig |
lambda |
Write |
|||
|
UpdateFunctionUrlConfig |
lambda |
Write |
|||
|
CreateNetworkConnector |
lambda-core |
Write |
|||
Tagging, Write |
|||||
iam:PassedToService |
lambda.amazonaws.com |
Write |
|||
|
DeleteNetworkConnector |
lambda-core |
Write |
|||
|
GetNetworkConnector |
lambda-core |
Read |
|||
|
ListNetworkConnectors |
lambda-core |
List |
|||
|
UpdateNetworkConnector |
lambda-core |
Write |
|||
iam:PassedToService |
lambda.amazonaws.com |
Write |
|||
|
CreateMicrovmAuthToken |
lambda-microvms |
Write |
|||
|
CreateMicrovmImage |
lambda-microvms |
Write |
|||
Write |
|||||
Tagging, Write |
|||||
Write |
|||||
|
CreateMicrovmShellAuthToken |
lambda-microvms |
Write |
|||
|
DeleteMicrovmImage |
lambda-microvms |
Write |
|||
|
DeleteMicrovmImageVersion |
lambda-microvms |
Write |
|||
|
GetMicrovm |
lambda-microvms |
Read |
|||
|
GetMicrovmImage |
lambda-microvms |
Read |
|||
|
GetMicrovmImageBuild |
lambda-microvms |
Read |
|||
|
GetMicrovmImageVersion |
lambda-microvms |
Read |
|||
|
ListManagedMicrovmImageVersions |
lambda-microvms |
List |
|||
|
ListManagedMicrovmImages |
lambda-microvms |
List |
|||
|
ListMicrovmImageBuilds |
lambda-microvms |
List |
|||
|
ListMicrovmImageVersions |
lambda-microvms |
List |
|||
|
ListMicrovmImages |
lambda-microvms |
List |
|||
|
ListMicrovms |
lambda-microvms |
List |
|||
|
ListTags |
lambda-microvms |
Read |
|||
|
ResumeMicrovm |
lambda-microvms |
Write |
|||
|
RunMicrovm |
lambda-microvms |
Write |
|||
Write |
|||||
Write |
|||||
|
SuspendMicrovm |
lambda-microvms |
Write |
|||
|
TagResource |
lambda-microvms |
Tagging, Write |
|||
|
TerminateMicrovm |
lambda-microvms |
Write |
|||
|
UntagResource |
lambda-microvms |
Tagging, Write |
|||
|
UpdateMicrovmImage |
lambda-microvms |
Write |
|||
Write |
|||||
Write |
|||||
|
UpdateMicrovmImageVersion |
lambda-microvms |
Write |
Actions defined by AWS Lambda
You can specify the following actions in the Action element of an IAM
policy statement. Use policies to grant permissions to perform an operation in AWS. When
you use an action in a policy, you usually allow or deny access to the API operation or CLI
command with the same name. However, in some cases, a single action controls access to more
than one operation. Alternatively, some operations require several different actions.
| Actions | Description | Resource types (*required) | Condition keys | Access level |
|---|---|---|---|---|
Grants permission to add permissions to the resource-based policy of a version of an AWS Lambda layer |
Permissions management, Write |
|||
Grants permission to give an AWS service or another account permission to use an AWS Lambda function |
Permissions management, Write |
|||
Grants permission to save the progress of an AWS Lambda durable execution |
Write |
|||
Grants permission to create an alias for a Lambda function version |
Write |
|||
Grants permission to create an AWS Lambda capacity provider |
Write |
|||
Grants permission to create an AWS Lambda code signing config |
Write |
|||
Grants permission to create a mapping between an event source and an AWS Lambda function |
Write |
|||
Grants permission to create an AWS Lambda function |
Write |
|||
Grants permission to create a function url configuration for a Lambda function |
Write |
|||
Grants permission to create an auth token for an AWS Lambda MicroVM |
Write |
|||
Grants permission to create an AWS Lambda MicroVM image |
Write |
|||
Grants permission to create a shell auth token for an AWS Lambda MicroVM |
Write |
|||
Grants permission to create an AWS Lambda network connector |
Write |
|||
Grants permission to delete an AWS Lambda function alias |
Write |
|||
Grants permission to delete an AWS Lambda capacity provider |
Write |
|||
Grants permission to delete an AWS Lambda code signing config |
Write |
|||
Grants permission to delete an AWS Lambda event source mapping |
Write |
|||
Grants permission to delete an AWS Lambda function |
Write |
|||
Grants permission to detach a code signing config from an AWS Lambda function |
Write |
|||
Grants permission to remove a concurrent execution limit from an AWS Lambda function |
Write |
|||
Grants permission to delete the configuration for asynchronous invocation for an AWS Lambda function, version, or alias |
Write |
|||
Grants permission to delete function url configuration for a Lambda function |
Write |
|||
Grants permission to delete a version of an AWS Lambda layer |
Write |
|||
Grants permission to delete an AWS Lambda MicroVM image |
Write |
|||
Grants permission to delete a version of an AWS Lambda MicroVM image |
Write |
|||
Grants permission to delete an AWS Lambda network connector |
Write |
|||
Grants permission to delete the provisioned concurrency configuration for an AWS Lambda function |
Write |
|||
Grants permission to view details about an account's limits and usage in an AWS Region |
Read |
|||
Grants permission to view details about an AWS Lambda function alias |
Read |
|||
Grants permission to view details about an AWS Lambda capacity provider |
Read |
|||
Grants permission to view details about an AWS Lambda code signing config |
Read |
|||
Grants permission to view details of an AWS Lambda durable execution |
Read |
|||
Grants permission to view execution history of an AWS Lambda durable execution |
Read |
|||
Grants permission to view current state of an AWS Lambda durable execution |
Read |
|||
Grants permission to view details about an AWS Lambda event source mapping |
Read |
|||
Grants permission to view details about an AWS Lambda function |
Read |
|||
Grants permission to view the code signing config arn attached to an AWS Lambda function |
Read |
|||
Grants permission to view details about the reserved concurrency configuration for a function |
Read |
|||
Grants permission to view details about the version-specific settings of an AWS Lambda function or version |
Read |
|||
Grants permission to view the configuration for asynchronous invocation for a function, version, or alias |
Read |
|||
Grants permission to view the recursion configuration of an AWS Lambda function |
Read |
|||
Grants permission to view the scaling configuration of an AWS Lambda function running on a capacity provider |
Read |
|||
Grants permission to read function url configuration for a Lambda function |
Read |
|||
Grants permission to view details about a version of an AWS Lambda layer. Note this action also supports GetLayerVersionByArn API |
Read |
|||
Grants permission to view the resource-based policy for a version of an AWS Lambda layer |
Read |
|||
Grants permission to view information about an AWS Lambda MicroVM |
Read |
|||
Grants permission to view information about an AWS Lambda MicroVM image |
Read |
|||
Grants permission to view information about a build of an AWS Lambda MicroVM image version |
Read |
|||
Grants permission to view information about a version of an AWS Lambda MicroVM image |
Read |
|||
Grants permission to view details about an AWS Lambda network connector |
Read |
|||
Grants permission to view the resource-based policy for an AWS Lambda function, version, or alias |
Read |
|||
Grants permission to view the provisioned concurrency configuration for an AWS Lambda function's alias or version |
Read |
|||
Grants permission to view the runtime management configuration of an AWS Lambda function |
Read |
|||
Grants permission to invoke a function asynchronously (Deprecated) |
Write |
|||
Grants permission to invoke an AWS Lambda function |
Write |
|||
Grants permission to retrieve a list of aliases for an AWS Lambda function |
List |
|||
Grants permission to retrieve a list of AWS Lambda capacity providers |
List |
|||
Grants permission to retrieve a list of AWS Lambda code signing configs |
List |
|||
Grants permission to retrieve a list of AWS Lambda durable executions of an AWS Lambda function |
List |
|||
Grants permission to retrieve a list of AWS Lambda event source mappings |
List |
|||
Grants permission to retrieve a list of configurations for asynchronous invocation for a function |
List |
|||
Grants permission to read function url configurations for a function |
List |
|||
Grants permission to retrieve a list of AWS Lambda function versions by the capacity provider assigned |
List |
|||
Grants permission to retrieve a list of AWS Lambda functions, with the version-specific configuration of each function |
List |
|||
Grants permission to retrieve a list of AWS Lambda functions by the code signing config assigned |
List |
|||
Grants permission to retrieve a list of versions of an AWS Lambda layer |
List |
|||
Grants permission to retrieve a list of AWS Lambda layers, with details about the latest version of each layer |
List |
|||
Grants permission to retrieve a list of versions for a managed AWS Lambda MicroVM image |
List |
|||
Grants permission to retrieve a list of managed AWS Lambda MicroVM images |
List |
|||
Grants permission to retrieve a list of builds for an AWS Lambda MicroVM image version |
List |
|||
Grants permission to retrieve a list of versions for an AWS Lambda MicroVM image |
List |
|||
Grants permission to retrieve a list of AWS Lambda MicroVM images |
List |
|||
Grants permission to retrieve a list of AWS Lambda MicroVMs |
List |
|||
Grants permission to retrieve a list of AWS Lambda network connectors |
List |
|||
Grants permission to retrieve a list of provisioned concurrency configurations for an AWS Lambda function |
List |
|||
Grants permission to retrieve a list of tags for an AWS Lambda function, event source mapping, capacity provider, code signing configuration, network connector or MicroVM image resource |
Read |
|||
Grants permission to retrieve a list of versions for an AWS Lambda function |
List |
|||
Grants permission to create an AWS Lambda layer |
Write |
|||
Grants permission to create an AWS Lambda function version |
Write |
|||
Grants permission to attach a code signing config to an AWS Lambda function |
Write |
|||
Grants permission to configure reserved concurrency for an AWS Lambda function |
Write |
|||
Grants permission to configures options for asynchronous invocation on an AWS Lambda function, version, or alias |
Write |
|||
Grants permission to update the recursion configuration of an AWS Lambda function |
Write |
|||
Grants permission to update the scaling configuration of an AWS Lambda function running on a capacity provider |
Write |
|||
Grants permission to configure provisioned concurrency for an AWS Lambda function's alias or version |
Write |
|||
Grants permission to update the runtime management configuration of an AWS Lambda function |
Write |
|||
Grants permission to remove a statement from the permissions policy for a version of an AWS Lambda layer |
Permissions management, Write |
|||
Grants permission to revoke function-use permission from an AWS service or another account |
Permissions management, Write |
|||
Grants permission to resume a suspended AWS Lambda MicroVM |
Write |
|||
Grants permission to run an AWS Lambda MicroVM from a MicroVM image |
Write |
|||
Grants permission to send a failure response for a callback operation in an AWS Lambda durable execution |
Write |
|||
Grants permission to send a heartbeat for a callback operation in an AWS Lambda durable execution |
Write |
|||
Grants permission to send a successful response for a callback operation in an AWS Lambda durable execution |
Write |
|||
Grants permission to stop an AWS Lambda durable execution |
Write |
|||
Grants permission to suspend an AWS Lambda MicroVM |
Write |
|||
Grants permission to add tags to an AWS Lambda function, event source mapping, capacity provider, code signing configuration, network connector or MicroVM image resource |
Tagging, Write |
|||
Grants permission to terminate an AWS Lambda MicroVM |
Write |
|||
Grants permission to remove tags from an AWS Lambda function, event source mapping, capacity provider, code signing configuration, network connector or MicroVM image resource |
Tagging, Write |
|||
Grants permission to update the configuration of an AWS Lambda function's alias |
Write |
|||
Grants permission to update an AWS Lambda capacity provider |
Write |
|||
Grants permission to update an AWS Lambda code signing config |
Write |
|||
Grants permission to update the configuration of an AWS Lambda event source mapping |
Write |
|||
Grants permission to update the code of an AWS Lambda function |
Write |
|||
Grants permission to update the code signing config of an AWS Lambda function |
Write |
|||
Grants permission to modify the version-specific settings of an AWS Lambda function |
Write |
|||
Grants permission to modify the configuration for asynchronous invocation for an AWS Lambda function, version, or alias |
Write |
|||
Grants permission to update a function url configuration for a Lambda function |
Write |
|||
Grants permission to update an AWS Lambda MicroVM image |
Write |
|||
Grants permission to update a version of an AWS Lambda MicroVM image |
Write |
|||
Grants permission to update an AWS Lambda network connector |
Write |
Permission-only actions for AWS Lambda
The following actions are defined by AWS Lambda but are not directly invocable through any API operation. They can only be used in IAM policy statements to grant or deny permissions.
| Actions | Description | Resource types (*required) | Condition keys | Access level |
|---|---|---|---|---|
Grants permission to connect to a Lambda MicroVM via HTTP (VPC Endpoint only) |
Write |
|||
Grants permission to disable replication for a Lambda@Edge function |
Permissions management, Write |
|||
Grants permission to enable replication for a Lambda@Edge function |
Permissions management, Write |
|||
Grants permission to invoke an AWS Lambda function through url |
Write |
|||
Grants permission to pass an AWS Lambda capacity provider to a service |
Write |
|||
Grants permission to pass an AWS Lambda network connector to a service |
Write |
Resource types defined by AWS Lambda
The following resource types are defined by this service and can be used in the
Resource element of IAM permission policy statements.
| Resource types | ARN | Condition keys |
|---|---|---|
arn:${Partition}:lambda:${Region}:${Account}:capacity-provider:${CapacityProviderName} |
||
arn:${Partition}:lambda:${Region}:${Account}:code-signing-config:${CodeSigningConfigId} |
||
arn:${Partition}:lambda:${Region}:${Account}:function:${FunctionName}:${Version}/durable-execution/${ExecutionName}/${ExecutionId} |
||
arn:${Partition}:lambda:${Region}:${Account}:event-source-mapping:${UUID} |
||
arn:${Partition}:lambda:${Region}:${Account}:function:${FunctionName} |
||
arn:${Partition}:lambda:${Region}:${Account}:function:${FunctionName}:${Alias} |
||
arn:${Partition}:lambda:${Region}:${Account}:function:${FunctionName}:${Version} |
||
arn:${Partition}:lambda:${Region}:${Account}:layer:${LayerName} |
||
arn:${Partition}:lambda:${Region}:${Account}:layer:${LayerName}:${LayerVersion} |
||
arn:${Partition}:lambda:${Region}:${Account}:microvm-image:${MicrovmImageName} |
||
arn:${Partition}:lambda:${Region}:${Account}:network-connector:${NetworkConnectorId} |
Condition keys for AWS Lambda
AWS Lambda defines the following condition keys that can be used in the
Condition element of an IAM policy.
| Condition keys | Description | Type |
|---|---|---|
Filters access by the tags that are passed in the request |
String |
|
Filters access by the tags associated with the resource |
String |
|
Filters access by the tag keys that are passed in the request |
ArrayOfString |
|
Filters access by the ARN of an AWS Lambda code signing config |
ARN |
|
Filters access by the ID from a non-AWS event source configured for the AWS Lambda function |
String |
|
Filters access by the ARN of an AWS Lambda function |
ARN |
|
Filters access by authorization type specified in request. Available during CreateFunctionUrlConfig, UpdateFunctionUrlConfig, DeleteFunctionUrlConfig, GetFunctionUrlConfig, ListFunctionUrlConfig, AddPermission and RemovePermission operations |
String |
|
Limits the scope of lambda:InvokeFunction action to Function URLs only. Available during AddPermission operation |
Bool |
|
Filters access by the ARN of a version of an AWS Lambda layer |
ArrayOfString |
|
Filters access by restricting the AWS service or account that can invoke a function |
String |
|
Filters access by the ID of security groups configured for the AWS Lambda function |
ArrayOfString |
|
Filters access by the ARN of the AWS Lambda function from which the request originated |
ARN |
|
Filters access by the ID of subnets configured for the AWS Lambda function |
ArrayOfString |
|
Filters access by the ID of the VPC configured for the AWS Lambda function |
String |