@pulumi/okta 6.2.0-alpha.1765395366 → 6.2.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/apiServiceIntegration.d.ts +110 -0
- package/apiServiceIntegration.js +96 -0
- package/apiServiceIntegration.js.map +1 -0
- package/apiToken.d.ts +141 -0
- package/apiToken.js +93 -0
- package/apiToken.js.map +1 -0
- package/app/connection.d.ts +164 -0
- package/app/connection.js +136 -0
- package/app/connection.js.map +1 -0
- package/app/features.d.ts +121 -0
- package/app/features.js +77 -0
- package/app/features.js.map +1 -0
- package/app/getConnection.d.ts +106 -0
- package/app/getConnection.js +62 -0
- package/app/getConnection.js.map +1 -0
- package/app/getFeatures.d.ts +156 -0
- package/app/getFeatures.js +116 -0
- package/app/getFeatures.js.map +1 -0
- package/app/getToken.d.ts +98 -0
- package/app/getToken.js +62 -0
- package/app/getToken.js.map +1 -0
- package/app/index.d.ts +18 -0
- package/app/index.js +25 -1
- package/app/index.js.map +1 -1
- package/app/oauth.d.ts +51 -0
- package/app/oauth.js +6 -0
- package/app/oauth.js.map +1 -1
- package/app/token.d.ts +108 -0
- package/app/token.js +93 -0
- package/app/token.js.map +1 -0
- package/appSignonPolicyRule.d.ts +1 -7
- package/appSignonPolicyRule.js +1 -7
- package/appSignonPolicyRule.js.map +1 -1
- package/auth/getServerClients.d.ts +114 -0
- package/auth/getServerClients.js +58 -0
- package/auth/getServerClients.js.map +1 -0
- package/auth/getServerKeys.d.ts +113 -0
- package/auth/getServerKeys.js +70 -0
- package/auth/getServerKeys.js.map +1 -0
- package/auth/index.d.ts +6 -0
- package/auth/index.js +7 -1
- package/auth/index.js.map +1 -1
- package/device.d.ts +80 -0
- package/device.js +69 -0
- package/device.js.map +1 -0
- package/getApiServiceIntegration.d.ts +85 -0
- package/getApiServiceIntegration.js +78 -0
- package/getApiServiceIntegration.js.map +1 -0
- package/getApiToken.d.ts +88 -0
- package/getApiToken.js +52 -0
- package/getApiToken.js.map +1 -0
- package/getCatalogEntryUserAccessRequestFields.d.ts +42 -0
- package/getCatalogEntryUserAccessRequestFields.js +24 -0
- package/getCatalogEntryUserAccessRequestFields.js.map +1 -1
- package/getDevice.d.ts +90 -0
- package/getDevice.js +54 -0
- package/getDevice.js.map +1 -0
- package/getHookKey.d.ts +77 -0
- package/getHookKey.js +52 -0
- package/getHookKey.js.map +1 -0
- package/getPushProvider.d.ts +118 -0
- package/getPushProvider.js +86 -0
- package/getPushProvider.js.map +1 -0
- package/getSecurityEventsProvider.d.ts +79 -0
- package/getSecurityEventsProvider.js +52 -0
- package/getSecurityEventsProvider.js.map +1 -0
- package/group/owner.d.ts +24 -0
- package/group/owner.js +24 -0
- package/group/owner.js.map +1 -1
- package/hookKey.d.ts +102 -0
- package/hookKey.js +79 -0
- package/hookKey.js.map +1 -0
- package/index.d.ts +36 -0
- package/index.js +52 -4
- package/index.js.map +1 -1
- package/package.json +3 -3
- package/pushProvider.d.ts +150 -0
- package/pushProvider.js +126 -0
- package/pushProvider.js.map +1 -0
- package/securityEventsProvider.d.ts +138 -0
- package/securityEventsProvider.js +107 -0
- package/securityEventsProvider.js.map +1 -0
- package/types/input.d.ts +906 -0
- package/types/output.d.ts +604 -0
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "./types/input";
|
|
3
|
+
import * as outputs from "./types/output";
|
|
4
|
+
/**
|
|
5
|
+
* ## ---
|
|
6
|
+
*
|
|
7
|
+
* page_title: "Resource: okta.ApiServiceIntegration"
|
|
8
|
+
* description: |-
|
|
9
|
+
*
|
|
10
|
+
* ***
|
|
11
|
+
*
|
|
12
|
+
* # Resource: okta.ApiServiceIntegration
|
|
13
|
+
*
|
|
14
|
+
* This API provides operations to manage API service integration instances in your org.
|
|
15
|
+
*
|
|
16
|
+
* ## Example Usage
|
|
17
|
+
*
|
|
18
|
+
* ```typescript
|
|
19
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
20
|
+
* import * as okta from "@pulumi/okta";
|
|
21
|
+
*
|
|
22
|
+
* const example = new okta.ApiServiceIntegration("example", {
|
|
23
|
+
* type: "anzennaapiservice",
|
|
24
|
+
* grantedScopes: [
|
|
25
|
+
* {
|
|
26
|
+
* scope: "okta.users.read",
|
|
27
|
+
* },
|
|
28
|
+
* {
|
|
29
|
+
* scope: "okta.groups.read",
|
|
30
|
+
* },
|
|
31
|
+
* {
|
|
32
|
+
* scope: "okta.logs.read",
|
|
33
|
+
* },
|
|
34
|
+
* ],
|
|
35
|
+
* });
|
|
36
|
+
* ```
|
|
37
|
+
*
|
|
38
|
+
* ## Import
|
|
39
|
+
*
|
|
40
|
+
* ```sh
|
|
41
|
+
* $ pulumi import okta:index/apiServiceIntegration:ApiServiceIntegration example <api_service_integration_id>
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
export declare class ApiServiceIntegration extends pulumi.CustomResource {
|
|
45
|
+
/**
|
|
46
|
+
* Get an existing ApiServiceIntegration resource's state with the given name, ID, and optional extra
|
|
47
|
+
* properties used to qualify the lookup.
|
|
48
|
+
*
|
|
49
|
+
* @param name The _unique_ name of the resulting resource.
|
|
50
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
51
|
+
* @param state Any extra arguments used during the lookup.
|
|
52
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
53
|
+
*/
|
|
54
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ApiServiceIntegrationState, opts?: pulumi.CustomResourceOptions): ApiServiceIntegration;
|
|
55
|
+
/**
|
|
56
|
+
* Returns true if the given object is an instance of ApiServiceIntegration. This is designed to work even
|
|
57
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
58
|
+
*/
|
|
59
|
+
static isInstance(obj: any): obj is ApiServiceIntegration;
|
|
60
|
+
/**
|
|
61
|
+
* The list of Okta management scopes granted to the API Service Integration instance.
|
|
62
|
+
*/
|
|
63
|
+
readonly grantedScopes: pulumi.Output<outputs.ApiServiceIntegrationGrantedScope[] | undefined>;
|
|
64
|
+
/**
|
|
65
|
+
* The name of the API service integration that corresponds with the type property.
|
|
66
|
+
*/
|
|
67
|
+
readonly name: pulumi.Output<string>;
|
|
68
|
+
/**
|
|
69
|
+
* The type of the API service integration. This string is an underscore-concatenated, lowercased API service integration name.
|
|
70
|
+
*/
|
|
71
|
+
readonly type: pulumi.Output<string>;
|
|
72
|
+
/**
|
|
73
|
+
* Create a ApiServiceIntegration 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: ApiServiceIntegrationArgs, opts?: pulumi.CustomResourceOptions);
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Input properties used for looking up and filtering ApiServiceIntegration resources.
|
|
83
|
+
*/
|
|
84
|
+
export interface ApiServiceIntegrationState {
|
|
85
|
+
/**
|
|
86
|
+
* The list of Okta management scopes granted to the API Service Integration instance.
|
|
87
|
+
*/
|
|
88
|
+
grantedScopes?: pulumi.Input<pulumi.Input<inputs.ApiServiceIntegrationGrantedScope>[]>;
|
|
89
|
+
/**
|
|
90
|
+
* The name of the API service integration that corresponds with the type property.
|
|
91
|
+
*/
|
|
92
|
+
name?: pulumi.Input<string>;
|
|
93
|
+
/**
|
|
94
|
+
* The type of the API service integration. This string is an underscore-concatenated, lowercased API service integration name.
|
|
95
|
+
*/
|
|
96
|
+
type?: pulumi.Input<string>;
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* The set of arguments for constructing a ApiServiceIntegration resource.
|
|
100
|
+
*/
|
|
101
|
+
export interface ApiServiceIntegrationArgs {
|
|
102
|
+
/**
|
|
103
|
+
* The list of Okta management scopes granted to the API Service Integration instance.
|
|
104
|
+
*/
|
|
105
|
+
grantedScopes?: pulumi.Input<pulumi.Input<inputs.ApiServiceIntegrationGrantedScope>[]>;
|
|
106
|
+
/**
|
|
107
|
+
* The type of the API service integration. This string is an underscore-concatenated, lowercased API service integration name.
|
|
108
|
+
*/
|
|
109
|
+
type: pulumi.Input<string>;
|
|
110
|
+
}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.ApiServiceIntegration = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* ## ---
|
|
10
|
+
*
|
|
11
|
+
* page_title: "Resource: okta.ApiServiceIntegration"
|
|
12
|
+
* description: |-
|
|
13
|
+
*
|
|
14
|
+
* ***
|
|
15
|
+
*
|
|
16
|
+
* # Resource: okta.ApiServiceIntegration
|
|
17
|
+
*
|
|
18
|
+
* This API provides operations to manage API service integration instances in your org.
|
|
19
|
+
*
|
|
20
|
+
* ## Example Usage
|
|
21
|
+
*
|
|
22
|
+
* ```typescript
|
|
23
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
24
|
+
* import * as okta from "@pulumi/okta";
|
|
25
|
+
*
|
|
26
|
+
* const example = new okta.ApiServiceIntegration("example", {
|
|
27
|
+
* type: "anzennaapiservice",
|
|
28
|
+
* grantedScopes: [
|
|
29
|
+
* {
|
|
30
|
+
* scope: "okta.users.read",
|
|
31
|
+
* },
|
|
32
|
+
* {
|
|
33
|
+
* scope: "okta.groups.read",
|
|
34
|
+
* },
|
|
35
|
+
* {
|
|
36
|
+
* scope: "okta.logs.read",
|
|
37
|
+
* },
|
|
38
|
+
* ],
|
|
39
|
+
* });
|
|
40
|
+
* ```
|
|
41
|
+
*
|
|
42
|
+
* ## Import
|
|
43
|
+
*
|
|
44
|
+
* ```sh
|
|
45
|
+
* $ pulumi import okta:index/apiServiceIntegration:ApiServiceIntegration example <api_service_integration_id>
|
|
46
|
+
* ```
|
|
47
|
+
*/
|
|
48
|
+
class ApiServiceIntegration extends pulumi.CustomResource {
|
|
49
|
+
/**
|
|
50
|
+
* Get an existing ApiServiceIntegration resource's state with the given name, ID, and optional extra
|
|
51
|
+
* properties used to qualify the lookup.
|
|
52
|
+
*
|
|
53
|
+
* @param name The _unique_ name of the resulting resource.
|
|
54
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
55
|
+
* @param state Any extra arguments used during the lookup.
|
|
56
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
57
|
+
*/
|
|
58
|
+
static get(name, id, state, opts) {
|
|
59
|
+
return new ApiServiceIntegration(name, state, { ...opts, id: id });
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Returns true if the given object is an instance of ApiServiceIntegration. This is designed to work even
|
|
63
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
64
|
+
*/
|
|
65
|
+
static isInstance(obj) {
|
|
66
|
+
if (obj === undefined || obj === null) {
|
|
67
|
+
return false;
|
|
68
|
+
}
|
|
69
|
+
return obj['__pulumiType'] === ApiServiceIntegration.__pulumiType;
|
|
70
|
+
}
|
|
71
|
+
constructor(name, argsOrState, opts) {
|
|
72
|
+
let resourceInputs = {};
|
|
73
|
+
opts = opts || {};
|
|
74
|
+
if (opts.id) {
|
|
75
|
+
const state = argsOrState;
|
|
76
|
+
resourceInputs["grantedScopes"] = state?.grantedScopes;
|
|
77
|
+
resourceInputs["name"] = state?.name;
|
|
78
|
+
resourceInputs["type"] = state?.type;
|
|
79
|
+
}
|
|
80
|
+
else {
|
|
81
|
+
const args = argsOrState;
|
|
82
|
+
if (args?.type === undefined && !opts.urn) {
|
|
83
|
+
throw new Error("Missing required property 'type'");
|
|
84
|
+
}
|
|
85
|
+
resourceInputs["grantedScopes"] = args?.grantedScopes;
|
|
86
|
+
resourceInputs["type"] = args?.type;
|
|
87
|
+
resourceInputs["name"] = undefined /*out*/;
|
|
88
|
+
}
|
|
89
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
90
|
+
super(ApiServiceIntegration.__pulumiType, name, resourceInputs, opts);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
exports.ApiServiceIntegration = ApiServiceIntegration;
|
|
94
|
+
/** @internal */
|
|
95
|
+
ApiServiceIntegration.__pulumiType = 'okta:index/apiServiceIntegration:ApiServiceIntegration';
|
|
96
|
+
//# sourceMappingURL=apiServiceIntegration.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apiServiceIntegration.js","sourceRoot":"","sources":["../apiServiceIntegration.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,MAAa,qBAAsB,SAAQ,MAAM,CAAC,cAAc;IAC5D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAkC,EAAE,IAAmC;QAChI,OAAO,IAAI,qBAAqB,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC5E,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,qBAAqB,CAAC,YAAY,CAAC;IACtE,CAAC;IAuBD,YAAY,IAAY,EAAE,WAAoE,EAAE,IAAmC;QAC/H,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAqD,CAAC;YACpE,cAAc,CAAC,eAAe,CAAC,GAAG,KAAK,EAAE,aAAa,CAAC;YACvD,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,EAAE,IAAI,CAAC;YACrC,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,EAAE,IAAI,CAAC;SACxC;aAAM;YACH,MAAM,IAAI,GAAG,WAAoD,CAAC;YAClE,IAAI,IAAI,EAAE,IAAI,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACvC,MAAM,IAAI,KAAK,CAAC,kCAAkC,CAAC,CAAC;aACvD;YACD,cAAc,CAAC,eAAe,CAAC,GAAG,IAAI,EAAE,aAAa,CAAC;YACtD,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC9C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,qBAAqB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC1E,CAAC;;AApEL,sDAqEC;AAvDG,gBAAgB;AACO,kCAAY,GAAG,wDAAwD,CAAC"}
|
package/apiToken.d.ts
ADDED
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "./types/input";
|
|
3
|
+
import * as outputs from "./types/output";
|
|
4
|
+
/**
|
|
5
|
+
* ## Example Usage
|
|
6
|
+
*
|
|
7
|
+
* ```typescript
|
|
8
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
+
* import * as okta from "@pulumi/okta";
|
|
10
|
+
*
|
|
11
|
+
* const example = new okta.ApiToken("example", {
|
|
12
|
+
* idProperty: "00T1fxzubpqiepH11d38",
|
|
13
|
+
* name: "token-api-token-test",
|
|
14
|
+
* userId: "00unkw1sfbTw08c0g1d7",
|
|
15
|
+
* network: {
|
|
16
|
+
* connection: "ZONE",
|
|
17
|
+
* excludes: ["nzonkw1sfwwi79Hat2d7"],
|
|
18
|
+
* },
|
|
19
|
+
* clientName: "Okta API",
|
|
20
|
+
* });
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* ## Nested Schema for network
|
|
24
|
+
*
|
|
25
|
+
* ### Optional:
|
|
26
|
+
* - `connection` (String) The connection type of the Network Condition.
|
|
27
|
+
*
|
|
28
|
+
* ### Blocks:
|
|
29
|
+
* - `exclude` (List of String) List of excluded network zones.
|
|
30
|
+
* - `include` (List of String) List of included network zones.
|
|
31
|
+
*
|
|
32
|
+
* ### Import
|
|
33
|
+
* API tokens can be imported using their ID:
|
|
34
|
+
*/
|
|
35
|
+
export declare class ApiToken extends pulumi.CustomResource {
|
|
36
|
+
/**
|
|
37
|
+
* Get an existing ApiToken resource's state with the given name, ID, and optional extra
|
|
38
|
+
* properties used to qualify the lookup.
|
|
39
|
+
*
|
|
40
|
+
* @param name The _unique_ name of the resulting resource.
|
|
41
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
42
|
+
* @param state Any extra arguments used during the lookup.
|
|
43
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
44
|
+
*/
|
|
45
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ApiTokenState, opts?: pulumi.CustomResourceOptions): ApiToken;
|
|
46
|
+
/**
|
|
47
|
+
* Returns true if the given object is an instance of ApiToken. This is designed to work even
|
|
48
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
49
|
+
*/
|
|
50
|
+
static isInstance(obj: any): obj is ApiToken;
|
|
51
|
+
/**
|
|
52
|
+
* The name of the API token client.
|
|
53
|
+
*/
|
|
54
|
+
readonly clientName: pulumi.Output<string>;
|
|
55
|
+
/**
|
|
56
|
+
* The date and time the API token was created.
|
|
57
|
+
*/
|
|
58
|
+
readonly created: pulumi.Output<string>;
|
|
59
|
+
/**
|
|
60
|
+
* The ID of the API token.
|
|
61
|
+
*/
|
|
62
|
+
readonly idProperty: pulumi.Output<string>;
|
|
63
|
+
/**
|
|
64
|
+
* The name of the API token.
|
|
65
|
+
*/
|
|
66
|
+
readonly name: pulumi.Output<string>;
|
|
67
|
+
/**
|
|
68
|
+
* The Network Condition of the API Token.
|
|
69
|
+
*/
|
|
70
|
+
readonly network: pulumi.Output<outputs.ApiTokenNetwork | undefined>;
|
|
71
|
+
/**
|
|
72
|
+
* The userId of the user who created the API Token.
|
|
73
|
+
*/
|
|
74
|
+
readonly userId: pulumi.Output<string>;
|
|
75
|
+
/**
|
|
76
|
+
* Create a ApiToken resource with the given unique name, arguments, and options.
|
|
77
|
+
*
|
|
78
|
+
* @param name The _unique_ name of the resource.
|
|
79
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
80
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
81
|
+
*/
|
|
82
|
+
constructor(name: string, args: ApiTokenArgs, opts?: pulumi.CustomResourceOptions);
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Input properties used for looking up and filtering ApiToken resources.
|
|
86
|
+
*/
|
|
87
|
+
export interface ApiTokenState {
|
|
88
|
+
/**
|
|
89
|
+
* The name of the API token client.
|
|
90
|
+
*/
|
|
91
|
+
clientName?: pulumi.Input<string>;
|
|
92
|
+
/**
|
|
93
|
+
* The date and time the API token was created.
|
|
94
|
+
*/
|
|
95
|
+
created?: pulumi.Input<string>;
|
|
96
|
+
/**
|
|
97
|
+
* The ID of the API token.
|
|
98
|
+
*/
|
|
99
|
+
idProperty?: pulumi.Input<string>;
|
|
100
|
+
/**
|
|
101
|
+
* The name of the API token.
|
|
102
|
+
*/
|
|
103
|
+
name?: pulumi.Input<string>;
|
|
104
|
+
/**
|
|
105
|
+
* The Network Condition of the API Token.
|
|
106
|
+
*/
|
|
107
|
+
network?: pulumi.Input<inputs.ApiTokenNetwork>;
|
|
108
|
+
/**
|
|
109
|
+
* The userId of the user who created the API Token.
|
|
110
|
+
*/
|
|
111
|
+
userId?: pulumi.Input<string>;
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* The set of arguments for constructing a ApiToken resource.
|
|
115
|
+
*/
|
|
116
|
+
export interface ApiTokenArgs {
|
|
117
|
+
/**
|
|
118
|
+
* The name of the API token client.
|
|
119
|
+
*/
|
|
120
|
+
clientName?: pulumi.Input<string>;
|
|
121
|
+
/**
|
|
122
|
+
* The date and time the API token was created.
|
|
123
|
+
*/
|
|
124
|
+
created?: pulumi.Input<string>;
|
|
125
|
+
/**
|
|
126
|
+
* The ID of the API token.
|
|
127
|
+
*/
|
|
128
|
+
idProperty: pulumi.Input<string>;
|
|
129
|
+
/**
|
|
130
|
+
* The name of the API token.
|
|
131
|
+
*/
|
|
132
|
+
name?: pulumi.Input<string>;
|
|
133
|
+
/**
|
|
134
|
+
* The Network Condition of the API Token.
|
|
135
|
+
*/
|
|
136
|
+
network?: pulumi.Input<inputs.ApiTokenNetwork>;
|
|
137
|
+
/**
|
|
138
|
+
* The userId of the user who created the API Token.
|
|
139
|
+
*/
|
|
140
|
+
userId?: pulumi.Input<string>;
|
|
141
|
+
}
|
package/apiToken.js
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.ApiToken = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* ## Example Usage
|
|
10
|
+
*
|
|
11
|
+
* ```typescript
|
|
12
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
13
|
+
* import * as okta from "@pulumi/okta";
|
|
14
|
+
*
|
|
15
|
+
* const example = new okta.ApiToken("example", {
|
|
16
|
+
* idProperty: "00T1fxzubpqiepH11d38",
|
|
17
|
+
* name: "token-api-token-test",
|
|
18
|
+
* userId: "00unkw1sfbTw08c0g1d7",
|
|
19
|
+
* network: {
|
|
20
|
+
* connection: "ZONE",
|
|
21
|
+
* excludes: ["nzonkw1sfwwi79Hat2d7"],
|
|
22
|
+
* },
|
|
23
|
+
* clientName: "Okta API",
|
|
24
|
+
* });
|
|
25
|
+
* ```
|
|
26
|
+
*
|
|
27
|
+
* ## Nested Schema for network
|
|
28
|
+
*
|
|
29
|
+
* ### Optional:
|
|
30
|
+
* - `connection` (String) The connection type of the Network Condition.
|
|
31
|
+
*
|
|
32
|
+
* ### Blocks:
|
|
33
|
+
* - `exclude` (List of String) List of excluded network zones.
|
|
34
|
+
* - `include` (List of String) List of included network zones.
|
|
35
|
+
*
|
|
36
|
+
* ### Import
|
|
37
|
+
* API tokens can be imported using their ID:
|
|
38
|
+
*/
|
|
39
|
+
class ApiToken extends pulumi.CustomResource {
|
|
40
|
+
/**
|
|
41
|
+
* Get an existing ApiToken resource's state with the given name, ID, and optional extra
|
|
42
|
+
* properties used to qualify the lookup.
|
|
43
|
+
*
|
|
44
|
+
* @param name The _unique_ name of the resulting resource.
|
|
45
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
46
|
+
* @param state Any extra arguments used during the lookup.
|
|
47
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
48
|
+
*/
|
|
49
|
+
static get(name, id, state, opts) {
|
|
50
|
+
return new ApiToken(name, state, { ...opts, id: id });
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Returns true if the given object is an instance of ApiToken. This is designed to work even
|
|
54
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
55
|
+
*/
|
|
56
|
+
static isInstance(obj) {
|
|
57
|
+
if (obj === undefined || obj === null) {
|
|
58
|
+
return false;
|
|
59
|
+
}
|
|
60
|
+
return obj['__pulumiType'] === ApiToken.__pulumiType;
|
|
61
|
+
}
|
|
62
|
+
constructor(name, argsOrState, opts) {
|
|
63
|
+
let resourceInputs = {};
|
|
64
|
+
opts = opts || {};
|
|
65
|
+
if (opts.id) {
|
|
66
|
+
const state = argsOrState;
|
|
67
|
+
resourceInputs["clientName"] = state?.clientName;
|
|
68
|
+
resourceInputs["created"] = state?.created;
|
|
69
|
+
resourceInputs["idProperty"] = state?.idProperty;
|
|
70
|
+
resourceInputs["name"] = state?.name;
|
|
71
|
+
resourceInputs["network"] = state?.network;
|
|
72
|
+
resourceInputs["userId"] = state?.userId;
|
|
73
|
+
}
|
|
74
|
+
else {
|
|
75
|
+
const args = argsOrState;
|
|
76
|
+
if (args?.idProperty === undefined && !opts.urn) {
|
|
77
|
+
throw new Error("Missing required property 'idProperty'");
|
|
78
|
+
}
|
|
79
|
+
resourceInputs["clientName"] = args?.clientName;
|
|
80
|
+
resourceInputs["created"] = args?.created;
|
|
81
|
+
resourceInputs["idProperty"] = args?.idProperty;
|
|
82
|
+
resourceInputs["name"] = args?.name;
|
|
83
|
+
resourceInputs["network"] = args?.network;
|
|
84
|
+
resourceInputs["userId"] = args?.userId;
|
|
85
|
+
}
|
|
86
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
87
|
+
super(ApiToken.__pulumiType, name, resourceInputs, opts);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
exports.ApiToken = ApiToken;
|
|
91
|
+
/** @internal */
|
|
92
|
+
ApiToken.__pulumiType = 'okta:index/apiToken:ApiToken';
|
|
93
|
+
//# sourceMappingURL=apiToken.js.map
|
package/apiToken.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apiToken.js","sourceRoot":"","sources":["../apiToken.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,cAAc;IAC/C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAqB,EAAE,IAAmC;QACnH,OAAO,IAAI,QAAQ,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC/D,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,QAAQ,CAAC,YAAY,CAAC;IACzD,CAAC;IAmCD,YAAY,IAAY,EAAE,WAA0C,EAAE,IAAmC;QACrG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAwC,CAAC;YACvD,cAAc,CAAC,YAAY,CAAC,GAAG,KAAK,EAAE,UAAU,CAAC;YACjD,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,EAAE,OAAO,CAAC;YAC3C,cAAc,CAAC,YAAY,CAAC,GAAG,KAAK,EAAE,UAAU,CAAC;YACjD,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,EAAE,IAAI,CAAC;YACrC,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,EAAE,OAAO,CAAC;YAC3C,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,EAAE,MAAM,CAAC;SAC5C;aAAM;YACH,MAAM,IAAI,GAAG,WAAuC,CAAC;YACrD,IAAI,IAAI,EAAE,UAAU,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAC7C,MAAM,IAAI,KAAK,CAAC,wCAAwC,CAAC,CAAC;aAC7D;YACD,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;YAChD,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,OAAO,CAAC;YAC1C,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;YAChD,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,OAAO,CAAC;YAC1C,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC;SAC3C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,QAAQ,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC7D,CAAC;;AAtFL,4BAuFC;AAzEG,gBAAgB;AACO,qBAAY,GAAG,8BAA8B,CAAC"}
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "../types/input";
|
|
3
|
+
import * as outputs from "../types/output";
|
|
4
|
+
/**
|
|
5
|
+
* Manages Okta App Connection configurations for provisioning. This resource allows you to configure and manage provisioning connections for applications, including authentication schemes and connection activation/deactivation.
|
|
6
|
+
*
|
|
7
|
+
* ## Example Usage
|
|
8
|
+
*
|
|
9
|
+
* ### TOKEN Authentication
|
|
10
|
+
*
|
|
11
|
+
* ```typescript
|
|
12
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
13
|
+
* import * as okta from "@pulumi/okta";
|
|
14
|
+
*
|
|
15
|
+
* const tokenExample = new okta.app.Connection("token_example", {
|
|
16
|
+
* idProperty: "0oa1234567890abcdef",
|
|
17
|
+
* baseUrl: "https://api.example.com/scim/v2",
|
|
18
|
+
* action: "activate",
|
|
19
|
+
* profile: {
|
|
20
|
+
* authScheme: "TOKEN",
|
|
21
|
+
* token: "your-bearer-token-here",
|
|
22
|
+
* },
|
|
23
|
+
* });
|
|
24
|
+
* ```
|
|
25
|
+
*
|
|
26
|
+
* ### OAUTH2 Authentication
|
|
27
|
+
*
|
|
28
|
+
* ```typescript
|
|
29
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
30
|
+
* import * as okta from "@pulumi/okta";
|
|
31
|
+
*
|
|
32
|
+
* const oauth2Example = new okta.app.Connection("oauth2_example", {
|
|
33
|
+
* idProperty: "0oa1234567890abcdef",
|
|
34
|
+
* action: "activate",
|
|
35
|
+
* profile: {
|
|
36
|
+
* authScheme: "OAUTH2",
|
|
37
|
+
* clientId: "oauth2-client-id",
|
|
38
|
+
* settings: {
|
|
39
|
+
* adminUsername: "admin@example.com",
|
|
40
|
+
* adminPassword: "secure-password",
|
|
41
|
+
* },
|
|
42
|
+
* signing: {
|
|
43
|
+
* rotationMode: "MANUAL",
|
|
44
|
+
* },
|
|
45
|
+
* },
|
|
46
|
+
* });
|
|
47
|
+
* ```
|
|
48
|
+
*
|
|
49
|
+
* ### Deactivated Connection
|
|
50
|
+
*
|
|
51
|
+
* ```typescript
|
|
52
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
53
|
+
* import * as okta from "@pulumi/okta";
|
|
54
|
+
*
|
|
55
|
+
* const deactivatedExample = new okta.app.Connection("deactivated_example", {
|
|
56
|
+
* idProperty: "0oa1234567890abcdef",
|
|
57
|
+
* baseUrl: "https://api.example.com/scim/v2",
|
|
58
|
+
* action: "deactivate",
|
|
59
|
+
* profile: {
|
|
60
|
+
* authScheme: "TOKEN",
|
|
61
|
+
* token: "your-bearer-token-here",
|
|
62
|
+
* },
|
|
63
|
+
* });
|
|
64
|
+
* ```
|
|
65
|
+
*
|
|
66
|
+
* ## Import
|
|
67
|
+
*
|
|
68
|
+
* App connections can be imported using the application ID:
|
|
69
|
+
*
|
|
70
|
+
* ```sh
|
|
71
|
+
* $ pulumi import okta:app/connection:Connection example <application_id>
|
|
72
|
+
* ```
|
|
73
|
+
*/
|
|
74
|
+
export declare class Connection extends pulumi.CustomResource {
|
|
75
|
+
/**
|
|
76
|
+
* Get an existing Connection resource's state with the given name, ID, and optional extra
|
|
77
|
+
* properties used to qualify the lookup.
|
|
78
|
+
*
|
|
79
|
+
* @param name The _unique_ name of the resulting resource.
|
|
80
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
81
|
+
* @param state Any extra arguments used during the lookup.
|
|
82
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
83
|
+
*/
|
|
84
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ConnectionState, opts?: pulumi.CustomResourceOptions): Connection;
|
|
85
|
+
/**
|
|
86
|
+
* Returns true if the given object is an instance of Connection. This is designed to work even
|
|
87
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
88
|
+
*/
|
|
89
|
+
static isInstance(obj: any): obj is Connection;
|
|
90
|
+
/**
|
|
91
|
+
* The action to perform on the connection. Valid values are `activate` or `deactivate`.
|
|
92
|
+
*/
|
|
93
|
+
readonly action: pulumi.Output<string>;
|
|
94
|
+
/**
|
|
95
|
+
* The base URL for the provisioning connection.
|
|
96
|
+
*/
|
|
97
|
+
readonly baseUrl: pulumi.Output<string>;
|
|
98
|
+
/**
|
|
99
|
+
* The application ID.
|
|
100
|
+
*/
|
|
101
|
+
readonly idProperty: pulumi.Output<string>;
|
|
102
|
+
/**
|
|
103
|
+
* Profile configuration for the app connection.
|
|
104
|
+
*/
|
|
105
|
+
readonly profile: pulumi.Output<outputs.app.ConnectionProfile | undefined>;
|
|
106
|
+
/**
|
|
107
|
+
* Provisioning connection status.
|
|
108
|
+
*/
|
|
109
|
+
readonly status: pulumi.Output<string>;
|
|
110
|
+
/**
|
|
111
|
+
* Create a Connection resource with the given unique name, arguments, and options.
|
|
112
|
+
*
|
|
113
|
+
* @param name The _unique_ name of the resource.
|
|
114
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
115
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
116
|
+
*/
|
|
117
|
+
constructor(name: string, args: ConnectionArgs, opts?: pulumi.CustomResourceOptions);
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* Input properties used for looking up and filtering Connection resources.
|
|
121
|
+
*/
|
|
122
|
+
export interface ConnectionState {
|
|
123
|
+
/**
|
|
124
|
+
* The action to perform on the connection. Valid values are `activate` or `deactivate`.
|
|
125
|
+
*/
|
|
126
|
+
action?: pulumi.Input<string>;
|
|
127
|
+
/**
|
|
128
|
+
* The base URL for the provisioning connection.
|
|
129
|
+
*/
|
|
130
|
+
baseUrl?: pulumi.Input<string>;
|
|
131
|
+
/**
|
|
132
|
+
* The application ID.
|
|
133
|
+
*/
|
|
134
|
+
idProperty?: pulumi.Input<string>;
|
|
135
|
+
/**
|
|
136
|
+
* Profile configuration for the app connection.
|
|
137
|
+
*/
|
|
138
|
+
profile?: pulumi.Input<inputs.app.ConnectionProfile>;
|
|
139
|
+
/**
|
|
140
|
+
* Provisioning connection status.
|
|
141
|
+
*/
|
|
142
|
+
status?: pulumi.Input<string>;
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* The set of arguments for constructing a Connection resource.
|
|
146
|
+
*/
|
|
147
|
+
export interface ConnectionArgs {
|
|
148
|
+
/**
|
|
149
|
+
* The action to perform on the connection. Valid values are `activate` or `deactivate`.
|
|
150
|
+
*/
|
|
151
|
+
action: pulumi.Input<string>;
|
|
152
|
+
/**
|
|
153
|
+
* The base URL for the provisioning connection.
|
|
154
|
+
*/
|
|
155
|
+
baseUrl: pulumi.Input<string>;
|
|
156
|
+
/**
|
|
157
|
+
* The application ID.
|
|
158
|
+
*/
|
|
159
|
+
idProperty: pulumi.Input<string>;
|
|
160
|
+
/**
|
|
161
|
+
* Profile configuration for the app connection.
|
|
162
|
+
*/
|
|
163
|
+
profile?: pulumi.Input<inputs.app.ConnectionProfile>;
|
|
164
|
+
}
|