@mstuercke/pulumi-modules 1.2.3 → 1.3.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/dist/clerk/Clerk.d.ts +27 -0
- package/dist/clerk/Clerk.js +88 -0
- package/dist/clerk/index.d.ts +5 -0
- package/dist/clerk/index.js +5 -0
- package/dist/domain/getDomain.js +7 -2
- package/dist/index.d.ts +4 -0
- package/dist/index.js +3 -0
- package/package.json +24 -6
- package/sdks/clerk/.gitattributes +1 -0
- package/sdks/clerk/README.md +3 -0
- package/sdks/clerk/allowlistIdentifier.ts +121 -0
- package/sdks/clerk/apiKey.ts +254 -0
- package/sdks/clerk/application.ts +182 -0
- package/sdks/clerk/applicationSettings.ts +171 -0
- package/sdks/clerk/blocklistIdentifier.ts +114 -0
- package/sdks/clerk/config/index.ts +5 -0
- package/sdks/clerk/config/vars.ts +34 -0
- package/sdks/clerk/domain.ts +154 -0
- package/sdks/clerk/getApplication.ts +42 -0
- package/sdks/clerk/index.ts +213 -0
- package/sdks/clerk/instanceConfig.ts +128 -0
- package/sdks/clerk/instanceDomain.ts +129 -0
- package/sdks/clerk/jwtTemplate.ts +190 -0
- package/sdks/clerk/machine.ts +127 -0
- package/sdks/clerk/oauthApplication.ts +228 -0
- package/sdks/clerk/organization.ts +190 -0
- package/sdks/clerk/organizationDomain.ts +166 -0
- package/sdks/clerk/organizationMembership.ts +148 -0
- package/sdks/clerk/organizationPermission.ts +142 -0
- package/sdks/clerk/organizationRole.ts +156 -0
- package/sdks/clerk/package.json +26 -0
- package/sdks/clerk/provider.ts +76 -0
- package/sdks/clerk/redirectUrl.ts +104 -0
- package/sdks/clerk/roleSet.ts +197 -0
- package/sdks/clerk/samlConnection.ts +361 -0
- package/sdks/clerk/scripts/postinstall.js +20 -0
- package/sdks/clerk/svixWebhook.ts +77 -0
- package/sdks/clerk/tsconfig.json +53 -0
- package/sdks/clerk/types/index.ts +13 -0
- package/sdks/clerk/types/input.ts +59 -0
- package/sdks/clerk/types/output.ts +79 -0
- package/sdks/clerk/user.ts +458 -0
- package/sdks/clerk/utilities.ts +107 -0
- package/dist/mongodb/MongoDB.d.ts +0 -18
- package/dist/mongodb/MongoDB.js +0 -77
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
2
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
3
|
+
|
|
4
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
5
|
+
import * as utilities from "./utilities";
|
|
6
|
+
|
|
7
|
+
export class OrganizationRole extends pulumi.CustomResource {
|
|
8
|
+
/**
|
|
9
|
+
* Get an existing OrganizationRole resource's state with the given name, ID, and optional extra
|
|
10
|
+
* properties used to qualify the lookup.
|
|
11
|
+
*
|
|
12
|
+
* @param name The _unique_ name of the resulting resource.
|
|
13
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
14
|
+
* @param state Any extra arguments used during the lookup.
|
|
15
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
16
|
+
*/
|
|
17
|
+
public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: OrganizationRoleState, opts?: pulumi.CustomResourceOptions): OrganizationRole {
|
|
18
|
+
return new OrganizationRole(name, <any>state, { ...opts, id: id });
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/** @internal */
|
|
22
|
+
public static readonly __pulumiType = 'clerk:index/organizationRole:OrganizationRole';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Returns true if the given object is an instance of OrganizationRole. This is designed to work even
|
|
26
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
27
|
+
*/
|
|
28
|
+
public static isInstance(obj: any): obj is OrganizationRole {
|
|
29
|
+
if (obj === undefined || obj === null) {
|
|
30
|
+
return false;
|
|
31
|
+
}
|
|
32
|
+
return obj['__pulumiType'] === OrganizationRole.__pulumiType;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Timestamp when the role was created.
|
|
37
|
+
*/
|
|
38
|
+
declare public /*out*/ readonly createdAt: pulumi.Output<string>;
|
|
39
|
+
/**
|
|
40
|
+
* Description of the role.
|
|
41
|
+
*/
|
|
42
|
+
declare public readonly description: pulumi.Output<string | undefined>;
|
|
43
|
+
/**
|
|
44
|
+
* Whether the role is eligible to be assigned to organization creators.
|
|
45
|
+
*/
|
|
46
|
+
declare public /*out*/ readonly isCreatorEligible: pulumi.Output<boolean>;
|
|
47
|
+
/**
|
|
48
|
+
* Unique key for the role (e.g. org:editor).
|
|
49
|
+
*/
|
|
50
|
+
declare public readonly key: pulumi.Output<string>;
|
|
51
|
+
/**
|
|
52
|
+
* Display name of the role.
|
|
53
|
+
*/
|
|
54
|
+
declare public readonly name: pulumi.Output<string>;
|
|
55
|
+
/**
|
|
56
|
+
* List of permission IDs to assign to this role.
|
|
57
|
+
*/
|
|
58
|
+
declare public readonly permissions: pulumi.Output<string[] | undefined>;
|
|
59
|
+
/**
|
|
60
|
+
* Timestamp when the role was last updated.
|
|
61
|
+
*/
|
|
62
|
+
declare public /*out*/ readonly updatedAt: pulumi.Output<string>;
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Create a OrganizationRole resource with the given unique name, arguments, and options.
|
|
66
|
+
*
|
|
67
|
+
* @param name The _unique_ name of the resource.
|
|
68
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
69
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
70
|
+
*/
|
|
71
|
+
constructor(name: string, args: OrganizationRoleArgs, opts?: pulumi.CustomResourceOptions)
|
|
72
|
+
constructor(name: string, argsOrState?: OrganizationRoleArgs | OrganizationRoleState, opts?: pulumi.CustomResourceOptions) {
|
|
73
|
+
let resourceInputs: pulumi.Inputs = {};
|
|
74
|
+
opts = opts || {};
|
|
75
|
+
if (opts.id) {
|
|
76
|
+
const state = argsOrState as OrganizationRoleState | undefined;
|
|
77
|
+
resourceInputs["createdAt"] = state?.createdAt;
|
|
78
|
+
resourceInputs["description"] = state?.description;
|
|
79
|
+
resourceInputs["isCreatorEligible"] = state?.isCreatorEligible;
|
|
80
|
+
resourceInputs["key"] = state?.key;
|
|
81
|
+
resourceInputs["name"] = state?.name;
|
|
82
|
+
resourceInputs["permissions"] = state?.permissions;
|
|
83
|
+
resourceInputs["updatedAt"] = state?.updatedAt;
|
|
84
|
+
} else {
|
|
85
|
+
const args = argsOrState as OrganizationRoleArgs | undefined;
|
|
86
|
+
if (args?.key === undefined && !opts.urn) {
|
|
87
|
+
throw new Error("Missing required property 'key'");
|
|
88
|
+
}
|
|
89
|
+
resourceInputs["description"] = args?.description;
|
|
90
|
+
resourceInputs["key"] = args?.key;
|
|
91
|
+
resourceInputs["name"] = args?.name;
|
|
92
|
+
resourceInputs["permissions"] = args?.permissions;
|
|
93
|
+
resourceInputs["createdAt"] = undefined /*out*/;
|
|
94
|
+
resourceInputs["isCreatorEligible"] = undefined /*out*/;
|
|
95
|
+
resourceInputs["updatedAt"] = undefined /*out*/;
|
|
96
|
+
}
|
|
97
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
98
|
+
super(OrganizationRole.__pulumiType, name, resourceInputs, opts, false /*dependency*/, utilities.getPackage());
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Input properties used for looking up and filtering OrganizationRole resources.
|
|
104
|
+
*/
|
|
105
|
+
export interface OrganizationRoleState {
|
|
106
|
+
/**
|
|
107
|
+
* Timestamp when the role was created.
|
|
108
|
+
*/
|
|
109
|
+
createdAt?: pulumi.Input<string | undefined>;
|
|
110
|
+
/**
|
|
111
|
+
* Description of the role.
|
|
112
|
+
*/
|
|
113
|
+
description?: pulumi.Input<string | undefined>;
|
|
114
|
+
/**
|
|
115
|
+
* Whether the role is eligible to be assigned to organization creators.
|
|
116
|
+
*/
|
|
117
|
+
isCreatorEligible?: pulumi.Input<boolean | undefined>;
|
|
118
|
+
/**
|
|
119
|
+
* Unique key for the role (e.g. org:editor).
|
|
120
|
+
*/
|
|
121
|
+
key?: pulumi.Input<string | undefined>;
|
|
122
|
+
/**
|
|
123
|
+
* Display name of the role.
|
|
124
|
+
*/
|
|
125
|
+
name?: pulumi.Input<string | undefined>;
|
|
126
|
+
/**
|
|
127
|
+
* List of permission IDs to assign to this role.
|
|
128
|
+
*/
|
|
129
|
+
permissions?: pulumi.Input<pulumi.Input<string>[] | undefined>;
|
|
130
|
+
/**
|
|
131
|
+
* Timestamp when the role was last updated.
|
|
132
|
+
*/
|
|
133
|
+
updatedAt?: pulumi.Input<string | undefined>;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* The set of arguments for constructing a OrganizationRole resource.
|
|
138
|
+
*/
|
|
139
|
+
export interface OrganizationRoleArgs {
|
|
140
|
+
/**
|
|
141
|
+
* Description of the role.
|
|
142
|
+
*/
|
|
143
|
+
description?: pulumi.Input<string | undefined>;
|
|
144
|
+
/**
|
|
145
|
+
* Unique key for the role (e.g. org:editor).
|
|
146
|
+
*/
|
|
147
|
+
key: pulumi.Input<string>;
|
|
148
|
+
/**
|
|
149
|
+
* Display name of the role.
|
|
150
|
+
*/
|
|
151
|
+
name?: pulumi.Input<string | undefined>;
|
|
152
|
+
/**
|
|
153
|
+
* List of permission IDs to assign to this role.
|
|
154
|
+
*/
|
|
155
|
+
permissions?: pulumi.Input<pulumi.Input<string>[] | undefined>;
|
|
156
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@pulumi/clerk",
|
|
3
|
+
"version": "0.7.2",
|
|
4
|
+
"description": "A Pulumi provider dynamically bridged from clerk.",
|
|
5
|
+
"repository": "https://github.com/buildwithdeck/terraform-provider-clerk",
|
|
6
|
+
"main": "bin/index.js",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"build": "tsc",
|
|
9
|
+
"postinstall": "node ./scripts/postinstall.js"
|
|
10
|
+
},
|
|
11
|
+
"dependencies": {
|
|
12
|
+
"@pulumi/pulumi": "^3.238.0",
|
|
13
|
+
"@types/node": "^20",
|
|
14
|
+
"typescript": "^4.7.0"
|
|
15
|
+
},
|
|
16
|
+
"pulumi": {
|
|
17
|
+
"resource": true,
|
|
18
|
+
"name": "terraform-provider",
|
|
19
|
+
"version": "0.8.1",
|
|
20
|
+
"parameterization": {
|
|
21
|
+
"name": "clerk",
|
|
22
|
+
"version": "0.7.2",
|
|
23
|
+
"value": "eyJyZW1vdGUiOnsidXJsIjoicmVnaXN0cnkub3BlbnRvZnUub3JnL2J1aWxkd2l0aGRlY2svY2xlcmsiLCJ2ZXJzaW9uIjoiMC43LjIifX0="
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
2
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
3
|
+
|
|
4
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
5
|
+
import * as utilities from "./utilities";
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* The provider type for the clerk package. By default, resources use package-wide configuration
|
|
9
|
+
* settings, however an explicit `Provider` instance may be created and passed during resource
|
|
10
|
+
* construction to achieve fine-grained programmatic control over provider settings. See the
|
|
11
|
+
* [documentation](https://www.pulumi.com/docs/reference/programming-model/#providers) for more information.
|
|
12
|
+
*/
|
|
13
|
+
export class Provider extends pulumi.ProviderResource {
|
|
14
|
+
/** @internal */
|
|
15
|
+
public static readonly __pulumiType = 'clerk';
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Returns true if the given object is an instance of Provider. This is designed to work even
|
|
19
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
20
|
+
*/
|
|
21
|
+
public static isInstance(obj: any): obj is Provider {
|
|
22
|
+
if (obj === undefined || obj === null) {
|
|
23
|
+
return false;
|
|
24
|
+
}
|
|
25
|
+
return obj['__pulumiType'] === "pulumi:providers:" + Provider.__pulumiType;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Clerk instance secret key (starts with sk_test_ or sk_live_). Required for clerk_jwt_template, clerk_organization, and
|
|
30
|
+
* clerk.ApplicationSettings resources. Can also be set via the CLERK_API_KEY environment variable.
|
|
31
|
+
*/
|
|
32
|
+
declare public readonly apiKey: pulumi.Output<string | undefined>;
|
|
33
|
+
/**
|
|
34
|
+
* Clerk Platform API key (starts with ak_). Required for clerk_application, clerk_domain, and clerk.InstanceConfig
|
|
35
|
+
* resources. The Platform API is a beta feature — contact Clerk support or visit your dashboard to request access. Can
|
|
36
|
+
* also be set via the CLERK_PLATFORM_API_KEY environment variable.
|
|
37
|
+
*/
|
|
38
|
+
declare public readonly platformApiKey: pulumi.Output<string | undefined>;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Create a Provider resource with the given unique name, arguments, and options.
|
|
42
|
+
*
|
|
43
|
+
* @param name The _unique_ name of the resource.
|
|
44
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
45
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
46
|
+
*/
|
|
47
|
+
constructor(name: string, args?: ProviderArgs, opts?: pulumi.ResourceOptions) {
|
|
48
|
+
let resourceInputs: pulumi.Inputs = {};
|
|
49
|
+
opts = opts || {};
|
|
50
|
+
{
|
|
51
|
+
resourceInputs["apiKey"] = args?.apiKey ? pulumi.secret(args.apiKey) : undefined;
|
|
52
|
+
resourceInputs["platformApiKey"] = args?.platformApiKey ? pulumi.secret(args.platformApiKey) : undefined;
|
|
53
|
+
}
|
|
54
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
55
|
+
const secretOpts = { additionalSecretOutputs: ["apiKey", "platformApiKey"] };
|
|
56
|
+
opts = pulumi.mergeOptions(opts, secretOpts);
|
|
57
|
+
super(Provider.__pulumiType, name, resourceInputs, opts, false /*dependency*/, utilities.getPackage());
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* The set of arguments for constructing a Provider resource.
|
|
63
|
+
*/
|
|
64
|
+
export interface ProviderArgs {
|
|
65
|
+
/**
|
|
66
|
+
* Clerk instance secret key (starts with sk_test_ or sk_live_). Required for clerk_jwt_template, clerk_organization, and
|
|
67
|
+
* clerk.ApplicationSettings resources. Can also be set via the CLERK_API_KEY environment variable.
|
|
68
|
+
*/
|
|
69
|
+
apiKey?: pulumi.Input<string | undefined>;
|
|
70
|
+
/**
|
|
71
|
+
* Clerk Platform API key (starts with ak_). Required for clerk_application, clerk_domain, and clerk.InstanceConfig
|
|
72
|
+
* resources. The Platform API is a beta feature — contact Clerk support or visit your dashboard to request access. Can
|
|
73
|
+
* also be set via the CLERK_PLATFORM_API_KEY environment variable.
|
|
74
|
+
*/
|
|
75
|
+
platformApiKey?: pulumi.Input<string | undefined>;
|
|
76
|
+
}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
2
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
3
|
+
|
|
4
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
5
|
+
import * as utilities from "./utilities";
|
|
6
|
+
|
|
7
|
+
export class RedirectUrl extends pulumi.CustomResource {
|
|
8
|
+
/**
|
|
9
|
+
* Get an existing RedirectUrl resource's state with the given name, ID, and optional extra
|
|
10
|
+
* properties used to qualify the lookup.
|
|
11
|
+
*
|
|
12
|
+
* @param name The _unique_ name of the resulting resource.
|
|
13
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
14
|
+
* @param state Any extra arguments used during the lookup.
|
|
15
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
16
|
+
*/
|
|
17
|
+
public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: RedirectUrlState, opts?: pulumi.CustomResourceOptions): RedirectUrl {
|
|
18
|
+
return new RedirectUrl(name, <any>state, { ...opts, id: id });
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/** @internal */
|
|
22
|
+
public static readonly __pulumiType = 'clerk:index/redirectUrl:RedirectUrl';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Returns true if the given object is an instance of RedirectUrl. This is designed to work even
|
|
26
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
27
|
+
*/
|
|
28
|
+
public static isInstance(obj: any): obj is RedirectUrl {
|
|
29
|
+
if (obj === undefined || obj === null) {
|
|
30
|
+
return false;
|
|
31
|
+
}
|
|
32
|
+
return obj['__pulumiType'] === RedirectUrl.__pulumiType;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Timestamp when the redirect URL was created.
|
|
37
|
+
*/
|
|
38
|
+
declare public /*out*/ readonly createdAt: pulumi.Output<string>;
|
|
39
|
+
/**
|
|
40
|
+
* Timestamp when the redirect URL was last updated.
|
|
41
|
+
*/
|
|
42
|
+
declare public /*out*/ readonly updatedAt: pulumi.Output<string>;
|
|
43
|
+
/**
|
|
44
|
+
* The URL to whitelist for redirect-based authentication flows.
|
|
45
|
+
*/
|
|
46
|
+
declare public readonly url: pulumi.Output<string>;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Create a RedirectUrl resource with the given unique name, arguments, and options.
|
|
50
|
+
*
|
|
51
|
+
* @param name The _unique_ name of the resource.
|
|
52
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
53
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
54
|
+
*/
|
|
55
|
+
constructor(name: string, args: RedirectUrlArgs, opts?: pulumi.CustomResourceOptions)
|
|
56
|
+
constructor(name: string, argsOrState?: RedirectUrlArgs | RedirectUrlState, opts?: pulumi.CustomResourceOptions) {
|
|
57
|
+
let resourceInputs: pulumi.Inputs = {};
|
|
58
|
+
opts = opts || {};
|
|
59
|
+
if (opts.id) {
|
|
60
|
+
const state = argsOrState as RedirectUrlState | undefined;
|
|
61
|
+
resourceInputs["createdAt"] = state?.createdAt;
|
|
62
|
+
resourceInputs["updatedAt"] = state?.updatedAt;
|
|
63
|
+
resourceInputs["url"] = state?.url;
|
|
64
|
+
} else {
|
|
65
|
+
const args = argsOrState as RedirectUrlArgs | undefined;
|
|
66
|
+
if (args?.url === undefined && !opts.urn) {
|
|
67
|
+
throw new Error("Missing required property 'url'");
|
|
68
|
+
}
|
|
69
|
+
resourceInputs["url"] = args?.url;
|
|
70
|
+
resourceInputs["createdAt"] = undefined /*out*/;
|
|
71
|
+
resourceInputs["updatedAt"] = undefined /*out*/;
|
|
72
|
+
}
|
|
73
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
74
|
+
super(RedirectUrl.__pulumiType, name, resourceInputs, opts, false /*dependency*/, utilities.getPackage());
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Input properties used for looking up and filtering RedirectUrl resources.
|
|
80
|
+
*/
|
|
81
|
+
export interface RedirectUrlState {
|
|
82
|
+
/**
|
|
83
|
+
* Timestamp when the redirect URL was created.
|
|
84
|
+
*/
|
|
85
|
+
createdAt?: pulumi.Input<string | undefined>;
|
|
86
|
+
/**
|
|
87
|
+
* Timestamp when the redirect URL was last updated.
|
|
88
|
+
*/
|
|
89
|
+
updatedAt?: pulumi.Input<string | undefined>;
|
|
90
|
+
/**
|
|
91
|
+
* The URL to whitelist for redirect-based authentication flows.
|
|
92
|
+
*/
|
|
93
|
+
url?: pulumi.Input<string | undefined>;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* The set of arguments for constructing a RedirectUrl resource.
|
|
98
|
+
*/
|
|
99
|
+
export interface RedirectUrlArgs {
|
|
100
|
+
/**
|
|
101
|
+
* The URL to whitelist for redirect-based authentication flows.
|
|
102
|
+
*/
|
|
103
|
+
url: pulumi.Input<string>;
|
|
104
|
+
}
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
2
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
3
|
+
|
|
4
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
5
|
+
import * as utilities from "./utilities";
|
|
6
|
+
|
|
7
|
+
export class RoleSet extends pulumi.CustomResource {
|
|
8
|
+
/**
|
|
9
|
+
* Get an existing RoleSet resource's state with the given name, ID, and optional extra
|
|
10
|
+
* properties used to qualify the lookup.
|
|
11
|
+
*
|
|
12
|
+
* @param name The _unique_ name of the resulting resource.
|
|
13
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
14
|
+
* @param state Any extra arguments used during the lookup.
|
|
15
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
16
|
+
*/
|
|
17
|
+
public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: RoleSetState, opts?: pulumi.CustomResourceOptions): RoleSet {
|
|
18
|
+
return new RoleSet(name, <any>state, { ...opts, id: id });
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/** @internal */
|
|
22
|
+
public static readonly __pulumiType = 'clerk:index/roleSet:RoleSet';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Returns true if the given object is an instance of RoleSet. This is designed to work even
|
|
26
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
27
|
+
*/
|
|
28
|
+
public static isInstance(obj: any): obj is RoleSet {
|
|
29
|
+
if (obj === undefined || obj === null) {
|
|
30
|
+
return false;
|
|
31
|
+
}
|
|
32
|
+
return obj['__pulumiType'] === RoleSet.__pulumiType;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Timestamp when the role set was created.
|
|
37
|
+
*/
|
|
38
|
+
declare public /*out*/ readonly createdAt: pulumi.Output<string>;
|
|
39
|
+
/**
|
|
40
|
+
* Key of the role assigned to the creator of an organization.
|
|
41
|
+
*/
|
|
42
|
+
declare public readonly creatorRoleKey: pulumi.Output<string>;
|
|
43
|
+
/**
|
|
44
|
+
* Key of the role automatically assigned to new organization members.
|
|
45
|
+
*/
|
|
46
|
+
declare public readonly defaultRoleKey: pulumi.Output<string>;
|
|
47
|
+
/**
|
|
48
|
+
* Description of the role set.
|
|
49
|
+
*/
|
|
50
|
+
declare public readonly description: pulumi.Output<string | undefined>;
|
|
51
|
+
/**
|
|
52
|
+
* Unique key for the role set.
|
|
53
|
+
*/
|
|
54
|
+
declare public readonly key: pulumi.Output<string>;
|
|
55
|
+
/**
|
|
56
|
+
* Display name of the role set.
|
|
57
|
+
*/
|
|
58
|
+
declare public readonly name: pulumi.Output<string>;
|
|
59
|
+
/**
|
|
60
|
+
* List of role keys to include in this role set. Must include default_role_key and creator_role_key.
|
|
61
|
+
*/
|
|
62
|
+
declare public readonly roles: pulumi.Output<string[]>;
|
|
63
|
+
/**
|
|
64
|
+
* Type of the role set (initial or custom).
|
|
65
|
+
*/
|
|
66
|
+
declare public readonly type: pulumi.Output<string>;
|
|
67
|
+
/**
|
|
68
|
+
* Timestamp when the role set was last updated.
|
|
69
|
+
*/
|
|
70
|
+
declare public /*out*/ readonly updatedAt: pulumi.Output<string>;
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Create a RoleSet resource with the given unique name, arguments, and options.
|
|
74
|
+
*
|
|
75
|
+
* @param name The _unique_ name of the resource.
|
|
76
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
77
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
78
|
+
*/
|
|
79
|
+
constructor(name: string, args: RoleSetArgs, opts?: pulumi.CustomResourceOptions)
|
|
80
|
+
constructor(name: string, argsOrState?: RoleSetArgs | RoleSetState, opts?: pulumi.CustomResourceOptions) {
|
|
81
|
+
let resourceInputs: pulumi.Inputs = {};
|
|
82
|
+
opts = opts || {};
|
|
83
|
+
if (opts.id) {
|
|
84
|
+
const state = argsOrState as RoleSetState | undefined;
|
|
85
|
+
resourceInputs["createdAt"] = state?.createdAt;
|
|
86
|
+
resourceInputs["creatorRoleKey"] = state?.creatorRoleKey;
|
|
87
|
+
resourceInputs["defaultRoleKey"] = state?.defaultRoleKey;
|
|
88
|
+
resourceInputs["description"] = state?.description;
|
|
89
|
+
resourceInputs["key"] = state?.key;
|
|
90
|
+
resourceInputs["name"] = state?.name;
|
|
91
|
+
resourceInputs["roles"] = state?.roles;
|
|
92
|
+
resourceInputs["type"] = state?.type;
|
|
93
|
+
resourceInputs["updatedAt"] = state?.updatedAt;
|
|
94
|
+
} else {
|
|
95
|
+
const args = argsOrState as RoleSetArgs | undefined;
|
|
96
|
+
if (args?.creatorRoleKey === undefined && !opts.urn) {
|
|
97
|
+
throw new Error("Missing required property 'creatorRoleKey'");
|
|
98
|
+
}
|
|
99
|
+
if (args?.defaultRoleKey === undefined && !opts.urn) {
|
|
100
|
+
throw new Error("Missing required property 'defaultRoleKey'");
|
|
101
|
+
}
|
|
102
|
+
if (args?.key === undefined && !opts.urn) {
|
|
103
|
+
throw new Error("Missing required property 'key'");
|
|
104
|
+
}
|
|
105
|
+
if (args?.roles === undefined && !opts.urn) {
|
|
106
|
+
throw new Error("Missing required property 'roles'");
|
|
107
|
+
}
|
|
108
|
+
resourceInputs["creatorRoleKey"] = args?.creatorRoleKey;
|
|
109
|
+
resourceInputs["defaultRoleKey"] = args?.defaultRoleKey;
|
|
110
|
+
resourceInputs["description"] = args?.description;
|
|
111
|
+
resourceInputs["key"] = args?.key;
|
|
112
|
+
resourceInputs["name"] = args?.name;
|
|
113
|
+
resourceInputs["roles"] = args?.roles;
|
|
114
|
+
resourceInputs["type"] = args?.type;
|
|
115
|
+
resourceInputs["createdAt"] = undefined /*out*/;
|
|
116
|
+
resourceInputs["updatedAt"] = undefined /*out*/;
|
|
117
|
+
}
|
|
118
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
119
|
+
super(RoleSet.__pulumiType, name, resourceInputs, opts, false /*dependency*/, utilities.getPackage());
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Input properties used for looking up and filtering RoleSet resources.
|
|
125
|
+
*/
|
|
126
|
+
export interface RoleSetState {
|
|
127
|
+
/**
|
|
128
|
+
* Timestamp when the role set was created.
|
|
129
|
+
*/
|
|
130
|
+
createdAt?: pulumi.Input<string | undefined>;
|
|
131
|
+
/**
|
|
132
|
+
* Key of the role assigned to the creator of an organization.
|
|
133
|
+
*/
|
|
134
|
+
creatorRoleKey?: pulumi.Input<string | undefined>;
|
|
135
|
+
/**
|
|
136
|
+
* Key of the role automatically assigned to new organization members.
|
|
137
|
+
*/
|
|
138
|
+
defaultRoleKey?: pulumi.Input<string | undefined>;
|
|
139
|
+
/**
|
|
140
|
+
* Description of the role set.
|
|
141
|
+
*/
|
|
142
|
+
description?: pulumi.Input<string | undefined>;
|
|
143
|
+
/**
|
|
144
|
+
* Unique key for the role set.
|
|
145
|
+
*/
|
|
146
|
+
key?: pulumi.Input<string | undefined>;
|
|
147
|
+
/**
|
|
148
|
+
* Display name of the role set.
|
|
149
|
+
*/
|
|
150
|
+
name?: pulumi.Input<string | undefined>;
|
|
151
|
+
/**
|
|
152
|
+
* List of role keys to include in this role set. Must include default_role_key and creator_role_key.
|
|
153
|
+
*/
|
|
154
|
+
roles?: pulumi.Input<pulumi.Input<string>[] | undefined>;
|
|
155
|
+
/**
|
|
156
|
+
* Type of the role set (initial or custom).
|
|
157
|
+
*/
|
|
158
|
+
type?: pulumi.Input<string | undefined>;
|
|
159
|
+
/**
|
|
160
|
+
* Timestamp when the role set was last updated.
|
|
161
|
+
*/
|
|
162
|
+
updatedAt?: pulumi.Input<string | undefined>;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* The set of arguments for constructing a RoleSet resource.
|
|
167
|
+
*/
|
|
168
|
+
export interface RoleSetArgs {
|
|
169
|
+
/**
|
|
170
|
+
* Key of the role assigned to the creator of an organization.
|
|
171
|
+
*/
|
|
172
|
+
creatorRoleKey: pulumi.Input<string>;
|
|
173
|
+
/**
|
|
174
|
+
* Key of the role automatically assigned to new organization members.
|
|
175
|
+
*/
|
|
176
|
+
defaultRoleKey: pulumi.Input<string>;
|
|
177
|
+
/**
|
|
178
|
+
* Description of the role set.
|
|
179
|
+
*/
|
|
180
|
+
description?: pulumi.Input<string | undefined>;
|
|
181
|
+
/**
|
|
182
|
+
* Unique key for the role set.
|
|
183
|
+
*/
|
|
184
|
+
key: pulumi.Input<string>;
|
|
185
|
+
/**
|
|
186
|
+
* Display name of the role set.
|
|
187
|
+
*/
|
|
188
|
+
name?: pulumi.Input<string | undefined>;
|
|
189
|
+
/**
|
|
190
|
+
* List of role keys to include in this role set. Must include default_role_key and creator_role_key.
|
|
191
|
+
*/
|
|
192
|
+
roles: pulumi.Input<pulumi.Input<string>[]>;
|
|
193
|
+
/**
|
|
194
|
+
* Type of the role set (initial or custom).
|
|
195
|
+
*/
|
|
196
|
+
type?: pulumi.Input<string | undefined>;
|
|
197
|
+
}
|