Interface LambdaClient
- All Superinterfaces:
AutoCloseable,AwsClient,SdkAutoCloseable,SdkClient
builder() method.
Overview
Lambda is a compute service that lets you run code without provisioning or managing servers. Lambda runs your code on a high-availability compute infrastructure and performs all of the administration of the compute resources, including server and operating system maintenance, capacity provisioning and automatic scaling, code monitoring and logging. With Lambda, you can run code for virtually any type of application or backend service. For more information about the Lambda service, see What is Lambda in the Lambda Developer Guide.
The Lambda API Reference provides information about each of the API methods, including details about the parameters in each API request and response.
You can use Software Development Kits (SDKs), Integrated Development Environment (IDE) Toolkits, and command line tools to access the API. For installation instructions, see Tools for Amazon Web Services.
For a list of Region-specific endpoints that Lambda supports, see Lambda endpoints and quotas in the Amazon Web Services General Reference..
When making the API calls, you will need to authenticate your request by providing a signature. Lambda supports signature version 4. For more information, see Signature Version 4 signing process in the Amazon Web Services General Reference..
CA certificates
Because Amazon Web Services SDKs use the CA certificates from your computer, changes to the certificates on the Amazon Web Services servers can cause connection failures when you attempt to use an SDK. You can prevent these failures by keeping your computer's CA certificates and operating system up-to-date. If you encounter this issue in a corporate environment and do not manage your own computer, you might need to ask an administrator to assist with the update process. The following list shows minimum operating system and Java versions:
-
Microsoft Windows versions that have updates from January 2005 or later installed contain at least one of the required CAs in their trust list.
-
Mac OS X 10.4 with Java for Mac OS X 10.4 Release 5 (February 2007), Mac OS X 10.5 (October 2007), and later versions contain at least one of the required CAs in their trust list.
-
Red Hat Enterprise Linux 5 (March 2007), 6, and 7 and CentOS 5, 6, and 7 all contain at least one of the required CAs in their default trusted CA list.
-
Java 1.4.2_12 (May 2006), 5 Update 2 (March 2005), and all later versions, including Java 6 (December 2006), 7, and 8, contain at least one of the required CAs in their default trusted CA list.
When accessing the Lambda management console or Lambda API endpoints, whether through browsers or programmatically, you will need to ensure your client machines support any of the following CAs:
-
Amazon Root CA 1
-
Starfield Services Root Certificate Authority - G2
-
Starfield Class 2 Certification Authority
Root certificates from the first two authorities are available from Amazon trust services, but keeping your computer up-to-date is the more straightforward solution. To learn more about ACM-provided certificates, see Amazon Web Services Certificate Manager FAQs.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringValue for looking up the service's metadata from theServiceMetadataProvider.static final String -
Method Summary
Modifier and TypeMethodDescriptionaddLayerVersionPermission(Consumer<AddLayerVersionPermissionRequest.Builder> addLayerVersionPermissionRequest) Adds permissions to the resource-based policy of a version of an Lambda layer.addLayerVersionPermission(AddLayerVersionPermissionRequest addLayerVersionPermissionRequest) Adds permissions to the resource-based policy of a version of an Lambda layer.default AddPermissionResponseaddPermission(Consumer<AddPermissionRequest.Builder> addPermissionRequest) Grants a principal permission to use a function.default AddPermissionResponseaddPermission(AddPermissionRequest addPermissionRequest) Grants a principal permission to use a function.static LambdaClientBuilderbuilder()Create a builder that can be used to configure and create aLambdaClient.static LambdaClientcreate()Create aLambdaClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.default CreateAliasResponsecreateAlias(Consumer<CreateAliasRequest.Builder> createAliasRequest) Creates an alias for a Lambda function version.default CreateAliasResponsecreateAlias(CreateAliasRequest createAliasRequest) Creates an alias for a Lambda function version.default CreateCodeSigningConfigResponsecreateCodeSigningConfig(Consumer<CreateCodeSigningConfigRequest.Builder> createCodeSigningConfigRequest) Creates a code signing configuration.default CreateCodeSigningConfigResponsecreateCodeSigningConfig(CreateCodeSigningConfigRequest createCodeSigningConfigRequest) Creates a code signing configuration.default CreateEventSourceMappingResponsecreateEventSourceMapping(Consumer<CreateEventSourceMappingRequest.Builder> createEventSourceMappingRequest) Creates a mapping between an event source and an Lambda function.default CreateEventSourceMappingResponsecreateEventSourceMapping(CreateEventSourceMappingRequest createEventSourceMappingRequest) Creates a mapping between an event source and an Lambda function.default CreateFunctionResponsecreateFunction(Consumer<CreateFunctionRequest.Builder> createFunctionRequest) Creates a Lambda function.default CreateFunctionResponsecreateFunction(CreateFunctionRequest createFunctionRequest) Creates a Lambda function.default CreateFunctionUrlConfigResponsecreateFunctionUrlConfig(Consumer<CreateFunctionUrlConfigRequest.Builder> createFunctionUrlConfigRequest) Creates a Lambda function URL with the specified configuration parameters.default CreateFunctionUrlConfigResponsecreateFunctionUrlConfig(CreateFunctionUrlConfigRequest createFunctionUrlConfigRequest) Creates a Lambda function URL with the specified configuration parameters.default DeleteAliasResponsedeleteAlias(Consumer<DeleteAliasRequest.Builder> deleteAliasRequest) Deletes a Lambda function alias.default DeleteAliasResponsedeleteAlias(DeleteAliasRequest deleteAliasRequest) Deletes a Lambda function alias.default DeleteCodeSigningConfigResponsedeleteCodeSigningConfig(Consumer<DeleteCodeSigningConfigRequest.Builder> deleteCodeSigningConfigRequest) Deletes the code signing configuration.default DeleteCodeSigningConfigResponsedeleteCodeSigningConfig(DeleteCodeSigningConfigRequest deleteCodeSigningConfigRequest) Deletes the code signing configuration.default DeleteEventSourceMappingResponsedeleteEventSourceMapping(Consumer<DeleteEventSourceMappingRequest.Builder> deleteEventSourceMappingRequest) Deletes an event source mapping.default DeleteEventSourceMappingResponsedeleteEventSourceMapping(DeleteEventSourceMappingRequest deleteEventSourceMappingRequest) Deletes an event source mapping.default DeleteFunctionResponsedeleteFunction(Consumer<DeleteFunctionRequest.Builder> deleteFunctionRequest) Deletes a Lambda function.default DeleteFunctionResponsedeleteFunction(DeleteFunctionRequest deleteFunctionRequest) Deletes a Lambda function.deleteFunctionCodeSigningConfig(Consumer<DeleteFunctionCodeSigningConfigRequest.Builder> deleteFunctionCodeSigningConfigRequest) Removes the code signing configuration from the function.deleteFunctionCodeSigningConfig(DeleteFunctionCodeSigningConfigRequest deleteFunctionCodeSigningConfigRequest) Removes the code signing configuration from the function.deleteFunctionConcurrency(Consumer<DeleteFunctionConcurrencyRequest.Builder> deleteFunctionConcurrencyRequest) Removes a concurrent execution limit from a function.deleteFunctionConcurrency(DeleteFunctionConcurrencyRequest deleteFunctionConcurrencyRequest) Removes a concurrent execution limit from a function.deleteFunctionEventInvokeConfig(Consumer<DeleteFunctionEventInvokeConfigRequest.Builder> deleteFunctionEventInvokeConfigRequest) Deletes the configuration for asynchronous invocation for a function, version, or alias.deleteFunctionEventInvokeConfig(DeleteFunctionEventInvokeConfigRequest deleteFunctionEventInvokeConfigRequest) Deletes the configuration for asynchronous invocation for a function, version, or alias.default DeleteFunctionUrlConfigResponsedeleteFunctionUrlConfig(Consumer<DeleteFunctionUrlConfigRequest.Builder> deleteFunctionUrlConfigRequest) Deletes a Lambda function URL.default DeleteFunctionUrlConfigResponsedeleteFunctionUrlConfig(DeleteFunctionUrlConfigRequest deleteFunctionUrlConfigRequest) Deletes a Lambda function URL.default DeleteLayerVersionResponsedeleteLayerVersion(Consumer<DeleteLayerVersionRequest.Builder> deleteLayerVersionRequest) Deletes a version of an Lambda layer.default DeleteLayerVersionResponsedeleteLayerVersion(DeleteLayerVersionRequest deleteLayerVersionRequest) Deletes a version of an Lambda layer.deleteProvisionedConcurrencyConfig(Consumer<DeleteProvisionedConcurrencyConfigRequest.Builder> deleteProvisionedConcurrencyConfigRequest) Deletes the provisioned concurrency configuration for a function.deleteProvisionedConcurrencyConfig(DeleteProvisionedConcurrencyConfigRequest deleteProvisionedConcurrencyConfigRequest) Deletes the provisioned concurrency configuration for a function.default GetAccountSettingsResponseRetrieves details about your account's limits and usage in an Amazon Web Services Region.default GetAccountSettingsResponsegetAccountSettings(Consumer<GetAccountSettingsRequest.Builder> getAccountSettingsRequest) Retrieves details about your account's limits and usage in an Amazon Web Services Region.default GetAccountSettingsResponsegetAccountSettings(GetAccountSettingsRequest getAccountSettingsRequest) Retrieves details about your account's limits and usage in an Amazon Web Services Region.default GetAliasResponsegetAlias(Consumer<GetAliasRequest.Builder> getAliasRequest) Returns details about a Lambda function alias.default GetAliasResponsegetAlias(GetAliasRequest getAliasRequest) Returns details about a Lambda function alias.default GetCodeSigningConfigResponsegetCodeSigningConfig(Consumer<GetCodeSigningConfigRequest.Builder> getCodeSigningConfigRequest) Returns information about the specified code signing configuration.default GetCodeSigningConfigResponsegetCodeSigningConfig(GetCodeSigningConfigRequest getCodeSigningConfigRequest) Returns information about the specified code signing configuration.default GetEventSourceMappingResponsegetEventSourceMapping(Consumer<GetEventSourceMappingRequest.Builder> getEventSourceMappingRequest) Returns details about an event source mapping.default GetEventSourceMappingResponsegetEventSourceMapping(GetEventSourceMappingRequest getEventSourceMappingRequest) Returns details about an event source mapping.default GetFunctionResponsegetFunction(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 GetFunctionResponsegetFunction(GetFunctionRequest getFunctionRequest) Returns information about the function or function version, with a link to download the deployment package that's valid for 10 minutes.getFunctionCodeSigningConfig(Consumer<GetFunctionCodeSigningConfigRequest.Builder> getFunctionCodeSigningConfigRequest) Returns the code signing configuration for the specified function.getFunctionCodeSigningConfig(GetFunctionCodeSigningConfigRequest getFunctionCodeSigningConfigRequest) Returns the code signing configuration for the specified function.default GetFunctionConcurrencyResponsegetFunctionConcurrency(Consumer<GetFunctionConcurrencyRequest.Builder> getFunctionConcurrencyRequest) Returns details about the reserved concurrency configuration for a function.default GetFunctionConcurrencyResponsegetFunctionConcurrency(GetFunctionConcurrencyRequest getFunctionConcurrencyRequest) Returns details about the reserved concurrency configuration for a function.default GetFunctionConfigurationResponsegetFunctionConfiguration(Consumer<GetFunctionConfigurationRequest.Builder> getFunctionConfigurationRequest) Returns the version-specific settings of a Lambda function or version.default GetFunctionConfigurationResponsegetFunctionConfiguration(GetFunctionConfigurationRequest getFunctionConfigurationRequest) Returns the version-specific settings of a Lambda function or version.getFunctionEventInvokeConfig(Consumer<GetFunctionEventInvokeConfigRequest.Builder> getFunctionEventInvokeConfigRequest) Retrieves the configuration for asynchronous invocation for a function, version, or alias.getFunctionEventInvokeConfig(GetFunctionEventInvokeConfigRequest getFunctionEventInvokeConfigRequest) Retrieves the configuration for asynchronous invocation for a function, version, or alias.getFunctionRecursionConfig(Consumer<GetFunctionRecursionConfigRequest.Builder> getFunctionRecursionConfigRequest) Returns your function's recursive loop detection configuration.getFunctionRecursionConfig(GetFunctionRecursionConfigRequest getFunctionRecursionConfigRequest) Returns your function's recursive loop detection configuration.default GetFunctionUrlConfigResponsegetFunctionUrlConfig(Consumer<GetFunctionUrlConfigRequest.Builder> getFunctionUrlConfigRequest) Returns details about a Lambda function URL.default GetFunctionUrlConfigResponsegetFunctionUrlConfig(GetFunctionUrlConfigRequest getFunctionUrlConfigRequest) Returns details about a Lambda function URL.default GetLayerVersionResponsegetLayerVersion(Consumer<GetLayerVersionRequest.Builder> getLayerVersionRequest) Returns information about a version of an Lambda layer, with a link to download the layer archive that's valid for 10 minutes.default GetLayerVersionResponsegetLayerVersion(GetLayerVersionRequest getLayerVersionRequest) Returns information about a version of an Lambda layer, with a link to download the layer archive that's valid for 10 minutes.default GetLayerVersionByArnResponsegetLayerVersionByArn(Consumer<GetLayerVersionByArnRequest.Builder> getLayerVersionByArnRequest) Returns information about a version of an Lambda layer, with a link to download the layer archive that's valid for 10 minutes.default GetLayerVersionByArnResponsegetLayerVersionByArn(GetLayerVersionByArnRequest getLayerVersionByArnRequest) Returns information about a version of an Lambda layer, with a link to download the layer archive that's valid for 10 minutes.default GetLayerVersionPolicyResponsegetLayerVersionPolicy(Consumer<GetLayerVersionPolicyRequest.Builder> getLayerVersionPolicyRequest) Returns the permission policy for a version of an Lambda layer.default GetLayerVersionPolicyResponsegetLayerVersionPolicy(GetLayerVersionPolicyRequest getLayerVersionPolicyRequest) Returns the permission policy for a version of an Lambda layer.default GetPolicyResponsegetPolicy(Consumer<GetPolicyRequest.Builder> getPolicyRequest) Returns the resource-based IAM policy for a function, version, or alias.default GetPolicyResponsegetPolicy(GetPolicyRequest getPolicyRequest) Returns the resource-based IAM policy for a function, version, or alias.getProvisionedConcurrencyConfig(Consumer<GetProvisionedConcurrencyConfigRequest.Builder> getProvisionedConcurrencyConfigRequest) Retrieves the provisioned concurrency configuration for a function's alias or version.getProvisionedConcurrencyConfig(GetProvisionedConcurrencyConfigRequest getProvisionedConcurrencyConfigRequest) Retrieves the provisioned concurrency configuration for a function's alias or version.getRuntimeManagementConfig(Consumer<GetRuntimeManagementConfigRequest.Builder> getRuntimeManagementConfigRequest) Retrieves the runtime management configuration for a function's version.getRuntimeManagementConfig(GetRuntimeManagementConfigRequest getRuntimeManagementConfigRequest) Retrieves the runtime management configuration for a function's version.default InvokeResponseinvoke(Consumer<InvokeRequest.Builder> invokeRequest) Invokes a Lambda function.default InvokeResponseinvoke(InvokeRequest invokeRequest) Invokes a Lambda function.default ListAliasesResponselistAliases(Consumer<ListAliasesRequest.Builder> listAliasesRequest) Returns a list of aliases for a Lambda function.default ListAliasesResponselistAliases(ListAliasesRequest listAliasesRequest) Returns a list of aliases for a Lambda function.default ListAliasesIterablelistAliasesPaginator(Consumer<ListAliasesRequest.Builder> listAliasesRequest) This is a variant oflistAliases(software.amazon.awssdk.services.lambda.model.ListAliasesRequest)operation.default ListAliasesIterablelistAliasesPaginator(ListAliasesRequest listAliasesRequest) This is a variant oflistAliases(software.amazon.awssdk.services.lambda.model.ListAliasesRequest)operation.default ListCodeSigningConfigsResponselistCodeSigningConfigs(Consumer<ListCodeSigningConfigsRequest.Builder> listCodeSigningConfigsRequest) Returns a list of code signing configurations.default ListCodeSigningConfigsResponselistCodeSigningConfigs(ListCodeSigningConfigsRequest listCodeSigningConfigsRequest) Returns a list of code signing configurations.default ListCodeSigningConfigsIterablelistCodeSigningConfigsPaginator(Consumer<ListCodeSigningConfigsRequest.Builder> listCodeSigningConfigsRequest) This is a variant oflistCodeSigningConfigs(software.amazon.awssdk.services.lambda.model.ListCodeSigningConfigsRequest)operation.default ListCodeSigningConfigsIterablelistCodeSigningConfigsPaginator(ListCodeSigningConfigsRequest listCodeSigningConfigsRequest) This is a variant oflistCodeSigningConfigs(software.amazon.awssdk.services.lambda.model.ListCodeSigningConfigsRequest)operation.default ListEventSourceMappingsResponseLists event source mappings.default ListEventSourceMappingsResponselistEventSourceMappings(Consumer<ListEventSourceMappingsRequest.Builder> listEventSourceMappingsRequest) Lists event source mappings.default ListEventSourceMappingsResponselistEventSourceMappings(ListEventSourceMappingsRequest listEventSourceMappingsRequest) Lists event source mappings.default ListEventSourceMappingsIterableThis is a variant oflistEventSourceMappings(software.amazon.awssdk.services.lambda.model.ListEventSourceMappingsRequest)operation.default ListEventSourceMappingsIterablelistEventSourceMappingsPaginator(Consumer<ListEventSourceMappingsRequest.Builder> listEventSourceMappingsRequest) This is a variant oflistEventSourceMappings(software.amazon.awssdk.services.lambda.model.ListEventSourceMappingsRequest)operation.default ListEventSourceMappingsIterablelistEventSourceMappingsPaginator(ListEventSourceMappingsRequest listEventSourceMappingsRequest) This is a variant oflistEventSourceMappings(software.amazon.awssdk.services.lambda.model.ListEventSourceMappingsRequest)operation.listFunctionEventInvokeConfigs(Consumer<ListFunctionEventInvokeConfigsRequest.Builder> listFunctionEventInvokeConfigsRequest) Retrieves a list of configurations for asynchronous invocation for a function.listFunctionEventInvokeConfigs(ListFunctionEventInvokeConfigsRequest listFunctionEventInvokeConfigsRequest) Retrieves a list of configurations for asynchronous invocation for a function.listFunctionEventInvokeConfigsPaginator(Consumer<ListFunctionEventInvokeConfigsRequest.Builder> listFunctionEventInvokeConfigsRequest) This is a variant oflistFunctionEventInvokeConfigs(software.amazon.awssdk.services.lambda.model.ListFunctionEventInvokeConfigsRequest)operation.listFunctionEventInvokeConfigsPaginator(ListFunctionEventInvokeConfigsRequest listFunctionEventInvokeConfigsRequest) This is a variant oflistFunctionEventInvokeConfigs(software.amazon.awssdk.services.lambda.model.ListFunctionEventInvokeConfigsRequest)operation.default ListFunctionsResponseReturns a list of Lambda functions, with the version-specific configuration of each.default ListFunctionsResponselistFunctions(Consumer<ListFunctionsRequest.Builder> listFunctionsRequest) Returns a list of Lambda functions, with the version-specific configuration of each.default ListFunctionsResponselistFunctions(ListFunctionsRequest listFunctionsRequest) Returns a list of Lambda functions, with the version-specific configuration of each.listFunctionsByCodeSigningConfig(Consumer<ListFunctionsByCodeSigningConfigRequest.Builder> listFunctionsByCodeSigningConfigRequest) List the functions that use the specified code signing configuration.listFunctionsByCodeSigningConfig(ListFunctionsByCodeSigningConfigRequest listFunctionsByCodeSigningConfigRequest) List the functions that use the specified code signing configuration.listFunctionsByCodeSigningConfigPaginator(Consumer<ListFunctionsByCodeSigningConfigRequest.Builder> listFunctionsByCodeSigningConfigRequest) This is a variant oflistFunctionsByCodeSigningConfig(software.amazon.awssdk.services.lambda.model.ListFunctionsByCodeSigningConfigRequest)operation.listFunctionsByCodeSigningConfigPaginator(ListFunctionsByCodeSigningConfigRequest listFunctionsByCodeSigningConfigRequest) This is a variant oflistFunctionsByCodeSigningConfig(software.amazon.awssdk.services.lambda.model.ListFunctionsByCodeSigningConfigRequest)operation.default ListFunctionsIterableThis is a variant oflistFunctions(software.amazon.awssdk.services.lambda.model.ListFunctionsRequest)operation.default ListFunctionsIterablelistFunctionsPaginator(Consumer<ListFunctionsRequest.Builder> listFunctionsRequest) This is a variant oflistFunctions(software.amazon.awssdk.services.lambda.model.ListFunctionsRequest)operation.default ListFunctionsIterablelistFunctionsPaginator(ListFunctionsRequest listFunctionsRequest) This is a variant oflistFunctions(software.amazon.awssdk.services.lambda.model.ListFunctionsRequest)operation.default ListFunctionUrlConfigsResponselistFunctionUrlConfigs(Consumer<ListFunctionUrlConfigsRequest.Builder> listFunctionUrlConfigsRequest) Returns a list of Lambda function URLs for the specified function.default ListFunctionUrlConfigsResponselistFunctionUrlConfigs(ListFunctionUrlConfigsRequest listFunctionUrlConfigsRequest) Returns a list of Lambda function URLs for the specified function.default ListFunctionUrlConfigsIterablelistFunctionUrlConfigsPaginator(Consumer<ListFunctionUrlConfigsRequest.Builder> listFunctionUrlConfigsRequest) This is a variant oflistFunctionUrlConfigs(software.amazon.awssdk.services.lambda.model.ListFunctionUrlConfigsRequest)operation.default ListFunctionUrlConfigsIterablelistFunctionUrlConfigsPaginator(ListFunctionUrlConfigsRequest listFunctionUrlConfigsRequest) This is a variant oflistFunctionUrlConfigs(software.amazon.awssdk.services.lambda.model.ListFunctionUrlConfigsRequest)operation.default ListLayersResponseLists Lambda layers and shows information about the latest version of each.default ListLayersResponselistLayers(Consumer<ListLayersRequest.Builder> listLayersRequest) Lists Lambda layers and shows information about the latest version of each.default ListLayersResponselistLayers(ListLayersRequest listLayersRequest) Lists Lambda layers and shows information about the latest version of each.default ListLayersIterableThis is a variant oflistLayers(software.amazon.awssdk.services.lambda.model.ListLayersRequest)operation.default ListLayersIterablelistLayersPaginator(Consumer<ListLayersRequest.Builder> listLayersRequest) This is a variant oflistLayers(software.amazon.awssdk.services.lambda.model.ListLayersRequest)operation.default ListLayersIterablelistLayersPaginator(ListLayersRequest listLayersRequest) This is a variant oflistLayers(software.amazon.awssdk.services.lambda.model.ListLayersRequest)operation.default ListLayerVersionsResponselistLayerVersions(Consumer<ListLayerVersionsRequest.Builder> listLayerVersionsRequest) Lists the versions of an Lambda layer.default ListLayerVersionsResponselistLayerVersions(ListLayerVersionsRequest listLayerVersionsRequest) Lists the versions of an Lambda layer.default ListLayerVersionsIterablelistLayerVersionsPaginator(Consumer<ListLayerVersionsRequest.Builder> listLayerVersionsRequest) This is a variant oflistLayerVersions(software.amazon.awssdk.services.lambda.model.ListLayerVersionsRequest)operation.default ListLayerVersionsIterablelistLayerVersionsPaginator(ListLayerVersionsRequest listLayerVersionsRequest) This is a variant oflistLayerVersions(software.amazon.awssdk.services.lambda.model.ListLayerVersionsRequest)operation.listProvisionedConcurrencyConfigs(Consumer<ListProvisionedConcurrencyConfigsRequest.Builder> listProvisionedConcurrencyConfigsRequest) Retrieves a list of provisioned concurrency configurations for a function.listProvisionedConcurrencyConfigs(ListProvisionedConcurrencyConfigsRequest listProvisionedConcurrencyConfigsRequest) Retrieves a list of provisioned concurrency configurations for a function.listProvisionedConcurrencyConfigsPaginator(Consumer<ListProvisionedConcurrencyConfigsRequest.Builder> listProvisionedConcurrencyConfigsRequest) This is a variant oflistProvisionedConcurrencyConfigs(software.amazon.awssdk.services.lambda.model.ListProvisionedConcurrencyConfigsRequest)operation.listProvisionedConcurrencyConfigsPaginator(ListProvisionedConcurrencyConfigsRequest listProvisionedConcurrencyConfigsRequest) This is a variant oflistProvisionedConcurrencyConfigs(software.amazon.awssdk.services.lambda.model.ListProvisionedConcurrencyConfigsRequest)operation.default ListTagsResponselistTags(Consumer<ListTagsRequest.Builder> listTagsRequest) Returns a function, event source mapping, or code signing configuration's tags.default ListTagsResponselistTags(ListTagsRequest listTagsRequest) Returns a function, event source mapping, or code signing configuration's tags.default ListVersionsByFunctionResponselistVersionsByFunction(Consumer<ListVersionsByFunctionRequest.Builder> listVersionsByFunctionRequest) Returns a list of versions, with the version-specific configuration of each.default ListVersionsByFunctionResponselistVersionsByFunction(ListVersionsByFunctionRequest listVersionsByFunctionRequest) Returns a list of versions, with the version-specific configuration of each.default ListVersionsByFunctionIterablelistVersionsByFunctionPaginator(Consumer<ListVersionsByFunctionRequest.Builder> listVersionsByFunctionRequest) This is a variant oflistVersionsByFunction(software.amazon.awssdk.services.lambda.model.ListVersionsByFunctionRequest)operation.default ListVersionsByFunctionIterablelistVersionsByFunctionPaginator(ListVersionsByFunctionRequest listVersionsByFunctionRequest) This is a variant oflistVersionsByFunction(software.amazon.awssdk.services.lambda.model.ListVersionsByFunctionRequest)operation.default PublishLayerVersionResponsepublishLayerVersion(Consumer<PublishLayerVersionRequest.Builder> publishLayerVersionRequest) Creates an Lambda layer from a ZIP archive.default PublishLayerVersionResponsepublishLayerVersion(PublishLayerVersionRequest publishLayerVersionRequest) Creates an Lambda layer from a ZIP archive.default PublishVersionResponsepublishVersion(Consumer<PublishVersionRequest.Builder> publishVersionRequest) Creates a version from the current code and configuration of a function.default PublishVersionResponsepublishVersion(PublishVersionRequest publishVersionRequest) Creates a version from the current code and configuration of a function.putFunctionCodeSigningConfig(Consumer<PutFunctionCodeSigningConfigRequest.Builder> putFunctionCodeSigningConfigRequest) Update the code signing configuration for the function.putFunctionCodeSigningConfig(PutFunctionCodeSigningConfigRequest putFunctionCodeSigningConfigRequest) Update the code signing configuration for the function.default PutFunctionConcurrencyResponseputFunctionConcurrency(Consumer<PutFunctionConcurrencyRequest.Builder> putFunctionConcurrencyRequest) Sets the maximum number of simultaneous executions for a function, and reserves capacity for that concurrency level.default PutFunctionConcurrencyResponseputFunctionConcurrency(PutFunctionConcurrencyRequest putFunctionConcurrencyRequest) Sets the maximum number of simultaneous executions for a function, and reserves capacity for that concurrency level.putFunctionEventInvokeConfig(Consumer<PutFunctionEventInvokeConfigRequest.Builder> putFunctionEventInvokeConfigRequest) Configures options for asynchronous invocation on a function, version, or alias.putFunctionEventInvokeConfig(PutFunctionEventInvokeConfigRequest putFunctionEventInvokeConfigRequest) Configures options for asynchronous invocation on a function, version, or alias.putFunctionRecursionConfig(Consumer<PutFunctionRecursionConfigRequest.Builder> putFunctionRecursionConfigRequest) Sets your function's recursive loop detection configuration.putFunctionRecursionConfig(PutFunctionRecursionConfigRequest putFunctionRecursionConfigRequest) Sets your function's recursive loop detection configuration.putProvisionedConcurrencyConfig(Consumer<PutProvisionedConcurrencyConfigRequest.Builder> putProvisionedConcurrencyConfigRequest) Adds a provisioned concurrency configuration to a function's alias or version.putProvisionedConcurrencyConfig(PutProvisionedConcurrencyConfigRequest putProvisionedConcurrencyConfigRequest) Adds a provisioned concurrency configuration to a function's alias or version.putRuntimeManagementConfig(Consumer<PutRuntimeManagementConfigRequest.Builder> putRuntimeManagementConfigRequest) Sets the runtime management configuration for a function's version.putRuntimeManagementConfig(PutRuntimeManagementConfigRequest putRuntimeManagementConfigRequest) Sets the runtime management configuration for a function's version.removeLayerVersionPermission(Consumer<RemoveLayerVersionPermissionRequest.Builder> removeLayerVersionPermissionRequest) Removes a statement from the permissions policy for a version of an Lambda layer.removeLayerVersionPermission(RemoveLayerVersionPermissionRequest removeLayerVersionPermissionRequest) Removes a statement from the permissions policy for a version of an Lambda layer.default RemovePermissionResponseremovePermission(Consumer<RemovePermissionRequest.Builder> removePermissionRequest) Revokes function-use permission from an Amazon Web Services service or another Amazon Web Services account.default RemovePermissionResponseremovePermission(RemovePermissionRequest removePermissionRequest) Revokes function-use permission from an Amazon Web Services service or another Amazon Web Services account.default LambdaServiceClientConfigurationThe SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationstatic ServiceMetadatadefault TagResourceResponsetagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) Adds tags to a function, event source mapping, or code signing configuration.default TagResourceResponsetagResource(TagResourceRequest tagResourceRequest) Adds tags to a function, event source mapping, or code signing configuration.default UntagResourceResponseuntagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) Removes tags from a function, event source mapping, or code signing configuration.default UntagResourceResponseuntagResource(UntagResourceRequest untagResourceRequest) Removes tags from a function, event source mapping, or code signing configuration.default UpdateAliasResponseupdateAlias(Consumer<UpdateAliasRequest.Builder> updateAliasRequest) Updates the configuration of a Lambda function alias.default UpdateAliasResponseupdateAlias(UpdateAliasRequest updateAliasRequest) Updates the configuration of a Lambda function alias.default UpdateCodeSigningConfigResponseupdateCodeSigningConfig(Consumer<UpdateCodeSigningConfigRequest.Builder> updateCodeSigningConfigRequest) Update the code signing configuration.default UpdateCodeSigningConfigResponseupdateCodeSigningConfig(UpdateCodeSigningConfigRequest updateCodeSigningConfigRequest) Update the code signing configuration.default UpdateEventSourceMappingResponseupdateEventSourceMapping(Consumer<UpdateEventSourceMappingRequest.Builder> updateEventSourceMappingRequest) Updates an event source mapping.default UpdateEventSourceMappingResponseupdateEventSourceMapping(UpdateEventSourceMappingRequest updateEventSourceMappingRequest) Updates an event source mapping.default UpdateFunctionCodeResponseupdateFunctionCode(Consumer<UpdateFunctionCodeRequest.Builder> updateFunctionCodeRequest) Updates a Lambda function's code.default UpdateFunctionCodeResponseupdateFunctionCode(UpdateFunctionCodeRequest updateFunctionCodeRequest) Updates a Lambda function's code.updateFunctionConfiguration(Consumer<UpdateFunctionConfigurationRequest.Builder> updateFunctionConfigurationRequest) Modify the version-specific settings of a Lambda function.updateFunctionConfiguration(UpdateFunctionConfigurationRequest updateFunctionConfigurationRequest) Modify the version-specific settings of a Lambda function.updateFunctionEventInvokeConfig(Consumer<UpdateFunctionEventInvokeConfigRequest.Builder> updateFunctionEventInvokeConfigRequest) Updates the configuration for asynchronous invocation for a function, version, or alias.updateFunctionEventInvokeConfig(UpdateFunctionEventInvokeConfigRequest updateFunctionEventInvokeConfigRequest) Updates the configuration for asynchronous invocation for a function, version, or alias.default UpdateFunctionUrlConfigResponseupdateFunctionUrlConfig(Consumer<UpdateFunctionUrlConfigRequest.Builder> updateFunctionUrlConfigRequest) Updates the configuration for a Lambda function URL.default UpdateFunctionUrlConfigResponseupdateFunctionUrlConfig(UpdateFunctionUrlConfigRequest updateFunctionUrlConfigRequest) Updates the configuration for a Lambda function URL.default LambdaWaiterwaiter()Create an instance ofLambdaWaiterusing this client.Methods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
closeMethods inherited from interface software.amazon.awssdk.core.SdkClient
serviceName
-
Field Details
-
SERVICE_NAME
- See Also:
-
SERVICE_METADATA_ID
Value for looking up the service's metadata from theServiceMetadataProvider.- See Also:
-
-
Method Details
-
addLayerVersionPermission
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 Lambda layer. Use this action to grant layer usage permission to other accounts. You can grant permission to a single account, all accounts in an organization, or all Amazon Web Services accounts.
To revoke permission, call RemoveLayerVersionPermission with the statement ID that you specified when you added it.
- Parameters:
addLayerVersionPermissionRequest-- Returns:
- Result of the AddLayerVersionPermission operation returned by the service.
- See Also:
-
addLayerVersionPermission
default 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 Lambda layer. Use this action to grant layer usage permission to other accounts. You can grant permission to a single account, all accounts in an organization, or all Amazon Web Services accounts.
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.Builderavoiding the need to create one manually viaAddLayerVersionPermissionRequest.builder()- Parameters:
addLayerVersionPermissionRequest- AConsumerthat will call methods onAddLayerVersionPermissionRequest.Builderto create a request.- Returns:
- Result of the AddLayerVersionPermission operation returned by the service.
- See Also:
-
addPermission
default AddPermissionResponse addPermission(AddPermissionRequest addPermissionRequest) throws ServiceException, ResourceNotFoundException, ResourceConflictException, InvalidParameterValueException, PolicyLengthExceededException, TooManyRequestsException, PreconditionFailedException, AwsServiceException, SdkClientException, LambdaException Grants a principal 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. Note: Lambda does not support adding policies to version invalid input: '$'LATEST.
To grant permission to another account, specify the account ID as the
Principal. To grant permission to an organization defined in Organizations, specify the organization ID as thePrincipalOrgID. For Amazon Web Services services, the principal is a domain-style identifier that the service defines, such ass3.amazonaws.comorsns.amazonaws.com. For Amazon Web Services services, you can also specify the ARN of the associated resource as theSourceArn. 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 operation adds a statement to a resource-based permissions policy for the function. For more information about function policies, see Using resource-based policies for Lambda.
- Parameters:
addPermissionRequest-- Returns:
- Result of the AddPermission operation returned by the service.
- See Also:
-
addPermission
default AddPermissionResponse addPermission(Consumer<AddPermissionRequest.Builder> addPermissionRequest) throws ServiceException, ResourceNotFoundException, ResourceConflictException, InvalidParameterValueException, PolicyLengthExceededException, TooManyRequestsException, PreconditionFailedException, AwsServiceException, SdkClientException, LambdaException Grants a principal 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. Note: Lambda does not support adding policies to version invalid input: '$'LATEST.
To grant permission to another account, specify the account ID as the
Principal. To grant permission to an organization defined in Organizations, specify the organization ID as thePrincipalOrgID. For Amazon Web Services services, the principal is a domain-style identifier that the service defines, such ass3.amazonaws.comorsns.amazonaws.com. For Amazon Web Services services, you can also specify the ARN of the associated resource as theSourceArn. 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 operation adds a statement to a resource-based permissions policy for the function. For more information about function policies, see Using resource-based policies for Lambda.
This is a convenience which creates an instance of the
AddPermissionRequest.Builderavoiding the need to create one manually viaAddPermissionRequest.builder()- Parameters:
addPermissionRequest- AConsumerthat will call methods onAddPermissionRequest.Builderto create a request.- Returns:
- Result of the AddPermission operation returned by the service.
- See Also:
-
createAlias
default 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
RoutingConfigparameter to specify a second version and the percentage of invocation requests that it receives.- Parameters:
createAliasRequest-- Returns:
- Result of the CreateAlias operation returned by the service.
- See Also:
-
createAlias
default 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
RoutingConfigparameter 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.Builderavoiding the need to create one manually viaCreateAliasRequest.builder()- Parameters:
createAliasRequest- AConsumerthat will call methods onCreateAliasRequest.Builderto create a request.- Returns:
- Result of the CreateAlias operation returned by the service.
- See Also:
-
createCodeSigningConfig
default CreateCodeSigningConfigResponse createCodeSigningConfig(CreateCodeSigningConfigRequest createCodeSigningConfigRequest) throws ServiceException, InvalidParameterValueException, AwsServiceException, SdkClientException, LambdaException Creates a code signing configuration. A code signing configuration defines a list of allowed signing profiles and defines the code-signing validation policy (action to be taken if deployment validation checks fail).
- Parameters:
createCodeSigningConfigRequest-- Returns:
- Result of the CreateCodeSigningConfig operation returned by the service.
- See Also:
-
createCodeSigningConfig
default CreateCodeSigningConfigResponse createCodeSigningConfig(Consumer<CreateCodeSigningConfigRequest.Builder> createCodeSigningConfigRequest) throws ServiceException, InvalidParameterValueException, AwsServiceException, SdkClientException, LambdaException Creates a code signing configuration. A code signing configuration defines a list of allowed signing profiles and defines the code-signing validation policy (action to be taken if deployment validation checks fail).
This is a convenience which creates an instance of the
CreateCodeSigningConfigRequest.Builderavoiding the need to create one manually viaCreateCodeSigningConfigRequest.builder()- Parameters:
createCodeSigningConfigRequest- AConsumerthat will call methods onCreateCodeSigningConfigRequest.Builderto create a request.- Returns:
- Result of the CreateCodeSigningConfig operation returned by the service.
- See Also:
-
createEventSourceMapping
default CreateEventSourceMappingResponse createEventSourceMapping(CreateEventSourceMappingRequest createEventSourceMappingRequest) throws ServiceException, InvalidParameterValueException, ResourceConflictException, TooManyRequestsException, ResourceNotFoundException, AwsServiceException, SdkClientException, LambdaException Creates a mapping between an event source and an Lambda function. Lambda reads items from the event source and invokes the function.
For details about how to configure different event sources, see the following topics.
The following error handling options are available only 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. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires -
MaximumRetryAttempts– Discard records after the specified number of retries. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires. -
ParallelizationFactor– Process multiple batches from each shard concurrently.
For information about which configuration parameters apply to each event source, see the following topics.
- Parameters:
createEventSourceMappingRequest-- Returns:
- Result of the CreateEventSourceMapping operation returned by the service.
- See Also:
-
createEventSourceMapping
default CreateEventSourceMappingResponse createEventSourceMapping(Consumer<CreateEventSourceMappingRequest.Builder> createEventSourceMappingRequest) throws ServiceException, InvalidParameterValueException, ResourceConflictException, TooManyRequestsException, ResourceNotFoundException, AwsServiceException, SdkClientException, LambdaException Creates a mapping between an event source and an Lambda function. Lambda reads items from the event source and invokes the function.
For details about how to configure different event sources, see the following topics.
The following error handling options are available only 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. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires -
MaximumRetryAttempts– Discard records after the specified number of retries. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires. -
ParallelizationFactor– Process multiple batches from each shard concurrently.
For information about which configuration parameters apply to each event source, see the following topics.
This is a convenience which creates an instance of the
CreateEventSourceMappingRequest.Builderavoiding the need to create one manually viaCreateEventSourceMappingRequest.builder()- Parameters:
createEventSourceMappingRequest- AConsumerthat will call methods onCreateEventSourceMappingRequest.Builderto create a request.- Returns:
- Result of the CreateEventSourceMapping operation returned by the service.
- See Also:
-
createFunction
default CreateFunctionResponse createFunction(CreateFunctionRequest createFunctionRequest) throws ServiceException, InvalidParameterValueException, ResourceNotFoundException, ResourceConflictException, TooManyRequestsException, CodeStorageExceededException, CodeVerificationFailedException, InvalidCodeSignatureException, CodeSigningConfigNotFoundException, AwsServiceException, SdkClientException, LambdaException Creates a Lambda function. To create a function, you need a deployment package and an execution role. The deployment package is a .zip file archive or container image that contains your function code. The execution role grants the function permission to use Amazon Web Services services, such as Amazon CloudWatch Logs for log streaming and X-Ray for request tracing.
If the deployment package is a container image, then you set the package type to
Image. For a container image, the code property must include the URI of a container image in the Amazon ECR registry. You do not need to specify the handler and runtime properties.If the deployment package is a .zip file archive, then you set the package type to
Zip. For a .zip file archive, the code property specifies the location of the .zip file. You must also specify the handler and runtime properties. The code in the deployment package must be compatible with the target instruction set architecture of the function (x86-64orarm64). If you do not specify the architecture, then the default value isx86-64.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, andStateReasonCodefields in the response from GetFunctionConfiguration indicate when the function is ready to invoke. For more information, see Lambda 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
Publishparameter to create version1of 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).
You can use code signing if your deployment package is a .zip file archive. To enable code signing for this function, specify the ARN of a code-signing configuration. When a user attempts to deploy a code package with UpdateFunctionCode, Lambda checks that the code package has a valid signature from a trusted publisher. The code-signing configuration includes set of signing profiles, which define the trusted publishers for this function.
If another Amazon Web Services account or an Amazon Web Services service invokes your function, use AddPermission to grant permission by creating a resource-based Identity and Access Management (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 Amazon Web Services services, create an event source mapping (CreateEventSourceMapping), or configure a function trigger in the other service. For more information, see Invoking Lambda functions.
- Parameters:
createFunctionRequest-- Returns:
- Result of the CreateFunction operation returned by the service.
- See Also:
-
createFunction
default CreateFunctionResponse createFunction(Consumer<CreateFunctionRequest.Builder> createFunctionRequest) throws ServiceException, InvalidParameterValueException, ResourceNotFoundException, ResourceConflictException, TooManyRequestsException, CodeStorageExceededException, CodeVerificationFailedException, InvalidCodeSignatureException, CodeSigningConfigNotFoundException, AwsServiceException, SdkClientException, LambdaException Creates a Lambda function. To create a function, you need a deployment package and an execution role. The deployment package is a .zip file archive or container image that contains your function code. The execution role grants the function permission to use Amazon Web Services services, such as Amazon CloudWatch Logs for log streaming and X-Ray for request tracing.
If the deployment package is a container image, then you set the package type to
Image. For a container image, the code property must include the URI of a container image in the Amazon ECR registry. You do not need to specify the handler and runtime properties.If the deployment package is a .zip file archive, then you set the package type to
Zip. For a .zip file archive, the code property specifies the location of the .zip file. You must also specify the handler and runtime properties. The code in the deployment package must be compatible with the target instruction set architecture of the function (x86-64orarm64). If you do not specify the architecture, then the default value isx86-64.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, andStateReasonCodefields in the response from GetFunctionConfiguration indicate when the function is ready to invoke. For more information, see Lambda 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
Publishparameter to create version1of 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).
You can use code signing if your deployment package is a .zip file archive. To enable code signing for this function, specify the ARN of a code-signing configuration. When a user attempts to deploy a code package with UpdateFunctionCode, Lambda checks that the code package has a valid signature from a trusted publisher. The code-signing configuration includes set of signing profiles, which define the trusted publishers for this function.
If another Amazon Web Services account or an Amazon Web Services service invokes your function, use AddPermission to grant permission by creating a resource-based Identity and Access Management (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 Amazon Web Services services, create an event source mapping (CreateEventSourceMapping), or configure a function trigger in the other service. For more information, see Invoking Lambda functions.
This is a convenience which creates an instance of the
CreateFunctionRequest.Builderavoiding the need to create one manually viaCreateFunctionRequest.builder()- Parameters:
createFunctionRequest- AConsumerthat will call methods onCreateFunctionRequest.Builderto create a request.- Returns:
- Result of the CreateFunction operation returned by the service.
- See Also:
-
createFunctionUrlConfig
default CreateFunctionUrlConfigResponse createFunctionUrlConfig(CreateFunctionUrlConfigRequest createFunctionUrlConfigRequest) throws ResourceConflictException, ResourceNotFoundException, InvalidParameterValueException, ServiceException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException Creates a Lambda function URL with the specified configuration parameters. A function URL is a dedicated HTTP(S) endpoint that you can use to invoke your function.
- Parameters:
createFunctionUrlConfigRequest-- Returns:
- Result of the CreateFunctionUrlConfig operation returned by the service.
- See Also:
-
createFunctionUrlConfig
default CreateFunctionUrlConfigResponse createFunctionUrlConfig(Consumer<CreateFunctionUrlConfigRequest.Builder> createFunctionUrlConfigRequest) throws ResourceConflictException, ResourceNotFoundException, InvalidParameterValueException, ServiceException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException Creates a Lambda function URL with the specified configuration parameters. A function URL is a dedicated HTTP(S) endpoint that you can use to invoke your function.
This is a convenience which creates an instance of the
CreateFunctionUrlConfigRequest.Builderavoiding the need to create one manually viaCreateFunctionUrlConfigRequest.builder()- Parameters:
createFunctionUrlConfigRequest- AConsumerthat will call methods onCreateFunctionUrlConfigRequest.Builderto create a request.- Returns:
- Result of the CreateFunctionUrlConfig operation returned by the service.
- See Also:
-
deleteAlias
default DeleteAliasResponse deleteAlias(DeleteAliasRequest deleteAliasRequest) throws ServiceException, InvalidParameterValueException, ResourceConflictException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException Deletes a Lambda function alias.
- Parameters:
deleteAliasRequest-- Returns:
- Result of the DeleteAlias operation returned by the service.
- See Also:
-
deleteAlias
default 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.Builderavoiding the need to create one manually viaDeleteAliasRequest.builder()- Parameters:
deleteAliasRequest- AConsumerthat will call methods onDeleteAliasRequest.Builderto create a request.- Returns:
- Result of the DeleteAlias operation returned by the service.
- See Also:
-
deleteCodeSigningConfig
default DeleteCodeSigningConfigResponse deleteCodeSigningConfig(DeleteCodeSigningConfigRequest deleteCodeSigningConfigRequest) throws ServiceException, InvalidParameterValueException, ResourceNotFoundException, ResourceConflictException, AwsServiceException, SdkClientException, LambdaException Deletes the code signing configuration. You can delete the code signing configuration only if no function is using it.
- Parameters:
deleteCodeSigningConfigRequest-- Returns:
- Result of the DeleteCodeSigningConfig operation returned by the service.
- See Also:
-
deleteCodeSigningConfig
default DeleteCodeSigningConfigResponse deleteCodeSigningConfig(Consumer<DeleteCodeSigningConfigRequest.Builder> deleteCodeSigningConfigRequest) throws ServiceException, InvalidParameterValueException, ResourceNotFoundException, ResourceConflictException, AwsServiceException, SdkClientException, LambdaException Deletes the code signing configuration. You can delete the code signing configuration only if no function is using it.
This is a convenience which creates an instance of the
DeleteCodeSigningConfigRequest.Builderavoiding the need to create one manually viaDeleteCodeSigningConfigRequest.builder()- Parameters:
deleteCodeSigningConfigRequest- AConsumerthat will call methods onDeleteCodeSigningConfigRequest.Builderto create a request.- Returns:
- Result of the DeleteCodeSigningConfig operation returned by the service.
- See Also:
-
deleteEventSourceMapping
default DeleteEventSourceMappingResponse deleteEventSourceMapping(DeleteEventSourceMappingRequest deleteEventSourceMappingRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, ResourceConflictException, 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
Deletingstate and might not be completely deleted for several seconds.- Parameters:
deleteEventSourceMappingRequest-- Returns:
- Result of the DeleteEventSourceMapping operation returned by the service.
- See Also:
-
deleteEventSourceMapping
default DeleteEventSourceMappingResponse deleteEventSourceMapping(Consumer<DeleteEventSourceMappingRequest.Builder> deleteEventSourceMappingRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, ResourceConflictException, 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
Deletingstate and might not be completely deleted for several seconds.
This is a convenience which creates an instance of the
DeleteEventSourceMappingRequest.Builderavoiding the need to create one manually viaDeleteEventSourceMappingRequest.builder()- Parameters:
deleteEventSourceMappingRequest- AConsumerthat will call methods onDeleteEventSourceMappingRequest.Builderto create a request.- Returns:
- Result of the DeleteEventSourceMapping operation returned by the service.
- See Also:
-
deleteFunction
default 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
Qualifierparameter. Otherwise, all versions and aliases are deleted. This doesn't require the user to have explicit permissions for DeleteAlias.To delete Lambda event source mappings that invoke a function, use DeleteEventSourceMapping. For Amazon Web Services services and resources that invoke your function directly, delete the trigger in the service where you originally configured it.
- Parameters:
deleteFunctionRequest-- Returns:
- Result of the DeleteFunction operation returned by the service.
- See Also:
-
deleteFunction
default 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
Qualifierparameter. Otherwise, all versions and aliases are deleted. This doesn't require the user to have explicit permissions for DeleteAlias.To delete Lambda event source mappings that invoke a function, use DeleteEventSourceMapping. For Amazon Web Services 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.Builderavoiding the need to create one manually viaDeleteFunctionRequest.builder()- Parameters:
deleteFunctionRequest- AConsumerthat will call methods onDeleteFunctionRequest.Builderto create a request.- Returns:
- Result of the DeleteFunction operation returned by the service.
- See Also:
-
deleteFunctionCodeSigningConfig
default DeleteFunctionCodeSigningConfigResponse deleteFunctionCodeSigningConfig(DeleteFunctionCodeSigningConfigRequest deleteFunctionCodeSigningConfigRequest) throws InvalidParameterValueException, CodeSigningConfigNotFoundException, ResourceNotFoundException, ServiceException, TooManyRequestsException, ResourceConflictException, AwsServiceException, SdkClientException, LambdaException Removes the code signing configuration from the function.
- Parameters:
deleteFunctionCodeSigningConfigRequest-- Returns:
- Result of the DeleteFunctionCodeSigningConfig operation returned by the service.
- See Also:
-
deleteFunctionCodeSigningConfig
default DeleteFunctionCodeSigningConfigResponse deleteFunctionCodeSigningConfig(Consumer<DeleteFunctionCodeSigningConfigRequest.Builder> deleteFunctionCodeSigningConfigRequest) throws InvalidParameterValueException, CodeSigningConfigNotFoundException, ResourceNotFoundException, ServiceException, TooManyRequestsException, ResourceConflictException, AwsServiceException, SdkClientException, LambdaException Removes the code signing configuration from the function.
This is a convenience which creates an instance of the
DeleteFunctionCodeSigningConfigRequest.Builderavoiding the need to create one manually viaDeleteFunctionCodeSigningConfigRequest.builder()- Parameters:
deleteFunctionCodeSigningConfigRequest- AConsumerthat will call methods onDeleteFunctionCodeSigningConfigRequest.Builderto create a request.- Returns:
- Result of the DeleteFunctionCodeSigningConfig operation returned by the service.
- See Also:
-
deleteFunctionConcurrency
default DeleteFunctionConcurrencyResponse deleteFunctionConcurrency(DeleteFunctionConcurrencyRequest deleteFunctionConcurrencyRequest) throws ServiceException, ResourceNotFoundException, TooManyRequestsException, InvalidParameterValueException, ResourceConflictException, AwsServiceException, SdkClientException, LambdaException Removes a concurrent execution limit from a function.
- Parameters:
deleteFunctionConcurrencyRequest-- Returns:
- Result of the DeleteFunctionConcurrency operation returned by the service.
- See Also:
-
deleteFunctionConcurrency
default 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.Builderavoiding the need to create one manually viaDeleteFunctionConcurrencyRequest.builder()- Parameters:
deleteFunctionConcurrencyRequest- AConsumerthat will call methods onDeleteFunctionConcurrencyRequest.Builderto create a request.- Returns:
- Result of the DeleteFunctionConcurrency operation returned by the service.
- See Also:
-
deleteFunctionEventInvokeConfig
default DeleteFunctionEventInvokeConfigResponse deleteFunctionEventInvokeConfig(DeleteFunctionEventInvokeConfigRequest deleteFunctionEventInvokeConfigRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, ResourceConflictException, AwsServiceException, SdkClientException, LambdaException Deletes the configuration for asynchronous invocation for a function, version, or alias.
To configure options for asynchronous invocation, use PutFunctionEventInvokeConfig.
- Parameters:
deleteFunctionEventInvokeConfigRequest-- Returns:
- Result of the DeleteFunctionEventInvokeConfig operation returned by the service.
- See Also:
-
deleteFunctionEventInvokeConfig
default DeleteFunctionEventInvokeConfigResponse deleteFunctionEventInvokeConfig(Consumer<DeleteFunctionEventInvokeConfigRequest.Builder> deleteFunctionEventInvokeConfigRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, ResourceConflictException, 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.Builderavoiding the need to create one manually viaDeleteFunctionEventInvokeConfigRequest.builder()- Parameters:
deleteFunctionEventInvokeConfigRequest- AConsumerthat will call methods onDeleteFunctionEventInvokeConfigRequest.Builderto create a request.- Returns:
- Result of the DeleteFunctionEventInvokeConfig operation returned by the service.
- See Also:
-
deleteFunctionUrlConfig
default DeleteFunctionUrlConfigResponse deleteFunctionUrlConfig(DeleteFunctionUrlConfigRequest deleteFunctionUrlConfigRequest) throws ResourceConflictException, ResourceNotFoundException, ServiceException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException Deletes a Lambda function URL. When you delete a function URL, you can't recover it. Creating a new function URL results in a different URL address.
- Parameters:
deleteFunctionUrlConfigRequest-- Returns:
- Result of the DeleteFunctionUrlConfig operation returned by the service.
- See Also:
-
deleteFunctionUrlConfig
default DeleteFunctionUrlConfigResponse deleteFunctionUrlConfig(Consumer<DeleteFunctionUrlConfigRequest.Builder> deleteFunctionUrlConfigRequest) throws ResourceConflictException, ResourceNotFoundException, ServiceException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException Deletes a Lambda function URL. When you delete a function URL, you can't recover it. Creating a new function URL results in a different URL address.
This is a convenience which creates an instance of the
DeleteFunctionUrlConfigRequest.Builderavoiding the need to create one manually viaDeleteFunctionUrlConfigRequest.builder()- Parameters:
deleteFunctionUrlConfigRequest- AConsumerthat will call methods onDeleteFunctionUrlConfigRequest.Builderto create a request.- Returns:
- Result of the DeleteFunctionUrlConfig operation returned by the service.
- See Also:
-
deleteLayerVersion
default DeleteLayerVersionResponse deleteLayerVersion(DeleteLayerVersionRequest deleteLayerVersionRequest) throws ServiceException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException Deletes a version of an 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.
- Parameters:
deleteLayerVersionRequest-- Returns:
- Result of the DeleteLayerVersion operation returned by the service.
- See Also:
-
deleteLayerVersion
default DeleteLayerVersionResponse deleteLayerVersion(Consumer<DeleteLayerVersionRequest.Builder> deleteLayerVersionRequest) throws ServiceException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException Deletes a version of an 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.Builderavoiding the need to create one manually viaDeleteLayerVersionRequest.builder()- Parameters:
deleteLayerVersionRequest- AConsumerthat will call methods onDeleteLayerVersionRequest.Builderto create a request.- Returns:
- Result of the DeleteLayerVersion operation returned by the service.
- See Also:
-
deleteProvisionedConcurrencyConfig
default DeleteProvisionedConcurrencyConfigResponse deleteProvisionedConcurrencyConfig(DeleteProvisionedConcurrencyConfigRequest deleteProvisionedConcurrencyConfigRequest) throws InvalidParameterValueException, ResourceConflictException, ResourceNotFoundException, TooManyRequestsException, ServiceException, AwsServiceException, SdkClientException, LambdaException Deletes the provisioned concurrency configuration for a function.
- Parameters:
deleteProvisionedConcurrencyConfigRequest-- Returns:
- Result of the DeleteProvisionedConcurrencyConfig operation returned by the service.
- See Also:
-
deleteProvisionedConcurrencyConfig
default 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.Builderavoiding the need to create one manually viaDeleteProvisionedConcurrencyConfigRequest.builder()- Parameters:
deleteProvisionedConcurrencyConfigRequest- AConsumerthat will call methods onDeleteProvisionedConcurrencyConfigRequest.Builderto create a request.- Returns:
- Result of the DeleteProvisionedConcurrencyConfig operation returned by the service.
- See Also:
-
getAccountSettings
default GetAccountSettingsResponse getAccountSettings(GetAccountSettingsRequest getAccountSettingsRequest) throws TooManyRequestsException, ServiceException, AwsServiceException, SdkClientException, LambdaException Retrieves details about your account's limits and usage in an Amazon Web Services Region.
- Parameters:
getAccountSettingsRequest-- Returns:
- Result of the GetAccountSettings operation returned by the service.
- See Also:
-
getAccountSettings
default GetAccountSettingsResponse getAccountSettings(Consumer<GetAccountSettingsRequest.Builder> getAccountSettingsRequest) throws TooManyRequestsException, ServiceException, AwsServiceException, SdkClientException, LambdaException Retrieves details about your account's limits and usage in an Amazon Web Services Region.
This is a convenience which creates an instance of the
GetAccountSettingsRequest.Builderavoiding the need to create one manually viaGetAccountSettingsRequest.builder()- Parameters:
getAccountSettingsRequest- AConsumerthat will call methods onGetAccountSettingsRequest.Builderto create a request.- Returns:
- Result of the GetAccountSettings operation returned by the service.
- See Also:
-
getAccountSettings
default GetAccountSettingsResponse getAccountSettings() throws TooManyRequestsException, ServiceException, AwsServiceException, SdkClientException, LambdaExceptionRetrieves details about your account's limits and usage in an Amazon Web Services Region.
- Returns:
- Result of the GetAccountSettings operation returned by the service.
- See Also:
-
getAlias
default GetAliasResponse getAlias(GetAliasRequest getAliasRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException Returns details about a Lambda function alias.
- Parameters:
getAliasRequest-- Returns:
- Result of the GetAlias operation returned by the service.
- See Also:
-
getAlias
default 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.Builderavoiding the need to create one manually viaGetAliasRequest.builder()- Parameters:
getAliasRequest- AConsumerthat will call methods onGetAliasRequest.Builderto create a request.- Returns:
- Result of the GetAlias operation returned by the service.
- See Also:
-
getCodeSigningConfig
default GetCodeSigningConfigResponse getCodeSigningConfig(GetCodeSigningConfigRequest getCodeSigningConfigRequest) throws ServiceException, InvalidParameterValueException, ResourceNotFoundException, AwsServiceException, SdkClientException, LambdaException Returns information about the specified code signing configuration.
- Parameters:
getCodeSigningConfigRequest-- Returns:
- Result of the GetCodeSigningConfig operation returned by the service.
- See Also:
-
getCodeSigningConfig
default GetCodeSigningConfigResponse getCodeSigningConfig(Consumer<GetCodeSigningConfigRequest.Builder> getCodeSigningConfigRequest) throws ServiceException, InvalidParameterValueException, ResourceNotFoundException, AwsServiceException, SdkClientException, LambdaException Returns information about the specified code signing configuration.
This is a convenience which creates an instance of the
GetCodeSigningConfigRequest.Builderavoiding the need to create one manually viaGetCodeSigningConfigRequest.builder()- Parameters:
getCodeSigningConfigRequest- AConsumerthat will call methods onGetCodeSigningConfigRequest.Builderto create a request.- Returns:
- Result of the GetCodeSigningConfig operation returned by the service.
- See Also:
-
getEventSourceMapping
default 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.
- Parameters:
getEventSourceMappingRequest-- Returns:
- Result of the GetEventSourceMapping operation returned by the service.
- See Also:
-
getEventSourceMapping
default 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.Builderavoiding the need to create one manually viaGetEventSourceMappingRequest.builder()- Parameters:
getEventSourceMappingRequest- AConsumerthat will call methods onGetEventSourceMappingRequest.Builderto create a request.- Returns:
- Result of the GetEventSourceMapping operation returned by the service.
- See Also:
-
getFunction
default 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.
- Parameters:
getFunctionRequest-- Returns:
- Result of the GetFunction operation returned by the service.
- See Also:
-
getFunction
default 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.Builderavoiding the need to create one manually viaGetFunctionRequest.builder()- Parameters:
getFunctionRequest- AConsumerthat will call methods onGetFunctionRequest.Builderto create a request.- Returns:
- Result of the GetFunction operation returned by the service.
- See Also:
-
getFunctionCodeSigningConfig
default GetFunctionCodeSigningConfigResponse getFunctionCodeSigningConfig(GetFunctionCodeSigningConfigRequest getFunctionCodeSigningConfigRequest) throws InvalidParameterValueException, ResourceNotFoundException, ServiceException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException Returns the code signing configuration for the specified function.
- Parameters:
getFunctionCodeSigningConfigRequest-- Returns:
- Result of the GetFunctionCodeSigningConfig operation returned by the service.
- See Also:
-
getFunctionCodeSigningConfig
default GetFunctionCodeSigningConfigResponse getFunctionCodeSigningConfig(Consumer<GetFunctionCodeSigningConfigRequest.Builder> getFunctionCodeSigningConfigRequest) throws InvalidParameterValueException, ResourceNotFoundException, ServiceException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException Returns the code signing configuration for the specified function.
This is a convenience which creates an instance of the
GetFunctionCodeSigningConfigRequest.Builderavoiding the need to create one manually viaGetFunctionCodeSigningConfigRequest.builder()- Parameters:
getFunctionCodeSigningConfigRequest- AConsumerthat will call methods onGetFunctionCodeSigningConfigRequest.Builderto create a request.- Returns:
- Result of the GetFunctionCodeSigningConfig operation returned by the service.
- See Also:
-
getFunctionConcurrency
default 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.
- Parameters:
getFunctionConcurrencyRequest-- Returns:
- Result of the GetFunctionConcurrency operation returned by the service.
- See Also:
-
getFunctionConcurrency
default 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.Builderavoiding the need to create one manually viaGetFunctionConcurrencyRequest.builder()- Parameters:
getFunctionConcurrencyRequest- AConsumerthat will call methods onGetFunctionConcurrencyRequest.Builderto create a request.- Returns:
- Result of the GetFunctionConcurrency operation returned by the service.
- See Also:
-
getFunctionConfiguration
default 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.
- Parameters:
getFunctionConfigurationRequest-- Returns:
- Result of the GetFunctionConfiguration operation returned by the service.
- See Also:
-
getFunctionConfiguration
default 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.Builderavoiding the need to create one manually viaGetFunctionConfigurationRequest.builder()- Parameters:
getFunctionConfigurationRequest- AConsumerthat will call methods onGetFunctionConfigurationRequest.Builderto create a request.- Returns:
- Result of the GetFunctionConfiguration operation returned by the service.
- See Also:
-
getFunctionEventInvokeConfig
default 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.
- Parameters:
getFunctionEventInvokeConfigRequest-- Returns:
- Result of the GetFunctionEventInvokeConfig operation returned by the service.
- See Also:
-
getFunctionEventInvokeConfig
default 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.Builderavoiding the need to create one manually viaGetFunctionEventInvokeConfigRequest.builder()- Parameters:
getFunctionEventInvokeConfigRequest- AConsumerthat will call methods onGetFunctionEventInvokeConfigRequest.Builderto create a request.- Returns:
- Result of the GetFunctionEventInvokeConfig operation returned by the service.
- See Also:
-
getFunctionRecursionConfig
default GetFunctionRecursionConfigResponse getFunctionRecursionConfig(GetFunctionRecursionConfigRequest getFunctionRecursionConfigRequest) throws InvalidParameterValueException, ResourceNotFoundException, TooManyRequestsException, ServiceException, AwsServiceException, SdkClientException, LambdaException Returns your function's recursive loop detection configuration.
- Parameters:
getFunctionRecursionConfigRequest-- Returns:
- Result of the GetFunctionRecursionConfig operation returned by the service.
- See Also:
-
getFunctionRecursionConfig
default GetFunctionRecursionConfigResponse getFunctionRecursionConfig(Consumer<GetFunctionRecursionConfigRequest.Builder> getFunctionRecursionConfigRequest) throws InvalidParameterValueException, ResourceNotFoundException, TooManyRequestsException, ServiceException, AwsServiceException, SdkClientException, LambdaException Returns your function's recursive loop detection configuration.
This is a convenience which creates an instance of the
GetFunctionRecursionConfigRequest.Builderavoiding the need to create one manually viaGetFunctionRecursionConfigRequest.builder()- Parameters:
getFunctionRecursionConfigRequest- AConsumerthat will call methods onGetFunctionRecursionConfigRequest.Builderto create a request.- Returns:
- Result of the GetFunctionRecursionConfig operation returned by the service.
- See Also:
-
getFunctionUrlConfig
default GetFunctionUrlConfigResponse getFunctionUrlConfig(GetFunctionUrlConfigRequest getFunctionUrlConfigRequest) throws InvalidParameterValueException, ServiceException, ResourceNotFoundException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException Returns details about a Lambda function URL.
- Parameters:
getFunctionUrlConfigRequest-- Returns:
- Result of the GetFunctionUrlConfig operation returned by the service.
- See Also:
-
getFunctionUrlConfig
default GetFunctionUrlConfigResponse getFunctionUrlConfig(Consumer<GetFunctionUrlConfigRequest.Builder> getFunctionUrlConfigRequest) throws InvalidParameterValueException, ServiceException, ResourceNotFoundException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException Returns details about a Lambda function URL.
This is a convenience which creates an instance of the
GetFunctionUrlConfigRequest.Builderavoiding the need to create one manually viaGetFunctionUrlConfigRequest.builder()- Parameters:
getFunctionUrlConfigRequest- AConsumerthat will call methods onGetFunctionUrlConfigRequest.Builderto create a request.- Returns:
- Result of the GetFunctionUrlConfig operation returned by the service.
- See Also:
-
getLayerVersion
default GetLayerVersionResponse getLayerVersion(GetLayerVersionRequest getLayerVersionRequest) throws ServiceException, InvalidParameterValueException, TooManyRequestsException, ResourceNotFoundException, AwsServiceException, SdkClientException, LambdaException Returns information about a version of an Lambda layer, with a link to download the layer archive that's valid for 10 minutes.
- Parameters:
getLayerVersionRequest-- Returns:
- Result of the GetLayerVersion operation returned by the service.
- See Also:
-
getLayerVersion
default GetLayerVersionResponse getLayerVersion(Consumer<GetLayerVersionRequest.Builder> getLayerVersionRequest) throws ServiceException, InvalidParameterValueException, TooManyRequestsException, ResourceNotFoundException, AwsServiceException, SdkClientException, LambdaException Returns information about a version of an 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.Builderavoiding the need to create one manually viaGetLayerVersionRequest.builder()- Parameters:
getLayerVersionRequest- AConsumerthat will call methods onGetLayerVersionRequest.Builderto create a request.- Returns:
- Result of the GetLayerVersion operation returned by the service.
- See Also:
-
getLayerVersionByArn
default GetLayerVersionByArnResponse getLayerVersionByArn(GetLayerVersionByArnRequest getLayerVersionByArnRequest) throws ServiceException, InvalidParameterValueException, TooManyRequestsException, ResourceNotFoundException, AwsServiceException, SdkClientException, LambdaException Returns information about a version of an Lambda layer, with a link to download the layer archive that's valid for 10 minutes.
- Parameters:
getLayerVersionByArnRequest-- Returns:
- Result of the GetLayerVersionByArn operation returned by the service.
- See Also:
-
getLayerVersionByArn
default GetLayerVersionByArnResponse getLayerVersionByArn(Consumer<GetLayerVersionByArnRequest.Builder> getLayerVersionByArnRequest) throws ServiceException, InvalidParameterValueException, TooManyRequestsException, ResourceNotFoundException, AwsServiceException, SdkClientException, LambdaException Returns information about a version of an 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.Builderavoiding the need to create one manually viaGetLayerVersionByArnRequest.builder()- Parameters:
getLayerVersionByArnRequest- AConsumerthat will call methods onGetLayerVersionByArnRequest.Builderto create a request.- Returns:
- Result of the GetLayerVersionByArn operation returned by the service.
- See Also:
-
getLayerVersionPolicy
default GetLayerVersionPolicyResponse getLayerVersionPolicy(GetLayerVersionPolicyRequest getLayerVersionPolicyRequest) throws ServiceException, ResourceNotFoundException, TooManyRequestsException, InvalidParameterValueException, AwsServiceException, SdkClientException, LambdaException Returns the permission policy for a version of an Lambda layer. For more information, see AddLayerVersionPermission.
- Parameters:
getLayerVersionPolicyRequest-- Returns:
- Result of the GetLayerVersionPolicy operation returned by the service.
- See Also:
-
getLayerVersionPolicy
default GetLayerVersionPolicyResponse getLayerVersionPolicy(Consumer<GetLayerVersionPolicyRequest.Builder> getLayerVersionPolicyRequest) throws ServiceException, ResourceNotFoundException, TooManyRequestsException, InvalidParameterValueException, AwsServiceException, SdkClientException, LambdaException Returns the permission policy for a version of an Lambda layer. For more information, see AddLayerVersionPermission.
This is a convenience which creates an instance of the
GetLayerVersionPolicyRequest.Builderavoiding the need to create one manually viaGetLayerVersionPolicyRequest.builder()- Parameters:
getLayerVersionPolicyRequest- AConsumerthat will call methods onGetLayerVersionPolicyRequest.Builderto create a request.- Returns:
- Result of the GetLayerVersionPolicy operation returned by the service.
- See Also:
-
getPolicy
default GetPolicyResponse getPolicy(GetPolicyRequest getPolicyRequest) throws ServiceException, ResourceNotFoundException, TooManyRequestsException, InvalidParameterValueException, AwsServiceException, SdkClientException, LambdaException Returns the resource-based IAM policy for a function, version, or alias.
- Parameters:
getPolicyRequest-- Returns:
- Result of the GetPolicy operation returned by the service.
- See Also:
-
getPolicy
default 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.Builderavoiding the need to create one manually viaGetPolicyRequest.builder()- Parameters:
getPolicyRequest- AConsumerthat will call methods onGetPolicyRequest.Builderto create a request.- Returns:
- Result of the GetPolicy operation returned by the service.
- See Also:
-
getProvisionedConcurrencyConfig
default 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.
- Parameters:
getProvisionedConcurrencyConfigRequest-- Returns:
- Result of the GetProvisionedConcurrencyConfig operation returned by the service.
- See Also:
-
getProvisionedConcurrencyConfig
default 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.Builderavoiding the need to create one manually viaGetProvisionedConcurrencyConfigRequest.builder()- Parameters:
getProvisionedConcurrencyConfigRequest- AConsumerthat will call methods onGetProvisionedConcurrencyConfigRequest.Builderto create a request.- Returns:
- Result of the GetProvisionedConcurrencyConfig operation returned by the service.
- See Also:
-
getRuntimeManagementConfig
default GetRuntimeManagementConfigResponse getRuntimeManagementConfig(GetRuntimeManagementConfigRequest getRuntimeManagementConfigRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException Retrieves the runtime management configuration for a function's version. If the runtime update mode is Manual, this includes the ARN of the runtime version and the runtime update mode. If the runtime update mode is Auto or Function update, this includes the runtime update mode and
nullis returned for the ARN. For more information, see Runtime updates.- Parameters:
getRuntimeManagementConfigRequest-- Returns:
- Result of the GetRuntimeManagementConfig operation returned by the service.
- See Also:
-
getRuntimeManagementConfig
default GetRuntimeManagementConfigResponse getRuntimeManagementConfig(Consumer<GetRuntimeManagementConfigRequest.Builder> getRuntimeManagementConfigRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException Retrieves the runtime management configuration for a function's version. If the runtime update mode is Manual, this includes the ARN of the runtime version and the runtime update mode. If the runtime update mode is Auto or Function update, this includes the runtime update mode and
nullis returned for the ARN. For more information, see Runtime updates.
This is a convenience which creates an instance of the
GetRuntimeManagementConfigRequest.Builderavoiding the need to create one manually viaGetRuntimeManagementConfigRequest.builder()- Parameters:
getRuntimeManagementConfigRequest- AConsumerthat will call methods onGetRuntimeManagementConfigRequest.Builderto create a request.- Returns:
- Result of the GetRuntimeManagementConfig operation returned by the service.
- See Also:
-
invoke
default InvokeResponse invoke(InvokeRequest invokeRequest) throws ServiceException, ResourceNotFoundException, InvalidRequestContentException, RequestTooLargeException, UnsupportedMediaTypeException, TooManyRequestsException, InvalidParameterValueException, Ec2UnexpectedException, SubnetIpAddressLimitReachedException, EniLimitReachedException, EfsMountConnectivityException, EfsMountFailureException, EfsMountTimeoutException, EfsioException, SnapStartException, SnapStartTimeoutException, SnapStartNotReadyException, Ec2ThrottledException, Ec2AccessDeniedException, InvalidSubnetIdException, InvalidSecurityGroupIdException, InvalidZipFileException, KmsDisabledException, KmsInvalidStateException, KmsAccessDeniedException, KmsNotFoundException, InvalidRuntimeException, ResourceConflictException, ResourceNotReadyException, RecursiveInvocationException, AwsServiceException, SdkClientException, LambdaException Invokes a Lambda function. You can invoke a function synchronously (and wait for the response), or asynchronously. By default, Lambda invokes your function synchronously (i.e. the
InvocationTypeisRequestResponse). To invoke a function asynchronously, setInvocationTypetoEvent. Lambda passes theClientContextobject to your function for synchronous invocations only.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 Error handling and automatic retries in Lambda.
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, quota errors, or issues with your function's code and configuration. For example, Lambda returns
TooManyRequestsExceptionif running 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 disconnect 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. For details on how to set up permissions for cross-account invocations, see Granting function access to other accounts.
- Parameters:
invokeRequest-- Returns:
- Result of the Invoke operation returned by the service.
- See Also:
-
invoke
default InvokeResponse invoke(Consumer<InvokeRequest.Builder> invokeRequest) throws ServiceException, ResourceNotFoundException, InvalidRequestContentException, RequestTooLargeException, UnsupportedMediaTypeException, TooManyRequestsException, InvalidParameterValueException, Ec2UnexpectedException, SubnetIpAddressLimitReachedException, EniLimitReachedException, EfsMountConnectivityException, EfsMountFailureException, EfsMountTimeoutException, EfsioException, SnapStartException, SnapStartTimeoutException, SnapStartNotReadyException, Ec2ThrottledException, Ec2AccessDeniedException, InvalidSubnetIdException, InvalidSecurityGroupIdException, InvalidZipFileException, KmsDisabledException, KmsInvalidStateException, KmsAccessDeniedException, KmsNotFoundException, InvalidRuntimeException, ResourceConflictException, ResourceNotReadyException, RecursiveInvocationException, AwsServiceException, SdkClientException, LambdaException Invokes a Lambda function. You can invoke a function synchronously (and wait for the response), or asynchronously. By default, Lambda invokes your function synchronously (i.e. the
InvocationTypeisRequestResponse). To invoke a function asynchronously, setInvocationTypetoEvent. Lambda passes theClientContextobject to your function for synchronous invocations only.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 Error handling and automatic retries in Lambda.
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, quota errors, or issues with your function's code and configuration. For example, Lambda returns
TooManyRequestsExceptionif running 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 disconnect 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. For details on how to set up permissions for cross-account invocations, see Granting function access to other accounts.
This is a convenience which creates an instance of the
InvokeRequest.Builderavoiding the need to create one manually viaInvokeRequest.builder()- Parameters:
invokeRequest- AConsumerthat will call methods onInvokeRequest.Builderto create a request.- Returns:
- Result of the Invoke operation returned by the service.
- See Also:
-
listAliases
default ListAliasesResponse listAliases(ListAliasesRequest listAliasesRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException Returns a list of aliases for a Lambda function.
- Parameters:
listAliasesRequest-- Returns:
- Result of the ListAliases operation returned by the service.
- See Also:
-
listAliases
default 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.Builderavoiding the need to create one manually viaListAliasesRequest.builder()- Parameters:
listAliasesRequest- AConsumerthat will call methods onListAliasesRequest.Builderto create a request.- Returns:
- Result of the ListAliases operation returned by the service.
- See Also:
-
listAliasesPaginator
default ListAliasesIterable listAliasesPaginator(ListAliasesRequest listAliasesRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException 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
2) Using For loopsoftware.amazon.awssdk.services.lambda.paginators.ListAliasesIterable responses = client.listAliasesPaginator(request); responses.stream().forEach(....);{ @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 directlysoftware.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.- Parameters:
listAliasesRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listAliasesPaginator
default ListAliasesIterable listAliasesPaginator(Consumer<ListAliasesRequest.Builder> listAliasesRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException 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
2) Using For loopsoftware.amazon.awssdk.services.lambda.paginators.ListAliasesIterable responses = client.listAliasesPaginator(request); responses.stream().forEach(....);{ @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 directlysoftware.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.Builderavoiding the need to create one manually viaListAliasesRequest.builder()- Parameters:
listAliasesRequest- AConsumerthat will call methods onListAliasesRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listCodeSigningConfigs
default ListCodeSigningConfigsResponse listCodeSigningConfigs(ListCodeSigningConfigsRequest listCodeSigningConfigsRequest) throws ServiceException, InvalidParameterValueException, AwsServiceException, SdkClientException, LambdaException Returns a list of code signing configurations. A request returns up to 10,000 configurations per call. You can use the
MaxItemsparameter to return fewer configurations per call.- Parameters:
listCodeSigningConfigsRequest-- Returns:
- Result of the ListCodeSigningConfigs operation returned by the service.
- See Also:
-
listCodeSigningConfigs
default ListCodeSigningConfigsResponse listCodeSigningConfigs(Consumer<ListCodeSigningConfigsRequest.Builder> listCodeSigningConfigsRequest) throws ServiceException, InvalidParameterValueException, AwsServiceException, SdkClientException, LambdaException Returns a list of code signing configurations. A request returns up to 10,000 configurations per call. You can use the
MaxItemsparameter to return fewer configurations per call.
This is a convenience which creates an instance of the
ListCodeSigningConfigsRequest.Builderavoiding the need to create one manually viaListCodeSigningConfigsRequest.builder()- Parameters:
listCodeSigningConfigsRequest- AConsumerthat will call methods onListCodeSigningConfigsRequest.Builderto create a request.- Returns:
- Result of the ListCodeSigningConfigs operation returned by the service.
- See Also:
-
listCodeSigningConfigsPaginator
default ListCodeSigningConfigsIterable listCodeSigningConfigsPaginator(ListCodeSigningConfigsRequest listCodeSigningConfigsRequest) throws ServiceException, InvalidParameterValueException, AwsServiceException, SdkClientException, LambdaException This is a variant of
listCodeSigningConfigs(software.amazon.awssdk.services.lambda.model.ListCodeSigningConfigsRequest)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
2) Using For loopsoftware.amazon.awssdk.services.lambda.paginators.ListCodeSigningConfigsIterable responses = client.listCodeSigningConfigsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.lambda.paginators.ListCodeSigningConfigsIterable responses = client .listCodeSigningConfigsPaginator(request); for (software.amazon.awssdk.services.lambda.model.ListCodeSigningConfigsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.lambda.paginators.ListCodeSigningConfigsIterable responses = client.listCodeSigningConfigsPaginator(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
listCodeSigningConfigs(software.amazon.awssdk.services.lambda.model.ListCodeSigningConfigsRequest)operation.- Parameters:
listCodeSigningConfigsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listCodeSigningConfigsPaginator
default ListCodeSigningConfigsIterable listCodeSigningConfigsPaginator(Consumer<ListCodeSigningConfigsRequest.Builder> listCodeSigningConfigsRequest) throws ServiceException, InvalidParameterValueException, AwsServiceException, SdkClientException, LambdaException This is a variant of
listCodeSigningConfigs(software.amazon.awssdk.services.lambda.model.ListCodeSigningConfigsRequest)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
2) Using For loopsoftware.amazon.awssdk.services.lambda.paginators.ListCodeSigningConfigsIterable responses = client.listCodeSigningConfigsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.lambda.paginators.ListCodeSigningConfigsIterable responses = client .listCodeSigningConfigsPaginator(request); for (software.amazon.awssdk.services.lambda.model.ListCodeSigningConfigsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.lambda.paginators.ListCodeSigningConfigsIterable responses = client.listCodeSigningConfigsPaginator(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
listCodeSigningConfigs(software.amazon.awssdk.services.lambda.model.ListCodeSigningConfigsRequest)operation.
This is a convenience which creates an instance of the
ListCodeSigningConfigsRequest.Builderavoiding the need to create one manually viaListCodeSigningConfigsRequest.builder()- Parameters:
listCodeSigningConfigsRequest- AConsumerthat will call methods onListCodeSigningConfigsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listEventSourceMappings
default ListEventSourceMappingsResponse listEventSourceMappings(ListEventSourceMappingsRequest listEventSourceMappingsRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException Lists event source mappings. Specify an
EventSourceArnto show only event source mappings for a single event source.- Parameters:
listEventSourceMappingsRequest-- Returns:
- Result of the ListEventSourceMappings operation returned by the service.
- See Also:
-
listEventSourceMappings
default ListEventSourceMappingsResponse listEventSourceMappings(Consumer<ListEventSourceMappingsRequest.Builder> listEventSourceMappingsRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException Lists event source mappings. Specify an
EventSourceArnto show only event source mappings for a single event source.
This is a convenience which creates an instance of the
ListEventSourceMappingsRequest.Builderavoiding the need to create one manually viaListEventSourceMappingsRequest.builder()- Parameters:
listEventSourceMappingsRequest- AConsumerthat will call methods onListEventSourceMappingsRequest.Builderto create a request.- Returns:
- Result of the ListEventSourceMappings operation returned by the service.
- See Also:
-
listEventSourceMappings
default ListEventSourceMappingsResponse listEventSourceMappings() throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaExceptionLists event source mappings. Specify an
EventSourceArnto show only event source mappings for a single event source.- Returns:
- Result of the ListEventSourceMappings operation returned by the service.
- See Also:
-
listEventSourceMappingsPaginator
default ListEventSourceMappingsIterable listEventSourceMappingsPaginator() throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaExceptionThis 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
2) Using For loopsoftware.amazon.awssdk.services.lambda.paginators.ListEventSourceMappingsIterable responses = client.listEventSourceMappingsPaginator(request); responses.stream().forEach(....);{ @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 directlysoftware.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.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listEventSourceMappingsPaginator
default ListEventSourceMappingsIterable listEventSourceMappingsPaginator(ListEventSourceMappingsRequest listEventSourceMappingsRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException 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
2) Using For loopsoftware.amazon.awssdk.services.lambda.paginators.ListEventSourceMappingsIterable responses = client.listEventSourceMappingsPaginator(request); responses.stream().forEach(....);{ @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 directlysoftware.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.- Parameters:
listEventSourceMappingsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listEventSourceMappingsPaginator
default ListEventSourceMappingsIterable listEventSourceMappingsPaginator(Consumer<ListEventSourceMappingsRequest.Builder> listEventSourceMappingsRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException 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
2) Using For loopsoftware.amazon.awssdk.services.lambda.paginators.ListEventSourceMappingsIterable responses = client.listEventSourceMappingsPaginator(request); responses.stream().forEach(....);{ @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 directlysoftware.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.Builderavoiding the need to create one manually viaListEventSourceMappingsRequest.builder()- Parameters:
listEventSourceMappingsRequest- AConsumerthat will call methods onListEventSourceMappingsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listFunctionEventInvokeConfigs
default 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.
- Parameters:
listFunctionEventInvokeConfigsRequest-- Returns:
- Result of the ListFunctionEventInvokeConfigs operation returned by the service.
- See Also:
-
listFunctionEventInvokeConfigs
default 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.Builderavoiding the need to create one manually viaListFunctionEventInvokeConfigsRequest.builder()- Parameters:
listFunctionEventInvokeConfigsRequest- AConsumerthat will call methods onListFunctionEventInvokeConfigsRequest.Builderto create a request.- Returns:
- Result of the ListFunctionEventInvokeConfigs operation returned by the service.
- See Also:
-
listFunctionEventInvokeConfigsPaginator
default ListFunctionEventInvokeConfigsIterable listFunctionEventInvokeConfigsPaginator(ListFunctionEventInvokeConfigsRequest listFunctionEventInvokeConfigsRequest) throws InvalidParameterValueException, ResourceNotFoundException, TooManyRequestsException, ServiceException, AwsServiceException, SdkClientException, LambdaException 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
2) Using For loopsoftware.amazon.awssdk.services.lambda.paginators.ListFunctionEventInvokeConfigsIterable responses = client.listFunctionEventInvokeConfigsPaginator(request); responses.stream().forEach(....);{ @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 directlysoftware.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.- Parameters:
listFunctionEventInvokeConfigsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listFunctionEventInvokeConfigsPaginator
default ListFunctionEventInvokeConfigsIterable listFunctionEventInvokeConfigsPaginator(Consumer<ListFunctionEventInvokeConfigsRequest.Builder> listFunctionEventInvokeConfigsRequest) throws InvalidParameterValueException, ResourceNotFoundException, TooManyRequestsException, ServiceException, AwsServiceException, SdkClientException, LambdaException 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
2) Using For loopsoftware.amazon.awssdk.services.lambda.paginators.ListFunctionEventInvokeConfigsIterable responses = client.listFunctionEventInvokeConfigsPaginator(request); responses.stream().forEach(....);{ @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 directlysoftware.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.Builderavoiding the need to create one manually viaListFunctionEventInvokeConfigsRequest.builder()- Parameters:
listFunctionEventInvokeConfigsRequest- AConsumerthat will call methods onListFunctionEventInvokeConfigsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listFunctionUrlConfigs
default ListFunctionUrlConfigsResponse listFunctionUrlConfigs(ListFunctionUrlConfigsRequest listFunctionUrlConfigsRequest) throws InvalidParameterValueException, ServiceException, ResourceNotFoundException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException Returns a list of Lambda function URLs for the specified function.
- Parameters:
listFunctionUrlConfigsRequest-- Returns:
- Result of the ListFunctionUrlConfigs operation returned by the service.
- See Also:
-
listFunctionUrlConfigs
default ListFunctionUrlConfigsResponse listFunctionUrlConfigs(Consumer<ListFunctionUrlConfigsRequest.Builder> listFunctionUrlConfigsRequest) throws InvalidParameterValueException, ServiceException, ResourceNotFoundException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException Returns a list of Lambda function URLs for the specified function.
This is a convenience which creates an instance of the
ListFunctionUrlConfigsRequest.Builderavoiding the need to create one manually viaListFunctionUrlConfigsRequest.builder()- Parameters:
listFunctionUrlConfigsRequest- AConsumerthat will call methods onListFunctionUrlConfigsRequest.Builderto create a request.- Returns:
- Result of the ListFunctionUrlConfigs operation returned by the service.
- See Also:
-
listFunctionUrlConfigsPaginator
default ListFunctionUrlConfigsIterable listFunctionUrlConfigsPaginator(ListFunctionUrlConfigsRequest listFunctionUrlConfigsRequest) throws InvalidParameterValueException, ServiceException, ResourceNotFoundException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException This is a variant of
listFunctionUrlConfigs(software.amazon.awssdk.services.lambda.model.ListFunctionUrlConfigsRequest)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
2) Using For loopsoftware.amazon.awssdk.services.lambda.paginators.ListFunctionUrlConfigsIterable responses = client.listFunctionUrlConfigsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.lambda.paginators.ListFunctionUrlConfigsIterable responses = client .listFunctionUrlConfigsPaginator(request); for (software.amazon.awssdk.services.lambda.model.ListFunctionUrlConfigsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.lambda.paginators.ListFunctionUrlConfigsIterable responses = client.listFunctionUrlConfigsPaginator(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
listFunctionUrlConfigs(software.amazon.awssdk.services.lambda.model.ListFunctionUrlConfigsRequest)operation.- Parameters:
listFunctionUrlConfigsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listFunctionUrlConfigsPaginator
default ListFunctionUrlConfigsIterable listFunctionUrlConfigsPaginator(Consumer<ListFunctionUrlConfigsRequest.Builder> listFunctionUrlConfigsRequest) throws InvalidParameterValueException, ServiceException, ResourceNotFoundException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException This is a variant of
listFunctionUrlConfigs(software.amazon.awssdk.services.lambda.model.ListFunctionUrlConfigsRequest)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
2) Using For loopsoftware.amazon.awssdk.services.lambda.paginators.ListFunctionUrlConfigsIterable responses = client.listFunctionUrlConfigsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.lambda.paginators.ListFunctionUrlConfigsIterable responses = client .listFunctionUrlConfigsPaginator(request); for (software.amazon.awssdk.services.lambda.model.ListFunctionUrlConfigsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.lambda.paginators.ListFunctionUrlConfigsIterable responses = client.listFunctionUrlConfigsPaginator(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
listFunctionUrlConfigs(software.amazon.awssdk.services.lambda.model.ListFunctionUrlConfigsRequest)operation.
This is a convenience which creates an instance of the
ListFunctionUrlConfigsRequest.Builderavoiding the need to create one manually viaListFunctionUrlConfigsRequest.builder()- Parameters:
listFunctionUrlConfigsRequest- AConsumerthat will call methods onListFunctionUrlConfigsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listFunctions
default 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
FunctionVersiontoALLto include all published versions of each function in addition to the unpublished version.The
ListFunctionsoperation returns a subset of the FunctionConfiguration fields. To get the additional fields (State, StateReasonCode, StateReason, LastUpdateStatus, LastUpdateStatusReason, LastUpdateStatusReasonCode, RuntimeVersionConfig) for a function or version, use GetFunction.- Parameters:
listFunctionsRequest-- Returns:
- Result of the ListFunctions operation returned by the service.
- See Also:
-
listFunctions
default 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
FunctionVersiontoALLto include all published versions of each function in addition to the unpublished version.The
ListFunctionsoperation returns a subset of the FunctionConfiguration fields. To get the additional fields (State, StateReasonCode, StateReason, LastUpdateStatus, LastUpdateStatusReason, LastUpdateStatusReasonCode, RuntimeVersionConfig) for a function or version, use GetFunction.
This is a convenience which creates an instance of the
ListFunctionsRequest.Builderavoiding the need to create one manually viaListFunctionsRequest.builder()- Parameters:
listFunctionsRequest- AConsumerthat will call methods onListFunctionsRequest.Builderto create a request.- Returns:
- Result of the ListFunctions operation returned by the service.
- See Also:
-
listFunctions
default ListFunctionsResponse listFunctions() throws ServiceException, TooManyRequestsException, InvalidParameterValueException, AwsServiceException, SdkClientException, LambdaExceptionReturns a list of Lambda functions, with the version-specific configuration of each. Lambda returns up to 50 functions per call.
Set
FunctionVersiontoALLto include all published versions of each function in addition to the unpublished version.The
ListFunctionsoperation returns a subset of the FunctionConfiguration fields. To get the additional fields (State, StateReasonCode, StateReason, LastUpdateStatus, LastUpdateStatusReason, LastUpdateStatusReasonCode, RuntimeVersionConfig) for a function or version, use GetFunction.- Returns:
- Result of the ListFunctions operation returned by the service.
- See Also:
-
listFunctionsPaginator
default ListFunctionsIterable listFunctionsPaginator() throws ServiceException, TooManyRequestsException, InvalidParameterValueException, AwsServiceException, SdkClientException, LambdaExceptionThis 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
2) Using For loopsoftware.amazon.awssdk.services.lambda.paginators.ListFunctionsIterable responses = client.listFunctionsPaginator(request); responses.stream().forEach(....);{ @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 directlysoftware.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.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listFunctionsPaginator
default ListFunctionsIterable listFunctionsPaginator(ListFunctionsRequest listFunctionsRequest) throws ServiceException, TooManyRequestsException, InvalidParameterValueException, AwsServiceException, SdkClientException, LambdaException 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
2) Using For loopsoftware.amazon.awssdk.services.lambda.paginators.ListFunctionsIterable responses = client.listFunctionsPaginator(request); responses.stream().forEach(....);{ @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 directlysoftware.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.- Parameters:
listFunctionsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listFunctionsPaginator
default ListFunctionsIterable listFunctionsPaginator(Consumer<ListFunctionsRequest.Builder> listFunctionsRequest) throws ServiceException, TooManyRequestsException, InvalidParameterValueException, AwsServiceException, SdkClientException, LambdaException 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
2) Using For loopsoftware.amazon.awssdk.services.lambda.paginators.ListFunctionsIterable responses = client.listFunctionsPaginator(request); responses.stream().forEach(....);{ @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 directlysoftware.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.Builderavoiding the need to create one manually viaListFunctionsRequest.builder()- Parameters:
listFunctionsRequest- AConsumerthat will call methods onListFunctionsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listFunctionsByCodeSigningConfig
default ListFunctionsByCodeSigningConfigResponse listFunctionsByCodeSigningConfig(ListFunctionsByCodeSigningConfigRequest listFunctionsByCodeSigningConfigRequest) throws ServiceException, InvalidParameterValueException, ResourceNotFoundException, AwsServiceException, SdkClientException, LambdaException List the functions that use the specified code signing configuration. You can use this method prior to deleting a code signing configuration, to verify that no functions are using it.
- Parameters:
listFunctionsByCodeSigningConfigRequest-- Returns:
- Result of the ListFunctionsByCodeSigningConfig operation returned by the service.
- See Also:
-
listFunctionsByCodeSigningConfig
default ListFunctionsByCodeSigningConfigResponse listFunctionsByCodeSigningConfig(Consumer<ListFunctionsByCodeSigningConfigRequest.Builder> listFunctionsByCodeSigningConfigRequest) throws ServiceException, InvalidParameterValueException, ResourceNotFoundException, AwsServiceException, SdkClientException, LambdaException List the functions that use the specified code signing configuration. You can use this method prior to deleting a code signing configuration, to verify that no functions are using it.
This is a convenience which creates an instance of the
ListFunctionsByCodeSigningConfigRequest.Builderavoiding the need to create one manually viaListFunctionsByCodeSigningConfigRequest.builder()- Parameters:
listFunctionsByCodeSigningConfigRequest- AConsumerthat will call methods onListFunctionsByCodeSigningConfigRequest.Builderto create a request.- Returns:
- Result of the ListFunctionsByCodeSigningConfig operation returned by the service.
- See Also:
-
listFunctionsByCodeSigningConfigPaginator
default ListFunctionsByCodeSigningConfigIterable listFunctionsByCodeSigningConfigPaginator(ListFunctionsByCodeSigningConfigRequest listFunctionsByCodeSigningConfigRequest) throws ServiceException, InvalidParameterValueException, ResourceNotFoundException, AwsServiceException, SdkClientException, LambdaException This is a variant of
listFunctionsByCodeSigningConfig(software.amazon.awssdk.services.lambda.model.ListFunctionsByCodeSigningConfigRequest)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
2) Using For loopsoftware.amazon.awssdk.services.lambda.paginators.ListFunctionsByCodeSigningConfigIterable responses = client.listFunctionsByCodeSigningConfigPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.lambda.paginators.ListFunctionsByCodeSigningConfigIterable responses = client .listFunctionsByCodeSigningConfigPaginator(request); for (software.amazon.awssdk.services.lambda.model.ListFunctionsByCodeSigningConfigResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.lambda.paginators.ListFunctionsByCodeSigningConfigIterable responses = client.listFunctionsByCodeSigningConfigPaginator(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
listFunctionsByCodeSigningConfig(software.amazon.awssdk.services.lambda.model.ListFunctionsByCodeSigningConfigRequest)operation.- Parameters:
listFunctionsByCodeSigningConfigRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listFunctionsByCodeSigningConfigPaginator
default ListFunctionsByCodeSigningConfigIterable listFunctionsByCodeSigningConfigPaginator(Consumer<ListFunctionsByCodeSigningConfigRequest.Builder> listFunctionsByCodeSigningConfigRequest) throws ServiceException, InvalidParameterValueException, ResourceNotFoundException, AwsServiceException, SdkClientException, LambdaException This is a variant of
listFunctionsByCodeSigningConfig(software.amazon.awssdk.services.lambda.model.ListFunctionsByCodeSigningConfigRequest)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
2) Using For loopsoftware.amazon.awssdk.services.lambda.paginators.ListFunctionsByCodeSigningConfigIterable responses = client.listFunctionsByCodeSigningConfigPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.lambda.paginators.ListFunctionsByCodeSigningConfigIterable responses = client .listFunctionsByCodeSigningConfigPaginator(request); for (software.amazon.awssdk.services.lambda.model.ListFunctionsByCodeSigningConfigResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.lambda.paginators.ListFunctionsByCodeSigningConfigIterable responses = client.listFunctionsByCodeSigningConfigPaginator(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
listFunctionsByCodeSigningConfig(software.amazon.awssdk.services.lambda.model.ListFunctionsByCodeSigningConfigRequest)operation.
This is a convenience which creates an instance of the
ListFunctionsByCodeSigningConfigRequest.Builderavoiding the need to create one manually viaListFunctionsByCodeSigningConfigRequest.builder()- Parameters:
listFunctionsByCodeSigningConfigRequest- AConsumerthat will call methods onListFunctionsByCodeSigningConfigRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listLayerVersions
default ListLayerVersionsResponse listLayerVersions(ListLayerVersionsRequest listLayerVersionsRequest) throws ServiceException, InvalidParameterValueException, ResourceNotFoundException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException Lists the versions of an 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. Specify a compatible architecture to include only layer versions that are compatible with that architecture.
- Parameters:
listLayerVersionsRequest-- Returns:
- Result of the ListLayerVersions operation returned by the service.
- See Also:
-
listLayerVersions
default ListLayerVersionsResponse listLayerVersions(Consumer<ListLayerVersionsRequest.Builder> listLayerVersionsRequest) throws ServiceException, InvalidParameterValueException, ResourceNotFoundException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException Lists the versions of an 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. Specify a compatible architecture to include only layer versions that are compatible with that architecture.
This is a convenience which creates an instance of the
ListLayerVersionsRequest.Builderavoiding the need to create one manually viaListLayerVersionsRequest.builder()- Parameters:
listLayerVersionsRequest- AConsumerthat will call methods onListLayerVersionsRequest.Builderto create a request.- Returns:
- Result of the ListLayerVersions operation returned by the service.
- See Also:
-
listLayerVersionsPaginator
default ListLayerVersionsIterable listLayerVersionsPaginator(ListLayerVersionsRequest listLayerVersionsRequest) throws ServiceException, InvalidParameterValueException, ResourceNotFoundException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException 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
2) Using For loopsoftware.amazon.awssdk.services.lambda.paginators.ListLayerVersionsIterable responses = client.listLayerVersionsPaginator(request); responses.stream().forEach(....);{ @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 directlysoftware.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.- Parameters:
listLayerVersionsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listLayerVersionsPaginator
default ListLayerVersionsIterable listLayerVersionsPaginator(Consumer<ListLayerVersionsRequest.Builder> listLayerVersionsRequest) throws ServiceException, InvalidParameterValueException, ResourceNotFoundException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException 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
2) Using For loopsoftware.amazon.awssdk.services.lambda.paginators.ListLayerVersionsIterable responses = client.listLayerVersionsPaginator(request); responses.stream().forEach(....);{ @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 directlysoftware.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.Builderavoiding the need to create one manually viaListLayerVersionsRequest.builder()- Parameters:
listLayerVersionsRequest- AConsumerthat will call methods onListLayerVersionsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listLayers
default ListLayersResponse listLayers(ListLayersRequest listLayersRequest) throws ServiceException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException Lists 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. Specify a compatible architecture to include only layers that are compatible with that instruction set architecture.
- Parameters:
listLayersRequest-- Returns:
- Result of the ListLayers operation returned by the service.
- See Also:
-
listLayers
default ListLayersResponse listLayers(Consumer<ListLayersRequest.Builder> listLayersRequest) throws ServiceException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException Lists 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. Specify a compatible architecture to include only layers that are compatible with that instruction set architecture.
This is a convenience which creates an instance of the
ListLayersRequest.Builderavoiding the need to create one manually viaListLayersRequest.builder()- Parameters:
listLayersRequest- AConsumerthat will call methods onListLayersRequest.Builderto create a request.- Returns:
- Result of the ListLayers operation returned by the service.
- See Also:
-
listLayers
default ListLayersResponse listLayers() throws ServiceException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaExceptionLists 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. Specify a compatible architecture to include only layers that are compatible with that instruction set architecture.
- Returns:
- Result of the ListLayers operation returned by the service.
- See Also:
-
listLayersPaginator
default ListLayersIterable listLayersPaginator() throws ServiceException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaExceptionThis 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
2) Using For loopsoftware.amazon.awssdk.services.lambda.paginators.ListLayersIterable responses = client.listLayersPaginator(request); responses.stream().forEach(....);{ @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 directlysoftware.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.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listLayersPaginator
default ListLayersIterable listLayersPaginator(ListLayersRequest listLayersRequest) throws ServiceException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException 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
2) Using For loopsoftware.amazon.awssdk.services.lambda.paginators.ListLayersIterable responses = client.listLayersPaginator(request); responses.stream().forEach(....);{ @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 directlysoftware.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.- Parameters:
listLayersRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listLayersPaginator
default ListLayersIterable listLayersPaginator(Consumer<ListLayersRequest.Builder> listLayersRequest) throws ServiceException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException 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
2) Using For loopsoftware.amazon.awssdk.services.lambda.paginators.ListLayersIterable responses = client.listLayersPaginator(request); responses.stream().forEach(....);{ @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 directlysoftware.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.Builderavoiding the need to create one manually viaListLayersRequest.builder()- Parameters:
listLayersRequest- AConsumerthat will call methods onListLayersRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listProvisionedConcurrencyConfigs
default ListProvisionedConcurrencyConfigsResponse listProvisionedConcurrencyConfigs(ListProvisionedConcurrencyConfigsRequest listProvisionedConcurrencyConfigsRequest) throws InvalidParameterValueException, ResourceNotFoundException, TooManyRequestsException, ServiceException, AwsServiceException, SdkClientException, LambdaException Retrieves a list of provisioned concurrency configurations for a function.
- Parameters:
listProvisionedConcurrencyConfigsRequest-- Returns:
- Result of the ListProvisionedConcurrencyConfigs operation returned by the service.
- See Also:
-
listProvisionedConcurrencyConfigs
default 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.Builderavoiding the need to create one manually viaListProvisionedConcurrencyConfigsRequest.builder()- Parameters:
listProvisionedConcurrencyConfigsRequest- AConsumerthat will call methods onListProvisionedConcurrencyConfigsRequest.Builderto create a request.- Returns:
- Result of the ListProvisionedConcurrencyConfigs operation returned by the service.
- See Also:
-
listProvisionedConcurrencyConfigsPaginator
default ListProvisionedConcurrencyConfigsIterable listProvisionedConcurrencyConfigsPaginator(ListProvisionedConcurrencyConfigsRequest listProvisionedConcurrencyConfigsRequest) throws InvalidParameterValueException, ResourceNotFoundException, TooManyRequestsException, ServiceException, AwsServiceException, SdkClientException, LambdaException 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
2) Using For loopsoftware.amazon.awssdk.services.lambda.paginators.ListProvisionedConcurrencyConfigsIterable responses = client.listProvisionedConcurrencyConfigsPaginator(request); responses.stream().forEach(....);{ @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 directlysoftware.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.- Parameters:
listProvisionedConcurrencyConfigsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listProvisionedConcurrencyConfigsPaginator
default ListProvisionedConcurrencyConfigsIterable listProvisionedConcurrencyConfigsPaginator(Consumer<ListProvisionedConcurrencyConfigsRequest.Builder> listProvisionedConcurrencyConfigsRequest) throws InvalidParameterValueException, ResourceNotFoundException, TooManyRequestsException, ServiceException, AwsServiceException, SdkClientException, LambdaException 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
2) Using For loopsoftware.amazon.awssdk.services.lambda.paginators.ListProvisionedConcurrencyConfigsIterable responses = client.listProvisionedConcurrencyConfigsPaginator(request); responses.stream().forEach(....);{ @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 directlysoftware.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.Builderavoiding the need to create one manually viaListProvisionedConcurrencyConfigsRequest.builder()- Parameters:
listProvisionedConcurrencyConfigsRequest- AConsumerthat will call methods onListProvisionedConcurrencyConfigsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listTags
default ListTagsResponse listTags(ListTagsRequest listTagsRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException Returns a function, event source mapping, or code signing configuration's tags. You can also view function tags with GetFunction.
- Parameters:
listTagsRequest-- Returns:
- Result of the ListTags operation returned by the service.
- See Also:
-
listTags
default ListTagsResponse listTags(Consumer<ListTagsRequest.Builder> listTagsRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException Returns a function, event source mapping, or code signing configuration's tags. You can also view function tags with GetFunction.
This is a convenience which creates an instance of the
ListTagsRequest.Builderavoiding the need to create one manually viaListTagsRequest.builder()- Parameters:
listTagsRequest- AConsumerthat will call methods onListTagsRequest.Builderto create a request.- Returns:
- Result of the ListTags operation returned by the service.
- See Also:
-
listVersionsByFunction
default 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.
- Parameters:
listVersionsByFunctionRequest-- Returns:
- Result of the ListVersionsByFunction operation returned by the service.
- See Also:
-
listVersionsByFunction
default 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.Builderavoiding the need to create one manually viaListVersionsByFunctionRequest.builder()- Parameters:
listVersionsByFunctionRequest- AConsumerthat will call methods onListVersionsByFunctionRequest.Builderto create a request.- Returns:
- Result of the ListVersionsByFunction operation returned by the service.
- See Also:
-
listVersionsByFunctionPaginator
default ListVersionsByFunctionIterable listVersionsByFunctionPaginator(ListVersionsByFunctionRequest listVersionsByFunctionRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException 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
2) Using For loopsoftware.amazon.awssdk.services.lambda.paginators.ListVersionsByFunctionIterable responses = client.listVersionsByFunctionPaginator(request); responses.stream().forEach(....);{ @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 directlysoftware.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.- Parameters:
listVersionsByFunctionRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listVersionsByFunctionPaginator
default ListVersionsByFunctionIterable listVersionsByFunctionPaginator(Consumer<ListVersionsByFunctionRequest.Builder> listVersionsByFunctionRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException 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
2) Using For loopsoftware.amazon.awssdk.services.lambda.paginators.ListVersionsByFunctionIterable responses = client.listVersionsByFunctionPaginator(request); responses.stream().forEach(....);{ @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 directlysoftware.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.Builderavoiding the need to create one manually viaListVersionsByFunctionRequest.builder()- Parameters:
listVersionsByFunctionRequest- AConsumerthat will call methods onListVersionsByFunctionRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
publishLayerVersion
default PublishLayerVersionResponse publishLayerVersion(PublishLayerVersionRequest publishLayerVersionRequest) throws ServiceException, ResourceNotFoundException, TooManyRequestsException, InvalidParameterValueException, CodeStorageExceededException, AwsServiceException, SdkClientException, LambdaException Creates an Lambda layer from a ZIP archive. Each time you call
PublishLayerVersionwith the same layer name, a new version is created.Add layers to your function with CreateFunction or UpdateFunctionConfiguration.
- Parameters:
publishLayerVersionRequest-- Returns:
- Result of the PublishLayerVersion operation returned by the service.
- See Also:
-
publishLayerVersion
default PublishLayerVersionResponse publishLayerVersion(Consumer<PublishLayerVersionRequest.Builder> publishLayerVersionRequest) throws ServiceException, ResourceNotFoundException, TooManyRequestsException, InvalidParameterValueException, CodeStorageExceededException, AwsServiceException, SdkClientException, LambdaException Creates an Lambda layer from a ZIP archive. Each time you call
PublishLayerVersionwith 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.Builderavoiding the need to create one manually viaPublishLayerVersionRequest.builder()- Parameters:
publishLayerVersionRequest- AConsumerthat will call methods onPublishLayerVersionRequest.Builderto create a request.- Returns:
- Result of the PublishLayerVersion operation returned by the service.
- See Also:
-
publishVersion
default 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.
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.
- Parameters:
publishVersionRequest-- Returns:
- Result of the PublishVersion operation returned by the service.
- See Also:
-
publishVersion
default 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.
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.Builderavoiding the need to create one manually viaPublishVersionRequest.builder()- Parameters:
publishVersionRequest- AConsumerthat will call methods onPublishVersionRequest.Builderto create a request.- Returns:
- Result of the PublishVersion operation returned by the service.
- See Also:
-
putFunctionCodeSigningConfig
default PutFunctionCodeSigningConfigResponse putFunctionCodeSigningConfig(PutFunctionCodeSigningConfigRequest putFunctionCodeSigningConfigRequest) throws ServiceException, InvalidParameterValueException, ResourceNotFoundException, TooManyRequestsException, ResourceConflictException, CodeSigningConfigNotFoundException, AwsServiceException, SdkClientException, LambdaException Update the code signing configuration for the function. Changes to the code signing configuration take effect the next time a user tries to deploy a code package to the function.
- Parameters:
putFunctionCodeSigningConfigRequest-- Returns:
- Result of the PutFunctionCodeSigningConfig operation returned by the service.
- See Also:
-
putFunctionCodeSigningConfig
default PutFunctionCodeSigningConfigResponse putFunctionCodeSigningConfig(Consumer<PutFunctionCodeSigningConfigRequest.Builder> putFunctionCodeSigningConfigRequest) throws ServiceException, InvalidParameterValueException, ResourceNotFoundException, TooManyRequestsException, ResourceConflictException, CodeSigningConfigNotFoundException, AwsServiceException, SdkClientException, LambdaException Update the code signing configuration for the function. Changes to the code signing configuration take effect the next time a user tries to deploy a code package to the function.
This is a convenience which creates an instance of the
PutFunctionCodeSigningConfigRequest.Builderavoiding the need to create one manually viaPutFunctionCodeSigningConfigRequest.builder()- Parameters:
putFunctionCodeSigningConfigRequest- AConsumerthat will call methods onPutFunctionCodeSigningConfigRequest.Builderto create a request.- Returns:
- Result of the PutFunctionCodeSigningConfig operation returned by the service.
- See Also:
-
putFunctionConcurrency
default 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 Lambda function scaling.
- Parameters:
putFunctionConcurrencyRequest-- Returns:
- Result of the PutFunctionConcurrency operation returned by the service.
- See Also:
-
putFunctionConcurrency
default 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 Lambda function scaling.
This is a convenience which creates an instance of the
PutFunctionConcurrencyRequest.Builderavoiding the need to create one manually viaPutFunctionConcurrencyRequest.builder()- Parameters:
putFunctionConcurrencyRequest- AConsumerthat will call methods onPutFunctionConcurrencyRequest.Builderto create a request.- Returns:
- Result of the PutFunctionConcurrency operation returned by the service.
- See Also:
-
putFunctionEventInvokeConfig
default PutFunctionEventInvokeConfigResponse putFunctionEventInvokeConfig(PutFunctionEventInvokeConfigRequest putFunctionEventInvokeConfigRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, ResourceConflictException, 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.
- Parameters:
putFunctionEventInvokeConfigRequest-- Returns:
- Result of the PutFunctionEventInvokeConfig operation returned by the service.
- See Also:
-
putFunctionEventInvokeConfig
default PutFunctionEventInvokeConfigResponse putFunctionEventInvokeConfig(Consumer<PutFunctionEventInvokeConfigRequest.Builder> putFunctionEventInvokeConfigRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, ResourceConflictException, 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.Builderavoiding the need to create one manually viaPutFunctionEventInvokeConfigRequest.builder()- Parameters:
putFunctionEventInvokeConfigRequest- AConsumerthat will call methods onPutFunctionEventInvokeConfigRequest.Builderto create a request.- Returns:
- Result of the PutFunctionEventInvokeConfig operation returned by the service.
- See Also:
-
putFunctionRecursionConfig
default PutFunctionRecursionConfigResponse putFunctionRecursionConfig(PutFunctionRecursionConfigRequest putFunctionRecursionConfigRequest) throws InvalidParameterValueException, ResourceConflictException, ResourceNotFoundException, TooManyRequestsException, ServiceException, AwsServiceException, SdkClientException, LambdaException Sets your function's recursive loop detection configuration.
When you configure a Lambda function to output to the same service or resource that invokes the function, it's possible to create an infinite recursive loop. For example, a Lambda function might write a message to an Amazon Simple Queue Service (Amazon SQS) queue, which then invokes the same function. This invocation causes the function to write another message to the queue, which in turn invokes the function again.
Lambda can detect certain types of recursive loops shortly after they occur. When Lambda detects a recursive loop and your function's recursive loop detection configuration is set to
Terminate, it stops your function being invoked and notifies you.- Parameters:
putFunctionRecursionConfigRequest-- Returns:
- Result of the PutFunctionRecursionConfig operation returned by the service.
- See Also:
-
putFunctionRecursionConfig
default PutFunctionRecursionConfigResponse putFunctionRecursionConfig(Consumer<PutFunctionRecursionConfigRequest.Builder> putFunctionRecursionConfigRequest) throws InvalidParameterValueException, ResourceConflictException, ResourceNotFoundException, TooManyRequestsException, ServiceException, AwsServiceException, SdkClientException, LambdaException Sets your function's recursive loop detection configuration.
When you configure a Lambda function to output to the same service or resource that invokes the function, it's possible to create an infinite recursive loop. For example, a Lambda function might write a message to an Amazon Simple Queue Service (Amazon SQS) queue, which then invokes the same function. This invocation causes the function to write another message to the queue, which in turn invokes the function again.
Lambda can detect certain types of recursive loops shortly after they occur. When Lambda detects a recursive loop and your function's recursive loop detection configuration is set to
Terminate, it stops your function being invoked and notifies you.
This is a convenience which creates an instance of the
PutFunctionRecursionConfigRequest.Builderavoiding the need to create one manually viaPutFunctionRecursionConfigRequest.builder()- Parameters:
putFunctionRecursionConfigRequest- AConsumerthat will call methods onPutFunctionRecursionConfigRequest.Builderto create a request.- Returns:
- Result of the PutFunctionRecursionConfig operation returned by the service.
- See Also:
-
putProvisionedConcurrencyConfig
default 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.
- Parameters:
putProvisionedConcurrencyConfigRequest-- Returns:
- Result of the PutProvisionedConcurrencyConfig operation returned by the service.
- See Also:
-
putProvisionedConcurrencyConfig
default 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.Builderavoiding the need to create one manually viaPutProvisionedConcurrencyConfigRequest.builder()- Parameters:
putProvisionedConcurrencyConfigRequest- AConsumerthat will call methods onPutProvisionedConcurrencyConfigRequest.Builderto create a request.- Returns:
- Result of the PutProvisionedConcurrencyConfig operation returned by the service.
- See Also:
-
putRuntimeManagementConfig
default PutRuntimeManagementConfigResponse putRuntimeManagementConfig(PutRuntimeManagementConfigRequest putRuntimeManagementConfigRequest) throws ServiceException, ResourceNotFoundException, ResourceConflictException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException Sets the runtime management configuration for a function's version. For more information, see Runtime updates.
- Parameters:
putRuntimeManagementConfigRequest-- Returns:
- Result of the PutRuntimeManagementConfig operation returned by the service.
- See Also:
-
putRuntimeManagementConfig
default PutRuntimeManagementConfigResponse putRuntimeManagementConfig(Consumer<PutRuntimeManagementConfigRequest.Builder> putRuntimeManagementConfigRequest) throws ServiceException, ResourceNotFoundException, ResourceConflictException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException Sets the runtime management configuration for a function's version. For more information, see Runtime updates.
This is a convenience which creates an instance of the
PutRuntimeManagementConfigRequest.Builderavoiding the need to create one manually viaPutRuntimeManagementConfigRequest.builder()- Parameters:
putRuntimeManagementConfigRequest- AConsumerthat will call methods onPutRuntimeManagementConfigRequest.Builderto create a request.- Returns:
- Result of the PutRuntimeManagementConfig operation returned by the service.
- See Also:
-
removeLayerVersionPermission
default 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 Lambda layer. For more information, see AddLayerVersionPermission.
- Parameters:
removeLayerVersionPermissionRequest-- Returns:
- Result of the RemoveLayerVersionPermission operation returned by the service.
- See Also:
-
removeLayerVersionPermission
default 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 Lambda layer. For more information, see AddLayerVersionPermission.
This is a convenience which creates an instance of the
RemoveLayerVersionPermissionRequest.Builderavoiding the need to create one manually viaRemoveLayerVersionPermissionRequest.builder()- Parameters:
removeLayerVersionPermissionRequest- AConsumerthat will call methods onRemoveLayerVersionPermissionRequest.Builderto create a request.- Returns:
- Result of the RemoveLayerVersionPermission operation returned by the service.
- See Also:
-
removePermission
default RemovePermissionResponse removePermission(RemovePermissionRequest removePermissionRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, PreconditionFailedException, AwsServiceException, SdkClientException, LambdaException Revokes function-use permission from an Amazon Web Services service or another Amazon Web Services account. You can get the ID of the statement from the output of GetPolicy.
- Parameters:
removePermissionRequest-- Returns:
- Result of the RemovePermission operation returned by the service.
- See Also:
-
removePermission
default RemovePermissionResponse removePermission(Consumer<RemovePermissionRequest.Builder> removePermissionRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, PreconditionFailedException, AwsServiceException, SdkClientException, LambdaException Revokes function-use permission from an Amazon Web Services service or another Amazon Web Services 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.Builderavoiding the need to create one manually viaRemovePermissionRequest.builder()- Parameters:
removePermissionRequest- AConsumerthat will call methods onRemovePermissionRequest.Builderto create a request.- Returns:
- Result of the RemovePermission operation returned by the service.
- See Also:
-
tagResource
default TagResourceResponse tagResource(TagResourceRequest tagResourceRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, ResourceConflictException, AwsServiceException, SdkClientException, LambdaException Adds tags to a function, event source mapping, or code signing configuration.
- Parameters:
tagResourceRequest-- Returns:
- Result of the TagResource operation returned by the service.
- See Also:
-
tagResource
default TagResourceResponse tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, ResourceConflictException, AwsServiceException, SdkClientException, LambdaException Adds tags to a function, event source mapping, or code signing configuration.
This is a convenience which creates an instance of the
TagResourceRequest.Builderavoiding the need to create one manually viaTagResourceRequest.builder()- Parameters:
tagResourceRequest- AConsumerthat will call methods onTagResourceRequest.Builderto create a request.- Returns:
- Result of the TagResource operation returned by the service.
- See Also:
-
untagResource
default UntagResourceResponse untagResource(UntagResourceRequest untagResourceRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, ResourceConflictException, AwsServiceException, SdkClientException, LambdaException Removes tags from a function, event source mapping, or code signing configuration.
- Parameters:
untagResourceRequest-- Returns:
- Result of the UntagResource operation returned by the service.
- See Also:
-
untagResource
default UntagResourceResponse untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, ResourceConflictException, AwsServiceException, SdkClientException, LambdaException Removes tags from a function, event source mapping, or code signing configuration.
This is a convenience which creates an instance of the
UntagResourceRequest.Builderavoiding the need to create one manually viaUntagResourceRequest.builder()- Parameters:
untagResourceRequest- AConsumerthat will call methods onUntagResourceRequest.Builderto create a request.- Returns:
- Result of the UntagResource operation returned by the service.
- See Also:
-
updateAlias
default UpdateAliasResponse updateAlias(UpdateAliasRequest updateAliasRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, PreconditionFailedException, ResourceConflictException, AwsServiceException, SdkClientException, LambdaException Updates the configuration of a Lambda function alias.
- Parameters:
updateAliasRequest-- Returns:
- Result of the UpdateAlias operation returned by the service.
- See Also:
-
updateAlias
default 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.Builderavoiding the need to create one manually viaUpdateAliasRequest.builder()- Parameters:
updateAliasRequest- AConsumerthat will call methods onUpdateAliasRequest.Builderto create a request.- Returns:
- Result of the UpdateAlias operation returned by the service.
- See Also:
-
updateCodeSigningConfig
default UpdateCodeSigningConfigResponse updateCodeSigningConfig(UpdateCodeSigningConfigRequest updateCodeSigningConfigRequest) throws ServiceException, InvalidParameterValueException, ResourceNotFoundException, AwsServiceException, SdkClientException, LambdaException Update the code signing configuration. Changes to the code signing configuration take effect the next time a user tries to deploy a code package to the function.
- Parameters:
updateCodeSigningConfigRequest-- Returns:
- Result of the UpdateCodeSigningConfig operation returned by the service.
- See Also:
-
updateCodeSigningConfig
default UpdateCodeSigningConfigResponse updateCodeSigningConfig(Consumer<UpdateCodeSigningConfigRequest.Builder> updateCodeSigningConfigRequest) throws ServiceException, InvalidParameterValueException, ResourceNotFoundException, AwsServiceException, SdkClientException, LambdaException Update the code signing configuration. Changes to the code signing configuration take effect the next time a user tries to deploy a code package to the function.
This is a convenience which creates an instance of the
UpdateCodeSigningConfigRequest.Builderavoiding the need to create one manually viaUpdateCodeSigningConfigRequest.builder()- Parameters:
updateCodeSigningConfigRequest- AConsumerthat will call methods onUpdateCodeSigningConfigRequest.Builderto create a request.- Returns:
- Result of the UpdateCodeSigningConfig operation returned by the service.
- See Also:
-
updateEventSourceMapping
default 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 Lambda invokes, or pause invocation and resume later from the same location.
For details about how to configure different event sources, see the following topics.
The following error handling options are available only 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. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires -
MaximumRetryAttempts– Discard records after the specified number of retries. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires. -
ParallelizationFactor– Process multiple batches from each shard concurrently.
For information about which configuration parameters apply to each event source, see the following topics.
- Parameters:
updateEventSourceMappingRequest-- Returns:
- Result of the UpdateEventSourceMapping operation returned by the service.
- See Also:
-
updateEventSourceMapping
default 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 Lambda invokes, or pause invocation and resume later from the same location.
For details about how to configure different event sources, see the following topics.
The following error handling options are available only 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. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires -
MaximumRetryAttempts– Discard records after the specified number of retries. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires. -
ParallelizationFactor– Process multiple batches from each shard concurrently.
For information about which configuration parameters apply to each event source, see the following topics.
This is a convenience which creates an instance of the
UpdateEventSourceMappingRequest.Builderavoiding the need to create one manually viaUpdateEventSourceMappingRequest.builder()- Parameters:
updateEventSourceMappingRequest- AConsumerthat will call methods onUpdateEventSourceMappingRequest.Builderto create a request.- Returns:
- Result of the UpdateEventSourceMapping operation returned by the service.
- See Also:
-
updateFunctionCode
default UpdateFunctionCodeResponse updateFunctionCode(UpdateFunctionCodeRequest updateFunctionCodeRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, CodeStorageExceededException, PreconditionFailedException, ResourceConflictException, CodeVerificationFailedException, InvalidCodeSignatureException, CodeSigningConfigNotFoundException, AwsServiceException, SdkClientException, LambdaException Updates a Lambda function's code. If code signing is enabled for the function, the code package must be signed by a trusted publisher. For more information, see Configuring code signing for Lambda.
If the function's package type is
Image, then you must specify the code package inImageUrias the URI of a container image in the Amazon ECR registry.If the function's package type is
Zip, then you must specify the deployment package as a .zip file archive. Enter the Amazon S3 bucket and key of the code .zip file location. You can also provide the function code inline using theZipFilefield.The code in the deployment package must be compatible with the target instruction set architecture of the function (
x86-64orarm64).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.
For a function defined as a container image, Lambda resolves the image tag to an image digest. In Amazon ECR, if you update the image tag to a new image, Lambda does not automatically update the function.
- Parameters:
updateFunctionCodeRequest-- Returns:
- Result of the UpdateFunctionCode operation returned by the service.
- See Also:
-
updateFunctionCode
default UpdateFunctionCodeResponse updateFunctionCode(Consumer<UpdateFunctionCodeRequest.Builder> updateFunctionCodeRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, CodeStorageExceededException, PreconditionFailedException, ResourceConflictException, CodeVerificationFailedException, InvalidCodeSignatureException, CodeSigningConfigNotFoundException, AwsServiceException, SdkClientException, LambdaException Updates a Lambda function's code. If code signing is enabled for the function, the code package must be signed by a trusted publisher. For more information, see Configuring code signing for Lambda.
If the function's package type is
Image, then you must specify the code package inImageUrias the URI of a container image in the Amazon ECR registry.If the function's package type is
Zip, then you must specify the deployment package as a .zip file archive. Enter the Amazon S3 bucket and key of the code .zip file location. You can also provide the function code inline using theZipFilefield.The code in the deployment package must be compatible with the target instruction set architecture of the function (
x86-64orarm64).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.
For a function defined as a container image, Lambda resolves the image tag to an image digest. In Amazon ECR, if you update the image tag to a new image, Lambda does not automatically update the function.
This is a convenience which creates an instance of the
UpdateFunctionCodeRequest.Builderavoiding the need to create one manually viaUpdateFunctionCodeRequest.builder()- Parameters:
updateFunctionCodeRequest- AConsumerthat will call methods onUpdateFunctionCodeRequest.Builderto create a request.- Returns:
- Result of the UpdateFunctionCode operation returned by the service.
- See Also:
-
updateFunctionConfiguration
default UpdateFunctionConfigurationResponse updateFunctionConfiguration(UpdateFunctionConfigurationRequest updateFunctionConfigurationRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, ResourceConflictException, PreconditionFailedException, CodeVerificationFailedException, InvalidCodeSignatureException, CodeSigningConfigNotFoundException, 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, andLastUpdateStatusReasonCodefields 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 Lambda 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 Amazon Web Services account or Amazon Web Services service, use AddPermission.
- Parameters:
updateFunctionConfigurationRequest-- Returns:
- Result of the UpdateFunctionConfiguration operation returned by the service.
- See Also:
-
updateFunctionConfiguration
default UpdateFunctionConfigurationResponse updateFunctionConfiguration(Consumer<UpdateFunctionConfigurationRequest.Builder> updateFunctionConfigurationRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, ResourceConflictException, PreconditionFailedException, CodeVerificationFailedException, InvalidCodeSignatureException, CodeSigningConfigNotFoundException, 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, andLastUpdateStatusReasonCodefields 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 Lambda 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 Amazon Web Services account or Amazon Web Services service, use AddPermission.
This is a convenience which creates an instance of the
UpdateFunctionConfigurationRequest.Builderavoiding the need to create one manually viaUpdateFunctionConfigurationRequest.builder()- Parameters:
updateFunctionConfigurationRequest- AConsumerthat will call methods onUpdateFunctionConfigurationRequest.Builderto create a request.- Returns:
- Result of the UpdateFunctionConfiguration operation returned by the service.
- See Also:
-
updateFunctionEventInvokeConfig
default UpdateFunctionEventInvokeConfigResponse updateFunctionEventInvokeConfig(UpdateFunctionEventInvokeConfigRequest updateFunctionEventInvokeConfigRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, ResourceConflictException, AwsServiceException, SdkClientException, LambdaException Updates the configuration for asynchronous invocation for a function, version, or alias.
To configure options for asynchronous invocation, use PutFunctionEventInvokeConfig.
- Parameters:
updateFunctionEventInvokeConfigRequest-- Returns:
- Result of the UpdateFunctionEventInvokeConfig operation returned by the service.
- See Also:
-
updateFunctionEventInvokeConfig
default UpdateFunctionEventInvokeConfigResponse updateFunctionEventInvokeConfig(Consumer<UpdateFunctionEventInvokeConfigRequest.Builder> updateFunctionEventInvokeConfigRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, ResourceConflictException, 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.Builderavoiding the need to create one manually viaUpdateFunctionEventInvokeConfigRequest.builder()- Parameters:
updateFunctionEventInvokeConfigRequest- AConsumerthat will call methods onUpdateFunctionEventInvokeConfigRequest.Builderto create a request.- Returns:
- Result of the UpdateFunctionEventInvokeConfig operation returned by the service.
- See Also:
-
updateFunctionUrlConfig
default UpdateFunctionUrlConfigResponse updateFunctionUrlConfig(UpdateFunctionUrlConfigRequest updateFunctionUrlConfigRequest) throws ResourceConflictException, ResourceNotFoundException, InvalidParameterValueException, ServiceException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException Updates the configuration for a Lambda function URL.
- Parameters:
updateFunctionUrlConfigRequest-- Returns:
- Result of the UpdateFunctionUrlConfig operation returned by the service.
- See Also:
-
updateFunctionUrlConfig
default UpdateFunctionUrlConfigResponse updateFunctionUrlConfig(Consumer<UpdateFunctionUrlConfigRequest.Builder> updateFunctionUrlConfigRequest) throws ResourceConflictException, ResourceNotFoundException, InvalidParameterValueException, ServiceException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException Updates the configuration for a Lambda function URL.
This is a convenience which creates an instance of the
UpdateFunctionUrlConfigRequest.Builderavoiding the need to create one manually viaUpdateFunctionUrlConfigRequest.builder()- Parameters:
updateFunctionUrlConfigRequest- AConsumerthat will call methods onUpdateFunctionUrlConfigRequest.Builderto create a request.- Returns:
- Result of the UpdateFunctionUrlConfig operation returned by the service.
- See Also:
-
waiter
Create an instance ofLambdaWaiterusing this client.Waiters created via this method are managed by the SDK and resources will be released when the service client is closed.
- Returns:
- an instance of
LambdaWaiter
-
create
Create aLambdaClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider. -
builder
Create a builder that can be used to configure and create aLambdaClient. -
serviceMetadata
-
serviceClientConfiguration
Description copied from interface:SdkClientThe SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfiguration- Specified by:
serviceClientConfigurationin interfaceAwsClient- Specified by:
serviceClientConfigurationin interfaceSdkClient- Returns:
- SdkServiceClientConfiguration
-