Interface LambdaWebAsyncClient
- All Superinterfaces:
AutoCloseable,AwsClient,SdkAutoCloseable,SdkClient
builder()
method.The asynchronous client performs non-blocking I/O when configured with any SdkAsyncHttpClient
supported in the SDK. However, full non-blocking is not guaranteed as the async client may perform blocking calls in
some cases such as credentials retrieval and endpoint discovery as part of the async API call.
The AWS Lambda Web Functions APIs (LambdaWeb namespace) are experimental and for internal AWS use only.
They are not yet available to external customers.
AWS Lambda Web Functions let you run web applications and APIs as HTTP servers on Lambda. A web function has one or more immutable revisions (code and configuration) and one or more endpoints that expose it over HTTPS.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringValue for looking up the service's metadata from theServiceMetadataProvider.static final String -
Method Summary
Modifier and TypeMethodDescriptionstatic LambdaWebAsyncClientBuilderbuilder()Create a builder that can be used to configure and create aLambdaWebAsyncClient.static LambdaWebAsyncClientcreate()Create aLambdaWebAsyncClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.createWebFunction(Consumer<CreateWebFunctionRequest.Builder> createWebFunctionRequest) Creates a web function with an initial revision and endpoint.createWebFunction(CreateWebFunctionRequest createWebFunctionRequest) Creates a web function with an initial revision and endpoint.createWebFunctionEndpoint(Consumer<CreateWebFunctionEndpointRequest.Builder> createWebFunctionEndpointRequest) Creates an endpoint for a web function.createWebFunctionEndpoint(CreateWebFunctionEndpointRequest createWebFunctionEndpointRequest) Creates an endpoint for a web function.createWebFunctionRevision(Consumer<CreateWebFunctionRevisionRequest.Builder> createWebFunctionRevisionRequest) Creates an immutable revision for a web function.createWebFunctionRevision(CreateWebFunctionRevisionRequest createWebFunctionRevisionRequest) Creates an immutable revision for a web function.deleteResourcePolicy(Consumer<DeleteResourcePolicyRequest.Builder> deleteResourcePolicyRequest) Removes the resource-based policy from a web function.deleteResourcePolicy(DeleteResourcePolicyRequest deleteResourcePolicyRequest) Removes the resource-based policy from a web function.deleteWebFunction(Consumer<DeleteWebFunctionRequest.Builder> deleteWebFunctionRequest) Deletes a web function and all of its associated revisions and endpoints.deleteWebFunction(DeleteWebFunctionRequest deleteWebFunctionRequest) Deletes a web function and all of its associated revisions and endpoints.deleteWebFunctionEndpoint(Consumer<DeleteWebFunctionEndpointRequest.Builder> deleteWebFunctionEndpointRequest) Deletes a web function endpoint.deleteWebFunctionEndpoint(DeleteWebFunctionEndpointRequest deleteWebFunctionEndpointRequest) Deletes a web function endpoint.deleteWebFunctionRevision(Consumer<DeleteWebFunctionRevisionRequest.Builder> deleteWebFunctionRevisionRequest) Deletes a web function revision.deleteWebFunctionRevision(DeleteWebFunctionRevisionRequest deleteWebFunctionRevisionRequest) Deletes a web function revision.getResourcePolicy(Consumer<GetResourcePolicyRequest.Builder> getResourcePolicyRequest) Retrieves the resource-based policy attached to a web function.getResourcePolicy(GetResourcePolicyRequest getResourcePolicyRequest) Retrieves the resource-based policy attached to a web function.getWebAccountSettings(Consumer<GetWebAccountSettingsRequest.Builder> getWebAccountSettingsRequest) Retrieves details about your AWS Lambda Web Functions account settings for the current AWS Region, including the quotas that apply to web functions and your current usage.getWebAccountSettings(GetWebAccountSettingsRequest getWebAccountSettingsRequest) Retrieves details about your AWS Lambda Web Functions account settings for the current AWS Region, including the quotas that apply to web functions and your current usage.default CompletableFuture<GetWebFunctionResponse> getWebFunction(Consumer<GetWebFunctionRequest.Builder> getWebFunctionRequest) Retrieves details about a web function, including its current state and configuration.default CompletableFuture<GetWebFunctionResponse> getWebFunction(GetWebFunctionRequest getWebFunctionRequest) Retrieves details about a web function, including its current state and configuration.getWebFunctionEndpoint(Consumer<GetWebFunctionEndpointRequest.Builder> getWebFunctionEndpointRequest) Retrieves details about a web function endpoint, including its current state, configuration, and domain name.getWebFunctionEndpoint(GetWebFunctionEndpointRequest getWebFunctionEndpointRequest) Retrieves details about a web function endpoint, including its current state, configuration, and domain name.getWebFunctionRevision(Consumer<GetWebFunctionRevisionRequest.Builder> getWebFunctionRevisionRequest) Retrieves details about a web function revision, including its state and configuration.getWebFunctionRevision(GetWebFunctionRevisionRequest getWebFunctionRevisionRequest) Retrieves details about a web function revision, including its state and configuration.default CompletableFuture<ListTagsResponse> listTags(Consumer<ListTagsRequest.Builder> listTagsRequest) Returns a list of tags applied to a web function.default CompletableFuture<ListTagsResponse> listTags(ListTagsRequest listTagsRequest) Returns a list of tags applied to a web function.listWebFunctionEndpoints(Consumer<ListWebFunctionEndpointsRequest.Builder> listWebFunctionEndpointsRequest) Lists endpoints for a web function.listWebFunctionEndpoints(ListWebFunctionEndpointsRequest listWebFunctionEndpointsRequest) Lists endpoints for a web function.listWebFunctionEndpointsPaginator(Consumer<ListWebFunctionEndpointsRequest.Builder> listWebFunctionEndpointsRequest) This is a variant oflistWebFunctionEndpoints(software.amazon.awssdk.services.lambdaweb.model.ListWebFunctionEndpointsRequest)operation.listWebFunctionEndpointsPaginator(ListWebFunctionEndpointsRequest listWebFunctionEndpointsRequest) This is a variant oflistWebFunctionEndpoints(software.amazon.awssdk.services.lambdaweb.model.ListWebFunctionEndpointsRequest)operation.listWebFunctionRevisions(Consumer<ListWebFunctionRevisionsRequest.Builder> listWebFunctionRevisionsRequest) Lists revisions for a web function.listWebFunctionRevisions(ListWebFunctionRevisionsRequest listWebFunctionRevisionsRequest) Lists revisions for a web function.listWebFunctionRevisionsPaginator(Consumer<ListWebFunctionRevisionsRequest.Builder> listWebFunctionRevisionsRequest) This is a variant oflistWebFunctionRevisions(software.amazon.awssdk.services.lambdaweb.model.ListWebFunctionRevisionsRequest)operation.listWebFunctionRevisionsPaginator(ListWebFunctionRevisionsRequest listWebFunctionRevisionsRequest) This is a variant oflistWebFunctionRevisions(software.amazon.awssdk.services.lambdaweb.model.ListWebFunctionRevisionsRequest)operation.listWebFunctions(Consumer<ListWebFunctionsRequest.Builder> listWebFunctionsRequest) Lists web functions in your account.listWebFunctions(ListWebFunctionsRequest listWebFunctionsRequest) Lists web functions in your account.default ListWebFunctionsPublisherlistWebFunctionsPaginator(Consumer<ListWebFunctionsRequest.Builder> listWebFunctionsRequest) This is a variant oflistWebFunctions(software.amazon.awssdk.services.lambdaweb.model.ListWebFunctionsRequest)operation.default ListWebFunctionsPublisherlistWebFunctionsPaginator(ListWebFunctionsRequest listWebFunctionsRequest) This is a variant oflistWebFunctions(software.amazon.awssdk.services.lambdaweb.model.ListWebFunctionsRequest)operation.putResourcePolicy(Consumer<PutResourcePolicyRequest.Builder> putResourcePolicyRequest) Adds or updates a resource-based policy on a web function.putResourcePolicy(PutResourcePolicyRequest putResourcePolicyRequest) Adds or updates a resource-based policy on a web function.The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationdefault CompletableFuture<TagResourceResponse> tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) Adds tags to a web function.default CompletableFuture<TagResourceResponse> tagResource(TagResourceRequest tagResourceRequest) Adds tags to a web function.default CompletableFuture<UntagResourceResponse> untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) Removes tags from a web function.default CompletableFuture<UntagResourceResponse> untagResource(UntagResourceRequest untagResourceRequest) Removes tags from a web function.updateWebFunctionEndpoint(Consumer<UpdateWebFunctionEndpointRequest.Builder> updateWebFunctionEndpointRequest) Updates the configuration of a web function endpoint.updateWebFunctionEndpoint(UpdateWebFunctionEndpointRequest updateWebFunctionEndpointRequest) Updates the configuration of a web function endpoint.default LambdaWebAsyncWaiterwaiter()Create an instance ofLambdaWebAsyncWaiterusing 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
-
createWebFunction
default CompletableFuture<CreateWebFunctionResponse> createWebFunction(CreateWebFunctionRequest createWebFunctionRequest) Creates a web function with an initial revision and endpoint. To create a web function, you provide the function name, revision configuration (code and service settings), and endpoint configuration.
To use this operation, you must have the
CreateWebFunctionpermission on the web function. You don't need separate permissions for the initial revision or endpoint.This API is experimental and for internal AWS use only. It is not yet available to external customers.
- Parameters:
createWebFunctionRequest- The request to create a web function.- Returns:
- A Java Future containing the result of the CreateWebFunction operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException You do not have sufficient permissions to perform this operation.
- ConflictException The request conflicts with the current state of the resource. Resolve the conflict and try again.
- InternalServerException An internal server error occurred. Try again later.
- ValidationException The request failed validation. Check the request parameters and try again.
- ResourceNotFoundException The specified resource was not found. Verify the resource identifier and try again.
- ThrottlingException The request was throttled. Reduce the frequency of requests and try again.
- ServiceQuotaExceededException A service quota was exceeded. Request a quota increase or reduce usage and try again.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LambdaWebException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createWebFunction
default CompletableFuture<CreateWebFunctionResponse> createWebFunction(Consumer<CreateWebFunctionRequest.Builder> createWebFunctionRequest) Creates a web function with an initial revision and endpoint. To create a web function, you provide the function name, revision configuration (code and service settings), and endpoint configuration.
To use this operation, you must have the
CreateWebFunctionpermission on the web function. You don't need separate permissions for the initial revision or endpoint.This API is experimental and for internal AWS use only. It is not yet available to external customers.
This is a convenience which creates an instance of the
CreateWebFunctionRequest.Builderavoiding the need to create one manually viaCreateWebFunctionRequest.builder()- Parameters:
createWebFunctionRequest- AConsumerthat will call methods onCreateWebFunctionRequest.Builderto create a request. The request to create a web function.- Returns:
- A Java Future containing the result of the CreateWebFunction operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException You do not have sufficient permissions to perform this operation.
- ConflictException The request conflicts with the current state of the resource. Resolve the conflict and try again.
- InternalServerException An internal server error occurred. Try again later.
- ValidationException The request failed validation. Check the request parameters and try again.
- ResourceNotFoundException The specified resource was not found. Verify the resource identifier and try again.
- ThrottlingException The request was throttled. Reduce the frequency of requests and try again.
- ServiceQuotaExceededException A service quota was exceeded. Request a quota increase or reduce usage and try again.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LambdaWebException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createWebFunctionEndpoint
default CompletableFuture<CreateWebFunctionEndpointResponse> createWebFunctionEndpoint(CreateWebFunctionEndpointRequest createWebFunctionEndpointRequest) Creates an endpoint for a web function. An endpoint exposes the web function over HTTPS and routes traffic to one or more revisions.
To use this operation, you must have the
CreateWebFunctionEndpointpermission on the web function, not on the endpoint being created.This API is experimental and for internal AWS use only. It is not yet available to external customers.
- Parameters:
createWebFunctionEndpointRequest- The request to create a web function endpoint.- Returns:
- A Java Future containing the result of the CreateWebFunctionEndpoint operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException You do not have sufficient permissions to perform this operation.
- ConflictException The request conflicts with the current state of the resource. Resolve the conflict and try again.
- InternalServerException An internal server error occurred. Try again later.
- ValidationException The request failed validation. Check the request parameters and try again.
- ResourceNotFoundException The specified resource was not found. Verify the resource identifier and try again.
- ThrottlingException The request was throttled. Reduce the frequency of requests and try again.
- ServiceQuotaExceededException A service quota was exceeded. Request a quota increase or reduce usage and try again.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LambdaWebException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createWebFunctionEndpoint
default CompletableFuture<CreateWebFunctionEndpointResponse> createWebFunctionEndpoint(Consumer<CreateWebFunctionEndpointRequest.Builder> createWebFunctionEndpointRequest) Creates an endpoint for a web function. An endpoint exposes the web function over HTTPS and routes traffic to one or more revisions.
To use this operation, you must have the
CreateWebFunctionEndpointpermission on the web function, not on the endpoint being created.This API is experimental and for internal AWS use only. It is not yet available to external customers.
This is a convenience which creates an instance of the
CreateWebFunctionEndpointRequest.Builderavoiding the need to create one manually viaCreateWebFunctionEndpointRequest.builder()- Parameters:
createWebFunctionEndpointRequest- AConsumerthat will call methods onCreateWebFunctionEndpointRequest.Builderto create a request. The request to create a web function endpoint.- Returns:
- A Java Future containing the result of the CreateWebFunctionEndpoint operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException You do not have sufficient permissions to perform this operation.
- ConflictException The request conflicts with the current state of the resource. Resolve the conflict and try again.
- InternalServerException An internal server error occurred. Try again later.
- ValidationException The request failed validation. Check the request parameters and try again.
- ResourceNotFoundException The specified resource was not found. Verify the resource identifier and try again.
- ThrottlingException The request was throttled. Reduce the frequency of requests and try again.
- ServiceQuotaExceededException A service quota was exceeded. Request a quota increase or reduce usage and try again.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LambdaWebException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createWebFunctionRevision
default CompletableFuture<CreateWebFunctionRevisionResponse> createWebFunctionRevision(CreateWebFunctionRevisionRequest createWebFunctionRevisionRequest) Creates an immutable revision for a web function. A revision represents a specific version of the function code and configuration.
To use this operation, you must have the
CreateWebFunctionRevisionpermission on the web function, not on the revision being created.This API is experimental and for internal AWS use only. It is not yet available to external customers.
- Parameters:
createWebFunctionRevisionRequest- The request to create a web function revision.- Returns:
- A Java Future containing the result of the CreateWebFunctionRevision operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException You do not have sufficient permissions to perform this operation.
- ConflictException The request conflicts with the current state of the resource. Resolve the conflict and try again.
- InternalServerException An internal server error occurred. Try again later.
- ValidationException The request failed validation. Check the request parameters and try again.
- ResourceNotFoundException The specified resource was not found. Verify the resource identifier and try again.
- ThrottlingException The request was throttled. Reduce the frequency of requests and try again.
- ServiceQuotaExceededException A service quota was exceeded. Request a quota increase or reduce usage and try again.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LambdaWebException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createWebFunctionRevision
default CompletableFuture<CreateWebFunctionRevisionResponse> createWebFunctionRevision(Consumer<CreateWebFunctionRevisionRequest.Builder> createWebFunctionRevisionRequest) Creates an immutable revision for a web function. A revision represents a specific version of the function code and configuration.
To use this operation, you must have the
CreateWebFunctionRevisionpermission on the web function, not on the revision being created.This API is experimental and for internal AWS use only. It is not yet available to external customers.
This is a convenience which creates an instance of the
CreateWebFunctionRevisionRequest.Builderavoiding the need to create one manually viaCreateWebFunctionRevisionRequest.builder()- Parameters:
createWebFunctionRevisionRequest- AConsumerthat will call methods onCreateWebFunctionRevisionRequest.Builderto create a request. The request to create a web function revision.- Returns:
- A Java Future containing the result of the CreateWebFunctionRevision operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException You do not have sufficient permissions to perform this operation.
- ConflictException The request conflicts with the current state of the resource. Resolve the conflict and try again.
- InternalServerException An internal server error occurred. Try again later.
- ValidationException The request failed validation. Check the request parameters and try again.
- ResourceNotFoundException The specified resource was not found. Verify the resource identifier and try again.
- ThrottlingException The request was throttled. Reduce the frequency of requests and try again.
- ServiceQuotaExceededException A service quota was exceeded. Request a quota increase or reduce usage and try again.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LambdaWebException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteResourcePolicy
default CompletableFuture<DeleteResourcePolicyResponse> deleteResourcePolicy(DeleteResourcePolicyRequest deleteResourcePolicyRequest) Removes the resource-based policy from a web function.
This API is experimental and for internal AWS use only. It is not yet available to external customers.
- Parameters:
deleteResourcePolicyRequest- The request to delete a resource-based policy.- Returns:
- A Java Future containing the result of the DeleteResourcePolicy operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException You do not have sufficient permissions to perform this operation.
- ConflictException The request conflicts with the current state of the resource. Resolve the conflict and try again.
- InternalServerException An internal server error occurred. Try again later.
- ValidationException The request failed validation. Check the request parameters and try again.
- ResourceNotFoundException The specified resource was not found. Verify the resource identifier and try again.
- ThrottlingException The request was throttled. Reduce the frequency of requests and try again.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LambdaWebException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteResourcePolicy
default CompletableFuture<DeleteResourcePolicyResponse> deleteResourcePolicy(Consumer<DeleteResourcePolicyRequest.Builder> deleteResourcePolicyRequest) Removes the resource-based policy from a web function.
This API is experimental and for internal AWS use only. It is not yet available to external customers.
This is a convenience which creates an instance of the
DeleteResourcePolicyRequest.Builderavoiding the need to create one manually viaDeleteResourcePolicyRequest.builder()- Parameters:
deleteResourcePolicyRequest- AConsumerthat will call methods onDeleteResourcePolicyRequest.Builderto create a request. The request to delete a resource-based policy.- Returns:
- A Java Future containing the result of the DeleteResourcePolicy operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException You do not have sufficient permissions to perform this operation.
- ConflictException The request conflicts with the current state of the resource. Resolve the conflict and try again.
- InternalServerException An internal server error occurred. Try again later.
- ValidationException The request failed validation. Check the request parameters and try again.
- ResourceNotFoundException The specified resource was not found. Verify the resource identifier and try again.
- ThrottlingException The request was throttled. Reduce the frequency of requests and try again.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LambdaWebException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteWebFunction
default CompletableFuture<DeleteWebFunctionResponse> deleteWebFunction(DeleteWebFunctionRequest deleteWebFunctionRequest) Deletes a web function and all of its associated revisions and endpoints.
To use this operation, you must have the
DeleteWebFunctionpermission on the web function. You don't need theDeleteWebFunctionRevisionorDeleteWebFunctionEndpointpermission.This API is experimental and for internal AWS use only. It is not yet available to external customers.
- Parameters:
deleteWebFunctionRequest- The request to delete a web function.- Returns:
- A Java Future containing the result of the DeleteWebFunction operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException You do not have sufficient permissions to perform this operation.
- ConflictException The request conflicts with the current state of the resource. Resolve the conflict and try again.
- InternalServerException An internal server error occurred. Try again later.
- ValidationException The request failed validation. Check the request parameters and try again.
- ResourceNotFoundException The specified resource was not found. Verify the resource identifier and try again.
- ThrottlingException The request was throttled. Reduce the frequency of requests and try again.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LambdaWebException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteWebFunction
default CompletableFuture<DeleteWebFunctionResponse> deleteWebFunction(Consumer<DeleteWebFunctionRequest.Builder> deleteWebFunctionRequest) Deletes a web function and all of its associated revisions and endpoints.
To use this operation, you must have the
DeleteWebFunctionpermission on the web function. You don't need theDeleteWebFunctionRevisionorDeleteWebFunctionEndpointpermission.This API is experimental and for internal AWS use only. It is not yet available to external customers.
This is a convenience which creates an instance of the
DeleteWebFunctionRequest.Builderavoiding the need to create one manually viaDeleteWebFunctionRequest.builder()- Parameters:
deleteWebFunctionRequest- AConsumerthat will call methods onDeleteWebFunctionRequest.Builderto create a request. The request to delete a web function.- Returns:
- A Java Future containing the result of the DeleteWebFunction operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException You do not have sufficient permissions to perform this operation.
- ConflictException The request conflicts with the current state of the resource. Resolve the conflict and try again.
- InternalServerException An internal server error occurred. Try again later.
- ValidationException The request failed validation. Check the request parameters and try again.
- ResourceNotFoundException The specified resource was not found. Verify the resource identifier and try again.
- ThrottlingException The request was throttled. Reduce the frequency of requests and try again.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LambdaWebException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteWebFunctionEndpoint
default CompletableFuture<DeleteWebFunctionEndpointResponse> deleteWebFunctionEndpoint(DeleteWebFunctionEndpointRequest deleteWebFunctionEndpointRequest) Deletes a web function endpoint.
This API is experimental and for internal AWS use only. It is not yet available to external customers.
- Parameters:
deleteWebFunctionEndpointRequest- The request to delete a web function endpoint.- Returns:
- A Java Future containing the result of the DeleteWebFunctionEndpoint operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException You do not have sufficient permissions to perform this operation.
- ConflictException The request conflicts with the current state of the resource. Resolve the conflict and try again.
- InternalServerException An internal server error occurred. Try again later.
- ValidationException The request failed validation. Check the request parameters and try again.
- ResourceNotFoundException The specified resource was not found. Verify the resource identifier and try again.
- ThrottlingException The request was throttled. Reduce the frequency of requests and try again.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LambdaWebException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteWebFunctionEndpoint
default CompletableFuture<DeleteWebFunctionEndpointResponse> deleteWebFunctionEndpoint(Consumer<DeleteWebFunctionEndpointRequest.Builder> deleteWebFunctionEndpointRequest) Deletes a web function endpoint.
This API is experimental and for internal AWS use only. It is not yet available to external customers.
This is a convenience which creates an instance of the
DeleteWebFunctionEndpointRequest.Builderavoiding the need to create one manually viaDeleteWebFunctionEndpointRequest.builder()- Parameters:
deleteWebFunctionEndpointRequest- AConsumerthat will call methods onDeleteWebFunctionEndpointRequest.Builderto create a request. The request to delete a web function endpoint.- Returns:
- A Java Future containing the result of the DeleteWebFunctionEndpoint operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException You do not have sufficient permissions to perform this operation.
- ConflictException The request conflicts with the current state of the resource. Resolve the conflict and try again.
- InternalServerException An internal server error occurred. Try again later.
- ValidationException The request failed validation. Check the request parameters and try again.
- ResourceNotFoundException The specified resource was not found. Verify the resource identifier and try again.
- ThrottlingException The request was throttled. Reduce the frequency of requests and try again.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LambdaWebException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteWebFunctionRevision
default CompletableFuture<DeleteWebFunctionRevisionResponse> deleteWebFunctionRevision(DeleteWebFunctionRevisionRequest deleteWebFunctionRevisionRequest) Deletes a web function revision. You cannot delete a revision that is currently serving traffic on an endpoint.
This API is experimental and for internal AWS use only. It is not yet available to external customers.
- Parameters:
deleteWebFunctionRevisionRequest- The request to delete a web function revision.- Returns:
- A Java Future containing the result of the DeleteWebFunctionRevision operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException You do not have sufficient permissions to perform this operation.
- ConflictException The request conflicts with the current state of the resource. Resolve the conflict and try again.
- InternalServerException An internal server error occurred. Try again later.
- ValidationException The request failed validation. Check the request parameters and try again.
- ResourceNotFoundException The specified resource was not found. Verify the resource identifier and try again.
- ThrottlingException The request was throttled. Reduce the frequency of requests and try again.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LambdaWebException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteWebFunctionRevision
default CompletableFuture<DeleteWebFunctionRevisionResponse> deleteWebFunctionRevision(Consumer<DeleteWebFunctionRevisionRequest.Builder> deleteWebFunctionRevisionRequest) Deletes a web function revision. You cannot delete a revision that is currently serving traffic on an endpoint.
This API is experimental and for internal AWS use only. It is not yet available to external customers.
This is a convenience which creates an instance of the
DeleteWebFunctionRevisionRequest.Builderavoiding the need to create one manually viaDeleteWebFunctionRevisionRequest.builder()- Parameters:
deleteWebFunctionRevisionRequest- AConsumerthat will call methods onDeleteWebFunctionRevisionRequest.Builderto create a request. The request to delete a web function revision.- Returns:
- A Java Future containing the result of the DeleteWebFunctionRevision operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException You do not have sufficient permissions to perform this operation.
- ConflictException The request conflicts with the current state of the resource. Resolve the conflict and try again.
- InternalServerException An internal server error occurred. Try again later.
- ValidationException The request failed validation. Check the request parameters and try again.
- ResourceNotFoundException The specified resource was not found. Verify the resource identifier and try again.
- ThrottlingException The request was throttled. Reduce the frequency of requests and try again.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LambdaWebException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getResourcePolicy
default CompletableFuture<GetResourcePolicyResponse> getResourcePolicy(GetResourcePolicyRequest getResourcePolicyRequest) Retrieves the resource-based policy attached to a web function.
This API is experimental and for internal AWS use only. It is not yet available to external customers.
- Parameters:
getResourcePolicyRequest- The request to retrieve a resource-based policy.- Returns:
- A Java Future containing the result of the GetResourcePolicy operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException You do not have sufficient permissions to perform this operation.
- InternalServerException An internal server error occurred. Try again later.
- ValidationException The request failed validation. Check the request parameters and try again.
- ResourceNotFoundException The specified resource was not found. Verify the resource identifier and try again.
- ThrottlingException The request was throttled. Reduce the frequency of requests and try again.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LambdaWebException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getResourcePolicy
default CompletableFuture<GetResourcePolicyResponse> getResourcePolicy(Consumer<GetResourcePolicyRequest.Builder> getResourcePolicyRequest) Retrieves the resource-based policy attached to a web function.
This API is experimental and for internal AWS use only. It is not yet available to external customers.
This is a convenience which creates an instance of the
GetResourcePolicyRequest.Builderavoiding the need to create one manually viaGetResourcePolicyRequest.builder()- Parameters:
getResourcePolicyRequest- AConsumerthat will call methods onGetResourcePolicyRequest.Builderto create a request. The request to retrieve a resource-based policy.- Returns:
- A Java Future containing the result of the GetResourcePolicy operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException You do not have sufficient permissions to perform this operation.
- InternalServerException An internal server error occurred. Try again later.
- ValidationException The request failed validation. Check the request parameters and try again.
- ResourceNotFoundException The specified resource was not found. Verify the resource identifier and try again.
- ThrottlingException The request was throttled. Reduce the frequency of requests and try again.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LambdaWebException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getWebAccountSettings
default CompletableFuture<GetWebAccountSettingsResponse> getWebAccountSettings(GetWebAccountSettingsRequest getWebAccountSettingsRequest) Retrieves details about your AWS Lambda Web Functions account settings for the current AWS Region, including the quotas that apply to web functions and your current usage.
This API is experimental and for internal AWS use only. It is not yet available to external customers.
- Parameters:
getWebAccountSettingsRequest-- Returns:
- A Java Future containing the result of the GetWebAccountSettings operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException You do not have sufficient permissions to perform this operation.
- InternalServerException An internal server error occurred. Try again later.
- ThrottlingException The request was throttled. Reduce the frequency of requests and try again.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LambdaWebException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getWebAccountSettings
default CompletableFuture<GetWebAccountSettingsResponse> getWebAccountSettings(Consumer<GetWebAccountSettingsRequest.Builder> getWebAccountSettingsRequest) Retrieves details about your AWS Lambda Web Functions account settings for the current AWS Region, including the quotas that apply to web functions and your current usage.
This API is experimental and for internal AWS use only. It is not yet available to external customers.
This is a convenience which creates an instance of the
GetWebAccountSettingsRequest.Builderavoiding the need to create one manually viaGetWebAccountSettingsRequest.builder()- Parameters:
getWebAccountSettingsRequest- AConsumerthat will call methods onGetWebAccountSettingsRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetWebAccountSettings operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException You do not have sufficient permissions to perform this operation.
- InternalServerException An internal server error occurred. Try again later.
- ThrottlingException The request was throttled. Reduce the frequency of requests and try again.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LambdaWebException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getWebFunction
default CompletableFuture<GetWebFunctionResponse> getWebFunction(GetWebFunctionRequest getWebFunctionRequest) Retrieves details about a web function, including its current state and configuration.
This API is experimental and for internal AWS use only. It is not yet available to external customers.
- Parameters:
getWebFunctionRequest- The request to retrieve a web function.- Returns:
- A Java Future containing the result of the GetWebFunction operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException You do not have sufficient permissions to perform this operation.
- InternalServerException An internal server error occurred. Try again later.
- ValidationException The request failed validation. Check the request parameters and try again.
- ResourceNotFoundException The specified resource was not found. Verify the resource identifier and try again.
- ThrottlingException The request was throttled. Reduce the frequency of requests and try again.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LambdaWebException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getWebFunction
default CompletableFuture<GetWebFunctionResponse> getWebFunction(Consumer<GetWebFunctionRequest.Builder> getWebFunctionRequest) Retrieves details about a web function, including its current state and configuration.
This API is experimental and for internal AWS use only. It is not yet available to external customers.
This is a convenience which creates an instance of the
GetWebFunctionRequest.Builderavoiding the need to create one manually viaGetWebFunctionRequest.builder()- Parameters:
getWebFunctionRequest- AConsumerthat will call methods onGetWebFunctionRequest.Builderto create a request. The request to retrieve a web function.- Returns:
- A Java Future containing the result of the GetWebFunction operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException You do not have sufficient permissions to perform this operation.
- InternalServerException An internal server error occurred. Try again later.
- ValidationException The request failed validation. Check the request parameters and try again.
- ResourceNotFoundException The specified resource was not found. Verify the resource identifier and try again.
- ThrottlingException The request was throttled. Reduce the frequency of requests and try again.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LambdaWebException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getWebFunctionEndpoint
default CompletableFuture<GetWebFunctionEndpointResponse> getWebFunctionEndpoint(GetWebFunctionEndpointRequest getWebFunctionEndpointRequest) Retrieves details about a web function endpoint, including its current state, configuration, and domain name.
This API is experimental and for internal AWS use only. It is not yet available to external customers.
- Parameters:
getWebFunctionEndpointRequest- The request to retrieve a web function endpoint.- Returns:
- A Java Future containing the result of the GetWebFunctionEndpoint operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException You do not have sufficient permissions to perform this operation.
- InternalServerException An internal server error occurred. Try again later.
- ValidationException The request failed validation. Check the request parameters and try again.
- ResourceNotFoundException The specified resource was not found. Verify the resource identifier and try again.
- ThrottlingException The request was throttled. Reduce the frequency of requests and try again.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LambdaWebException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getWebFunctionEndpoint
default CompletableFuture<GetWebFunctionEndpointResponse> getWebFunctionEndpoint(Consumer<GetWebFunctionEndpointRequest.Builder> getWebFunctionEndpointRequest) Retrieves details about a web function endpoint, including its current state, configuration, and domain name.
This API is experimental and for internal AWS use only. It is not yet available to external customers.
This is a convenience which creates an instance of the
GetWebFunctionEndpointRequest.Builderavoiding the need to create one manually viaGetWebFunctionEndpointRequest.builder()- Parameters:
getWebFunctionEndpointRequest- AConsumerthat will call methods onGetWebFunctionEndpointRequest.Builderto create a request. The request to retrieve a web function endpoint.- Returns:
- A Java Future containing the result of the GetWebFunctionEndpoint operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException You do not have sufficient permissions to perform this operation.
- InternalServerException An internal server error occurred. Try again later.
- ValidationException The request failed validation. Check the request parameters and try again.
- ResourceNotFoundException The specified resource was not found. Verify the resource identifier and try again.
- ThrottlingException The request was throttled. Reduce the frequency of requests and try again.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LambdaWebException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getWebFunctionRevision
default CompletableFuture<GetWebFunctionRevisionResponse> getWebFunctionRevision(GetWebFunctionRevisionRequest getWebFunctionRevisionRequest) Retrieves details about a web function revision, including its state and configuration.
This API is experimental and for internal AWS use only. It is not yet available to external customers.
- Parameters:
getWebFunctionRevisionRequest- The request to retrieve a web function revision.- Returns:
- A Java Future containing the result of the GetWebFunctionRevision operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException You do not have sufficient permissions to perform this operation.
- InternalServerException An internal server error occurred. Try again later.
- ValidationException The request failed validation. Check the request parameters and try again.
- ResourceNotFoundException The specified resource was not found. Verify the resource identifier and try again.
- ThrottlingException The request was throttled. Reduce the frequency of requests and try again.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LambdaWebException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getWebFunctionRevision
default CompletableFuture<GetWebFunctionRevisionResponse> getWebFunctionRevision(Consumer<GetWebFunctionRevisionRequest.Builder> getWebFunctionRevisionRequest) Retrieves details about a web function revision, including its state and configuration.
This API is experimental and for internal AWS use only. It is not yet available to external customers.
This is a convenience which creates an instance of the
GetWebFunctionRevisionRequest.Builderavoiding the need to create one manually viaGetWebFunctionRevisionRequest.builder()- Parameters:
getWebFunctionRevisionRequest- AConsumerthat will call methods onGetWebFunctionRevisionRequest.Builderto create a request. The request to retrieve a web function revision.- Returns:
- A Java Future containing the result of the GetWebFunctionRevision operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException You do not have sufficient permissions to perform this operation.
- InternalServerException An internal server error occurred. Try again later.
- ValidationException The request failed validation. Check the request parameters and try again.
- ResourceNotFoundException The specified resource was not found. Verify the resource identifier and try again.
- ThrottlingException The request was throttled. Reduce the frequency of requests and try again.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LambdaWebException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listTags
Returns a list of tags applied to a web function.
This API is experimental and for internal AWS use only. It is not yet available to external customers.
- Parameters:
listTagsRequest- The request to list tags for a resource.- Returns:
- A Java Future containing the result of the ListTags operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException You do not have sufficient permissions to perform this operation.
- InternalServerException An internal server error occurred. Try again later.
- ValidationException The request failed validation. Check the request parameters and try again.
- ResourceNotFoundException The specified resource was not found. Verify the resource identifier and try again.
- ThrottlingException The request was throttled. Reduce the frequency of requests and try again.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LambdaWebException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listTags
default CompletableFuture<ListTagsResponse> listTags(Consumer<ListTagsRequest.Builder> listTagsRequest) Returns a list of tags applied to a web function.
This API is experimental and for internal AWS use only. It is not yet available to external customers.
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. The request to list tags for a resource.- Returns:
- A Java Future containing the result of the ListTags operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException You do not have sufficient permissions to perform this operation.
- InternalServerException An internal server error occurred. Try again later.
- ValidationException The request failed validation. Check the request parameters and try again.
- ResourceNotFoundException The specified resource was not found. Verify the resource identifier and try again.
- ThrottlingException The request was throttled. Reduce the frequency of requests and try again.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LambdaWebException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listWebFunctionEndpoints
default CompletableFuture<ListWebFunctionEndpointsResponse> listWebFunctionEndpoints(ListWebFunctionEndpointsRequest listWebFunctionEndpointsRequest) Lists endpoints for a web function. We recommend using pagination to ensure that the operation returns quickly and successfully.
This API is experimental and for internal AWS use only. It is not yet available to external customers.
- Parameters:
listWebFunctionEndpointsRequest- The request to list web function endpoints.- Returns:
- A Java Future containing the result of the ListWebFunctionEndpoints operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException You do not have sufficient permissions to perform this operation.
- InternalServerException An internal server error occurred. Try again later.
- ValidationException The request failed validation. Check the request parameters and try again.
- ResourceNotFoundException The specified resource was not found. Verify the resource identifier and try again.
- ThrottlingException The request was throttled. Reduce the frequency of requests and try again.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LambdaWebException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listWebFunctionEndpoints
default CompletableFuture<ListWebFunctionEndpointsResponse> listWebFunctionEndpoints(Consumer<ListWebFunctionEndpointsRequest.Builder> listWebFunctionEndpointsRequest) Lists endpoints for a web function. We recommend using pagination to ensure that the operation returns quickly and successfully.
This API is experimental and for internal AWS use only. It is not yet available to external customers.
This is a convenience which creates an instance of the
ListWebFunctionEndpointsRequest.Builderavoiding the need to create one manually viaListWebFunctionEndpointsRequest.builder()- Parameters:
listWebFunctionEndpointsRequest- AConsumerthat will call methods onListWebFunctionEndpointsRequest.Builderto create a request. The request to list web function endpoints.- Returns:
- A Java Future containing the result of the ListWebFunctionEndpoints operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException You do not have sufficient permissions to perform this operation.
- InternalServerException An internal server error occurred. Try again later.
- ValidationException The request failed validation. Check the request parameters and try again.
- ResourceNotFoundException The specified resource was not found. Verify the resource identifier and try again.
- ThrottlingException The request was throttled. Reduce the frequency of requests and try again.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LambdaWebException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listWebFunctionEndpointsPaginator
default ListWebFunctionEndpointsPublisher listWebFunctionEndpointsPaginator(ListWebFunctionEndpointsRequest listWebFunctionEndpointsRequest) This is a variant of
listWebFunctionEndpoints(software.amazon.awssdk.services.lambdaweb.model.ListWebFunctionEndpointsRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.lambdaweb.paginators.ListWebFunctionEndpointsPublisher publisher = client.listWebFunctionEndpointsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.lambdaweb.paginators.ListWebFunctionEndpointsPublisher publisher = client.listWebFunctionEndpointsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.lambdaweb.model.ListWebFunctionEndpointsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.lambdaweb.model.ListWebFunctionEndpointsResponse response) { //... }; });Please notice that the configuration of maxResults 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
listWebFunctionEndpoints(software.amazon.awssdk.services.lambdaweb.model.ListWebFunctionEndpointsRequest)operation.- Parameters:
listWebFunctionEndpointsRequest- The request to list web function endpoints.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException You do not have sufficient permissions to perform this operation.
- InternalServerException An internal server error occurred. Try again later.
- ValidationException The request failed validation. Check the request parameters and try again.
- ResourceNotFoundException The specified resource was not found. Verify the resource identifier and try again.
- ThrottlingException The request was throttled. Reduce the frequency of requests and try again.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LambdaWebException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listWebFunctionEndpointsPaginator
default ListWebFunctionEndpointsPublisher listWebFunctionEndpointsPaginator(Consumer<ListWebFunctionEndpointsRequest.Builder> listWebFunctionEndpointsRequest) This is a variant of
listWebFunctionEndpoints(software.amazon.awssdk.services.lambdaweb.model.ListWebFunctionEndpointsRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.lambdaweb.paginators.ListWebFunctionEndpointsPublisher publisher = client.listWebFunctionEndpointsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.lambdaweb.paginators.ListWebFunctionEndpointsPublisher publisher = client.listWebFunctionEndpointsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.lambdaweb.model.ListWebFunctionEndpointsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.lambdaweb.model.ListWebFunctionEndpointsResponse response) { //... }; });Please notice that the configuration of maxResults 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
listWebFunctionEndpoints(software.amazon.awssdk.services.lambdaweb.model.ListWebFunctionEndpointsRequest)operation.
This is a convenience which creates an instance of the
ListWebFunctionEndpointsRequest.Builderavoiding the need to create one manually viaListWebFunctionEndpointsRequest.builder()- Parameters:
listWebFunctionEndpointsRequest- AConsumerthat will call methods onListWebFunctionEndpointsRequest.Builderto create a request. The request to list web function endpoints.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException You do not have sufficient permissions to perform this operation.
- InternalServerException An internal server error occurred. Try again later.
- ValidationException The request failed validation. Check the request parameters and try again.
- ResourceNotFoundException The specified resource was not found. Verify the resource identifier and try again.
- ThrottlingException The request was throttled. Reduce the frequency of requests and try again.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LambdaWebException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listWebFunctionRevisions
default CompletableFuture<ListWebFunctionRevisionsResponse> listWebFunctionRevisions(ListWebFunctionRevisionsRequest listWebFunctionRevisionsRequest) Lists revisions for a web function. We recommend using pagination to ensure that the operation returns quickly and successfully.
This API is experimental and for internal AWS use only. It is not yet available to external customers.
- Parameters:
listWebFunctionRevisionsRequest- The request to list web function revisions.- Returns:
- A Java Future containing the result of the ListWebFunctionRevisions operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException You do not have sufficient permissions to perform this operation.
- InternalServerException An internal server error occurred. Try again later.
- ValidationException The request failed validation. Check the request parameters and try again.
- ResourceNotFoundException The specified resource was not found. Verify the resource identifier and try again.
- ThrottlingException The request was throttled. Reduce the frequency of requests and try again.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LambdaWebException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listWebFunctionRevisions
default CompletableFuture<ListWebFunctionRevisionsResponse> listWebFunctionRevisions(Consumer<ListWebFunctionRevisionsRequest.Builder> listWebFunctionRevisionsRequest) Lists revisions for a web function. We recommend using pagination to ensure that the operation returns quickly and successfully.
This API is experimental and for internal AWS use only. It is not yet available to external customers.
This is a convenience which creates an instance of the
ListWebFunctionRevisionsRequest.Builderavoiding the need to create one manually viaListWebFunctionRevisionsRequest.builder()- Parameters:
listWebFunctionRevisionsRequest- AConsumerthat will call methods onListWebFunctionRevisionsRequest.Builderto create a request. The request to list web function revisions.- Returns:
- A Java Future containing the result of the ListWebFunctionRevisions operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException You do not have sufficient permissions to perform this operation.
- InternalServerException An internal server error occurred. Try again later.
- ValidationException The request failed validation. Check the request parameters and try again.
- ResourceNotFoundException The specified resource was not found. Verify the resource identifier and try again.
- ThrottlingException The request was throttled. Reduce the frequency of requests and try again.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LambdaWebException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listWebFunctionRevisionsPaginator
default ListWebFunctionRevisionsPublisher listWebFunctionRevisionsPaginator(ListWebFunctionRevisionsRequest listWebFunctionRevisionsRequest) This is a variant of
listWebFunctionRevisions(software.amazon.awssdk.services.lambdaweb.model.ListWebFunctionRevisionsRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.lambdaweb.paginators.ListWebFunctionRevisionsPublisher publisher = client.listWebFunctionRevisionsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.lambdaweb.paginators.ListWebFunctionRevisionsPublisher publisher = client.listWebFunctionRevisionsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.lambdaweb.model.ListWebFunctionRevisionsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.lambdaweb.model.ListWebFunctionRevisionsResponse response) { //... }; });Please notice that the configuration of maxResults 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
listWebFunctionRevisions(software.amazon.awssdk.services.lambdaweb.model.ListWebFunctionRevisionsRequest)operation.- Parameters:
listWebFunctionRevisionsRequest- The request to list web function revisions.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException You do not have sufficient permissions to perform this operation.
- InternalServerException An internal server error occurred. Try again later.
- ValidationException The request failed validation. Check the request parameters and try again.
- ResourceNotFoundException The specified resource was not found. Verify the resource identifier and try again.
- ThrottlingException The request was throttled. Reduce the frequency of requests and try again.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LambdaWebException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listWebFunctionRevisionsPaginator
default ListWebFunctionRevisionsPublisher listWebFunctionRevisionsPaginator(Consumer<ListWebFunctionRevisionsRequest.Builder> listWebFunctionRevisionsRequest) This is a variant of
listWebFunctionRevisions(software.amazon.awssdk.services.lambdaweb.model.ListWebFunctionRevisionsRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.lambdaweb.paginators.ListWebFunctionRevisionsPublisher publisher = client.listWebFunctionRevisionsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.lambdaweb.paginators.ListWebFunctionRevisionsPublisher publisher = client.listWebFunctionRevisionsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.lambdaweb.model.ListWebFunctionRevisionsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.lambdaweb.model.ListWebFunctionRevisionsResponse response) { //... }; });Please notice that the configuration of maxResults 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
listWebFunctionRevisions(software.amazon.awssdk.services.lambdaweb.model.ListWebFunctionRevisionsRequest)operation.
This is a convenience which creates an instance of the
ListWebFunctionRevisionsRequest.Builderavoiding the need to create one manually viaListWebFunctionRevisionsRequest.builder()- Parameters:
listWebFunctionRevisionsRequest- AConsumerthat will call methods onListWebFunctionRevisionsRequest.Builderto create a request. The request to list web function revisions.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException You do not have sufficient permissions to perform this operation.
- InternalServerException An internal server error occurred. Try again later.
- ValidationException The request failed validation. Check the request parameters and try again.
- ResourceNotFoundException The specified resource was not found. Verify the resource identifier and try again.
- ThrottlingException The request was throttled. Reduce the frequency of requests and try again.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LambdaWebException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listWebFunctions
default CompletableFuture<ListWebFunctionsResponse> listWebFunctions(ListWebFunctionsRequest listWebFunctionsRequest) Lists web functions in your account. We recommend using pagination to ensure that the operation returns quickly and successfully.
This API is experimental and for internal AWS use only. It is not yet available to external customers.
- Parameters:
listWebFunctionsRequest- The request to list web functions.- Returns:
- A Java Future containing the result of the ListWebFunctions operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException You do not have sufficient permissions to perform this operation.
- InternalServerException An internal server error occurred. Try again later.
- ValidationException The request failed validation. Check the request parameters and try again.
- ThrottlingException The request was throttled. Reduce the frequency of requests and try again.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LambdaWebException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listWebFunctions
default CompletableFuture<ListWebFunctionsResponse> listWebFunctions(Consumer<ListWebFunctionsRequest.Builder> listWebFunctionsRequest) Lists web functions in your account. We recommend using pagination to ensure that the operation returns quickly and successfully.
This API is experimental and for internal AWS use only. It is not yet available to external customers.
This is a convenience which creates an instance of the
ListWebFunctionsRequest.Builderavoiding the need to create one manually viaListWebFunctionsRequest.builder()- Parameters:
listWebFunctionsRequest- AConsumerthat will call methods onListWebFunctionsRequest.Builderto create a request. The request to list web functions.- Returns:
- A Java Future containing the result of the ListWebFunctions operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException You do not have sufficient permissions to perform this operation.
- InternalServerException An internal server error occurred. Try again later.
- ValidationException The request failed validation. Check the request parameters and try again.
- ThrottlingException The request was throttled. Reduce the frequency of requests and try again.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LambdaWebException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listWebFunctionsPaginator
default ListWebFunctionsPublisher listWebFunctionsPaginator(ListWebFunctionsRequest listWebFunctionsRequest) This is a variant of
listWebFunctions(software.amazon.awssdk.services.lambdaweb.model.ListWebFunctionsRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.lambdaweb.paginators.ListWebFunctionsPublisher publisher = client.listWebFunctionsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.lambdaweb.paginators.ListWebFunctionsPublisher publisher = client.listWebFunctionsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.lambdaweb.model.ListWebFunctionsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.lambdaweb.model.ListWebFunctionsResponse response) { //... }; });Please notice that the configuration of maxResults 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
listWebFunctions(software.amazon.awssdk.services.lambdaweb.model.ListWebFunctionsRequest)operation.- Parameters:
listWebFunctionsRequest- The request to list web functions.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException You do not have sufficient permissions to perform this operation.
- InternalServerException An internal server error occurred. Try again later.
- ValidationException The request failed validation. Check the request parameters and try again.
- ThrottlingException The request was throttled. Reduce the frequency of requests and try again.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LambdaWebException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listWebFunctionsPaginator
default ListWebFunctionsPublisher listWebFunctionsPaginator(Consumer<ListWebFunctionsRequest.Builder> listWebFunctionsRequest) This is a variant of
listWebFunctions(software.amazon.awssdk.services.lambdaweb.model.ListWebFunctionsRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.lambdaweb.paginators.ListWebFunctionsPublisher publisher = client.listWebFunctionsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.lambdaweb.paginators.ListWebFunctionsPublisher publisher = client.listWebFunctionsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.lambdaweb.model.ListWebFunctionsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.lambdaweb.model.ListWebFunctionsResponse response) { //... }; });Please notice that the configuration of maxResults 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
listWebFunctions(software.amazon.awssdk.services.lambdaweb.model.ListWebFunctionsRequest)operation.
This is a convenience which creates an instance of the
ListWebFunctionsRequest.Builderavoiding the need to create one manually viaListWebFunctionsRequest.builder()- Parameters:
listWebFunctionsRequest- AConsumerthat will call methods onListWebFunctionsRequest.Builderto create a request. The request to list web functions.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException You do not have sufficient permissions to perform this operation.
- InternalServerException An internal server error occurred. Try again later.
- ValidationException The request failed validation. Check the request parameters and try again.
- ThrottlingException The request was throttled. Reduce the frequency of requests and try again.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LambdaWebException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
putResourcePolicy
default CompletableFuture<PutResourcePolicyResponse> putResourcePolicy(PutResourcePolicyRequest putResourcePolicyRequest) Adds or updates a resource-based policy on a web function. A resource-based policy grants permissions to other AWS accounts or services to perform actions on the web function.
This API is experimental and for internal AWS use only. It is not yet available to external customers.
- Parameters:
putResourcePolicyRequest- The request to add or update a resource-based policy.- Returns:
- A Java Future containing the result of the PutResourcePolicy operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException You do not have sufficient permissions to perform this operation.
- ConflictException The request conflicts with the current state of the resource. Resolve the conflict and try again.
- InternalServerException An internal server error occurred. Try again later.
- ValidationException The request failed validation. Check the request parameters and try again.
- ResourceNotFoundException The specified resource was not found. Verify the resource identifier and try again.
- ThrottlingException The request was throttled. Reduce the frequency of requests and try again.
- ServiceQuotaExceededException A service quota was exceeded. Request a quota increase or reduce usage and try again.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LambdaWebException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
putResourcePolicy
default CompletableFuture<PutResourcePolicyResponse> putResourcePolicy(Consumer<PutResourcePolicyRequest.Builder> putResourcePolicyRequest) Adds or updates a resource-based policy on a web function. A resource-based policy grants permissions to other AWS accounts or services to perform actions on the web function.
This API is experimental and for internal AWS use only. It is not yet available to external customers.
This is a convenience which creates an instance of the
PutResourcePolicyRequest.Builderavoiding the need to create one manually viaPutResourcePolicyRequest.builder()- Parameters:
putResourcePolicyRequest- AConsumerthat will call methods onPutResourcePolicyRequest.Builderto create a request. The request to add or update a resource-based policy.- Returns:
- A Java Future containing the result of the PutResourcePolicy operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException You do not have sufficient permissions to perform this operation.
- ConflictException The request conflicts with the current state of the resource. Resolve the conflict and try again.
- InternalServerException An internal server error occurred. Try again later.
- ValidationException The request failed validation. Check the request parameters and try again.
- ResourceNotFoundException The specified resource was not found. Verify the resource identifier and try again.
- ThrottlingException The request was throttled. Reduce the frequency of requests and try again.
- ServiceQuotaExceededException A service quota was exceeded. Request a quota increase or reduce usage and try again.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LambdaWebException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
tagResource
Adds tags to a web function. If a tag key already exists, the existing value is overwritten with the new value.
This API is experimental and for internal AWS use only. It is not yet available to external customers.
- Parameters:
tagResourceRequest- The request to add tags to a resource.- Returns:
- A Java Future containing the result of the TagResource operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException You do not have sufficient permissions to perform this operation.
- ConflictException The request conflicts with the current state of the resource. Resolve the conflict and try again.
- InternalServerException An internal server error occurred. Try again later.
- ValidationException The request failed validation. Check the request parameters and try again.
- ResourceNotFoundException The specified resource was not found. Verify the resource identifier and try again.
- ThrottlingException The request was throttled. Reduce the frequency of requests and try again.
- ServiceQuotaExceededException A service quota was exceeded. Request a quota increase or reduce usage and try again.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LambdaWebException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
tagResource
default CompletableFuture<TagResourceResponse> tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) Adds tags to a web function. If a tag key already exists, the existing value is overwritten with the new value.
This API is experimental and for internal AWS use only. It is not yet available to external customers.
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. The request to add tags to a resource.- Returns:
- A Java Future containing the result of the TagResource operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException You do not have sufficient permissions to perform this operation.
- ConflictException The request conflicts with the current state of the resource. Resolve the conflict and try again.
- InternalServerException An internal server error occurred. Try again later.
- ValidationException The request failed validation. Check the request parameters and try again.
- ResourceNotFoundException The specified resource was not found. Verify the resource identifier and try again.
- ThrottlingException The request was throttled. Reduce the frequency of requests and try again.
- ServiceQuotaExceededException A service quota was exceeded. Request a quota increase or reduce usage and try again.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LambdaWebException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
untagResource
default CompletableFuture<UntagResourceResponse> untagResource(UntagResourceRequest untagResourceRequest) Removes tags from a web function.
This API is experimental and for internal AWS use only. It is not yet available to external customers.
- Parameters:
untagResourceRequest- The request to remove tags from a resource.- Returns:
- A Java Future containing the result of the UntagResource operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException You do not have sufficient permissions to perform this operation.
- ConflictException The request conflicts with the current state of the resource. Resolve the conflict and try again.
- InternalServerException An internal server error occurred. Try again later.
- ValidationException The request failed validation. Check the request parameters and try again.
- ResourceNotFoundException The specified resource was not found. Verify the resource identifier and try again.
- ThrottlingException The request was throttled. Reduce the frequency of requests and try again.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LambdaWebException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
untagResource
default CompletableFuture<UntagResourceResponse> untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) Removes tags from a web function.
This API is experimental and for internal AWS use only. It is not yet available to external customers.
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. The request to remove tags from a resource.- Returns:
- A Java Future containing the result of the UntagResource operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException You do not have sufficient permissions to perform this operation.
- ConflictException The request conflicts with the current state of the resource. Resolve the conflict and try again.
- InternalServerException An internal server error occurred. Try again later.
- ValidationException The request failed validation. Check the request parameters and try again.
- ResourceNotFoundException The specified resource was not found. Verify the resource identifier and try again.
- ThrottlingException The request was throttled. Reduce the frequency of requests and try again.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LambdaWebException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateWebFunctionEndpoint
default CompletableFuture<UpdateWebFunctionEndpointResponse> updateWebFunctionEndpoint(UpdateWebFunctionEndpointRequest updateWebFunctionEndpointRequest) Updates the configuration of a web function endpoint. You can modify the authorization type, auto-deployment mode, revision weights, scaling, and throttling settings.
This API is experimental and for internal AWS use only. It is not yet available to external customers.
- Parameters:
updateWebFunctionEndpointRequest- The request to update a web function endpoint.- Returns:
- A Java Future containing the result of the UpdateWebFunctionEndpoint operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException You do not have sufficient permissions to perform this operation.
- ConflictException The request conflicts with the current state of the resource. Resolve the conflict and try again.
- InternalServerException An internal server error occurred. Try again later.
- ValidationException The request failed validation. Check the request parameters and try again.
- ResourceNotFoundException The specified resource was not found. Verify the resource identifier and try again.
- ThrottlingException The request was throttled. Reduce the frequency of requests and try again.
- ServiceQuotaExceededException A service quota was exceeded. Request a quota increase or reduce usage and try again.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LambdaWebException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateWebFunctionEndpoint
default CompletableFuture<UpdateWebFunctionEndpointResponse> updateWebFunctionEndpoint(Consumer<UpdateWebFunctionEndpointRequest.Builder> updateWebFunctionEndpointRequest) Updates the configuration of a web function endpoint. You can modify the authorization type, auto-deployment mode, revision weights, scaling, and throttling settings.
This API is experimental and for internal AWS use only. It is not yet available to external customers.
This is a convenience which creates an instance of the
UpdateWebFunctionEndpointRequest.Builderavoiding the need to create one manually viaUpdateWebFunctionEndpointRequest.builder()- Parameters:
updateWebFunctionEndpointRequest- AConsumerthat will call methods onUpdateWebFunctionEndpointRequest.Builderto create a request. The request to update a web function endpoint.- Returns:
- A Java Future containing the result of the UpdateWebFunctionEndpoint operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException You do not have sufficient permissions to perform this operation.
- ConflictException The request conflicts with the current state of the resource. Resolve the conflict and try again.
- InternalServerException An internal server error occurred. Try again later.
- ValidationException The request failed validation. Check the request parameters and try again.
- ResourceNotFoundException The specified resource was not found. Verify the resource identifier and try again.
- ThrottlingException The request was throttled. Reduce the frequency of requests and try again.
- ServiceQuotaExceededException A service quota was exceeded. Request a quota increase or reduce usage and try again.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LambdaWebException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
waiter
Create an instance ofLambdaWebAsyncWaiterusing 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
LambdaWebAsyncWaiter
-
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
-
create
Create aLambdaWebAsyncClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider. -
builder
Create a builder that can be used to configure and create aLambdaWebAsyncClient.
-