Interface ServerlessApplicationRepositoryClient
-
- All Superinterfaces:
AutoCloseable,AwsClient,SdkAutoCloseable,SdkClient
@Generated("software.amazon.awssdk:codegen") @ThreadSafe public interface ServerlessApplicationRepositoryClient extends AwsClient
Service client for accessing AWSServerlessApplicationRepository. This can be created using the staticbuilder()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
Fields Modifier and Type Field Description static StringSERVICE_METADATA_IDValue for looking up the service's metadata from theServiceMetadataProvider.static StringSERVICE_NAME
-
Method Summary
-
Methods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
close
-
Methods inherited from interface software.amazon.awssdk.core.SdkClient
serviceName
-
-
-
-
Field Detail
-
SERVICE_NAME
static final String SERVICE_NAME
- See Also:
- Constant Field Values
-
SERVICE_METADATA_ID
static final String SERVICE_METADATA_ID
Value for looking up the service's metadata from theServiceMetadataProvider.- See Also:
- Constant Field Values
-
-
Method Detail
-
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.
- Throws:
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- See Also:
- AWS API Documentation
-
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.
- Throws:
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- See Also:
- AWS API Documentation
-
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.
- Throws:
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- See Also:
- AWS API Documentation
-
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.
- Throws:
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- See Also:
- AWS API Documentation
-
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.
- Throws:
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- See Also:
- AWS API Documentation
-
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.
- Throws:
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- See Also:
- AWS API Documentation
-
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.
- Throws:
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- See Also:
- AWS API Documentation
-
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.
- Throws:
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- See Also:
- AWS API Documentation
-
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.
- Throws:
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- See Also:
- AWS API Documentation
-
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.
- Throws:
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- See Also:
- AWS API Documentation
-
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.
- Throws:
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- See Also:
- AWS API Documentation
-
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.
- Throws:
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- See Also:
- AWS API Documentation
-
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.
- Throws:
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- See Also:
- AWS API Documentation
-
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.
- Throws:
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- See Also:
- AWS API Documentation
-
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.
- Throws:
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- See Also:
- AWS API Documentation
-
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.
- Throws:
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- See Also:
- AWS API Documentation
-
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.
- Throws:
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- See Also:
- AWS API Documentation
-
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.
- Throws:
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- See Also:
- AWS API Documentation
-
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.
- Throws:
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- See Also:
- AWS API Documentation
-
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.
- Throws:
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- See Also:
- AWS API Documentation
-
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.
- Throws:
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- See Also:
- AWS API Documentation
-
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.
- Throws:
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- See Also:
- AWS API Documentation
-
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.
- Throws:
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- See Also:
- AWS API Documentation
-
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.
- Throws:
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- See Also:
- AWS API Documentation
-
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.
- Throws:
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- See Also:
- AWS API Documentation
-
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.
- Throws:
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- See Also:
- AWS API Documentation
-
listApplications
default ListApplicationsResponse listApplications() throws NotFoundException, BadRequestException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, ServerlessApplicationRepositoryException
Lists applications owned by the requester.
- Returns:
- Result of the ListApplications operation returned by the service.
- Throws:
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- See Also:
listApplications(ListApplicationsRequest), AWS API Documentation
-
listApplicationsPaginator
default ListApplicationsIterable listApplicationsPaginator() 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.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
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- See Also:
listApplicationsPaginator(ListApplicationsRequest), AWS API Documentation
-
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.
- Throws:
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- See Also:
- AWS API Documentation
-
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.
- Throws:
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- See Also:
- AWS API Documentation
-
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.
- Throws:
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- See Also:
- AWS API Documentation
-
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.
- Throws:
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- See Also:
- AWS API Documentation
-
unshareApplication
default UnshareApplicationResponse unshareApplication(UnshareApplicationRequest unshareApplicationRequest) throws NotFoundException, TooManyRequestsException, BadRequestException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, ServerlessApplicationRepositoryException
Unshares an application from an AWS Organization.
This operation can be called only from the organization's master account.
- Parameters:
unshareApplicationRequest-- Returns:
- Result of the UnshareApplication operation returned by the service.
- Throws:
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- See Also:
- AWS API Documentation
-
unshareApplication
default UnshareApplicationResponse unshareApplication(Consumer<UnshareApplicationRequest.Builder> unshareApplicationRequest) throws NotFoundException, TooManyRequestsException, BadRequestException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, ServerlessApplicationRepositoryException
Unshares an application from an AWS Organization.
This operation can be called only from the organization's master account.
This is a convenience which creates an instance of the
UnshareApplicationRequest.Builderavoiding the need to create one manually viaUnshareApplicationRequest.builder()- Parameters:
unshareApplicationRequest- AConsumerthat will call methods onUnshareApplicationRequest.Builderto create a request.- Returns:
- Result of the UnshareApplication operation returned by the service.
- Throws:
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- See Also:
- AWS API Documentation
-
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.
- Throws:
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- See Also:
- AWS API Documentation
-
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.
- Throws:
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- See Also:
- AWS API Documentation
-
create
static ServerlessApplicationRepositoryClient create()
Create aServerlessApplicationRepositoryClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.
-
builder
static ServerlessApplicationRepositoryClientBuilder builder()
Create a builder that can be used to configure and create aServerlessApplicationRepositoryClient.
-
serviceMetadata
static ServiceMetadata serviceMetadata()
-
serviceClientConfiguration
default ServerlessApplicationRepositoryServiceClientConfiguration serviceClientConfiguration()
- Specified by:
serviceClientConfigurationin interfaceAwsClient- Specified by:
serviceClientConfigurationin interfaceSdkClient
-
-