@pulumi/digitalocean 4.85.0-alpha.1793836209 → 4.85.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/actionGatewayConnection.d.ts +264 -0
  2. package/actionGatewayConnection.d.ts.map +1 -0
  3. package/actionGatewayConnection.js +189 -0
  4. package/actionGatewayConnection.js.map +1 -0
  5. package/actionGatewayMcpServer.d.ts +367 -0
  6. package/actionGatewayMcpServer.d.ts.map +1 -0
  7. package/actionGatewayMcpServer.js +210 -0
  8. package/actionGatewayMcpServer.js.map +1 -0
  9. package/actionGatewayToolbelt.d.ts +192 -0
  10. package/actionGatewayToolbelt.d.ts.map +1 -0
  11. package/actionGatewayToolbelt.js +139 -0
  12. package/actionGatewayToolbelt.js.map +1 -0
  13. package/getActionGatewayConnection.d.ts +148 -0
  14. package/getActionGatewayConnection.d.ts.map +1 -0
  15. package/getActionGatewayConnection.js +93 -0
  16. package/getActionGatewayConnection.js.map +1 -0
  17. package/getActionGatewayProviders.d.ts +95 -0
  18. package/getActionGatewayProviders.d.ts.map +1 -0
  19. package/getActionGatewayProviders.js +93 -0
  20. package/getActionGatewayProviders.js.map +1 -0
  21. package/getActionGatewayToolbelt.d.ts +111 -0
  22. package/getActionGatewayToolbelt.d.ts.map +1 -0
  23. package/getActionGatewayToolbelt.js +81 -0
  24. package/getActionGatewayToolbelt.js.map +1 -0
  25. package/getKubernetesCluster.d.ts +4 -0
  26. package/getKubernetesCluster.d.ts.map +1 -1
  27. package/getKubernetesCluster.js.map +1 -1
  28. package/getMicrovm.d.ts +5 -0
  29. package/getMicrovm.d.ts.map +1 -1
  30. package/getMicrovm.js.map +1 -1
  31. package/index.d.ts +21 -0
  32. package/index.d.ts.map +1 -1
  33. package/index.js +35 -6
  34. package/index.js.map +1 -1
  35. package/kubernetesCluster.d.ts +12 -0
  36. package/kubernetesCluster.d.ts.map +1 -1
  37. package/kubernetesCluster.js +2 -0
  38. package/kubernetesCluster.js.map +1 -1
  39. package/microvm.d.ts +66 -0
  40. package/microvm.d.ts.map +1 -1
  41. package/microvm.js +46 -0
  42. package/microvm.js.map +1 -1
  43. package/microvmIngress.d.ts +173 -0
  44. package/microvmIngress.d.ts.map +1 -0
  45. package/microvmIngress.js +167 -0
  46. package/microvmIngress.js.map +1 -0
  47. package/package.json +2 -2
  48. package/types/input.d.ts +162 -0
  49. package/types/input.d.ts.map +1 -1
  50. package/types/output.d.ts +283 -0
  51. package/types/output.d.ts.map +1 -1
@@ -0,0 +1,264 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "./types/input";
3
+ import * as outputs from "./types/output";
4
+ /**
5
+ * Provides a DigitalOcean [Action Gateway](https://docs.digitalocean.com/products/managed-agents/action-gateway/)
6
+ * connection resource. A connection authorizes a tool provider, such as GitHub,
7
+ * Jira, or Linear, to act on an account for one actor ID. Sessions whose actor ID
8
+ * matches the connection's `userId` use it for that provider's tools.
9
+ *
10
+ * > **Note:** A connection belongs to the DigitalOcean user who owns the API
11
+ * token Terraform uses, within that token's team. Other team members cannot use
12
+ * it, even with the same `userId`. To let team members create their own
13
+ * connections from a shared credential, register the provider credential in the
14
+ * control panel, make it reusable by the team, and pass its ID as
15
+ * `credentialId`.
16
+ *
17
+ * An OAuth connection starts `pending`. The account holder completes it by
18
+ * opening `authorization.0.connect_url`, which is exported as a sensitive value
19
+ * while the connection is pending. A connection through a team API-key
20
+ * credential is active immediately.
21
+ *
22
+ * ## Example Usage
23
+ *
24
+ * ### Team provider credential
25
+ *
26
+ * ```typescript
27
+ * import * as pulumi from "@pulumi/pulumi";
28
+ * import * as digitalocean from "@pulumi/digitalocean";
29
+ *
30
+ * const linear = new digitalocean.ActionGatewayConnection("linear", {
31
+ * toolProvider: "linear",
32
+ * userId: "support-bot",
33
+ * credentialId: "8d6f2b1a-3c4e-4d5f-9a8b-7c6d5e4f3a2b",
34
+ * });
35
+ * ```
36
+ *
37
+ * ### Private network
38
+ *
39
+ * ```typescript
40
+ * import * as pulumi from "@pulumi/pulumi";
41
+ * import * as digitalocean from "@pulumi/digitalocean";
42
+ *
43
+ * const example = new digitalocean.Vpc("example", {
44
+ * name: "example-vpc",
45
+ * region: "ric1",
46
+ * });
47
+ * const privateJira = new digitalocean.ActionGatewayConnection("private_jira", {
48
+ * toolProvider: "jira",
49
+ * userId: "user-123",
50
+ * credentialId: "8d6f2b1a-3c4e-4d5f-9a8b-7c6d5e4f3a2b",
51
+ * connectionParameters: {
52
+ * site_url: "https://jira.internal.example.com",
53
+ * },
54
+ * vpc: {
55
+ * vpcUuid: example.id,
56
+ * destinations: [{
57
+ * host: "jira.internal.example.com",
58
+ * port: 443,
59
+ * allowedIpCidrs: ["10.116.0.0/20"],
60
+ * }],
61
+ * },
62
+ * });
63
+ * ```
64
+ *
65
+ * ## Import
66
+ *
67
+ * A connection can be imported using its `id`, e.g.
68
+ *
69
+ * ```sh
70
+ * $ pulumi import digitalocean:index/actionGatewayConnection:ActionGatewayConnection jira 39f9f768-a7f9-4c91-9557-3328c53dd054
71
+ * ```
72
+ *
73
+ * Import reads `scopes` and `connectionParameters` from the API. If the
74
+ * connection was granted more scopes than your configuration lists, or the API
75
+ * stored a connection parameter in a different form, the next plan replaces the
76
+ * connection. Run `pulumi preview` after importing and update the configuration
77
+ * to match the imported values before you apply.
78
+ */
79
+ export declare class ActionGatewayConnection extends pulumi.CustomResource {
80
+ /**
81
+ * Get an existing ActionGatewayConnection resource's state with the given name, ID, and optional extra
82
+ * properties used to qualify the lookup.
83
+ *
84
+ * @param name The _unique_ name of the resulting resource.
85
+ * @param id The _unique_ provider ID of the resource to lookup.
86
+ * @param state Any extra arguments used during the lookup.
87
+ * @param opts Optional settings to control the behavior of the CustomResource.
88
+ */
89
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ActionGatewayConnectionState, opts?: pulumi.CustomResourceOptions): ActionGatewayConnection;
90
+ /**
91
+ * Check whether an existing ActionGatewayConnection resource with the given ID exists.
92
+ *
93
+ * @param id The _unique_ provider ID of the resource to check.
94
+ * @param state Any extra arguments used during the lookup.
95
+ * @param opts Optional settings to control the behavior of the CustomResource.
96
+ */
97
+ static exists(id: pulumi.Input<string>, state?: ActionGatewayConnectionState, opts?: pulumi.CustomResourceOptions): pulumi.Output<boolean>;
98
+ /**
99
+ * Returns true if the given object is an instance of ActionGatewayConnection. This is designed to work even
100
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
101
+ */
102
+ static isInstance(obj: any): obj is ActionGatewayConnection;
103
+ /**
104
+ * The authorization the account holder still has to complete. Set only while the connection is pending.
105
+ */
106
+ readonly authorizations: pulumi.Output<outputs.ActionGatewayConnectionAuthorization[]>;
107
+ /**
108
+ * A map of values for the provider's connection parameters, such as `siteUrl` for Jira.
109
+ */
110
+ readonly connectionParameters: pulumi.Output<{
111
+ [key: string]: string;
112
+ } | undefined>;
113
+ /**
114
+ * When the connection was created.
115
+ */
116
+ readonly createdAt: pulumi.Output<string>;
117
+ /**
118
+ * The ID of a team provider credential, such as your own OAuth application or an API key, to connect through. When omitted, DigitalOcean's shared OAuth application is used.
119
+ */
120
+ readonly credentialId: pulumi.Output<string | undefined>;
121
+ /**
122
+ * The kind of credential the connection uses: `digitaloceanOauth`, `privateOauth`, or `teamApiKey`.
123
+ */
124
+ readonly credentialKind: pulumi.Output<string>;
125
+ /**
126
+ * When the account holder completed authorization.
127
+ */
128
+ readonly grantedAt: pulumi.Output<string>;
129
+ /**
130
+ * The DigitalOcean user ID of the user who created the connection.
131
+ */
132
+ readonly owningUserId: pulumi.Output<string>;
133
+ /**
134
+ * The OAuth scopes to request. When omitted or empty, every scope the provider offers is requested. Ignored for API-key credentials.
135
+ */
136
+ readonly scopes: pulumi.Output<string[]>;
137
+ /**
138
+ * The status of the authorization.
139
+ */
140
+ readonly status: pulumi.Output<string>;
141
+ /**
142
+ * The slug of the tool provider, such as `github` or `jira`. The `digitalocean.getActionGatewayProviders` data source lists the available providers.
143
+ */
144
+ readonly toolProvider: pulumi.Output<string>;
145
+ /**
146
+ * The human-readable name of the tool provider.
147
+ */
148
+ readonly toolProviderDisplayName: pulumi.Output<string>;
149
+ /**
150
+ * When the connection was last modified.
151
+ */
152
+ readonly updatedAt: pulumi.Output<string>;
153
+ /**
154
+ * The actor ID the connection acts for: 1 to 64 characters from `[A-Za-z0-9._-]`. Use the actor ID of the sessions that need this account.
155
+ */
156
+ readonly userId: pulumi.Output<string>;
157
+ /**
158
+ * Routes the connection's calls through a VPC. VPC networking must be enabled for your team.
159
+ */
160
+ readonly vpc: pulumi.Output<outputs.ActionGatewayConnectionVpc | undefined>;
161
+ /**
162
+ * Create a ActionGatewayConnection resource with the given unique name, arguments, and options.
163
+ *
164
+ * @param name The _unique_ name of the resource.
165
+ * @param args The arguments to use to populate this resource's properties.
166
+ * @param opts A bag of options that control this resource's behavior.
167
+ */
168
+ constructor(name: string, args: ActionGatewayConnectionArgs, opts?: pulumi.CustomResourceOptions);
169
+ }
170
+ /**
171
+ * Input properties used for looking up and filtering ActionGatewayConnection resources.
172
+ */
173
+ export interface ActionGatewayConnectionState {
174
+ /**
175
+ * The authorization the account holder still has to complete. Set only while the connection is pending.
176
+ */
177
+ authorizations?: pulumi.Input<pulumi.Input<inputs.ActionGatewayConnectionAuthorization>[] | undefined>;
178
+ /**
179
+ * A map of values for the provider's connection parameters, such as `siteUrl` for Jira.
180
+ */
181
+ connectionParameters?: pulumi.Input<{
182
+ [key: string]: pulumi.Input<string>;
183
+ } | undefined>;
184
+ /**
185
+ * When the connection was created.
186
+ */
187
+ createdAt?: pulumi.Input<string | undefined>;
188
+ /**
189
+ * The ID of a team provider credential, such as your own OAuth application or an API key, to connect through. When omitted, DigitalOcean's shared OAuth application is used.
190
+ */
191
+ credentialId?: pulumi.Input<string | undefined>;
192
+ /**
193
+ * The kind of credential the connection uses: `digitaloceanOauth`, `privateOauth`, or `teamApiKey`.
194
+ */
195
+ credentialKind?: pulumi.Input<string | undefined>;
196
+ /**
197
+ * When the account holder completed authorization.
198
+ */
199
+ grantedAt?: pulumi.Input<string | undefined>;
200
+ /**
201
+ * The DigitalOcean user ID of the user who created the connection.
202
+ */
203
+ owningUserId?: pulumi.Input<string | undefined>;
204
+ /**
205
+ * The OAuth scopes to request. When omitted or empty, every scope the provider offers is requested. Ignored for API-key credentials.
206
+ */
207
+ scopes?: pulumi.Input<pulumi.Input<string>[] | undefined>;
208
+ /**
209
+ * The status of the authorization.
210
+ */
211
+ status?: pulumi.Input<string | undefined>;
212
+ /**
213
+ * The slug of the tool provider, such as `github` or `jira`. The `digitalocean.getActionGatewayProviders` data source lists the available providers.
214
+ */
215
+ toolProvider?: pulumi.Input<string | undefined>;
216
+ /**
217
+ * The human-readable name of the tool provider.
218
+ */
219
+ toolProviderDisplayName?: pulumi.Input<string | undefined>;
220
+ /**
221
+ * When the connection was last modified.
222
+ */
223
+ updatedAt?: pulumi.Input<string | undefined>;
224
+ /**
225
+ * The actor ID the connection acts for: 1 to 64 characters from `[A-Za-z0-9._-]`. Use the actor ID of the sessions that need this account.
226
+ */
227
+ userId?: pulumi.Input<string | undefined>;
228
+ /**
229
+ * Routes the connection's calls through a VPC. VPC networking must be enabled for your team.
230
+ */
231
+ vpc?: pulumi.Input<inputs.ActionGatewayConnectionVpc | undefined>;
232
+ }
233
+ /**
234
+ * The set of arguments for constructing a ActionGatewayConnection resource.
235
+ */
236
+ export interface ActionGatewayConnectionArgs {
237
+ /**
238
+ * A map of values for the provider's connection parameters, such as `siteUrl` for Jira.
239
+ */
240
+ connectionParameters?: pulumi.Input<{
241
+ [key: string]: pulumi.Input<string>;
242
+ } | undefined>;
243
+ /**
244
+ * The ID of a team provider credential, such as your own OAuth application or an API key, to connect through. When omitted, DigitalOcean's shared OAuth application is used.
245
+ */
246
+ credentialId?: pulumi.Input<string | undefined>;
247
+ /**
248
+ * The OAuth scopes to request. When omitted or empty, every scope the provider offers is requested. Ignored for API-key credentials.
249
+ */
250
+ scopes?: pulumi.Input<pulumi.Input<string>[] | undefined>;
251
+ /**
252
+ * The slug of the tool provider, such as `github` or `jira`. The `digitalocean.getActionGatewayProviders` data source lists the available providers.
253
+ */
254
+ toolProvider: pulumi.Input<string>;
255
+ /**
256
+ * The actor ID the connection acts for: 1 to 64 characters from `[A-Za-z0-9._-]`. Use the actor ID of the sessions that need this account.
257
+ */
258
+ userId: pulumi.Input<string>;
259
+ /**
260
+ * Routes the connection's calls through a VPC. VPC networking must be enabled for your team.
261
+ */
262
+ vpc?: pulumi.Input<inputs.ActionGatewayConnectionVpc | undefined>;
263
+ }
264
+ //# sourceMappingURL=actionGatewayConnection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"actionGatewayConnection.d.ts","sourceRoot":"","sources":["../actionGatewayConnection.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAI1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0EG;AACH,qBAAa,uBAAwB,SAAQ,MAAM,CAAC,cAAc;IAC9D;;;;;;;;OAQG;WACW,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,4BAA4B,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB,GAAG,uBAAuB;IAIhK;;;;;;OAMG;WACW,MAAM,CAAC,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,KAAK,CAAC,EAAE,4BAA4B,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB,GAAG,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC;IAOjJ;;;OAGG;WACW,UAAU,CAAC,GAAG,EAAE,GAAG,GAA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AAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAChD;;OAEG;IACH,uBAAuB,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC3D;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC7C;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC1C;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,0BAA0B,GAAG,SAAS,CAAC,CAAC;CACrE;AAED;;GAEG;AACH,MAAM,WAAW,2BAA2B;IACxC;;OAEG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA;KAAC,GAAG,SAAS,CAAC,CAAC;IACvF;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAChD;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,GAAG,SAAS,CAAC,CAAC;IAC1D;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACnC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC7B;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,0BAA0B,GAAG,SAAS,CAAC,CAAC;CACrE"}
@@ -0,0 +1,189 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
5
+ if (k2 === undefined) k2 = k;
6
+ var desc = Object.getOwnPropertyDescriptor(m, k);
7
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
8
+ desc = { enumerable: true, get: function() { return m[k]; } };
9
+ }
10
+ Object.defineProperty(o, k2, desc);
11
+ }) : (function(o, m, k, k2) {
12
+ if (k2 === undefined) k2 = k;
13
+ o[k2] = m[k];
14
+ }));
15
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
16
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
17
+ }) : function(o, v) {
18
+ o["default"] = v;
19
+ });
20
+ var __importStar = (this && this.__importStar) || function (mod) {
21
+ if (mod && mod.__esModule) return mod;
22
+ var result = {};
23
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
24
+ __setModuleDefault(result, mod);
25
+ return result;
26
+ };
27
+ Object.defineProperty(exports, "__esModule", { value: true });
28
+ exports.ActionGatewayConnection = void 0;
29
+ const pulumi = __importStar(require("@pulumi/pulumi"));
30
+ const utilities = __importStar(require("./utilities"));
31
+ /**
32
+ * Provides a DigitalOcean [Action Gateway](https://docs.digitalocean.com/products/managed-agents/action-gateway/)
33
+ * connection resource. A connection authorizes a tool provider, such as GitHub,
34
+ * Jira, or Linear, to act on an account for one actor ID. Sessions whose actor ID
35
+ * matches the connection's `userId` use it for that provider's tools.
36
+ *
37
+ * > **Note:** A connection belongs to the DigitalOcean user who owns the API
38
+ * token Terraform uses, within that token's team. Other team members cannot use
39
+ * it, even with the same `userId`. To let team members create their own
40
+ * connections from a shared credential, register the provider credential in the
41
+ * control panel, make it reusable by the team, and pass its ID as
42
+ * `credentialId`.
43
+ *
44
+ * An OAuth connection starts `pending`. The account holder completes it by
45
+ * opening `authorization.0.connect_url`, which is exported as a sensitive value
46
+ * while the connection is pending. A connection through a team API-key
47
+ * credential is active immediately.
48
+ *
49
+ * ## Example Usage
50
+ *
51
+ * ### Team provider credential
52
+ *
53
+ * ```typescript
54
+ * import * as pulumi from "@pulumi/pulumi";
55
+ * import * as digitalocean from "@pulumi/digitalocean";
56
+ *
57
+ * const linear = new digitalocean.ActionGatewayConnection("linear", {
58
+ * toolProvider: "linear",
59
+ * userId: "support-bot",
60
+ * credentialId: "8d6f2b1a-3c4e-4d5f-9a8b-7c6d5e4f3a2b",
61
+ * });
62
+ * ```
63
+ *
64
+ * ### Private network
65
+ *
66
+ * ```typescript
67
+ * import * as pulumi from "@pulumi/pulumi";
68
+ * import * as digitalocean from "@pulumi/digitalocean";
69
+ *
70
+ * const example = new digitalocean.Vpc("example", {
71
+ * name: "example-vpc",
72
+ * region: "ric1",
73
+ * });
74
+ * const privateJira = new digitalocean.ActionGatewayConnection("private_jira", {
75
+ * toolProvider: "jira",
76
+ * userId: "user-123",
77
+ * credentialId: "8d6f2b1a-3c4e-4d5f-9a8b-7c6d5e4f3a2b",
78
+ * connectionParameters: {
79
+ * site_url: "https://jira.internal.example.com",
80
+ * },
81
+ * vpc: {
82
+ * vpcUuid: example.id,
83
+ * destinations: [{
84
+ * host: "jira.internal.example.com",
85
+ * port: 443,
86
+ * allowedIpCidrs: ["10.116.0.0/20"],
87
+ * }],
88
+ * },
89
+ * });
90
+ * ```
91
+ *
92
+ * ## Import
93
+ *
94
+ * A connection can be imported using its `id`, e.g.
95
+ *
96
+ * ```sh
97
+ * $ pulumi import digitalocean:index/actionGatewayConnection:ActionGatewayConnection jira 39f9f768-a7f9-4c91-9557-3328c53dd054
98
+ * ```
99
+ *
100
+ * Import reads `scopes` and `connectionParameters` from the API. If the
101
+ * connection was granted more scopes than your configuration lists, or the API
102
+ * stored a connection parameter in a different form, the next plan replaces the
103
+ * connection. Run `pulumi preview` after importing and update the configuration
104
+ * to match the imported values before you apply.
105
+ */
106
+ class ActionGatewayConnection extends pulumi.CustomResource {
107
+ /**
108
+ * Get an existing ActionGatewayConnection resource's state with the given name, ID, and optional extra
109
+ * properties used to qualify the lookup.
110
+ *
111
+ * @param name The _unique_ name of the resulting resource.
112
+ * @param id The _unique_ provider ID of the resource to lookup.
113
+ * @param state Any extra arguments used during the lookup.
114
+ * @param opts Optional settings to control the behavior of the CustomResource.
115
+ */
116
+ static get(name, id, state, opts) {
117
+ return new ActionGatewayConnection(name, state, { ...opts, id: id });
118
+ }
119
+ /**
120
+ * Check whether an existing ActionGatewayConnection resource with the given ID exists.
121
+ *
122
+ * @param id The _unique_ provider ID of the resource to check.
123
+ * @param state Any extra arguments used during the lookup.
124
+ * @param opts Optional settings to control the behavior of the CustomResource.
125
+ */
126
+ static exists(id, state, opts) {
127
+ return pulumi.runtime.existsResource("digitalocean:index/actionGatewayConnection:ActionGatewayConnection", id, state || {}, { ...opts }, undefined);
128
+ }
129
+ /** @internal */
130
+ static __pulumiType = 'digitalocean:index/actionGatewayConnection:ActionGatewayConnection';
131
+ /**
132
+ * Returns true if the given object is an instance of ActionGatewayConnection. This is designed to work even
133
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
134
+ */
135
+ static isInstance(obj) {
136
+ if (obj === undefined || obj === null) {
137
+ return false;
138
+ }
139
+ return obj['__pulumiType'] === ActionGatewayConnection.__pulumiType;
140
+ }
141
+ constructor(name, argsOrState, opts) {
142
+ let resourceInputs = {};
143
+ opts = opts || {};
144
+ if (opts.id) {
145
+ const state = argsOrState;
146
+ resourceInputs["authorizations"] = state?.authorizations;
147
+ resourceInputs["connectionParameters"] = state?.connectionParameters;
148
+ resourceInputs["createdAt"] = state?.createdAt;
149
+ resourceInputs["credentialId"] = state?.credentialId;
150
+ resourceInputs["credentialKind"] = state?.credentialKind;
151
+ resourceInputs["grantedAt"] = state?.grantedAt;
152
+ resourceInputs["owningUserId"] = state?.owningUserId;
153
+ resourceInputs["scopes"] = state?.scopes;
154
+ resourceInputs["status"] = state?.status;
155
+ resourceInputs["toolProvider"] = state?.toolProvider;
156
+ resourceInputs["toolProviderDisplayName"] = state?.toolProviderDisplayName;
157
+ resourceInputs["updatedAt"] = state?.updatedAt;
158
+ resourceInputs["userId"] = state?.userId;
159
+ resourceInputs["vpc"] = state?.vpc;
160
+ }
161
+ else {
162
+ const args = argsOrState;
163
+ if (args?.toolProvider === undefined && !opts.urn) {
164
+ throw new Error("Missing required property 'toolProvider'");
165
+ }
166
+ if (args?.userId === undefined && !opts.urn) {
167
+ throw new Error("Missing required property 'userId'");
168
+ }
169
+ resourceInputs["connectionParameters"] = args?.connectionParameters;
170
+ resourceInputs["credentialId"] = args?.credentialId;
171
+ resourceInputs["scopes"] = args?.scopes;
172
+ resourceInputs["toolProvider"] = args?.toolProvider;
173
+ resourceInputs["userId"] = args?.userId;
174
+ resourceInputs["vpc"] = args?.vpc;
175
+ resourceInputs["authorizations"] = undefined /*out*/;
176
+ resourceInputs["createdAt"] = undefined /*out*/;
177
+ resourceInputs["credentialKind"] = undefined /*out*/;
178
+ resourceInputs["grantedAt"] = undefined /*out*/;
179
+ resourceInputs["owningUserId"] = undefined /*out*/;
180
+ resourceInputs["status"] = undefined /*out*/;
181
+ resourceInputs["toolProviderDisplayName"] = undefined /*out*/;
182
+ resourceInputs["updatedAt"] = undefined /*out*/;
183
+ }
184
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
185
+ super(ActionGatewayConnection.__pulumiType, name, resourceInputs, opts);
186
+ }
187
+ }
188
+ exports.ActionGatewayConnection = ActionGatewayConnection;
189
+ //# sourceMappingURL=actionGatewayConnection.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"actionGatewayConnection.js","sourceRoot":"","sources":["../actionGatewayConnection.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAIzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0EG;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