@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AWSServerlessApplicationRepositoryClient extends AmazonWebServiceClient implements AWSServerlessApplicationRepository
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.
LOGGING_AWS_REQUEST_METRIC
ENDPOINT_PREFIX
addRequestHandler, addRequestHandler, configureRegion, getClientConfiguration, getEndpointPrefix, getMonitoringListeners, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerOverride, getSignerRegionOverride, getTimeOffset, makeImmutable, removeRequestHandler, removeRequestHandler, setEndpoint, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, withEndpoint, withRegion, withRegion, withTimeOffset
public static AWSServerlessApplicationRepositoryClientBuilder builder()
public CreateApplicationResult createApplication(CreateApplicationRequest request)
Creates an application, optionally including an AWS SAM file to create the first application version in the same call.
createApplication
in interface AWSServerlessApplicationRepository
createApplicationRequest
- TooManyRequestsException
- The client is sending more than the allowed number of requests per unit of time.BadRequestException
- One of the parameters in the request is invalid.InternalServerErrorException
- The AWS Serverless Application Repository service encountered an internal error.ConflictException
- The resource already exists.ForbiddenException
- The client is not authenticated.public CreateApplicationVersionResult createApplicationVersion(CreateApplicationVersionRequest request)
Creates an application version.
createApplicationVersion
in interface AWSServerlessApplicationRepository
createApplicationVersionRequest
- TooManyRequestsException
- The client is sending more than the allowed number of requests per unit of time.BadRequestException
- One of the parameters in the request is invalid.InternalServerErrorException
- The AWS Serverless Application Repository service encountered an internal error.ConflictException
- The resource already exists.ForbiddenException
- The client is not authenticated.public CreateCloudFormationChangeSetResult createCloudFormationChangeSet(CreateCloudFormationChangeSetRequest request)
Creates an AWS CloudFormation change set for the given application.
createCloudFormationChangeSet
in interface AWSServerlessApplicationRepository
createCloudFormationChangeSetRequest
- TooManyRequestsException
- The client is sending more than the allowed number of requests per unit of time.BadRequestException
- One of the parameters in the request is invalid.InternalServerErrorException
- The AWS Serverless Application Repository service encountered an internal error.ForbiddenException
- The client is not authenticated.public CreateCloudFormationTemplateResult createCloudFormationTemplate(CreateCloudFormationTemplateRequest request)
Creates an AWS CloudFormation template.
createCloudFormationTemplate
in interface AWSServerlessApplicationRepository
createCloudFormationTemplateRequest
- NotFoundException
- The resource (for example, an access policy statement) specified in the request doesn't exist.TooManyRequestsException
- The client is sending more than the allowed number of requests per unit of time.BadRequestException
- One of the parameters in the request is invalid.InternalServerErrorException
- The AWS Serverless Application Repository service encountered an internal error.ForbiddenException
- The client is not authenticated.public DeleteApplicationResult deleteApplication(DeleteApplicationRequest request)
Deletes the specified application.
deleteApplication
in interface AWSServerlessApplicationRepository
deleteApplicationRequest
- BadRequestException
- One of the parameters in the request is invalid.InternalServerErrorException
- The AWS Serverless Application Repository service encountered an internal error.ForbiddenException
- The client is not authenticated.NotFoundException
- The resource (for example, an access policy statement) specified in the request doesn't exist.TooManyRequestsException
- The client is sending more than the allowed number of requests per unit of time.ConflictException
- The resource already exists.public GetApplicationResult getApplication(GetApplicationRequest request)
Gets the specified application.
getApplication
in interface AWSServerlessApplicationRepository
getApplicationRequest
- NotFoundException
- The resource (for example, an access policy statement) specified in the request doesn't exist.TooManyRequestsException
- The client is sending more than the allowed number of requests per unit of time.BadRequestException
- One of the parameters in the request is invalid.InternalServerErrorException
- The AWS Serverless Application Repository service encountered an internal error.ForbiddenException
- The client is not authenticated.public GetApplicationPolicyResult getApplicationPolicy(GetApplicationPolicyRequest request)
Retrieves the policy for the application.
getApplicationPolicy
in interface AWSServerlessApplicationRepository
getApplicationPolicyRequest
- NotFoundException
- The resource (for example, an access policy statement) specified in the request doesn't exist.TooManyRequestsException
- The client is sending more than the allowed number of requests per unit of time.BadRequestException
- One of the parameters in the request is invalid.InternalServerErrorException
- The AWS Serverless Application Repository service encountered an internal error.ForbiddenException
- The client is not authenticated.public GetCloudFormationTemplateResult getCloudFormationTemplate(GetCloudFormationTemplateRequest request)
Gets the specified AWS CloudFormation template.
getCloudFormationTemplate
in interface AWSServerlessApplicationRepository
getCloudFormationTemplateRequest
- NotFoundException
- The resource (for example, an access policy statement) specified in the request doesn't exist.TooManyRequestsException
- The client is sending more than the allowed number of requests per unit of time.BadRequestException
- One of the parameters in the request is invalid.InternalServerErrorException
- The AWS Serverless Application Repository service encountered an internal error.ForbiddenException
- The client is not authenticated.public ListApplicationDependenciesResult listApplicationDependencies(ListApplicationDependenciesRequest request)
Retrieves the list of applications nested in the containing application.
listApplicationDependencies
in interface AWSServerlessApplicationRepository
listApplicationDependenciesRequest
- NotFoundException
- The resource (for example, an access policy statement) specified in the request doesn't exist.TooManyRequestsException
- The client is sending more than the allowed number of requests per unit of time.BadRequestException
- One of the parameters in the request is invalid.InternalServerErrorException
- The AWS Serverless Application Repository service encountered an internal error.ForbiddenException
- The client is not authenticated.public ListApplicationVersionsResult listApplicationVersions(ListApplicationVersionsRequest request)
Lists versions for the specified application.
listApplicationVersions
in interface AWSServerlessApplicationRepository
listApplicationVersionsRequest
- NotFoundException
- The resource (for example, an access policy statement) specified in the request doesn't exist.TooManyRequestsException
- The client is sending more than the allowed number of requests per unit of time.BadRequestException
- One of the parameters in the request is invalid.InternalServerErrorException
- The AWS Serverless Application Repository service encountered an internal error.ForbiddenException
- The client is not authenticated.public ListApplicationsResult listApplications(ListApplicationsRequest request)
Lists applications owned by the requester.
listApplications
in interface AWSServerlessApplicationRepository
listApplicationsRequest
- NotFoundException
- The resource (for example, an access policy statement) specified in the request doesn't exist.BadRequestException
- One of the parameters in the request is invalid.InternalServerErrorException
- The AWS Serverless Application Repository service encountered an internal error.ForbiddenException
- The client is not authenticated.public PutApplicationPolicyResult putApplicationPolicy(PutApplicationPolicyRequest request)
Sets the permission policy for an application. For the list of actions supported for this operation, see Application Permissions .
putApplicationPolicy
in interface AWSServerlessApplicationRepository
putApplicationPolicyRequest
- NotFoundException
- The resource (for example, an access policy statement) specified in the request doesn't exist.TooManyRequestsException
- The client is sending more than the allowed number of requests per unit of time.BadRequestException
- One of the parameters in the request is invalid.InternalServerErrorException
- The AWS Serverless Application Repository service encountered an internal error.ForbiddenException
- The client is not authenticated.public UnshareApplicationResult unshareApplication(UnshareApplicationRequest request)
Unshares an application from an AWS Organization.
This operation can be called only from the organization's master account.
unshareApplication
in interface AWSServerlessApplicationRepository
unshareApplicationRequest
- 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.public UpdateApplicationResult updateApplication(UpdateApplicationRequest request)
Updates the specified application.
updateApplication
in interface AWSServerlessApplicationRepository
updateApplicationRequest
- BadRequestException
- One of the parameters in the request is invalid.InternalServerErrorException
- The AWS Serverless Application Repository service encountered an internal error.ForbiddenException
- The client is not authenticated.NotFoundException
- The resource (for example, an access policy statement) specified in the request doesn't exist.TooManyRequestsException
- The client is sending more than the allowed number of requests per unit of time.ConflictException
- The resource already exists.public ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request)
Response metadata is only cached for a limited period of time, so if you need to access this extra diagnostic information for an executed request, you should use this method to retrieve it as soon as possible after executing the request.
getCachedResponseMetadata
in interface AWSServerlessApplicationRepository
request
- The originally executed requestpublic void shutdown()
AmazonWebServiceClient
shutdown
in interface AWSServerlessApplicationRepository
shutdown
in class AmazonWebServiceClient