Skip to main content

group_versions

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

Overview

Namegroup_versions
TypeResource
Idaws.greengrass.group_versions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
arnstringThe ARN of the group version.
creation_timestampstringThe time, in milliseconds since the epoch, when the group version was created.
definitionobjectInformation about a group version.
idstringThe ID of the group that the version is associated with.
versionstringThe ID of the group version.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_group_versionselectgroup_id, group_version_id, regionRetrieves information about a group version.
list_group_versionsselectgroup_id, regionMaxResults, NextTokenLists the versions of a group.
create_group_versioninsertgroup_id, regionX-Amzn-Client-TokenCreates a version of a group 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.

NameDatatypeDescription
group_idstringThe ID of the Greengrass group.
group_version_idstringThe ID of the group version. This value maps to the ''Version'' property of the corresponding ''VersionInformation'' object, which is returned by ''ListGroupVersions'' requests. If the version is the last one that was associated with a group, the value also maps to the ''LatestVersion'' property of the corresponding ''GroupInformation'' 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 group version.

SELECT
arn,
creation_timestamp,
definition,
id,
version
FROM aws.greengrass.group_versions
WHERE group_id = '{{ group_id }}' -- required
AND group_version_id = '{{ group_version_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a version of a group which has already been defined.

INSERT INTO aws.greengrass.group_versions (
ConnectorDefinitionVersionArn,
CoreDefinitionVersionArn,
DeviceDefinitionVersionArn,
FunctionDefinitionVersionArn,
LoggerDefinitionVersionArn,
ResourceDefinitionVersionArn,
SubscriptionDefinitionVersionArn,
group_id,
region,
`X-Amzn-Client-Token`
)
SELECT
'{{ ConnectorDefinitionVersionArn }}',
'{{ CoreDefinitionVersionArn }}',
'{{ DeviceDefinitionVersionArn }}',
'{{ FunctionDefinitionVersionArn }}',
'{{ LoggerDefinitionVersionArn }}',
'{{ ResourceDefinitionVersionArn }}',
'{{ SubscriptionDefinitionVersionArn }}',
'{{ group_id }}',
'{{ region }}',
'{{ X-Amzn-Client-Token }}'
RETURNING
arn,
creation_timestamp,
id,
version
;