@pulumi/okta 4.0.2 → 4.0.3
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/index/emailDomain.d.ts +127 -0
- package/index/emailDomain.js +96 -0
- package/index/emailDomain.js.map +1 -0
- package/index/emailDomainVerification.d.ts +70 -0
- package/index/emailDomainVerification.js +74 -0
- package/index/emailDomainVerification.js.map +1 -0
- package/index/index.d.ts +6 -0
- package/index/index.js +21 -1
- package/index/index.js.map +1 -1
- package/package.json +2 -2
- package/types/input.d.ts +12 -0
- package/types/output.d.ts +12 -0
- package/package.json.dev +0 -28
- package/scripts/install-pulumi-plugin.js +0 -21
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "../types/input";
|
|
3
|
+
import * as outputs from "../types/output";
|
|
4
|
+
/**
|
|
5
|
+
* This resource allows you to create and configure an email domain.
|
|
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.index.EmailDomain("example", {
|
|
14
|
+
* brandId: "abc123",
|
|
15
|
+
* displayName: "test",
|
|
16
|
+
* domain: "example.com",
|
|
17
|
+
* userName: "paul_atreides",
|
|
18
|
+
* });
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
* ## Import
|
|
22
|
+
*
|
|
23
|
+
* Custom email domain can be imported via the Okta ID.
|
|
24
|
+
*
|
|
25
|
+
* ```sh
|
|
26
|
+
* $ pulumi import okta:Index/emailDomain:EmailDomain example <domain id>
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
export declare class EmailDomain extends pulumi.CustomResource {
|
|
30
|
+
/**
|
|
31
|
+
* Get an existing EmailDomain resource's state with the given name, ID, and optional extra
|
|
32
|
+
* properties used to qualify the lookup.
|
|
33
|
+
*
|
|
34
|
+
* @param name The _unique_ name of the resulting resource.
|
|
35
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
36
|
+
* @param state Any extra arguments used during the lookup.
|
|
37
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
38
|
+
*/
|
|
39
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: EmailDomainState, opts?: pulumi.CustomResourceOptions): EmailDomain;
|
|
40
|
+
/**
|
|
41
|
+
* Returns true if the given object is an instance of EmailDomain. This is designed to work even
|
|
42
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
43
|
+
*/
|
|
44
|
+
static isInstance(obj: any): obj is EmailDomain;
|
|
45
|
+
/**
|
|
46
|
+
* Brand id of the email domain.
|
|
47
|
+
*/
|
|
48
|
+
readonly brandId: pulumi.Output<string>;
|
|
49
|
+
/**
|
|
50
|
+
* Display name of the email domain.
|
|
51
|
+
*/
|
|
52
|
+
readonly displayName: pulumi.Output<string>;
|
|
53
|
+
/**
|
|
54
|
+
* TXT and CNAME records to be registered for the domain.
|
|
55
|
+
*/
|
|
56
|
+
readonly dnsValidationRecords: pulumi.Output<outputs.Index.EmailDomainDnsValidationRecord[]>;
|
|
57
|
+
/**
|
|
58
|
+
* Mail domain to send from.
|
|
59
|
+
*/
|
|
60
|
+
readonly domain: pulumi.Output<string>;
|
|
61
|
+
/**
|
|
62
|
+
* User name of the email domain.
|
|
63
|
+
*/
|
|
64
|
+
readonly userName: pulumi.Output<string>;
|
|
65
|
+
/**
|
|
66
|
+
* Status of the email domain (shows whether the domain is verified).
|
|
67
|
+
*/
|
|
68
|
+
readonly validationStatus: pulumi.Output<string>;
|
|
69
|
+
/**
|
|
70
|
+
* Create a EmailDomain resource with the given unique name, arguments, and options.
|
|
71
|
+
*
|
|
72
|
+
* @param name The _unique_ name of the resource.
|
|
73
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
74
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
75
|
+
*/
|
|
76
|
+
constructor(name: string, args: EmailDomainArgs, opts?: pulumi.CustomResourceOptions);
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Input properties used for looking up and filtering EmailDomain resources.
|
|
80
|
+
*/
|
|
81
|
+
export interface EmailDomainState {
|
|
82
|
+
/**
|
|
83
|
+
* Brand id of the email domain.
|
|
84
|
+
*/
|
|
85
|
+
brandId?: pulumi.Input<string>;
|
|
86
|
+
/**
|
|
87
|
+
* Display name of the email domain.
|
|
88
|
+
*/
|
|
89
|
+
displayName?: pulumi.Input<string>;
|
|
90
|
+
/**
|
|
91
|
+
* TXT and CNAME records to be registered for the domain.
|
|
92
|
+
*/
|
|
93
|
+
dnsValidationRecords?: pulumi.Input<pulumi.Input<inputs.Index.EmailDomainDnsValidationRecord>[]>;
|
|
94
|
+
/**
|
|
95
|
+
* Mail domain to send from.
|
|
96
|
+
*/
|
|
97
|
+
domain?: pulumi.Input<string>;
|
|
98
|
+
/**
|
|
99
|
+
* User name of the email domain.
|
|
100
|
+
*/
|
|
101
|
+
userName?: pulumi.Input<string>;
|
|
102
|
+
/**
|
|
103
|
+
* Status of the email domain (shows whether the domain is verified).
|
|
104
|
+
*/
|
|
105
|
+
validationStatus?: pulumi.Input<string>;
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* The set of arguments for constructing a EmailDomain resource.
|
|
109
|
+
*/
|
|
110
|
+
export interface EmailDomainArgs {
|
|
111
|
+
/**
|
|
112
|
+
* Brand id of the email domain.
|
|
113
|
+
*/
|
|
114
|
+
brandId: pulumi.Input<string>;
|
|
115
|
+
/**
|
|
116
|
+
* Display name of the email domain.
|
|
117
|
+
*/
|
|
118
|
+
displayName: pulumi.Input<string>;
|
|
119
|
+
/**
|
|
120
|
+
* Mail domain to send from.
|
|
121
|
+
*/
|
|
122
|
+
domain: pulumi.Input<string>;
|
|
123
|
+
/**
|
|
124
|
+
* User name of the email domain.
|
|
125
|
+
*/
|
|
126
|
+
userName: pulumi.Input<string>;
|
|
127
|
+
}
|
|
@@ -0,0 +1,96 @@
|
|
|
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.EmailDomain = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* This resource allows you to create and configure an email domain.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as okta from "@pulumi/okta";
|
|
16
|
+
*
|
|
17
|
+
* const example = new okta.index.EmailDomain("example", {
|
|
18
|
+
* brandId: "abc123",
|
|
19
|
+
* displayName: "test",
|
|
20
|
+
* domain: "example.com",
|
|
21
|
+
* userName: "paul_atreides",
|
|
22
|
+
* });
|
|
23
|
+
* ```
|
|
24
|
+
*
|
|
25
|
+
* ## Import
|
|
26
|
+
*
|
|
27
|
+
* Custom email domain can be imported via the Okta ID.
|
|
28
|
+
*
|
|
29
|
+
* ```sh
|
|
30
|
+
* $ pulumi import okta:Index/emailDomain:EmailDomain example <domain id>
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
class EmailDomain extends pulumi.CustomResource {
|
|
34
|
+
/**
|
|
35
|
+
* Get an existing EmailDomain resource's state with the given name, ID, and optional extra
|
|
36
|
+
* properties used to qualify the lookup.
|
|
37
|
+
*
|
|
38
|
+
* @param name The _unique_ name of the resulting resource.
|
|
39
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
40
|
+
* @param state Any extra arguments used during the lookup.
|
|
41
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
42
|
+
*/
|
|
43
|
+
static get(name, id, state, opts) {
|
|
44
|
+
return new EmailDomain(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Returns true if the given object is an instance of EmailDomain. 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) {
|
|
51
|
+
if (obj === undefined || obj === null) {
|
|
52
|
+
return false;
|
|
53
|
+
}
|
|
54
|
+
return obj['__pulumiType'] === EmailDomain.__pulumiType;
|
|
55
|
+
}
|
|
56
|
+
constructor(name, argsOrState, opts) {
|
|
57
|
+
let resourceInputs = {};
|
|
58
|
+
opts = opts || {};
|
|
59
|
+
if (opts.id) {
|
|
60
|
+
const state = argsOrState;
|
|
61
|
+
resourceInputs["brandId"] = state ? state.brandId : undefined;
|
|
62
|
+
resourceInputs["displayName"] = state ? state.displayName : undefined;
|
|
63
|
+
resourceInputs["dnsValidationRecords"] = state ? state.dnsValidationRecords : undefined;
|
|
64
|
+
resourceInputs["domain"] = state ? state.domain : undefined;
|
|
65
|
+
resourceInputs["userName"] = state ? state.userName : undefined;
|
|
66
|
+
resourceInputs["validationStatus"] = state ? state.validationStatus : undefined;
|
|
67
|
+
}
|
|
68
|
+
else {
|
|
69
|
+
const args = argsOrState;
|
|
70
|
+
if ((!args || args.brandId === undefined) && !opts.urn) {
|
|
71
|
+
throw new Error("Missing required property 'brandId'");
|
|
72
|
+
}
|
|
73
|
+
if ((!args || args.displayName === undefined) && !opts.urn) {
|
|
74
|
+
throw new Error("Missing required property 'displayName'");
|
|
75
|
+
}
|
|
76
|
+
if ((!args || args.domain === undefined) && !opts.urn) {
|
|
77
|
+
throw new Error("Missing required property 'domain'");
|
|
78
|
+
}
|
|
79
|
+
if ((!args || args.userName === undefined) && !opts.urn) {
|
|
80
|
+
throw new Error("Missing required property 'userName'");
|
|
81
|
+
}
|
|
82
|
+
resourceInputs["brandId"] = args ? args.brandId : undefined;
|
|
83
|
+
resourceInputs["displayName"] = args ? args.displayName : undefined;
|
|
84
|
+
resourceInputs["domain"] = args ? args.domain : undefined;
|
|
85
|
+
resourceInputs["userName"] = args ? args.userName : undefined;
|
|
86
|
+
resourceInputs["dnsValidationRecords"] = undefined /*out*/;
|
|
87
|
+
resourceInputs["validationStatus"] = undefined /*out*/;
|
|
88
|
+
}
|
|
89
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
90
|
+
super(EmailDomain.__pulumiType, name, resourceInputs, opts);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
exports.EmailDomain = EmailDomain;
|
|
94
|
+
/** @internal */
|
|
95
|
+
EmailDomain.__pulumiType = 'okta:Index/emailDomain:EmailDomain';
|
|
96
|
+
//# sourceMappingURL=emailDomain.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"emailDomain.js","sourceRoot":"","sources":["../../index/emailDomain.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAa,WAAY,SAAQ,MAAM,CAAC,cAAc;IAClD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAwB,EAAE,IAAmC;QACtH,OAAO,IAAI,WAAW,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAClE,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,WAAW,CAAC,YAAY,CAAC;IAC5D,CAAC;IAmCD,YAAY,IAAY,EAAE,WAAgD,E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verifies the email domain. The resource won't be created if the email domain could not be verified.
|
|
4
|
+
*
|
|
5
|
+
* ## Example Usage
|
|
6
|
+
*
|
|
7
|
+
* ```typescript
|
|
8
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
+
* import * as okta from "@pulumi/okta";
|
|
10
|
+
*
|
|
11
|
+
* const exampleEmailDomain = new okta.index.EmailDomain("exampleEmailDomain", {
|
|
12
|
+
* brandId: "abc123",
|
|
13
|
+
* domain: "example.com",
|
|
14
|
+
* displayName: "test",
|
|
15
|
+
* userName: "paul_atreides",
|
|
16
|
+
* });
|
|
17
|
+
* const exampleEmailDomainVerification = new okta.index.EmailDomainVerification("exampleEmailDomainVerification", {emailDomainId: okta_email_domain.valid.id});
|
|
18
|
+
* ```
|
|
19
|
+
*
|
|
20
|
+
* ## Import
|
|
21
|
+
*
|
|
22
|
+
* This resource does not support importing.
|
|
23
|
+
*/
|
|
24
|
+
export declare class EmailDomainVerification extends pulumi.CustomResource {
|
|
25
|
+
/**
|
|
26
|
+
* Get an existing EmailDomainVerification 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?: EmailDomainVerificationState, opts?: pulumi.CustomResourceOptions): EmailDomainVerification;
|
|
35
|
+
/**
|
|
36
|
+
* Returns true if the given object is an instance of EmailDomainVerification. 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 EmailDomainVerification;
|
|
40
|
+
/**
|
|
41
|
+
* Email domain ID.
|
|
42
|
+
*/
|
|
43
|
+
readonly emailDomainId: pulumi.Output<string>;
|
|
44
|
+
/**
|
|
45
|
+
* Create a EmailDomainVerification resource with the given unique name, arguments, and options.
|
|
46
|
+
*
|
|
47
|
+
* @param name The _unique_ name of the resource.
|
|
48
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
49
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
50
|
+
*/
|
|
51
|
+
constructor(name: string, args: EmailDomainVerificationArgs, opts?: pulumi.CustomResourceOptions);
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Input properties used for looking up and filtering EmailDomainVerification resources.
|
|
55
|
+
*/
|
|
56
|
+
export interface EmailDomainVerificationState {
|
|
57
|
+
/**
|
|
58
|
+
* Email domain ID.
|
|
59
|
+
*/
|
|
60
|
+
emailDomainId?: pulumi.Input<string>;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* The set of arguments for constructing a EmailDomainVerification resource.
|
|
64
|
+
*/
|
|
65
|
+
export interface EmailDomainVerificationArgs {
|
|
66
|
+
/**
|
|
67
|
+
* Email domain ID.
|
|
68
|
+
*/
|
|
69
|
+
emailDomainId: pulumi.Input<string>;
|
|
70
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
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.EmailDomainVerification = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Verifies the email domain. The resource won't be created if the email domain could not be verified.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as okta from "@pulumi/okta";
|
|
16
|
+
*
|
|
17
|
+
* const exampleEmailDomain = new okta.index.EmailDomain("exampleEmailDomain", {
|
|
18
|
+
* brandId: "abc123",
|
|
19
|
+
* domain: "example.com",
|
|
20
|
+
* displayName: "test",
|
|
21
|
+
* userName: "paul_atreides",
|
|
22
|
+
* });
|
|
23
|
+
* const exampleEmailDomainVerification = new okta.index.EmailDomainVerification("exampleEmailDomainVerification", {emailDomainId: okta_email_domain.valid.id});
|
|
24
|
+
* ```
|
|
25
|
+
*
|
|
26
|
+
* ## Import
|
|
27
|
+
*
|
|
28
|
+
* This resource does not support importing.
|
|
29
|
+
*/
|
|
30
|
+
class EmailDomainVerification extends pulumi.CustomResource {
|
|
31
|
+
/**
|
|
32
|
+
* Get an existing EmailDomainVerification resource's state with the given name, ID, and optional extra
|
|
33
|
+
* properties used to qualify the lookup.
|
|
34
|
+
*
|
|
35
|
+
* @param name The _unique_ name of the resulting resource.
|
|
36
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
37
|
+
* @param state Any extra arguments used during the lookup.
|
|
38
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
39
|
+
*/
|
|
40
|
+
static get(name, id, state, opts) {
|
|
41
|
+
return new EmailDomainVerification(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Returns true if the given object is an instance of EmailDomainVerification. This is designed to work even
|
|
45
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
46
|
+
*/
|
|
47
|
+
static isInstance(obj) {
|
|
48
|
+
if (obj === undefined || obj === null) {
|
|
49
|
+
return false;
|
|
50
|
+
}
|
|
51
|
+
return obj['__pulumiType'] === EmailDomainVerification.__pulumiType;
|
|
52
|
+
}
|
|
53
|
+
constructor(name, argsOrState, opts) {
|
|
54
|
+
let resourceInputs = {};
|
|
55
|
+
opts = opts || {};
|
|
56
|
+
if (opts.id) {
|
|
57
|
+
const state = argsOrState;
|
|
58
|
+
resourceInputs["emailDomainId"] = state ? state.emailDomainId : undefined;
|
|
59
|
+
}
|
|
60
|
+
else {
|
|
61
|
+
const args = argsOrState;
|
|
62
|
+
if ((!args || args.emailDomainId === undefined) && !opts.urn) {
|
|
63
|
+
throw new Error("Missing required property 'emailDomainId'");
|
|
64
|
+
}
|
|
65
|
+
resourceInputs["emailDomainId"] = args ? args.emailDomainId : undefined;
|
|
66
|
+
}
|
|
67
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
68
|
+
super(EmailDomainVerification.__pulumiType, name, resourceInputs, opts);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
exports.EmailDomainVerification = EmailDomainVerification;
|
|
72
|
+
/** @internal */
|
|
73
|
+
EmailDomainVerification.__pulumiType = 'okta:Index/emailDomainVerification:EmailDomainVerification';
|
|
74
|
+
//# sourceMappingURL=emailDomainVerification.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"emailDomainVerification.js","sourceRoot":"","sources":["../../index/emailDomainVerification.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAa,uBAAwB,SAAQ,MAAM,CAAC,cAAc;IAC9D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAoC,EAAE,IAAmC;QAClI,OAAO,IAAI,uBAAuB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC9E,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,uBAAuB,CAAC,YAAY,CAAC;IACxE,CAAC;IAeD,YAAY,IAAY,EAAE,WAAwE,EAAE,IAAmC;QACnI,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAuD,CAAC;YACtE,cAAc,CAAC,eAAe,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC;SAC7E;aAAM;YACH,MAAM,IAAI,GAAG,WAAsD,CAAC;YACpE,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,aAAa,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAC1D,MAAM,IAAI,KAAK,CAAC,2CAA2C,CAAC,CAAC;aAChE;YACD,cAAc,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC;SAC3E;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,uBAAuB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC5E,CAAC;;AAxDL,0DAyDC;AA3CG,gBAAgB;AACO,oCAAY,GAAG,4DAA4D,CAAC"}
|
package/index/index.d.ts
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
export { EmailDomainArgs, EmailDomainState } from "./emailDomain";
|
|
2
|
+
export type EmailDomain = import("./emailDomain").EmailDomain;
|
|
3
|
+
export declare const EmailDomain: typeof import("./emailDomain").EmailDomain;
|
|
4
|
+
export { EmailDomainVerificationArgs, EmailDomainVerificationState } from "./emailDomainVerification";
|
|
5
|
+
export type EmailDomainVerification = import("./emailDomainVerification").EmailDomainVerification;
|
|
6
|
+
export declare const EmailDomainVerification: typeof import("./emailDomainVerification").EmailDomainVerification;
|
|
1
7
|
export { GetDomainArgs, GetDomainResult, GetDomainOutputArgs } from "./getDomain";
|
|
2
8
|
export declare const getDomain: typeof import("./getDomain").getDomain;
|
|
3
9
|
export declare const getDomainOutput: typeof import("./getDomain").getDomainOutput;
|
package/index/index.js
CHANGED
|
@@ -2,9 +2,29 @@
|
|
|
2
2
|
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
3
|
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.getDomainOutput = exports.getDomain = void 0;
|
|
5
|
+
exports.getDomainOutput = exports.getDomain = exports.EmailDomainVerification = exports.EmailDomain = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
6
7
|
const utilities = require("../utilities");
|
|
8
|
+
exports.EmailDomain = null;
|
|
9
|
+
utilities.lazyLoad(exports, ["EmailDomain"], () => require("./emailDomain"));
|
|
10
|
+
exports.EmailDomainVerification = null;
|
|
11
|
+
utilities.lazyLoad(exports, ["EmailDomainVerification"], () => require("./emailDomainVerification"));
|
|
7
12
|
exports.getDomain = null;
|
|
8
13
|
exports.getDomainOutput = null;
|
|
9
14
|
utilities.lazyLoad(exports, ["getDomain", "getDomainOutput"], () => require("./getDomain"));
|
|
15
|
+
const _module = {
|
|
16
|
+
version: utilities.getVersion(),
|
|
17
|
+
construct: (name, type, urn) => {
|
|
18
|
+
switch (type) {
|
|
19
|
+
case "okta:Index/emailDomain:EmailDomain":
|
|
20
|
+
return new exports.EmailDomain(name, undefined, { urn });
|
|
21
|
+
case "okta:Index/emailDomainVerification:EmailDomainVerification":
|
|
22
|
+
return new exports.EmailDomainVerification(name, undefined, { urn });
|
|
23
|
+
default:
|
|
24
|
+
throw new Error(`unknown resource type ${type}`);
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
};
|
|
28
|
+
pulumi.runtime.registerResourceModule("okta", "Index/emailDomain", _module);
|
|
29
|
+
pulumi.runtime.registerResourceModule("okta", "Index/emailDomainVerification", _module);
|
|
10
30
|
//# sourceMappingURL=index.js.map
|
package/index/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../index/index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,0CAA0C;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../index/index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAK7B,QAAA,WAAW,GAA+C,IAAW,CAAC;AACnF,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,aAAa,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC;AAIhE,QAAA,uBAAuB,GAAuE,IAAW,CAAC;AACvH,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,yBAAyB,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,2BAA2B,CAAC,CAAC,CAAC;AAGxF,QAAA,SAAS,GAA2C,IAAW,CAAC;AAChE,QAAA,eAAe,GAAiD,IAAW,CAAC;AACzF,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,WAAW,EAAC,iBAAiB,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC;AAG3F,MAAM,OAAO,GAAG;IACZ,OAAO,EAAE,SAAS,CAAC,UAAU,EAAE;IAC/B,SAAS,EAAE,CAAC,IAAY,EAAE,IAAY,EAAE,GAAW,EAAmB,EAAE;QACpE,QAAQ,IAAI,EAAE;YACV,KAAK,oCAAoC;gBACrC,OAAO,IAAI,mBAAW,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YACzD,KAAK,4DAA4D;gBAC7D,OAAO,IAAI,+BAAuB,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YACrE;gBACI,MAAM,IAAI,KAAK,CAAC,yBAAyB,IAAI,EAAE,CAAC,CAAC;SACxD;IACL,CAAC;CACJ,CAAC;AACF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,MAAM,EAAE,mBAAmB,EAAE,OAAO,CAAC,CAAA;AAC3E,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,MAAM,EAAE,+BAA+B,EAAE,OAAO,CAAC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/okta",
|
|
3
|
-
"version": "v4.0.
|
|
3
|
+
"version": "v4.0.3",
|
|
4
4
|
"description": "A Pulumi package for creating and managing okta resources.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pulumi",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"license": "Apache-2.0",
|
|
12
12
|
"scripts": {
|
|
13
13
|
"build": "tsc",
|
|
14
|
-
"install": "node scripts/install-pulumi-plugin.js resource okta v4.0.
|
|
14
|
+
"install": "node scripts/install-pulumi-plugin.js resource okta v4.0.3"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@pulumi/pulumi": "^3.0.0"
|
package/types/input.d.ts
CHANGED
|
@@ -175,6 +175,18 @@ export interface UserSchemaPropertyOneOf {
|
|
|
175
175
|
title: pulumi.Input<string>;
|
|
176
176
|
}
|
|
177
177
|
export declare namespace Index {
|
|
178
|
+
interface EmailDomainDnsValidationRecord {
|
|
179
|
+
expiration?: pulumi.Input<string>;
|
|
180
|
+
/**
|
|
181
|
+
* DNS record name.
|
|
182
|
+
*/
|
|
183
|
+
fqdn?: pulumi.Input<string>;
|
|
184
|
+
/**
|
|
185
|
+
* Record type can be TXT or cname.
|
|
186
|
+
*/
|
|
187
|
+
recordType?: pulumi.Input<string>;
|
|
188
|
+
values?: pulumi.Input<pulumi.Input<string>[]>;
|
|
189
|
+
}
|
|
178
190
|
}
|
|
179
191
|
export declare namespace app {
|
|
180
192
|
interface OAuthGroupsClaim {
|
package/types/output.d.ts
CHANGED
|
@@ -320,6 +320,18 @@ export interface UserSchemaPropertyOneOf {
|
|
|
320
320
|
title: string;
|
|
321
321
|
}
|
|
322
322
|
export declare namespace Index {
|
|
323
|
+
interface EmailDomainDnsValidationRecord {
|
|
324
|
+
expiration: string;
|
|
325
|
+
/**
|
|
326
|
+
* DNS record name.
|
|
327
|
+
*/
|
|
328
|
+
fqdn: string;
|
|
329
|
+
/**
|
|
330
|
+
* Record type can be TXT or cname.
|
|
331
|
+
*/
|
|
332
|
+
recordType: string;
|
|
333
|
+
values: string[];
|
|
334
|
+
}
|
|
323
335
|
interface GetDomainDnsRecord {
|
|
324
336
|
/**
|
|
325
337
|
* TXT record expiration.
|
package/package.json.dev
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@pulumi/okta",
|
|
3
|
-
"version": "v4.0.2",
|
|
4
|
-
"description": "A Pulumi package for creating and managing okta resources.",
|
|
5
|
-
"keywords": [
|
|
6
|
-
"pulumi",
|
|
7
|
-
"okta"
|
|
8
|
-
],
|
|
9
|
-
"homepage": "https://pulumi.io",
|
|
10
|
-
"repository": "https://github.com/pulumi/pulumi-okta",
|
|
11
|
-
"license": "Apache-2.0",
|
|
12
|
-
"scripts": {
|
|
13
|
-
"build": "tsc",
|
|
14
|
-
"install": "node scripts/install-pulumi-plugin.js resource okta v4.0.2"
|
|
15
|
-
},
|
|
16
|
-
"dependencies": {
|
|
17
|
-
"@pulumi/pulumi": "^3.0.0"
|
|
18
|
-
},
|
|
19
|
-
"devDependencies": {
|
|
20
|
-
"@types/mime": "^2.0.0",
|
|
21
|
-
"@types/node": "^10.0.0",
|
|
22
|
-
"typescript": "^4.3.5"
|
|
23
|
-
},
|
|
24
|
-
"pulumi": {
|
|
25
|
-
"resource": true,
|
|
26
|
-
"name": "okta"
|
|
27
|
-
}
|
|
28
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var childProcess = require("child_process");
|
|
3
|
-
|
|
4
|
-
var args = process.argv.slice(2);
|
|
5
|
-
var res = childProcess.spawnSync("pulumi", ["plugin", "install"].concat(args), {
|
|
6
|
-
stdio: ["ignore", "inherit", "inherit"]
|
|
7
|
-
});
|
|
8
|
-
|
|
9
|
-
if (res.error && res.error.code === "ENOENT") {
|
|
10
|
-
console.error("\nThere was an error installing the resource provider plugin. " +
|
|
11
|
-
"It looks like `pulumi` is not installed on your system. " +
|
|
12
|
-
"Please visit https://pulumi.com/ to install the Pulumi CLI.\n" +
|
|
13
|
-
"You may try manually installing the plugin by running " +
|
|
14
|
-
"`pulumi plugin install " + args.join(" ") + "`");
|
|
15
|
-
} else if (res.error || res.status !== 0) {
|
|
16
|
-
console.error("\nThere was an error installing the resource provider plugin. " +
|
|
17
|
-
"You may try to manually installing the plugin by running " +
|
|
18
|
-
"`pulumi plugin install " + args.join(" ") + "`");
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
process.exit(0);
|