Actions, resources, and condition keys for Amazon Lambda
Amazon 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 Amazon 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 Amazon 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 Amazon. 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 Amazon Lambda layer |
Permissions management, Write |
|||
Grants permission to give an Amazon service or another account permission to use an Amazon Lambda function |
Permissions management, Write |
|||
Grants permission to save the progress of an Amazon Lambda durable execution |
Write |
|||
Grants permission to create an alias for a Lambda function version |
Write |
|||
Grants permission to create an Amazon Lambda capacity provider |
Write |
|||
Grants permission to create an Amazon Lambda code signing config |
Write |
|||
Grants permission to create a mapping between an event source and an Amazon Lambda function |
Write |
|||
Grants permission to create an Amazon 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 Amazon Lambda MicroVM |
Write |
|||
Grants permission to create an Amazon Lambda MicroVM image |
Write |
|||
Grants permission to create a shell auth token for an Amazon Lambda MicroVM |
Write |
|||
Grants permission to create an Amazon Lambda network connector |
Write |
|||
Grants permission to delete an Amazon Lambda function alias |
Write |
|||
Grants permission to delete an Amazon Lambda capacity provider |
Write |
|||
Grants permission to delete an Amazon Lambda code signing config |
Write |
|||
Grants permission to delete an Amazon Lambda event source mapping |
Write |
|||
Grants permission to delete an Amazon Lambda function |
Write |
|||
Grants permission to detach a code signing config from an Amazon Lambda function |
Write |
|||
Grants permission to remove a concurrent execution limit from an Amazon Lambda function |
Write |
|||
Grants permission to delete the configuration for asynchronous invocation for an Amazon 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 Amazon Lambda layer |
Write |
|||
Grants permission to delete an Amazon Lambda MicroVM image |
Write |
|||
Grants permission to delete a version of an Amazon Lambda MicroVM image |
Write |
|||
Grants permission to delete an Amazon Lambda network connector |
Write |
|||
Grants permission to delete the provisioned concurrency configuration for an Amazon Lambda function |
Write |
|||
Grants permission to view details about an account's limits and usage in an Amazon Web Services Region |
Read |
|||
Grants permission to view details about an Amazon Lambda function alias |
Read |
|||
Grants permission to view details about an Amazon Lambda capacity provider |
Read |
|||
Grants permission to view details about an Amazon Lambda code signing config |
Read |
|||
Grants permission to view details of an Amazon Lambda durable execution |
Read |
|||
Grants permission to view execution history of an Amazon Lambda durable execution |
Read |
|||
Grants permission to view current state of an Amazon Lambda durable execution |
Read |
|||
Grants permission to view details about an Amazon Lambda event source mapping |
Read |
|||
Grants permission to view details about an Amazon Lambda function |
Read |
|||
Grants permission to view the code signing config arn attached to an Amazon 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 Amazon 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 Amazon Lambda function |
Read |
|||
Grants permission to view the scaling configuration of an Amazon 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 Amazon Lambda layer. Note this action also supports GetLayerVersionByArn API |
Read |
|||
Grants permission to view the resource-based policy for a version of an Amazon Lambda layer |
Read |
|||
Grants permission to view information about an Amazon Lambda MicroVM |
Read |
|||
Grants permission to view information about an Amazon Lambda MicroVM image |
Read |
|||
Grants permission to view information about a build of an Amazon Lambda MicroVM image version |
Read |
|||
Grants permission to view information about a version of an Amazon Lambda MicroVM image |
Read |
|||
Grants permission to view details about an Amazon Lambda network connector |
Read |
|||
Grants permission to view the resource-based policy for an Amazon Lambda function, version, or alias |
Read |
|||
Grants permission to view the provisioned concurrency configuration for an Amazon Lambda function's alias or version |
Read |
|||
Grants permission to view the runtime management configuration of an Amazon Lambda function |
Read |
|||
Grants permission to invoke a function asynchronously (Deprecated) |
Write |
|||
Grants permission to invoke an Amazon Lambda function |
Write |
|||
Grants permission to retrieve a list of aliases for an Amazon Lambda function |
List |
|||
Grants permission to retrieve a list of Amazon Lambda capacity providers |
List |
|||
Grants permission to retrieve a list of Amazon Lambda code signing configs |
List |
|||
Grants permission to retrieve a list of Amazon Lambda durable executions of an Amazon Lambda function |
List |
|||
Grants permission to retrieve a list of Amazon 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 Amazon Lambda function versions by the capacity provider assigned |
List |
|||
Grants permission to retrieve a list of Amazon Lambda functions, with the version-specific configuration of each function |
List |
|||
Grants permission to retrieve a list of Amazon Lambda functions by the code signing config assigned |
List |
|||
Grants permission to retrieve a list of versions of an Amazon Lambda layer |
List |
|||
Grants permission to retrieve a list of Amazon Lambda layers, with details about the latest version of each layer |
List |
|||
Grants permission to retrieve a list of versions for a managed Amazon Lambda MicroVM image |
List |
|||
Grants permission to retrieve a list of managed Amazon Lambda MicroVM images |
List |
|||
Grants permission to retrieve a list of builds for an Amazon Lambda MicroVM image version |
List |
|||
Grants permission to retrieve a list of versions for an Amazon Lambda MicroVM image |
List |
|||
Grants permission to retrieve a list of Amazon Lambda MicroVM images |
List |
|||
Grants permission to retrieve a list of Amazon Lambda MicroVMs |
List |
|||
Grants permission to retrieve a list of Amazon Lambda network connectors |
List |
|||
Grants permission to retrieve a list of provisioned concurrency configurations for an Amazon Lambda function |
List |
|||
Grants permission to retrieve a list of tags for an Amazon 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 Amazon Lambda function |
List |
|||
Grants permission to create an Amazon Lambda layer |
Write |
|||
Grants permission to create an Amazon Lambda function version |
Write |
|||
Grants permission to attach a code signing config to an Amazon Lambda function |
Write |
|||
Grants permission to configure reserved concurrency for an Amazon Lambda function |
Write |
|||
Grants permission to configures options for asynchronous invocation on an Amazon Lambda function, version, or alias |
Write |
|||
Grants permission to update the recursion configuration of an Amazon Lambda function |
Write |
|||
Grants permission to update the scaling configuration of an Amazon Lambda function running on a capacity provider |
Write |
|||
Grants permission to configure provisioned concurrency for an Amazon Lambda function's alias or version |
Write |
|||
Grants permission to update the runtime management configuration of an Amazon Lambda function |
Write |
|||
Grants permission to remove a statement from the permissions policy for a version of an Amazon Lambda layer |
Permissions management, Write |
|||
Grants permission to revoke function-use permission from an Amazon service or another account |
Permissions management, Write |
|||
Grants permission to resume a suspended Amazon Lambda MicroVM |
Write |
|||
Grants permission to run an Amazon Lambda MicroVM from a MicroVM image |
Write |
|||
Grants permission to send a failure response for a callback operation in an Amazon Lambda durable execution |
Write |
|||
Grants permission to send a heartbeat for a callback operation in an Amazon Lambda durable execution |
Write |
|||
Grants permission to send a successful response for a callback operation in an Amazon Lambda durable execution |
Write |
|||
Grants permission to stop an Amazon Lambda durable execution |
Write |
|||
Grants permission to suspend an Amazon Lambda MicroVM |
Write |
|||
Grants permission to add tags to an Amazon Lambda function, event source mapping, capacity provider, code signing configuration, network connector or MicroVM image resource |
Tagging, Write |
|||
Grants permission to terminate an Amazon Lambda MicroVM |
Write |
|||
Grants permission to remove tags from an Amazon 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 Amazon Lambda function's alias |
Write |
|||
Grants permission to update an Amazon Lambda capacity provider |
Write |
|||
Grants permission to update an Amazon Lambda code signing config |
Write |
|||
Grants permission to update the configuration of an Amazon Lambda event source mapping |
Write |
|||
Grants permission to update the code of an Amazon Lambda function |
Write |
|||
Grants permission to update the code signing config of an Amazon Lambda function |
Write |
|||
Grants permission to modify the version-specific settings of an Amazon Lambda function |
Write |
|||
Grants permission to modify the configuration for asynchronous invocation for an Amazon Lambda function, version, or alias |
Write |
|||
Grants permission to update a function url configuration for a Lambda function |
Write |
|||
Grants permission to update an Amazon Lambda MicroVM image |
Write |
|||
Grants permission to update a version of an Amazon Lambda MicroVM image |
Write |
|||
Grants permission to update an Amazon Lambda network connector |
Write |
Permission-only actions for Amazon Lambda
The following actions are defined by Amazon 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 Amazon Lambda function through url |
Write |
|||
Grants permission to pass an Amazon Lambda capacity provider to a service |
Write |
|||
Grants permission to pass an Amazon Lambda network connector to a service |
Write |
Resource types defined by Amazon 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 Amazon Lambda
Amazon 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 Amazon Lambda code signing config |
ARN |
|
Filters access by the ID from a non-Amazon event source configured for the Amazon Lambda function |
String |
|
Filters access by the ARN of an Amazon 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 Amazon Lambda layer |
ArrayOfString |
|
Filters access by restricting the Amazon service or account that can invoke a function |
String |
|
Filters access by the ID of security groups configured for the Amazon Lambda function |
ArrayOfString |
|
Filters access by the ARN of the Amazon Lambda function from which the request originated |
ARN |
|
Filters access by the ID of subnets configured for the Amazon Lambda function |
ArrayOfString |
|
Filters access by the ID of the VPC configured for the Amazon Lambda function |
String |