@pulumiverse/vercel 1.14.2 → 1.15.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.
- package/accessGroup.d.ts +63 -0
- package/accessGroup.js +51 -0
- package/accessGroup.js.map +1 -0
- package/accessGroupProject.d.ts +87 -0
- package/accessGroupProject.js +64 -0
- package/accessGroupProject.js.map +1 -0
- package/alias.d.ts +6 -8
- package/alias.js +0 -5
- package/alias.js.map +1 -1
- package/attackChallengeMode.d.ts +9 -36
- package/attackChallengeMode.js +0 -30
- package/attackChallengeMode.js.map +1 -1
- package/customEnvironment.d.ts +101 -0
- package/customEnvironment.js +60 -0
- package/customEnvironment.js.map +1 -0
- package/deployment.d.ts +34 -17
- package/deployment.js.map +1 -1
- package/dnsRecord.d.ts +30 -127
- package/dnsRecord.js +0 -97
- package/dnsRecord.js.map +1 -1
- package/edgeConfig.d.ts +6 -54
- package/edgeConfig.js +0 -51
- package/edgeConfig.js.map +1 -1
- package/edgeConfigItem.d.ts +87 -0
- package/edgeConfigItem.js +64 -0
- package/edgeConfigItem.js.map +1 -0
- package/edgeConfigSchema.d.ts +6 -28
- package/edgeConfigSchema.js +0 -25
- package/edgeConfigSchema.js.map +1 -1
- package/edgeConfigToken.d.ts +10 -62
- package/edgeConfigToken.js +0 -57
- package/edgeConfigToken.js.map +1 -1
- package/firewallConfig.d.ts +110 -0
- package/firewallConfig.js +62 -0
- package/firewallConfig.js.map +1 -0
- package/getAccessGroup.d.ts +25 -0
- package/getAccessGroup.js +24 -0
- package/getAccessGroup.js.map +1 -0
- package/getAccessGroupProject.d.ts +32 -0
- package/getAccessGroupProject.js +26 -0
- package/getAccessGroupProject.js.map +1 -0
- package/getAlias.d.ts +0 -34
- package/getAlias.js +0 -10
- package/getAlias.js.map +1 -1
- package/getAttackChallengeMode.d.ts +0 -56
- package/getAttackChallengeMode.js +0 -32
- package/getAttackChallengeMode.js.map +1 -1
- package/getCustomEnvironment.d.ts +31 -0
- package/getCustomEnvironment.js +26 -0
- package/getCustomEnvironment.js.map +1 -0
- package/getDeployment.d.ts +0 -65
- package/getDeployment.js +0 -32
- package/getDeployment.js.map +1 -1
- package/getEdgeConfig.d.ts +0 -53
- package/getEdgeConfig.js +0 -32
- package/getEdgeConfig.js.map +1 -1
- package/getEdgeConfigItem.d.ts +28 -0
- package/getEdgeConfigItem.js +26 -0
- package/getEdgeConfigItem.js.map +1 -0
- package/getEdgeConfigSchema.d.ts +0 -49
- package/getEdgeConfigSchema.js +0 -28
- package/getEdgeConfigSchema.js.map +1 -1
- package/getEdgeConfigToken.d.ts +0 -74
- package/getEdgeConfigToken.js +0 -38
- package/getEdgeConfigToken.js.map +1 -1
- package/getEndpointVerification.d.ts +0 -39
- package/getEndpointVerification.js +0 -24
- package/getEndpointVerification.js.map +1 -1
- package/getFile.d.ts +0 -54
- package/getFile.js +0 -48
- package/getFile.js.map +1 -1
- package/getLogDrain.d.ts +0 -81
- package/getLogDrain.js +0 -36
- package/getLogDrain.js.map +1 -1
- package/getPrebuiltProject.d.ts +0 -6
- package/getPrebuiltProject.js.map +1 -1
- package/getProject.d.ts +1 -146
- package/getProject.js +0 -38
- package/getProject.js.map +1 -1
- package/getProjectDeploymentRetention.d.ts +0 -47
- package/getProjectDeploymentRetention.js +0 -14
- package/getProjectDeploymentRetention.js.map +1 -1
- package/getProjectDirectory.d.ts +0 -6
- package/getProjectDirectory.js.map +1 -1
- package/getProjectMembers.d.ts +30 -0
- package/getProjectMembers.js +24 -0
- package/getProjectMembers.js.map +1 -0
- package/getSharedEnvironmentVariable.d.ts +1 -95
- package/getSharedEnvironmentVariable.js +0 -50
- package/getSharedEnvironmentVariable.js.map +1 -1
- package/getTeamConfig.d.ts +35 -0
- package/getTeamConfig.js +22 -0
- package/getTeamConfig.js.map +1 -0
- package/getTeamMember.d.ts +29 -0
- package/getTeamMember.js +24 -0
- package/getTeamMember.js.map +1 -0
- package/index.d.ts +48 -6
- package/index.js +68 -9
- package/index.js.map +1 -1
- package/logDrain.d.ts +42 -74
- package/logDrain.js +0 -56
- package/logDrain.js.map +1 -1
- package/package.json +1 -1
- package/project.d.ts +111 -89
- package/project.js +3 -46
- package/project.js.map +1 -1
- package/projectDeploymentRetention.d.ts +0 -51
- package/projectDeploymentRetention.js +0 -51
- package/projectDeploymentRetention.js.map +1 -1
- package/projectDomain.d.ts +21 -55
- package/projectDomain.js +2 -52
- package/projectDomain.js.map +1 -1
- package/projectEnvironmentVariable.d.ts +40 -86
- package/projectEnvironmentVariable.js +4 -82
- package/projectEnvironmentVariable.js.map +1 -1
- package/projectEnvironmentVariables.d.ts +74 -0
- package/projectEnvironmentVariables.js +59 -0
- package/projectEnvironmentVariables.js.map +1 -0
- package/projectMembers.d.ts +77 -0
- package/projectMembers.js +59 -0
- package/projectMembers.js.map +1 -0
- package/sharedEnvironmentVariable.d.ts +24 -49
- package/sharedEnvironmentVariable.js +2 -43
- package/sharedEnvironmentVariable.js.map +1 -1
- package/teamConfig.d.ts +211 -0
- package/teamConfig.js +75 -0
- package/teamConfig.js.map +1 -0
- package/teamMember.d.ts +107 -0
- package/teamMember.js +66 -0
- package/teamMember.js.map +1 -0
- package/types/input.d.ts +301 -2
- package/types/output.d.ts +372 -1
- package/webhook.d.ts +18 -43
- package/webhook.js +0 -35
- package/webhook.js.map +1 -1
- package/getProjectFunctionCpu.d.ts +0 -92
- package/getProjectFunctionCpu.js +0 -66
- package/getProjectFunctionCpu.js.map +0 -1
- package/projectFunctionCpu.d.ts +0 -106
- package/projectFunctionCpu.js +0 -93
- package/projectFunctionCpu.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"projectEnvironmentVariables.js","sourceRoot":"","sources":["../projectEnvironmentVariables.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC,MAAa,2BAA4B,SAAQ,MAAM,CAAC,cAAc;IAClE;;;;;;;;OAQG;IACI,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AI,CAAC,GAAG,EAAE;gBACtD,MAAM,IAAI,KAAK,CAAC,uCAAuC,CAAC,CAAC;aAC5D;YACD,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAChE,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;SACnE;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,2BAA2B,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAChF,CAAC;;AAvEL,kEAwEC;AA1DG,gBAAgB;AACO,wCAAY,GAAG,sEAAsE,CAAC"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "./types/input";
|
|
3
|
+
import * as outputs from "./types/output";
|
|
4
|
+
export declare class ProjectMembers extends pulumi.CustomResource {
|
|
5
|
+
/**
|
|
6
|
+
* Get an existing ProjectMembers resource's state with the given name, ID, and optional extra
|
|
7
|
+
* properties used to qualify the lookup.
|
|
8
|
+
*
|
|
9
|
+
* @param name The _unique_ name of the resulting resource.
|
|
10
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
11
|
+
* @param state Any extra arguments used during the lookup.
|
|
12
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
13
|
+
*/
|
|
14
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ProjectMembersState, opts?: pulumi.CustomResourceOptions): ProjectMembers;
|
|
15
|
+
/**
|
|
16
|
+
* Returns true if the given object is an instance of ProjectMembers. This is designed to work even
|
|
17
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
18
|
+
*/
|
|
19
|
+
static isInstance(obj: any): obj is ProjectMembers;
|
|
20
|
+
/**
|
|
21
|
+
* The set of members to manage for this project.
|
|
22
|
+
*/
|
|
23
|
+
readonly members: pulumi.Output<outputs.ProjectMembersMember[]>;
|
|
24
|
+
/**
|
|
25
|
+
* The ID of the existing Vercel Project.
|
|
26
|
+
*/
|
|
27
|
+
readonly projectId: pulumi.Output<string>;
|
|
28
|
+
/**
|
|
29
|
+
* The team ID to add the project to. Required when configuring a team resource if a default team has not been set in the
|
|
30
|
+
* provider.
|
|
31
|
+
*/
|
|
32
|
+
readonly teamId: pulumi.Output<string>;
|
|
33
|
+
/**
|
|
34
|
+
* Create a ProjectMembers resource with the given unique name, arguments, and options.
|
|
35
|
+
*
|
|
36
|
+
* @param name The _unique_ name of the resource.
|
|
37
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
38
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
39
|
+
*/
|
|
40
|
+
constructor(name: string, args: ProjectMembersArgs, opts?: pulumi.CustomResourceOptions);
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Input properties used for looking up and filtering ProjectMembers resources.
|
|
44
|
+
*/
|
|
45
|
+
export interface ProjectMembersState {
|
|
46
|
+
/**
|
|
47
|
+
* The set of members to manage for this project.
|
|
48
|
+
*/
|
|
49
|
+
members?: pulumi.Input<pulumi.Input<inputs.ProjectMembersMember>[]>;
|
|
50
|
+
/**
|
|
51
|
+
* The ID of the existing Vercel Project.
|
|
52
|
+
*/
|
|
53
|
+
projectId?: pulumi.Input<string>;
|
|
54
|
+
/**
|
|
55
|
+
* The team ID to add the project to. Required when configuring a team resource if a default team has not been set in the
|
|
56
|
+
* provider.
|
|
57
|
+
*/
|
|
58
|
+
teamId?: pulumi.Input<string>;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* The set of arguments for constructing a ProjectMembers resource.
|
|
62
|
+
*/
|
|
63
|
+
export interface ProjectMembersArgs {
|
|
64
|
+
/**
|
|
65
|
+
* The set of members to manage for this project.
|
|
66
|
+
*/
|
|
67
|
+
members: pulumi.Input<pulumi.Input<inputs.ProjectMembersMember>[]>;
|
|
68
|
+
/**
|
|
69
|
+
* The ID of the existing Vercel Project.
|
|
70
|
+
*/
|
|
71
|
+
projectId: pulumi.Input<string>;
|
|
72
|
+
/**
|
|
73
|
+
* The team ID to add the project to. Required when configuring a team resource if a default team has not been set in the
|
|
74
|
+
* provider.
|
|
75
|
+
*/
|
|
76
|
+
teamId?: pulumi.Input<string>;
|
|
77
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.ProjectMembers = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
class ProjectMembers extends pulumi.CustomResource {
|
|
9
|
+
/**
|
|
10
|
+
* Get an existing ProjectMembers resource's state with the given name, ID, and optional extra
|
|
11
|
+
* properties used to qualify the lookup.
|
|
12
|
+
*
|
|
13
|
+
* @param name The _unique_ name of the resulting resource.
|
|
14
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
15
|
+
* @param state Any extra arguments used during the lookup.
|
|
16
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
17
|
+
*/
|
|
18
|
+
static get(name, id, state, opts) {
|
|
19
|
+
return new ProjectMembers(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Returns true if the given object is an instance of ProjectMembers. This is designed to work even
|
|
23
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
24
|
+
*/
|
|
25
|
+
static isInstance(obj) {
|
|
26
|
+
if (obj === undefined || obj === null) {
|
|
27
|
+
return false;
|
|
28
|
+
}
|
|
29
|
+
return obj['__pulumiType'] === ProjectMembers.__pulumiType;
|
|
30
|
+
}
|
|
31
|
+
constructor(name, argsOrState, opts) {
|
|
32
|
+
let resourceInputs = {};
|
|
33
|
+
opts = opts || {};
|
|
34
|
+
if (opts.id) {
|
|
35
|
+
const state = argsOrState;
|
|
36
|
+
resourceInputs["members"] = state ? state.members : undefined;
|
|
37
|
+
resourceInputs["projectId"] = state ? state.projectId : undefined;
|
|
38
|
+
resourceInputs["teamId"] = state ? state.teamId : undefined;
|
|
39
|
+
}
|
|
40
|
+
else {
|
|
41
|
+
const args = argsOrState;
|
|
42
|
+
if ((!args || args.members === undefined) && !opts.urn) {
|
|
43
|
+
throw new Error("Missing required property 'members'");
|
|
44
|
+
}
|
|
45
|
+
if ((!args || args.projectId === undefined) && !opts.urn) {
|
|
46
|
+
throw new Error("Missing required property 'projectId'");
|
|
47
|
+
}
|
|
48
|
+
resourceInputs["members"] = args ? args.members : undefined;
|
|
49
|
+
resourceInputs["projectId"] = args ? args.projectId : undefined;
|
|
50
|
+
resourceInputs["teamId"] = args ? args.teamId : undefined;
|
|
51
|
+
}
|
|
52
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
53
|
+
super(ProjectMembers.__pulumiType, name, resourceInputs, opts);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
exports.ProjectMembers = ProjectMembers;
|
|
57
|
+
/** @internal */
|
|
58
|
+
ProjectMembers.__pulumiType = 'vercel:index/projectMembers:ProjectMembers';
|
|
59
|
+
//# sourceMappingURL=projectMembers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"projectMembers.js","sourceRoot":"","sources":["../projectMembers.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;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AAC;aAC1D;YACD,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,SAAS,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACtD,MAAM,IAAI,KAAK,CAAC,uCAAuC,CAAC,CAAC;aAC5D;YACD,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAChE,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;SAC7D;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,cAAc,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACnE,CAAC;;AAxEL,wCAyEC;AA3DG,gBAAgB;AACO,2BAAY,GAAG,4CAA4C,CAAC"}
|
|
@@ -1,47 +1,4 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
-
/**
|
|
3
|
-
* Provides a Shared Environment Variable resource.
|
|
4
|
-
*
|
|
5
|
-
* A Shared Environment Variable resource defines an Environment Variable that can be shared between multiple Vercel Projects.
|
|
6
|
-
*
|
|
7
|
-
* For more detailed information, please see the [Vercel documentation](https://vercel.com/docs/concepts/projects/environment-variables/shared-environment-variables).
|
|
8
|
-
*
|
|
9
|
-
* ## Example Usage
|
|
10
|
-
*
|
|
11
|
-
* ```typescript
|
|
12
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
13
|
-
* import * as vercel from "@pulumiverse/vercel";
|
|
14
|
-
*
|
|
15
|
-
* const exampleProject = new vercel.Project("exampleProject", {gitRepository: {
|
|
16
|
-
* type: "github",
|
|
17
|
-
* repo: "vercel/some-repo",
|
|
18
|
-
* }});
|
|
19
|
-
* // A shared environment variable that will be created
|
|
20
|
-
* // and associated with the "example" project.
|
|
21
|
-
* const exampleSharedEnvironmentVariable = new vercel.SharedEnvironmentVariable("exampleSharedEnvironmentVariable", {
|
|
22
|
-
* key: "EXAMPLE",
|
|
23
|
-
* value: "some_value",
|
|
24
|
-
* targets: ["production"],
|
|
25
|
-
* projectIds: [exampleProject.id],
|
|
26
|
-
* });
|
|
27
|
-
* ```
|
|
28
|
-
*
|
|
29
|
-
* ## Import
|
|
30
|
-
*
|
|
31
|
-
* You can import via the team_id and environment variable id.
|
|
32
|
-
*
|
|
33
|
-
* - team_id can be found in the team `settings` tab in the Vercel UI.
|
|
34
|
-
*
|
|
35
|
-
* - environment variable id can be taken from the network tab inside developer tools, while you are on the project page.
|
|
36
|
-
*
|
|
37
|
-
* #
|
|
38
|
-
*
|
|
39
|
-
* Note also, that the value field for sensitive environment variables will be imported as `null`.
|
|
40
|
-
*
|
|
41
|
-
* ```sh
|
|
42
|
-
* $ pulumi import vercel:index/sharedEnvironmentVariable:SharedEnvironmentVariable example team_xxxxxxxxxxxxxxxxxxxxxxxx/env_yyyyyyyyyyyyy
|
|
43
|
-
* ```
|
|
44
|
-
*/
|
|
45
2
|
export declare class SharedEnvironmentVariable extends pulumi.CustomResource {
|
|
46
3
|
/**
|
|
47
4
|
* Get an existing SharedEnvironmentVariable resource's state with the given name, ID, and optional extra
|
|
@@ -58,6 +15,10 @@ export declare class SharedEnvironmentVariable extends pulumi.CustomResource {
|
|
|
58
15
|
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
59
16
|
*/
|
|
60
17
|
static isInstance(obj: any): obj is SharedEnvironmentVariable;
|
|
18
|
+
/**
|
|
19
|
+
* A comment explaining what the environment variable is for.
|
|
20
|
+
*/
|
|
21
|
+
readonly comment: pulumi.Output<string>;
|
|
61
22
|
/**
|
|
62
23
|
* The name of the Environment Variable.
|
|
63
24
|
*/
|
|
@@ -67,11 +28,13 @@ export declare class SharedEnvironmentVariable extends pulumi.CustomResource {
|
|
|
67
28
|
*/
|
|
68
29
|
readonly projectIds: pulumi.Output<string[]>;
|
|
69
30
|
/**
|
|
70
|
-
* Whether the Environment Variable is sensitive or not. (May be affected by a [team-wide environment variable
|
|
31
|
+
* Whether the Environment Variable is sensitive or not. (May be affected by a [team-wide environment variable
|
|
32
|
+
* policy](https://vercel.com/docs/projects/environment-variables/sensitive-environment-variables#environment-variables-policy))
|
|
71
33
|
*/
|
|
72
34
|
readonly sensitive: pulumi.Output<boolean>;
|
|
73
35
|
/**
|
|
74
|
-
* The environments that the Environment Variable should be present on. Valid targets are either `production`, `preview`,
|
|
36
|
+
* The environments that the Environment Variable should be present on. Valid targets are either `production`, `preview`,
|
|
37
|
+
* or `development`.
|
|
75
38
|
*/
|
|
76
39
|
readonly targets: pulumi.Output<string[]>;
|
|
77
40
|
/**
|
|
@@ -95,6 +58,10 @@ export declare class SharedEnvironmentVariable extends pulumi.CustomResource {
|
|
|
95
58
|
* Input properties used for looking up and filtering SharedEnvironmentVariable resources.
|
|
96
59
|
*/
|
|
97
60
|
export interface SharedEnvironmentVariableState {
|
|
61
|
+
/**
|
|
62
|
+
* A comment explaining what the environment variable is for.
|
|
63
|
+
*/
|
|
64
|
+
comment?: pulumi.Input<string>;
|
|
98
65
|
/**
|
|
99
66
|
* The name of the Environment Variable.
|
|
100
67
|
*/
|
|
@@ -104,11 +71,13 @@ export interface SharedEnvironmentVariableState {
|
|
|
104
71
|
*/
|
|
105
72
|
projectIds?: pulumi.Input<pulumi.Input<string>[]>;
|
|
106
73
|
/**
|
|
107
|
-
* Whether the Environment Variable is sensitive or not. (May be affected by a [team-wide environment variable
|
|
74
|
+
* Whether the Environment Variable is sensitive or not. (May be affected by a [team-wide environment variable
|
|
75
|
+
* policy](https://vercel.com/docs/projects/environment-variables/sensitive-environment-variables#environment-variables-policy))
|
|
108
76
|
*/
|
|
109
77
|
sensitive?: pulumi.Input<boolean>;
|
|
110
78
|
/**
|
|
111
|
-
* The environments that the Environment Variable should be present on. Valid targets are either `production`, `preview`,
|
|
79
|
+
* The environments that the Environment Variable should be present on. Valid targets are either `production`, `preview`,
|
|
80
|
+
* or `development`.
|
|
112
81
|
*/
|
|
113
82
|
targets?: pulumi.Input<pulumi.Input<string>[]>;
|
|
114
83
|
/**
|
|
@@ -124,6 +93,10 @@ export interface SharedEnvironmentVariableState {
|
|
|
124
93
|
* The set of arguments for constructing a SharedEnvironmentVariable resource.
|
|
125
94
|
*/
|
|
126
95
|
export interface SharedEnvironmentVariableArgs {
|
|
96
|
+
/**
|
|
97
|
+
* A comment explaining what the environment variable is for.
|
|
98
|
+
*/
|
|
99
|
+
comment?: pulumi.Input<string>;
|
|
127
100
|
/**
|
|
128
101
|
* The name of the Environment Variable.
|
|
129
102
|
*/
|
|
@@ -133,11 +106,13 @@ export interface SharedEnvironmentVariableArgs {
|
|
|
133
106
|
*/
|
|
134
107
|
projectIds: pulumi.Input<pulumi.Input<string>[]>;
|
|
135
108
|
/**
|
|
136
|
-
* Whether the Environment Variable is sensitive or not. (May be affected by a [team-wide environment variable
|
|
109
|
+
* Whether the Environment Variable is sensitive or not. (May be affected by a [team-wide environment variable
|
|
110
|
+
* policy](https://vercel.com/docs/projects/environment-variables/sensitive-environment-variables#environment-variables-policy))
|
|
137
111
|
*/
|
|
138
112
|
sensitive?: pulumi.Input<boolean>;
|
|
139
113
|
/**
|
|
140
|
-
* The environments that the Environment Variable should be present on. Valid targets are either `production`, `preview`,
|
|
114
|
+
* The environments that the Environment Variable should be present on. Valid targets are either `production`, `preview`,
|
|
115
|
+
* or `development`.
|
|
141
116
|
*/
|
|
142
117
|
targets: pulumi.Input<pulumi.Input<string>[]>;
|
|
143
118
|
/**
|
|
@@ -5,49 +5,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.SharedEnvironmentVariable = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
|
-
/**
|
|
9
|
-
* Provides a Shared Environment Variable resource.
|
|
10
|
-
*
|
|
11
|
-
* A Shared Environment Variable resource defines an Environment Variable that can be shared between multiple Vercel Projects.
|
|
12
|
-
*
|
|
13
|
-
* For more detailed information, please see the [Vercel documentation](https://vercel.com/docs/concepts/projects/environment-variables/shared-environment-variables).
|
|
14
|
-
*
|
|
15
|
-
* ## Example Usage
|
|
16
|
-
*
|
|
17
|
-
* ```typescript
|
|
18
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
19
|
-
* import * as vercel from "@pulumiverse/vercel";
|
|
20
|
-
*
|
|
21
|
-
* const exampleProject = new vercel.Project("exampleProject", {gitRepository: {
|
|
22
|
-
* type: "github",
|
|
23
|
-
* repo: "vercel/some-repo",
|
|
24
|
-
* }});
|
|
25
|
-
* // A shared environment variable that will be created
|
|
26
|
-
* // and associated with the "example" project.
|
|
27
|
-
* const exampleSharedEnvironmentVariable = new vercel.SharedEnvironmentVariable("exampleSharedEnvironmentVariable", {
|
|
28
|
-
* key: "EXAMPLE",
|
|
29
|
-
* value: "some_value",
|
|
30
|
-
* targets: ["production"],
|
|
31
|
-
* projectIds: [exampleProject.id],
|
|
32
|
-
* });
|
|
33
|
-
* ```
|
|
34
|
-
*
|
|
35
|
-
* ## Import
|
|
36
|
-
*
|
|
37
|
-
* You can import via the team_id and environment variable id.
|
|
38
|
-
*
|
|
39
|
-
* - team_id can be found in the team `settings` tab in the Vercel UI.
|
|
40
|
-
*
|
|
41
|
-
* - environment variable id can be taken from the network tab inside developer tools, while you are on the project page.
|
|
42
|
-
*
|
|
43
|
-
* #
|
|
44
|
-
*
|
|
45
|
-
* Note also, that the value field for sensitive environment variables will be imported as `null`.
|
|
46
|
-
*
|
|
47
|
-
* ```sh
|
|
48
|
-
* $ pulumi import vercel:index/sharedEnvironmentVariable:SharedEnvironmentVariable example team_xxxxxxxxxxxxxxxxxxxxxxxx/env_yyyyyyyyyyyyy
|
|
49
|
-
* ```
|
|
50
|
-
*/
|
|
51
8
|
class SharedEnvironmentVariable extends pulumi.CustomResource {
|
|
52
9
|
/**
|
|
53
10
|
* Get an existing SharedEnvironmentVariable resource's state with the given name, ID, and optional extra
|
|
@@ -76,6 +33,7 @@ class SharedEnvironmentVariable extends pulumi.CustomResource {
|
|
|
76
33
|
opts = opts || {};
|
|
77
34
|
if (opts.id) {
|
|
78
35
|
const state = argsOrState;
|
|
36
|
+
resourceInputs["comment"] = state ? state.comment : undefined;
|
|
79
37
|
resourceInputs["key"] = state ? state.key : undefined;
|
|
80
38
|
resourceInputs["projectIds"] = state ? state.projectIds : undefined;
|
|
81
39
|
resourceInputs["sensitive"] = state ? state.sensitive : undefined;
|
|
@@ -97,6 +55,7 @@ class SharedEnvironmentVariable extends pulumi.CustomResource {
|
|
|
97
55
|
if ((!args || args.value === undefined) && !opts.urn) {
|
|
98
56
|
throw new Error("Missing required property 'value'");
|
|
99
57
|
}
|
|
58
|
+
resourceInputs["comment"] = args ? args.comment : undefined;
|
|
100
59
|
resourceInputs["key"] = args ? args.key : undefined;
|
|
101
60
|
resourceInputs["projectIds"] = args ? args.projectIds : undefined;
|
|
102
61
|
resourceInputs["sensitive"] = args ? args.sensitive : undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sharedEnvironmentVariable.js","sourceRoot":"","sources":["../sharedEnvironmentVariable.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"sharedEnvironmentVariable.js","sourceRoot":"","sources":["../sharedEnvironmentVariable.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,MAAa,yBAA0B,SAAQ,MAAM,CAAC,cAAc;IAChE;;;;;;;;OAQG;I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,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAChE,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,cAAc,CAAC,OAAO,CAAC,GAAG,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,KAAK,EAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;SACjF;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,UAAU,GAAG,EAAE,uBAAuB,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;QAC1D,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,yBAAyB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC9E,CAAC;;AAzGL,8DA0GC;AA5FG,gBAAgB;AACO,sCAAY,GAAG,kEAAkE,CAAC"}
|
package/teamConfig.d.ts
ADDED
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "./types/input";
|
|
3
|
+
import * as outputs from "./types/output";
|
|
4
|
+
export declare class TeamConfig extends pulumi.CustomResource {
|
|
5
|
+
/**
|
|
6
|
+
* Get an existing TeamConfig resource's state with the given name, ID, and optional extra
|
|
7
|
+
* properties used to qualify the lookup.
|
|
8
|
+
*
|
|
9
|
+
* @param name The _unique_ name of the resulting resource.
|
|
10
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
11
|
+
* @param state Any extra arguments used during the lookup.
|
|
12
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
13
|
+
*/
|
|
14
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: TeamConfigState, opts?: pulumi.CustomResourceOptions): TeamConfig;
|
|
15
|
+
/**
|
|
16
|
+
* Returns true if the given object is an instance of TeamConfig. This is designed to work even
|
|
17
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
18
|
+
*/
|
|
19
|
+
static isInstance(obj: any): obj is TeamConfig;
|
|
20
|
+
/**
|
|
21
|
+
* The `avatar` should be a the 'file' attribute from a vercel.getFile data source.
|
|
22
|
+
*/
|
|
23
|
+
readonly avatar: pulumi.Output<{
|
|
24
|
+
[key: string]: string;
|
|
25
|
+
} | undefined>;
|
|
26
|
+
/**
|
|
27
|
+
* A description of the team.
|
|
28
|
+
*/
|
|
29
|
+
readonly description: pulumi.Output<string>;
|
|
30
|
+
/**
|
|
31
|
+
* Hostname that'll be matched with emails on sign-up to automatically join the Team.
|
|
32
|
+
*/
|
|
33
|
+
readonly emailDomain: pulumi.Output<string>;
|
|
34
|
+
/**
|
|
35
|
+
* Enables the Vercel Toolbar on your preview deployments: one of on, off or default.
|
|
36
|
+
*/
|
|
37
|
+
readonly enablePreviewFeedback: pulumi.Output<string>;
|
|
38
|
+
/**
|
|
39
|
+
* Enables the Vercel Toolbar on your production deployments: one of on, off or default.
|
|
40
|
+
*/
|
|
41
|
+
readonly enableProductionFeedback: pulumi.Output<string>;
|
|
42
|
+
/**
|
|
43
|
+
* Indicates if ip addresses should be accessible in o11y tooling.
|
|
44
|
+
*/
|
|
45
|
+
readonly hideIpAddresses: pulumi.Output<boolean>;
|
|
46
|
+
/**
|
|
47
|
+
* Indicates if ip addresses should be accessible in log drains.
|
|
48
|
+
*/
|
|
49
|
+
readonly hideIpAddressesInLogDrains: pulumi.Output<boolean>;
|
|
50
|
+
/**
|
|
51
|
+
* A code that can be used to join this team. Only visible to Team owners.
|
|
52
|
+
*/
|
|
53
|
+
readonly inviteCode: pulumi.Output<string>;
|
|
54
|
+
/**
|
|
55
|
+
* The name of the team.
|
|
56
|
+
*/
|
|
57
|
+
readonly name: pulumi.Output<string>;
|
|
58
|
+
/**
|
|
59
|
+
* The hostname that is used as the preview deployment suffix.
|
|
60
|
+
*/
|
|
61
|
+
readonly previewDeploymentSuffix: pulumi.Output<string>;
|
|
62
|
+
/**
|
|
63
|
+
* Configuration for Remote Caching.
|
|
64
|
+
*/
|
|
65
|
+
readonly remoteCaching: pulumi.Output<outputs.TeamConfigRemoteCaching>;
|
|
66
|
+
/**
|
|
67
|
+
* Configuration for SAML authentication.
|
|
68
|
+
*/
|
|
69
|
+
readonly saml: pulumi.Output<outputs.TeamConfigSaml>;
|
|
70
|
+
/**
|
|
71
|
+
* Ensures that all environment variables created by members of this team will be created as Sensitive Environment
|
|
72
|
+
* Variables which can only be decrypted by Vercel's deployment system.: one of on, off or default.
|
|
73
|
+
*/
|
|
74
|
+
readonly sensitiveEnvironmentVariablePolicy: pulumi.Output<string>;
|
|
75
|
+
/**
|
|
76
|
+
* The slug of the team. Will be used in the URL of the team's dashboard.
|
|
77
|
+
*/
|
|
78
|
+
readonly slug: pulumi.Output<string>;
|
|
79
|
+
/**
|
|
80
|
+
* Create a TeamConfig resource with the given unique name, arguments, and options.
|
|
81
|
+
*
|
|
82
|
+
* @param name The _unique_ name of the resource.
|
|
83
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
84
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
85
|
+
*/
|
|
86
|
+
constructor(name: string, args?: TeamConfigArgs, opts?: pulumi.CustomResourceOptions);
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Input properties used for looking up and filtering TeamConfig resources.
|
|
90
|
+
*/
|
|
91
|
+
export interface TeamConfigState {
|
|
92
|
+
/**
|
|
93
|
+
* The `avatar` should be a the 'file' attribute from a vercel.getFile data source.
|
|
94
|
+
*/
|
|
95
|
+
avatar?: pulumi.Input<{
|
|
96
|
+
[key: string]: pulumi.Input<string>;
|
|
97
|
+
}>;
|
|
98
|
+
/**
|
|
99
|
+
* A description of the team.
|
|
100
|
+
*/
|
|
101
|
+
description?: pulumi.Input<string>;
|
|
102
|
+
/**
|
|
103
|
+
* Hostname that'll be matched with emails on sign-up to automatically join the Team.
|
|
104
|
+
*/
|
|
105
|
+
emailDomain?: pulumi.Input<string>;
|
|
106
|
+
/**
|
|
107
|
+
* Enables the Vercel Toolbar on your preview deployments: one of on, off or default.
|
|
108
|
+
*/
|
|
109
|
+
enablePreviewFeedback?: pulumi.Input<string>;
|
|
110
|
+
/**
|
|
111
|
+
* Enables the Vercel Toolbar on your production deployments: one of on, off or default.
|
|
112
|
+
*/
|
|
113
|
+
enableProductionFeedback?: pulumi.Input<string>;
|
|
114
|
+
/**
|
|
115
|
+
* Indicates if ip addresses should be accessible in o11y tooling.
|
|
116
|
+
*/
|
|
117
|
+
hideIpAddresses?: pulumi.Input<boolean>;
|
|
118
|
+
/**
|
|
119
|
+
* Indicates if ip addresses should be accessible in log drains.
|
|
120
|
+
*/
|
|
121
|
+
hideIpAddressesInLogDrains?: pulumi.Input<boolean>;
|
|
122
|
+
/**
|
|
123
|
+
* A code that can be used to join this team. Only visible to Team owners.
|
|
124
|
+
*/
|
|
125
|
+
inviteCode?: pulumi.Input<string>;
|
|
126
|
+
/**
|
|
127
|
+
* The name of the team.
|
|
128
|
+
*/
|
|
129
|
+
name?: pulumi.Input<string>;
|
|
130
|
+
/**
|
|
131
|
+
* The hostname that is used as the preview deployment suffix.
|
|
132
|
+
*/
|
|
133
|
+
previewDeploymentSuffix?: pulumi.Input<string>;
|
|
134
|
+
/**
|
|
135
|
+
* Configuration for Remote Caching.
|
|
136
|
+
*/
|
|
137
|
+
remoteCaching?: pulumi.Input<inputs.TeamConfigRemoteCaching>;
|
|
138
|
+
/**
|
|
139
|
+
* Configuration for SAML authentication.
|
|
140
|
+
*/
|
|
141
|
+
saml?: pulumi.Input<inputs.TeamConfigSaml>;
|
|
142
|
+
/**
|
|
143
|
+
* Ensures that all environment variables created by members of this team will be created as Sensitive Environment
|
|
144
|
+
* Variables which can only be decrypted by Vercel's deployment system.: one of on, off or default.
|
|
145
|
+
*/
|
|
146
|
+
sensitiveEnvironmentVariablePolicy?: pulumi.Input<string>;
|
|
147
|
+
/**
|
|
148
|
+
* The slug of the team. Will be used in the URL of the team's dashboard.
|
|
149
|
+
*/
|
|
150
|
+
slug?: pulumi.Input<string>;
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* The set of arguments for constructing a TeamConfig resource.
|
|
154
|
+
*/
|
|
155
|
+
export interface TeamConfigArgs {
|
|
156
|
+
/**
|
|
157
|
+
* The `avatar` should be a the 'file' attribute from a vercel.getFile data source.
|
|
158
|
+
*/
|
|
159
|
+
avatar?: pulumi.Input<{
|
|
160
|
+
[key: string]: pulumi.Input<string>;
|
|
161
|
+
}>;
|
|
162
|
+
/**
|
|
163
|
+
* A description of the team.
|
|
164
|
+
*/
|
|
165
|
+
description?: pulumi.Input<string>;
|
|
166
|
+
/**
|
|
167
|
+
* Hostname that'll be matched with emails on sign-up to automatically join the Team.
|
|
168
|
+
*/
|
|
169
|
+
emailDomain?: pulumi.Input<string>;
|
|
170
|
+
/**
|
|
171
|
+
* Enables the Vercel Toolbar on your preview deployments: one of on, off or default.
|
|
172
|
+
*/
|
|
173
|
+
enablePreviewFeedback?: pulumi.Input<string>;
|
|
174
|
+
/**
|
|
175
|
+
* Enables the Vercel Toolbar on your production deployments: one of on, off or default.
|
|
176
|
+
*/
|
|
177
|
+
enableProductionFeedback?: pulumi.Input<string>;
|
|
178
|
+
/**
|
|
179
|
+
* Indicates if ip addresses should be accessible in o11y tooling.
|
|
180
|
+
*/
|
|
181
|
+
hideIpAddresses?: pulumi.Input<boolean>;
|
|
182
|
+
/**
|
|
183
|
+
* Indicates if ip addresses should be accessible in log drains.
|
|
184
|
+
*/
|
|
185
|
+
hideIpAddressesInLogDrains?: pulumi.Input<boolean>;
|
|
186
|
+
/**
|
|
187
|
+
* The name of the team.
|
|
188
|
+
*/
|
|
189
|
+
name?: pulumi.Input<string>;
|
|
190
|
+
/**
|
|
191
|
+
* The hostname that is used as the preview deployment suffix.
|
|
192
|
+
*/
|
|
193
|
+
previewDeploymentSuffix?: pulumi.Input<string>;
|
|
194
|
+
/**
|
|
195
|
+
* Configuration for Remote Caching.
|
|
196
|
+
*/
|
|
197
|
+
remoteCaching?: pulumi.Input<inputs.TeamConfigRemoteCaching>;
|
|
198
|
+
/**
|
|
199
|
+
* Configuration for SAML authentication.
|
|
200
|
+
*/
|
|
201
|
+
saml?: pulumi.Input<inputs.TeamConfigSaml>;
|
|
202
|
+
/**
|
|
203
|
+
* Ensures that all environment variables created by members of this team will be created as Sensitive Environment
|
|
204
|
+
* Variables which can only be decrypted by Vercel's deployment system.: one of on, off or default.
|
|
205
|
+
*/
|
|
206
|
+
sensitiveEnvironmentVariablePolicy?: pulumi.Input<string>;
|
|
207
|
+
/**
|
|
208
|
+
* The slug of the team. Will be used in the URL of the team's dashboard.
|
|
209
|
+
*/
|
|
210
|
+
slug?: pulumi.Input<string>;
|
|
211
|
+
}
|
package/teamConfig.js
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.TeamConfig = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
class TeamConfig extends pulumi.CustomResource {
|
|
9
|
+
/**
|
|
10
|
+
* Get an existing TeamConfig resource's state with the given name, ID, and optional extra
|
|
11
|
+
* properties used to qualify the lookup.
|
|
12
|
+
*
|
|
13
|
+
* @param name The _unique_ name of the resulting resource.
|
|
14
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
15
|
+
* @param state Any extra arguments used during the lookup.
|
|
16
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
17
|
+
*/
|
|
18
|
+
static get(name, id, state, opts) {
|
|
19
|
+
return new TeamConfig(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Returns true if the given object is an instance of TeamConfig. This is designed to work even
|
|
23
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
24
|
+
*/
|
|
25
|
+
static isInstance(obj) {
|
|
26
|
+
if (obj === undefined || obj === null) {
|
|
27
|
+
return false;
|
|
28
|
+
}
|
|
29
|
+
return obj['__pulumiType'] === TeamConfig.__pulumiType;
|
|
30
|
+
}
|
|
31
|
+
constructor(name, argsOrState, opts) {
|
|
32
|
+
let resourceInputs = {};
|
|
33
|
+
opts = opts || {};
|
|
34
|
+
if (opts.id) {
|
|
35
|
+
const state = argsOrState;
|
|
36
|
+
resourceInputs["avatar"] = state ? state.avatar : undefined;
|
|
37
|
+
resourceInputs["description"] = state ? state.description : undefined;
|
|
38
|
+
resourceInputs["emailDomain"] = state ? state.emailDomain : undefined;
|
|
39
|
+
resourceInputs["enablePreviewFeedback"] = state ? state.enablePreviewFeedback : undefined;
|
|
40
|
+
resourceInputs["enableProductionFeedback"] = state ? state.enableProductionFeedback : undefined;
|
|
41
|
+
resourceInputs["hideIpAddresses"] = state ? state.hideIpAddresses : undefined;
|
|
42
|
+
resourceInputs["hideIpAddressesInLogDrains"] = state ? state.hideIpAddressesInLogDrains : undefined;
|
|
43
|
+
resourceInputs["inviteCode"] = state ? state.inviteCode : undefined;
|
|
44
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
45
|
+
resourceInputs["previewDeploymentSuffix"] = state ? state.previewDeploymentSuffix : undefined;
|
|
46
|
+
resourceInputs["remoteCaching"] = state ? state.remoteCaching : undefined;
|
|
47
|
+
resourceInputs["saml"] = state ? state.saml : undefined;
|
|
48
|
+
resourceInputs["sensitiveEnvironmentVariablePolicy"] = state ? state.sensitiveEnvironmentVariablePolicy : undefined;
|
|
49
|
+
resourceInputs["slug"] = state ? state.slug : undefined;
|
|
50
|
+
}
|
|
51
|
+
else {
|
|
52
|
+
const args = argsOrState;
|
|
53
|
+
resourceInputs["avatar"] = args ? args.avatar : undefined;
|
|
54
|
+
resourceInputs["description"] = args ? args.description : undefined;
|
|
55
|
+
resourceInputs["emailDomain"] = args ? args.emailDomain : undefined;
|
|
56
|
+
resourceInputs["enablePreviewFeedback"] = args ? args.enablePreviewFeedback : undefined;
|
|
57
|
+
resourceInputs["enableProductionFeedback"] = args ? args.enableProductionFeedback : undefined;
|
|
58
|
+
resourceInputs["hideIpAddresses"] = args ? args.hideIpAddresses : undefined;
|
|
59
|
+
resourceInputs["hideIpAddressesInLogDrains"] = args ? args.hideIpAddressesInLogDrains : undefined;
|
|
60
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
61
|
+
resourceInputs["previewDeploymentSuffix"] = args ? args.previewDeploymentSuffix : undefined;
|
|
62
|
+
resourceInputs["remoteCaching"] = args ? args.remoteCaching : undefined;
|
|
63
|
+
resourceInputs["saml"] = args ? args.saml : undefined;
|
|
64
|
+
resourceInputs["sensitiveEnvironmentVariablePolicy"] = args ? args.sensitiveEnvironmentVariablePolicy : undefined;
|
|
65
|
+
resourceInputs["slug"] = args ? args.slug : undefined;
|
|
66
|
+
resourceInputs["inviteCode"] = undefined /*out*/;
|
|
67
|
+
}
|
|
68
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
69
|
+
super(TeamConfig.__pulumiType, name, resourceInputs, opts);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
exports.TeamConfig = TeamConfig;
|
|
73
|
+
/** @internal */
|
|
74
|
+
TeamConfig.__pulumiType = 'vercel:index/teamConfig:TeamConfig';
|
|
75
|
+
//# sourceMapping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