Skip to main content

connector_definition_versions

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

Overview

Nameconnector_definition_versions
TypeResource
Idaws.greengrass.connector_definition_versions

Fields

The following fields are returned by SELECT queries:

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

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_connector_definition_versionselectconnector_definition_id, connector_definition_version_id, regionNextTokenRetrieves information about a connector definition version, including the connectors that the version contains. Connectors are prebuilt modules that interact with local infrastructure, device protocols, AWS, and other cloud services.
list_connector_definition_versionsselectconnector_definition_id, regionMaxResults, NextTokenLists the versions of a connector definition, which are containers for connectors. Connectors run on the Greengrass core and contain built-in integration with local infrastructure, device protocols, AWS, and other cloud services.
create_connector_definition_versioninsertconnector_definition_id, regionX-Amzn-Client-TokenCreates a version of a connector 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.

NameDatatypeDescription
connector_definition_idstringThe ID of the connector definition.
connector_definition_version_idstringThe ID of the connector definition version. This value maps to the ''Version'' property of the corresponding ''VersionInformation'' object, which is returned by ''ListConnectorDefinitionVersions'' requests. If the version is the last one that was associated with a connector 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 connector definition version, including the connectors that the version contains. Connectors are prebuilt modules that interact with local infrastructure, device protocols, AWS, and other cloud services.

SELECT
arn,
creation_timestamp,
definition,
id,
next_token,
version
FROM aws.greengrass.connector_definition_versions
WHERE connector_definition_id = '{{ connector_definition_id }}' -- required
AND connector_definition_version_id = '{{ connector_definition_version_id }}' -- required
AND region = '{{ region }}' -- required
AND NextToken = '{{ NextToken }}'
;

INSERT examples

Creates a version of a connector definition which has already been defined.

INSERT INTO aws.greengrass.connector_definition_versions (
Connectors,
connector_definition_id,
region,
`X-Amzn-Client-Token`
)
SELECT
'{{ Connectors }}',
'{{ connector_definition_id }}',
'{{ region }}',
'{{ X-Amzn-Client-Token }}'
RETURNING
arn,
creation_timestamp,
id,
version
;