Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(glue): add missing connection types #32600

Merged
merged 2 commits into from
Dec 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
114 changes: 112 additions & 2 deletions packages/@aws-cdk/aws-glue-alpha/lib/connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,16 @@ export class ConnectionType {
*/
public static readonly MONGODB = new ConnectionType('MONGODB');

/**
* Designates a connection used for view validation by Amazon Redshift.
*/
public static readonly VIEW_VALIDATION_REDSHIFT = new ConnectionType('VIEW_VALIDATION_REDSHIFT');

/**
* Designates a connection used for view validation by Amazon Athena.
*/
public static readonly VIEW_VALIDATION_ATHENA = new ConnectionType('VIEW_VALIDATION_ATHENA');

/**
* Designates a network connection to a data source within an Amazon Virtual Private Cloud environment (Amazon VPC).
*/
Expand All @@ -45,6 +55,106 @@ export class ConnectionType {
*/
public static readonly CUSTOM = new ConnectionType('CUSTOM');

/**
* Designates a connection to Facebook Ads.
*/
public static readonly FACEBOOKADS = new ConnectionType('FACEBOOKADS');

/**
* Designates a connection to Google Ads.
*/
public static readonly GOOGLEADS = new ConnectionType('GOOGLEADS');

/**
* Designates a connection to Google Sheets.
*/
public static readonly GOOGLESHEETS = new ConnectionType('GOOGLESHEETS');

/**
* Designates a connection to Google Analytics 4.
*/
public static readonly GOOGLEANALYTICS4 = new ConnectionType('GOOGLEANALYTICS4');

/**
* Designates a connection to HubSpot.
*/
public static readonly HUBSPOT = new ConnectionType('HUBSPOT');

/**
* Designates a connection to Instagram Ads.
*/
public static readonly INSTAGRAMADS = new ConnectionType('INSTAGRAMADS');

/**
* Designates a connection to Intercom.
*/
public static readonly INTERCOM = new ConnectionType('INTERCOM');

/**
* Designates a connection to Jira Cloud.
*/
public static readonly JIRACLOUD = new ConnectionType('JIRACLOUD');

/**
* Designates a connection to Adobe Marketo Engage.
*/
public static readonly MARKETO = new ConnectionType('MARKETO');

/**
* Designates a connection to Oracle NetSuite.
*/
public static readonly NETSUITEERP = new ConnectionType('NETSUITEERP');

/**
* Designates a connection to Salesforce using OAuth authentication.
*/
public static readonly SALESFORCE = new ConnectionType('SALESFORCE');

/**
* Designates a connection to Salesforce Marketing Cloud.
*/
public static readonly SALESFORCEMARKETINGCLOUD = new ConnectionType('SALESFORCEMARKETINGCLOUD');

/**
* Designates a connection to Salesforce Marketing Cloud Account Engagement (MCAE).
*/
public static readonly SALESFORCEPARDOT = new ConnectionType('SALESFORCEPARDOT');

/**
* Designates a connection to SAP OData.
*/
public static readonly SAPODATA = new ConnectionType('SAPODATA');

/**
* Designates a connection to ServiceNow.
*/
public static readonly SERVICENOW = new ConnectionType('SERVICENOW');

/**
* Designates a connection to Slack.
*/
public static readonly SLACK = new ConnectionType('SLACK');

/**
* Designates a connection to Snapchat Ads.
*/
public static readonly SNAPCHATADS = new ConnectionType('SNAPCHATADS');

/**
* Designates a connection to Stripe.
*/
public static readonly STRIPE = new ConnectionType('STRIPE');

/**
* Designates a connection to Zendesk.
*/
public static readonly ZENDESK = new ConnectionType('ZENDESK');

/**
* Designates a connection to Zoho CRM.
*/
public static readonly ZOHOCRM = new ConnectionType('ZOHOCRM');

/**
* The name of this ConnectionType, as expected by Connection resource.
*/
Expand Down Expand Up @@ -169,7 +279,7 @@ export class Connection extends cdk.Resource implements IConnection {
return new Import(scope, id);
}

private static buildConnectionArn(scope: constructs.Construct, connectionName: string) : string {
private static buildConnectionArn(scope: constructs.Construct, connectionName: string): string {
return cdk.Stack.of(scope).formatArn({
service: 'glue',
resource: 'connection',
Expand All @@ -187,7 +297,7 @@ export class Connection extends cdk.Resource implements IConnection {
*/
public readonly connectionName: string;

private readonly properties: {[key: string]: string};
private readonly properties: { [key: string]: string };

constructor(scope: constructs.Construct, id: string, props: ConnectionProps) {
super(scope, id, {
Expand Down
Loading