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 = '{{ region }}' 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 }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

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 }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.transfer.connectors
WHERE
Identifier = '{{ connector_id }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

Permissions

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

transfer:CreateConnector,
transfer:TagResource,
iam:PassRole