core_definition_versions
Creates, updates, deletes, gets or lists a core_definition_versions resource.
Overview
| Name | core_definition_versions |
| Type | Resource |
| Id | aws.greengrass.core_definition_versions |
Fields
The following fields are returned by SELECT queries:
- get_core_definition_version
- list_core_definition_versions
| Name | Datatype | Description |
|---|---|---|
arn | string | The ARN of the core definition version. |
creation_timestamp | string | The time, in milliseconds since the epoch, when the core definition version was created. |
definition | object | Information about a core definition version. |
id | string | The ID of the core 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 core 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_core_definition_version | select | core_definition_id, core_definition_version_id, region | Retrieves information about a core definition version. | |
list_core_definition_versions | select | core_definition_id, region | MaxResults, NextToken | Lists the versions of a core definition. |
create_core_definition_version | insert | core_definition_id, region | X-Amzn-Client-Token | Creates a version of a core definition that has already been defined. Greengrass groups must each contain exactly one Greengrass core. |
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 |
|---|---|---|
core_definition_id | string | The ID of the core definition. |
core_definition_version_id | string | The ID of the core definition version. This value maps to the ''Version'' property of the corresponding ''VersionInformation'' object, which is returned by ''ListCoreDefinitionVersions'' requests. If the version is the last one that was associated with a core definition, the value also maps to the ''LatestVersion'' property of the corresponding ''DefinitionInformation'' object. |
region | string | AWS region (default: us-east-1) |
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_core_definition_version
- list_core_definition_versions
Retrieves information about a core definition version.
SELECT
arn,
creation_timestamp,
definition,
id,
next_token,
version
FROM aws.greengrass.core_definition_versions
WHERE core_definition_id = '{{ core_definition_id }}' -- required
AND core_definition_version_id = '{{ core_definition_version_id }}' -- required
AND region = '{{ region }}' -- required
;
Lists the versions of a core definition.
SELECT
arn,
creation_timestamp,
id,
version
FROM aws.greengrass.core_definition_versions
WHERE core_definition_id = '{{ core_definition_id }}' -- required
AND region = '{{ region }}' -- required
AND MaxResults = '{{ MaxResults }}'
AND NextToken = '{{ NextToken }}'
;
INSERT examples
- create_core_definition_version
- Manifest
Creates a version of a core definition that has already been defined. Greengrass groups must each contain exactly one Greengrass core.
INSERT INTO aws.greengrass.core_definition_versions (
Cores,
core_definition_id,
region,
`X-Amzn-Client-Token`
)
SELECT
'{{ Cores }}',
'{{ core_definition_id }}',
'{{ region }}',
'{{ X-Amzn-Client-Token }}'
RETURNING
arn,
creation_timestamp,
id,
version
;
# Description fields are for documentation purposes
- name: core_definition_versions
props:
- name: core_definition_id
value: "{{ core_definition_id }}"
description: Required parameter for the core_definition_versions resource.
- name: region
value: "{{ region }}"
description: Required parameter for the core_definition_versions resource.
- name: Cores
value:
- CertificateArn: "{{ CertificateArn }}"
Id: "{{ Id }}"
SyncShadow: {{ SyncShadow }}
ThingArn: "{{ ThingArn }}"
- 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.