Skip to main content

cloud_connectors

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

Overview

Namecloud_connectors
TypeResource
Idaws.iot_managed_integrations.cloud_connectors

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
descriptionstringA description of the C2C connector. (pattern: <code>[0-9A-Za-z_- ]+</code>)
endpoint_configobjectThe configuration details for an endpoint, which defines how to connect to and communicate with external services.
endpoint_typestringThe type of endpoint used for the cloud connector, which defines how the connector communicates with external services. (LAMBDA)
idstringThe unique identifier of the cloud connector. (pattern: <code>[A-Za-z0-9-_]+</code>)
namestringThe display name of the C2C connector. (pattern: <code>[A-Za-z0-9-_ ]+</code>)
typestringThe type of cloud connector created. (LISTED, UNLISTED)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_cloud_connectorselectidentifier, regionGet configuration details for a cloud connector.
list_cloud_connectorsselectregionType, LambdaArn, MaxResults, NextTokenReturns a list of connectors filtered by its Lambda Amazon Resource Name (ARN) and type.
create_cloud_connectorinsertregion, EndpointConfigCreates a C2C (cloud-to-cloud) connector.
update_cloud_connectorupdateidentifier, regionUpdate an existing cloud connector.
delete_cloud_connectordeleteidentifier, regionDelete a cloud connector.

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
identifierstringThe identifier of the cloud connector.
regionstringAWS region (default: us-east-1)
LambdaArnstringThe Amazon Resource Name (ARN) of the Lambda function to filter cloud connectors by.
MaxResultsintegerThe maximum number of results to return at one time.
NextTokenstringA token that can be used to retrieve the next set of results.
TypestringThe type of cloud connectors to filter by when listing available connectors.

SELECT examples

Get configuration details for a cloud connector.

SELECT
description,
endpoint_config,
endpoint_type,
id,
name,
type
FROM aws.iot_managed_integrations.cloud_connectors
WHERE identifier = '{{ identifier }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a C2C (cloud-to-cloud) connector.

INSERT INTO aws.iot_managed_integrations.cloud_connectors (
Name,
EndpointConfig,
Description,
EndpointType,
ClientToken,
region
)
SELECT
'{{ Name }}',
'{{ EndpointConfig }}' /* required */,
'{{ Description }}',
'{{ EndpointType }}',
'{{ ClientToken }}',
'{{ region }}'
RETURNING
id
;

UPDATE examples

Update an existing cloud connector.

UPDATE aws.iot_managed_integrations.cloud_connectors
SET
Name = '{{ Name }}',
Description = '{{ Description }}'
WHERE
identifier = '{{ identifier }}' --required
AND region = '{{ region }}' --required;

DELETE examples

Delete a cloud connector.

DELETE FROM aws.iot_managed_integrations.cloud_connectors
WHERE identifier = '{{ identifier }}' --required
AND region = '{{ region }}' --required
;