Skip to main content

applications

Creates, updates, deletes, gets or lists an applications resource.

Overview

Nameapplications
TypeResource
Idaws.serverlessrepo.applications

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
application_idstringThe application Amazon Resource Name (ARN).
authorstringThe name of the author publishing the app. Minimum length=1. Maximum length=127. Pattern "^[a-z0-9](([a-z0-9]|-(?!-))*[a-z0-9])?$";
creation_timestringThe date and time this resource was created.
descriptionstringThe description of the application. Minimum length=1. Maximum length=256
home_page_urlstringA URL with more information about the application, for example the location of your GitHub repository for the application.
is_verified_authorbooleanWhether the author of this application has been verified. This means means that AWS has made a good faith review, as a reasonable and prudent service provider, of the information provided by the requester and has confirmed that the requester's identity is as claimed.
labelsarrayLabels to improve discovery of apps in search results. Minimum length=1. Maximum length=127. Maximum number of labels: 10 Pattern: "^[a-zA-Z0-9+\-_:\/@]+$";
license_urlstringA link to a license file of the app that matches the spdxLicenseID value of your application. Maximum size 5 MB
namestringThe name of the application. Minimum length=1. Maximum length=140 Pattern: "[a-zA-Z0-9\-]+";
readme_urlstringA link to the readme file in Markdown language that contains a more detailed description of the application and how it works. Maximum size 5 MB
spdx_license_idstringA valid identifier from https:​//spdx.org/licenses/.
verified_author_urlstringThe URL to the public profile of a verified author. This URL is submitted by the author.
versionobjectVersion information about the application.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_applicationselectapplication_id, regionsemanticVersionGets the specified application.
list_applicationsselectregionmaxItems, nextTokenLists applications owned by the requester.
create_cloud_formation_change_setinsertapplication_id, region, StackNameCreates an AWS CloudFormation change set for the given application.
create_applicationinsertregionCreates an application, optionally including an AWS SAM file to create the first application version in the same call.
update_applicationupdateapplication_id, regionUpdates the specified application.
delete_applicationdeleteapplication_id, regionDeletes the specified application.
unshare_applicationexecapplication_id, region, OrganizationIdUnshares an application from an AWS Organization. This operation can be called only from the organization's master account.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
application_idstringThe Amazon Resource Name (ARN) of the application.
regionstringAWS region (default: us-east-1)
maxItemsintegerThe total number of items to return.
nextTokenstringA token to specify where to start paginating.
semanticVersionstringThe semantic version of the application to get.

SELECT examples

Gets the specified application.

SELECT
application_id,
author,
creation_time,
description,
home_page_url,
is_verified_author,
labels,
license_url,
name,
readme_url,
spdx_license_id,
verified_author_url,
version
FROM aws.serverlessrepo.applications
WHERE application_id = '{{ application_id }}' -- required
AND region = '{{ region }}' -- required
AND semanticVersion = '{{ semanticVersion }}'
;

INSERT examples

Creates an AWS CloudFormation change set for the given application.

INSERT INTO aws.serverlessrepo.applications (
Capabilities,
ChangeSetName,
ClientToken,
Description,
NotificationArns,
ParameterOverrides,
ResourceTypes,
RollbackConfiguration,
SemanticVersion,
StackName,
Tags,
TemplateId,
application_id,
region
)
SELECT
'{{ Capabilities }}',
'{{ ChangeSetName }}',
'{{ ClientToken }}',
'{{ Description }}',
'{{ NotificationArns }}',
'{{ ParameterOverrides }}',
'{{ ResourceTypes }}',
'{{ RollbackConfiguration }}',
'{{ SemanticVersion }}',
'{{ StackName }}' /* required */,
'{{ Tags }}',
'{{ TemplateId }}',
'{{ application_id }}',
'{{ region }}'
RETURNING
application_id,
change_set_id,
semantic_version,
stack_id
;

UPDATE examples

Updates the specified application.

UPDATE aws.serverlessrepo.applications
SET
Author = '{{ Author }}',
Description = '{{ Description }}',
HomePageUrl = '{{ HomePageUrl }}',
Labels = '{{ Labels }}',
ReadmeBody = '{{ ReadmeBody }}',
ReadmeUrl = '{{ ReadmeUrl }}'
WHERE
application_id = '{{ application_id }}' --required
AND region = '{{ region }}' --required
RETURNING
application_id,
author,
creation_time,
description,
home_page_url,
is_verified_author,
labels,
license_url,
name,
readme_url,
spdx_license_id,
verified_author_url,
version;

DELETE examples

Deletes the specified application.

DELETE FROM aws.serverlessrepo.applications
WHERE application_id = '{{ application_id }}' --required
AND region = '{{ region }}' --required
;

Lifecycle Methods

Unshares an application from an AWS Organization. This operation can be called only from the organization's master account.

EXEC aws.serverlessrepo.applications.unshare_application
@application_id='{{ application_id }}' --required,
@region='{{ region }}' --required
@@json=
'{
"OrganizationId": "{{ OrganizationId }}"
}'
;