Skip to content

Commit f48220f

Browse files
authored
chore(glue): support ConnectionType.MARKETPLACE and ConnectionType.CUSTOM (#30395)
### Issue # (if applicable) N/A ### Reason for this change `MARKETPLACE` and `CUSTOM` are not supported in the current L2 Construct. (`SFTP` is also missing, but it is not supported at the moment.) https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-connection-connectioninput.html#cfn-glue-connection-connectioninput-connectiontype ### Description of changes Add missing connection types. ### Description of how you validated changes I determined that no testing was needed since this was only an addition of connection types. ### Checklist - [x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md) ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent c1b240e commit f48220f

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

packages/@aws-cdk/aws-glue-alpha/lib/connection.ts

+14
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ import { CfnConnection } from 'aws-cdk-lib/aws-glue';
88
*
99
* If you need to use a connection type that doesn't exist as a static member, you
1010
* can instantiate a `ConnectionType` object, e.g: `new ConnectionType('NEW_TYPE')`.
11+
*
12+
* @see https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-connection-connectioninput.html#cfn-glue-connection-connectioninput-connectiontype
1113
*/
1214
export class ConnectionType {
1315

@@ -31,6 +33,18 @@ export class ConnectionType {
3133
*/
3234
public static readonly NETWORK = new ConnectionType('NETWORK');
3335

36+
/**
37+
* Uses configuration settings contained in a connector purchased from AWS Marketplace
38+
* to read from and write to data stores that are not natively supported by AWS Glue.
39+
*/
40+
public static readonly MARKETPLACE = new ConnectionType('MARKETPLACE');
41+
42+
/**
43+
* Uses configuration settings contained in a custom connector to read from and write to data stores
44+
* that are not natively supported by AWS Glue.
45+
*/
46+
public static readonly CUSTOM = new ConnectionType('CUSTOM');
47+
3448
/**
3549
* The name of this ConnectionType, as expected by Connection resource.
3650
*/

0 commit comments

Comments
 (0)