Interface ServerlessApplicationRepositoryClient
- All Superinterfaces:
AutoCloseable,AwsClient,SdkAutoCloseable,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.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringValue 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 aServerlessApplicationRepositoryClient.create()Create aServerlessApplicationRepositoryClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.default CreateApplicationResponsecreateApplication(Consumer<CreateApplicationRequest.Builder> createApplicationRequest) Creates an application, optionally including an AWS SAM file to create the first application version in the same call.default CreateApplicationResponsecreateApplication(CreateApplicationRequest createApplicationRequest) Creates an application, optionally including an AWS SAM file to create the first application version in the same call.default CreateApplicationVersionResponsecreateApplicationVersion(Consumer<CreateApplicationVersionRequest.Builder> createApplicationVersionRequest) Creates an application version.default CreateApplicationVersionResponsecreateApplicationVersion(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.default DeleteApplicationResponsedeleteApplication(Consumer<DeleteApplicationRequest.Builder> deleteApplicationRequest) Deletes the specified application.default DeleteApplicationResponsedeleteApplication(DeleteApplicationRequest deleteApplicationRequest) Deletes the specified application.default GetApplicationResponsegetApplication(Consumer<GetApplicationRequest.Builder> getApplicationRequest) Gets the specified application.default GetApplicationResponsegetApplication(GetApplicationRequest getApplicationRequest) Gets the specified application.default GetApplicationPolicyResponsegetApplicationPolicy(Consumer<GetApplicationPolicyRequest.Builder> getApplicationPolicyRequest) Retrieves the policy for the application.default GetApplicationPolicyResponsegetApplicationPolicy(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) default ListApplicationsResponseLists applications owned by the requester.default ListApplicationsResponselistApplications(Consumer<ListApplicationsRequest.Builder> listApplicationsRequest) Lists applications owned by the requester.default ListApplicationsResponselistApplications(ListApplicationsRequest listApplicationsRequest) Lists applications owned by the requester.default ListApplicationsIterableThis is a variant oflistApplications(software.amazon.awssdk.services.serverlessapplicationrepository.model.ListApplicationsRequest)operation.default ListApplicationsIterablelistApplicationsPaginator(Consumer<ListApplicationsRequest.Builder> listApplicationsRequest) This is a variant oflistApplications(software.amazon.awssdk.services.serverlessapplicationrepository.model.ListApplicationsRequest)operation.default ListApplicationsIterablelistApplicationsPaginator(ListApplicationsRequest listApplicationsRequest) This is a variant oflistApplications(software.amazon.awssdk.services.serverlessapplicationrepository.model.ListApplicationsRequest)operation.default ListApplicationVersionsResponselistApplicationVersions(Consumer<ListApplicationVersionsRequest.Builder> listApplicationVersionsRequest) Lists versions for the specified application.default ListApplicationVersionsResponselistApplicationVersions(ListApplicationVersionsRequest listApplicationVersionsRequest) Lists versions for the specified application.default ListApplicationVersionsIterablelistApplicationVersionsPaginator(Consumer<ListApplicationVersionsRequest.Builder> listApplicationVersionsRequest) This is a variant oflistApplicationVersions(software.amazon.awssdk.services.serverlessapplicationrepository.model.ListApplicationVersionsRequest)operation.default ListApplicationVersionsIterablelistApplicationVersionsPaginator(ListApplicationVersionsRequest listApplicationVersionsRequest) This is a variant oflistApplicationVersions(software.amazon.awssdk.services.serverlessapplicationrepository.model.ListApplicationVersionsRequest)operation.default PutApplicationPolicyResponseputApplicationPolicy(Consumer<PutApplicationPolicyRequest.Builder> putApplicationPolicyRequest) Sets the permission policy for an application.default PutApplicationPolicyResponseputApplicationPolicy(PutApplicationPolicyRequest putApplicationPolicyRequest) Sets the permission policy for an application.The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationstatic ServiceMetadatadefault UnshareApplicationResponseunshareApplication(Consumer<UnshareApplicationRequest.Builder> unshareApplicationRequest) Unshares an application from an AWS Organization.default UnshareApplicationResponseunshareApplication(UnshareApplicationRequest unshareApplicationRequest) Unshares an application from an AWS Organization.default UpdateApplicationResponseupdateApplication(Consumer<UpdateApplicationRequest.Builder> updateApplicationRequest) Updates the specified application.default UpdateApplicationResponseupdateApplication(UpdateApplicationRequest updateApplicationRequest) Updates the specified application.Methods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
closeMethods inherited from interface software.amazon.awssdk.core.SdkClient
serviceName
-
Field Details
-
SERVICE_NAME
- See Also:
-
SERVICE_METADATA_ID
Value for looking up the service's metadata from theServiceMetadataProvider.- See Also:
-
-
Method Details
-
createApplication
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.
- Parameters:
createApplicationRequest-- Returns:
- Result of the CreateApplication operation returned by the service.
- See Also:
-
createApplication
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.Builderavoiding the need to create one manually viaCreateApplicationRequest.builder()- Parameters:
createApplicationRequest- AConsumerthat will call methods onCreateApplicationRequest.Builderto create a request.- Returns:
- Result of the CreateApplication operation returned by the service.
- See Also:
-
createApplicationVersion
default CreateApplicationVersionResponse createApplicationVersion(CreateApplicationVersionRequest createApplicationVersionRequest) throws TooManyRequestsException, BadRequestException, InternalServerErrorException, ConflictException, ForbiddenException, AwsServiceException, SdkClientException, ServerlessApplicationRepositoryException Creates an application version.
- Parameters:
createApplicationVersionRequest-- Returns:
- Result of the CreateApplicationVersion operation returned by the service.
- See Also:
-
createApplicationVersion
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.Builderavoiding the need to create one manually viaCreateApplicationVersionRequest.builder()- Parameters:
createApplicationVersionRequest- AConsumerthat will call methods onCreateApplicationVersionRequest.Builderto create a request.- Returns:
- Result of the CreateApplicationVersion operation returned by the service.
- See Also:
-
createCloudFormationChangeSet
default CreateCloudFormationChangeSetResponse createCloudFormationChangeSet(CreateCloudFormationChangeSetRequest createCloudFormationChangeSetRequest) throws TooManyRequestsException, BadRequestException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, ServerlessApplicationRepositoryException Creates an AWS CloudFormation change set for the given application.
- Parameters:
createCloudFormationChangeSetRequest-- Returns:
- Result of the CreateCloudFormationChangeSet operation returned by the service.
- See Also:
-
createCloudFormationChangeSet
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.Builderavoiding the need to create one manually viaCreateCloudFormationChangeSetRequest.builder()- Parameters:
createCloudFormationChangeSetRequest- AConsumerthat will call methods onCreateCloudFormationChangeSetRequest.Builderto create a request.- Returns:
- Result of the CreateCloudFormationChangeSet operation returned by the service.
- See Also:
-
createCloudFormationTemplate
default CreateCloudFormationTemplateResponse createCloudFormationTemplate(CreateCloudFormationTemplateRequest createCloudFormationTemplateRequest) throws NotFoundException, TooManyRequestsException, BadRequestException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, ServerlessApplicationRepositoryException Creates an AWS CloudFormation template.
- Parameters:
createCloudFormationTemplateRequest-- Returns:
- Result of the CreateCloudFormationTemplate operation returned by the service.
- See Also:
-
createCloudFormationTemplate
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.Builderavoiding the need to create one manually viaCreateCloudFormationTemplateRequest.builder()- Parameters:
createCloudFormationTemplateRequest- AConsumerthat will call methods onCreateCloudFormationTemplateRequest.Builderto create a request.- Returns:
- Result of the CreateCloudFormationTemplate operation returned by the service.
- See Also:
-
deleteApplication
default DeleteApplicationResponse deleteApplication(DeleteApplicationRequest deleteApplicationRequest) throws BadRequestException, InternalServerErrorException, ForbiddenException, NotFoundException, TooManyRequestsException, ConflictException, AwsServiceException, SdkClientException, ServerlessApplicationRepositoryException Deletes the specified application.
- Parameters:
deleteApplicationRequest-- Returns:
- Result of the DeleteApplication operation returned by the service.
- See Also:
-
deleteApplication
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.Builderavoiding the need to create one manually viaDeleteApplicationRequest.builder()- Parameters:
deleteApplicationRequest- AConsumerthat will call methods onDeleteApplicationRequest.Builderto create a request.- Returns:
- Result of the DeleteApplication operation returned by the service.
- See Also:
-
getApplication
default GetApplicationResponse getApplication(GetApplicationRequest getApplicationRequest) throws NotFoundException, TooManyRequestsException, BadRequestException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, ServerlessApplicationRepositoryException Gets the specified application.
- Parameters:
getApplicationRequest-- Returns:
- Result of the GetApplication operation returned by the service.
- See Also:
-
getApplication
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.Builderavoiding the need to create one manually viaGetApplicationRequest.builder()- Parameters:
getApplicationRequest- AConsumerthat will call methods onGetApplicationRequest.Builderto create a request.- Returns:
- Result of the GetApplication operation returned by the service.
- See Also:
-
getApplicationPolicy
default GetApplicationPolicyResponse getApplicationPolicy(GetApplicationPolicyRequest getApplicationPolicyRequest) throws NotFoundException, TooManyRequestsException, BadRequestException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, ServerlessApplicationRepositoryException Retrieves the policy for the application.
- Parameters:
getApplicationPolicyRequest-- Returns:
- Result of the GetApplicationPolicy operation returned by the service.
- See Also:
-
getApplicationPolicy
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.Builderavoiding the need to create one manually viaGetApplicationPolicyRequest.builder()- Parameters:
getApplicationPolicyRequest- AConsumerthat will call methods onGetApplicationPolicyRequest.Builderto create a request.- Returns:
- Result of the GetApplicationPolicy operation returned by the service.
- See Also:
-
getCloudFormationTemplate
default GetCloudFormationTemplateResponse getCloudFormationTemplate(GetCloudFormationTemplateRequest getCloudFormationTemplateRequest) throws NotFoundException, TooManyRequestsException, BadRequestException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, ServerlessApplicationRepositoryException Gets the specified AWS CloudFormation template.
- Parameters:
getCloudFormationTemplateRequest-- Returns:
- Result of the GetCloudFormationTemplate operation returned by the service.
- See Also:
-
getCloudFormationTemplate
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.Builderavoiding the need to create one manually viaGetCloudFormationTemplateRequest.builder()- Parameters:
getCloudFormationTemplateRequest- AConsumerthat will call methods onGetCloudFormationTemplateRequest.Builderto create a request.- Returns:
- Result of the GetCloudFormationTemplate operation returned by the service.
- See Also:
-
listApplicationDependencies
default ListApplicationDependenciesResponse listApplicationDependencies(ListApplicationDependenciesRequest listApplicationDependenciesRequest) throws NotFoundException, TooManyRequestsException, BadRequestException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, ServerlessApplicationRepositoryException Retrieves the list of applications nested in the containing application.
- Parameters:
listApplicationDependenciesRequest-- Returns:
- Result of the ListApplicationDependencies operation returned by the service.
- See Also:
-
listApplicationDependencies
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.Builderavoiding the need to create one manually viaListApplicationDependenciesRequest.builder()- Parameters:
listApplicationDependenciesRequest- AConsumerthat will call methods onListApplicationDependenciesRequest.Builderto create a request.- Returns:
- Result of the ListApplicationDependencies operation returned by the service.
- See Also:
-
listApplicationDependenciesPaginator
default ListApplicationDependenciesIterable listApplicationDependenciesPaginator(ListApplicationDependenciesRequest listApplicationDependenciesRequest) throws NotFoundException, TooManyRequestsException, BadRequestException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, ServerlessApplicationRepositoryException 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
2) Using For loopsoftware.amazon.awssdk.services.serverlessapplicationrepository.paginators.ListApplicationDependenciesIterable responses = client.listApplicationDependenciesPaginator(request); responses.stream().forEach(....);{ @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 directlysoftware.amazon.awssdk.services.serverlessapplicationrepository.paginators.ListApplicationDependenciesIterable responses = client.listApplicationDependenciesPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listApplicationDependencies(software.amazon.awssdk.services.serverlessapplicationrepository.model.ListApplicationDependenciesRequest)operation.- Parameters:
listApplicationDependenciesRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listApplicationDependenciesPaginator
default ListApplicationDependenciesIterable listApplicationDependenciesPaginator(Consumer<ListApplicationDependenciesRequest.Builder> listApplicationDependenciesRequest) throws NotFoundException, TooManyRequestsException, BadRequestException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, ServerlessApplicationRepositoryException 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
2) Using For loopsoftware.amazon.awssdk.services.serverlessapplicationrepository.paginators.ListApplicationDependenciesIterable responses = client.listApplicationDependenciesPaginator(request); responses.stream().forEach(....);{ @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 directlysoftware.amazon.awssdk.services.serverlessapplicationrepository.paginators.ListApplicationDependenciesIterable responses = client.listApplicationDependenciesPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listApplicationDependencies(software.amazon.awssdk.services.serverlessapplicationrepository.model.ListApplicationDependenciesRequest)operation.
This is a convenience which creates an instance of the
ListApplicationDependenciesRequest.Builderavoiding the need to create one manually viaListApplicationDependenciesRequest.builder()- Parameters:
listApplicationDependenciesRequest- AConsumerthat will call methods onListApplicationDependenciesRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listApplicationVersions
default ListApplicationVersionsResponse listApplicationVersions(ListApplicationVersionsRequest listApplicationVersionsRequest) throws NotFoundException, TooManyRequestsException, BadRequestException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, ServerlessApplicationRepositoryException Lists versions for the specified application.
- Parameters:
listApplicationVersionsRequest-- Returns:
- Result of the ListApplicationVersions operation returned by the service.
- See Also:
-
listApplicationVersions
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.Builderavoiding the need to create one manually viaListApplicationVersionsRequest.builder()- Parameters:
listApplicationVersionsRequest- AConsumerthat will call methods onListApplicationVersionsRequest.Builderto create a request.- Returns:
- Result of the ListApplicationVersions operation returned by the service.
- See Also:
-
listApplicationVersionsPaginator
default ListApplicationVersionsIterable listApplicationVersionsPaginator(ListApplicationVersionsRequest listApplicationVersionsRequest) throws NotFoundException, TooManyRequestsException, BadRequestException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, ServerlessApplicationRepositoryException 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
2) Using For loopsoftware.amazon.awssdk.services.serverlessapplicationrepository.paginators.ListApplicationVersionsIterable responses = client.listApplicationVersionsPaginator(request); responses.stream().forEach(....);{ @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 directlysoftware.amazon.awssdk.services.serverlessapplicationrepository.paginators.ListApplicationVersionsIterable responses = client.listApplicationVersionsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listApplicationVersions(software.amazon.awssdk.services.serverlessapplicationrepository.model.ListApplicationVersionsRequest)operation.- Parameters:
listApplicationVersionsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listApplicationVersionsPaginator
default ListApplicationVersionsIterable listApplicationVersionsPaginator(Consumer<ListApplicationVersionsRequest.Builder> listApplicationVersionsRequest) throws NotFoundException, TooManyRequestsException, BadRequestException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, ServerlessApplicationRepositoryException 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
2) Using For loopsoftware.amazon.awssdk.services.serverlessapplicationrepository.paginators.ListApplicationVersionsIterable responses = client.listApplicationVersionsPaginator(request); responses.stream().forEach(....);{ @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 directlysoftware.amazon.awssdk.services.serverlessapplicationrepository.paginators.ListApplicationVersionsIterable responses = client.listApplicationVersionsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listApplicationVersions(software.amazon.awssdk.services.serverlessapplicationrepository.model.ListApplicationVersionsRequest)operation.
This is a convenience which creates an instance of the
ListApplicationVersionsRequest.Builderavoiding the need to create one manually viaListApplicationVersionsRequest.builder()- Parameters:
listApplicationVersionsRequest- AConsumerthat will call methods onListApplicationVersionsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listApplications
default ListApplicationsResponse listApplications(ListApplicationsRequest listApplicationsRequest) throws NotFoundException, BadRequestException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, ServerlessApplicationRepositoryException Lists applications owned by the requester.
- Parameters:
listApplicationsRequest-- Returns:
- Result of the ListApplications operation returned by the service.
- See Also:
-
listApplications
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.Builderavoiding the need to create one manually viaListApplicationsRequest.builder()- Parameters:
listApplicationsRequest- AConsumerthat will call methods onListApplicationsRequest.Builderto create a request.- Returns:
- Result of the ListApplications operation returned by the service.
- See Also:
-
listApplications
default ListApplicationsResponse listApplications() throws NotFoundException, BadRequestException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, ServerlessApplicationRepositoryExceptionLists applications owned by the requester.
- Returns:
- Result of the ListApplications operation returned by the service.
- See Also:
-
listApplicationsPaginator
default ListApplicationsIterable listApplicationsPaginator() throws NotFoundException, BadRequestException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, ServerlessApplicationRepositoryExceptionThis 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
2) Using For loopsoftware.amazon.awssdk.services.serverlessapplicationrepository.paginators.ListApplicationsIterable responses = client.listApplicationsPaginator(request); responses.stream().forEach(....);{ @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 directlysoftware.amazon.awssdk.services.serverlessapplicationrepository.paginators.ListApplicationsIterable responses = client.listApplicationsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listApplications(software.amazon.awssdk.services.serverlessapplicationrepository.model.ListApplicationsRequest)operation.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listApplicationsPaginator
default ListApplicationsIterable listApplicationsPaginator(ListApplicationsRequest listApplicationsRequest) throws NotFoundException, BadRequestException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, ServerlessApplicationRepositoryException 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
2) Using For loopsoftware.amazon.awssdk.services.serverlessapplicationrepository.paginators.ListApplicationsIterable responses = client.listApplicationsPaginator(request); responses.stream().forEach(....);{ @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 directlysoftware.amazon.awssdk.services.serverlessapplicationrepository.paginators.ListApplicationsIterable responses = client.listApplicationsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listApplications(software.amazon.awssdk.services.serverlessapplicationrepository.model.ListApplicationsRequest)operation.- Parameters:
listApplicationsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listApplicationsPaginator
default ListApplicationsIterable listApplicationsPaginator(Consumer<ListApplicationsRequest.Builder> listApplicationsRequest) throws NotFoundException, BadRequestException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, ServerlessApplicationRepositoryException 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
2) Using For loopsoftware.amazon.awssdk.services.serverlessapplicationrepository.paginators.ListApplicationsIterable responses = client.listApplicationsPaginator(request); responses.stream().forEach(....);{ @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 directlysoftware.amazon.awssdk.services.serverlessapplicationrepository.paginators.ListApplicationsIterable responses = client.listApplicationsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listApplications(software.amazon.awssdk.services.serverlessapplicationrepository.model.ListApplicationsRequest)operation.
This is a convenience which creates an instance of the
ListApplicationsRequest.Builderavoiding the need to create one manually viaListApplicationsRequest.builder()- Parameters:
listApplicationsRequest- AConsumerthat will call methods onListApplicationsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
putApplicationPolicy
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 .
- Parameters:
putApplicationPolicyRequest-- Returns:
- Result of the PutApplicationPolicy operation returned by the service.
- See Also:
-
putApplicationPolicy
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.Builderavoiding the need to create one manually viaPutApplicationPolicyRequest.builder()- Parameters:
putApplicationPolicyRequest- AConsumerthat will call methods onPutApplicationPolicyRequest.Builderto create a request.- Returns:
- Result of the PutApplicationPolicy operation returned by the service.
- See Also:
-
updateApplication
default UpdateApplicationResponse updateApplication(UpdateApplicationRequest updateApplicationRequest) throws BadRequestException, InternalServerErrorException, ForbiddenException, NotFoundException, TooManyRequestsException, ConflictException, AwsServiceException, SdkClientException, ServerlessApplicationRepositoryException Updates the specified application.
- Parameters:
updateApplicationRequest-- Returns:
- Result of the UpdateApplication operation returned by the service.
- See Also:
-
updateApplication
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.Builderavoiding the need to create one manually viaUpdateApplicationRequest.builder()- Parameters:
updateApplicationRequest- AConsumerthat will call methods onUpdateApplicationRequest.Builderto create a request.- Returns:
- Result of the UpdateApplication operation returned by the service.
- See Also:
-
create
Create aServerlessApplicationRepositoryClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider. -
builder
Create a builder that can be used to configure and create aServerlessApplicationRepositoryClient. -
serviceMetadata
-
serviceClientConfiguration
Description copied from interface:SdkClientThe SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfiguration- Specified by:
serviceClientConfigurationin interfaceAwsClient- Specified by:
serviceClientConfigurationin interfaceSdkClient- Returns:
- SdkServiceClientConfiguration
-