Skip to main content

connector_definitions

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

Overview

Nameconnector_definitions
TypeResource
Idaws.greengrass.connector_definitions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
arnstringThe ARN of the definition.
creation_timestampstringThe time, in milliseconds since the epoch, when the definition was created.
idstringThe ID of the definition.
last_updated_timestampstringThe time, in milliseconds since the epoch, when the definition was last updated.
latest_versionstringThe ID of the latest version associated with the definition.
latest_version_arnstringThe ARN of the latest version associated with the definition.
namestringThe name of the definition.
tagsobjectTag(s) attached to the resource arn.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_connector_definitionselectconnector_definition_id, regionRetrieves information about a connector definition.
list_connector_definitionsselectregionMaxResults, NextTokenRetrieves a list of connector definitions.
create_connector_definitioninsertregionX-Amzn-Client-TokenCreates a connector definition. You may provide the initial version of the connector definition now or use ''CreateConnectorDefinitionVersion'' at a later time.
update_connector_definitionupdateconnector_definition_id, regionUpdates a connector definition.
delete_connector_definitiondeleteconnector_definition_id, regionDeletes a connector definition.

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.
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.

SELECT
arn,
creation_timestamp,
id,
last_updated_timestamp,
latest_version,
latest_version_arn,
name,
tags
FROM aws.greengrass.connector_definitions
WHERE connector_definition_id = '{{ connector_definition_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a connector definition. You may provide the initial version of the connector definition now or use ''CreateConnectorDefinitionVersion'' at a later time.

INSERT INTO aws.greengrass.connector_definitions (
InitialVersion,
Name,
tags,
region,
`X-Amzn-Client-Token`
)
SELECT
'{{ InitialVersion }}',
'{{ Name }}',
'{{ tags }}',
'{{ region }}',
'{{ X-Amzn-Client-Token }}'
RETURNING
arn,
creation_timestamp,
id,
last_updated_timestamp,
latest_version,
latest_version_arn,
name
;

UPDATE examples

Updates a connector definition.

UPDATE aws.greengrass.connector_definitions
SET
Name = '{{ Name }}'
WHERE
connector_definition_id = '{{ connector_definition_id }}' --required
AND region = '{{ region }}' --required;

DELETE examples

Deletes a connector definition.

DELETE FROM aws.greengrass.connector_definitions
WHERE connector_definition_id = '{{ connector_definition_id }}' --required
AND region = '{{ region }}' --required
;