Skip to main content

application_versions

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

Overview​

Nameapplication_versions
TypeResource
Idaws.serverlessrepo.application_versions

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
application_idstringThe application Amazon Resource Name (ARN).
creation_timestringThe date and time this resource was created.
semantic_versionstringThe semantic version of the application: https:​//semver.org/
source_code_urlstringA link to a public repository for the source code of your application, for example the URL of a specific GitHub commit.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_application_versionsselectapplication_id, regionmaxItems, nextTokenLists versions for the specified application.
create_application_versioninsertapplication_id, semantic_version, regionCreates an application version.

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)
semantic_versionstringThe semantic version of the new version.
maxItemsintegerThe total number of items to return.
nextTokenstringA token to specify where to start paginating.

SELECT examples​

Lists versions for the specified application.

SELECT
application_id,
creation_time,
semantic_version,
source_code_url
FROM aws.serverlessrepo.application_versions
WHERE application_id = '{{ application_id }}' -- required
AND region = '{{ region }}' -- required
AND maxItems = '{{ maxItems }}'
AND nextToken = '{{ nextToken }}'
;

INSERT examples​

Creates an application version.

INSERT INTO aws.serverlessrepo.application_versions (
SourceCodeArchiveUrl,
SourceCodeUrl,
TemplateBody,
TemplateUrl,
application_id,
semantic_version,
region
)
SELECT
'{{ SourceCodeArchiveUrl }}',
'{{ SourceCodeUrl }}',
'{{ TemplateBody }}',
'{{ TemplateUrl }}',
'{{ application_id }}',
'{{ semantic_version }}',
'{{ region }}'
RETURNING
application_id,
creation_time,
parameter_definitions,
required_capabilities,
resources_supported,
semantic_version,
source_code_archive_url,
source_code_url,
template_url
;