@pulumi/okta 3.4.0 → 3.5.1
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/adminRoleCustom.d.ts +113 -0
- package/adminRoleCustom.js +87 -0
- package/adminRoleCustom.js.map +1 -0
- package/adminRoleCustomAssignments.d.ts +90 -0
- package/adminRoleCustomAssignments.js +76 -0
- package/adminRoleCustomAssignments.js.map +1 -0
- package/app/getApp.d.ts +2 -30
- package/app/getApp.js +0 -2
- package/app/getApp.js.map +1 -1
- package/app/getOauth.d.ts +2 -30
- package/app/getOauth.js +0 -2
- package/app/getOauth.js.map +1 -1
- package/app/getSaml.d.ts +31 -285
- package/app/getSaml.js +0 -30
- package/app/getSaml.js.map +1 -1
- package/app/oauth.d.ts +15 -15
- package/app/oauthRedirectUri.d.ts +39 -0
- package/app/oauthRedirectUri.js +30 -0
- package/app/oauthRedirectUri.js.map +1 -1
- package/app/userBaseSchema.d.ts +1 -1
- package/app/userBaseSchema.js +1 -1
- package/appUserSchemaProperty.d.ts +1 -2
- package/appUserSchemaProperty.js +1 -2
- package/appUserSchemaProperty.js.map +1 -1
- package/authServerClaimDefault.d.ts +4 -0
- package/authServerClaimDefault.js +1 -1
- package/authServerClaimDefault.js.map +1 -1
- package/captcha.d.ts +110 -0
- package/captcha.js +92 -0
- package/captcha.js.map +1 -0
- package/captchaOrgWideSettings.d.ts +105 -0
- package/captchaOrgWideSettings.js +98 -0
- package/captchaOrgWideSettings.js.map +1 -0
- package/deprecated/signonPolicyRule.d.ts +12 -0
- package/deprecated/signonPolicyRule.js +2 -0
- package/deprecated/signonPolicyRule.js.map +1 -1
- package/deprecated/socialIdp.d.ts +36 -0
- package/deprecated/socialIdp.js +6 -0
- package/deprecated/socialIdp.js.map +1 -1
- package/domainCertificate.d.ts +7 -5
- package/domainCertificate.js +5 -0
- package/domainCertificate.js.map +1 -1
- package/idp/social.d.ts +42 -0
- package/idp/social.js +6 -0
- package/idp/social.js.map +1 -1
- package/index.d.ts +8 -0
- package/index.js +40 -0
- package/index.js.map +1 -1
- package/linkDefinition.d.ts +138 -0
- package/linkDefinition.js +109 -0
- package/linkDefinition.js.map +1 -0
- package/linkValue.d.ts +125 -0
- package/linkValue.js +114 -0
- package/linkValue.js.map +1 -0
- package/package.json +2 -2
- package/package.json.dev +1 -1
- package/policy/ruleSignon.d.ts +20 -4
- package/policy/ruleSignon.js +4 -1
- package/policy/ruleSignon.js.map +1 -1
- package/rateLimiting.d.ts +104 -0
- package/rateLimiting.js +87 -0
- package/rateLimiting.js.map +1 -0
- package/resourceSet.d.ts +97 -0
- package/resourceSet.js +83 -0
- package/resourceSet.js.map +1 -0
- package/types/input.d.ts +0 -338
- package/user/baseSchema.d.ts +1 -1
- package/user/baseSchema.js +1 -1
- package/user/getUserType.d.ts +3 -19
- package/user/getUserType.js +0 -2
- package/user/getUserType.js.map +1 -1
- package/user/getUsers.d.ts +1 -9
- package/user/getUsers.js +0 -1
- package/user/getUsers.js.map +1 -1
- package/user/user.d.ts +38 -0
- package/user/user.js +19 -0
- package/user/user.js.map +1 -1
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* This resource allows you to configure the client-based rate limit and rate limiting communications settings.
|
|
4
|
+
*
|
|
5
|
+
* > **WARNING:** This resource is available only when using api token in the provider config.
|
|
6
|
+
*
|
|
7
|
+
* ## Example Usage
|
|
8
|
+
*
|
|
9
|
+
* ```typescript
|
|
10
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
+
* import * as okta from "@pulumi/okta";
|
|
12
|
+
*
|
|
13
|
+
* const example = new okta.RateLimiting("example", {
|
|
14
|
+
* authorize: "ENFORCE",
|
|
15
|
+
* communicationsEnabled: true,
|
|
16
|
+
* login: "ENFORCE",
|
|
17
|
+
* });
|
|
18
|
+
* ```
|
|
19
|
+
*
|
|
20
|
+
* ## Import
|
|
21
|
+
*
|
|
22
|
+
* Rate limit settings can be imported without any parameters.
|
|
23
|
+
*
|
|
24
|
+
* ```sh
|
|
25
|
+
* $ pulumi import okta:index/rateLimiting:RateLimiting example .
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
export declare class RateLimiting extends pulumi.CustomResource {
|
|
29
|
+
/**
|
|
30
|
+
* Get an existing RateLimiting resource's state with the given name, ID, and optional extra
|
|
31
|
+
* properties used to qualify the lookup.
|
|
32
|
+
*
|
|
33
|
+
* @param name The _unique_ name of the resulting resource.
|
|
34
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
35
|
+
* @param state Any extra arguments used during the lookup.
|
|
36
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
37
|
+
*/
|
|
38
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: RateLimitingState, opts?: pulumi.CustomResourceOptions): RateLimiting;
|
|
39
|
+
/**
|
|
40
|
+
* Returns true if the given object is an instance of RateLimiting. This is designed to work even
|
|
41
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
42
|
+
*/
|
|
43
|
+
static isInstance(obj: any): obj is RateLimiting;
|
|
44
|
+
/**
|
|
45
|
+
* Called during authentication. Valid values: `"ENFORCE"` _(Enforce limit and
|
|
46
|
+
* log per client (recommended))_, `"DISABLE"` _(Do nothing (not recommended))_, `"PREVIEW"` _(Log per client)_.
|
|
47
|
+
*/
|
|
48
|
+
readonly authorize: pulumi.Output<string>;
|
|
49
|
+
/**
|
|
50
|
+
* Enable or disable rate limiting communications. By default, it is `true`.
|
|
51
|
+
*/
|
|
52
|
+
readonly communicationsEnabled: pulumi.Output<boolean | undefined>;
|
|
53
|
+
/**
|
|
54
|
+
* Called when accessing the Okta hosted login page. Valid values: `"ENFORCE"` _(Enforce limit and
|
|
55
|
+
* log per client (recommended))_, `"DISABLE"` _(Do nothing (not recommended))_, `"PREVIEW"` _(Log per client)_.
|
|
56
|
+
*/
|
|
57
|
+
readonly login: pulumi.Output<string>;
|
|
58
|
+
/**
|
|
59
|
+
* Create a RateLimiting resource with the given unique name, arguments, and options.
|
|
60
|
+
*
|
|
61
|
+
* @param name The _unique_ name of the resource.
|
|
62
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
63
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
64
|
+
*/
|
|
65
|
+
constructor(name: string, args: RateLimitingArgs, opts?: pulumi.CustomResourceOptions);
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Input properties used for looking up and filtering RateLimiting resources.
|
|
69
|
+
*/
|
|
70
|
+
export interface RateLimitingState {
|
|
71
|
+
/**
|
|
72
|
+
* Called during authentication. Valid values: `"ENFORCE"` _(Enforce limit and
|
|
73
|
+
* log per client (recommended))_, `"DISABLE"` _(Do nothing (not recommended))_, `"PREVIEW"` _(Log per client)_.
|
|
74
|
+
*/
|
|
75
|
+
authorize?: pulumi.Input<string>;
|
|
76
|
+
/**
|
|
77
|
+
* Enable or disable rate limiting communications. By default, it is `true`.
|
|
78
|
+
*/
|
|
79
|
+
communicationsEnabled?: pulumi.Input<boolean>;
|
|
80
|
+
/**
|
|
81
|
+
* Called when accessing the Okta hosted login page. Valid values: `"ENFORCE"` _(Enforce limit and
|
|
82
|
+
* log per client (recommended))_, `"DISABLE"` _(Do nothing (not recommended))_, `"PREVIEW"` _(Log per client)_.
|
|
83
|
+
*/
|
|
84
|
+
login?: pulumi.Input<string>;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* The set of arguments for constructing a RateLimiting resource.
|
|
88
|
+
*/
|
|
89
|
+
export interface RateLimitingArgs {
|
|
90
|
+
/**
|
|
91
|
+
* Called during authentication. Valid values: `"ENFORCE"` _(Enforce limit and
|
|
92
|
+
* log per client (recommended))_, `"DISABLE"` _(Do nothing (not recommended))_, `"PREVIEW"` _(Log per client)_.
|
|
93
|
+
*/
|
|
94
|
+
authorize: pulumi.Input<string>;
|
|
95
|
+
/**
|
|
96
|
+
* Enable or disable rate limiting communications. By default, it is `true`.
|
|
97
|
+
*/
|
|
98
|
+
communicationsEnabled?: pulumi.Input<boolean>;
|
|
99
|
+
/**
|
|
100
|
+
* Called when accessing the Okta hosted login page. Valid values: `"ENFORCE"` _(Enforce limit and
|
|
101
|
+
* log per client (recommended))_, `"DISABLE"` _(Do nothing (not recommended))_, `"PREVIEW"` _(Log per client)_.
|
|
102
|
+
*/
|
|
103
|
+
login: pulumi.Input<string>;
|
|
104
|
+
}
|
package/rateLimiting.js
ADDED
|
@@ -0,0 +1,87 @@
|
|
|
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.RateLimiting = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* This resource allows you to configure the client-based rate limit and rate limiting communications settings.
|
|
10
|
+
*
|
|
11
|
+
* > **WARNING:** This resource is available only when using api token in the provider config.
|
|
12
|
+
*
|
|
13
|
+
* ## Example Usage
|
|
14
|
+
*
|
|
15
|
+
* ```typescript
|
|
16
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
17
|
+
* import * as okta from "@pulumi/okta";
|
|
18
|
+
*
|
|
19
|
+
* const example = new okta.RateLimiting("example", {
|
|
20
|
+
* authorize: "ENFORCE",
|
|
21
|
+
* communicationsEnabled: true,
|
|
22
|
+
* login: "ENFORCE",
|
|
23
|
+
* });
|
|
24
|
+
* ```
|
|
25
|
+
*
|
|
26
|
+
* ## Import
|
|
27
|
+
*
|
|
28
|
+
* Rate limit settings can be imported without any parameters.
|
|
29
|
+
*
|
|
30
|
+
* ```sh
|
|
31
|
+
* $ pulumi import okta:index/rateLimiting:RateLimiting example .
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
class RateLimiting extends pulumi.CustomResource {
|
|
35
|
+
constructor(name, argsOrState, opts) {
|
|
36
|
+
let inputs = {};
|
|
37
|
+
opts = opts || {};
|
|
38
|
+
if (opts.id) {
|
|
39
|
+
const state = argsOrState;
|
|
40
|
+
inputs["authorize"] = state ? state.authorize : undefined;
|
|
41
|
+
inputs["communicationsEnabled"] = state ? state.communicationsEnabled : undefined;
|
|
42
|
+
inputs["login"] = state ? state.login : undefined;
|
|
43
|
+
}
|
|
44
|
+
else {
|
|
45
|
+
const args = argsOrState;
|
|
46
|
+
if ((!args || args.authorize === undefined) && !opts.urn) {
|
|
47
|
+
throw new Error("Missing required property 'authorize'");
|
|
48
|
+
}
|
|
49
|
+
if ((!args || args.login === undefined) && !opts.urn) {
|
|
50
|
+
throw new Error("Missing required property 'login'");
|
|
51
|
+
}
|
|
52
|
+
inputs["authorize"] = args ? args.authorize : undefined;
|
|
53
|
+
inputs["communicationsEnabled"] = args ? args.communicationsEnabled : undefined;
|
|
54
|
+
inputs["login"] = args ? args.login : undefined;
|
|
55
|
+
}
|
|
56
|
+
if (!opts.version) {
|
|
57
|
+
opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
|
|
58
|
+
}
|
|
59
|
+
super(RateLimiting.__pulumiType, name, inputs, opts);
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Get an existing RateLimiting resource's state with the given name, ID, and optional extra
|
|
63
|
+
* properties used to qualify the lookup.
|
|
64
|
+
*
|
|
65
|
+
* @param name The _unique_ name of the resulting resource.
|
|
66
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
67
|
+
* @param state Any extra arguments used during the lookup.
|
|
68
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
69
|
+
*/
|
|
70
|
+
static get(name, id, state, opts) {
|
|
71
|
+
return new RateLimiting(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Returns true if the given object is an instance of RateLimiting. This is designed to work even
|
|
75
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
76
|
+
*/
|
|
77
|
+
static isInstance(obj) {
|
|
78
|
+
if (obj === undefined || obj === null) {
|
|
79
|
+
return false;
|
|
80
|
+
}
|
|
81
|
+
return obj['__pulumiType'] === RateLimiting.__pulumiType;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
exports.RateLimiting = RateLimiting;
|
|
85
|
+
/** @internal */
|
|
86
|
+
RateLimiting.__pulumiType = 'okta:index/rateLimiting:RateLimiting';
|
|
87
|
+
//# sourceMappingURL=rateLimiting.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rateLimiting.js","sourceRoot":"","sources":["../rateLimiting.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAa,YAAa,SAAQ,MAAM,CAAC,cAAc;IAmDnD,YAAY,IAAY,EAAE,WAAkD,EAAE,IAAmC;QAC7G,IAAI,MAAM,GAAkB,EAAE,CAAC;QAC/B,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA4C,CAAC;YAC3D,MAAM,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,MAAM,CAAC,uBAAuB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAAC,CAAC,SAAS,CAAC;YAClF,MAAM,CAAC,OAAO,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;SACrD;aAAM;YACH,MAAM,IAAI,GAAG,WAA2C,CAAC;YACzD,IAAI,CAAC,CAAC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K,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,YAAY,CAAC,YAAY,CAAC;IAC7D,CAAC;;AA1BL,oCA4EC;AA9DG,gBAAgB;AACO,yBAAY,GAAG,sCAAsC,CAAC"}
|
package/resourceSet.d.ts
ADDED
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* This resource allows the creation and manipulation of Okta Resource Sets as custom collections of Okta resources. You can use
|
|
4
|
+
* Okta Resource Sets to assign Custom Roles to administrators who are scoped to the designated resources.
|
|
5
|
+
* The `resources` field supports the following:
|
|
6
|
+
* - Apps
|
|
7
|
+
* - Groups
|
|
8
|
+
* - All Users within a Group
|
|
9
|
+
* - All Users within the org
|
|
10
|
+
* - All Groups within the org
|
|
11
|
+
* - All Apps within the org
|
|
12
|
+
* - All Apps of the same type
|
|
13
|
+
*
|
|
14
|
+
* > **NOTE:** This an `Early Access` feature.
|
|
15
|
+
*
|
|
16
|
+
* ## Import
|
|
17
|
+
*
|
|
18
|
+
* Okta Resource Set can be imported via the Okta ID.
|
|
19
|
+
*
|
|
20
|
+
* ```sh
|
|
21
|
+
* $ pulumi import okta:index/resourceSet:ResourceSet example <resource_set_id>
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
export declare class ResourceSet extends pulumi.CustomResource {
|
|
25
|
+
/**
|
|
26
|
+
* Get an existing ResourceSet resource's state with the given name, ID, and optional extra
|
|
27
|
+
* properties used to qualify the lookup.
|
|
28
|
+
*
|
|
29
|
+
* @param name The _unique_ name of the resulting resource.
|
|
30
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
31
|
+
* @param state Any extra arguments used during the lookup.
|
|
32
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
33
|
+
*/
|
|
34
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ResourceSetState, opts?: pulumi.CustomResourceOptions): ResourceSet;
|
|
35
|
+
/**
|
|
36
|
+
* Returns true if the given object is an instance of ResourceSet. This is designed to work even
|
|
37
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
38
|
+
*/
|
|
39
|
+
static isInstance(obj: any): obj is ResourceSet;
|
|
40
|
+
/**
|
|
41
|
+
* A description of the Resource Set.
|
|
42
|
+
*/
|
|
43
|
+
readonly description: pulumi.Output<string>;
|
|
44
|
+
/**
|
|
45
|
+
* Unique name given to the Resource Set.
|
|
46
|
+
*/
|
|
47
|
+
readonly label: pulumi.Output<string>;
|
|
48
|
+
/**
|
|
49
|
+
* The endpoints that reference the resources to be included in the new Resource Set. At least one
|
|
50
|
+
* endpoint must be specified when creating resource set.
|
|
51
|
+
*/
|
|
52
|
+
readonly resources: pulumi.Output<string[] | undefined>;
|
|
53
|
+
/**
|
|
54
|
+
* Create a ResourceSet resource with the given unique name, arguments, and options.
|
|
55
|
+
*
|
|
56
|
+
* @param name The _unique_ name of the resource.
|
|
57
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
58
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
59
|
+
*/
|
|
60
|
+
constructor(name: string, args: ResourceSetArgs, opts?: pulumi.CustomResourceOptions);
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Input properties used for looking up and filtering ResourceSet resources.
|
|
64
|
+
*/
|
|
65
|
+
export interface ResourceSetState {
|
|
66
|
+
/**
|
|
67
|
+
* A description of the Resource Set.
|
|
68
|
+
*/
|
|
69
|
+
description?: pulumi.Input<string>;
|
|
70
|
+
/**
|
|
71
|
+
* Unique name given to the Resource Set.
|
|
72
|
+
*/
|
|
73
|
+
label?: pulumi.Input<string>;
|
|
74
|
+
/**
|
|
75
|
+
* The endpoints that reference the resources to be included in the new Resource Set. At least one
|
|
76
|
+
* endpoint must be specified when creating resource set.
|
|
77
|
+
*/
|
|
78
|
+
resources?: pulumi.Input<pulumi.Input<string>[]>;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* The set of arguments for constructing a ResourceSet resource.
|
|
82
|
+
*/
|
|
83
|
+
export interface ResourceSetArgs {
|
|
84
|
+
/**
|
|
85
|
+
* A description of the Resource Set.
|
|
86
|
+
*/
|
|
87
|
+
description: pulumi.Input<string>;
|
|
88
|
+
/**
|
|
89
|
+
* Unique name given to the Resource Set.
|
|
90
|
+
*/
|
|
91
|
+
label: pulumi.Input<string>;
|
|
92
|
+
/**
|
|
93
|
+
* The endpoints that reference the resources to be included in the new Resource Set. At least one
|
|
94
|
+
* endpoint must be specified when creating resource set.
|
|
95
|
+
*/
|
|
96
|
+
resources?: pulumi.Input<pulumi.Input<string>[]>;
|
|
97
|
+
}
|
package/resourceSet.js
ADDED
|
@@ -0,0 +1,83 @@
|
|
|
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.ResourceSet = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* This resource allows the creation and manipulation of Okta Resource Sets as custom collections of Okta resources. You can use
|
|
10
|
+
* Okta Resource Sets to assign Custom Roles to administrators who are scoped to the designated resources.
|
|
11
|
+
* The `resources` field supports the following:
|
|
12
|
+
* - Apps
|
|
13
|
+
* - Groups
|
|
14
|
+
* - All Users within a Group
|
|
15
|
+
* - All Users within the org
|
|
16
|
+
* - All Groups within the org
|
|
17
|
+
* - All Apps within the org
|
|
18
|
+
* - All Apps of the same type
|
|
19
|
+
*
|
|
20
|
+
* > **NOTE:** This an `Early Access` feature.
|
|
21
|
+
*
|
|
22
|
+
* ## Import
|
|
23
|
+
*
|
|
24
|
+
* Okta Resource Set can be imported via the Okta ID.
|
|
25
|
+
*
|
|
26
|
+
* ```sh
|
|
27
|
+
* $ pulumi import okta:index/resourceSet:ResourceSet example <resource_set_id>
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
class ResourceSet extends pulumi.CustomResource {
|
|
31
|
+
constructor(name, argsOrState, opts) {
|
|
32
|
+
let inputs = {};
|
|
33
|
+
opts = opts || {};
|
|
34
|
+
if (opts.id) {
|
|
35
|
+
const state = argsOrState;
|
|
36
|
+
inputs["description"] = state ? state.description : undefined;
|
|
37
|
+
inputs["label"] = state ? state.label : undefined;
|
|
38
|
+
inputs["resources"] = state ? state.resources : undefined;
|
|
39
|
+
}
|
|
40
|
+
else {
|
|
41
|
+
const args = argsOrState;
|
|
42
|
+
if ((!args || args.description === undefined) && !opts.urn) {
|
|
43
|
+
throw new Error("Missing required property 'description'");
|
|
44
|
+
}
|
|
45
|
+
if ((!args || args.label === undefined) && !opts.urn) {
|
|
46
|
+
throw new Error("Missing required property 'label'");
|
|
47
|
+
}
|
|
48
|
+
inputs["description"] = args ? args.description : undefined;
|
|
49
|
+
inputs["label"] = args ? args.label : undefined;
|
|
50
|
+
inputs["resources"] = args ? args.resources : undefined;
|
|
51
|
+
}
|
|
52
|
+
if (!opts.version) {
|
|
53
|
+
opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
|
|
54
|
+
}
|
|
55
|
+
super(ResourceSet.__pulumiType, name, inputs, opts);
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Get an existing ResourceSet resource's state with the given name, ID, and optional extra
|
|
59
|
+
* properties used to qualify the lookup.
|
|
60
|
+
*
|
|
61
|
+
* @param name The _unique_ name of the resulting resource.
|
|
62
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
63
|
+
* @param state Any extra arguments used during the lookup.
|
|
64
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
65
|
+
*/
|
|
66
|
+
static get(name, id, state, opts) {
|
|
67
|
+
return new ResourceSet(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Returns true if the given object is an instance of ResourceSet. This is designed to work even
|
|
71
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
72
|
+
*/
|
|
73
|
+
static isInstance(obj) {
|
|
74
|
+
if (obj === undefined || obj === null) {
|
|
75
|
+
return false;
|
|
76
|
+
}
|
|
77
|
+
return obj['__pulumiType'] === ResourceSet.__pulumiType;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
exports.ResourceSet = ResourceSet;
|
|
81
|
+
/** @internal */
|
|
82
|
+
ResourceSet.__pulumiType = 'okta:index/resourceSet:ResourceSet';
|
|
83
|
+
//# sourceMappingURL=resourceSet.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resourceSet.js","sourceRoot":"","sources":["../resourceSet.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAa,WAAY,SAAQ,MAAM,CAAC,cAAc;IAkDlD,YAAY,IAAY,EAAE,WAAgD,EAAE,IAAmC;QAC3G,IAAI,MAAM,GAAkB,EAAE,CAAC;QAC/B,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA2C,CAAC;YAC1D,MAAM,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,MAAM,CAAC,OAAO,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;YAClD,MAAM,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;SAC7D;aAAM;YACH,MAAM,IAAI,GAAG,WA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