Skip to main content

cloud_connectors

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

Overview

Namecloud_connectors
TypeResource
Idaws.ssm.cloud_connectors

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
cloud_connector_arnstringThe ARN of the cloud connector. (pattern: <code>^arn:aws(-cn|-us-gov)?:ssm:([^:]+):\d{12}:cloud-connector/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$</code>)
config_connector_arnstringThe ARN of the Amazon Web Services Config connector associated with this cloud connector. (pattern: <code>^arn:aws(-cn|-us-gov)?:config:([^:]+):\d{12}:connector/.+$</code>)
configurationobjectThe configuration details for the third-party cloud environment connection.
created_atstring (date-time)The date and time the cloud connector was created.
descriptionstringThe description of the cloud connector. (pattern: <code>^([\p{L}\p{Z}\p{N}\p{P}\p{M}]*)$</code>)
display_namestringThe friendly name of the cloud connector. (pattern: <code>^([\p{L}\p{Z}\p{N}\p{P}\p{M}]*)$</code>)
role_arnstringThe ARN of the IAM role used by the cloud connector. (pattern: <code>^arn:aws[a-z0-9-]*:iam::\d{12}:role/[\w-/.@+=,]{1,1017}$</code>)
updated_atstring (date-time)The date and time the cloud connector was last updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_cloud_connectorselectregionReturns detailed information about a cloud connector.
list_cloud_connectorsselectregionReturns a list of cloud connectors in the current Amazon Web Services account and Amazon Web Services Region.
create_cloud_connectorinsertregion, DisplayName, RoleArn, ConfigConnectorArnCreates a cloud connector that establishes a connection between Systems Manager and a third-party cloud environment.
update_cloud_connectorupdateregion, CloudConnectorIdUpdates an existing cloud connector with new configuration details.
delete_cloud_connectordeleteregionDeletes a cloud connector.
validate_cloud_connectorexecregion, CloudConnectorIdValidates the configuration and connectivity of 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
regionstringAWS region (default: us-east-1)

SELECT examples

Returns detailed information about a cloud connector.

SELECT
cloud_connector_arn,
config_connector_arn,
configuration,
created_at,
description,
display_name,
role_arn,
updated_at
FROM aws.ssm.cloud_connectors
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates a cloud connector that establishes a connection between Systems Manager and a third-party cloud environment.

INSERT INTO aws.ssm.cloud_connectors (
DisplayName,
RoleArn,
Description,
Configuration,
ConfigConnectorArn,
Tags,
region
)
SELECT
'{{ DisplayName }}' /* required */,
'{{ RoleArn }}' /* required */,
'{{ Description }}',
'{{ Configuration }}',
'{{ ConfigConnectorArn }}' /* required */,
'{{ Tags }}',
'{{ region }}'
RETURNING
cloud_connector_id
;

UPDATE examples

Updates an existing cloud connector with new configuration details.

UPDATE aws.ssm.cloud_connectors
SET
CloudConnectorId = '{{ CloudConnectorId }}',
DisplayName = '{{ DisplayName }}',
Configuration = '{{ Configuration }}',
Description = '{{ Description }}'
WHERE
region = '{{ region }}' --required
AND CloudConnectorId = '{{ CloudConnectorId }}' --required
RETURNING
cloud_connector_id;

DELETE examples

Deletes a cloud connector.

DELETE FROM aws.ssm.cloud_connectors
WHERE region = '{{ region }}' --required
;

Lifecycle Methods

Validates the configuration and connectivity of a cloud connector.

EXEC aws.ssm.cloud_connectors.validate_cloud_connector
@region='{{ region }}' --required
@@json=
'{
"CloudConnectorId": "{{ CloudConnectorId }}",
"MaxResults": {{ MaxResults }},
"NextToken": "{{ NextToken }}"
}'
;