AWS.ServerlessApplicationRepository — AWS SDK for JavaScript (original) (raw)

We recommend that you migrate to AWS SDK for JavaScript v3. For dates, additional details, and information on how to migrate, please refer to the linked announcement.

Inherits:

AWS.Service

Identifier:

serverlessapplicationrepository

API Version:

2017-09-08

Defined in:

(unknown)

Overview

Constructs a service interface object. Each API operation is exposed as a function on service.

Service Description

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:

Sending a Request Using ServerlessApplicationRepository

var serverlessapplicationrepository = new AWS.ServerlessApplicationRepository();
serverlessapplicationrepository.createApplication(params, function (err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Locking the API Version

In order to ensure that the ServerlessApplicationRepository object uses this specific API, you can construct the object by passing the apiVersion option to the constructor:

var serverlessapplicationrepository = new AWS.ServerlessApplicationRepository({apiVersion: '2017-09-08'});

You can also set the API version globally in AWS.config.apiVersions using the serverlessapplicationrepository service identifier:

AWS.config.apiVersions = {
  serverlessapplicationrepository: '2017-09-08',
  // other service API versions
};

var serverlessapplicationrepository = new AWS.ServerlessApplicationRepository();

Constructor Summarycollapse

Property Summarycollapse

Properties inherited from AWS.Service

apiVersions

Method Summarycollapse

Methods inherited from AWS.Service

makeRequest, makeUnauthenticatedRequest, waitFor, setupRequestListeners, defineService

Constructor Details

new AWS.ServerlessApplicationRepository(options = {}) ⇒ Object

Constructs a service object. This object has one method for each API operation.

Property Details

endpointAWS.Endpoint

Returns an Endpoint object representing the endpoint URL for service requests.

Method Details

createApplication(params = {}, callback) ⇒ AWS.Request

Creates an application, optionally including an AWS SAM file to create the first application version in the same call.

createApplicationVersion(params = {}, callback) ⇒ AWS.Request

Creates an application version.

createCloudFormationChangeSet(params = {}, callback) ⇒ AWS.Request

Creates an AWS CloudFormation change set for the given application.

createCloudFormationTemplate(params = {}, callback) ⇒ AWS.Request

Creates an AWS CloudFormation template.

deleteApplication(params = {}, callback) ⇒ AWS.Request

Deletes the specified application.

getApplication(params = {}, callback) ⇒ AWS.Request

Gets the specified application.

getApplicationPolicy(params = {}, callback) ⇒ AWS.Request

Retrieves the policy for the application.

getCloudFormationTemplate(params = {}, callback) ⇒ AWS.Request

Gets the specified AWS CloudFormation template.

listApplicationDependencies(params = {}, callback) ⇒ AWS.Request

Retrieves the list of applications nested in the containing application.

listApplications(params = {}, callback) ⇒ AWS.Request

Lists applications owned by the requester.

listApplicationVersions(params = {}, callback) ⇒ AWS.Request

Lists versions for the specified application.

putApplicationPolicy(params = {}, callback) ⇒ AWS.Request

Sets the permission policy for an application. For the list of actions supported for this operation, see Application Permissions .

unshareApplication(params = {}, callback) ⇒ AWS.Request

Unshares an application from an AWS Organization.

This operation can be called only from the organization's master account.

updateApplication(params = {}, callback) ⇒ AWS.Request

Updates the specified application.