Skip to main content

connectors

Creates, updates, deletes or gets a connector resource or lists connectors in a region

Overview

Nameconnectors
TypeResource
DescriptionResource Type definition for AWS::Transfer::Connector
Idawscc.transfer.connectors

Fields

NameDatatypeDescription
access_rolestringSpecifies the access role for the connector.
as2_configobjectConfiguration for an AS2 connector.
sftp_configobjectConfiguration for an SFTP connector.
arnstringSpecifies the unique Amazon Resource Name (ARN) for the connector.
connector_idstringA unique identifier for the connector.
logging_rolestringSpecifies the logging role for the connector.
service_managed_egress_ip_addressesarrayThe list of egress IP addresses of this connector. These IP addresses are assigned automatically when you create the connector.
tagsarrayKey-value pairs that can be used to group and search for connectors. Tags are metadata attached to connectors for any purpose.
urlstringURL for Connector
security_policy_namestringSecurity policy for SFTP Connector
regionstringAWS region.

For more information, see AWS::Transfer::Connector.

Methods

NameResourceAccessible byRequired Params
create_resourceconnectorsINSERTAccessRole, Url, region
delete_resourceconnectorsDELETEIdentifier, region
update_resourceconnectorsUPDATEIdentifier, PatchDocument, region
list_resourcesconnectors_list_onlySELECTregion
get_resourceconnectorsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual connector.

SELECT
region,
access_role,
as2_config,
sftp_config,
arn,
connector_id,
logging_role,
service_managed_egress_ip_addresses,
tags,
url,
security_policy_name
FROM awscc.transfer.connectors
WHERE
region = 'us-east-1' AND
Identifier = '{{ connector_id }}';

INSERT example

Use the following StackQL query and manifest file to create a new connector resource, using stack-deploy.

/*+ create */
INSERT INTO awscc.transfer.connectors (
AccessRole,
Url,
region
)
SELECT
'{{ access_role }}',
'{{ url }}',
'{{ region }}';

UPDATE example

Use the following StackQL query and manifest file to update a connector resource, using stack-deploy.

/*+ update */
UPDATE awscc.transfer.connectors
SET PatchDocument = string('{{ {
"AccessRole": access_role,
"As2Config": as2_config,
"SftpConfig": sftp_config,
"LoggingRole": logging_role,
"Tags": tags,
"Url": url,
"SecurityPolicyName": security_policy_name
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ connector_id }}';

DELETE example

/*+ delete */
DELETE FROM awscc.transfer.connectors
WHERE
Identifier = '{{ connector_id }}' AND
region = 'us-east-1';

Permissions

To operate on the connectors resource, the following permissions are required:

transfer:CreateConnector,
transfer:TagResource,
iam:PassRole