Skip to main content

connector_destinations

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

Overview

Nameconnector_destinations
TypeResource
Idaws.iot_managed_integrations.connector_destinations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
auth_configobjectThe authentication configuration details for a connector destination, including OAuth settings and other authentication parameters.
auth_typestringThe authentication type used for the connector destination, which determines how credentials and access are managed. (OAUTH)
cloud_connector_idstringThe identifier of the C2C connector. (pattern: <code>[A-Za-z0-9-_]+</code>)
descriptionstringA description of the connector destination. (pattern: <code>[0-9A-Za-z_- ]+</code>)
idstringThe unique identifier of the connector destination. (pattern: <code>[A-Za-z0-9-_]+</code>)
namestringThe display name of the connector destination. (pattern: <code>[A-Za-z0-9-_ ]+</code>)
o_auth_complete_redirect_urlstringThe URL where users are redirected after completing the OAuth authorization process for the connector destination. (pattern: <code>(http|https):​//.*</code>)
secrets_managerobjectConfiguration for AWS Secrets Manager, used to securely store and manage sensitive information for connector destinations.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_connector_destinationselectidentifier, regionGet connector destination details linked to a cloud-to-cloud (C2C) connector.
list_connector_destinationsselectregionCloudConnectorId, NextToken, MaxResultsLists all connector destinations, with optional filtering by cloud connector ID.
create_connector_destinationinsertregion, CloudConnectorId, AuthConfigCreate a connector destination for connecting a cloud-to-cloud (C2C) connector to the customer's Amazon Web Services account.
update_connector_destinationupdateidentifier, regionUpdates the properties of an existing connector destination.
delete_connector_destinationdeleteidentifier, regionDelete a connector destination linked to a cloud-to-cloud (C2C) connector. Deletion can't be done if the account association has used this connector destination.

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 connector destination.
regionstringAWS region (default: us-east-1)
CloudConnectorIdstringThe identifier of the cloud connector to filter connector destinations by.
MaxResultsintegerThe maximum number of connector destinations to return in a single response.
NextTokenstringA token used for pagination of results.

SELECT examples

Get connector destination details linked to a cloud-to-cloud (C2C) connector.

SELECT
auth_config,
auth_type,
cloud_connector_id,
description,
id,
name,
o_auth_complete_redirect_url,
secrets_manager
FROM aws.iot_managed_integrations.connector_destinations
WHERE identifier = '{{ identifier }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Create a connector destination for connecting a cloud-to-cloud (C2C) connector to the customer's Amazon Web Services account.

INSERT INTO aws.iot_managed_integrations.connector_destinations (
Name,
Description,
CloudConnectorId,
AuthType,
AuthConfig,
SecretsManager,
ClientToken,
region
)
SELECT
'{{ Name }}',
'{{ Description }}',
'{{ CloudConnectorId }}' /* required */,
'{{ AuthType }}',
'{{ AuthConfig }}' /* required */,
'{{ SecretsManager }}',
'{{ ClientToken }}',
'{{ region }}'
RETURNING
id
;

UPDATE examples

Updates the properties of an existing connector destination.

UPDATE aws.iot_managed_integrations.connector_destinations
SET
Description = '{{ Description }}',
Name = '{{ Name }}',
AuthType = '{{ AuthType }}',
AuthConfig = '{{ AuthConfig }}',
SecretsManager = '{{ SecretsManager }}'
WHERE
identifier = '{{ identifier }}' --required
AND region = '{{ region }}' --required;

DELETE examples

Delete a connector destination linked to a cloud-to-cloud (C2C) connector. Deletion can't be done if the account association has used this connector destination.

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