Manage an external data-source connection (SFTP, AWS S3)
manage_connectionCreate, list, test, or delete a workspace connection to an external data source. Two types are supported: "sftp" and "aws_s3". For sftp, create generates a keypair and returns the public key — it must be installed in the remote server's authorized_keys before test (or a trigger using this connection) will succeed. For aws_s3, create generates an ExternalId and returns a trustPolicy plus dpfPrincipalArn — the customer must create (or update) the IAM role at roleArn with that trust policy and a permissions policy granting the S3 access DPF needs, before test will succeed. Either type must pass test before it can be used in a trigger. For a first-time "pull files from this server/bucket on a schedule" request, prefer setup_scheduled_pull, which chains create + test + create-trigger for you.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Connection type. Required for create; defaults to "sftp". | |
| action | Yes | Which operation to perform. | |
| roleArn | No | aws_s3 only. The IAM role the customer will create/update. Required for create. | |
| hostname | No | sftp only. Remote server hostname. Required for create. | |
| username | No | sftp only. Remote username. Optional for create; defaults to "sftpuser". | |
| workspaceId | No | Workspace to act on. Defaults to your only workspace if you have exactly one. | |
| connectionId | No | Existing connection to test or delete. Required for test/delete. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | ||
| count | No | action "list" only | |
| account | No | action "test", type "aws_s3" only | |
| message | No | ||
| roleArn | No | ||
| success | No | action "test" only | |
| hostname | No | ||
| username | No | ||
| createdAt | No | ||
| createdBy | No | ||
| fileCount | No | action "test", type "sftp" only | |
| publicKey | No | ||
| updatedAt | No | ||
| entryCount | No | action "test", type "sftp" only | |
| externalId | No | ||
| connections | No | action "list" only | |
| trustPolicy | No | ||
| workspaceId | No | ||
| connectionId | No | ||
| lastTestedAt | No | ||
| assumedRoleArn | No | action "test", type "aws_s3" only | |
| lastTestStatus | No | ||
| dpfPrincipalArn | No |