From 40449f5f663da9298a029dd349bc864dfe7fea27 Mon Sep 17 00:00:00 2001 From: maz Date: Fri, 31 May 2024 09:28:09 +0900 Subject: [PATCH 1/2] chore: add missing connection type --- packages/@aws-cdk/aws-glue-alpha/lib/connection.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/packages/@aws-cdk/aws-glue-alpha/lib/connection.ts b/packages/@aws-cdk/aws-glue-alpha/lib/connection.ts index 3d8b4738f3d57..5641a0070986a 100644 --- a/packages/@aws-cdk/aws-glue-alpha/lib/connection.ts +++ b/packages/@aws-cdk/aws-glue-alpha/lib/connection.ts @@ -31,6 +31,18 @@ export class ConnectionType { */ public static readonly NETWORK = new ConnectionType('NETWORK'); + /** + * Uses configuration settings contained in a connector purchased from AWS Marketplace + * to read from and write to data stores that are not natively supported by AWS Glue. + */ + public static readonly MARKETPLACE = new ConnectionType('MARKETPLACE'); + + /** + * Uses configuration settings contained in a custom connector to read from and write to data stores + * that are not natively supported by AWS Glue. + */ + public static readonly CUSTOM = new ConnectionType('CUSTOM'); + /** * The name of this ConnectionType, as expected by Connection resource. */ From 91425a4eeab0d56ef9375c59dbe6a2e51d7cdc9f Mon Sep 17 00:00:00 2001 From: mazyu36 Date: Sat, 1 Jun 2024 11:41:14 +0900 Subject: [PATCH 2/2] docs: add a document link --- packages/@aws-cdk/aws-glue-alpha/lib/connection.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/@aws-cdk/aws-glue-alpha/lib/connection.ts b/packages/@aws-cdk/aws-glue-alpha/lib/connection.ts index 5641a0070986a..e999eb58d11e5 100644 --- a/packages/@aws-cdk/aws-glue-alpha/lib/connection.ts +++ b/packages/@aws-cdk/aws-glue-alpha/lib/connection.ts @@ -8,6 +8,8 @@ import { CfnConnection } from 'aws-cdk-lib/aws-glue'; * * If you need to use a connection type that doesn't exist as a static member, you * can instantiate a `ConnectionType` object, e.g: `new ConnectionType('NEW_TYPE')`. + * + * @see https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-connection-connectioninput.html#cfn-glue-connection-connectioninput-connectiontype */ export class ConnectionType {