Interface ServerlessApplicationRepositoryAsyncClient
- 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 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 Summary
Modifier and TypeFieldDescriptionstatic final String
Value for looking up the service's metadata from theServiceMetadataProvider
.static final String
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Create a builder that can be used to configure and create aServerlessApplicationRepositoryAsyncClient
.create()
Create aServerlessApplicationRepositoryAsyncClient
with the region loaded from theDefaultAwsRegionProviderChain
and credentials loaded from theDefaultCredentialsProvider
.createApplication
(Consumer<CreateApplicationRequest.Builder> createApplicationRequest) Creates an application, optionally including an AWS SAM file to create the first application version in the same call.createApplication
(CreateApplicationRequest createApplicationRequest) Creates an application, optionally including an AWS SAM file to create the first application version in the same call.createApplicationVersion
(Consumer<CreateApplicationVersionRequest.Builder> createApplicationVersionRequest) Creates an application version.createApplicationVersion
(CreateApplicationVersionRequest createApplicationVersionRequest) Creates an application version.createCloudFormationChangeSet
(Consumer<CreateCloudFormationChangeSetRequest.Builder> createCloudFormationChangeSetRequest) Creates an AWS CloudFormation change set for the given application.createCloudFormationChangeSet
(CreateCloudFormationChangeSetRequest createCloudFormationChangeSetRequest) Creates an AWS CloudFormation change set for the given application.createCloudFormationTemplate
(Consumer<CreateCloudFormationTemplateRequest.Builder> createCloudFormationTemplateRequest) Creates an AWS CloudFormation template.createCloudFormationTemplate
(CreateCloudFormationTemplateRequest createCloudFormationTemplateRequest) Creates an AWS CloudFormation template.deleteApplication
(Consumer<DeleteApplicationRequest.Builder> deleteApplicationRequest) Deletes the specified application.deleteApplication
(DeleteApplicationRequest deleteApplicationRequest) Deletes the specified application.default CompletableFuture
<GetApplicationResponse> getApplication
(Consumer<GetApplicationRequest.Builder> getApplicationRequest) Gets the specified application.default CompletableFuture
<GetApplicationResponse> getApplication
(GetApplicationRequest getApplicationRequest) Gets the specified application.getApplicationPolicy
(Consumer<GetApplicationPolicyRequest.Builder> getApplicationPolicyRequest) Retrieves the policy for the application.getApplicationPolicy
(GetApplicationPolicyRequest getApplicationPolicyRequest) Retrieves the policy for the application.getCloudFormationTemplate
(Consumer<GetCloudFormationTemplateRequest.Builder> getCloudFormationTemplateRequest) Gets the specified AWS CloudFormation template.getCloudFormationTemplate
(GetCloudFormationTemplateRequest getCloudFormationTemplateRequest) Gets the specified AWS CloudFormation template.listApplicationDependencies
(Consumer<ListApplicationDependenciesRequest.Builder> listApplicationDependenciesRequest) Retrieves the list of applications nested in the containing application.listApplicationDependencies
(ListApplicationDependenciesRequest listApplicationDependenciesRequest) Retrieves the list of applications nested in the containing application.listApplicationDependenciesPaginator
(Consumer<ListApplicationDependenciesRequest.Builder> listApplicationDependenciesRequest) listApplicationDependenciesPaginator
(ListApplicationDependenciesRequest listApplicationDependenciesRequest) Lists applications owned by the requester.listApplications
(Consumer<ListApplicationsRequest.Builder> listApplicationsRequest) Lists applications owned by the requester.listApplications
(ListApplicationsRequest listApplicationsRequest) Lists applications owned by the requester.default ListApplicationsPublisher
This is a variant oflistApplications(software.amazon.awssdk.services.serverlessapplicationrepository.model.ListApplicationsRequest)
operation.default ListApplicationsPublisher
listApplicationsPaginator
(Consumer<ListApplicationsRequest.Builder> listApplicationsRequest) This is a variant oflistApplications(software.amazon.awssdk.services.serverlessapplicationrepository.model.ListApplicationsRequest)
operation.default ListApplicationsPublisher
listApplicationsPaginator
(ListApplicationsRequest listApplicationsRequest) This is a variant oflistApplications(software.amazon.awssdk.services.serverlessapplicationrepository.model.ListApplicationsRequest)
operation.listApplicationVersions
(Consumer<ListApplicationVersionsRequest.Builder> listApplicationVersionsRequest) Lists versions for the specified application.listApplicationVersions
(ListApplicationVersionsRequest listApplicationVersionsRequest) Lists versions for the specified application.default ListApplicationVersionsPublisher
listApplicationVersionsPaginator
(Consumer<ListApplicationVersionsRequest.Builder> listApplicationVersionsRequest) This is a variant oflistApplicationVersions(software.amazon.awssdk.services.serverlessapplicationrepository.model.ListApplicationVersionsRequest)
operation.default ListApplicationVersionsPublisher
listApplicationVersionsPaginator
(ListApplicationVersionsRequest listApplicationVersionsRequest) This is a variant oflistApplicationVersions(software.amazon.awssdk.services.serverlessapplicationrepository.model.ListApplicationVersionsRequest)
operation.putApplicationPolicy
(Consumer<PutApplicationPolicyRequest.Builder> putApplicationPolicyRequest) Sets the permission policy for an application.putApplicationPolicy
(PutApplicationPolicyRequest putApplicationPolicyRequest) Sets the permission policy for an application.The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationunshareApplication
(Consumer<UnshareApplicationRequest.Builder> unshareApplicationRequest) Unshares an application from an AWS Organization.unshareApplication
(UnshareApplicationRequest unshareApplicationRequest) Unshares an application from an AWS Organization.updateApplication
(Consumer<UpdateApplicationRequest.Builder> updateApplicationRequest) Updates the specified application.updateApplication
(UpdateApplicationRequest updateApplicationRequest) Updates the specified application.Methods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
close
Methods 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
-
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 invokeThrowable.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 viaCreateApplicationRequest.builder()
- Parameters:
createApplicationRequest
- AConsumer
that will call methods onCreateApplicationRequest.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 invokeThrowable.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 invokeThrowable.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 viaCreateApplicationVersionRequest.builder()
- Parameters:
createApplicationVersionRequest
- AConsumer
that will call methods onCreateApplicationVersionRequest.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 invokeThrowable.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 invokeThrowable.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 viaCreateCloudFormationChangeSetRequest.builder()
- Parameters:
createCloudFormationChangeSetRequest
- AConsumer
that will call methods onCreateCloudFormationChangeSetRequest.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 invokeThrowable.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 invokeThrowable.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 viaCreateCloudFormationTemplateRequest.builder()
- Parameters:
createCloudFormationTemplateRequest
- AConsumer
that will call methods onCreateCloudFormationTemplateRequest.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 invokeThrowable.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 invokeThrowable.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 viaDeleteApplicationRequest.builder()
- Parameters:
deleteApplicationRequest
- AConsumer
that will call methods onDeleteApplicationRequest.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 invokeThrowable.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 invokeThrowable.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 viaGetApplicationRequest.builder()
- Parameters:
getApplicationRequest
- AConsumer
that will call methods onGetApplicationRequest.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 invokeThrowable.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 invokeThrowable.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 viaGetApplicationPolicyRequest.builder()
- Parameters:
getApplicationPolicyRequest
- AConsumer
that will call methods onGetApplicationPolicyRequest.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 invokeThrowable.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 invokeThrowable.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 viaGetCloudFormationTemplateRequest.builder()
- Parameters:
getCloudFormationTemplateRequest
- AConsumer
that will call methods onGetCloudFormationTemplateRequest.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 invokeThrowable.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 invokeThrowable.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 viaListApplicationDependenciesRequest.builder()
- Parameters:
listApplicationDependenciesRequest
- AConsumer
that will call methods onListApplicationDependenciesRequest.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 invokeThrowable.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 newSubscription
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 methodsoftware.amazon.awssdk.services.serverlessapplicationrepository.paginators.ListApplicationDependenciesPublisher publisher = client.listApplicationDependenciesPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
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) { //... }; });
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 invokeThrowable.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 newSubscription
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 methodsoftware.amazon.awssdk.services.serverlessapplicationrepository.paginators.ListApplicationDependenciesPublisher publisher = client.listApplicationDependenciesPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
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) { //... }; });
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 viaListApplicationDependenciesRequest.builder()
- Parameters:
listApplicationDependenciesRequest
- AConsumer
that will call methods onListApplicationDependenciesRequest.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 invokeThrowable.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 invokeThrowable.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 viaListApplicationVersionsRequest.builder()
- Parameters:
listApplicationVersionsRequest
- AConsumer
that will call methods onListApplicationVersionsRequest.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 invokeThrowable.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 newSubscription
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 methodsoftware.amazon.awssdk.services.serverlessapplicationrepository.paginators.ListApplicationVersionsPublisher publisher = client.listApplicationVersionsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
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) { //... }; });
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 invokeThrowable.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 newSubscription
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 methodsoftware.amazon.awssdk.services.serverlessapplicationrepository.paginators.ListApplicationVersionsPublisher publisher = client.listApplicationVersionsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
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) { //... }; });
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 viaListApplicationVersionsRequest.builder()
- Parameters:
listApplicationVersionsRequest
- AConsumer
that will call methods onListApplicationVersionsRequest.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 invokeThrowable.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 invokeThrowable.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 viaListApplicationsRequest.builder()
- Parameters:
listApplicationsRequest
- AConsumer
that will call methods onListApplicationsRequest.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 invokeThrowable.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
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 invokeThrowable.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
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 newSubscription
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 methodsoftware.amazon.awssdk.services.serverlessapplicationrepository.paginators.ListApplicationsPublisher publisher = client.listApplicationsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
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) { //... }; });
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 invokeThrowable.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 newSubscription
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 methodsoftware.amazon.awssdk.services.serverlessapplicationrepository.paginators.ListApplicationsPublisher publisher = client.listApplicationsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
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) { //... }; });
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 invokeThrowable.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 newSubscription
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 methodsoftware.amazon.awssdk.services.serverlessapplicationrepository.paginators.ListApplicationsPublisher publisher = client.listApplicationsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
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) { //... }; });
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 viaListApplicationsRequest.builder()
- Parameters:
listApplicationsRequest
- AConsumer
that will call methods onListApplicationsRequest.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 invokeThrowable.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 invokeThrowable.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 viaPutApplicationPolicyRequest.builder()
- Parameters:
putApplicationPolicyRequest
- AConsumer
that will call methods onPutApplicationPolicyRequest.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 invokeThrowable.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 invokeThrowable.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 viaUpdateApplicationRequest.builder()
- Parameters:
updateApplicationRequest
- AConsumer
that will call methods onUpdateApplicationRequest.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 invokeThrowable.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
Description copied from interface:SdkClient
The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfiguration- Specified by:
serviceClientConfiguration
in interfaceAwsClient
- Specified by:
serviceClientConfiguration
in interfaceSdkClient
- Returns:
- SdkServiceClientConfiguration
-
create
Create aServerlessApplicationRepositoryAsyncClient
with the region loaded from theDefaultAwsRegionProviderChain
and credentials loaded from theDefaultCredentialsProvider
. -
builder
Create a builder that can be used to configure and create aServerlessApplicationRepositoryAsyncClient
.
-