Skip to main content

core_definition_versions

Creates, updates, deletes, gets or lists a core_definition_versions resource.

Overview

Namecore_definition_versions
TypeResource
Idaws.greengrass.core_definition_versions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
arnstringThe ARN of the core definition version.
creation_timestampstringThe time, in milliseconds since the epoch, when the core definition version was created.
definitionobjectInformation about a core definition version.
idstringThe ID of the core definition version.
next_tokenstringThe token for the next set of results, or ''null'' if there are no additional results.
versionstringThe version of the core definition version.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_core_definition_versionselectcore_definition_id, core_definition_version_id, regionRetrieves information about a core definition version.
list_core_definition_versionsselectcore_definition_id, regionMaxResults, NextTokenLists the versions of a core definition.
create_core_definition_versioninsertcore_definition_id, regionX-Amzn-Client-TokenCreates 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.

NameDatatypeDescription
core_definition_idstringThe ID of the core definition.
core_definition_version_idstringThe 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.
regionstringAWS region (default: us-east-1)
MaxResultsstringThe maximum number of results to be returned per request.
NextTokenstringThe token for the next set of results, or ''null'' if there are no additional results.
X-Amzn-Client-TokenstringA client token used to correlate requests and responses.

SELECT examples

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
;

INSERT examples

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
;