@Generated(value="software.amazon.awssdk:codegen") public interface ServerlessApplicationRepositoryClient extends SdkClient
builder()
method.
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.
Modifier and Type | Field and Description |
---|---|
static String |
SERVICE_NAME |
Modifier and Type | Method and Description |
---|---|
static ServerlessApplicationRepositoryClientBuilder |
builder()
Create a builder that can be used to configure and create a
ServerlessApplicationRepositoryClient . |
static ServerlessApplicationRepositoryClient |
create()
Create a
ServerlessApplicationRepositoryClient with the region loaded from the
DefaultAwsRegionProviderChain and credentials loaded from the
DefaultCredentialsProvider . |
default 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.
|
default CreateApplicationResponse |
createApplication(CreateApplicationRequest createApplicationRequest)
Creates an application, optionally including an AWS SAM file to create the first application version in the same
call.
|
default CreateApplicationVersionResponse |
createApplicationVersion(Consumer<CreateApplicationVersionRequest.Builder> createApplicationVersionRequest)
Creates an application version.
|
default CreateApplicationVersionResponse |
createApplicationVersion(CreateApplicationVersionRequest createApplicationVersionRequest)
Creates an application version.
|
default CreateCloudFormationChangeSetResponse |
createCloudFormationChangeSet(Consumer<CreateCloudFormationChangeSetRequest.Builder> createCloudFormationChangeSetRequest)
Creates an AWS CloudFormation change set for the given application.
|
default CreateCloudFormationChangeSetResponse |
createCloudFormationChangeSet(CreateCloudFormationChangeSetRequest createCloudFormationChangeSetRequest)
Creates an AWS CloudFormation change set for the given application.
|
default CreateCloudFormationTemplateResponse |
createCloudFormationTemplate(Consumer<CreateCloudFormationTemplateRequest.Builder> createCloudFormationTemplateRequest)
Creates an AWS CloudFormation template.
|
default CreateCloudFormationTemplateResponse |
createCloudFormationTemplate(CreateCloudFormationTemplateRequest createCloudFormationTemplateRequest)
Creates an AWS CloudFormation template.
|
default DeleteApplicationResponse |
deleteApplication(Consumer<DeleteApplicationRequest.Builder> deleteApplicationRequest)
Deletes the specified application.
|
default DeleteApplicationResponse |
deleteApplication(DeleteApplicationRequest deleteApplicationRequest)
Deletes the specified application.
|
default GetApplicationResponse |
getApplication(Consumer<GetApplicationRequest.Builder> getApplicationRequest)
Gets the specified application.
|
default GetApplicationResponse |
getApplication(GetApplicationRequest getApplicationRequest)
Gets the specified application.
|
default GetApplicationPolicyResponse |
getApplicationPolicy(Consumer<GetApplicationPolicyRequest.Builder> getApplicationPolicyRequest)
Retrieves the policy for the application.
|
default GetApplicationPolicyResponse |
getApplicationPolicy(GetApplicationPolicyRequest getApplicationPolicyRequest)
Retrieves the policy for the application.
|
default GetCloudFormationTemplateResponse |
getCloudFormationTemplate(Consumer<GetCloudFormationTemplateRequest.Builder> getCloudFormationTemplateRequest)
Gets the specified AWS CloudFormation template.
|
default GetCloudFormationTemplateResponse |
getCloudFormationTemplate(GetCloudFormationTemplateRequest getCloudFormationTemplateRequest)
Gets the specified AWS CloudFormation template.
|
default ListApplicationDependenciesResponse |
listApplicationDependencies(Consumer<ListApplicationDependenciesRequest.Builder> listApplicationDependenciesRequest)
Retrieves the list of applications nested in the containing application.
|
default ListApplicationDependenciesResponse |
listApplicationDependencies(ListApplicationDependenciesRequest listApplicationDependenciesRequest)
Retrieves the list of applications nested in the containing application.
|
default ListApplicationDependenciesIterable |
listApplicationDependenciesPaginator(Consumer<ListApplicationDependenciesRequest.Builder> listApplicationDependenciesRequest)
Retrieves the list of applications nested in the containing application.
|
default ListApplicationDependenciesIterable |
listApplicationDependenciesPaginator(ListApplicationDependenciesRequest listApplicationDependenciesRequest)
Retrieves the list of applications nested in the containing application.
|
default ListApplicationsResponse |
listApplications()
Lists applications owned by the requester.
|
default ListApplicationsResponse |
listApplications(Consumer<ListApplicationsRequest.Builder> listApplicationsRequest)
Lists applications owned by the requester.
|
default ListApplicationsResponse |
listApplications(ListApplicationsRequest listApplicationsRequest)
Lists applications owned by the requester.
|
default ListApplicationsIterable |
listApplicationsPaginator()
Lists applications owned by the requester.
|
default ListApplicationsIterable |
listApplicationsPaginator(Consumer<ListApplicationsRequest.Builder> listApplicationsRequest)
Lists applications owned by the requester.
|
default ListApplicationsIterable |
listApplicationsPaginator(ListApplicationsRequest listApplicationsRequest)
Lists applications owned by the requester.
|
default ListApplicationVersionsResponse |
listApplicationVersions(Consumer<ListApplicationVersionsRequest.Builder> listApplicationVersionsRequest)
Lists versions for the specified application.
|
default ListApplicationVersionsResponse |
listApplicationVersions(ListApplicationVersionsRequest listApplicationVersionsRequest)
Lists versions for the specified application.
|
default ListApplicationVersionsIterable |
listApplicationVersionsPaginator(Consumer<ListApplicationVersionsRequest.Builder> listApplicationVersionsRequest)
Lists versions for the specified application.
|
default ListApplicationVersionsIterable |
listApplicationVersionsPaginator(ListApplicationVersionsRequest listApplicationVersionsRequest)
Lists versions for the specified application.
|
default PutApplicationPolicyResponse |
putApplicationPolicy(Consumer<PutApplicationPolicyRequest.Builder> putApplicationPolicyRequest)
Sets the permission policy for an application.
|
default PutApplicationPolicyResponse |
putApplicationPolicy(PutApplicationPolicyRequest putApplicationPolicyRequest)
Sets the permission policy for an application.
|
static ServiceMetadata |
serviceMetadata() |
default UpdateApplicationResponse |
updateApplication(Consumer<UpdateApplicationRequest.Builder> updateApplicationRequest)
Updates the specified application.
|
default UpdateApplicationResponse |
updateApplication(UpdateApplicationRequest updateApplicationRequest)
Updates the specified application.
|
serviceName
close
static final String SERVICE_NAME
static ServerlessApplicationRepositoryClient create()
ServerlessApplicationRepositoryClient
with the region loaded from the
DefaultAwsRegionProviderChain
and credentials loaded from the
DefaultCredentialsProvider
.static ServerlessApplicationRepositoryClientBuilder builder()
ServerlessApplicationRepositoryClient
.default CreateApplicationResponse createApplication(CreateApplicationRequest createApplicationRequest) throws TooManyRequestsException, BadRequestException, InternalServerErrorException, ConflictException, ForbiddenException, AwsServiceException, SdkClientException, ServerlessApplicationRepositoryException
Creates an application, optionally including an AWS SAM file to create the first application version in the same call.
createApplicationRequest
- 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.AwsServiceException
default CreateApplicationResponse createApplication(Consumer<CreateApplicationRequest.Builder> createApplicationRequest) throws TooManyRequestsException, BadRequestException, InternalServerErrorException, ConflictException, ForbiddenException, AwsServiceException, SdkClientException, ServerlessApplicationRepositoryException
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()
createApplicationRequest
- A Consumer
that will call methods on CreateApplicationRequest.Builder
to create a request.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.AwsServiceException
default CreateApplicationVersionResponse createApplicationVersion(CreateApplicationVersionRequest createApplicationVersionRequest) throws TooManyRequestsException, BadRequestException, InternalServerErrorException, ConflictException, ForbiddenException, AwsServiceException, SdkClientException, ServerlessApplicationRepositoryException
Creates an application version.
createApplicationVersionRequest
- 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.AwsServiceException
default CreateApplicationVersionResponse createApplicationVersion(Consumer<CreateApplicationVersionRequest.Builder> createApplicationVersionRequest) throws TooManyRequestsException, BadRequestException, InternalServerErrorException, ConflictException, ForbiddenException, AwsServiceException, SdkClientException, ServerlessApplicationRepositoryException
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()
createApplicationVersionRequest
- A Consumer
that will call methods on CreateApplicationVersionRequest.Builder
to create a
request.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.AwsServiceException
default CreateCloudFormationChangeSetResponse createCloudFormationChangeSet(CreateCloudFormationChangeSetRequest createCloudFormationChangeSetRequest) throws TooManyRequestsException, BadRequestException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, ServerlessApplicationRepositoryException
Creates an AWS CloudFormation change set for the given application.
createCloudFormationChangeSetRequest
- 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.AwsServiceException
default CreateCloudFormationChangeSetResponse createCloudFormationChangeSet(Consumer<CreateCloudFormationChangeSetRequest.Builder> createCloudFormationChangeSetRequest) throws TooManyRequestsException, BadRequestException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, ServerlessApplicationRepositoryException
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()
createCloudFormationChangeSetRequest
- A Consumer
that will call methods on CreateCloudFormationChangeSetRequest.Builder
to
create a request.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.AwsServiceException
default CreateCloudFormationTemplateResponse createCloudFormationTemplate(CreateCloudFormationTemplateRequest createCloudFormationTemplateRequest) throws NotFoundException, TooManyRequestsException, BadRequestException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, ServerlessApplicationRepositoryException
Creates an AWS CloudFormation template.
createCloudFormationTemplateRequest
- 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.AwsServiceException
default CreateCloudFormationTemplateResponse createCloudFormationTemplate(Consumer<CreateCloudFormationTemplateRequest.Builder> createCloudFormationTemplateRequest) throws NotFoundException, TooManyRequestsException, BadRequestException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, ServerlessApplicationRepositoryException
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()
createCloudFormationTemplateRequest
- A Consumer
that will call methods on CreateCloudFormationTemplateRequest.Builder
to create
a request.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.AwsServiceException
default DeleteApplicationResponse deleteApplication(DeleteApplicationRequest deleteApplicationRequest) throws BadRequestException, InternalServerErrorException, ForbiddenException, NotFoundException, TooManyRequestsException, ConflictException, AwsServiceException, SdkClientException, ServerlessApplicationRepositoryException
Deletes the specified application.
deleteApplicationRequest
- 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.AwsServiceException
default DeleteApplicationResponse deleteApplication(Consumer<DeleteApplicationRequest.Builder> deleteApplicationRequest) throws BadRequestException, InternalServerErrorException, ForbiddenException, NotFoundException, TooManyRequestsException, ConflictException, AwsServiceException, SdkClientException, ServerlessApplicationRepositoryException
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()
deleteApplicationRequest
- A Consumer
that will call methods on DeleteApplicationRequest.Builder
to create a request.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.AwsServiceException
default GetApplicationResponse getApplication(GetApplicationRequest getApplicationRequest) throws NotFoundException, TooManyRequestsException, BadRequestException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, ServerlessApplicationRepositoryException
Gets the specified application.
getApplicationRequest
- 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.AwsServiceException
default GetApplicationResponse getApplication(Consumer<GetApplicationRequest.Builder> getApplicationRequest) throws NotFoundException, TooManyRequestsException, BadRequestException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, ServerlessApplicationRepositoryException
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()
getApplicationRequest
- A Consumer
that will call methods on GetApplicationRequest.Builder
to create a request.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.AwsServiceException
default GetApplicationPolicyResponse getApplicationPolicy(GetApplicationPolicyRequest getApplicationPolicyRequest) throws NotFoundException, TooManyRequestsException, BadRequestException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, ServerlessApplicationRepositoryException
Retrieves the policy for the application.
getApplicationPolicyRequest
- 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.AwsServiceException
default GetApplicationPolicyResponse getApplicationPolicy(Consumer<GetApplicationPolicyRequest.Builder> getApplicationPolicyRequest) throws NotFoundException, TooManyRequestsException, BadRequestException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, ServerlessApplicationRepositoryException
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()
getApplicationPolicyRequest
- A Consumer
that will call methods on GetApplicationPolicyRequest.Builder
to create a
request.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.AwsServiceException
default GetCloudFormationTemplateResponse getCloudFormationTemplate(GetCloudFormationTemplateRequest getCloudFormationTemplateRequest) throws NotFoundException, TooManyRequestsException, BadRequestException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, ServerlessApplicationRepositoryException
Gets the specified AWS CloudFormation template.
getCloudFormationTemplateRequest
- 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.AwsServiceException
default GetCloudFormationTemplateResponse getCloudFormationTemplate(Consumer<GetCloudFormationTemplateRequest.Builder> getCloudFormationTemplateRequest) throws NotFoundException, TooManyRequestsException, BadRequestException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, ServerlessApplicationRepositoryException
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()
getCloudFormationTemplateRequest
- A Consumer
that will call methods on GetCloudFormationTemplateRequest.Builder
to create a
request.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.AwsServiceException
default ListApplicationDependenciesResponse listApplicationDependencies(ListApplicationDependenciesRequest listApplicationDependenciesRequest) throws NotFoundException, TooManyRequestsException, BadRequestException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, ServerlessApplicationRepositoryException
Retrieves the list of applications nested in the containing application.
listApplicationDependenciesRequest
- 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.AwsServiceException
default ListApplicationDependenciesResponse listApplicationDependencies(Consumer<ListApplicationDependenciesRequest.Builder> listApplicationDependenciesRequest) throws NotFoundException, TooManyRequestsException, BadRequestException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, ServerlessApplicationRepositoryException
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()
listApplicationDependenciesRequest
- A Consumer
that will call methods on ListApplicationDependenciesRequest.Builder
to create
a request.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.AwsServiceException
default ListApplicationDependenciesIterable listApplicationDependenciesPaginator(ListApplicationDependenciesRequest listApplicationDependenciesRequest) throws NotFoundException, TooManyRequestsException, BadRequestException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, ServerlessApplicationRepositoryException
Retrieves the list of applications nested in the containing application.
This is a variant of
listApplicationDependencies(software.amazon.awssdk.services.serverlessapplicationrepository.model.ListApplicationDependenciesRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.serverlessapplicationrepository.paginators.ListApplicationDependenciesIterable responses = client.listApplicationDependenciesPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{ @code software.amazon.awssdk.services.serverlessapplicationrepository.paginators.ListApplicationDependenciesIterable responses = client .listApplicationDependenciesPaginator(request); for (software.amazon.awssdk.services.serverlessapplicationrepository.model.ListApplicationDependenciesResponse response : responses) { // do something; } }3) Use iterator directly
software.amazon.awssdk.services.serverlessapplicationrepository.paginators.ListApplicationDependenciesIterable responses = client.listApplicationDependenciesPaginator(request);
responses.iterator().forEachRemaining(....);
Note: If you prefer to have control on service calls, use the
listApplicationDependencies(software.amazon.awssdk.services.serverlessapplicationrepository.model.ListApplicationDependenciesRequest)
operation.
listApplicationDependenciesRequest
- 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.AwsServiceException
default ListApplicationDependenciesIterable listApplicationDependenciesPaginator(Consumer<ListApplicationDependenciesRequest.Builder> listApplicationDependenciesRequest) throws NotFoundException, TooManyRequestsException, BadRequestException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, ServerlessApplicationRepositoryException
Retrieves the list of applications nested in the containing application.
This is a variant of
listApplicationDependencies(software.amazon.awssdk.services.serverlessapplicationrepository.model.ListApplicationDependenciesRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.serverlessapplicationrepository.paginators.ListApplicationDependenciesIterable responses = client.listApplicationDependenciesPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{ @code software.amazon.awssdk.services.serverlessapplicationrepository.paginators.ListApplicationDependenciesIterable responses = client .listApplicationDependenciesPaginator(request); for (software.amazon.awssdk.services.serverlessapplicationrepository.model.ListApplicationDependenciesResponse response : responses) { // do something; } }3) Use iterator directly
software.amazon.awssdk.services.serverlessapplicationrepository.paginators.ListApplicationDependenciesIterable responses = client.listApplicationDependenciesPaginator(request);
responses.iterator().forEachRemaining(....);
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()
listApplicationDependenciesRequest
- A Consumer
that will call methods on ListApplicationDependenciesRequest.Builder
to create
a request.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.AwsServiceException
default ListApplicationVersionsResponse listApplicationVersions(ListApplicationVersionsRequest listApplicationVersionsRequest) throws NotFoundException, TooManyRequestsException, BadRequestException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, ServerlessApplicationRepositoryException
Lists versions for the specified application.
listApplicationVersionsRequest
- 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.AwsServiceException
default ListApplicationVersionsResponse listApplicationVersions(Consumer<ListApplicationVersionsRequest.Builder> listApplicationVersionsRequest) throws NotFoundException, TooManyRequestsException, BadRequestException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, ServerlessApplicationRepositoryException
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()
listApplicationVersionsRequest
- A Consumer
that will call methods on ListApplicationVersionsRequest.Builder
to create a
request.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.AwsServiceException
default ListApplicationVersionsIterable listApplicationVersionsPaginator(ListApplicationVersionsRequest listApplicationVersionsRequest) throws NotFoundException, TooManyRequestsException, BadRequestException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, ServerlessApplicationRepositoryException
Lists versions for the specified application.
This is a variant of
listApplicationVersions(software.amazon.awssdk.services.serverlessapplicationrepository.model.ListApplicationVersionsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.serverlessapplicationrepository.paginators.ListApplicationVersionsIterable responses = client.listApplicationVersionsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{ @code software.amazon.awssdk.services.serverlessapplicationrepository.paginators.ListApplicationVersionsIterable responses = client .listApplicationVersionsPaginator(request); for (software.amazon.awssdk.services.serverlessapplicationrepository.model.ListApplicationVersionsResponse response : responses) { // do something; } }3) Use iterator directly
software.amazon.awssdk.services.serverlessapplicationrepository.paginators.ListApplicationVersionsIterable responses = client.listApplicationVersionsPaginator(request);
responses.iterator().forEachRemaining(....);
Note: If you prefer to have control on service calls, use the
listApplicationVersions(software.amazon.awssdk.services.serverlessapplicationrepository.model.ListApplicationVersionsRequest)
operation.
listApplicationVersionsRequest
- 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.AwsServiceException
default ListApplicationVersionsIterable listApplicationVersionsPaginator(Consumer<ListApplicationVersionsRequest.Builder> listApplicationVersionsRequest) throws NotFoundException, TooManyRequestsException, BadRequestException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, ServerlessApplicationRepositoryException
Lists versions for the specified application.
This is a variant of
listApplicationVersions(software.amazon.awssdk.services.serverlessapplicationrepository.model.ListApplicationVersionsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.serverlessapplicationrepository.paginators.ListApplicationVersionsIterable responses = client.listApplicationVersionsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{ @code software.amazon.awssdk.services.serverlessapplicationrepository.paginators.ListApplicationVersionsIterable responses = client .listApplicationVersionsPaginator(request); for (software.amazon.awssdk.services.serverlessapplicationrepository.model.ListApplicationVersionsResponse response : responses) { // do something; } }3) Use iterator directly
software.amazon.awssdk.services.serverlessapplicationrepository.paginators.ListApplicationVersionsIterable responses = client.listApplicationVersionsPaginator(request);
responses.iterator().forEachRemaining(....);
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()
listApplicationVersionsRequest
- A Consumer
that will call methods on ListApplicationVersionsRequest.Builder
to create a
request.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.AwsServiceException
default ListApplicationsResponse listApplications() throws NotFoundException, BadRequestException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, ServerlessApplicationRepositoryException
Lists applications owned by the requester.
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.AwsServiceException
listApplications(ListApplicationsRequest)
,
AWS API Documentationdefault ListApplicationsResponse listApplications(ListApplicationsRequest listApplicationsRequest) throws NotFoundException, BadRequestException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, ServerlessApplicationRepositoryException
Lists applications owned by the requester.
listApplicationsRequest
- 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.AwsServiceException
default ListApplicationsResponse listApplications(Consumer<ListApplicationsRequest.Builder> listApplicationsRequest) throws NotFoundException, BadRequestException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, ServerlessApplicationRepositoryException
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()
listApplicationsRequest
- A Consumer
that will call methods on ListApplicationsRequest.Builder
to create a request.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.AwsServiceException
default ListApplicationsIterable listApplicationsPaginator() throws NotFoundException, BadRequestException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, ServerlessApplicationRepositoryException
Lists applications owned by the requester.
This is a variant of
listApplications(software.amazon.awssdk.services.serverlessapplicationrepository.model.ListApplicationsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.serverlessapplicationrepository.paginators.ListApplicationsIterable responses = client.listApplicationsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{ @code software.amazon.awssdk.services.serverlessapplicationrepository.paginators.ListApplicationsIterable responses = client .listApplicationsPaginator(request); for (software.amazon.awssdk.services.serverlessapplicationrepository.model.ListApplicationsResponse response : responses) { // do something; } }3) Use iterator directly
software.amazon.awssdk.services.serverlessapplicationrepository.paginators.ListApplicationsIterable responses = client.listApplicationsPaginator(request);
responses.iterator().forEachRemaining(....);
Note: If you prefer to have control on service calls, use the
listApplications(software.amazon.awssdk.services.serverlessapplicationrepository.model.ListApplicationsRequest)
operation.
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.AwsServiceException
listApplicationsPaginator(ListApplicationsRequest)
,
AWS API Documentationdefault ListApplicationsIterable listApplicationsPaginator(ListApplicationsRequest listApplicationsRequest) throws NotFoundException, BadRequestException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, ServerlessApplicationRepositoryException
Lists applications owned by the requester.
This is a variant of
listApplications(software.amazon.awssdk.services.serverlessapplicationrepository.model.ListApplicationsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.serverlessapplicationrepository.paginators.ListApplicationsIterable responses = client.listApplicationsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{ @code software.amazon.awssdk.services.serverlessapplicationrepository.paginators.ListApplicationsIterable responses = client .listApplicationsPaginator(request); for (software.amazon.awssdk.services.serverlessapplicationrepository.model.ListApplicationsResponse response : responses) { // do something; } }3) Use iterator directly
software.amazon.awssdk.services.serverlessapplicationrepository.paginators.ListApplicationsIterable responses = client.listApplicationsPaginator(request);
responses.iterator().forEachRemaining(....);
Note: If you prefer to have control on service calls, use the
listApplications(software.amazon.awssdk.services.serverlessapplicationrepository.model.ListApplicationsRequest)
operation.
listApplicationsRequest
- 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.AwsServiceException
default ListApplicationsIterable listApplicationsPaginator(Consumer<ListApplicationsRequest.Builder> listApplicationsRequest) throws NotFoundException, BadRequestException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, ServerlessApplicationRepositoryException
Lists applications owned by the requester.
This is a variant of
listApplications(software.amazon.awssdk.services.serverlessapplicationrepository.model.ListApplicationsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.serverlessapplicationrepository.paginators.ListApplicationsIterable responses = client.listApplicationsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{ @code software.amazon.awssdk.services.serverlessapplicationrepository.paginators.ListApplicationsIterable responses = client .listApplicationsPaginator(request); for (software.amazon.awssdk.services.serverlessapplicationrepository.model.ListApplicationsResponse response : responses) { // do something; } }3) Use iterator directly
software.amazon.awssdk.services.serverlessapplicationrepository.paginators.ListApplicationsIterable responses = client.listApplicationsPaginator(request);
responses.iterator().forEachRemaining(....);
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()
listApplicationsRequest
- A Consumer
that will call methods on ListApplicationsRequest.Builder
to create a request.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.AwsServiceException
default PutApplicationPolicyResponse putApplicationPolicy(PutApplicationPolicyRequest putApplicationPolicyRequest) throws NotFoundException, TooManyRequestsException, BadRequestException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, ServerlessApplicationRepositoryException
Sets the permission policy for an application. For the list of actions supported for this operation, see Application Permissions .
putApplicationPolicyRequest
- 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.AwsServiceException
default PutApplicationPolicyResponse putApplicationPolicy(Consumer<PutApplicationPolicyRequest.Builder> putApplicationPolicyRequest) throws NotFoundException, TooManyRequestsException, BadRequestException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, ServerlessApplicationRepositoryException
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()
putApplicationPolicyRequest
- A Consumer
that will call methods on PutApplicationPolicyRequest.Builder
to create a
request.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.AwsServiceException
default UpdateApplicationResponse updateApplication(UpdateApplicationRequest updateApplicationRequest) throws BadRequestException, InternalServerErrorException, ForbiddenException, NotFoundException, TooManyRequestsException, ConflictException, AwsServiceException, SdkClientException, ServerlessApplicationRepositoryException
Updates the specified application.
updateApplicationRequest
- 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.AwsServiceException
default UpdateApplicationResponse updateApplication(Consumer<UpdateApplicationRequest.Builder> updateApplicationRequest) throws BadRequestException, InternalServerErrorException, ForbiddenException, NotFoundException, TooManyRequestsException, ConflictException, AwsServiceException, SdkClientException, ServerlessApplicationRepositoryException
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()
updateApplicationRequest
- A Consumer
that will call methods on UpdateApplicationRequest.Builder
to create a request.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.AwsServiceException
static ServiceMetadata serviceMetadata()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.