subscription_definition_versions
Creates, updates, deletes, gets or lists a subscription_definition_versions resource.
Overview
| Name | subscription_definition_versions |
| Type | Resource |
| Id | aws.greengrass.subscription_definition_versions |
Fields
The following fields are returned by SELECT queries:
- get_subscription_definition_version
- list_subscription_definition_versions
| Name | Datatype | Description |
|---|---|---|
arn | string | The ARN of the subscription definition version. |
creation_timestamp | string | The time, in milliseconds since the epoch, when the subscription definition version was created. |
definition | object | Information about a subscription definition version. |
id | string | The ID of the subscription definition version. |
next_token | string | The token for the next set of results, or ''null'' if there are no additional results. |
version | string | The version of the subscription definition version. |
| Name | Datatype | Description |
|---|---|---|
arn | string | The ARN of the version. |
creation_timestamp | string | The time, in milliseconds since the epoch, when the version was created. |
id | string | The ID of the parent definition that the version is associated with. |
version | string | The ID of the version. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_subscription_definition_version | select | subscription_definition_id, subscription_definition_version_id, region | NextToken | Retrieves information about a subscription definition version. |
list_subscription_definition_versions | select | subscription_definition_id, region | MaxResults, NextToken | Lists the versions of a subscription definition. |
create_subscription_definition_version | insert | subscription_definition_id, region | X-Amzn-Client-Token | Creates a version of a subscription definition which has already been defined. |
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 |
|---|---|---|
region | string | AWS region (default: us-east-1) |
subscription_definition_id | string | The ID of the subscription definition. |
subscription_definition_version_id | string | The ID of the subscription definition version. This value maps to the ''Version'' property of the corresponding ''VersionInformation'' object, which is returned by ''ListSubscriptionDefinitionVersions'' requests. If the version is the last one that was associated with a subscription definition, the value also maps to the ''LatestVersion'' property of the corresponding ''DefinitionInformation'' object. |
MaxResults | string | The maximum number of results to be returned per request. |
NextToken | string | The token for the next set of results, or ''null'' if there are no additional results. |
X-Amzn-Client-Token | string | A client token used to correlate requests and responses. |
SELECT examples
- get_subscription_definition_version
- list_subscription_definition_versions
Retrieves information about a subscription definition version.
SELECT
arn,
creation_timestamp,
definition,
id,
next_token,
version
FROM aws.greengrass.subscription_definition_versions
WHERE subscription_definition_id = '{{ subscription_definition_id }}' -- required
AND subscription_definition_version_id = '{{ subscription_definition_version_id }}' -- required
AND region = '{{ region }}' -- required
AND NextToken = '{{ NextToken }}'
;
Lists the versions of a subscription definition.
SELECT
arn,
creation_timestamp,
id,
version
FROM aws.greengrass.subscription_definition_versions
WHERE subscription_definition_id = '{{ subscription_definition_id }}' -- required
AND region = '{{ region }}' -- required
AND MaxResults = '{{ MaxResults }}'
AND NextToken = '{{ NextToken }}'
;
INSERT examples
- create_subscription_definition_version
- Manifest
Creates a version of a subscription definition which has already been defined.
INSERT INTO aws.greengrass.subscription_definition_versions (
Subscriptions,
subscription_definition_id,
region,
`X-Amzn-Client-Token`
)
SELECT
'{{ Subscriptions }}',
'{{ subscription_definition_id }}',
'{{ region }}',
'{{ X-Amzn-Client-Token }}'
RETURNING
arn,
creation_timestamp,
id,
version
;
# Description fields are for documentation purposes
- name: subscription_definition_versions
props:
- name: subscription_definition_id
value: "{{ subscription_definition_id }}"
description: Required parameter for the subscription_definition_versions resource.
- name: region
value: "{{ region }}"
description: Required parameter for the subscription_definition_versions resource.
- name: Subscriptions
value:
- Id: "{{ Id }}"
Source: "{{ Source }}"
Subject: "{{ Subject }}"
Target: "{{ Target }}"
- name: X-Amzn-Client-Token
value: "{{ X-Amzn-Client-Token }}"
description: A client token used to correlate requests and responses.
description: A client token used to correlate requests and responses.