Skip to content

Commit 44360cc

Browse files
authored
chore(glue): add missing connection types (#32600)
### Issue # (if applicable) N/A ### Reason for this change Missing Glue connection types. Ref: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-connection-connectioninput.html#cfn-glue-connection-connectioninput-connectiontype ``` VIEW_VALIDATION_REDSHIFT - Designates a connection used for view validation by Amazon Redshift. VIEW_VALIDATION_ATHENA - Designates a connection used for view validation by Amazon Athena. ... FACEBOOKADS - Designates a connection to Facebook Ads. GOOGLEADS - Designates a connection to Google Ads. GOOGLESHEETS - Designates a connection to Google Sheets. GOOGLEANALYTICS4 - Designates a connection to Google Analytics 4. HUBSPOT - Designates a connection to HubSpot. INSTAGRAMADS - Designates a connection to Instagram Ads. INTERCOM - Designates a connection to Intercom. JIRACLOUD - Designates a connection to Jira Cloud. MARKETO - Designates a connection to Adobe Marketo Engage. NETSUITEERP - Designates a connection to Oracle NetSuite. SALESFORCE - Designates a connection to Salesforce using OAuth authentication. SALESFORCEMARKETINGCLOUD - Designates a connection to Salesforce Marketing Cloud. SALESFORCEPARDOT - Designates a connection to Salesforce Marketing Cloud Account Engagement (MCAE). SAPODATA - Designates a connection to SAP OData. SERVICENOW - Designates a connection to ServiceNow. SLACK - Designates a connection to Slack. SNAPCHATADS - Designates a connection to Snapchat Ads. STRIPE - Designates a connection to Stripe. ZENDESK - Designates a connection to Zendesk. ZOHOCRM - Designates a connection to Zoho CRM. ``` ### Description of changes Add enums. ### Describe any new or updated permissions being added Nothing. <!— What new or updated IAM permissions are needed to support the changes being introduced ? --> ### Description of how you validated changes Just add enums, so I've not added a test. ### 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 61626dc commit 44360cc

File tree

1 file changed

+112
-2
lines changed

1 file changed

+112
-2
lines changed

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

Lines changed: 112 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,16 @@ export class ConnectionType {
2828
*/
2929
public static readonly MONGODB = new ConnectionType('MONGODB');
3030

31+
/**
32+
* Designates a connection used for view validation by Amazon Redshift.
33+
*/
34+
public static readonly VIEW_VALIDATION_REDSHIFT = new ConnectionType('VIEW_VALIDATION_REDSHIFT');
35+
36+
/**
37+
* Designates a connection used for view validation by Amazon Athena.
38+
*/
39+
public static readonly VIEW_VALIDATION_ATHENA = new ConnectionType('VIEW_VALIDATION_ATHENA');
40+
3141
/**
3242
* Designates a network connection to a data source within an Amazon Virtual Private Cloud environment (Amazon VPC).
3343
*/
@@ -45,6 +55,106 @@ export class ConnectionType {
4555
*/
4656
public static readonly CUSTOM = new ConnectionType('CUSTOM');
4757

58+
/**
59+
* Designates a connection to Facebook Ads.
60+
*/
61+
public static readonly FACEBOOKADS = new ConnectionType('FACEBOOKADS');
62+
63+
/**
64+
* Designates a connection to Google Ads.
65+
*/
66+
public static readonly GOOGLEADS = new ConnectionType('GOOGLEADS');
67+
68+
/**
69+
* Designates a connection to Google Sheets.
70+
*/
71+
public static readonly GOOGLESHEETS = new ConnectionType('GOOGLESHEETS');
72+
73+
/**
74+
* Designates a connection to Google Analytics 4.
75+
*/
76+
public static readonly GOOGLEANALYTICS4 = new ConnectionType('GOOGLEANALYTICS4');
77+
78+
/**
79+
* Designates a connection to HubSpot.
80+
*/
81+
public static readonly HUBSPOT = new ConnectionType('HUBSPOT');
82+
83+
/**
84+
* Designates a connection to Instagram Ads.
85+
*/
86+
public static readonly INSTAGRAMADS = new ConnectionType('INSTAGRAMADS');
87+
88+
/**
89+
* Designates a connection to Intercom.
90+
*/
91+
public static readonly INTERCOM = new ConnectionType('INTERCOM');
92+
93+
/**
94+
* Designates a connection to Jira Cloud.
95+
*/
96+
public static readonly JIRACLOUD = new ConnectionType('JIRACLOUD');
97+
98+
/**
99+
* Designates a connection to Adobe Marketo Engage.
100+
*/
101+
public static readonly MARKETO = new ConnectionType('MARKETO');
102+
103+
/**
104+
* Designates a connection to Oracle NetSuite.
105+
*/
106+
public static readonly NETSUITEERP = new ConnectionType('NETSUITEERP');
107+
108+
/**
109+
* Designates a connection to Salesforce using OAuth authentication.
110+
*/
111+
public static readonly SALESFORCE = new ConnectionType('SALESFORCE');
112+
113+
/**
114+
* Designates a connection to Salesforce Marketing Cloud.
115+
*/
116+
public static readonly SALESFORCEMARKETINGCLOUD = new ConnectionType('SALESFORCEMARKETINGCLOUD');
117+
118+
/**
119+
* Designates a connection to Salesforce Marketing Cloud Account Engagement (MCAE).
120+
*/
121+
public static readonly SALESFORCEPARDOT = new ConnectionType('SALESFORCEPARDOT');
122+
123+
/**
124+
* Designates a connection to SAP OData.
125+
*/
126+
public static readonly SAPODATA = new ConnectionType('SAPODATA');
127+
128+
/**
129+
* Designates a connection to ServiceNow.
130+
*/
131+
public static readonly SERVICENOW = new ConnectionType('SERVICENOW');
132+
133+
/**
134+
* Designates a connection to Slack.
135+
*/
136+
public static readonly SLACK = new ConnectionType('SLACK');
137+
138+
/**
139+
* Designates a connection to Snapchat Ads.
140+
*/
141+
public static readonly SNAPCHATADS = new ConnectionType('SNAPCHATADS');
142+
143+
/**
144+
* Designates a connection to Stripe.
145+
*/
146+
public static readonly STRIPE = new ConnectionType('STRIPE');
147+
148+
/**
149+
* Designates a connection to Zendesk.
150+
*/
151+
public static readonly ZENDESK = new ConnectionType('ZENDESK');
152+
153+
/**
154+
* Designates a connection to Zoho CRM.
155+
*/
156+
public static readonly ZOHOCRM = new ConnectionType('ZOHOCRM');
157+
48158
/**
49159
* The name of this ConnectionType, as expected by Connection resource.
50160
*/
@@ -169,7 +279,7 @@ export class Connection extends cdk.Resource implements IConnection {
169279
return new Import(scope, id);
170280
}
171281

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

190-
private readonly properties: {[key: string]: string};
300+
private readonly properties: { [key: string]: string };
191301

192302
constructor(scope: constructs.Construct, id: string, props: ConnectionProps) {
193303
super(scope, id, {

0 commit comments

Comments
 (0)