Skip to content

Commit 425a3a9

Browse files
feat(glue-alpha): add SNOWFLAKE connection type
- Add SNOWFLAKE enum value to ConnectionType - Add README documentation for SNOWFLAKE connection - Extend integration test with SNOWFLAKE connection - Update snapshot files Co-authored-by: CommandCodeBot <noreply@commandcode.ai>
1 parent 924edcf commit 425a3a9

5 files changed

Lines changed: 41 additions & 2 deletions

File tree

packages/@aws-cdk/aws-glue-alpha/README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,16 @@ new glue.Connection(this, "RdsConnection", {
458458
});
459459
```
460460

461-
If you need to use a connection type that doesn't exist as a static member on `ConnectionType`, you can instantiate a `ConnectionType` object, e.g: `new glue.ConnectionType('NEW_TYPE')`.
461+
For Snowflake `Connection`, you can use the `SNOWFLAKE` connection type:
462+
463+
```ts
464+
new glue.Connection(this, 'SnowflakeConnection', {
465+
type: glue.ConnectionType.SNOWFLAKE,
466+
connectionName: 'snowflake-connection',
467+
});
468+
```
469+
470+
If you need to use a connection type that doesn't exist as a static member on `ConnectionType`, you can instantiate a `ConnectionType` object, e.g: `new glue.ConnectionType('NEW_TYPE')`.**
462471

463472
See [Adding a Connection to Your Data Store](https://docs.aws.amazon.com/glue/latest/dg/populate-add-connection.html) and [Connection Structure](https://docs.aws.amazon.com/glue/latest/dg/aws-glue-api-catalog-connections.html#aws-glue-api-catalog-connections-Connection) documentation for more information on the supported data stores and their configurations.
464473

packages/@aws-cdk/aws-glue-alpha/test/integ.connection.js.snapshot/aws-glue-connection.metadata.json

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@aws-cdk/aws-glue-alpha/test/integ.connection.js.snapshot/aws-glue-connection.template.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -438,6 +438,18 @@
438438
}
439439
}
440440
}
441+
},
442+
"SnowflakeConnectionDC9F05AB": {
443+
"Type": "AWS::Glue::Connection",
444+
"Properties": {
445+
"CatalogId": {
446+
"Ref": "AWS::AccountId"
447+
},
448+
"ConnectionInput": {
449+
"Name": "snowflake-connection",
450+
"ConnectionType": "SNOWFLAKE"
451+
}
452+
}
441453
}
442454
},
443455
"Parameters": {

packages/@aws-cdk/aws-glue-alpha/test/integ.connection.js.snapshot/tree.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@aws-cdk/aws-glue-alpha/test/integ.connection.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,9 @@ new glue.Connection(stack, 'NetworkConnection', {
1818
subnet: vpc.privateSubnets[0],
1919
securityGroups: [sg],
2020
});
21+
22+
// Snowflake connection
23+
new glue.Connection(stack, 'SnowflakeConnection', {
24+
type: glue.ConnectionType.SNOWFLAKE,
25+
connectionName: 'snowflake-connection',
26+
});

0 commit comments

Comments
 (0)