Interface ServerlessApplicationRepositoryAsyncClient

All Superinterfaces:
AutoCloseable, AwsClient, SdkAutoCloseable, SdkClient

@Generated("software.amazon.awssdk:codegen") @ThreadSafe public interface ServerlessApplicationRepositoryAsyncClient extends AwsClient
Service client for accessing AWSServerlessApplicationRepository asynchronously. This can be created using the static builder() method.The asynchronous client performs non-blocking I/O when configured with any
invalid reference
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 Serverless Application Repository makes it easy for developers and enterprises to quickly find and deploy serverless applications in the AWS Cloud. For more information about serverless applications, see Serverless Computing and Applications on the AWS website.

The AWS Serverless Application Repository is deeply integrated with the AWS Lambda console, so that developers of all levels can get started with serverless computing without needing to learn anything new. You can use category keywords to browse for applications such as web and mobile backends, data processing applications, or chatbots. You can also search for applications by name, publisher, or event source. To use an application, you simply choose it, configure any required fields, and deploy it with a few clicks.

You can also easily publish applications, sharing them publicly with the community at large, or privately within your team or across your organization. To publish a serverless application (or app), you can use the AWS Management Console, AWS Command Line Interface (AWS CLI), or AWS SDKs to upload the code. Along with the code, you upload a simple manifest file, also known as the AWS Serverless Application Model (AWS SAM) template. For more information about AWS SAM, see AWS Serverless Application Model (AWS SAM) on the AWS Labs GitHub repository.

The AWS Serverless Application Repository Developer Guide contains more information about the two developer experiences available:

  • Consuming Applications – Browse for applications and view information about them, including source code and readme files. Also install, configure, and deploy applications of your choosing.

    Publishing Applications – Configure and upload applications to make them available to other developers, and publish new versions of applications.

  • Field Details

  • Method Details

    • createApplication

      default CompletableFuture<CreateApplicationResponse> createApplication(CreateApplicationRequest createApplicationRequest)

      Creates an application, optionally including an AWS SAM file to create the first application version in the same call.

      Parameters:
      createApplicationRequest -
      Returns:
      A Java Future containing the result of the CreateApplication 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 invoke Throwable.getCause() to retrieve the underlying exception.
      • TooManyRequestsException The client is sending more than the allowed number of requests per unit of time.
      • BadRequestException One of the parameters in the request is invalid.
      • InternalServerErrorException The AWS Serverless Application Repository service encountered an internal error.
      • ConflictException The resource already exists.
      • ForbiddenException The client is not authenticated.
      • 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.
      • ServerlessApplicationRepositoryException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • createApplication

      default CompletableFuture<CreateApplicationResponse> createApplication(Consumer<CreateApplicationRequest.Builder> createApplicationRequest)

      Creates an application, optionally including an AWS SAM file to create the first application version in the same call.


      This is a convenience which creates an instance of the CreateApplicationRequest.Builder avoiding the need to create one manually via CreateApplicationRequest.builder()

      Parameters:
      createApplicationRequest - A Consumer that will call methods on CreateApplicationRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the CreateApplication 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 invoke Throwable.getCause() to retrieve the underlying exception.
      • TooManyRequestsException The client is sending more than the allowed number of requests per unit of time.
      • BadRequestException One of the parameters in the request is invalid.
      • InternalServerErrorException The AWS Serverless Application Repository service encountered an internal error.
      • ConflictException The resource already exists.
      • ForbiddenException The client is not authenticated.
      • 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.
      • ServerlessApplicationRepositoryException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • createApplicationVersion

      default CompletableFuture<CreateApplicationVersionResponse> createApplicationVersion(CreateApplicationVersionRequest createApplicationVersionRequest)

      Creates an application version.

      Parameters:
      createApplicationVersionRequest -
      Returns:
      A Java Future containing the result of the CreateApplicationVersion 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 invoke Throwable.getCause() to retrieve the underlying exception.
      • TooManyRequestsException The client is sending more than the allowed number of requests per unit of time.
      • BadRequestException One of the parameters in the request is invalid.
      • InternalServerErrorException The AWS Serverless Application Repository service encountered an internal error.
      • ConflictException The resource already exists.
      • ForbiddenException The client is not authenticated.
      • 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.
      • ServerlessApplicationRepositoryException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • createApplicationVersion

      default CompletableFuture<CreateApplicationVersionResponse> createApplicationVersion(Consumer<CreateApplicationVersionRequest.Builder> createApplicationVersionRequest)

      Creates an application version.


      This is a convenience which creates an instance of the CreateApplicationVersionRequest.Builder avoiding the need to create one manually via CreateApplicationVersionRequest.builder()

      Parameters:
      createApplicationVersionRequest - A Consumer that will call methods on CreateApplicationVersionRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the CreateApplicationVersion 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 invoke Throwable.getCause() to retrieve the underlying exception.
      • TooManyRequestsException The client is sending more than the allowed number of requests per unit of time.
      • BadRequestException One of the parameters in the request is invalid.
      • InternalServerErrorException The AWS Serverless Application Repository service encountered an internal error.
      • ConflictException The resource already exists.
      • ForbiddenException The client is not authenticated.
      • 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.
      • ServerlessApplicationRepositoryException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • createCloudFormationChangeSet

      default CompletableFuture<CreateCloudFormationChangeSetResponse> createCloudFormationChangeSet(CreateCloudFormationChangeSetRequest createCloudFormationChangeSetRequest)

      Creates an AWS CloudFormation change set for the given application.

      Parameters:
      createCloudFormationChangeSetRequest -
      Returns:
      A Java Future containing the result of the CreateCloudFormationChangeSet 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 invoke Throwable.getCause() to retrieve the underlying exception.
      • TooManyRequestsException The client is sending more than the allowed number of requests per unit of time.
      • BadRequestException One of the parameters in the request is invalid.
      • InternalServerErrorException The AWS Serverless Application Repository service encountered an internal error.
      • ForbiddenException The client is not authenticated.
      • 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.
      • ServerlessApplicationRepositoryException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • createCloudFormationChangeSet

      default CompletableFuture<CreateCloudFormationChangeSetResponse> createCloudFormationChangeSet(Consumer<CreateCloudFormationChangeSetRequest.Builder> createCloudFormationChangeSetRequest)

      Creates an AWS CloudFormation change set for the given application.


      This is a convenience which creates an instance of the CreateCloudFormationChangeSetRequest.Builder avoiding the need to create one manually via CreateCloudFormationChangeSetRequest.builder()

      Parameters:
      createCloudFormationChangeSetRequest - A Consumer that will call methods on CreateCloudFormationChangeSetRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the CreateCloudFormationChangeSet 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 invoke Throwable.getCause() to retrieve the underlying exception.
      • TooManyRequestsException The client is sending more than the allowed number of requests per unit of time.
      • BadRequestException One of the parameters in the request is invalid.
      • InternalServerErrorException The AWS Serverless Application Repository service encountered an internal error.
      • ForbiddenException The client is not authenticated.
      • 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.
      • ServerlessApplicationRepositoryException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • createCloudFormationTemplate

      default CompletableFuture<CreateCloudFormationTemplateResponse> createCloudFormationTemplate(CreateCloudFormationTemplateRequest createCloudFormationTemplateRequest)

      Creates an AWS CloudFormation template.

      Parameters:
      createCloudFormationTemplateRequest -
      Returns:
      A Java Future containing the result of the CreateCloudFormationTemplate 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 invoke Throwable.getCause() to retrieve the underlying exception.
      • NotFoundException The resource (for example, an access policy statement) specified in the request doesn't exist.
      • TooManyRequestsException The client is sending more than the allowed number of requests per unit of time.
      • BadRequestException One of the parameters in the request is invalid.
      • InternalServerErrorException The AWS Serverless Application Repository service encountered an internal error.
      • ForbiddenException The client is not authenticated.
      • 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.
      • ServerlessApplicationRepositoryException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • createCloudFormationTemplate

      default CompletableFuture<CreateCloudFormationTemplateResponse> createCloudFormationTemplate(Consumer<CreateCloudFormationTemplateRequest.Builder> createCloudFormationTemplateRequest)

      Creates an AWS CloudFormation template.


      This is a convenience which creates an instance of the CreateCloudFormationTemplateRequest.Builder avoiding the need to create one manually via CreateCloudFormationTemplateRequest.builder()

      Parameters:
      createCloudFormationTemplateRequest - A Consumer that will call methods on CreateCloudFormationTemplateRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the CreateCloudFormationTemplate 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 invoke Throwable.getCause() to retrieve the underlying exception.
      • NotFoundException The resource (for example, an access policy statement) specified in the request doesn't exist.
      • TooManyRequestsException The client is sending more than the allowed number of requests per unit of time.
      • BadRequestException One of the parameters in the request is invalid.
      • InternalServerErrorException The AWS Serverless Application Repository service encountered an internal error.
      • ForbiddenException The client is not authenticated.
      • 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.
      • ServerlessApplicationRepositoryException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • deleteApplication

      default CompletableFuture<DeleteApplicationResponse> deleteApplication(DeleteApplicationRequest deleteApplicationRequest)

      Deletes the specified application.

      Parameters:
      deleteApplicationRequest -
      Returns:
      A Java Future containing the result of the DeleteApplication 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 invoke Throwable.getCause() to retrieve the underlying exception.
      • BadRequestException One of the parameters in the request is invalid.
      • InternalServerErrorException The AWS Serverless Application Repository service encountered an internal error.
      • ForbiddenException The client is not authenticated.
      • NotFoundException The resource (for example, an access policy statement) specified in the request doesn't exist.
      • TooManyRequestsException The client is sending more than the allowed number of requests per unit of time.
      • ConflictException The resource already exists.
      • 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.
      • ServerlessApplicationRepositoryException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • deleteApplication

      default CompletableFuture<DeleteApplicationResponse> deleteApplication(Consumer<DeleteApplicationRequest.Builder> deleteApplicationRequest)

      Deletes the specified application.


      This is a convenience which creates an instance of the DeleteApplicationRequest.Builder avoiding the need to create one manually via DeleteApplicationRequest.builder()

      Parameters:
      deleteApplicationRequest - A Consumer that will call methods on DeleteApplicationRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the DeleteApplication 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 invoke Throwable.getCause() to retrieve the underlying exception.
      • BadRequestException One of the parameters in the request is invalid.
      • InternalServerErrorException The AWS Serverless Application Repository service encountered an internal error.
      • ForbiddenException The client is not authenticated.
      • NotFoundException The resource (for example, an access policy statement) specified in the request doesn't exist.
      • TooManyRequestsException The client is sending more than the allowed number of requests per unit of time.
      • ConflictException The resource already exists.
      • 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.
      • ServerlessApplicationRepositoryException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getApplication

      default CompletableFuture<GetApplicationResponse> getApplication(GetApplicationRequest getApplicationRequest)

      Gets the specified application.

      Parameters:
      getApplicationRequest -
      Returns:
      A Java Future containing the result of the GetApplication 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 invoke Throwable.getCause() to retrieve the underlying exception.
      • NotFoundException The resource (for example, an access policy statement) specified in the request doesn't exist.
      • TooManyRequestsException The client is sending more than the allowed number of requests per unit of time.
      • BadRequestException One of the parameters in the request is invalid.
      • InternalServerErrorException The AWS Serverless Application Repository service encountered an internal error.
      • ForbiddenException The client is not authenticated.
      • 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.
      • ServerlessApplicationRepositoryException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getApplication

      default CompletableFuture<GetApplicationResponse> getApplication(Consumer<GetApplicationRequest.Builder> getApplicationRequest)

      Gets the specified application.


      This is a convenience which creates an instance of the GetApplicationRequest.Builder avoiding the need to create one manually via GetApplicationRequest.builder()

      Parameters:
      getApplicationRequest - A Consumer that will call methods on GetApplicationRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the GetApplication 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 invoke Throwable.getCause() to retrieve the underlying exception.
      • NotFoundException The resource (for example, an access policy statement) specified in the request doesn't exist.
      • TooManyRequestsException The client is sending more than the allowed number of requests per unit of time.
      • BadRequestException One of the parameters in the request is invalid.
      • InternalServerErrorException The AWS Serverless Application Repository service encountered an internal error.
      • ForbiddenException The client is not authenticated.
      • 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.
      • ServerlessApplicationRepositoryException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getApplicationPolicy

      default CompletableFuture<GetApplicationPolicyResponse> getApplicationPolicy(GetApplicationPolicyRequest getApplicationPolicyRequest)

      Retrieves the policy for the application.

      Parameters:
      getApplicationPolicyRequest -
      Returns:
      A Java Future containing the result of the GetApplicationPolicy 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 invoke Throwable.getCause() to retrieve the underlying exception.
      • NotFoundException The resource (for example, an access policy statement) specified in the request doesn't exist.
      • TooManyRequestsException The client is sending more than the allowed number of requests per unit of time.
      • BadRequestException One of the parameters in the request is invalid.
      • InternalServerErrorException The AWS Serverless Application Repository service encountered an internal error.
      • ForbiddenException The client is not authenticated.
      • 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.
      • ServerlessApplicationRepositoryException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getApplicationPolicy

      default CompletableFuture<GetApplicationPolicyResponse> getApplicationPolicy(Consumer<GetApplicationPolicyRequest.Builder> getApplicationPolicyRequest)

      Retrieves the policy for the application.


      This is a convenience which creates an instance of the GetApplicationPolicyRequest.Builder avoiding the need to create one manually via GetApplicationPolicyRequest.builder()

      Parameters:
      getApplicationPolicyRequest - A Consumer that will call methods on GetApplicationPolicyRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the GetApplicationPolicy 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 invoke Throwable.getCause() to retrieve the underlying exception.
      • NotFoundException The resource (for example, an access policy statement) specified in the request doesn't exist.
      • TooManyRequestsException The client is sending more than the allowed number of requests per unit of time.
      • BadRequestException One of the parameters in the request is invalid.
      • InternalServerErrorException The AWS Serverless Application Repository service encountered an internal error.
      • ForbiddenException The client is not authenticated.
      • 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.
      • ServerlessApplicationRepositoryException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getCloudFormationTemplate

      default CompletableFuture<GetCloudFormationTemplateResponse> getCloudFormationTemplate(GetCloudFormationTemplateRequest getCloudFormationTemplateRequest)

      Gets the specified AWS CloudFormation template.

      Parameters:
      getCloudFormationTemplateRequest -
      Returns:
      A Java Future containing the result of the GetCloudFormationTemplate 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 invoke Throwable.getCause() to retrieve the underlying exception.
      • NotFoundException The resource (for example, an access policy statement) specified in the request doesn't exist.
      • TooManyRequestsException The client is sending more than the allowed number of requests per unit of time.
      • BadRequestException One of the parameters in the request is invalid.
      • InternalServerErrorException The AWS Serverless Application Repository service encountered an internal error.
      • ForbiddenException The client is not authenticated.
      • 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.
      • ServerlessApplicationRepositoryException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getCloudFormationTemplate

      default CompletableFuture<GetCloudFormationTemplateResponse> getCloudFormationTemplate(Consumer<GetCloudFormationTemplateRequest.Builder> getCloudFormationTemplateRequest)

      Gets the specified AWS CloudFormation template.


      This is a convenience which creates an instance of the GetCloudFormationTemplateRequest.Builder avoiding the need to create one manually via GetCloudFormationTemplateRequest.builder()

      Parameters:
      getCloudFormationTemplateRequest - A Consumer that will call methods on GetCloudFormationTemplateRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the GetCloudFormationTemplate 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 invoke Throwable.getCause() to retrieve the underlying exception.
      • NotFoundException The resource (for example, an access policy statement) specified in the request doesn't exist.
      • TooManyRequestsException The client is sending more than the allowed number of requests per unit of time.
      • BadRequestException One of the parameters in the request is invalid.
      • InternalServerErrorException The AWS Serverless Application Repository service encountered an internal error.
      • ForbiddenException The client is not authenticated.
      • 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.
      • ServerlessApplicationRepositoryException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listApplicationDependencies

      default CompletableFuture<ListApplicationDependenciesResponse> listApplicationDependencies(ListApplicationDependenciesRequest listApplicationDependenciesRequest)

      Retrieves the list of applications nested in the containing application.

      Parameters:
      listApplicationDependenciesRequest -
      Returns:
      A Java Future containing the result of the ListApplicationDependencies 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 invoke Throwable.getCause() to retrieve the underlying exception.
      • NotFoundException The resource (for example, an access policy statement) specified in the request doesn't exist.
      • TooManyRequestsException The client is sending more than the allowed number of requests per unit of time.
      • BadRequestException One of the parameters in the request is invalid.
      • InternalServerErrorException The AWS Serverless Application Repository service encountered an internal error.
      • ForbiddenException The client is not authenticated.
      • 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.
      • ServerlessApplicationRepositoryException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listApplicationDependencies

      default CompletableFuture<ListApplicationDependenciesResponse> listApplicationDependencies(Consumer<ListApplicationDependenciesRequest.Builder> listApplicationDependenciesRequest)

      Retrieves the list of applications nested in the containing application.


      This is a convenience which creates an instance of the ListApplicationDependenciesRequest.Builder avoiding the need to create one manually via ListApplicationDependenciesRequest.builder()

      Parameters:
      listApplicationDependenciesRequest - A Consumer that will call methods on ListApplicationDependenciesRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the ListApplicationDependencies 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 invoke Throwable.getCause() to retrieve the underlying exception.
      • NotFoundException The resource (for example, an access policy statement) specified in the request doesn't exist.
      • TooManyRequestsException The client is sending more than the allowed number of requests per unit of time.
      • BadRequestException One of the parameters in the request is invalid.
      • InternalServerErrorException The AWS Serverless Application Repository service encountered an internal error.
      • ForbiddenException The client is not authenticated.
      • 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.
      • ServerlessApplicationRepositoryException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listApplicationDependenciesPaginator

      default ListApplicationDependenciesPublisher listApplicationDependenciesPaginator(ListApplicationDependenciesRequest listApplicationDependenciesRequest)

      This is a variant of listApplicationDependencies(software.amazon.awssdk.services.serverlessapplicationrepository.model.ListApplicationDependenciesRequest) 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 new Subscription i.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
       
       software.amazon.awssdk.services.serverlessapplicationrepository.paginators.ListApplicationDependenciesPublisher publisher = client.listApplicationDependenciesPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.serverlessapplicationrepository.paginators.ListApplicationDependenciesPublisher publisher = client.listApplicationDependenciesPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.serverlessapplicationrepository.model.ListApplicationDependenciesResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.serverlessapplicationrepository.model.ListApplicationDependenciesResponse response) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.

      Note: If you prefer to have control on service calls, use the listApplicationDependencies(software.amazon.awssdk.services.serverlessapplicationrepository.model.ListApplicationDependenciesRequest) operation.

      Parameters:
      listApplicationDependenciesRequest -
      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 invoke Throwable.getCause() to retrieve the underlying exception.
      • NotFoundException The resource (for example, an access policy statement) specified in the request doesn't exist.
      • TooManyRequestsException The client is sending more than the allowed number of requests per unit of time.
      • BadRequestException One of the parameters in the request is invalid.
      • InternalServerErrorException The AWS Serverless Application Repository service encountered an internal error.
      • ForbiddenException The client is not authenticated.
      • 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.
      • ServerlessApplicationRepositoryException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listApplicationDependenciesPaginator

      default ListApplicationDependenciesPublisher listApplicationDependenciesPaginator(Consumer<ListApplicationDependenciesRequest.Builder> listApplicationDependenciesRequest)

      This is a variant of listApplicationDependencies(software.amazon.awssdk.services.serverlessapplicationrepository.model.ListApplicationDependenciesRequest) 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 new Subscription i.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
       
       software.amazon.awssdk.services.serverlessapplicationrepository.paginators.ListApplicationDependenciesPublisher publisher = client.listApplicationDependenciesPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.serverlessapplicationrepository.paginators.ListApplicationDependenciesPublisher publisher = client.listApplicationDependenciesPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.serverlessapplicationrepository.model.ListApplicationDependenciesResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.serverlessapplicationrepository.model.ListApplicationDependenciesResponse response) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.

      Note: If you prefer to have control on service calls, use the listApplicationDependencies(software.amazon.awssdk.services.serverlessapplicationrepository.model.ListApplicationDependenciesRequest) operation.


      This is a convenience which creates an instance of the ListApplicationDependenciesRequest.Builder avoiding the need to create one manually via ListApplicationDependenciesRequest.builder()

      Parameters:
      listApplicationDependenciesRequest - A Consumer that will call methods on ListApplicationDependenciesRequest.Builder to create a request.
      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 invoke Throwable.getCause() to retrieve the underlying exception.
      • NotFoundException The resource (for example, an access policy statement) specified in the request doesn't exist.
      • TooManyRequestsException The client is sending more than the allowed number of requests per unit of time.
      • BadRequestException One of the parameters in the request is invalid.
      • InternalServerErrorException The AWS Serverless Application Repository service encountered an internal error.
      • ForbiddenException The client is not authenticated.
      • 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.
      • ServerlessApplicationRepositoryException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listApplicationVersions

      default CompletableFuture<ListApplicationVersionsResponse> listApplicationVersions(ListApplicationVersionsRequest listApplicationVersionsRequest)

      Lists versions for the specified application.

      Parameters:
      listApplicationVersionsRequest -
      Returns:
      A Java Future containing the result of the ListApplicationVersions 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 invoke Throwable.getCause() to retrieve the underlying exception.
      • NotFoundException The resource (for example, an access policy statement) specified in the request doesn't exist.
      • TooManyRequestsException The client is sending more than the allowed number of requests per unit of time.
      • BadRequestException One of the parameters in the request is invalid.
      • InternalServerErrorException The AWS Serverless Application Repository service encountered an internal error.
      • ForbiddenException The client is not authenticated.
      • 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.
      • ServerlessApplicationRepositoryException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listApplicationVersions

      default CompletableFuture<ListApplicationVersionsResponse> listApplicationVersions(Consumer<ListApplicationVersionsRequest.Builder> listApplicationVersionsRequest)

      Lists versions for the specified application.


      This is a convenience which creates an instance of the ListApplicationVersionsRequest.Builder avoiding the need to create one manually via ListApplicationVersionsRequest.builder()

      Parameters:
      listApplicationVersionsRequest - A Consumer that will call methods on ListApplicationVersionsRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the ListApplicationVersions 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 invoke Throwable.getCause() to retrieve the underlying exception.
      • NotFoundException The resource (for example, an access policy statement) specified in the request doesn't exist.
      • TooManyRequestsException The client is sending more than the allowed number of requests per unit of time.
      • BadRequestException One of the parameters in the request is invalid.
      • InternalServerErrorException The AWS Serverless Application Repository service encountered an internal error.
      • ForbiddenException The client is not authenticated.
      • 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.
      • ServerlessApplicationRepositoryException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listApplicationVersionsPaginator

      default ListApplicationVersionsPublisher listApplicationVersionsPaginator(ListApplicationVersionsRequest listApplicationVersionsRequest)

      This is a variant of listApplicationVersions(software.amazon.awssdk.services.serverlessapplicationrepository.model.ListApplicationVersionsRequest) 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 new Subscription i.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
       
       software.amazon.awssdk.services.serverlessapplicationrepository.paginators.ListApplicationVersionsPublisher publisher = client.listApplicationVersionsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.serverlessapplicationrepository.paginators.ListApplicationVersionsPublisher publisher = client.listApplicationVersionsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.serverlessapplicationrepository.model.ListApplicationVersionsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.serverlessapplicationrepository.model.ListApplicationVersionsResponse response) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.

      Note: If you prefer to have control on service calls, use the listApplicationVersions(software.amazon.awssdk.services.serverlessapplicationrepository.model.ListApplicationVersionsRequest) operation.

      Parameters:
      listApplicationVersionsRequest -
      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 invoke Throwable.getCause() to retrieve the underlying exception.
      • NotFoundException The resource (for example, an access policy statement) specified in the request doesn't exist.
      • TooManyRequestsException The client is sending more than the allowed number of requests per unit of time.
      • BadRequestException One of the parameters in the request is invalid.
      • InternalServerErrorException The AWS Serverless Application Repository service encountered an internal error.
      • ForbiddenException The client is not authenticated.
      • 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.
      • ServerlessApplicationRepositoryException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listApplicationVersionsPaginator

      default ListApplicationVersionsPublisher listApplicationVersionsPaginator(Consumer<ListApplicationVersionsRequest.Builder> listApplicationVersionsRequest)

      This is a variant of listApplicationVersions(software.amazon.awssdk.services.serverlessapplicationrepository.model.ListApplicationVersionsRequest) 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 new Subscription i.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
       
       software.amazon.awssdk.services.serverlessapplicationrepository.paginators.ListApplicationVersionsPublisher publisher = client.listApplicationVersionsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.serverlessapplicationrepository.paginators.ListApplicationVersionsPublisher publisher = client.listApplicationVersionsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.serverlessapplicationrepository.model.ListApplicationVersionsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.serverlessapplicationrepository.model.ListApplicationVersionsResponse response) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.

      Note: If you prefer to have control on service calls, use the listApplicationVersions(software.amazon.awssdk.services.serverlessapplicationrepository.model.ListApplicationVersionsRequest) operation.


      This is a convenience which creates an instance of the ListApplicationVersionsRequest.Builder avoiding the need to create one manually via ListApplicationVersionsRequest.builder()

      Parameters:
      listApplicationVersionsRequest - A Consumer that will call methods on ListApplicationVersionsRequest.Builder to create a request.
      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 invoke Throwable.getCause() to retrieve the underlying exception.
      • NotFoundException The resource (for example, an access policy statement) specified in the request doesn't exist.
      • TooManyRequestsException The client is sending more than the allowed number of requests per unit of time.
      • BadRequestException One of the parameters in the request is invalid.
      • InternalServerErrorException The AWS Serverless Application Repository service encountered an internal error.
      • ForbiddenException The client is not authenticated.
      • 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.
      • ServerlessApplicationRepositoryException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listApplications

      default CompletableFuture<ListApplicationsResponse> listApplications(ListApplicationsRequest listApplicationsRequest)

      Lists applications owned by the requester.

      Parameters:
      listApplicationsRequest -
      Returns:
      A Java Future containing the result of the ListApplications 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 invoke Throwable.getCause() to retrieve the underlying exception.
      • NotFoundException The resource (for example, an access policy statement) specified in the request doesn't exist.
      • BadRequestException One of the parameters in the request is invalid.
      • InternalServerErrorException The AWS Serverless Application Repository service encountered an internal error.
      • ForbiddenException The client is not authenticated.
      • 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.
      • ServerlessApplicationRepositoryException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listApplications

      default CompletableFuture<ListApplicationsResponse> listApplications(Consumer<ListApplicationsRequest.Builder> listApplicationsRequest)

      Lists applications owned by the requester.


      This is a convenience which creates an instance of the ListApplicationsRequest.Builder avoiding the need to create one manually via ListApplicationsRequest.builder()

      Parameters:
      listApplicationsRequest - A Consumer that will call methods on ListApplicationsRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the ListApplications 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 invoke Throwable.getCause() to retrieve the underlying exception.
      • NotFoundException The resource (for example, an access policy statement) specified in the request doesn't exist.
      • BadRequestException One of the parameters in the request is invalid.
      • InternalServerErrorException The AWS Serverless Application Repository service encountered an internal error.
      • ForbiddenException The client is not authenticated.
      • 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.
      • ServerlessApplicationRepositoryException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listApplications

      default CompletableFuture<ListApplicationsResponse> listApplications()

      Lists applications owned by the requester.

      Returns:
      A Java Future containing the result of the ListApplications 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 invoke Throwable.getCause() to retrieve the underlying exception.
      • NotFoundException The resource (for example, an access policy statement) specified in the request doesn't exist.
      • BadRequestException One of the parameters in the request is invalid.
      • InternalServerErrorException The AWS Serverless Application Repository service encountered an internal error.
      • ForbiddenException The client is not authenticated.
      • 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.
      • ServerlessApplicationRepositoryException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listApplicationsPaginator

      default ListApplicationsPublisher listApplicationsPaginator()

      This is a variant of listApplications(software.amazon.awssdk.services.serverlessapplicationrepository.model.ListApplicationsRequest) 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 new Subscription i.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
       
       software.amazon.awssdk.services.serverlessapplicationrepository.paginators.ListApplicationsPublisher publisher = client.listApplicationsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.serverlessapplicationrepository.paginators.ListApplicationsPublisher publisher = client.listApplicationsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.serverlessapplicationrepository.model.ListApplicationsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.serverlessapplicationrepository.model.ListApplicationsResponse response) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.

      Note: If you prefer to have control on service calls, use the listApplications(software.amazon.awssdk.services.serverlessapplicationrepository.model.ListApplicationsRequest) operation.

      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 invoke Throwable.getCause() to retrieve the underlying exception.
      • NotFoundException The resource (for example, an access policy statement) specified in the request doesn't exist.
      • BadRequestException One of the parameters in the request is invalid.
      • InternalServerErrorException The AWS Serverless Application Repository service encountered an internal error.
      • ForbiddenException The client is not authenticated.
      • 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.
      • ServerlessApplicationRepositoryException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listApplicationsPaginator

      default ListApplicationsPublisher listApplicationsPaginator(ListApplicationsRequest listApplicationsRequest)

      This is a variant of listApplications(software.amazon.awssdk.services.serverlessapplicationrepository.model.ListApplicationsRequest) 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 new Subscription i.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
       
       software.amazon.awssdk.services.serverlessapplicationrepository.paginators.ListApplicationsPublisher publisher = client.listApplicationsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.serverlessapplicationrepository.paginators.ListApplicationsPublisher publisher = client.listApplicationsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.serverlessapplicationrepository.model.ListApplicationsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.serverlessapplicationrepository.model.ListApplicationsResponse response) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.

      Note: If you prefer to have control on service calls, use the listApplications(software.amazon.awssdk.services.serverlessapplicationrepository.model.ListApplicationsRequest) operation.

      Parameters:
      listApplicationsRequest -
      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 invoke Throwable.getCause() to retrieve the underlying exception.
      • NotFoundException The resource (for example, an access policy statement) specified in the request doesn't exist.
      • BadRequestException One of the parameters in the request is invalid.
      • InternalServerErrorException The AWS Serverless Application Repository service encountered an internal error.
      • ForbiddenException The client is not authenticated.
      • 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.
      • ServerlessApplicationRepositoryException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listApplicationsPaginator

      default ListApplicationsPublisher listApplicationsPaginator(Consumer<ListApplicationsRequest.Builder> listApplicationsRequest)

      This is a variant of listApplications(software.amazon.awssdk.services.serverlessapplicationrepository.model.ListApplicationsRequest) 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 new Subscription i.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
       
       software.amazon.awssdk.services.serverlessapplicationrepository.paginators.ListApplicationsPublisher publisher = client.listApplicationsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.serverlessapplicationrepository.paginators.ListApplicationsPublisher publisher = client.listApplicationsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.serverlessapplicationrepository.model.ListApplicationsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.serverlessapplicationrepository.model.ListApplicationsResponse response) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.

      Note: If you prefer to have control on service calls, use the listApplications(software.amazon.awssdk.services.serverlessapplicationrepository.model.ListApplicationsRequest) operation.


      This is a convenience which creates an instance of the ListApplicationsRequest.Builder avoiding the need to create one manually via ListApplicationsRequest.builder()

      Parameters:
      listApplicationsRequest - A Consumer that will call methods on ListApplicationsRequest.Builder to create a request.
      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 invoke Throwable.getCause() to retrieve the underlying exception.
      • NotFoundException The resource (for example, an access policy statement) specified in the request doesn't exist.
      • BadRequestException One of the parameters in the request is invalid.
      • InternalServerErrorException The AWS Serverless Application Repository service encountered an internal error.
      • ForbiddenException The client is not authenticated.
      • 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.
      • ServerlessApplicationRepositoryException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • putApplicationPolicy

      default CompletableFuture<PutApplicationPolicyResponse> putApplicationPolicy(PutApplicationPolicyRequest putApplicationPolicyRequest)

      Sets the permission policy for an application. For the list of actions supported for this operation, see Application Permissions .

      Parameters:
      putApplicationPolicyRequest -
      Returns:
      A Java Future containing the result of the PutApplicationPolicy 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 invoke Throwable.getCause() to retrieve the underlying exception.
      • NotFoundException The resource (for example, an access policy statement) specified in the request doesn't exist.
      • TooManyRequestsException The client is sending more than the allowed number of requests per unit of time.
      • BadRequestException One of the parameters in the request is invalid.
      • InternalServerErrorException The AWS Serverless Application Repository service encountered an internal error.
      • ForbiddenException The client is not authenticated.
      • 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.
      • ServerlessApplicationRepositoryException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • putApplicationPolicy

      default CompletableFuture<PutApplicationPolicyResponse> putApplicationPolicy(Consumer<PutApplicationPolicyRequest.Builder> putApplicationPolicyRequest)

      Sets the permission policy for an application. For the list of actions supported for this operation, see Application Permissions .


      This is a convenience which creates an instance of the PutApplicationPolicyRequest.Builder avoiding the need to create one manually via PutApplicationPolicyRequest.builder()

      Parameters:
      putApplicationPolicyRequest - A Consumer that will call methods on PutApplicationPolicyRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the PutApplicationPolicy 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 invoke Throwable.getCause() to retrieve the underlying exception.
      • NotFoundException The resource (for example, an access policy statement) specified in the request doesn't exist.
      • TooManyRequestsException The client is sending more than the allowed number of requests per unit of time.
      • BadRequestException One of the parameters in the request is invalid.
      • InternalServerErrorException The AWS Serverless Application Repository service encountered an internal error.
      • ForbiddenException The client is not authenticated.
      • 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.
      • ServerlessApplicationRepositoryException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • unshareApplication

      default CompletableFuture<UnshareApplicationResponse> unshareApplication(UnshareApplicationRequest unshareApplicationRequest)

      Unshares an application from an AWS Organization.

      This operation can be called only from the organization's master account.

      Parameters:
      unshareApplicationRequest -
      Returns:
      A Java Future containing the result of the UnshareApplication 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 invoke Throwable.getCause() to retrieve the underlying exception.
      • NotFoundException The resource (for example, an access policy statement) specified in the request doesn't exist.
      • TooManyRequestsException The client is sending more than the allowed number of requests per unit of time.
      • BadRequestException One of the parameters in the request is invalid.
      • InternalServerErrorException The AWS Serverless Application Repository service encountered an internal error.
      • ForbiddenException The client is not authenticated.
      • 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.
      • ServerlessApplicationRepositoryException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • unshareApplication

      default CompletableFuture<UnshareApplicationResponse> unshareApplication(Consumer<UnshareApplicationRequest.Builder> unshareApplicationRequest)

      Unshares an application from an AWS Organization.

      This operation can be called only from the organization's master account.


      This is a convenience which creates an instance of the UnshareApplicationRequest.Builder avoiding the need to create one manually via UnshareApplicationRequest.builder()

      Parameters:
      unshareApplicationRequest - A Consumer that will call methods on UnshareApplicationRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the UnshareApplication 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 invoke Throwable.getCause() to retrieve the underlying exception.
      • NotFoundException The resource (for example, an access policy statement) specified in the request doesn't exist.
      • TooManyRequestsException The client is sending more than the allowed number of requests per unit of time.
      • BadRequestException One of the parameters in the request is invalid.
      • InternalServerErrorException The AWS Serverless Application Repository service encountered an internal error.
      • ForbiddenException The client is not authenticated.
      • 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.
      • ServerlessApplicationRepositoryException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • updateApplication

      default CompletableFuture<UpdateApplicationResponse> updateApplication(UpdateApplicationRequest updateApplicationRequest)

      Updates the specified application.

      Parameters:
      updateApplicationRequest -
      Returns:
      A Java Future containing the result of the UpdateApplication 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 invoke Throwable.getCause() to retrieve the underlying exception.
      • BadRequestException One of the parameters in the request is invalid.
      • InternalServerErrorException The AWS Serverless Application Repository service encountered an internal error.
      • ForbiddenException The client is not authenticated.
      • NotFoundException The resource (for example, an access policy statement) specified in the request doesn't exist.
      • TooManyRequestsException The client is sending more than the allowed number of requests per unit of time.
      • ConflictException The resource already exists.
      • 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.
      • ServerlessApplicationRepositoryException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • updateApplication

      default CompletableFuture<UpdateApplicationResponse> updateApplication(Consumer<UpdateApplicationRequest.Builder> updateApplicationRequest)

      Updates the specified application.


      This is a convenience which creates an instance of the UpdateApplicationRequest.Builder avoiding the need to create one manually via UpdateApplicationRequest.builder()

      Parameters:
      updateApplicationRequest - A Consumer that will call methods on UpdateApplicationRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the UpdateApplication 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 invoke Throwable.getCause() to retrieve the underlying exception.
      • BadRequestException One of the parameters in the request is invalid.
      • InternalServerErrorException The AWS Serverless Application Repository service encountered an internal error.
      • ForbiddenException The client is not authenticated.
      • NotFoundException The resource (for example, an access policy statement) specified in the request doesn't exist.
      • TooManyRequestsException The client is sending more than the allowed number of requests per unit of time.
      • ConflictException The resource already exists.
      • 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.
      • ServerlessApplicationRepositoryException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • serviceClientConfiguration

      default ServerlessApplicationRepositoryServiceClientConfiguration serviceClientConfiguration()
      Description copied from interface: SdkClient
      The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfiguration
      Specified by:
      serviceClientConfiguration in interface AwsClient
      Specified by:
      serviceClientConfiguration in interface SdkClient
      Returns:
      SdkServiceClientConfiguration
    • create

      Create a ServerlessApplicationRepositoryAsyncClient with the region loaded from the DefaultAwsRegionProviderChain and credentials loaded from the DefaultCredentialsProvider.
    • builder

      Create a builder that can be used to configure and create a ServerlessApplicationRepositoryAsyncClient.