@Generated(value="software.amazon.awssdk:codegen") public interface LambdaClient extends SdkClient
builder() method.
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.
| Modifier and Type | Field and Description |
|---|---|
static String |
SERVICE_NAME |
| Modifier and Type | Method and Description |
|---|---|
default AddLayerVersionPermissionResponse |
addLayerVersionPermission(AddLayerVersionPermissionRequest addLayerVersionPermissionRequest)
Adds permissions to the resource-based policy of a version of an AWS Lambda layer.
|
default AddLayerVersionPermissionResponse |
addLayerVersionPermission(Consumer<AddLayerVersionPermissionRequest.Builder> addLayerVersionPermissionRequest)
Adds permissions to the resource-based policy of a version of an AWS Lambda layer.
|
default AddPermissionResponse |
addPermission(AddPermissionRequest addPermissionRequest)
Grants an AWS service or another account permission to use a function.
|
default AddPermissionResponse |
addPermission(Consumer<AddPermissionRequest.Builder> addPermissionRequest)
Grants an AWS service or another account permission to use a function.
|
static LambdaClientBuilder |
builder()
Create a builder that can be used to configure and create a
LambdaClient. |
static LambdaClient |
create()
Create a
LambdaClient with the region loaded from the
DefaultAwsRegionProviderChain and credentials loaded from the
DefaultCredentialsProvider. |
default CreateAliasResponse |
createAlias(Consumer<CreateAliasRequest.Builder> createAliasRequest)
Creates an alias for a Lambda
function version.
|
default CreateAliasResponse |
createAlias(CreateAliasRequest createAliasRequest)
Creates an alias for a Lambda
function version.
|
default CreateEventSourceMappingResponse |
createEventSourceMapping(Consumer<CreateEventSourceMappingRequest.Builder> createEventSourceMappingRequest)
Creates a mapping between an event source and an AWS Lambda function.
|
default CreateEventSourceMappingResponse |
createEventSourceMapping(CreateEventSourceMappingRequest createEventSourceMappingRequest)
Creates a mapping between an event source and an AWS Lambda function.
|
default CreateFunctionResponse |
createFunction(Consumer<CreateFunctionRequest.Builder> createFunctionRequest)
Creates a Lambda function.
|
default CreateFunctionResponse |
createFunction(CreateFunctionRequest createFunctionRequest)
Creates a Lambda function.
|
default DeleteAliasResponse |
deleteAlias(Consumer<DeleteAliasRequest.Builder> deleteAliasRequest)
Deletes a Lambda function alias.
|
default DeleteAliasResponse |
deleteAlias(DeleteAliasRequest deleteAliasRequest)
Deletes a Lambda function alias.
|
default DeleteEventSourceMappingResponse |
deleteEventSourceMapping(Consumer<DeleteEventSourceMappingRequest.Builder> deleteEventSourceMappingRequest)
Deletes an event source
mapping.
|
default DeleteEventSourceMappingResponse |
deleteEventSourceMapping(DeleteEventSourceMappingRequest deleteEventSourceMappingRequest)
Deletes an event source
mapping.
|
default DeleteFunctionResponse |
deleteFunction(Consumer<DeleteFunctionRequest.Builder> deleteFunctionRequest)
Deletes a Lambda function.
|
default DeleteFunctionResponse |
deleteFunction(DeleteFunctionRequest deleteFunctionRequest)
Deletes a Lambda function.
|
default DeleteFunctionConcurrencyResponse |
deleteFunctionConcurrency(Consumer<DeleteFunctionConcurrencyRequest.Builder> deleteFunctionConcurrencyRequest)
Removes a concurrent execution limit from a function.
|
default DeleteFunctionConcurrencyResponse |
deleteFunctionConcurrency(DeleteFunctionConcurrencyRequest deleteFunctionConcurrencyRequest)
Removes a concurrent execution limit from a function.
|
default DeleteFunctionEventInvokeConfigResponse |
deleteFunctionEventInvokeConfig(Consumer<DeleteFunctionEventInvokeConfigRequest.Builder> deleteFunctionEventInvokeConfigRequest)
Deletes the configuration for asynchronous invocation for a function, version, or alias.
|
default DeleteFunctionEventInvokeConfigResponse |
deleteFunctionEventInvokeConfig(DeleteFunctionEventInvokeConfigRequest deleteFunctionEventInvokeConfigRequest)
Deletes the configuration for asynchronous invocation for a function, version, or alias.
|
default DeleteLayerVersionResponse |
deleteLayerVersion(Consumer<DeleteLayerVersionRequest.Builder> deleteLayerVersionRequest)
Deletes a version of an AWS
Lambda layer.
|
default DeleteLayerVersionResponse |
deleteLayerVersion(DeleteLayerVersionRequest deleteLayerVersionRequest)
Deletes a version of an AWS
Lambda layer.
|
default DeleteProvisionedConcurrencyConfigResponse |
deleteProvisionedConcurrencyConfig(Consumer<DeleteProvisionedConcurrencyConfigRequest.Builder> deleteProvisionedConcurrencyConfigRequest)
Deletes the provisioned concurrency configuration for a function.
|
default DeleteProvisionedConcurrencyConfigResponse |
deleteProvisionedConcurrencyConfig(DeleteProvisionedConcurrencyConfigRequest deleteProvisionedConcurrencyConfigRequest)
Deletes the provisioned concurrency configuration for a function.
|
default GetAccountSettingsResponse |
getAccountSettings()
Retrieves details about your account's limits and usage in an AWS Region.
|
default GetAccountSettingsResponse |
getAccountSettings(Consumer<GetAccountSettingsRequest.Builder> getAccountSettingsRequest)
Retrieves details about your account's limits and usage in an AWS Region.
|
default GetAccountSettingsResponse |
getAccountSettings(GetAccountSettingsRequest getAccountSettingsRequest)
Retrieves details about your account's limits and usage in an AWS Region.
|
default GetAliasResponse |
getAlias(Consumer<GetAliasRequest.Builder> getAliasRequest)
Returns details about a Lambda function alias.
|
default GetAliasResponse |
getAlias(GetAliasRequest getAliasRequest)
Returns details about a Lambda function alias.
|
default GetEventSourceMappingResponse |
getEventSourceMapping(Consumer<GetEventSourceMappingRequest.Builder> getEventSourceMappingRequest)
Returns details about an event source mapping.
|
default GetEventSourceMappingResponse |
getEventSourceMapping(GetEventSourceMappingRequest getEventSourceMappingRequest)
Returns details about an event source mapping.
|
default GetFunctionResponse |
getFunction(Consumer<GetFunctionRequest.Builder> getFunctionRequest)
Returns information about the function or function version, with a link to download the deployment package that's
valid for 10 minutes.
|
default GetFunctionResponse |
getFunction(GetFunctionRequest getFunctionRequest)
Returns information about the function or function version, with a link to download the deployment package that's
valid for 10 minutes.
|
default GetFunctionConcurrencyResponse |
getFunctionConcurrency(Consumer<GetFunctionConcurrencyRequest.Builder> getFunctionConcurrencyRequest)
Returns details about the reserved concurrency configuration for a function.
|
default GetFunctionConcurrencyResponse |
getFunctionConcurrency(GetFunctionConcurrencyRequest getFunctionConcurrencyRequest)
Returns details about the reserved concurrency configuration for a function.
|
default GetFunctionConfigurationResponse |
getFunctionConfiguration(Consumer<GetFunctionConfigurationRequest.Builder> getFunctionConfigurationRequest)
Returns the version-specific settings of a Lambda function or version.
|
default GetFunctionConfigurationResponse |
getFunctionConfiguration(GetFunctionConfigurationRequest getFunctionConfigurationRequest)
Returns the version-specific settings of a Lambda function or version.
|
default GetFunctionEventInvokeConfigResponse |
getFunctionEventInvokeConfig(Consumer<GetFunctionEventInvokeConfigRequest.Builder> getFunctionEventInvokeConfigRequest)
Retrieves the configuration for asynchronous invocation for a function, version, or alias.
|
default GetFunctionEventInvokeConfigResponse |
getFunctionEventInvokeConfig(GetFunctionEventInvokeConfigRequest getFunctionEventInvokeConfigRequest)
Retrieves the configuration for asynchronous invocation for a function, version, or alias.
|
default GetLayerVersionResponse |
getLayerVersion(Consumer<GetLayerVersionRequest.Builder> getLayerVersionRequest)
Returns information about a version of an AWS Lambda layer, with a link
to download the layer archive that's valid for 10 minutes.
|
default GetLayerVersionResponse |
getLayerVersion(GetLayerVersionRequest getLayerVersionRequest)
Returns information about a version of an AWS Lambda layer, with a link
to download the layer archive that's valid for 10 minutes.
|
default GetLayerVersionByArnResponse |
getLayerVersionByArn(Consumer<GetLayerVersionByArnRequest.Builder> getLayerVersionByArnRequest)
Returns information about a version of an AWS Lambda layer, with a link
to download the layer archive that's valid for 10 minutes.
|
default GetLayerVersionByArnResponse |
getLayerVersionByArn(GetLayerVersionByArnRequest getLayerVersionByArnRequest)
Returns information about a version of an AWS Lambda layer, with a link
to download the layer archive that's valid for 10 minutes.
|
default GetLayerVersionPolicyResponse |
getLayerVersionPolicy(Consumer<GetLayerVersionPolicyRequest.Builder> getLayerVersionPolicyRequest)
Returns the permission policy for a version of an AWS Lambda layer.
|
default GetLayerVersionPolicyResponse |
getLayerVersionPolicy(GetLayerVersionPolicyRequest getLayerVersionPolicyRequest)
Returns the permission policy for a version of an AWS Lambda layer.
|
default GetPolicyResponse |
getPolicy(Consumer<GetPolicyRequest.Builder> getPolicyRequest)
Returns the resource-based IAM
policy for a function, version, or alias.
|
default GetPolicyResponse |
getPolicy(GetPolicyRequest getPolicyRequest)
Returns the resource-based IAM
policy for a function, version, or alias.
|
default GetProvisionedConcurrencyConfigResponse |
getProvisionedConcurrencyConfig(Consumer<GetProvisionedConcurrencyConfigRequest.Builder> getProvisionedConcurrencyConfigRequest)
Retrieves the provisioned concurrency configuration for a function's alias or version.
|
default GetProvisionedConcurrencyConfigResponse |
getProvisionedConcurrencyConfig(GetProvisionedConcurrencyConfigRequest getProvisionedConcurrencyConfigRequest)
Retrieves the provisioned concurrency configuration for a function's alias or version.
|
default InvokeResponse |
invoke(Consumer<InvokeRequest.Builder> invokeRequest)
Invokes a Lambda function.
|
default InvokeResponse |
invoke(InvokeRequest invokeRequest)
Invokes a Lambda function.
|
default ListAliasesResponse |
listAliases(Consumer<ListAliasesRequest.Builder> listAliasesRequest)
Returns a list of aliases for
a Lambda function.
|
default ListAliasesResponse |
listAliases(ListAliasesRequest listAliasesRequest)
Returns a list of aliases for
a Lambda function.
|
default ListAliasesIterable |
listAliasesPaginator(Consumer<ListAliasesRequest.Builder> listAliasesRequest)
Returns a list of aliases for
a Lambda function.
|
default ListAliasesIterable |
listAliasesPaginator(ListAliasesRequest listAliasesRequest)
Returns a list of aliases for
a Lambda function.
|
default ListEventSourceMappingsResponse |
listEventSourceMappings()
Lists event source mappings.
|
default ListEventSourceMappingsResponse |
listEventSourceMappings(Consumer<ListEventSourceMappingsRequest.Builder> listEventSourceMappingsRequest)
Lists event source mappings.
|
default ListEventSourceMappingsResponse |
listEventSourceMappings(ListEventSourceMappingsRequest listEventSourceMappingsRequest)
Lists event source mappings.
|
default ListEventSourceMappingsIterable |
listEventSourceMappingsPaginator()
Lists event source mappings.
|
default ListEventSourceMappingsIterable |
listEventSourceMappingsPaginator(Consumer<ListEventSourceMappingsRequest.Builder> listEventSourceMappingsRequest)
Lists event source mappings.
|
default ListEventSourceMappingsIterable |
listEventSourceMappingsPaginator(ListEventSourceMappingsRequest listEventSourceMappingsRequest)
Lists event source mappings.
|
default ListFunctionEventInvokeConfigsResponse |
listFunctionEventInvokeConfigs(Consumer<ListFunctionEventInvokeConfigsRequest.Builder> listFunctionEventInvokeConfigsRequest)
Retrieves a list of configurations for asynchronous invocation for a function.
|
default ListFunctionEventInvokeConfigsResponse |
listFunctionEventInvokeConfigs(ListFunctionEventInvokeConfigsRequest listFunctionEventInvokeConfigsRequest)
Retrieves a list of configurations for asynchronous invocation for a function.
|
default ListFunctionEventInvokeConfigsIterable |
listFunctionEventInvokeConfigsPaginator(Consumer<ListFunctionEventInvokeConfigsRequest.Builder> listFunctionEventInvokeConfigsRequest)
Retrieves a list of configurations for asynchronous invocation for a function.
|
default ListFunctionEventInvokeConfigsIterable |
listFunctionEventInvokeConfigsPaginator(ListFunctionEventInvokeConfigsRequest listFunctionEventInvokeConfigsRequest)
Retrieves a list of configurations for asynchronous invocation for a function.
|
default ListFunctionsResponse |
listFunctions()
Returns a list of Lambda functions, with the version-specific configuration of each.
|
default ListFunctionsResponse |
listFunctions(Consumer<ListFunctionsRequest.Builder> listFunctionsRequest)
Returns a list of Lambda functions, with the version-specific configuration of each.
|
default ListFunctionsResponse |
listFunctions(ListFunctionsRequest listFunctionsRequest)
Returns a list of Lambda functions, with the version-specific configuration of each.
|
default ListFunctionsIterable |
listFunctionsPaginator()
Returns a list of Lambda functions, with the version-specific configuration of each.
|
default ListFunctionsIterable |
listFunctionsPaginator(Consumer<ListFunctionsRequest.Builder> listFunctionsRequest)
Returns a list of Lambda functions, with the version-specific configuration of each.
|
default ListFunctionsIterable |
listFunctionsPaginator(ListFunctionsRequest listFunctionsRequest)
Returns a list of Lambda functions, with the version-specific configuration of each.
|
default ListLayersResponse |
listLayers()
Lists AWS Lambda layers and
shows information about the latest version of each.
|
default ListLayersResponse |
listLayers(Consumer<ListLayersRequest.Builder> listLayersRequest)
Lists AWS Lambda layers and
shows information about the latest version of each.
|
default ListLayersResponse |
listLayers(ListLayersRequest listLayersRequest)
Lists AWS Lambda layers and
shows information about the latest version of each.
|
default ListLayersIterable |
listLayersPaginator()
Lists AWS Lambda layers and
shows information about the latest version of each.
|
default ListLayersIterable |
listLayersPaginator(Consumer<ListLayersRequest.Builder> listLayersRequest)
Lists AWS Lambda layers and
shows information about the latest version of each.
|
default ListLayersIterable |
listLayersPaginator(ListLayersRequest listLayersRequest)
Lists AWS Lambda layers and
shows information about the latest version of each.
|
default ListLayerVersionsResponse |
listLayerVersions(Consumer<ListLayerVersionsRequest.Builder> listLayerVersionsRequest)
Lists the versions of an AWS
Lambda layer.
|
default ListLayerVersionsResponse |
listLayerVersions(ListLayerVersionsRequest listLayerVersionsRequest)
Lists the versions of an AWS
Lambda layer.
|
default ListLayerVersionsIterable |
listLayerVersionsPaginator(Consumer<ListLayerVersionsRequest.Builder> listLayerVersionsRequest)
Lists the versions of an AWS
Lambda layer.
|
default ListLayerVersionsIterable |
listLayerVersionsPaginator(ListLayerVersionsRequest listLayerVersionsRequest)
Lists the versions of an AWS
Lambda layer.
|
default ListProvisionedConcurrencyConfigsResponse |
listProvisionedConcurrencyConfigs(Consumer<ListProvisionedConcurrencyConfigsRequest.Builder> listProvisionedConcurrencyConfigsRequest)
Retrieves a list of provisioned concurrency configurations for a function.
|
default ListProvisionedConcurrencyConfigsResponse |
listProvisionedConcurrencyConfigs(ListProvisionedConcurrencyConfigsRequest listProvisionedConcurrencyConfigsRequest)
Retrieves a list of provisioned concurrency configurations for a function.
|
default ListProvisionedConcurrencyConfigsIterable |
listProvisionedConcurrencyConfigsPaginator(Consumer<ListProvisionedConcurrencyConfigsRequest.Builder> listProvisionedConcurrencyConfigsRequest)
Retrieves a list of provisioned concurrency configurations for a function.
|
default ListProvisionedConcurrencyConfigsIterable |
listProvisionedConcurrencyConfigsPaginator(ListProvisionedConcurrencyConfigsRequest listProvisionedConcurrencyConfigsRequest)
Retrieves a list of provisioned concurrency configurations for a function.
|
default ListTagsResponse |
listTags(Consumer<ListTagsRequest.Builder> listTagsRequest)
Returns a function's tags.
|
default ListTagsResponse |
listTags(ListTagsRequest listTagsRequest)
Returns a function's tags.
|
default ListVersionsByFunctionResponse |
listVersionsByFunction(Consumer<ListVersionsByFunctionRequest.Builder> listVersionsByFunctionRequest)
Returns a list of versions,
with the version-specific configuration of each.
|
default ListVersionsByFunctionResponse |
listVersionsByFunction(ListVersionsByFunctionRequest listVersionsByFunctionRequest)
Returns a list of versions,
with the version-specific configuration of each.
|
default ListVersionsByFunctionIterable |
listVersionsByFunctionPaginator(Consumer<ListVersionsByFunctionRequest.Builder> listVersionsByFunctionRequest)
Returns a list of versions,
with the version-specific configuration of each.
|
default ListVersionsByFunctionIterable |
listVersionsByFunctionPaginator(ListVersionsByFunctionRequest listVersionsByFunctionRequest)
Returns a list of versions,
with the version-specific configuration of each.
|
default PublishLayerVersionResponse |
publishLayerVersion(Consumer<PublishLayerVersionRequest.Builder> publishLayerVersionRequest)
Creates an AWS Lambda layer
from a ZIP archive.
|
default PublishLayerVersionResponse |
publishLayerVersion(PublishLayerVersionRequest publishLayerVersionRequest)
Creates an AWS Lambda layer
from a ZIP archive.
|
default PublishVersionResponse |
publishVersion(Consumer<PublishVersionRequest.Builder> publishVersionRequest)
Creates a version from the
current code and configuration of a function.
|
default PublishVersionResponse |
publishVersion(PublishVersionRequest publishVersionRequest)
Creates a version from the
current code and configuration of a function.
|
default PutFunctionConcurrencyResponse |
putFunctionConcurrency(Consumer<PutFunctionConcurrencyRequest.Builder> putFunctionConcurrencyRequest)
Sets the maximum number of simultaneous executions for a function, and reserves capacity for that concurrency
level.
|
default PutFunctionConcurrencyResponse |
putFunctionConcurrency(PutFunctionConcurrencyRequest putFunctionConcurrencyRequest)
Sets the maximum number of simultaneous executions for a function, and reserves capacity for that concurrency
level.
|
default PutFunctionEventInvokeConfigResponse |
putFunctionEventInvokeConfig(Consumer<PutFunctionEventInvokeConfigRequest.Builder> putFunctionEventInvokeConfigRequest)
Configures options for asynchronous
invocation on a function, version, or alias.
|
default PutFunctionEventInvokeConfigResponse |
putFunctionEventInvokeConfig(PutFunctionEventInvokeConfigRequest putFunctionEventInvokeConfigRequest)
Configures options for asynchronous
invocation on a function, version, or alias.
|
default PutProvisionedConcurrencyConfigResponse |
putProvisionedConcurrencyConfig(Consumer<PutProvisionedConcurrencyConfigRequest.Builder> putProvisionedConcurrencyConfigRequest)
Adds a provisioned concurrency configuration to a function's alias or version.
|
default PutProvisionedConcurrencyConfigResponse |
putProvisionedConcurrencyConfig(PutProvisionedConcurrencyConfigRequest putProvisionedConcurrencyConfigRequest)
Adds a provisioned concurrency configuration to a function's alias or version.
|
default RemoveLayerVersionPermissionResponse |
removeLayerVersionPermission(Consumer<RemoveLayerVersionPermissionRequest.Builder> removeLayerVersionPermissionRequest)
Removes a statement from the permissions policy for a version of an AWS Lambda layer.
|
default RemoveLayerVersionPermissionResponse |
removeLayerVersionPermission(RemoveLayerVersionPermissionRequest removeLayerVersionPermissionRequest)
Removes a statement from the permissions policy for a version of an AWS Lambda layer.
|
default RemovePermissionResponse |
removePermission(Consumer<RemovePermissionRequest.Builder> removePermissionRequest)
Revokes function-use permission from an AWS service or another account.
|
default RemovePermissionResponse |
removePermission(RemovePermissionRequest removePermissionRequest)
Revokes function-use permission from an AWS service or another account.
|
static ServiceMetadata |
serviceMetadata() |
default TagResourceResponse |
tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest)
Adds tags to a function.
|
default TagResourceResponse |
tagResource(TagResourceRequest tagResourceRequest)
Adds tags to a function.
|
default UntagResourceResponse |
untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest)
Removes tags from a function.
|
default UntagResourceResponse |
untagResource(UntagResourceRequest untagResourceRequest)
Removes tags from a function.
|
default UpdateAliasResponse |
updateAlias(Consumer<UpdateAliasRequest.Builder> updateAliasRequest)
Updates the configuration of a Lambda function alias.
|
default UpdateAliasResponse |
updateAlias(UpdateAliasRequest updateAliasRequest)
Updates the configuration of a Lambda function alias.
|
default UpdateEventSourceMappingResponse |
updateEventSourceMapping(Consumer<UpdateEventSourceMappingRequest.Builder> updateEventSourceMappingRequest)
Updates an event source mapping.
|
default UpdateEventSourceMappingResponse |
updateEventSourceMapping(UpdateEventSourceMappingRequest updateEventSourceMappingRequest)
Updates an event source mapping.
|
default UpdateFunctionCodeResponse |
updateFunctionCode(Consumer<UpdateFunctionCodeRequest.Builder> updateFunctionCodeRequest)
Updates a Lambda function's code.
|
default UpdateFunctionCodeResponse |
updateFunctionCode(UpdateFunctionCodeRequest updateFunctionCodeRequest)
Updates a Lambda function's code.
|
default UpdateFunctionConfigurationResponse |
updateFunctionConfiguration(Consumer<UpdateFunctionConfigurationRequest.Builder> updateFunctionConfigurationRequest)
Modify the version-specific settings of a Lambda function.
|
default UpdateFunctionConfigurationResponse |
updateFunctionConfiguration(UpdateFunctionConfigurationRequest updateFunctionConfigurationRequest)
Modify the version-specific settings of a Lambda function.
|
default UpdateFunctionEventInvokeConfigResponse |
updateFunctionEventInvokeConfig(Consumer<UpdateFunctionEventInvokeConfigRequest.Builder> updateFunctionEventInvokeConfigRequest)
Updates the configuration for asynchronous invocation for a function, version, or alias.
|
default UpdateFunctionEventInvokeConfigResponse |
updateFunctionEventInvokeConfig(UpdateFunctionEventInvokeConfigRequest updateFunctionEventInvokeConfigRequest)
Updates the configuration for asynchronous invocation for a function, version, or alias.
|
default LambdaWaiter |
waiter()
Create an instance of
LambdaWaiter using this client. |
serviceNameclosestatic final String SERVICE_NAME
static LambdaClient create()
LambdaClient with the region loaded from the
DefaultAwsRegionProviderChain and credentials loaded from the
DefaultCredentialsProvider.static LambdaClientBuilder builder()
LambdaClient.default AddLayerVersionPermissionResponse addLayerVersionPermission(AddLayerVersionPermissionRequest addLayerVersionPermissionRequest) throws ServiceException, ResourceNotFoundException, ResourceConflictException, TooManyRequestsException, InvalidParameterValueException, PolicyLengthExceededException, PreconditionFailedException, AwsServiceException, SdkClientException, LambdaException
Adds permissions to the resource-based policy of a version of an AWS Lambda layer. Use this action to grant layer usage permission to other accounts. You can grant permission to a single account, all AWS accounts, or all accounts in an organization.
To revoke permission, call RemoveLayerVersionPermission with the statement ID that you specified when you added it.
addLayerVersionPermissionRequest - ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource specified in the request does not exist.ResourceConflictException - The resource already exists, or another operation is in progress.TooManyRequestsException - The request throughput limit was exceeded.InvalidParameterValueException - One of the parameters in the request is invalid.PolicyLengthExceededException - The permissions policy for the resource is too large. Learn morePreconditionFailedException - The RevisionId provided does not match the latest RevisionId for the Lambda function or alias. Call the
GetFunction or the GetAlias API to retrieve the latest RevisionId for your
resource.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault AddLayerVersionPermissionResponse addLayerVersionPermission(Consumer<AddLayerVersionPermissionRequest.Builder> addLayerVersionPermissionRequest) throws ServiceException, ResourceNotFoundException, ResourceConflictException, TooManyRequestsException, InvalidParameterValueException, PolicyLengthExceededException, PreconditionFailedException, AwsServiceException, SdkClientException, LambdaException
Adds permissions to the resource-based policy of a version of an AWS Lambda layer. Use this action to grant layer usage permission to other accounts. You can grant permission to a single account, all AWS accounts, or all accounts in an organization.
To revoke permission, call RemoveLayerVersionPermission with the statement ID that you specified when you added it.
This is a convenience which creates an instance of the AddLayerVersionPermissionRequest.Builder avoiding
the need to create one manually via AddLayerVersionPermissionRequest.builder()
addLayerVersionPermissionRequest - A Consumer that will call methods on AddLayerVersionPermissionRequest.Builder to create a
request.ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource specified in the request does not exist.ResourceConflictException - The resource already exists, or another operation is in progress.TooManyRequestsException - The request throughput limit was exceeded.InvalidParameterValueException - One of the parameters in the request is invalid.PolicyLengthExceededException - The permissions policy for the resource is too large. Learn morePreconditionFailedException - The RevisionId provided does not match the latest RevisionId for the Lambda function or alias. Call the
GetFunction or the GetAlias API to retrieve the latest RevisionId for your
resource.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault AddPermissionResponse addPermission(AddPermissionRequest addPermissionRequest) throws ServiceException, ResourceNotFoundException, ResourceConflictException, InvalidParameterValueException, PolicyLengthExceededException, TooManyRequestsException, PreconditionFailedException, AwsServiceException, SdkClientException, LambdaException
Grants an AWS service or another account permission to use a function. You can apply the policy at the function level, or specify a qualifier to restrict access to a single version or alias. If you use a qualifier, the invoker must use the full Amazon Resource Name (ARN) of that version or alias to invoke the function.
To grant permission to another account, specify the account ID as the Principal. For AWS services,
the principal is a domain-style identifier defined by the service, like s3.amazonaws.com or
sns.amazonaws.com. For AWS services, you can also specify the ARN of the associated resource as the
SourceArn. If you grant permission to a service principal without specifying the source, other
accounts could potentially configure resources in their account to invoke your Lambda function.
This action adds a statement to a resource-based permissions policy for the function. For more information about function policies, see Lambda Function Policies.
addPermissionRequest - ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource specified in the request does not exist.ResourceConflictException - The resource already exists, or another operation is in progress.InvalidParameterValueException - One of the parameters in the request is invalid.PolicyLengthExceededException - The permissions policy for the resource is too large. Learn moreTooManyRequestsException - The request throughput limit was exceeded.PreconditionFailedException - The RevisionId provided does not match the latest RevisionId for the Lambda function or alias. Call the
GetFunction or the GetAlias API to retrieve the latest RevisionId for your
resource.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault AddPermissionResponse addPermission(Consumer<AddPermissionRequest.Builder> addPermissionRequest) throws ServiceException, ResourceNotFoundException, ResourceConflictException, InvalidParameterValueException, PolicyLengthExceededException, TooManyRequestsException, PreconditionFailedException, AwsServiceException, SdkClientException, LambdaException
Grants an AWS service or another account permission to use a function. You can apply the policy at the function level, or specify a qualifier to restrict access to a single version or alias. If you use a qualifier, the invoker must use the full Amazon Resource Name (ARN) of that version or alias to invoke the function.
To grant permission to another account, specify the account ID as the Principal. For AWS services,
the principal is a domain-style identifier defined by the service, like s3.amazonaws.com or
sns.amazonaws.com. For AWS services, you can also specify the ARN of the associated resource as the
SourceArn. If you grant permission to a service principal without specifying the source, other
accounts could potentially configure resources in their account to invoke your Lambda function.
This action adds a statement to a resource-based permissions policy for the function. For more information about function policies, see Lambda Function Policies.
This is a convenience which creates an instance of the AddPermissionRequest.Builder avoiding the need to
create one manually via AddPermissionRequest.builder()
addPermissionRequest - A Consumer that will call methods on AddPermissionRequest.Builder to create a request.ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource specified in the request does not exist.ResourceConflictException - The resource already exists, or another operation is in progress.InvalidParameterValueException - One of the parameters in the request is invalid.PolicyLengthExceededException - The permissions policy for the resource is too large. Learn moreTooManyRequestsException - The request throughput limit was exceeded.PreconditionFailedException - The RevisionId provided does not match the latest RevisionId for the Lambda function or alias. Call the
GetFunction or the GetAlias API to retrieve the latest RevisionId for your
resource.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault CreateAliasResponse createAlias(CreateAliasRequest createAliasRequest) throws ServiceException, ResourceNotFoundException, ResourceConflictException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
Creates an alias for a Lambda function version. Use aliases to provide clients with a function identifier that you can update to invoke a different version.
You can also map an alias to split invocation requests between two versions. Use the RoutingConfig
parameter to specify a second version and the percentage of invocation requests that it receives.
createAliasRequest - ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource specified in the request does not exist.ResourceConflictException - The resource already exists, or another operation is in progress.InvalidParameterValueException - One of the parameters in the request is invalid.TooManyRequestsException - The request throughput limit was exceeded.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault CreateAliasResponse createAlias(Consumer<CreateAliasRequest.Builder> createAliasRequest) throws ServiceException, ResourceNotFoundException, ResourceConflictException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
Creates an alias for a Lambda function version. Use aliases to provide clients with a function identifier that you can update to invoke a different version.
You can also map an alias to split invocation requests between two versions. Use the RoutingConfig
parameter to specify a second version and the percentage of invocation requests that it receives.
This is a convenience which creates an instance of the CreateAliasRequest.Builder avoiding the need to
create one manually via CreateAliasRequest.builder()
createAliasRequest - A Consumer that will call methods on CreateAliasRequest.Builder to create a request.ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource specified in the request does not exist.ResourceConflictException - The resource already exists, or another operation is in progress.InvalidParameterValueException - One of the parameters in the request is invalid.TooManyRequestsException - The request throughput limit was exceeded.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault CreateEventSourceMappingResponse createEventSourceMapping(CreateEventSourceMappingRequest createEventSourceMappingRequest) throws ServiceException, InvalidParameterValueException, ResourceConflictException, TooManyRequestsException, ResourceNotFoundException, AwsServiceException, SdkClientException, LambdaException
Creates a mapping between an event source and an AWS Lambda function. Lambda reads items from the event source and triggers the function.
For details about each event source type, see the following topics.
The following error handling options are only available for stream sources (DynamoDB and Kinesis):
BisectBatchOnFunctionError - If the function returns an error, split the batch in two and retry.
DestinationConfig - Send discarded records to an Amazon SQS queue or Amazon SNS topic.
MaximumRecordAgeInSeconds - Discard records older than the specified age. Default -1 (infinite).
Minimum 60. Maximum 604800.
MaximumRetryAttempts - Discard records after the specified number of retries. Default -1 (infinite).
Minimum 0. Maximum 10000. When infinite, failed records will be retried until the record expires.
ParallelizationFactor - Process multiple batches from each shard concurrently.
createEventSourceMappingRequest - ServiceException - The AWS Lambda service encountered an internal error.InvalidParameterValueException - One of the parameters in the request is invalid.ResourceConflictException - The resource already exists, or another operation is in progress.TooManyRequestsException - The request throughput limit was exceeded.ResourceNotFoundException - The resource specified in the request does not exist.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault CreateEventSourceMappingResponse createEventSourceMapping(Consumer<CreateEventSourceMappingRequest.Builder> createEventSourceMappingRequest) throws ServiceException, InvalidParameterValueException, ResourceConflictException, TooManyRequestsException, ResourceNotFoundException, AwsServiceException, SdkClientException, LambdaException
Creates a mapping between an event source and an AWS Lambda function. Lambda reads items from the event source and triggers the function.
For details about each event source type, see the following topics.
The following error handling options are only available for stream sources (DynamoDB and Kinesis):
BisectBatchOnFunctionError - If the function returns an error, split the batch in two and retry.
DestinationConfig - Send discarded records to an Amazon SQS queue or Amazon SNS topic.
MaximumRecordAgeInSeconds - Discard records older than the specified age. Default -1 (infinite).
Minimum 60. Maximum 604800.
MaximumRetryAttempts - Discard records after the specified number of retries. Default -1 (infinite).
Minimum 0. Maximum 10000. When infinite, failed records will be retried until the record expires.
ParallelizationFactor - Process multiple batches from each shard concurrently.
This is a convenience which creates an instance of the CreateEventSourceMappingRequest.Builder avoiding
the need to create one manually via CreateEventSourceMappingRequest.builder()
createEventSourceMappingRequest - A Consumer that will call methods on CreateEventSourceMappingRequest.Builder to create a
request.ServiceException - The AWS Lambda service encountered an internal error.InvalidParameterValueException - One of the parameters in the request is invalid.ResourceConflictException - The resource already exists, or another operation is in progress.TooManyRequestsException - The request throughput limit was exceeded.ResourceNotFoundException - The resource specified in the request does not exist.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault CreateFunctionResponse createFunction(CreateFunctionRequest createFunctionRequest) throws ServiceException, InvalidParameterValueException, ResourceNotFoundException, ResourceConflictException, TooManyRequestsException, CodeStorageExceededException, AwsServiceException, SdkClientException, LambdaException
Creates a Lambda function. To create a function, you need a deployment package and an execution role. The deployment package contains your function code. The execution role grants the function permission to use AWS services, such as Amazon CloudWatch Logs for log streaming and AWS X-Ray for request tracing.
When you create a function, Lambda provisions an instance of the function and its supporting resources. If your
function connects to a VPC, this process can take a minute or so. During this time, you can't invoke or modify
the function. The State, StateReason, and StateReasonCode fields in the
response from GetFunctionConfiguration indicate when the function is ready to invoke. For more
information, see Function
States.
A function has an unpublished version, and can have published versions and aliases. The unpublished version
changes when you update your function's code and configuration. A published version is a snapshot of your
function code and configuration that can't be changed. An alias is a named resource that maps to a version, and
can be changed to map to a different version. Use the Publish parameter to create version
1 of your function from its initial configuration.
The other parameters let you configure version-specific and function-level settings. You can modify version-specific settings later with UpdateFunctionConfiguration. Function-level settings apply to both the unpublished and published versions of the function, and include tags (TagResource) and per-function concurrency limits (PutFunctionConcurrency).
If another account or an AWS service invokes your function, use AddPermission to grant permission by creating a resource-based IAM policy. You can grant permissions at the function level, on a version, or on an alias.
To invoke your function directly, use Invoke. To invoke your function in response to events in other AWS services, create an event source mapping (CreateEventSourceMapping), or configure a function trigger in the other service. For more information, see Invoking Functions.
createFunctionRequest - ServiceException - The AWS Lambda service encountered an internal error.InvalidParameterValueException - One of the parameters in the request is invalid.ResourceNotFoundException - The resource specified in the request does not exist.ResourceConflictException - The resource already exists, or another operation is in progress.TooManyRequestsException - The request throughput limit was exceeded.CodeStorageExceededException - You have exceeded your maximum total code size per account. Learn moreSdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault CreateFunctionResponse createFunction(Consumer<CreateFunctionRequest.Builder> createFunctionRequest) throws ServiceException, InvalidParameterValueException, ResourceNotFoundException, ResourceConflictException, TooManyRequestsException, CodeStorageExceededException, AwsServiceException, SdkClientException, LambdaException
Creates a Lambda function. To create a function, you need a deployment package and an execution role. The deployment package contains your function code. The execution role grants the function permission to use AWS services, such as Amazon CloudWatch Logs for log streaming and AWS X-Ray for request tracing.
When you create a function, Lambda provisions an instance of the function and its supporting resources. If your
function connects to a VPC, this process can take a minute or so. During this time, you can't invoke or modify
the function. The State, StateReason, and StateReasonCode fields in the
response from GetFunctionConfiguration indicate when the function is ready to invoke. For more
information, see Function
States.
A function has an unpublished version, and can have published versions and aliases. The unpublished version
changes when you update your function's code and configuration. A published version is a snapshot of your
function code and configuration that can't be changed. An alias is a named resource that maps to a version, and
can be changed to map to a different version. Use the Publish parameter to create version
1 of your function from its initial configuration.
The other parameters let you configure version-specific and function-level settings. You can modify version-specific settings later with UpdateFunctionConfiguration. Function-level settings apply to both the unpublished and published versions of the function, and include tags (TagResource) and per-function concurrency limits (PutFunctionConcurrency).
If another account or an AWS service invokes your function, use AddPermission to grant permission by creating a resource-based IAM policy. You can grant permissions at the function level, on a version, or on an alias.
To invoke your function directly, use Invoke. To invoke your function in response to events in other AWS services, create an event source mapping (CreateEventSourceMapping), or configure a function trigger in the other service. For more information, see Invoking Functions.
This is a convenience which creates an instance of the CreateFunctionRequest.Builder avoiding the need to
create one manually via CreateFunctionRequest.builder()
createFunctionRequest - A Consumer that will call methods on CreateFunctionRequest.Builder to create a request.ServiceException - The AWS Lambda service encountered an internal error.InvalidParameterValueException - One of the parameters in the request is invalid.ResourceNotFoundException - The resource specified in the request does not exist.ResourceConflictException - The resource already exists, or another operation is in progress.TooManyRequestsException - The request throughput limit was exceeded.CodeStorageExceededException - You have exceeded your maximum total code size per account. Learn moreSdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DeleteAliasResponse deleteAlias(DeleteAliasRequest deleteAliasRequest) throws ServiceException, InvalidParameterValueException, ResourceConflictException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
Deletes a Lambda function alias.
deleteAliasRequest - ServiceException - The AWS Lambda service encountered an internal error.InvalidParameterValueException - One of the parameters in the request is invalid.ResourceConflictException - The resource already exists, or another operation is in progress.TooManyRequestsException - The request throughput limit was exceeded.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DeleteAliasResponse deleteAlias(Consumer<DeleteAliasRequest.Builder> deleteAliasRequest) throws ServiceException, InvalidParameterValueException, ResourceConflictException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
Deletes a Lambda function alias.
This is a convenience which creates an instance of the DeleteAliasRequest.Builder avoiding the need to
create one manually via DeleteAliasRequest.builder()
deleteAliasRequest - A Consumer that will call methods on DeleteAliasRequest.Builder to create a request.ServiceException - The AWS Lambda service encountered an internal error.InvalidParameterValueException - One of the parameters in the request is invalid.ResourceConflictException - The resource already exists, or another operation is in progress.TooManyRequestsException - The request throughput limit was exceeded.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DeleteEventSourceMappingResponse deleteEventSourceMapping(DeleteEventSourceMappingRequest deleteEventSourceMappingRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, ResourceInUseException, AwsServiceException, SdkClientException, LambdaException
Deletes an event source mapping. You can get the identifier of a mapping from the output of ListEventSourceMappings.
When you delete an event source mapping, it enters a Deleting state and might not be completely
deleted for several seconds.
deleteEventSourceMappingRequest - ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource specified in the request does not exist.InvalidParameterValueException - One of the parameters in the request is invalid.TooManyRequestsException - The request throughput limit was exceeded.ResourceInUseException - The operation conflicts with the resource's availability. For example, you attempted to update an
EventSource Mapping in CREATING, or tried to delete a EventSource mapping currently in the UPDATING
state.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DeleteEventSourceMappingResponse deleteEventSourceMapping(Consumer<DeleteEventSourceMappingRequest.Builder> deleteEventSourceMappingRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, ResourceInUseException, AwsServiceException, SdkClientException, LambdaException
Deletes an event source mapping. You can get the identifier of a mapping from the output of ListEventSourceMappings.
When you delete an event source mapping, it enters a Deleting state and might not be completely
deleted for several seconds.
This is a convenience which creates an instance of the DeleteEventSourceMappingRequest.Builder avoiding
the need to create one manually via DeleteEventSourceMappingRequest.builder()
deleteEventSourceMappingRequest - A Consumer that will call methods on DeleteEventSourceMappingRequest.Builder to create a
request.ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource specified in the request does not exist.InvalidParameterValueException - One of the parameters in the request is invalid.TooManyRequestsException - The request throughput limit was exceeded.ResourceInUseException - The operation conflicts with the resource's availability. For example, you attempted to update an
EventSource Mapping in CREATING, or tried to delete a EventSource mapping currently in the UPDATING
state.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DeleteFunctionResponse deleteFunction(DeleteFunctionRequest deleteFunctionRequest) throws ServiceException, ResourceNotFoundException, TooManyRequestsException, InvalidParameterValueException, ResourceConflictException, AwsServiceException, SdkClientException, LambdaException
Deletes a Lambda function. To delete a specific function version, use the Qualifier parameter.
Otherwise, all versions and aliases are deleted.
To delete Lambda event source mappings that invoke a function, use DeleteEventSourceMapping. For AWS services and resources that invoke your function directly, delete the trigger in the service where you originally configured it.
deleteFunctionRequest - ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource specified in the request does not exist.TooManyRequestsException - The request throughput limit was exceeded.InvalidParameterValueException - One of the parameters in the request is invalid.ResourceConflictException - The resource already exists, or another operation is in progress.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DeleteFunctionResponse deleteFunction(Consumer<DeleteFunctionRequest.Builder> deleteFunctionRequest) throws ServiceException, ResourceNotFoundException, TooManyRequestsException, InvalidParameterValueException, ResourceConflictException, AwsServiceException, SdkClientException, LambdaException
Deletes a Lambda function. To delete a specific function version, use the Qualifier parameter.
Otherwise, all versions and aliases are deleted.
To delete Lambda event source mappings that invoke a function, use DeleteEventSourceMapping. For AWS services and resources that invoke your function directly, delete the trigger in the service where you originally configured it.
This is a convenience which creates an instance of the DeleteFunctionRequest.Builder avoiding the need to
create one manually via DeleteFunctionRequest.builder()
deleteFunctionRequest - A Consumer that will call methods on DeleteFunctionRequest.Builder to create a request.ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource specified in the request does not exist.TooManyRequestsException - The request throughput limit was exceeded.InvalidParameterValueException - One of the parameters in the request is invalid.ResourceConflictException - The resource already exists, or another operation is in progress.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DeleteFunctionConcurrencyResponse deleteFunctionConcurrency(DeleteFunctionConcurrencyRequest deleteFunctionConcurrencyRequest) throws ServiceException, ResourceNotFoundException, TooManyRequestsException, InvalidParameterValueException, ResourceConflictException, AwsServiceException, SdkClientException, LambdaException
Removes a concurrent execution limit from a function.
deleteFunctionConcurrencyRequest - ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource specified in the request does not exist.TooManyRequestsException - The request throughput limit was exceeded.InvalidParameterValueException - One of the parameters in the request is invalid.ResourceConflictException - The resource already exists, or another operation is in progress.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DeleteFunctionConcurrencyResponse deleteFunctionConcurrency(Consumer<DeleteFunctionConcurrencyRequest.Builder> deleteFunctionConcurrencyRequest) throws ServiceException, ResourceNotFoundException, TooManyRequestsException, InvalidParameterValueException, ResourceConflictException, AwsServiceException, SdkClientException, LambdaException
Removes a concurrent execution limit from a function.
This is a convenience which creates an instance of the DeleteFunctionConcurrencyRequest.Builder avoiding
the need to create one manually via DeleteFunctionConcurrencyRequest.builder()
deleteFunctionConcurrencyRequest - A Consumer that will call methods on DeleteFunctionConcurrencyRequest.Builder to create a
request.ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource specified in the request does not exist.TooManyRequestsException - The request throughput limit was exceeded.InvalidParameterValueException - One of the parameters in the request is invalid.ResourceConflictException - The resource already exists, or another operation is in progress.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DeleteFunctionEventInvokeConfigResponse deleteFunctionEventInvokeConfig(DeleteFunctionEventInvokeConfigRequest deleteFunctionEventInvokeConfigRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
Deletes the configuration for asynchronous invocation for a function, version, or alias.
To configure options for asynchronous invocation, use PutFunctionEventInvokeConfig.
deleteFunctionEventInvokeConfigRequest - ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource specified in the request does not exist.InvalidParameterValueException - One of the parameters in the request is invalid.TooManyRequestsException - The request throughput limit was exceeded.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DeleteFunctionEventInvokeConfigResponse deleteFunctionEventInvokeConfig(Consumer<DeleteFunctionEventInvokeConfigRequest.Builder> deleteFunctionEventInvokeConfigRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
Deletes the configuration for asynchronous invocation for a function, version, or alias.
To configure options for asynchronous invocation, use PutFunctionEventInvokeConfig.
This is a convenience which creates an instance of the DeleteFunctionEventInvokeConfigRequest.Builder
avoiding the need to create one manually via DeleteFunctionEventInvokeConfigRequest.builder()
deleteFunctionEventInvokeConfigRequest - A Consumer that will call methods on DeleteFunctionEventInvokeConfigRequest.Builder to
create a request.ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource specified in the request does not exist.InvalidParameterValueException - One of the parameters in the request is invalid.TooManyRequestsException - The request throughput limit was exceeded.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DeleteLayerVersionResponse deleteLayerVersion(DeleteLayerVersionRequest deleteLayerVersionRequest) throws ServiceException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
Deletes a version of an AWS Lambda layer. Deleted versions can no longer be viewed or added to functions. To avoid breaking functions, a copy of the version remains in Lambda until no functions refer to it.
deleteLayerVersionRequest - ServiceException - The AWS Lambda service encountered an internal error.TooManyRequestsException - The request throughput limit was exceeded.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DeleteLayerVersionResponse deleteLayerVersion(Consumer<DeleteLayerVersionRequest.Builder> deleteLayerVersionRequest) throws ServiceException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
Deletes a version of an AWS Lambda layer. Deleted versions can no longer be viewed or added to functions. To avoid breaking functions, a copy of the version remains in Lambda until no functions refer to it.
This is a convenience which creates an instance of the DeleteLayerVersionRequest.Builder avoiding the
need to create one manually via DeleteLayerVersionRequest.builder()
deleteLayerVersionRequest - A Consumer that will call methods on DeleteLayerVersionRequest.Builder to create a
request.ServiceException - The AWS Lambda service encountered an internal error.TooManyRequestsException - The request throughput limit was exceeded.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DeleteProvisionedConcurrencyConfigResponse deleteProvisionedConcurrencyConfig(DeleteProvisionedConcurrencyConfigRequest deleteProvisionedConcurrencyConfigRequest) throws InvalidParameterValueException, ResourceConflictException, ResourceNotFoundException, TooManyRequestsException, ServiceException, AwsServiceException, SdkClientException, LambdaException
Deletes the provisioned concurrency configuration for a function.
deleteProvisionedConcurrencyConfigRequest - InvalidParameterValueException - One of the parameters in the request is invalid.ResourceConflictException - The resource already exists, or another operation is in progress.ResourceNotFoundException - The resource specified in the request does not exist.TooManyRequestsException - The request throughput limit was exceeded.ServiceException - The AWS Lambda service encountered an internal error.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DeleteProvisionedConcurrencyConfigResponse deleteProvisionedConcurrencyConfig(Consumer<DeleteProvisionedConcurrencyConfigRequest.Builder> deleteProvisionedConcurrencyConfigRequest) throws InvalidParameterValueException, ResourceConflictException, ResourceNotFoundException, TooManyRequestsException, ServiceException, AwsServiceException, SdkClientException, LambdaException
Deletes the provisioned concurrency configuration for a function.
This is a convenience which creates an instance of the DeleteProvisionedConcurrencyConfigRequest.Builder
avoiding the need to create one manually via DeleteProvisionedConcurrencyConfigRequest.builder()
deleteProvisionedConcurrencyConfigRequest - A Consumer that will call methods on DeleteProvisionedConcurrencyConfigRequest.Builder to
create a request.InvalidParameterValueException - One of the parameters in the request is invalid.ResourceConflictException - The resource already exists, or another operation is in progress.ResourceNotFoundException - The resource specified in the request does not exist.TooManyRequestsException - The request throughput limit was exceeded.ServiceException - The AWS Lambda service encountered an internal error.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetAccountSettingsResponse getAccountSettings() throws TooManyRequestsException, ServiceException, AwsServiceException, SdkClientException, LambdaException
Retrieves details about your account's limits and usage in an AWS Region.
TooManyRequestsException - The request throughput limit was exceeded.ServiceException - The AWS Lambda service encountered an internal error.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiongetAccountSettings(GetAccountSettingsRequest),
AWS API
Documentationdefault GetAccountSettingsResponse getAccountSettings(GetAccountSettingsRequest getAccountSettingsRequest) throws TooManyRequestsException, ServiceException, AwsServiceException, SdkClientException, LambdaException
Retrieves details about your account's limits and usage in an AWS Region.
getAccountSettingsRequest - TooManyRequestsException - The request throughput limit was exceeded.ServiceException - The AWS Lambda service encountered an internal error.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetAccountSettingsResponse getAccountSettings(Consumer<GetAccountSettingsRequest.Builder> getAccountSettingsRequest) throws TooManyRequestsException, ServiceException, AwsServiceException, SdkClientException, LambdaException
Retrieves details about your account's limits and usage in an AWS Region.
This is a convenience which creates an instance of the GetAccountSettingsRequest.Builder avoiding the
need to create one manually via GetAccountSettingsRequest.builder()
getAccountSettingsRequest - A Consumer that will call methods on GetAccountSettingsRequest.Builder to create a
request.TooManyRequestsException - The request throughput limit was exceeded.ServiceException - The AWS Lambda service encountered an internal error.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetAliasResponse getAlias(GetAliasRequest getAliasRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
Returns details about a Lambda function alias.
getAliasRequest - ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource specified in the request does not exist.InvalidParameterValueException - One of the parameters in the request is invalid.TooManyRequestsException - The request throughput limit was exceeded.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetAliasResponse getAlias(Consumer<GetAliasRequest.Builder> getAliasRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
Returns details about a Lambda function alias.
This is a convenience which creates an instance of the GetAliasRequest.Builder avoiding the need to
create one manually via GetAliasRequest.builder()
getAliasRequest - A Consumer that will call methods on GetAliasRequest.Builder to create a request.ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource specified in the request does not exist.InvalidParameterValueException - One of the parameters in the request is invalid.TooManyRequestsException - The request throughput limit was exceeded.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetEventSourceMappingResponse getEventSourceMapping(GetEventSourceMappingRequest getEventSourceMappingRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
Returns details about an event source mapping. You can get the identifier of a mapping from the output of ListEventSourceMappings.
getEventSourceMappingRequest - ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource specified in the request does not exist.InvalidParameterValueException - One of the parameters in the request is invalid.TooManyRequestsException - The request throughput limit was exceeded.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetEventSourceMappingResponse getEventSourceMapping(Consumer<GetEventSourceMappingRequest.Builder> getEventSourceMappingRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
Returns details about an event source mapping. You can get the identifier of a mapping from the output of ListEventSourceMappings.
This is a convenience which creates an instance of the GetEventSourceMappingRequest.Builder avoiding the
need to create one manually via GetEventSourceMappingRequest.builder()
getEventSourceMappingRequest - A Consumer that will call methods on GetEventSourceMappingRequest.Builder to create a
request.ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource specified in the request does not exist.InvalidParameterValueException - One of the parameters in the request is invalid.TooManyRequestsException - The request throughput limit was exceeded.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetFunctionResponse getFunction(GetFunctionRequest getFunctionRequest) throws ServiceException, ResourceNotFoundException, TooManyRequestsException, InvalidParameterValueException, AwsServiceException, SdkClientException, LambdaException
Returns information about the function or function version, with a link to download the deployment package that's valid for 10 minutes. If you specify a function version, only details that are specific to that version are returned.
getFunctionRequest - ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource specified in the request does not exist.TooManyRequestsException - The request throughput limit was exceeded.InvalidParameterValueException - One of the parameters in the request is invalid.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetFunctionResponse getFunction(Consumer<GetFunctionRequest.Builder> getFunctionRequest) throws ServiceException, ResourceNotFoundException, TooManyRequestsException, InvalidParameterValueException, AwsServiceException, SdkClientException, LambdaException
Returns information about the function or function version, with a link to download the deployment package that's valid for 10 minutes. If you specify a function version, only details that are specific to that version are returned.
This is a convenience which creates an instance of the GetFunctionRequest.Builder avoiding the need to
create one manually via GetFunctionRequest.builder()
getFunctionRequest - A Consumer that will call methods on GetFunctionRequest.Builder to create a request.ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource specified in the request does not exist.TooManyRequestsException - The request throughput limit was exceeded.InvalidParameterValueException - One of the parameters in the request is invalid.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetFunctionConcurrencyResponse getFunctionConcurrency(GetFunctionConcurrencyRequest getFunctionConcurrencyRequest) throws InvalidParameterValueException, ResourceNotFoundException, TooManyRequestsException, ServiceException, AwsServiceException, SdkClientException, LambdaException
Returns details about the reserved concurrency configuration for a function. To set a concurrency limit for a function, use PutFunctionConcurrency.
getFunctionConcurrencyRequest - InvalidParameterValueException - One of the parameters in the request is invalid.ResourceNotFoundException - The resource specified in the request does not exist.TooManyRequestsException - The request throughput limit was exceeded.ServiceException - The AWS Lambda service encountered an internal error.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetFunctionConcurrencyResponse getFunctionConcurrency(Consumer<GetFunctionConcurrencyRequest.Builder> getFunctionConcurrencyRequest) throws InvalidParameterValueException, ResourceNotFoundException, TooManyRequestsException, ServiceException, AwsServiceException, SdkClientException, LambdaException
Returns details about the reserved concurrency configuration for a function. To set a concurrency limit for a function, use PutFunctionConcurrency.
This is a convenience which creates an instance of the GetFunctionConcurrencyRequest.Builder avoiding the
need to create one manually via GetFunctionConcurrencyRequest.builder()
getFunctionConcurrencyRequest - A Consumer that will call methods on GetFunctionConcurrencyRequest.Builder to create a
request.InvalidParameterValueException - One of the parameters in the request is invalid.ResourceNotFoundException - The resource specified in the request does not exist.TooManyRequestsException - The request throughput limit was exceeded.ServiceException - The AWS Lambda service encountered an internal error.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetFunctionConfigurationResponse getFunctionConfiguration(GetFunctionConfigurationRequest getFunctionConfigurationRequest) throws ServiceException, ResourceNotFoundException, TooManyRequestsException, InvalidParameterValueException, AwsServiceException, SdkClientException, LambdaException
Returns the version-specific settings of a Lambda function or version. The output includes only options that can vary between versions of a function. To modify these settings, use UpdateFunctionConfiguration.
To get all of a function's details, including function-level settings, use GetFunction.
getFunctionConfigurationRequest - ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource specified in the request does not exist.TooManyRequestsException - The request throughput limit was exceeded.InvalidParameterValueException - One of the parameters in the request is invalid.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetFunctionConfigurationResponse getFunctionConfiguration(Consumer<GetFunctionConfigurationRequest.Builder> getFunctionConfigurationRequest) throws ServiceException, ResourceNotFoundException, TooManyRequestsException, InvalidParameterValueException, AwsServiceException, SdkClientException, LambdaException
Returns the version-specific settings of a Lambda function or version. The output includes only options that can vary between versions of a function. To modify these settings, use UpdateFunctionConfiguration.
To get all of a function's details, including function-level settings, use GetFunction.
This is a convenience which creates an instance of the GetFunctionConfigurationRequest.Builder avoiding
the need to create one manually via GetFunctionConfigurationRequest.builder()
getFunctionConfigurationRequest - A Consumer that will call methods on GetFunctionConfigurationRequest.Builder to create a
request.ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource specified in the request does not exist.TooManyRequestsException - The request throughput limit was exceeded.InvalidParameterValueException - One of the parameters in the request is invalid.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetFunctionEventInvokeConfigResponse getFunctionEventInvokeConfig(GetFunctionEventInvokeConfigRequest getFunctionEventInvokeConfigRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
Retrieves the configuration for asynchronous invocation for a function, version, or alias.
To configure options for asynchronous invocation, use PutFunctionEventInvokeConfig.
getFunctionEventInvokeConfigRequest - ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource specified in the request does not exist.InvalidParameterValueException - One of the parameters in the request is invalid.TooManyRequestsException - The request throughput limit was exceeded.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetFunctionEventInvokeConfigResponse getFunctionEventInvokeConfig(Consumer<GetFunctionEventInvokeConfigRequest.Builder> getFunctionEventInvokeConfigRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
Retrieves the configuration for asynchronous invocation for a function, version, or alias.
To configure options for asynchronous invocation, use PutFunctionEventInvokeConfig.
This is a convenience which creates an instance of the GetFunctionEventInvokeConfigRequest.Builder
avoiding the need to create one manually via GetFunctionEventInvokeConfigRequest.builder()
getFunctionEventInvokeConfigRequest - A Consumer that will call methods on GetFunctionEventInvokeConfigRequest.Builder to create
a request.ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource specified in the request does not exist.InvalidParameterValueException - One of the parameters in the request is invalid.TooManyRequestsException - The request throughput limit was exceeded.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetLayerVersionResponse getLayerVersion(GetLayerVersionRequest getLayerVersionRequest) throws ServiceException, InvalidParameterValueException, TooManyRequestsException, ResourceNotFoundException, AwsServiceException, SdkClientException, LambdaException
Returns information about a version of an AWS Lambda layer, with a link to download the layer archive that's valid for 10 minutes.
getLayerVersionRequest - ServiceException - The AWS Lambda service encountered an internal error.InvalidParameterValueException - One of the parameters in the request is invalid.TooManyRequestsException - The request throughput limit was exceeded.ResourceNotFoundException - The resource specified in the request does not exist.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetLayerVersionResponse getLayerVersion(Consumer<GetLayerVersionRequest.Builder> getLayerVersionRequest) throws ServiceException, InvalidParameterValueException, TooManyRequestsException, ResourceNotFoundException, AwsServiceException, SdkClientException, LambdaException
Returns information about a version of an AWS Lambda layer, with a link to download the layer archive that's valid for 10 minutes.
This is a convenience which creates an instance of the GetLayerVersionRequest.Builder avoiding the need
to create one manually via GetLayerVersionRequest.builder()
getLayerVersionRequest - A Consumer that will call methods on GetLayerVersionRequest.Builder to create a request.ServiceException - The AWS Lambda service encountered an internal error.InvalidParameterValueException - One of the parameters in the request is invalid.TooManyRequestsException - The request throughput limit was exceeded.ResourceNotFoundException - The resource specified in the request does not exist.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetLayerVersionByArnResponse getLayerVersionByArn(GetLayerVersionByArnRequest getLayerVersionByArnRequest) throws ServiceException, InvalidParameterValueException, TooManyRequestsException, ResourceNotFoundException, AwsServiceException, SdkClientException, LambdaException
Returns information about a version of an AWS Lambda layer, with a link to download the layer archive that's valid for 10 minutes.
getLayerVersionByArnRequest - ServiceException - The AWS Lambda service encountered an internal error.InvalidParameterValueException - One of the parameters in the request is invalid.TooManyRequestsException - The request throughput limit was exceeded.ResourceNotFoundException - The resource specified in the request does not exist.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetLayerVersionByArnResponse getLayerVersionByArn(Consumer<GetLayerVersionByArnRequest.Builder> getLayerVersionByArnRequest) throws ServiceException, InvalidParameterValueException, TooManyRequestsException, ResourceNotFoundException, AwsServiceException, SdkClientException, LambdaException
Returns information about a version of an AWS Lambda layer, with a link to download the layer archive that's valid for 10 minutes.
This is a convenience which creates an instance of the GetLayerVersionByArnRequest.Builder avoiding the
need to create one manually via GetLayerVersionByArnRequest.builder()
getLayerVersionByArnRequest - A Consumer that will call methods on GetLayerVersionByArnRequest.Builder to create a
request.ServiceException - The AWS Lambda service encountered an internal error.InvalidParameterValueException - One of the parameters in the request is invalid.TooManyRequestsException - The request throughput limit was exceeded.ResourceNotFoundException - The resource specified in the request does not exist.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetLayerVersionPolicyResponse getLayerVersionPolicy(GetLayerVersionPolicyRequest getLayerVersionPolicyRequest) throws ServiceException, ResourceNotFoundException, TooManyRequestsException, InvalidParameterValueException, AwsServiceException, SdkClientException, LambdaException
Returns the permission policy for a version of an AWS Lambda layer. For more information, see AddLayerVersionPermission.
getLayerVersionPolicyRequest - ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource specified in the request does not exist.TooManyRequestsException - The request throughput limit was exceeded.InvalidParameterValueException - One of the parameters in the request is invalid.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetLayerVersionPolicyResponse getLayerVersionPolicy(Consumer<GetLayerVersionPolicyRequest.Builder> getLayerVersionPolicyRequest) throws ServiceException, ResourceNotFoundException, TooManyRequestsException, InvalidParameterValueException, AwsServiceException, SdkClientException, LambdaException
Returns the permission policy for a version of an AWS Lambda layer. For more information, see AddLayerVersionPermission.
This is a convenience which creates an instance of the GetLayerVersionPolicyRequest.Builder avoiding the
need to create one manually via GetLayerVersionPolicyRequest.builder()
getLayerVersionPolicyRequest - A Consumer that will call methods on GetLayerVersionPolicyRequest.Builder to create a
request.ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource specified in the request does not exist.TooManyRequestsException - The request throughput limit was exceeded.InvalidParameterValueException - One of the parameters in the request is invalid.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetPolicyResponse getPolicy(GetPolicyRequest getPolicyRequest) throws ServiceException, ResourceNotFoundException, TooManyRequestsException, InvalidParameterValueException, AwsServiceException, SdkClientException, LambdaException
Returns the resource-based IAM policy for a function, version, or alias.
getPolicyRequest - ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource specified in the request does not exist.TooManyRequestsException - The request throughput limit was exceeded.InvalidParameterValueException - One of the parameters in the request is invalid.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetPolicyResponse getPolicy(Consumer<GetPolicyRequest.Builder> getPolicyRequest) throws ServiceException, ResourceNotFoundException, TooManyRequestsException, InvalidParameterValueException, AwsServiceException, SdkClientException, LambdaException
Returns the resource-based IAM policy for a function, version, or alias.
This is a convenience which creates an instance of the GetPolicyRequest.Builder avoiding the need to
create one manually via GetPolicyRequest.builder()
getPolicyRequest - A Consumer that will call methods on GetPolicyRequest.Builder to create a request.ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource specified in the request does not exist.TooManyRequestsException - The request throughput limit was exceeded.InvalidParameterValueException - One of the parameters in the request is invalid.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetProvisionedConcurrencyConfigResponse getProvisionedConcurrencyConfig(GetProvisionedConcurrencyConfigRequest getProvisionedConcurrencyConfigRequest) throws InvalidParameterValueException, ResourceNotFoundException, TooManyRequestsException, ServiceException, ProvisionedConcurrencyConfigNotFoundException, AwsServiceException, SdkClientException, LambdaException
Retrieves the provisioned concurrency configuration for a function's alias or version.
getProvisionedConcurrencyConfigRequest - InvalidParameterValueException - One of the parameters in the request is invalid.ResourceNotFoundException - The resource specified in the request does not exist.TooManyRequestsException - The request throughput limit was exceeded.ServiceException - The AWS Lambda service encountered an internal error.ProvisionedConcurrencyConfigNotFoundException - The specified configuration does not exist.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetProvisionedConcurrencyConfigResponse getProvisionedConcurrencyConfig(Consumer<GetProvisionedConcurrencyConfigRequest.Builder> getProvisionedConcurrencyConfigRequest) throws InvalidParameterValueException, ResourceNotFoundException, TooManyRequestsException, ServiceException, ProvisionedConcurrencyConfigNotFoundException, AwsServiceException, SdkClientException, LambdaException
Retrieves the provisioned concurrency configuration for a function's alias or version.
This is a convenience which creates an instance of the GetProvisionedConcurrencyConfigRequest.Builder
avoiding the need to create one manually via GetProvisionedConcurrencyConfigRequest.builder()
getProvisionedConcurrencyConfigRequest - A Consumer that will call methods on GetProvisionedConcurrencyConfigRequest.Builder to
create a request.InvalidParameterValueException - One of the parameters in the request is invalid.ResourceNotFoundException - The resource specified in the request does not exist.TooManyRequestsException - The request throughput limit was exceeded.ServiceException - The AWS Lambda service encountered an internal error.ProvisionedConcurrencyConfigNotFoundException - The specified configuration does not exist.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault InvokeResponse invoke(InvokeRequest invokeRequest) throws ServiceException, ResourceNotFoundException, InvalidRequestContentException, RequestTooLargeException, UnsupportedMediaTypeException, TooManyRequestsException, InvalidParameterValueException, Ec2UnexpectedException, SubnetIpAddressLimitReachedException, EniLimitReachedException, EfsMountConnectivityException, EfsMountFailureException, EfsMountTimeoutException, EfsioException, Ec2ThrottledException, Ec2AccessDeniedException, InvalidSubnetIdException, InvalidSecurityGroupIdException, InvalidZipFileException, KmsDisabledException, KmsInvalidStateException, KmsAccessDeniedException, KmsNotFoundException, InvalidRuntimeException, ResourceConflictException, ResourceNotReadyException, AwsServiceException, SdkClientException, LambdaException
Invokes a Lambda function. You can invoke a function synchronously (and wait for the response), or
asynchronously. To invoke a function asynchronously, set InvocationType to Event.
For synchronous invocation, details about the function response, including errors, are included in the response body and headers. For either invocation type, you can find more information in the execution log and trace.
When an error occurs, your function may be invoked multiple times. Retry behavior varies by error type, client, event source, and invocation type. For example, if you invoke a function asynchronously and it returns an error, Lambda executes the function up to two more times. For more information, see Retry Behavior.
For asynchronous invocation, Lambda adds events to a queue before sending them to your function. If your function does not have enough capacity to keep up with the queue, events may be lost. Occasionally, your function may receive the same event multiple times, even if no error occurs. To retain events that were not processed, configure your function with a dead-letter queue.
The status code in the API response doesn't reflect function errors. Error codes are reserved for errors that
prevent your function from executing, such as permissions errors, limit errors, or issues with your function's
code and configuration. For example, Lambda returns TooManyRequestsException if executing the
function would cause you to exceed a concurrency limit at either the account level (
ConcurrentInvocationLimitExceeded) or function level (
ReservedFunctionConcurrentInvocationLimitExceeded).
For functions with a long timeout, your client might be disconnected during synchronous invocation while it waits for a response. Configure your HTTP client, SDK, firewall, proxy, or operating system to allow for long connections with timeout or keep-alive settings.
This operation requires permission for the lambda:InvokeFunction action.
invokeRequest - ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource specified in the request does not exist.InvalidRequestContentException - The request body could not be parsed as JSON.RequestTooLargeException - The request payload exceeded the Invoke request body JSON input limit. For more information,
see Limits.UnsupportedMediaTypeException - The content type of the Invoke request body is not JSON.TooManyRequestsException - The request throughput limit was exceeded.InvalidParameterValueException - One of the parameters in the request is invalid.Ec2UnexpectedException - AWS Lambda received an unexpected EC2 client exception while setting up for the Lambda function.SubnetIpAddressLimitReachedException - AWS Lambda was not able to set up VPC access for the Lambda function because one or more configured
subnets has no available IP addresses.EniLimitReachedException - AWS Lambda was not able to create an elastic network interface in the VPC, specified as part of Lambda
function configuration, because the limit for network interfaces has been reached.EfsMountConnectivityException - The function couldn't make a network connection to the configured file system.EfsMountFailureException - The function couldn't mount the configured file system due to a permission or configuration issue.EfsMountTimeoutException - The function was able to make a network connection to the configured file system, but the mount operation
timed out.EfsioException - An error occured when reading from or writing to a connected file system.Ec2ThrottledException - AWS Lambda was throttled by Amazon EC2 during Lambda function initialization using the execution role
provided for the Lambda function.Ec2AccessDeniedException - Need additional permissions to configure VPC settings.InvalidSubnetIdException - The Subnet ID provided in the Lambda function VPC configuration is invalid.InvalidSecurityGroupIdException - The Security Group ID provided in the Lambda function VPC configuration is invalid.InvalidZipFileException - AWS Lambda could not unzip the deployment package.KmsDisabledException - Lambda was unable to decrypt the environment variables because the KMS key used is disabled. Check the
Lambda function's KMS key settings.KmsInvalidStateException - Lambda was unable to decrypt the environment variables because the KMS key used is in an invalid state
for Decrypt. Check the function's KMS key settings.KmsAccessDeniedException - Lambda was unable to decrypt the environment variables because KMS access was denied. Check the Lambda
function's KMS permissions.KmsNotFoundException - Lambda was unable to decrypt the environment variables because the KMS key was not found. Check the
function's KMS key settings.InvalidRuntimeException - The runtime or runtime version specified is not supported.ResourceConflictException - The resource already exists, or another operation is in progress.ResourceNotReadyException - The function is inactive and its VPC connection is no longer available. Wait for the VPC connection to
reestablish and try again.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault InvokeResponse invoke(Consumer<InvokeRequest.Builder> invokeRequest) throws ServiceException, ResourceNotFoundException, InvalidRequestContentException, RequestTooLargeException, UnsupportedMediaTypeException, TooManyRequestsException, InvalidParameterValueException, Ec2UnexpectedException, SubnetIpAddressLimitReachedException, EniLimitReachedException, EfsMountConnectivityException, EfsMountFailureException, EfsMountTimeoutException, EfsioException, Ec2ThrottledException, Ec2AccessDeniedException, InvalidSubnetIdException, InvalidSecurityGroupIdException, InvalidZipFileException, KmsDisabledException, KmsInvalidStateException, KmsAccessDeniedException, KmsNotFoundException, InvalidRuntimeException, ResourceConflictException, ResourceNotReadyException, AwsServiceException, SdkClientException, LambdaException
Invokes a Lambda function. You can invoke a function synchronously (and wait for the response), or
asynchronously. To invoke a function asynchronously, set InvocationType to Event.
For synchronous invocation, details about the function response, including errors, are included in the response body and headers. For either invocation type, you can find more information in the execution log and trace.
When an error occurs, your function may be invoked multiple times. Retry behavior varies by error type, client, event source, and invocation type. For example, if you invoke a function asynchronously and it returns an error, Lambda executes the function up to two more times. For more information, see Retry Behavior.
For asynchronous invocation, Lambda adds events to a queue before sending them to your function. If your function does not have enough capacity to keep up with the queue, events may be lost. Occasionally, your function may receive the same event multiple times, even if no error occurs. To retain events that were not processed, configure your function with a dead-letter queue.
The status code in the API response doesn't reflect function errors. Error codes are reserved for errors that
prevent your function from executing, such as permissions errors, limit errors, or issues with your function's
code and configuration. For example, Lambda returns TooManyRequestsException if executing the
function would cause you to exceed a concurrency limit at either the account level (
ConcurrentInvocationLimitExceeded) or function level (
ReservedFunctionConcurrentInvocationLimitExceeded).
For functions with a long timeout, your client might be disconnected during synchronous invocation while it waits for a response. Configure your HTTP client, SDK, firewall, proxy, or operating system to allow for long connections with timeout or keep-alive settings.
This operation requires permission for the lambda:InvokeFunction action.
This is a convenience which creates an instance of the InvokeRequest.Builder avoiding the need to create
one manually via InvokeRequest.builder()
invokeRequest - A Consumer that will call methods on InvocationRequest.Builder to create a request.ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource specified in the request does not exist.InvalidRequestContentException - The request body could not be parsed as JSON.RequestTooLargeException - The request payload exceeded the Invoke request body JSON input limit. For more information,
see Limits.UnsupportedMediaTypeException - The content type of the Invoke request body is not JSON.TooManyRequestsException - The request throughput limit was exceeded.InvalidParameterValueException - One of the parameters in the request is invalid.Ec2UnexpectedException - AWS Lambda received an unexpected EC2 client exception while setting up for the Lambda function.SubnetIpAddressLimitReachedException - AWS Lambda was not able to set up VPC access for the Lambda function because one or more configured
subnets has no available IP addresses.EniLimitReachedException - AWS Lambda was not able to create an elastic network interface in the VPC, specified as part of Lambda
function configuration, because the limit for network interfaces has been reached.EfsMountConnectivityException - The function couldn't make a network connection to the configured file system.EfsMountFailureException - The function couldn't mount the configured file system due to a permission or configuration issue.EfsMountTimeoutException - The function was able to make a network connection to the configured file system, but the mount operation
timed out.EfsioException - An error occured when reading from or writing to a connected file system.Ec2ThrottledException - AWS Lambda was throttled by Amazon EC2 during Lambda function initialization using the execution role
provided for the Lambda function.Ec2AccessDeniedException - Need additional permissions to configure VPC settings.InvalidSubnetIdException - The Subnet ID provided in the Lambda function VPC configuration is invalid.InvalidSecurityGroupIdException - The Security Group ID provided in the Lambda function VPC configuration is invalid.InvalidZipFileException - AWS Lambda could not unzip the deployment package.KmsDisabledException - Lambda was unable to decrypt the environment variables because the KMS key used is disabled. Check the
Lambda function's KMS key settings.KmsInvalidStateException - Lambda was unable to decrypt the environment variables because the KMS key used is in an invalid state
for Decrypt. Check the function's KMS key settings.KmsAccessDeniedException - Lambda was unable to decrypt the environment variables because KMS access was denied. Check the Lambda
function's KMS permissions.KmsNotFoundException - Lambda was unable to decrypt the environment variables because the KMS key was not found. Check the
function's KMS key settings.InvalidRuntimeException - The runtime or runtime version specified is not supported.ResourceConflictException - The resource already exists, or another operation is in progress.ResourceNotReadyException - The function is inactive and its VPC connection is no longer available. Wait for the VPC connection to
reestablish and try again.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListAliasesResponse listAliases(ListAliasesRequest listAliasesRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
Returns a list of aliases for a Lambda function.
listAliasesRequest - ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource specified in the request does not exist.InvalidParameterValueException - One of the parameters in the request is invalid.TooManyRequestsException - The request throughput limit was exceeded.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListAliasesResponse listAliases(Consumer<ListAliasesRequest.Builder> listAliasesRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
Returns a list of aliases for a Lambda function.
This is a convenience which creates an instance of the ListAliasesRequest.Builder avoiding the need to
create one manually via ListAliasesRequest.builder()
listAliasesRequest - A Consumer that will call methods on ListAliasesRequest.Builder to create a request.ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource specified in the request does not exist.InvalidParameterValueException - One of the parameters in the request is invalid.TooManyRequestsException - The request throughput limit was exceeded.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListAliasesIterable listAliasesPaginator(ListAliasesRequest listAliasesRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
Returns a list of aliases for a Lambda function.
This is a variant of listAliases(software.amazon.awssdk.services.lambda.model.ListAliasesRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.lambda.paginators.ListAliasesIterable responses = client.listAliasesPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.lambda.paginators.ListAliasesIterable responses = client.listAliasesPaginator(request);
for (software.amazon.awssdk.services.lambda.model.ListAliasesResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.lambda.paginators.ListAliasesIterable responses = client.listAliasesPaginator(request);
responses.iterator().forEachRemaining(....);
Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listAliases(software.amazon.awssdk.services.lambda.model.ListAliasesRequest) operation.
listAliasesRequest - ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource specified in the request does not exist.InvalidParameterValueException - One of the parameters in the request is invalid.TooManyRequestsException - The request throughput limit was exceeded.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListAliasesIterable listAliasesPaginator(Consumer<ListAliasesRequest.Builder> listAliasesRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
Returns a list of aliases for a Lambda function.
This is a variant of listAliases(software.amazon.awssdk.services.lambda.model.ListAliasesRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.lambda.paginators.ListAliasesIterable responses = client.listAliasesPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.lambda.paginators.ListAliasesIterable responses = client.listAliasesPaginator(request);
for (software.amazon.awssdk.services.lambda.model.ListAliasesResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.lambda.paginators.ListAliasesIterable responses = client.listAliasesPaginator(request);
responses.iterator().forEachRemaining(....);
Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listAliases(software.amazon.awssdk.services.lambda.model.ListAliasesRequest) operation.
This is a convenience which creates an instance of the ListAliasesRequest.Builder avoiding the need to
create one manually via ListAliasesRequest.builder()
listAliasesRequest - A Consumer that will call methods on ListAliasesRequest.Builder to create a request.ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource specified in the request does not exist.InvalidParameterValueException - One of the parameters in the request is invalid.TooManyRequestsException - The request throughput limit was exceeded.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListEventSourceMappingsResponse listEventSourceMappings() throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
Lists event source mappings. Specify an EventSourceArn to only show event source mappings for a
single event source.
ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource specified in the request does not exist.InvalidParameterValueException - One of the parameters in the request is invalid.TooManyRequestsException - The request throughput limit was exceeded.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptionlistEventSourceMappings(ListEventSourceMappingsRequest),
AWS
API Documentationdefault ListEventSourceMappingsResponse listEventSourceMappings(ListEventSourceMappingsRequest listEventSourceMappingsRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
Lists event source mappings. Specify an EventSourceArn to only show event source mappings for a
single event source.
listEventSourceMappingsRequest - ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource specified in the request does not exist.InvalidParameterValueException - One of the parameters in the request is invalid.TooManyRequestsException - The request throughput limit was exceeded.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListEventSourceMappingsResponse listEventSourceMappings(Consumer<ListEventSourceMappingsRequest.Builder> listEventSourceMappingsRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
Lists event source mappings. Specify an EventSourceArn to only show event source mappings for a
single event source.
This is a convenience which creates an instance of the ListEventSourceMappingsRequest.Builder avoiding
the need to create one manually via ListEventSourceMappingsRequest.builder()
listEventSourceMappingsRequest - A Consumer that will call methods on ListEventSourceMappingsRequest.Builder to create a
request.ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource specified in the request does not exist.InvalidParameterValueException - One of the parameters in the request is invalid.TooManyRequestsException - The request throughput limit was exceeded.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListEventSourceMappingsIterable listEventSourceMappingsPaginator() throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
Lists event source mappings. Specify an EventSourceArn to only show event source mappings for a
single event source.
This is a variant of
listEventSourceMappings(software.amazon.awssdk.services.lambda.model.ListEventSourceMappingsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.lambda.paginators.ListEventSourceMappingsIterable responses = client.listEventSourceMappingsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.lambda.paginators.ListEventSourceMappingsIterable responses = client
.listEventSourceMappingsPaginator(request);
for (software.amazon.awssdk.services.lambda.model.ListEventSourceMappingsResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.lambda.paginators.ListEventSourceMappingsIterable responses = client.listEventSourceMappingsPaginator(request);
responses.iterator().forEachRemaining(....);
Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listEventSourceMappings(software.amazon.awssdk.services.lambda.model.ListEventSourceMappingsRequest)
operation.
ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource specified in the request does not exist.InvalidParameterValueException - One of the parameters in the request is invalid.TooManyRequestsException - The request throughput limit was exceeded.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptionlistEventSourceMappingsPaginator(ListEventSourceMappingsRequest),
AWS
API Documentationdefault ListEventSourceMappingsIterable listEventSourceMappingsPaginator(ListEventSourceMappingsRequest listEventSourceMappingsRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
Lists event source mappings. Specify an EventSourceArn to only show event source mappings for a
single event source.
This is a variant of
listEventSourceMappings(software.amazon.awssdk.services.lambda.model.ListEventSourceMappingsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.lambda.paginators.ListEventSourceMappingsIterable responses = client.listEventSourceMappingsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.lambda.paginators.ListEventSourceMappingsIterable responses = client
.listEventSourceMappingsPaginator(request);
for (software.amazon.awssdk.services.lambda.model.ListEventSourceMappingsResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.lambda.paginators.ListEventSourceMappingsIterable responses = client.listEventSourceMappingsPaginator(request);
responses.iterator().forEachRemaining(....);
Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listEventSourceMappings(software.amazon.awssdk.services.lambda.model.ListEventSourceMappingsRequest)
operation.
listEventSourceMappingsRequest - ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource specified in the request does not exist.InvalidParameterValueException - One of the parameters in the request is invalid.TooManyRequestsException - The request throughput limit was exceeded.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListEventSourceMappingsIterable listEventSourceMappingsPaginator(Consumer<ListEventSourceMappingsRequest.Builder> listEventSourceMappingsRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
Lists event source mappings. Specify an EventSourceArn to only show event source mappings for a
single event source.
This is a variant of
listEventSourceMappings(software.amazon.awssdk.services.lambda.model.ListEventSourceMappingsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.lambda.paginators.ListEventSourceMappingsIterable responses = client.listEventSourceMappingsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.lambda.paginators.ListEventSourceMappingsIterable responses = client
.listEventSourceMappingsPaginator(request);
for (software.amazon.awssdk.services.lambda.model.ListEventSourceMappingsResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.lambda.paginators.ListEventSourceMappingsIterable responses = client.listEventSourceMappingsPaginator(request);
responses.iterator().forEachRemaining(....);
Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listEventSourceMappings(software.amazon.awssdk.services.lambda.model.ListEventSourceMappingsRequest)
operation.
This is a convenience which creates an instance of the ListEventSourceMappingsRequest.Builder avoiding
the need to create one manually via ListEventSourceMappingsRequest.builder()
listEventSourceMappingsRequest - A Consumer that will call methods on ListEventSourceMappingsRequest.Builder to create a
request.ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource specified in the request does not exist.InvalidParameterValueException - One of the parameters in the request is invalid.TooManyRequestsException - The request throughput limit was exceeded.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListFunctionEventInvokeConfigsResponse listFunctionEventInvokeConfigs(ListFunctionEventInvokeConfigsRequest listFunctionEventInvokeConfigsRequest) throws InvalidParameterValueException, ResourceNotFoundException, TooManyRequestsException, ServiceException, AwsServiceException, SdkClientException, LambdaException
Retrieves a list of configurations for asynchronous invocation for a function.
To configure options for asynchronous invocation, use PutFunctionEventInvokeConfig.
listFunctionEventInvokeConfigsRequest - InvalidParameterValueException - One of the parameters in the request is invalid.ResourceNotFoundException - The resource specified in the request does not exist.TooManyRequestsException - The request throughput limit was exceeded.ServiceException - The AWS Lambda service encountered an internal error.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListFunctionEventInvokeConfigsResponse listFunctionEventInvokeConfigs(Consumer<ListFunctionEventInvokeConfigsRequest.Builder> listFunctionEventInvokeConfigsRequest) throws InvalidParameterValueException, ResourceNotFoundException, TooManyRequestsException, ServiceException, AwsServiceException, SdkClientException, LambdaException
Retrieves a list of configurations for asynchronous invocation for a function.
To configure options for asynchronous invocation, use PutFunctionEventInvokeConfig.
This is a convenience which creates an instance of the ListFunctionEventInvokeConfigsRequest.Builder
avoiding the need to create one manually via ListFunctionEventInvokeConfigsRequest.builder()
listFunctionEventInvokeConfigsRequest - A Consumer that will call methods on ListFunctionEventInvokeConfigsRequest.Builder to
create a request.InvalidParameterValueException - One of the parameters in the request is invalid.ResourceNotFoundException - The resource specified in the request does not exist.TooManyRequestsException - The request throughput limit was exceeded.ServiceException - The AWS Lambda service encountered an internal error.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListFunctionEventInvokeConfigsIterable listFunctionEventInvokeConfigsPaginator(ListFunctionEventInvokeConfigsRequest listFunctionEventInvokeConfigsRequest) throws InvalidParameterValueException, ResourceNotFoundException, TooManyRequestsException, ServiceException, AwsServiceException, SdkClientException, LambdaException
Retrieves a list of configurations for asynchronous invocation for a function.
To configure options for asynchronous invocation, use PutFunctionEventInvokeConfig.
This is a variant of
listFunctionEventInvokeConfigs(software.amazon.awssdk.services.lambda.model.ListFunctionEventInvokeConfigsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.lambda.paginators.ListFunctionEventInvokeConfigsIterable responses = client.listFunctionEventInvokeConfigsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.lambda.paginators.ListFunctionEventInvokeConfigsIterable responses = client
.listFunctionEventInvokeConfigsPaginator(request);
for (software.amazon.awssdk.services.lambda.model.ListFunctionEventInvokeConfigsResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.lambda.paginators.ListFunctionEventInvokeConfigsIterable responses = client.listFunctionEventInvokeConfigsPaginator(request);
responses.iterator().forEachRemaining(....);
Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listFunctionEventInvokeConfigs(software.amazon.awssdk.services.lambda.model.ListFunctionEventInvokeConfigsRequest)
operation.
listFunctionEventInvokeConfigsRequest - InvalidParameterValueException - One of the parameters in the request is invalid.ResourceNotFoundException - The resource specified in the request does not exist.TooManyRequestsException - The request throughput limit was exceeded.ServiceException - The AWS Lambda service encountered an internal error.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListFunctionEventInvokeConfigsIterable listFunctionEventInvokeConfigsPaginator(Consumer<ListFunctionEventInvokeConfigsRequest.Builder> listFunctionEventInvokeConfigsRequest) throws InvalidParameterValueException, ResourceNotFoundException, TooManyRequestsException, ServiceException, AwsServiceException, SdkClientException, LambdaException
Retrieves a list of configurations for asynchronous invocation for a function.
To configure options for asynchronous invocation, use PutFunctionEventInvokeConfig.
This is a variant of
listFunctionEventInvokeConfigs(software.amazon.awssdk.services.lambda.model.ListFunctionEventInvokeConfigsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.lambda.paginators.ListFunctionEventInvokeConfigsIterable responses = client.listFunctionEventInvokeConfigsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.lambda.paginators.ListFunctionEventInvokeConfigsIterable responses = client
.listFunctionEventInvokeConfigsPaginator(request);
for (software.amazon.awssdk.services.lambda.model.ListFunctionEventInvokeConfigsResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.lambda.paginators.ListFunctionEventInvokeConfigsIterable responses = client.listFunctionEventInvokeConfigsPaginator(request);
responses.iterator().forEachRemaining(....);
Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listFunctionEventInvokeConfigs(software.amazon.awssdk.services.lambda.model.ListFunctionEventInvokeConfigsRequest)
operation.
This is a convenience which creates an instance of the ListFunctionEventInvokeConfigsRequest.Builder
avoiding the need to create one manually via ListFunctionEventInvokeConfigsRequest.builder()
listFunctionEventInvokeConfigsRequest - A Consumer that will call methods on ListFunctionEventInvokeConfigsRequest.Builder to
create a request.InvalidParameterValueException - One of the parameters in the request is invalid.ResourceNotFoundException - The resource specified in the request does not exist.TooManyRequestsException - The request throughput limit was exceeded.ServiceException - The AWS Lambda service encountered an internal error.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListFunctionsResponse listFunctions() throws ServiceException, TooManyRequestsException, InvalidParameterValueException, AwsServiceException, SdkClientException, LambdaException
Returns a list of Lambda functions, with the version-specific configuration of each. Lambda returns up to 50 functions per call.
Set FunctionVersion to ALL to include all published versions of each function in
addition to the unpublished version. To get more information about a function or version, use GetFunction.
ServiceException - The AWS Lambda service encountered an internal error.TooManyRequestsException - The request throughput limit was exceeded.InvalidParameterValueException - One of the parameters in the request is invalid.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptionlistFunctions(ListFunctionsRequest),
AWS API
Documentationdefault ListFunctionsResponse listFunctions(ListFunctionsRequest listFunctionsRequest) throws ServiceException, TooManyRequestsException, InvalidParameterValueException, AwsServiceException, SdkClientException, LambdaException
Returns a list of Lambda functions, with the version-specific configuration of each. Lambda returns up to 50 functions per call.
Set FunctionVersion to ALL to include all published versions of each function in
addition to the unpublished version. To get more information about a function or version, use GetFunction.
listFunctionsRequest - ServiceException - The AWS Lambda service encountered an internal error.TooManyRequestsException - The request throughput limit was exceeded.InvalidParameterValueException - One of the parameters in the request is invalid.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListFunctionsResponse listFunctions(Consumer<ListFunctionsRequest.Builder> listFunctionsRequest) throws ServiceException, TooManyRequestsException, InvalidParameterValueException, AwsServiceException, SdkClientException, LambdaException
Returns a list of Lambda functions, with the version-specific configuration of each. Lambda returns up to 50 functions per call.
Set FunctionVersion to ALL to include all published versions of each function in
addition to the unpublished version. To get more information about a function or version, use GetFunction.
This is a convenience which creates an instance of the ListFunctionsRequest.Builder avoiding the need to
create one manually via ListFunctionsRequest.builder()
listFunctionsRequest - A Consumer that will call methods on ListFunctionsRequest.Builder to create a request.ServiceException - The AWS Lambda service encountered an internal error.TooManyRequestsException - The request throughput limit was exceeded.InvalidParameterValueException - One of the parameters in the request is invalid.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListFunctionsIterable listFunctionsPaginator() throws ServiceException, TooManyRequestsException, InvalidParameterValueException, AwsServiceException, SdkClientException, LambdaException
Returns a list of Lambda functions, with the version-specific configuration of each. Lambda returns up to 50 functions per call.
Set FunctionVersion to ALL to include all published versions of each function in
addition to the unpublished version. To get more information about a function or version, use GetFunction.
This is a variant of listFunctions(software.amazon.awssdk.services.lambda.model.ListFunctionsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.lambda.paginators.ListFunctionsIterable responses = client.listFunctionsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.lambda.paginators.ListFunctionsIterable responses = client.listFunctionsPaginator(request);
for (software.amazon.awssdk.services.lambda.model.ListFunctionsResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.lambda.paginators.ListFunctionsIterable responses = client.listFunctionsPaginator(request);
responses.iterator().forEachRemaining(....);
Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listFunctions(software.amazon.awssdk.services.lambda.model.ListFunctionsRequest) operation.
ServiceException - The AWS Lambda service encountered an internal error.TooManyRequestsException - The request throughput limit was exceeded.InvalidParameterValueException - One of the parameters in the request is invalid.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptionlistFunctionsPaginator(ListFunctionsRequest),
AWS API
Documentationdefault ListFunctionsIterable listFunctionsPaginator(ListFunctionsRequest listFunctionsRequest) throws ServiceException, TooManyRequestsException, InvalidParameterValueException, AwsServiceException, SdkClientException, LambdaException
Returns a list of Lambda functions, with the version-specific configuration of each. Lambda returns up to 50 functions per call.
Set FunctionVersion to ALL to include all published versions of each function in
addition to the unpublished version. To get more information about a function or version, use GetFunction.
This is a variant of listFunctions(software.amazon.awssdk.services.lambda.model.ListFunctionsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.lambda.paginators.ListFunctionsIterable responses = client.listFunctionsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.lambda.paginators.ListFunctionsIterable responses = client.listFunctionsPaginator(request);
for (software.amazon.awssdk.services.lambda.model.ListFunctionsResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.lambda.paginators.ListFunctionsIterable responses = client.listFunctionsPaginator(request);
responses.iterator().forEachRemaining(....);
Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listFunctions(software.amazon.awssdk.services.lambda.model.ListFunctionsRequest) operation.
listFunctionsRequest - ServiceException - The AWS Lambda service encountered an internal error.TooManyRequestsException - The request throughput limit was exceeded.InvalidParameterValueException - One of the parameters in the request is invalid.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListFunctionsIterable listFunctionsPaginator(Consumer<ListFunctionsRequest.Builder> listFunctionsRequest) throws ServiceException, TooManyRequestsException, InvalidParameterValueException, AwsServiceException, SdkClientException, LambdaException
Returns a list of Lambda functions, with the version-specific configuration of each. Lambda returns up to 50 functions per call.
Set FunctionVersion to ALL to include all published versions of each function in
addition to the unpublished version. To get more information about a function or version, use GetFunction.
This is a variant of listFunctions(software.amazon.awssdk.services.lambda.model.ListFunctionsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.lambda.paginators.ListFunctionsIterable responses = client.listFunctionsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.lambda.paginators.ListFunctionsIterable responses = client.listFunctionsPaginator(request);
for (software.amazon.awssdk.services.lambda.model.ListFunctionsResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.lambda.paginators.ListFunctionsIterable responses = client.listFunctionsPaginator(request);
responses.iterator().forEachRemaining(....);
Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listFunctions(software.amazon.awssdk.services.lambda.model.ListFunctionsRequest) operation.
This is a convenience which creates an instance of the ListFunctionsRequest.Builder avoiding the need to
create one manually via ListFunctionsRequest.builder()
listFunctionsRequest - A Consumer that will call methods on ListFunctionsRequest.Builder to create a request.ServiceException - The AWS Lambda service encountered an internal error.TooManyRequestsException - The request throughput limit was exceeded.InvalidParameterValueException - One of the parameters in the request is invalid.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListLayerVersionsResponse listLayerVersions(ListLayerVersionsRequest listLayerVersionsRequest) throws ServiceException, InvalidParameterValueException, ResourceNotFoundException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
Lists the versions of an AWS Lambda layer. Versions that have been deleted aren't listed. Specify a runtime identifier to list only versions that indicate that they're compatible with that runtime.
listLayerVersionsRequest - ServiceException - The AWS Lambda service encountered an internal error.InvalidParameterValueException - One of the parameters in the request is invalid.ResourceNotFoundException - The resource specified in the request does not exist.TooManyRequestsException - The request throughput limit was exceeded.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListLayerVersionsResponse listLayerVersions(Consumer<ListLayerVersionsRequest.Builder> listLayerVersionsRequest) throws ServiceException, InvalidParameterValueException, ResourceNotFoundException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
Lists the versions of an AWS Lambda layer. Versions that have been deleted aren't listed. Specify a runtime identifier to list only versions that indicate that they're compatible with that runtime.
This is a convenience which creates an instance of the ListLayerVersionsRequest.Builder avoiding the need
to create one manually via ListLayerVersionsRequest.builder()
listLayerVersionsRequest - A Consumer that will call methods on ListLayerVersionsRequest.Builder to create a request.ServiceException - The AWS Lambda service encountered an internal error.InvalidParameterValueException - One of the parameters in the request is invalid.ResourceNotFoundException - The resource specified in the request does not exist.TooManyRequestsException - The request throughput limit was exceeded.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListLayerVersionsIterable listLayerVersionsPaginator(ListLayerVersionsRequest listLayerVersionsRequest) throws ServiceException, InvalidParameterValueException, ResourceNotFoundException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
Lists the versions of an AWS Lambda layer. Versions that have been deleted aren't listed. Specify a runtime identifier to list only versions that indicate that they're compatible with that runtime.
This is a variant of
listLayerVersions(software.amazon.awssdk.services.lambda.model.ListLayerVersionsRequest) operation. The
return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle
making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.lambda.paginators.ListLayerVersionsIterable responses = client.listLayerVersionsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.lambda.paginators.ListLayerVersionsIterable responses = client
.listLayerVersionsPaginator(request);
for (software.amazon.awssdk.services.lambda.model.ListLayerVersionsResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.lambda.paginators.ListLayerVersionsIterable responses = client.listLayerVersionsPaginator(request);
responses.iterator().forEachRemaining(....);
Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listLayerVersions(software.amazon.awssdk.services.lambda.model.ListLayerVersionsRequest) operation.
listLayerVersionsRequest - ServiceException - The AWS Lambda service encountered an internal error.InvalidParameterValueException - One of the parameters in the request is invalid.ResourceNotFoundException - The resource specified in the request does not exist.TooManyRequestsException - The request throughput limit was exceeded.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListLayerVersionsIterable listLayerVersionsPaginator(Consumer<ListLayerVersionsRequest.Builder> listLayerVersionsRequest) throws ServiceException, InvalidParameterValueException, ResourceNotFoundException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
Lists the versions of an AWS Lambda layer. Versions that have been deleted aren't listed. Specify a runtime identifier to list only versions that indicate that they're compatible with that runtime.
This is a variant of
listLayerVersions(software.amazon.awssdk.services.lambda.model.ListLayerVersionsRequest) operation. The
return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle
making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.lambda.paginators.ListLayerVersionsIterable responses = client.listLayerVersionsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.lambda.paginators.ListLayerVersionsIterable responses = client
.listLayerVersionsPaginator(request);
for (software.amazon.awssdk.services.lambda.model.ListLayerVersionsResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.lambda.paginators.ListLayerVersionsIterable responses = client.listLayerVersionsPaginator(request);
responses.iterator().forEachRemaining(....);
Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listLayerVersions(software.amazon.awssdk.services.lambda.model.ListLayerVersionsRequest) operation.
This is a convenience which creates an instance of the ListLayerVersionsRequest.Builder avoiding the need
to create one manually via ListLayerVersionsRequest.builder()
listLayerVersionsRequest - A Consumer that will call methods on ListLayerVersionsRequest.Builder to create a request.ServiceException - The AWS Lambda service encountered an internal error.InvalidParameterValueException - One of the parameters in the request is invalid.ResourceNotFoundException - The resource specified in the request does not exist.TooManyRequestsException - The request throughput limit was exceeded.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListLayersResponse listLayers() throws ServiceException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
Lists AWS Lambda layers and shows information about the latest version of each. Specify a runtime identifier to list only layers that indicate that they're compatible with that runtime.
ServiceException - The AWS Lambda service encountered an internal error.InvalidParameterValueException - One of the parameters in the request is invalid.TooManyRequestsException - The request throughput limit was exceeded.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptionlistLayers(ListLayersRequest),
AWS API
Documentationdefault ListLayersResponse listLayers(ListLayersRequest listLayersRequest) throws ServiceException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
Lists AWS Lambda layers and shows information about the latest version of each. Specify a runtime identifier to list only layers that indicate that they're compatible with that runtime.
listLayersRequest - ServiceException - The AWS Lambda service encountered an internal error.InvalidParameterValueException - One of the parameters in the request is invalid.TooManyRequestsException - The request throughput limit was exceeded.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListLayersResponse listLayers(Consumer<ListLayersRequest.Builder> listLayersRequest) throws ServiceException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
Lists AWS Lambda layers and shows information about the latest version of each. Specify a runtime identifier to list only layers that indicate that they're compatible with that runtime.
This is a convenience which creates an instance of the ListLayersRequest.Builder avoiding the need to
create one manually via ListLayersRequest.builder()
listLayersRequest - A Consumer that will call methods on ListLayersRequest.Builder to create a request.ServiceException - The AWS Lambda service encountered an internal error.InvalidParameterValueException - One of the parameters in the request is invalid.TooManyRequestsException - The request throughput limit was exceeded.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListLayersIterable listLayersPaginator() throws ServiceException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
Lists AWS Lambda layers and shows information about the latest version of each. Specify a runtime identifier to list only layers that indicate that they're compatible with that runtime.
This is a variant of listLayers(software.amazon.awssdk.services.lambda.model.ListLayersRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.lambda.paginators.ListLayersIterable responses = client.listLayersPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.lambda.paginators.ListLayersIterable responses = client.listLayersPaginator(request);
for (software.amazon.awssdk.services.lambda.model.ListLayersResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.lambda.paginators.ListLayersIterable responses = client.listLayersPaginator(request);
responses.iterator().forEachRemaining(....);
Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listLayers(software.amazon.awssdk.services.lambda.model.ListLayersRequest) operation.
ServiceException - The AWS Lambda service encountered an internal error.InvalidParameterValueException - One of the parameters in the request is invalid.TooManyRequestsException - The request throughput limit was exceeded.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptionlistLayersPaginator(ListLayersRequest),
AWS API
Documentationdefault ListLayersIterable listLayersPaginator(ListLayersRequest listLayersRequest) throws ServiceException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
Lists AWS Lambda layers and shows information about the latest version of each. Specify a runtime identifier to list only layers that indicate that they're compatible with that runtime.
This is a variant of listLayers(software.amazon.awssdk.services.lambda.model.ListLayersRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.lambda.paginators.ListLayersIterable responses = client.listLayersPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.lambda.paginators.ListLayersIterable responses = client.listLayersPaginator(request);
for (software.amazon.awssdk.services.lambda.model.ListLayersResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.lambda.paginators.ListLayersIterable responses = client.listLayersPaginator(request);
responses.iterator().forEachRemaining(....);
Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listLayers(software.amazon.awssdk.services.lambda.model.ListLayersRequest) operation.
listLayersRequest - ServiceException - The AWS Lambda service encountered an internal error.InvalidParameterValueException - One of the parameters in the request is invalid.TooManyRequestsException - The request throughput limit was exceeded.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListLayersIterable listLayersPaginator(Consumer<ListLayersRequest.Builder> listLayersRequest) throws ServiceException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
Lists AWS Lambda layers and shows information about the latest version of each. Specify a runtime identifier to list only layers that indicate that they're compatible with that runtime.
This is a variant of listLayers(software.amazon.awssdk.services.lambda.model.ListLayersRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.lambda.paginators.ListLayersIterable responses = client.listLayersPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.lambda.paginators.ListLayersIterable responses = client.listLayersPaginator(request);
for (software.amazon.awssdk.services.lambda.model.ListLayersResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.lambda.paginators.ListLayersIterable responses = client.listLayersPaginator(request);
responses.iterator().forEachRemaining(....);
Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listLayers(software.amazon.awssdk.services.lambda.model.ListLayersRequest) operation.
This is a convenience which creates an instance of the ListLayersRequest.Builder avoiding the need to
create one manually via ListLayersRequest.builder()
listLayersRequest - A Consumer that will call methods on ListLayersRequest.Builder to create a request.ServiceException - The AWS Lambda service encountered an internal error.InvalidParameterValueException - One of the parameters in the request is invalid.TooManyRequestsException - The request throughput limit was exceeded.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListProvisionedConcurrencyConfigsResponse listProvisionedConcurrencyConfigs(ListProvisionedConcurrencyConfigsRequest listProvisionedConcurrencyConfigsRequest) throws InvalidParameterValueException, ResourceNotFoundException, TooManyRequestsException, ServiceException, AwsServiceException, SdkClientException, LambdaException
Retrieves a list of provisioned concurrency configurations for a function.
listProvisionedConcurrencyConfigsRequest - InvalidParameterValueException - One of the parameters in the request is invalid.ResourceNotFoundException - The resource specified in the request does not exist.TooManyRequestsException - The request throughput limit was exceeded.ServiceException - The AWS Lambda service encountered an internal error.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListProvisionedConcurrencyConfigsResponse listProvisionedConcurrencyConfigs(Consumer<ListProvisionedConcurrencyConfigsRequest.Builder> listProvisionedConcurrencyConfigsRequest) throws InvalidParameterValueException, ResourceNotFoundException, TooManyRequestsException, ServiceException, AwsServiceException, SdkClientException, LambdaException
Retrieves a list of provisioned concurrency configurations for a function.
This is a convenience which creates an instance of the ListProvisionedConcurrencyConfigsRequest.Builder
avoiding the need to create one manually via ListProvisionedConcurrencyConfigsRequest.builder()
listProvisionedConcurrencyConfigsRequest - A Consumer that will call methods on ListProvisionedConcurrencyConfigsRequest.Builder to
create a request.InvalidParameterValueException - One of the parameters in the request is invalid.ResourceNotFoundException - The resource specified in the request does not exist.TooManyRequestsException - The request throughput limit was exceeded.ServiceException - The AWS Lambda service encountered an internal error.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListProvisionedConcurrencyConfigsIterable listProvisionedConcurrencyConfigsPaginator(ListProvisionedConcurrencyConfigsRequest listProvisionedConcurrencyConfigsRequest) throws InvalidParameterValueException, ResourceNotFoundException, TooManyRequestsException, ServiceException, AwsServiceException, SdkClientException, LambdaException
Retrieves a list of provisioned concurrency configurations for a function.
This is a variant of
listProvisionedConcurrencyConfigs(software.amazon.awssdk.services.lambda.model.ListProvisionedConcurrencyConfigsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.lambda.paginators.ListProvisionedConcurrencyConfigsIterable responses = client.listProvisionedConcurrencyConfigsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.lambda.paginators.ListProvisionedConcurrencyConfigsIterable responses = client
.listProvisionedConcurrencyConfigsPaginator(request);
for (software.amazon.awssdk.services.lambda.model.ListProvisionedConcurrencyConfigsResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.lambda.paginators.ListProvisionedConcurrencyConfigsIterable responses = client.listProvisionedConcurrencyConfigsPaginator(request);
responses.iterator().forEachRemaining(....);
Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listProvisionedConcurrencyConfigs(software.amazon.awssdk.services.lambda.model.ListProvisionedConcurrencyConfigsRequest)
operation.
listProvisionedConcurrencyConfigsRequest - InvalidParameterValueException - One of the parameters in the request is invalid.ResourceNotFoundException - The resource specified in the request does not exist.TooManyRequestsException - The request throughput limit was exceeded.ServiceException - The AWS Lambda service encountered an internal error.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListProvisionedConcurrencyConfigsIterable listProvisionedConcurrencyConfigsPaginator(Consumer<ListProvisionedConcurrencyConfigsRequest.Builder> listProvisionedConcurrencyConfigsRequest) throws InvalidParameterValueException, ResourceNotFoundException, TooManyRequestsException, ServiceException, AwsServiceException, SdkClientException, LambdaException
Retrieves a list of provisioned concurrency configurations for a function.
This is a variant of
listProvisionedConcurrencyConfigs(software.amazon.awssdk.services.lambda.model.ListProvisionedConcurrencyConfigsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.lambda.paginators.ListProvisionedConcurrencyConfigsIterable responses = client.listProvisionedConcurrencyConfigsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.lambda.paginators.ListProvisionedConcurrencyConfigsIterable responses = client
.listProvisionedConcurrencyConfigsPaginator(request);
for (software.amazon.awssdk.services.lambda.model.ListProvisionedConcurrencyConfigsResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.lambda.paginators.ListProvisionedConcurrencyConfigsIterable responses = client.listProvisionedConcurrencyConfigsPaginator(request);
responses.iterator().forEachRemaining(....);
Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listProvisionedConcurrencyConfigs(software.amazon.awssdk.services.lambda.model.ListProvisionedConcurrencyConfigsRequest)
operation.
This is a convenience which creates an instance of the ListProvisionedConcurrencyConfigsRequest.Builder
avoiding the need to create one manually via ListProvisionedConcurrencyConfigsRequest.builder()
listProvisionedConcurrencyConfigsRequest - A Consumer that will call methods on ListProvisionedConcurrencyConfigsRequest.Builder to
create a request.InvalidParameterValueException - One of the parameters in the request is invalid.ResourceNotFoundException - The resource specified in the request does not exist.TooManyRequestsException - The request throughput limit was exceeded.ServiceException - The AWS Lambda service encountered an internal error.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListTagsResponse listTags(ListTagsRequest listTagsRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
Returns a function's tags. You can also view tags with GetFunction.
listTagsRequest - ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource specified in the request does not exist.InvalidParameterValueException - One of the parameters in the request is invalid.TooManyRequestsException - The request throughput limit was exceeded.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListTagsResponse listTags(Consumer<ListTagsRequest.Builder> listTagsRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
Returns a function's tags. You can also view tags with GetFunction.
This is a convenience which creates an instance of the ListTagsRequest.Builder avoiding the need to
create one manually via ListTagsRequest.builder()
listTagsRequest - A Consumer that will call methods on ListTagsRequest.Builder to create a request.ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource specified in the request does not exist.InvalidParameterValueException - One of the parameters in the request is invalid.TooManyRequestsException - The request throughput limit was exceeded.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListVersionsByFunctionResponse listVersionsByFunction(ListVersionsByFunctionRequest listVersionsByFunctionRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
Returns a list of versions, with the version-specific configuration of each. Lambda returns up to 50 versions per call.
listVersionsByFunctionRequest - ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource specified in the request does not exist.InvalidParameterValueException - One of the parameters in the request is invalid.TooManyRequestsException - The request throughput limit was exceeded.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListVersionsByFunctionResponse listVersionsByFunction(Consumer<ListVersionsByFunctionRequest.Builder> listVersionsByFunctionRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
Returns a list of versions, with the version-specific configuration of each. Lambda returns up to 50 versions per call.
This is a convenience which creates an instance of the ListVersionsByFunctionRequest.Builder avoiding the
need to create one manually via ListVersionsByFunctionRequest.builder()
listVersionsByFunctionRequest - A Consumer that will call methods on ListVersionsByFunctionRequest.Builder to create a
request.ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource specified in the request does not exist.InvalidParameterValueException - One of the parameters in the request is invalid.TooManyRequestsException - The request throughput limit was exceeded.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListVersionsByFunctionIterable listVersionsByFunctionPaginator(ListVersionsByFunctionRequest listVersionsByFunctionRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
Returns a list of versions, with the version-specific configuration of each. Lambda returns up to 50 versions per call.
This is a variant of
listVersionsByFunction(software.amazon.awssdk.services.lambda.model.ListVersionsByFunctionRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.lambda.paginators.ListVersionsByFunctionIterable responses = client.listVersionsByFunctionPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.lambda.paginators.ListVersionsByFunctionIterable responses = client
.listVersionsByFunctionPaginator(request);
for (software.amazon.awssdk.services.lambda.model.ListVersionsByFunctionResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.lambda.paginators.ListVersionsByFunctionIterable responses = client.listVersionsByFunctionPaginator(request);
responses.iterator().forEachRemaining(....);
Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listVersionsByFunction(software.amazon.awssdk.services.lambda.model.ListVersionsByFunctionRequest)
operation.
listVersionsByFunctionRequest - ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource specified in the request does not exist.InvalidParameterValueException - One of the parameters in the request is invalid.TooManyRequestsException - The request throughput limit was exceeded.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListVersionsByFunctionIterable listVersionsByFunctionPaginator(Consumer<ListVersionsByFunctionRequest.Builder> listVersionsByFunctionRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
Returns a list of versions, with the version-specific configuration of each. Lambda returns up to 50 versions per call.
This is a variant of
listVersionsByFunction(software.amazon.awssdk.services.lambda.model.ListVersionsByFunctionRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.lambda.paginators.ListVersionsByFunctionIterable responses = client.listVersionsByFunctionPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.lambda.paginators.ListVersionsByFunctionIterable responses = client
.listVersionsByFunctionPaginator(request);
for (software.amazon.awssdk.services.lambda.model.ListVersionsByFunctionResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.lambda.paginators.ListVersionsByFunctionIterable responses = client.listVersionsByFunctionPaginator(request);
responses.iterator().forEachRemaining(....);
Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listVersionsByFunction(software.amazon.awssdk.services.lambda.model.ListVersionsByFunctionRequest)
operation.
This is a convenience which creates an instance of the ListVersionsByFunctionRequest.Builder avoiding the
need to create one manually via ListVersionsByFunctionRequest.builder()
listVersionsByFunctionRequest - A Consumer that will call methods on ListVersionsByFunctionRequest.Builder to create a
request.ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource specified in the request does not exist.InvalidParameterValueException - One of the parameters in the request is invalid.TooManyRequestsException - The request throughput limit was exceeded.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault PublishLayerVersionResponse publishLayerVersion(PublishLayerVersionRequest publishLayerVersionRequest) throws ServiceException, ResourceNotFoundException, TooManyRequestsException, InvalidParameterValueException, CodeStorageExceededException, AwsServiceException, SdkClientException, LambdaException
Creates an AWS Lambda layer
from a ZIP archive. Each time you call PublishLayerVersion with the same layer name, a new version
is created.
Add layers to your function with CreateFunction or UpdateFunctionConfiguration.
publishLayerVersionRequest - ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource specified in the request does not exist.TooManyRequestsException - The request throughput limit was exceeded.InvalidParameterValueException - One of the parameters in the request is invalid.CodeStorageExceededException - You have exceeded your maximum total code size per account. Learn moreSdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault PublishLayerVersionResponse publishLayerVersion(Consumer<PublishLayerVersionRequest.Builder> publishLayerVersionRequest) throws ServiceException, ResourceNotFoundException, TooManyRequestsException, InvalidParameterValueException, CodeStorageExceededException, AwsServiceException, SdkClientException, LambdaException
Creates an AWS Lambda layer
from a ZIP archive. Each time you call PublishLayerVersion with the same layer name, a new version
is created.
Add layers to your function with CreateFunction or UpdateFunctionConfiguration.
This is a convenience which creates an instance of the PublishLayerVersionRequest.Builder avoiding the
need to create one manually via PublishLayerVersionRequest.builder()
publishLayerVersionRequest - A Consumer that will call methods on PublishLayerVersionRequest.Builder to create a
request.ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource specified in the request does not exist.TooManyRequestsException - The request throughput limit was exceeded.InvalidParameterValueException - One of the parameters in the request is invalid.CodeStorageExceededException - You have exceeded your maximum total code size per account. Learn moreSdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault PublishVersionResponse publishVersion(PublishVersionRequest publishVersionRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, CodeStorageExceededException, PreconditionFailedException, ResourceConflictException, AwsServiceException, SdkClientException, LambdaException
Creates a version from the current code and configuration of a function. Use versions to create a snapshot of your function code and configuration that doesn't change.
AWS Lambda doesn't publish a version if the function's configuration and code haven't changed since the last version. Use UpdateFunctionCode or UpdateFunctionConfiguration to update the function before publishing a version.
Clients can invoke versions directly or with an alias. To create an alias, use CreateAlias.
publishVersionRequest - ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource specified in the request does not exist.InvalidParameterValueException - One of the parameters in the request is invalid.TooManyRequestsException - The request throughput limit was exceeded.CodeStorageExceededException - You have exceeded your maximum total code size per account. Learn morePreconditionFailedException - The RevisionId provided does not match the latest RevisionId for the Lambda function or alias. Call the
GetFunction or the GetAlias API to retrieve the latest RevisionId for your
resource.ResourceConflictException - The resource already exists, or another operation is in progress.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault PublishVersionResponse publishVersion(Consumer<PublishVersionRequest.Builder> publishVersionRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, CodeStorageExceededException, PreconditionFailedException, ResourceConflictException, AwsServiceException, SdkClientException, LambdaException
Creates a version from the current code and configuration of a function. Use versions to create a snapshot of your function code and configuration that doesn't change.
AWS Lambda doesn't publish a version if the function's configuration and code haven't changed since the last version. Use UpdateFunctionCode or UpdateFunctionConfiguration to update the function before publishing a version.
Clients can invoke versions directly or with an alias. To create an alias, use CreateAlias.
This is a convenience which creates an instance of the PublishVersionRequest.Builder avoiding the need to
create one manually via PublishVersionRequest.builder()
publishVersionRequest - A Consumer that will call methods on PublishVersionRequest.Builder to create a request.ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource specified in the request does not exist.InvalidParameterValueException - One of the parameters in the request is invalid.TooManyRequestsException - The request throughput limit was exceeded.CodeStorageExceededException - You have exceeded your maximum total code size per account. Learn morePreconditionFailedException - The RevisionId provided does not match the latest RevisionId for the Lambda function or alias. Call the
GetFunction or the GetAlias API to retrieve the latest RevisionId for your
resource.ResourceConflictException - The resource already exists, or another operation is in progress.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault PutFunctionConcurrencyResponse putFunctionConcurrency(PutFunctionConcurrencyRequest putFunctionConcurrencyRequest) throws ServiceException, InvalidParameterValueException, ResourceNotFoundException, TooManyRequestsException, ResourceConflictException, AwsServiceException, SdkClientException, LambdaException
Sets the maximum number of simultaneous executions for a function, and reserves capacity for that concurrency level.
Concurrency settings apply to the function as a whole, including all published versions and the unpublished version. Reserving concurrency both ensures that your function has capacity to process the specified number of events simultaneously, and prevents it from scaling beyond that level. Use GetFunction to see the current setting for a function.
Use GetAccountSettings to see your Regional concurrency limit. You can reserve concurrency for as many functions as you like, as long as you leave at least 100 simultaneous executions unreserved for functions that aren't configured with a per-function limit. For more information, see Managing Concurrency.
putFunctionConcurrencyRequest - ServiceException - The AWS Lambda service encountered an internal error.InvalidParameterValueException - One of the parameters in the request is invalid.ResourceNotFoundException - The resource specified in the request does not exist.TooManyRequestsException - The request throughput limit was exceeded.ResourceConflictException - The resource already exists, or another operation is in progress.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault PutFunctionConcurrencyResponse putFunctionConcurrency(Consumer<PutFunctionConcurrencyRequest.Builder> putFunctionConcurrencyRequest) throws ServiceException, InvalidParameterValueException, ResourceNotFoundException, TooManyRequestsException, ResourceConflictException, AwsServiceException, SdkClientException, LambdaException
Sets the maximum number of simultaneous executions for a function, and reserves capacity for that concurrency level.
Concurrency settings apply to the function as a whole, including all published versions and the unpublished version. Reserving concurrency both ensures that your function has capacity to process the specified number of events simultaneously, and prevents it from scaling beyond that level. Use GetFunction to see the current setting for a function.
Use GetAccountSettings to see your Regional concurrency limit. You can reserve concurrency for as many functions as you like, as long as you leave at least 100 simultaneous executions unreserved for functions that aren't configured with a per-function limit. For more information, see Managing Concurrency.
This is a convenience which creates an instance of the PutFunctionConcurrencyRequest.Builder avoiding the
need to create one manually via PutFunctionConcurrencyRequest.builder()
putFunctionConcurrencyRequest - A Consumer that will call methods on PutFunctionConcurrencyRequest.Builder to create a
request.ServiceException - The AWS Lambda service encountered an internal error.InvalidParameterValueException - One of the parameters in the request is invalid.ResourceNotFoundException - The resource specified in the request does not exist.TooManyRequestsException - The request throughput limit was exceeded.ResourceConflictException - The resource already exists, or another operation is in progress.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault PutFunctionEventInvokeConfigResponse putFunctionEventInvokeConfig(PutFunctionEventInvokeConfigRequest putFunctionEventInvokeConfigRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
Configures options for asynchronous invocation on a function, version, or alias. If a configuration already exists for a function, version, or alias, this operation overwrites it. If you exclude any settings, they are removed. To set one option without affecting existing settings for other options, use UpdateFunctionEventInvokeConfig.
By default, Lambda retries an asynchronous invocation twice if the function returns an error. It retains events in a queue for up to six hours. When an event fails all processing attempts or stays in the asynchronous invocation queue for too long, Lambda discards it. To retain discarded events, configure a dead-letter queue with UpdateFunctionConfiguration.
To send an invocation record to a queue, topic, function, or event bus, specify a destination. You can configure separate destinations for successful invocations (on-success) and events that fail all processing attempts (on-failure). You can configure destinations in addition to or instead of a dead-letter queue.
putFunctionEventInvokeConfigRequest - ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource specified in the request does not exist.InvalidParameterValueException - One of the parameters in the request is invalid.TooManyRequestsException - The request throughput limit was exceeded.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault PutFunctionEventInvokeConfigResponse putFunctionEventInvokeConfig(Consumer<PutFunctionEventInvokeConfigRequest.Builder> putFunctionEventInvokeConfigRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
Configures options for asynchronous invocation on a function, version, or alias. If a configuration already exists for a function, version, or alias, this operation overwrites it. If you exclude any settings, they are removed. To set one option without affecting existing settings for other options, use UpdateFunctionEventInvokeConfig.
By default, Lambda retries an asynchronous invocation twice if the function returns an error. It retains events in a queue for up to six hours. When an event fails all processing attempts or stays in the asynchronous invocation queue for too long, Lambda discards it. To retain discarded events, configure a dead-letter queue with UpdateFunctionConfiguration.
To send an invocation record to a queue, topic, function, or event bus, specify a destination. You can configure separate destinations for successful invocations (on-success) and events that fail all processing attempts (on-failure). You can configure destinations in addition to or instead of a dead-letter queue.
This is a convenience which creates an instance of the PutFunctionEventInvokeConfigRequest.Builder
avoiding the need to create one manually via PutFunctionEventInvokeConfigRequest.builder()
putFunctionEventInvokeConfigRequest - A Consumer that will call methods on PutFunctionEventInvokeConfigRequest.Builder to create
a request.ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource specified in the request does not exist.InvalidParameterValueException - One of the parameters in the request is invalid.TooManyRequestsException - The request throughput limit was exceeded.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault PutProvisionedConcurrencyConfigResponse putProvisionedConcurrencyConfig(PutProvisionedConcurrencyConfigRequest putProvisionedConcurrencyConfigRequest) throws InvalidParameterValueException, ResourceNotFoundException, ResourceConflictException, TooManyRequestsException, ServiceException, AwsServiceException, SdkClientException, LambdaException
Adds a provisioned concurrency configuration to a function's alias or version.
putProvisionedConcurrencyConfigRequest - InvalidParameterValueException - One of the parameters in the request is invalid.ResourceNotFoundException - The resource specified in the request does not exist.ResourceConflictException - The resource already exists, or another operation is in progress.TooManyRequestsException - The request throughput limit was exceeded.ServiceException - The AWS Lambda service encountered an internal error.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault PutProvisionedConcurrencyConfigResponse putProvisionedConcurrencyConfig(Consumer<PutProvisionedConcurrencyConfigRequest.Builder> putProvisionedConcurrencyConfigRequest) throws InvalidParameterValueException, ResourceNotFoundException, ResourceConflictException, TooManyRequestsException, ServiceException, AwsServiceException, SdkClientException, LambdaException
Adds a provisioned concurrency configuration to a function's alias or version.
This is a convenience which creates an instance of the PutProvisionedConcurrencyConfigRequest.Builder
avoiding the need to create one manually via PutProvisionedConcurrencyConfigRequest.builder()
putProvisionedConcurrencyConfigRequest - A Consumer that will call methods on PutProvisionedConcurrencyConfigRequest.Builder to
create a request.InvalidParameterValueException - One of the parameters in the request is invalid.ResourceNotFoundException - The resource specified in the request does not exist.ResourceConflictException - The resource already exists, or another operation is in progress.TooManyRequestsException - The request throughput limit was exceeded.ServiceException - The AWS Lambda service encountered an internal error.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault RemoveLayerVersionPermissionResponse removeLayerVersionPermission(RemoveLayerVersionPermissionRequest removeLayerVersionPermissionRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, PreconditionFailedException, AwsServiceException, SdkClientException, LambdaException
Removes a statement from the permissions policy for a version of an AWS Lambda layer. For more information, see AddLayerVersionPermission.
removeLayerVersionPermissionRequest - ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource specified in the request does not exist.InvalidParameterValueException - One of the parameters in the request is invalid.TooManyRequestsException - The request throughput limit was exceeded.PreconditionFailedException - The RevisionId provided does not match the latest RevisionId for the Lambda function or alias. Call the
GetFunction or the GetAlias API to retrieve the latest RevisionId for your
resource.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault RemoveLayerVersionPermissionResponse removeLayerVersionPermission(Consumer<RemoveLayerVersionPermissionRequest.Builder> removeLayerVersionPermissionRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, PreconditionFailedException, AwsServiceException, SdkClientException, LambdaException
Removes a statement from the permissions policy for a version of an AWS Lambda layer. For more information, see AddLayerVersionPermission.
This is a convenience which creates an instance of the RemoveLayerVersionPermissionRequest.Builder
avoiding the need to create one manually via RemoveLayerVersionPermissionRequest.builder()
removeLayerVersionPermissionRequest - A Consumer that will call methods on RemoveLayerVersionPermissionRequest.Builder to create
a request.ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource specified in the request does not exist.InvalidParameterValueException - One of the parameters in the request is invalid.TooManyRequestsException - The request throughput limit was exceeded.PreconditionFailedException - The RevisionId provided does not match the latest RevisionId for the Lambda function or alias. Call the
GetFunction or the GetAlias API to retrieve the latest RevisionId for your
resource.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault RemovePermissionResponse removePermission(RemovePermissionRequest removePermissionRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, PreconditionFailedException, AwsServiceException, SdkClientException, LambdaException
Revokes function-use permission from an AWS service or another account. You can get the ID of the statement from the output of GetPolicy.
removePermissionRequest - ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource specified in the request does not exist.InvalidParameterValueException - One of the parameters in the request is invalid.TooManyRequestsException - The request throughput limit was exceeded.PreconditionFailedException - The RevisionId provided does not match the latest RevisionId for the Lambda function or alias. Call the
GetFunction or the GetAlias API to retrieve the latest RevisionId for your
resource.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault RemovePermissionResponse removePermission(Consumer<RemovePermissionRequest.Builder> removePermissionRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, PreconditionFailedException, AwsServiceException, SdkClientException, LambdaException
Revokes function-use permission from an AWS service or another account. You can get the ID of the statement from the output of GetPolicy.
This is a convenience which creates an instance of the RemovePermissionRequest.Builder avoiding the need
to create one manually via RemovePermissionRequest.builder()
removePermissionRequest - A Consumer that will call methods on RemovePermissionRequest.Builder to create a request.ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource specified in the request does not exist.InvalidParameterValueException - One of the parameters in the request is invalid.TooManyRequestsException - The request throughput limit was exceeded.PreconditionFailedException - The RevisionId provided does not match the latest RevisionId for the Lambda function or alias. Call the
GetFunction or the GetAlias API to retrieve the latest RevisionId for your
resource.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault TagResourceResponse tagResource(TagResourceRequest tagResourceRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, ResourceConflictException, AwsServiceException, SdkClientException, LambdaException
Adds tags to a function.
tagResourceRequest - ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource specified in the request does not exist.InvalidParameterValueException - One of the parameters in the request is invalid.TooManyRequestsException - The request throughput limit was exceeded.ResourceConflictException - The resource already exists, or another operation is in progress.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault TagResourceResponse tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, ResourceConflictException, AwsServiceException, SdkClientException, LambdaException
Adds tags to a function.
This is a convenience which creates an instance of the TagResourceRequest.Builder avoiding the need to
create one manually via TagResourceRequest.builder()
tagResourceRequest - A Consumer that will call methods on TagResourceRequest.Builder to create a request.ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource specified in the request does not exist.InvalidParameterValueException - One of the parameters in the request is invalid.TooManyRequestsException - The request throughput limit was exceeded.ResourceConflictException - The resource already exists, or another operation is in progress.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault UntagResourceResponse untagResource(UntagResourceRequest untagResourceRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, ResourceConflictException, AwsServiceException, SdkClientException, LambdaException
Removes tags from a function.
untagResourceRequest - ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource specified in the request does not exist.InvalidParameterValueException - One of the parameters in the request is invalid.TooManyRequestsException - The request throughput limit was exceeded.ResourceConflictException - The resource already exists, or another operation is in progress.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault UntagResourceResponse untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, ResourceConflictException, AwsServiceException, SdkClientException, LambdaException
Removes tags from a function.
This is a convenience which creates an instance of the UntagResourceRequest.Builder avoiding the need to
create one manually via UntagResourceRequest.builder()
untagResourceRequest - A Consumer that will call methods on UntagResourceRequest.Builder to create a request.ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource specified in the request does not exist.InvalidParameterValueException - One of the parameters in the request is invalid.TooManyRequestsException - The request throughput limit was exceeded.ResourceConflictException - The resource already exists, or another operation is in progress.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault UpdateAliasResponse updateAlias(UpdateAliasRequest updateAliasRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, PreconditionFailedException, ResourceConflictException, AwsServiceException, SdkClientException, LambdaException
Updates the configuration of a Lambda function alias.
updateAliasRequest - ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource specified in the request does not exist.InvalidParameterValueException - One of the parameters in the request is invalid.TooManyRequestsException - The request throughput limit was exceeded.PreconditionFailedException - The RevisionId provided does not match the latest RevisionId for the Lambda function or alias. Call the
GetFunction or the GetAlias API to retrieve the latest RevisionId for your
resource.ResourceConflictException - The resource already exists, or another operation is in progress.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault UpdateAliasResponse updateAlias(Consumer<UpdateAliasRequest.Builder> updateAliasRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, PreconditionFailedException, ResourceConflictException, AwsServiceException, SdkClientException, LambdaException
Updates the configuration of a Lambda function alias.
This is a convenience which creates an instance of the UpdateAliasRequest.Builder avoiding the need to
create one manually via UpdateAliasRequest.builder()
updateAliasRequest - A Consumer that will call methods on UpdateAliasRequest.Builder to create a request.ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource specified in the request does not exist.InvalidParameterValueException - One of the parameters in the request is invalid.TooManyRequestsException - The request throughput limit was exceeded.PreconditionFailedException - The RevisionId provided does not match the latest RevisionId for the Lambda function or alias. Call the
GetFunction or the GetAlias API to retrieve the latest RevisionId for your
resource.ResourceConflictException - The resource already exists, or another operation is in progress.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault UpdateEventSourceMappingResponse updateEventSourceMapping(UpdateEventSourceMappingRequest updateEventSourceMappingRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, ResourceConflictException, ResourceInUseException, AwsServiceException, SdkClientException, LambdaException
Updates an event source mapping. You can change the function that AWS Lambda invokes, or pause invocation and resume later from the same location.
The following error handling options are only available for stream sources (DynamoDB and Kinesis):
BisectBatchOnFunctionError - If the function returns an error, split the batch in two and retry.
DestinationConfig - Send discarded records to an Amazon SQS queue or Amazon SNS topic.
MaximumRecordAgeInSeconds - Discard records older than the specified age. Default -1 (infinite).
Minimum 60. Maximum 604800.
MaximumRetryAttempts - Discard records after the specified number of retries. Default -1 (infinite).
Minimum 0. Maximum 10000. When infinite, failed records will be retried until the record expires.
ParallelizationFactor - Process multiple batches from each shard concurrently.
updateEventSourceMappingRequest - ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource specified in the request does not exist.InvalidParameterValueException - One of the parameters in the request is invalid.TooManyRequestsException - The request throughput limit was exceeded.ResourceConflictException - The resource already exists, or another operation is in progress.ResourceInUseException - The operation conflicts with the resource's availability. For example, you attempted to update an
EventSource Mapping in CREATING, or tried to delete a EventSource mapping currently in the UPDATING
state.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault UpdateEventSourceMappingResponse updateEventSourceMapping(Consumer<UpdateEventSourceMappingRequest.Builder> updateEventSourceMappingRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, ResourceConflictException, ResourceInUseException, AwsServiceException, SdkClientException, LambdaException
Updates an event source mapping. You can change the function that AWS Lambda invokes, or pause invocation and resume later from the same location.
The following error handling options are only available for stream sources (DynamoDB and Kinesis):
BisectBatchOnFunctionError - If the function returns an error, split the batch in two and retry.
DestinationConfig - Send discarded records to an Amazon SQS queue or Amazon SNS topic.
MaximumRecordAgeInSeconds - Discard records older than the specified age. Default -1 (infinite).
Minimum 60. Maximum 604800.
MaximumRetryAttempts - Discard records after the specified number of retries. Default -1 (infinite).
Minimum 0. Maximum 10000. When infinite, failed records will be retried until the record expires.
ParallelizationFactor - Process multiple batches from each shard concurrently.
This is a convenience which creates an instance of the UpdateEventSourceMappingRequest.Builder avoiding
the need to create one manually via UpdateEventSourceMappingRequest.builder()
updateEventSourceMappingRequest - A Consumer that will call methods on UpdateEventSourceMappingRequest.Builder to create a
request.ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource specified in the request does not exist.InvalidParameterValueException - One of the parameters in the request is invalid.TooManyRequestsException - The request throughput limit was exceeded.ResourceConflictException - The resource already exists, or another operation is in progress.ResourceInUseException - The operation conflicts with the resource's availability. For example, you attempted to update an
EventSource Mapping in CREATING, or tried to delete a EventSource mapping currently in the UPDATING
state.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault UpdateFunctionCodeResponse updateFunctionCode(UpdateFunctionCodeRequest updateFunctionCodeRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, CodeStorageExceededException, PreconditionFailedException, ResourceConflictException, AwsServiceException, SdkClientException, LambdaException
Updates a Lambda function's code.
The function's code is locked when you publish a version. You can't modify the code of a published version, only the unpublished version.
updateFunctionCodeRequest - ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource specified in the request does not exist.InvalidParameterValueException - One of the parameters in the request is invalid.TooManyRequestsException - The request throughput limit was exceeded.CodeStorageExceededException - You have exceeded your maximum total code size per account. Learn morePreconditionFailedException - The RevisionId provided does not match the latest RevisionId for the Lambda function or alias. Call the
GetFunction or the GetAlias API to retrieve the latest RevisionId for your
resource.ResourceConflictException - The resource already exists, or another operation is in progress.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault UpdateFunctionCodeResponse updateFunctionCode(Consumer<UpdateFunctionCodeRequest.Builder> updateFunctionCodeRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, CodeStorageExceededException, PreconditionFailedException, ResourceConflictException, AwsServiceException, SdkClientException, LambdaException
Updates a Lambda function's code.
The function's code is locked when you publish a version. You can't modify the code of a published version, only the unpublished version.
This is a convenience which creates an instance of the UpdateFunctionCodeRequest.Builder avoiding the
need to create one manually via UpdateFunctionCodeRequest.builder()
updateFunctionCodeRequest - A Consumer that will call methods on UpdateFunctionCodeRequest.Builder to create a
request.ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource specified in the request does not exist.InvalidParameterValueException - One of the parameters in the request is invalid.TooManyRequestsException - The request throughput limit was exceeded.CodeStorageExceededException - You have exceeded your maximum total code size per account. Learn morePreconditionFailedException - The RevisionId provided does not match the latest RevisionId for the Lambda function or alias. Call the
GetFunction or the GetAlias API to retrieve the latest RevisionId for your
resource.ResourceConflictException - The resource already exists, or another operation is in progress.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault UpdateFunctionConfigurationResponse updateFunctionConfiguration(UpdateFunctionConfigurationRequest updateFunctionConfigurationRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, ResourceConflictException, PreconditionFailedException, AwsServiceException, SdkClientException, LambdaException
Modify the version-specific settings of a Lambda function.
When you update a function, Lambda provisions an instance of the function and its supporting resources. If your
function connects to a VPC, this process can take a minute. During this time, you can't modify the function, but
you can still invoke it. The LastUpdateStatus, LastUpdateStatusReason, and
LastUpdateStatusReasonCode fields in the response from GetFunctionConfiguration indicate when
the update is complete and the function is processing events with the new configuration. For more information,
see Function States.
These settings can vary between versions of a function and are locked when you publish a version. You can't modify the configuration of a published version, only the unpublished version.
To configure function concurrency, use PutFunctionConcurrency. To grant invoke permissions to an account or AWS service, use AddPermission.
updateFunctionConfigurationRequest - ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource specified in the request does not exist.InvalidParameterValueException - One of the parameters in the request is invalid.TooManyRequestsException - The request throughput limit was exceeded.ResourceConflictException - The resource already exists, or another operation is in progress.PreconditionFailedException - The RevisionId provided does not match the latest RevisionId for the Lambda function or alias. Call the
GetFunction or the GetAlias API to retrieve the latest RevisionId for your
resource.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault UpdateFunctionConfigurationResponse updateFunctionConfiguration(Consumer<UpdateFunctionConfigurationRequest.Builder> updateFunctionConfigurationRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, ResourceConflictException, PreconditionFailedException, AwsServiceException, SdkClientException, LambdaException
Modify the version-specific settings of a Lambda function.
When you update a function, Lambda provisions an instance of the function and its supporting resources. If your
function connects to a VPC, this process can take a minute. During this time, you can't modify the function, but
you can still invoke it. The LastUpdateStatus, LastUpdateStatusReason, and
LastUpdateStatusReasonCode fields in the response from GetFunctionConfiguration indicate when
the update is complete and the function is processing events with the new configuration. For more information,
see Function States.
These settings can vary between versions of a function and are locked when you publish a version. You can't modify the configuration of a published version, only the unpublished version.
To configure function concurrency, use PutFunctionConcurrency. To grant invoke permissions to an account or AWS service, use AddPermission.
This is a convenience which creates an instance of the UpdateFunctionConfigurationRequest.Builder
avoiding the need to create one manually via UpdateFunctionConfigurationRequest.builder()
updateFunctionConfigurationRequest - A Consumer that will call methods on UpdateFunctionConfigurationRequest.Builder to create
a request.ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource specified in the request does not exist.InvalidParameterValueException - One of the parameters in the request is invalid.TooManyRequestsException - The request throughput limit was exceeded.ResourceConflictException - The resource already exists, or another operation is in progress.PreconditionFailedException - The RevisionId provided does not match the latest RevisionId for the Lambda function or alias. Call the
GetFunction or the GetAlias API to retrieve the latest RevisionId for your
resource.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault UpdateFunctionEventInvokeConfigResponse updateFunctionEventInvokeConfig(UpdateFunctionEventInvokeConfigRequest updateFunctionEventInvokeConfigRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
Updates the configuration for asynchronous invocation for a function, version, or alias.
To configure options for asynchronous invocation, use PutFunctionEventInvokeConfig.
updateFunctionEventInvokeConfigRequest - ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource specified in the request does not exist.InvalidParameterValueException - One of the parameters in the request is invalid.TooManyRequestsException - The request throughput limit was exceeded.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault UpdateFunctionEventInvokeConfigResponse updateFunctionEventInvokeConfig(Consumer<UpdateFunctionEventInvokeConfigRequest.Builder> updateFunctionEventInvokeConfigRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
Updates the configuration for asynchronous invocation for a function, version, or alias.
To configure options for asynchronous invocation, use PutFunctionEventInvokeConfig.
This is a convenience which creates an instance of the UpdateFunctionEventInvokeConfigRequest.Builder
avoiding the need to create one manually via UpdateFunctionEventInvokeConfigRequest.builder()
updateFunctionEventInvokeConfigRequest - A Consumer that will call methods on UpdateFunctionEventInvokeConfigRequest.Builder to
create a request.ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource specified in the request does not exist.InvalidParameterValueException - One of the parameters in the request is invalid.TooManyRequestsException - The request throughput limit was exceeded.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptionstatic ServiceMetadata serviceMetadata()
default LambdaWaiter waiter()
LambdaWaiter using this client.
Waiters created via this method are managed by the SDK and resources will be released when the service client is closed.
LambdaWaiterCopyright © 2020. All rights reserved.