@pulumi/digitalocean 4.86.0-alpha.1795154248 → 4.86.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.
@@ -10,9 +10,9 @@ import * as outputs from "./types/output";
10
10
  * > **Note:** A connection belongs to the DigitalOcean user who owns the API
11
11
  * token Terraform uses, within that token's team. Other team members cannot use
12
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`.
13
+ * connections from a shared credential, register a
14
+ * `digitalocean.ActionGatewayProviderCredential`
15
+ * with `reusableByTeam` set, and pass its ID as `credentialId`.
16
16
  *
17
17
  * An OAuth connection starts `pending`. The account holder completes it by
18
18
  * opening `authorization.0.connect_url`, which is exported as a sensitive value
@@ -23,14 +23,27 @@ import * as outputs from "./types/output";
23
23
  *
24
24
  * ### Team provider credential
25
25
  *
26
+ * The credential in this example sets `reusableByTeam`, so everyone on the
27
+ * team can connect through it. Sharing may require the team owner role and
28
+ * cannot be undone. Leave `reusableByTeam` out to keep the credential private
29
+ * to the DigitalOcean user who owns Terraform's API token, which is enough for
30
+ * connections created with the same token.
31
+ *
26
32
  * ```typescript
27
33
  * import * as pulumi from "@pulumi/pulumi";
28
34
  * import * as digitalocean from "@pulumi/digitalocean";
29
35
  *
30
- * const linear = new digitalocean.ActionGatewayConnection("linear", {
36
+ * const linear = new digitalocean.ActionGatewayProviderCredential("linear", {
37
+ * toolProvider: "linear",
38
+ * kind: "api_key",
39
+ * displayName: "Production key",
40
+ * apiKey: linearApiKey,
41
+ * reusableByTeam: true,
42
+ * });
43
+ * const linearActionGatewayConnection = new digitalocean.ActionGatewayConnection("linear", {
31
44
  * toolProvider: "linear",
32
45
  * userId: "support-bot",
33
- * credentialId: "8d6f2b1a-3c4e-4d5f-9a8b-7c6d5e4f3a2b",
46
+ * credentialId: linear.id,
34
47
  * });
35
48
  * ```
36
49
  *
@@ -115,7 +128,7 @@ export declare class ActionGatewayConnection extends pulumi.CustomResource {
115
128
  */
116
129
  readonly createdAt: pulumi.Output<string>;
117
130
  /**
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.
131
+ * The ID of a `digitalocean.ActionGatewayProviderCredential`, such as your own OAuth application or an API key, to connect through. When omitted, DigitalOcean's shared OAuth application is used.
119
132
  */
120
133
  readonly credentialId: pulumi.Output<string | undefined>;
121
134
  /**
@@ -186,7 +199,7 @@ export interface ActionGatewayConnectionState {
186
199
  */
187
200
  createdAt?: pulumi.Input<string | undefined>;
188
201
  /**
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.
202
+ * The ID of a `digitalocean.ActionGatewayProviderCredential`, such as your own OAuth application or an API key, to connect through. When omitted, DigitalOcean's shared OAuth application is used.
190
203
  */
191
204
  credentialId?: pulumi.Input<string | undefined>;
192
205
  /**
@@ -241,7 +254,7 @@ export interface ActionGatewayConnectionArgs {
241
254
  [key: string]: pulumi.Input<string>;
242
255
  } | undefined>;
243
256
  /**
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.
257
+ * The ID of a `digitalocean.ActionGatewayProviderCredential`, such as your own OAuth application or an API key, to connect through. When omitted, DigitalOcean's shared OAuth application is used.
245
258
  */
246
259
  credentialId?: pulumi.Input<string | undefined>;
247
260
  /**
@@ -1 +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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA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C,EAAE,MAAM,CAAC,KAAK,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"}
@@ -37,9 +37,9 @@ const utilities = __importStar(require("./utilities"));
37
37
  * > **Note:** A connection belongs to the DigitalOcean user who owns the API
38
38
  * token Terraform uses, within that token's team. Other team members cannot use
39
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`.
40
+ * connections from a shared credential, register a
41
+ * `digitalocean.ActionGatewayProviderCredential`
42
+ * with `reusableByTeam` set, and pass its ID as `credentialId`.
43
43
  *
44
44
  * An OAuth connection starts `pending`. The account holder completes it by
45
45
  * opening `authorization.0.connect_url`, which is exported as a sensitive value
@@ -50,14 +50,27 @@ const utilities = __importStar(require("./utilities"));
50
50
  *
51
51
  * ### Team provider credential
52
52
  *
53
+ * The credential in this example sets `reusableByTeam`, so everyone on the
54
+ * team can connect through it. Sharing may require the team owner role and
55
+ * cannot be undone. Leave `reusableByTeam` out to keep the credential private
56
+ * to the DigitalOcean user who owns Terraform's API token, which is enough for
57
+ * connections created with the same token.
58
+ *
53
59
  * ```typescript
54
60
  * import * as pulumi from "@pulumi/pulumi";
55
61
  * import * as digitalocean from "@pulumi/digitalocean";
56
62
  *
57
- * const linear = new digitalocean.ActionGatewayConnection("linear", {
63
+ * const linear = new digitalocean.ActionGatewayProviderCredential("linear", {
64
+ * toolProvider: "linear",
65
+ * kind: "api_key",
66
+ * displayName: "Production key",
67
+ * apiKey: linearApiKey,
68
+ * reusableByTeam: true,
69
+ * });
70
+ * const linearActionGatewayConnection = new digitalocean.ActionGatewayConnection("linear", {
58
71
  * toolProvider: "linear",
59
72
  * userId: "support-bot",
60
- * credentialId: "8d6f2b1a-3c4e-4d5f-9a8b-7c6d5e4f3a2b",
73
+ * credentialId: linear.id,
61
74
  * });
62
75
  * ```
63
76
  *
@@ -1 +1 @@
1
- {"version":3,"file":"actionGatewayConnection.js","sourceRoot":"","sources":["../actionGatewayConnection.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAIzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACrD,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,cAAc,CAAC,gBAAgB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACrD,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACnD,cAAc,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC7C,cAAc,CAAC,yBAAyB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC9D,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACnD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,uBAAuB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC5E,CAAC;;AApJL,0DAqJC"}
@@ -0,0 +1,319 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Provides a DigitalOcean [Action Gateway](https://docs.digitalocean.com/products/managed-agents/action-gateway/)
4
+ * provider credential resource. A provider credential is an OAuth client or an
5
+ * API key that your team registers for a tool provider, such as GitHub, Jira, or
6
+ * Linear, to use instead of DigitalOcean's shared OAuth application. A
7
+ * `digitalocean.ActionGatewayConnection` connects
8
+ * through it by its `credentialId`.
9
+ *
10
+ * > **Warning:** Destroying a provider credential also deletes every connection
11
+ * that uses it, including connections Terraform does not manage, and their users
12
+ * lose access to the provider. The API cannot restore a deleted credential. Changing
13
+ * `toolProvider`, `kind`, `clientId`, or `redirectUrl`, or turning
14
+ * `reusableByTeam` off, replaces the credential, which destroys it first. Set
15
+ * `preventDestroy`
16
+ * on credentials you cannot afford to lose, as the examples below do. Rotating a
17
+ * secret or renaming a credential never replaces it.
18
+ *
19
+ * > **Note:** The API never returns `apiKey` or `clientSecret`. Terraform
20
+ * keeps the values you configure in its state, marked sensitive, so protect the
21
+ * state accordingly.
22
+ *
23
+ * ## Example Usage
24
+ *
25
+ * ### OAuth client
26
+ *
27
+ * ```typescript
28
+ * import * as pulumi from "@pulumi/pulumi";
29
+ * import * as digitalocean from "@pulumi/digitalocean";
30
+ *
31
+ * const config = new pulumi.Config();
32
+ * const githubClientSecret = config.require("githubClientSecret");
33
+ * const github = new digitalocean.ActionGatewayProviderCredential("github", {
34
+ * toolProvider: "github",
35
+ * kind: "oauth_client",
36
+ * displayName: "Production GitHub app",
37
+ * clientId: "Iv1.0123456789abcdef",
38
+ * clientSecret: githubClientSecret,
39
+ * });
40
+ * const githubActionGatewayConnection = new digitalocean.ActionGatewayConnection("github", {
41
+ * toolProvider: github.toolProvider,
42
+ * userId: "user-123",
43
+ * credentialId: github.id,
44
+ * });
45
+ * ```
46
+ *
47
+ * ### API key
48
+ *
49
+ * A connection through an API-key credential is active immediately, without an
50
+ * authorization step.
51
+ *
52
+ * ```typescript
53
+ * import * as pulumi from "@pulumi/pulumi";
54
+ * import * as digitalocean from "@pulumi/digitalocean";
55
+ *
56
+ * const config = new pulumi.Config();
57
+ * const linearApiKey = config.require("linearApiKey");
58
+ * const linear = new digitalocean.ActionGatewayProviderCredential("linear", {
59
+ * toolProvider: "linear",
60
+ * kind: "api_key",
61
+ * displayName: "Production key",
62
+ * apiKey: linearApiKey,
63
+ * });
64
+ * const linearActionGatewayConnection = new digitalocean.ActionGatewayConnection("linear", {
65
+ * toolProvider: linear.toolProvider,
66
+ * userId: "support-bot",
67
+ * credentialId: linear.id,
68
+ * });
69
+ * ```
70
+ *
71
+ * ### API key with credential parameters
72
+ *
73
+ * ```typescript
74
+ * import * as pulumi from "@pulumi/pulumi";
75
+ * import * as digitalocean from "@pulumi/digitalocean";
76
+ *
77
+ * const example = new digitalocean.ActionGatewayProviderCredential("example", {
78
+ * toolProvider: "example-provider",
79
+ * kind: "api_key",
80
+ * displayName: "Production key",
81
+ * apiKey: exampleApiKey,
82
+ * credentialParameters: {
83
+ * subdomain: "example",
84
+ * },
85
+ * });
86
+ * ```
87
+ *
88
+ * ## Import
89
+ *
90
+ * A provider credential can be imported using its `id`, e.g.
91
+ *
92
+ * ```sh
93
+ * $ pulumi import digitalocean:index/actionGatewayProviderCredential:ActionGatewayProviderCredential github example-credential-id
94
+ * ```
95
+ *
96
+ * The API does not return a credential's secret or its OAuth client ID, so an
97
+ * imported credential has neither in state, and the first plan after an import
98
+ * shows them being set. Applying it sends the configured `apiKey`, or
99
+ * `clientId` and `clientSecret`, as an in-place update that keeps the
100
+ * credential and its connections. For an OAuth client the API accepts that update
101
+ * only when `clientId` is the ID the credential was registered with, so a
102
+ * credential imported into the wrong configuration fails to apply instead of
103
+ * being overwritten.
104
+ *
105
+ * Import reads `toolProvider`, `kind`, and `redirectUrl` from the API. If one
106
+ * differs from your configuration, the next plan replaces the credential. Run
107
+ * `pulumi preview` after importing and make sure it shows an in-place update, not
108
+ * a replacement, before you apply.
109
+ */
110
+ export declare class ActionGatewayProviderCredential extends pulumi.CustomResource {
111
+ /**
112
+ * Get an existing ActionGatewayProviderCredential resource's state with the given name, ID, and optional extra
113
+ * properties used to qualify the lookup.
114
+ *
115
+ * @param name The _unique_ name of the resulting resource.
116
+ * @param id The _unique_ provider ID of the resource to lookup.
117
+ * @param state Any extra arguments used during the lookup.
118
+ * @param opts Optional settings to control the behavior of the CustomResource.
119
+ */
120
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ActionGatewayProviderCredentialState, opts?: pulumi.CustomResourceOptions): ActionGatewayProviderCredential;
121
+ /**
122
+ * Check whether an existing ActionGatewayProviderCredential resource with the given ID exists.
123
+ *
124
+ * @param id The _unique_ provider ID of the resource to check.
125
+ * @param state Any extra arguments used during the lookup.
126
+ * @param opts Optional settings to control the behavior of the CustomResource.
127
+ */
128
+ static exists(id: pulumi.Input<string>, state?: ActionGatewayProviderCredentialState, opts?: pulumi.CustomResourceOptions): pulumi.Output<boolean>;
129
+ /**
130
+ * Returns true if the given object is an instance of ActionGatewayProviderCredential. This is designed to work even
131
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
132
+ */
133
+ static isInstance(obj: any): obj is ActionGatewayProviderCredential;
134
+ /**
135
+ * The key or token sent to the tool provider. Required for `kind = "apiKey"` and not accepted otherwise. Changing it rotates the key in place: the credential keeps its ID, and its connections use the new key on their next call.
136
+ */
137
+ readonly apiKey: pulumi.Output<string | undefined>;
138
+ /**
139
+ * The HTTPS origin of the tool provider's API, such as `https://api.example.com`. Accepted only by tool providers that allow one. Conflicts with `credentialParameters`. Removing it from the configuration leaves the stored origin in place.
140
+ */
141
+ readonly baseUrl: pulumi.Output<string>;
142
+ /**
143
+ * The client ID of your OAuth client. Required for `kind = "oauthClient"` and not accepted otherwise. A credential is bound to the client ID it was registered with, so changing this replaces the credential.
144
+ */
145
+ readonly clientId: pulumi.Output<string | undefined>;
146
+ /**
147
+ * The client secret of your OAuth client. Required for `kind = "oauthClient"` and not accepted otherwise. Changing it rotates the secret in place.
148
+ */
149
+ readonly clientSecret: pulumi.Output<string | undefined>;
150
+ /**
151
+ * When the credential was created.
152
+ */
153
+ readonly createdAt: pulumi.Output<string>;
154
+ /**
155
+ * A map of values for the credential parameters the tool provider declares, which the [providers API](https://docs.digitalocean.com/reference/api/) lists as `credentialParameters`. The API validates them and derives `baseUrl` from them. Accepted only for `kind = "apiKey"`. Conflicts with `baseUrl`.
156
+ */
157
+ readonly credentialParameters: pulumi.Output<{
158
+ [key: string]: string;
159
+ } | undefined>;
160
+ /**
161
+ * A label of 1 to 255 characters, unique among your team's credentials for the tool provider, ignoring case.
162
+ */
163
+ readonly displayName: pulumi.Output<string>;
164
+ /**
165
+ * The kind of credential: `oauthClient` for an OAuth client you created at the tool provider, or `apiKey` for a key or token. Changing this replaces the credential.
166
+ */
167
+ readonly kind: pulumi.Output<string>;
168
+ /**
169
+ * The DigitalOcean user ID of the credential's creator. Empty for a credential shared with the team.
170
+ */
171
+ readonly owningUserId: pulumi.Output<string>;
172
+ /**
173
+ * The HTTPS redirect URI registered with your OAuth client, for `kind = "oauthClient"` only. Custom OAuth redirects must be enabled for your account. Omit it to use DigitalOcean's callback. Changing this replaces the credential.
174
+ */
175
+ readonly redirectUrl: pulumi.Output<string | undefined>;
176
+ /**
177
+ * Whether everyone on your team can see and use the credential instead of only the DigitalOcean user who owns Terraform's API token. Defaults to `false`. Sharing a credential may require the team owner role. Sharing cannot be undone, so changing this from `true` to `false` replaces the credential.
178
+ */
179
+ readonly reusableByTeam: pulumi.Output<boolean | undefined>;
180
+ /**
181
+ * Who can use the credential: `user` for only its creator, or `team`.
182
+ */
183
+ readonly scope: pulumi.Output<string>;
184
+ /**
185
+ * The status of the credential: `active` or `disabled`. Connections cannot use a disabled credential.
186
+ */
187
+ readonly status: pulumi.Output<string>;
188
+ /**
189
+ * The slug of the tool provider the credential is for, such as `github` or `jira`. The `digitalocean.getActionGatewayProviders` data source lists the available providers and, in `authTypes`, the kinds of credential each accepts. Changing this replaces the credential.
190
+ */
191
+ readonly toolProvider: pulumi.Output<string>;
192
+ /**
193
+ * When the credential was last modified.
194
+ */
195
+ readonly updatedAt: pulumi.Output<string>;
196
+ /**
197
+ * Create a ActionGatewayProviderCredential resource with the given unique name, arguments, and options.
198
+ *
199
+ * @param name The _unique_ name of the resource.
200
+ * @param args The arguments to use to populate this resource's properties.
201
+ * @param opts A bag of options that control this resource's behavior.
202
+ */
203
+ constructor(name: string, args: ActionGatewayProviderCredentialArgs, opts?: pulumi.CustomResourceOptions);
204
+ }
205
+ /**
206
+ * Input properties used for looking up and filtering ActionGatewayProviderCredential resources.
207
+ */
208
+ export interface ActionGatewayProviderCredentialState {
209
+ /**
210
+ * The key or token sent to the tool provider. Required for `kind = "apiKey"` and not accepted otherwise. Changing it rotates the key in place: the credential keeps its ID, and its connections use the new key on their next call.
211
+ */
212
+ apiKey?: pulumi.Input<string | undefined>;
213
+ /**
214
+ * The HTTPS origin of the tool provider's API, such as `https://api.example.com`. Accepted only by tool providers that allow one. Conflicts with `credentialParameters`. Removing it from the configuration leaves the stored origin in place.
215
+ */
216
+ baseUrl?: pulumi.Input<string | undefined>;
217
+ /**
218
+ * The client ID of your OAuth client. Required for `kind = "oauthClient"` and not accepted otherwise. A credential is bound to the client ID it was registered with, so changing this replaces the credential.
219
+ */
220
+ clientId?: pulumi.Input<string | undefined>;
221
+ /**
222
+ * The client secret of your OAuth client. Required for `kind = "oauthClient"` and not accepted otherwise. Changing it rotates the secret in place.
223
+ */
224
+ clientSecret?: pulumi.Input<string | undefined>;
225
+ /**
226
+ * When the credential was created.
227
+ */
228
+ createdAt?: pulumi.Input<string | undefined>;
229
+ /**
230
+ * A map of values for the credential parameters the tool provider declares, which the [providers API](https://docs.digitalocean.com/reference/api/) lists as `credentialParameters`. The API validates them and derives `baseUrl` from them. Accepted only for `kind = "apiKey"`. Conflicts with `baseUrl`.
231
+ */
232
+ credentialParameters?: pulumi.Input<{
233
+ [key: string]: pulumi.Input<string>;
234
+ } | undefined>;
235
+ /**
236
+ * A label of 1 to 255 characters, unique among your team's credentials for the tool provider, ignoring case.
237
+ */
238
+ displayName?: pulumi.Input<string | undefined>;
239
+ /**
240
+ * The kind of credential: `oauthClient` for an OAuth client you created at the tool provider, or `apiKey` for a key or token. Changing this replaces the credential.
241
+ */
242
+ kind?: pulumi.Input<string | undefined>;
243
+ /**
244
+ * The DigitalOcean user ID of the credential's creator. Empty for a credential shared with the team.
245
+ */
246
+ owningUserId?: pulumi.Input<string | undefined>;
247
+ /**
248
+ * The HTTPS redirect URI registered with your OAuth client, for `kind = "oauthClient"` only. Custom OAuth redirects must be enabled for your account. Omit it to use DigitalOcean's callback. Changing this replaces the credential.
249
+ */
250
+ redirectUrl?: pulumi.Input<string | undefined>;
251
+ /**
252
+ * Whether everyone on your team can see and use the credential instead of only the DigitalOcean user who owns Terraform's API token. Defaults to `false`. Sharing a credential may require the team owner role. Sharing cannot be undone, so changing this from `true` to `false` replaces the credential.
253
+ */
254
+ reusableByTeam?: pulumi.Input<boolean | undefined>;
255
+ /**
256
+ * Who can use the credential: `user` for only its creator, or `team`.
257
+ */
258
+ scope?: pulumi.Input<string | undefined>;
259
+ /**
260
+ * The status of the credential: `active` or `disabled`. Connections cannot use a disabled credential.
261
+ */
262
+ status?: pulumi.Input<string | undefined>;
263
+ /**
264
+ * The slug of the tool provider the credential is for, such as `github` or `jira`. The `digitalocean.getActionGatewayProviders` data source lists the available providers and, in `authTypes`, the kinds of credential each accepts. Changing this replaces the credential.
265
+ */
266
+ toolProvider?: pulumi.Input<string | undefined>;
267
+ /**
268
+ * When the credential was last modified.
269
+ */
270
+ updatedAt?: pulumi.Input<string | undefined>;
271
+ }
272
+ /**
273
+ * The set of arguments for constructing a ActionGatewayProviderCredential resource.
274
+ */
275
+ export interface ActionGatewayProviderCredentialArgs {
276
+ /**
277
+ * The key or token sent to the tool provider. Required for `kind = "apiKey"` and not accepted otherwise. Changing it rotates the key in place: the credential keeps its ID, and its connections use the new key on their next call.
278
+ */
279
+ apiKey?: pulumi.Input<string | undefined>;
280
+ /**
281
+ * The HTTPS origin of the tool provider's API, such as `https://api.example.com`. Accepted only by tool providers that allow one. Conflicts with `credentialParameters`. Removing it from the configuration leaves the stored origin in place.
282
+ */
283
+ baseUrl?: pulumi.Input<string | undefined>;
284
+ /**
285
+ * The client ID of your OAuth client. Required for `kind = "oauthClient"` and not accepted otherwise. A credential is bound to the client ID it was registered with, so changing this replaces the credential.
286
+ */
287
+ clientId?: pulumi.Input<string | undefined>;
288
+ /**
289
+ * The client secret of your OAuth client. Required for `kind = "oauthClient"` and not accepted otherwise. Changing it rotates the secret in place.
290
+ */
291
+ clientSecret?: pulumi.Input<string | undefined>;
292
+ /**
293
+ * A map of values for the credential parameters the tool provider declares, which the [providers API](https://docs.digitalocean.com/reference/api/) lists as `credentialParameters`. The API validates them and derives `baseUrl` from them. Accepted only for `kind = "apiKey"`. Conflicts with `baseUrl`.
294
+ */
295
+ credentialParameters?: pulumi.Input<{
296
+ [key: string]: pulumi.Input<string>;
297
+ } | undefined>;
298
+ /**
299
+ * A label of 1 to 255 characters, unique among your team's credentials for the tool provider, ignoring case.
300
+ */
301
+ displayName: pulumi.Input<string>;
302
+ /**
303
+ * The kind of credential: `oauthClient` for an OAuth client you created at the tool provider, or `apiKey` for a key or token. Changing this replaces the credential.
304
+ */
305
+ kind: pulumi.Input<string>;
306
+ /**
307
+ * The HTTPS redirect URI registered with your OAuth client, for `kind = "oauthClient"` only. Custom OAuth redirects must be enabled for your account. Omit it to use DigitalOcean's callback. Changing this replaces the credential.
308
+ */
309
+ redirectUrl?: pulumi.Input<string | undefined>;
310
+ /**
311
+ * Whether everyone on your team can see and use the credential instead of only the DigitalOcean user who owns Terraform's API token. Defaults to `false`. Sharing a credential may require the team owner role. Sharing cannot be undone, so changing this from `true` to `false` replaces the credential.
312
+ */
313
+ reusableByTeam?: pulumi.Input<boolean | undefined>;
314
+ /**
315
+ * The slug of the tool provider the credential is for, such as `github` or `jira`. The `digitalocean.getActionGatewayProviders` data source lists the available providers and, in `authTypes`, the kinds of credential each accepts. Changing this replaces the credential.
316
+ */
317
+ toolProvider: pulumi.Input<string>;
318
+ }
319
+ //# sourceMappingURL=actionGatewayProviderCredential.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"actionGatewayProviderCredential.d.ts","sourceRoot":"","sources":["../actionGatewayProviderCredential.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2GG;AACH,qBAAa,+BAAgC,SAAQ,MAAM,CAAC,cAAc;IACtE;;;;;;;;OAQG;WACW,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,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