application_versions
Creates, updates, deletes, gets or lists an application_versions resource.
Overview
| Name | application_versions |
| Type | Resource |
| Id | aws.serverlessrepo.application_versions |
Fields
The following fields are returned by SELECT queries:
- list_application_versions
| Name | Datatype | Description |
|---|---|---|
application_id | string | The application Amazon Resource Name (ARN). |
creation_time | string | The date and time this resource was created. |
semantic_version | string | The semantic version of the application: https://semver.org/ |
source_code_url | string | A 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:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list_application_versions | select | application_id, region | maxItems, nextToken | Lists versions for the specified application. |
create_application_version | insert | application_id, semantic_version, region | Creates 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.
| Name | Datatype | Description |
|---|---|---|
application_id | string | The Amazon Resource Name (ARN) of the application. |
region | string | AWS region (default: us-east-1) |
semantic_version | string | The semantic version of the new version. |
maxItems | integer | The total number of items to return. |
nextToken | string | A token to specify where to start paginating. |
SELECT examples
- list_application_versions
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
- create_application_version
- Manifest
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
;
# Description fields are for documentation purposes
- name: application_versions
props:
- name: application_id
value: "{{ application_id }}"
description: Required parameter for the application_versions resource.
- name: semantic_version
value: "{{ semantic_version }}"
description: Required parameter for the application_versions resource.
- name: region
value: "{{ region }}"
description: Required parameter for the application_versions resource.
- name: SourceCodeArchiveUrl
value: "{{ SourceCodeArchiveUrl }}"
- name: SourceCodeUrl
value: "{{ SourceCodeUrl }}"
- name: TemplateBody
value: "{{ TemplateBody }}"
- name: TemplateUrl
value: "{{ TemplateUrl }}"