@rpothin/powerplatform 0.1.33 → 0.1.35
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/.gitattributes +1 -0
- package/{bin/billingPolicy.js → billingPolicy.ts} +64 -39
- package/{bin/types/input.js → config/index.ts} +3 -3
- package/config/vars.ts +42 -0
- package/{bin/dlpPolicy.js → dlpPolicy.ts} +52 -39
- package/environment.ts +245 -0
- package/{bin/environmentBackup.js → environmentBackup.ts} +46 -39
- package/{bin/environmentGroup.js → environmentGroup.ts} +54 -39
- package/{bin/environmentSettings.js → environmentSettings.ts} +70 -39
- package/getApps.ts +47 -0
- package/getConnectors.ts +47 -0
- package/{bin/getEnvironments.d.ts → getEnvironments.ts} +25 -3
- package/getFlows.ts +47 -0
- package/index.ts +124 -0
- package/{bin/isvContract.js → isvContract.ts} +54 -39
- package/{bin/managedEnvironment.js → managedEnvironment.ts} +34 -39
- package/package.json +2 -7
- package/provider.ts +44 -0
- package/{bin/roleAssignment.js → roleAssignment.ts} +58 -39
- package/tsconfig.json +44 -0
- package/types/index.ts +13 -0
- package/types/input.ts +122 -0
- package/{bin/types/output.d.ts → types/output.ts} +94 -4
- package/{bin/utilities.js → utilities.ts} +28 -46
- package/bin/billingPolicy.d.ts +0 -76
- package/bin/billingPolicy.d.ts.map +0 -1
- package/bin/billingPolicy.js.map +0 -1
- package/bin/config/index.d.ts +0 -2
- package/bin/config/index.d.ts.map +0 -1
- package/bin/config/index.js +0 -21
- package/bin/config/index.js.map +0 -1
- package/bin/config/vars.d.ts +0 -13
- package/bin/config/vars.d.ts.map +0 -1
- package/bin/config/vars.js +0 -48
- package/bin/config/vars.js.map +0 -1
- package/bin/dlpPolicy.d.ts +0 -64
- package/bin/dlpPolicy.d.ts.map +0 -1
- package/bin/dlpPolicy.js.map +0 -1
- package/bin/environment.d.ts +0 -106
- package/bin/environment.d.ts.map +0 -1
- package/bin/environment.js +0 -108
- package/bin/environment.js.map +0 -1
- package/bin/environmentBackup.d.ts +0 -58
- package/bin/environmentBackup.d.ts.map +0 -1
- package/bin/environmentBackup.js.map +0 -1
- package/bin/environmentGroup.d.ts +0 -66
- package/bin/environmentGroup.d.ts.map +0 -1
- package/bin/environmentGroup.js.map +0 -1
- package/bin/environmentSettings.d.ts +0 -82
- package/bin/environmentSettings.d.ts.map +0 -1
- package/bin/environmentSettings.js.map +0 -1
- package/bin/getApps.d.ts +0 -29
- package/bin/getApps.d.ts.map +0 -1
- package/bin/getApps.js +0 -51
- package/bin/getApps.js.map +0 -1
- package/bin/getConnectors.d.ts +0 -29
- package/bin/getConnectors.d.ts.map +0 -1
- package/bin/getConnectors.js +0 -51
- package/bin/getConnectors.js.map +0 -1
- package/bin/getEnvironments.d.ts.map +0 -1
- package/bin/getEnvironments.js +0 -55
- package/bin/getEnvironments.js.map +0 -1
- package/bin/getFlows.d.ts +0 -29
- package/bin/getFlows.d.ts.map +0 -1
- package/bin/getFlows.js +0 -51
- package/bin/getFlows.js.map +0 -1
- package/bin/index.d.ts +0 -46
- package/bin/index.d.ts.map +0 -1
- package/bin/index.js +0 -105
- package/bin/index.js.map +0 -1
- package/bin/isvContract.d.ts +0 -66
- package/bin/isvContract.d.ts.map +0 -1
- package/bin/isvContract.js.map +0 -1
- package/bin/managedEnvironment.d.ts +0 -46
- package/bin/managedEnvironment.d.ts.map +0 -1
- package/bin/managedEnvironment.js.map +0 -1
- package/bin/package.json +0 -31
- package/bin/provider.d.ts +0 -22
- package/bin/provider.d.ts.map +0 -1
- package/bin/provider.js +0 -61
- package/bin/provider.js.map +0 -1
- package/bin/roleAssignment.d.ts +0 -70
- package/bin/roleAssignment.d.ts.map +0 -1
- package/bin/roleAssignment.js.map +0 -1
- package/bin/types/index.d.ts +0 -4
- package/bin/types/index.d.ts.map +0 -1
- package/bin/types/index.js +0 -34
- package/bin/types/index.js.map +0 -1
- package/bin/types/input.d.ts +0 -38
- package/bin/types/input.d.ts.map +0 -1
- package/bin/types/input.js.map +0 -1
- package/bin/types/output.d.ts.map +0 -1
- package/bin/types/output.js +0 -5
- package/bin/types/output.js.map +0 -1
- package/bin/utilities.d.ts +0 -5
- package/bin/utilities.d.ts.map +0 -1
- package/bin/utilities.js.map +0 -1
package/.gitattributes
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
* linguist-generated
|
|
@@ -1,37 +1,15 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
2
|
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
Object.defineProperty(o, k2, desc);
|
|
11
|
-
}) : (function(o, m, k, k2) {
|
|
12
|
-
if (k2 === undefined) k2 = k;
|
|
13
|
-
o[k2] = m[k];
|
|
14
|
-
}));
|
|
15
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
16
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
17
|
-
}) : function(o, v) {
|
|
18
|
-
o["default"] = v;
|
|
19
|
-
});
|
|
20
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
21
|
-
if (mod && mod.__esModule) return mod;
|
|
22
|
-
var result = {};
|
|
23
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
24
|
-
__setModuleDefault(result, mod);
|
|
25
|
-
return result;
|
|
26
|
-
};
|
|
27
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
-
exports.BillingPolicy = void 0;
|
|
29
|
-
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
|
-
const utilities = __importStar(require("./utilities"));
|
|
3
|
+
|
|
4
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
5
|
+
import * as inputs from "./types/input";
|
|
6
|
+
import * as outputs from "./types/output";
|
|
7
|
+
import * as utilities from "./utilities";
|
|
8
|
+
|
|
31
9
|
/**
|
|
32
10
|
* Manages a Power Platform billing policy. Billing policies control pay-as-you-go billing for Power Platform environments.
|
|
33
11
|
*/
|
|
34
|
-
class BillingPolicy extends pulumi.CustomResource {
|
|
12
|
+
export class BillingPolicy extends pulumi.CustomResource {
|
|
35
13
|
/**
|
|
36
14
|
* Get an existing BillingPolicy resource's state with the given name, ID, and optional extra
|
|
37
15
|
* properties used to qualify the lookup.
|
|
@@ -40,21 +18,49 @@ class BillingPolicy extends pulumi.CustomResource {
|
|
|
40
18
|
* @param id The _unique_ provider ID of the resource to lookup.
|
|
41
19
|
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
42
20
|
*/
|
|
43
|
-
static get(name, id
|
|
44
|
-
return new BillingPolicy(name, undefined, { ...opts, id: id });
|
|
21
|
+
public static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): BillingPolicy {
|
|
22
|
+
return new BillingPolicy(name, undefined as any, { ...opts, id: id });
|
|
45
23
|
}
|
|
24
|
+
|
|
46
25
|
/** @internal */
|
|
47
|
-
static __pulumiType = 'powerplatform:index:BillingPolicy';
|
|
26
|
+
public static readonly __pulumiType = 'powerplatform:index:BillingPolicy';
|
|
27
|
+
|
|
48
28
|
/**
|
|
49
29
|
* Returns true if the given object is an instance of BillingPolicy. This is designed to work even
|
|
50
30
|
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
51
31
|
*/
|
|
52
|
-
static isInstance(obj) {
|
|
32
|
+
public static isInstance(obj: any): obj is BillingPolicy {
|
|
53
33
|
if (obj === undefined || obj === null) {
|
|
54
34
|
return false;
|
|
55
35
|
}
|
|
56
36
|
return obj['__pulumiType'] === BillingPolicy.__pulumiType;
|
|
57
37
|
}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* The billing instrument details.
|
|
41
|
+
*/
|
|
42
|
+
declare public readonly billingInstrument: pulumi.Output<outputs.BillingInstrument | undefined>;
|
|
43
|
+
/**
|
|
44
|
+
* The timestamp when the billing policy was created.
|
|
45
|
+
*/
|
|
46
|
+
declare public /*out*/ readonly createdOn: pulumi.Output<string | undefined>;
|
|
47
|
+
/**
|
|
48
|
+
* The timestamp when the billing policy was last modified.
|
|
49
|
+
*/
|
|
50
|
+
declare public /*out*/ readonly lastModifiedOn: pulumi.Output<string | undefined>;
|
|
51
|
+
/**
|
|
52
|
+
* The geographic location of the billing policy.
|
|
53
|
+
*/
|
|
54
|
+
declare public readonly location: pulumi.Output<string>;
|
|
55
|
+
/**
|
|
56
|
+
* The name of the billing policy.
|
|
57
|
+
*/
|
|
58
|
+
declare public readonly name: pulumi.Output<string>;
|
|
59
|
+
/**
|
|
60
|
+
* The status of the billing policy.
|
|
61
|
+
*/
|
|
62
|
+
declare public readonly status: pulumi.Output<string | undefined>;
|
|
63
|
+
|
|
58
64
|
/**
|
|
59
65
|
* Create a BillingPolicy resource with the given unique name, arguments, and options.
|
|
60
66
|
*
|
|
@@ -62,8 +68,8 @@ class BillingPolicy extends pulumi.CustomResource {
|
|
|
62
68
|
* @param args The arguments to use to populate this resource's properties.
|
|
63
69
|
* @param opts A bag of options that control this resource's behavior.
|
|
64
70
|
*/
|
|
65
|
-
constructor(name, args, opts) {
|
|
66
|
-
let resourceInputs = {};
|
|
71
|
+
constructor(name: string, args: BillingPolicyArgs, opts?: pulumi.CustomResourceOptions) {
|
|
72
|
+
let resourceInputs: pulumi.Inputs = {};
|
|
67
73
|
opts = opts || {};
|
|
68
74
|
if (!opts.id) {
|
|
69
75
|
if (args?.location === undefined && !opts.urn) {
|
|
@@ -78,8 +84,7 @@ class BillingPolicy extends pulumi.CustomResource {
|
|
|
78
84
|
resourceInputs["status"] = args?.status;
|
|
79
85
|
resourceInputs["createdOn"] = undefined /*out*/;
|
|
80
86
|
resourceInputs["lastModifiedOn"] = undefined /*out*/;
|
|
81
|
-
}
|
|
82
|
-
else {
|
|
87
|
+
} else {
|
|
83
88
|
resourceInputs["billingInstrument"] = undefined /*out*/;
|
|
84
89
|
resourceInputs["createdOn"] = undefined /*out*/;
|
|
85
90
|
resourceInputs["lastModifiedOn"] = undefined /*out*/;
|
|
@@ -91,5 +96,25 @@ class BillingPolicy extends pulumi.CustomResource {
|
|
|
91
96
|
super(BillingPolicy.__pulumiType, name, resourceInputs, opts);
|
|
92
97
|
}
|
|
93
98
|
}
|
|
94
|
-
|
|
95
|
-
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* The set of arguments for constructing a BillingPolicy resource.
|
|
102
|
+
*/
|
|
103
|
+
export interface BillingPolicyArgs {
|
|
104
|
+
/**
|
|
105
|
+
* The billing instrument (Azure subscription) details.
|
|
106
|
+
*/
|
|
107
|
+
billingInstrument?: pulumi.Input<inputs.BillingInstrumentArgs>;
|
|
108
|
+
/**
|
|
109
|
+
* The geographic location for the billing policy (e.g., unitedstates, europe).
|
|
110
|
+
*/
|
|
111
|
+
location: pulumi.Input<string>;
|
|
112
|
+
/**
|
|
113
|
+
* The name of the billing policy.
|
|
114
|
+
*/
|
|
115
|
+
name: pulumi.Input<string>;
|
|
116
|
+
/**
|
|
117
|
+
* The status of the billing policy: Enabled or Disabled.
|
|
118
|
+
*/
|
|
119
|
+
status?: pulumi.Input<string>;
|
|
120
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
2
|
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
|
|
4
|
+
// Export members:
|
|
5
|
+
export * from "./vars";
|
package/config/vars.ts
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
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
|
+
declare var exports: any;
|
|
8
|
+
const __config = new pulumi.Config("powerplatform");
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* The Azure AD Application (Client) ID. Can also be set with the AZURE_CLIENT_ID environment variable.
|
|
12
|
+
*/
|
|
13
|
+
export declare const clientId: string | undefined;
|
|
14
|
+
Object.defineProperty(exports, "clientId", {
|
|
15
|
+
get() {
|
|
16
|
+
return __config.get("clientId");
|
|
17
|
+
},
|
|
18
|
+
enumerable: true,
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* The Azure AD Client Secret. Can also be set with the AZURE_CLIENT_SECRET environment variable.
|
|
23
|
+
*/
|
|
24
|
+
export declare const clientSecret: string | undefined;
|
|
25
|
+
Object.defineProperty(exports, "clientSecret", {
|
|
26
|
+
get() {
|
|
27
|
+
return __config.get("clientSecret");
|
|
28
|
+
},
|
|
29
|
+
enumerable: true,
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* The Azure AD Tenant ID for authenticating with Power Platform. Can also be set with the AZURE_TENANT_ID environment variable.
|
|
34
|
+
*/
|
|
35
|
+
export declare const tenantId: string | undefined;
|
|
36
|
+
Object.defineProperty(exports, "tenantId", {
|
|
37
|
+
get() {
|
|
38
|
+
return __config.get("tenantId");
|
|
39
|
+
},
|
|
40
|
+
enumerable: true,
|
|
41
|
+
});
|
|
42
|
+
|
|
@@ -1,37 +1,15 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
2
|
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
Object.defineProperty(o, k2, desc);
|
|
11
|
-
}) : (function(o, m, k, k2) {
|
|
12
|
-
if (k2 === undefined) k2 = k;
|
|
13
|
-
o[k2] = m[k];
|
|
14
|
-
}));
|
|
15
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
16
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
17
|
-
}) : function(o, v) {
|
|
18
|
-
o["default"] = v;
|
|
19
|
-
});
|
|
20
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
21
|
-
if (mod && mod.__esModule) return mod;
|
|
22
|
-
var result = {};
|
|
23
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
24
|
-
__setModuleDefault(result, mod);
|
|
25
|
-
return result;
|
|
26
|
-
};
|
|
27
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
-
exports.DlpPolicy = void 0;
|
|
29
|
-
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
|
-
const utilities = __importStar(require("./utilities"));
|
|
3
|
+
|
|
4
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
5
|
+
import * as inputs from "./types/input";
|
|
6
|
+
import * as outputs from "./types/output";
|
|
7
|
+
import * as utilities from "./utilities";
|
|
8
|
+
|
|
31
9
|
/**
|
|
32
10
|
* Manages a Power Platform Data Loss Prevention (DLP) policy. DLP policies define rules to control how connectors can share data. Note: Deletion removes all rule sets from the policy, as the SDK does not expose a direct policy delete endpoint.
|
|
33
11
|
*/
|
|
34
|
-
class DlpPolicy extends pulumi.CustomResource {
|
|
12
|
+
export class DlpPolicy extends pulumi.CustomResource {
|
|
35
13
|
/**
|
|
36
14
|
* Get an existing DlpPolicy resource's state with the given name, ID, and optional extra
|
|
37
15
|
* properties used to qualify the lookup.
|
|
@@ -40,21 +18,45 @@ class DlpPolicy extends pulumi.CustomResource {
|
|
|
40
18
|
* @param id The _unique_ provider ID of the resource to lookup.
|
|
41
19
|
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
42
20
|
*/
|
|
43
|
-
static get(name, id
|
|
44
|
-
return new DlpPolicy(name, undefined, { ...opts, id: id });
|
|
21
|
+
public static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): DlpPolicy {
|
|
22
|
+
return new DlpPolicy(name, undefined as any, { ...opts, id: id });
|
|
45
23
|
}
|
|
24
|
+
|
|
46
25
|
/** @internal */
|
|
47
|
-
static __pulumiType = 'powerplatform:index:DlpPolicy';
|
|
26
|
+
public static readonly __pulumiType = 'powerplatform:index:DlpPolicy';
|
|
27
|
+
|
|
48
28
|
/**
|
|
49
29
|
* Returns true if the given object is an instance of DlpPolicy. This is designed to work even
|
|
50
30
|
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
51
31
|
*/
|
|
52
|
-
static isInstance(obj) {
|
|
32
|
+
public static isInstance(obj: any): obj is DlpPolicy {
|
|
53
33
|
if (obj === undefined || obj === null) {
|
|
54
34
|
return false;
|
|
55
35
|
}
|
|
56
36
|
return obj['__pulumiType'] === DlpPolicy.__pulumiType;
|
|
57
37
|
}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* The timestamp when the policy was last modified.
|
|
41
|
+
*/
|
|
42
|
+
declare public /*out*/ readonly lastModified: pulumi.Output<string | undefined>;
|
|
43
|
+
/**
|
|
44
|
+
* The name of the DLP policy.
|
|
45
|
+
*/
|
|
46
|
+
declare public readonly name: pulumi.Output<string>;
|
|
47
|
+
/**
|
|
48
|
+
* The number of rule sets in the policy.
|
|
49
|
+
*/
|
|
50
|
+
declare public /*out*/ readonly ruleSetCount: pulumi.Output<number | undefined>;
|
|
51
|
+
/**
|
|
52
|
+
* The rule sets that define the DLP policy rules.
|
|
53
|
+
*/
|
|
54
|
+
declare public readonly ruleSets: pulumi.Output<outputs.RuleSet[] | undefined>;
|
|
55
|
+
/**
|
|
56
|
+
* The tenant ID that owns the policy.
|
|
57
|
+
*/
|
|
58
|
+
declare public /*out*/ readonly tenantId: pulumi.Output<string | undefined>;
|
|
59
|
+
|
|
58
60
|
/**
|
|
59
61
|
* Create a DlpPolicy resource with the given unique name, arguments, and options.
|
|
60
62
|
*
|
|
@@ -62,8 +64,8 @@ class DlpPolicy extends pulumi.CustomResource {
|
|
|
62
64
|
* @param args The arguments to use to populate this resource's properties.
|
|
63
65
|
* @param opts A bag of options that control this resource's behavior.
|
|
64
66
|
*/
|
|
65
|
-
constructor(name, args, opts) {
|
|
66
|
-
let resourceInputs = {};
|
|
67
|
+
constructor(name: string, args: DlpPolicyArgs, opts?: pulumi.CustomResourceOptions) {
|
|
68
|
+
let resourceInputs: pulumi.Inputs = {};
|
|
67
69
|
opts = opts || {};
|
|
68
70
|
if (!opts.id) {
|
|
69
71
|
if (args?.name === undefined && !opts.urn) {
|
|
@@ -74,8 +76,7 @@ class DlpPolicy extends pulumi.CustomResource {
|
|
|
74
76
|
resourceInputs["lastModified"] = undefined /*out*/;
|
|
75
77
|
resourceInputs["ruleSetCount"] = undefined /*out*/;
|
|
76
78
|
resourceInputs["tenantId"] = undefined /*out*/;
|
|
77
|
-
}
|
|
78
|
-
else {
|
|
79
|
+
} else {
|
|
79
80
|
resourceInputs["lastModified"] = undefined /*out*/;
|
|
80
81
|
resourceInputs["name"] = undefined /*out*/;
|
|
81
82
|
resourceInputs["ruleSetCount"] = undefined /*out*/;
|
|
@@ -86,5 +87,17 @@ class DlpPolicy extends pulumi.CustomResource {
|
|
|
86
87
|
super(DlpPolicy.__pulumiType, name, resourceInputs, opts);
|
|
87
88
|
}
|
|
88
89
|
}
|
|
89
|
-
|
|
90
|
-
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* The set of arguments for constructing a DlpPolicy resource.
|
|
93
|
+
*/
|
|
94
|
+
export interface DlpPolicyArgs {
|
|
95
|
+
/**
|
|
96
|
+
* The name of the DLP policy.
|
|
97
|
+
*/
|
|
98
|
+
name: pulumi.Input<string>;
|
|
99
|
+
/**
|
|
100
|
+
* The rule sets that define the DLP policy rules.
|
|
101
|
+
*/
|
|
102
|
+
ruleSets?: pulumi.Input<pulumi.Input<inputs.RuleSetArgs>[]>;
|
|
103
|
+
}
|
package/environment.ts
ADDED
|
@@ -0,0 +1,245 @@
|
|
|
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 inputs from "./types/input";
|
|
6
|
+
import * as outputs from "./types/output";
|
|
7
|
+
import * as utilities from "./utilities";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Manages a Power Platform environment. Environments are containers for apps, flows, data, and other resources. Uses the BAP admin REST API for lifecycle management.
|
|
11
|
+
*/
|
|
12
|
+
export class Environment extends pulumi.CustomResource {
|
|
13
|
+
/**
|
|
14
|
+
* Get an existing Environment resource's state with the given name, ID, and optional extra
|
|
15
|
+
* properties used to qualify the lookup.
|
|
16
|
+
*
|
|
17
|
+
* @param name The _unique_ name of the resulting resource.
|
|
18
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
19
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
20
|
+
*/
|
|
21
|
+
public static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): Environment {
|
|
22
|
+
return new Environment(name, undefined as any, { ...opts, id: id });
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/** @internal */
|
|
26
|
+
public static readonly __pulumiType = 'powerplatform:index:Environment';
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Returns true if the given object is an instance of Environment. This is designed to work even
|
|
30
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
31
|
+
*/
|
|
32
|
+
public static isInstance(obj: any): obj is Environment {
|
|
33
|
+
if (obj === undefined || obj === null) {
|
|
34
|
+
return false;
|
|
35
|
+
}
|
|
36
|
+
return obj['__pulumiType'] === Environment.__pulumiType;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Whether Bing Search integration is allowed.
|
|
41
|
+
*/
|
|
42
|
+
declare public readonly allowBingSearch: pulumi.Output<boolean | undefined>;
|
|
43
|
+
/**
|
|
44
|
+
* Whether data can move across geographic boundaries for Copilot features.
|
|
45
|
+
*/
|
|
46
|
+
declare public readonly allowMovingDataAcrossRegions: pulumi.Output<boolean | undefined>;
|
|
47
|
+
/**
|
|
48
|
+
* Specific Azure region within the location geo.
|
|
49
|
+
*/
|
|
50
|
+
declare public readonly azureRegion: pulumi.Output<string | undefined>;
|
|
51
|
+
/**
|
|
52
|
+
* ID of the billing policy linked to this environment.
|
|
53
|
+
*/
|
|
54
|
+
declare public readonly billingPolicyId: pulumi.Output<string | undefined>;
|
|
55
|
+
/**
|
|
56
|
+
* Release wave cadence: Frequent or Moderate.
|
|
57
|
+
*/
|
|
58
|
+
declare public readonly cadence: pulumi.Output<string | undefined>;
|
|
59
|
+
/**
|
|
60
|
+
* The timestamp when the environment was created.
|
|
61
|
+
*/
|
|
62
|
+
declare public /*out*/ readonly createdTime: pulumi.Output<string | undefined>;
|
|
63
|
+
/**
|
|
64
|
+
* Dataverse database configuration. Presence triggers Dataverse provisioning.
|
|
65
|
+
*/
|
|
66
|
+
declare public readonly dataverse: pulumi.Output<outputs.Dataverse | undefined>;
|
|
67
|
+
/**
|
|
68
|
+
* The description of the environment.
|
|
69
|
+
*/
|
|
70
|
+
declare public readonly description: pulumi.Output<string | undefined>;
|
|
71
|
+
/**
|
|
72
|
+
* The display name of the environment.
|
|
73
|
+
*/
|
|
74
|
+
declare public readonly displayName: pulumi.Output<string>;
|
|
75
|
+
/**
|
|
76
|
+
* Enterprise policies associated with the environment.
|
|
77
|
+
*/
|
|
78
|
+
declare public readonly enterprisePolicies: pulumi.Output<outputs.EnterprisePolicy[] | undefined>;
|
|
79
|
+
/**
|
|
80
|
+
* ID of the environment group.
|
|
81
|
+
*/
|
|
82
|
+
declare public readonly environmentGroupId: pulumi.Output<string | undefined>;
|
|
83
|
+
/**
|
|
84
|
+
* The type (SKU) of the environment.
|
|
85
|
+
*/
|
|
86
|
+
declare public readonly environmentType: pulumi.Output<string>;
|
|
87
|
+
/**
|
|
88
|
+
* The timestamp when the environment was last modified.
|
|
89
|
+
*/
|
|
90
|
+
declare public /*out*/ readonly lastModifiedTime: pulumi.Output<string | undefined>;
|
|
91
|
+
/**
|
|
92
|
+
* GUID of the linked app.
|
|
93
|
+
*/
|
|
94
|
+
declare public readonly linkedAppId: pulumi.Output<string | undefined>;
|
|
95
|
+
/**
|
|
96
|
+
* Type of linked app: Canvas or ModelDriven.
|
|
97
|
+
*/
|
|
98
|
+
declare public readonly linkedAppType: pulumi.Output<string | undefined>;
|
|
99
|
+
/**
|
|
100
|
+
* URL of the linked app. Computed.
|
|
101
|
+
*/
|
|
102
|
+
declare public /*out*/ readonly linkedAppUrl: pulumi.Output<string | undefined>;
|
|
103
|
+
/**
|
|
104
|
+
* The geographic region of the environment.
|
|
105
|
+
*/
|
|
106
|
+
declare public readonly location: pulumi.Output<string>;
|
|
107
|
+
/**
|
|
108
|
+
* AAD user or group GUID who owns the environment.
|
|
109
|
+
*/
|
|
110
|
+
declare public readonly ownerId: pulumi.Output<string | undefined>;
|
|
111
|
+
/**
|
|
112
|
+
* The current state of the environment (e.g., Ready, Preparing).
|
|
113
|
+
*/
|
|
114
|
+
declare public /*out*/ readonly state: pulumi.Output<string | undefined>;
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* Create a Environment resource with the given unique name, arguments, and options.
|
|
118
|
+
*
|
|
119
|
+
* @param name The _unique_ name of the resource.
|
|
120
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
121
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
122
|
+
*/
|
|
123
|
+
constructor(name: string, args: EnvironmentArgs, opts?: pulumi.CustomResourceOptions) {
|
|
124
|
+
let resourceInputs: pulumi.Inputs = {};
|
|
125
|
+
opts = opts || {};
|
|
126
|
+
if (!opts.id) {
|
|
127
|
+
if (args?.displayName === undefined && !opts.urn) {
|
|
128
|
+
throw new Error("Missing required property 'displayName'");
|
|
129
|
+
}
|
|
130
|
+
if (args?.environmentType === undefined && !opts.urn) {
|
|
131
|
+
throw new Error("Missing required property 'environmentType'");
|
|
132
|
+
}
|
|
133
|
+
if (args?.location === undefined && !opts.urn) {
|
|
134
|
+
throw new Error("Missing required property 'location'");
|
|
135
|
+
}
|
|
136
|
+
resourceInputs["allowBingSearch"] = args?.allowBingSearch;
|
|
137
|
+
resourceInputs["allowMovingDataAcrossRegions"] = args?.allowMovingDataAcrossRegions;
|
|
138
|
+
resourceInputs["azureRegion"] = args?.azureRegion;
|
|
139
|
+
resourceInputs["billingPolicyId"] = args?.billingPolicyId;
|
|
140
|
+
resourceInputs["cadence"] = args?.cadence;
|
|
141
|
+
resourceInputs["dataverse"] = args?.dataverse;
|
|
142
|
+
resourceInputs["description"] = args?.description;
|
|
143
|
+
resourceInputs["displayName"] = args?.displayName;
|
|
144
|
+
resourceInputs["enterprisePolicies"] = args?.enterprisePolicies;
|
|
145
|
+
resourceInputs["environmentGroupId"] = args?.environmentGroupId;
|
|
146
|
+
resourceInputs["environmentType"] = args?.environmentType;
|
|
147
|
+
resourceInputs["linkedAppId"] = args?.linkedAppId;
|
|
148
|
+
resourceInputs["linkedAppType"] = args?.linkedAppType;
|
|
149
|
+
resourceInputs["location"] = args?.location;
|
|
150
|
+
resourceInputs["ownerId"] = args?.ownerId;
|
|
151
|
+
resourceInputs["createdTime"] = undefined /*out*/;
|
|
152
|
+
resourceInputs["lastModifiedTime"] = undefined /*out*/;
|
|
153
|
+
resourceInputs["linkedAppUrl"] = undefined /*out*/;
|
|
154
|
+
resourceInputs["state"] = undefined /*out*/;
|
|
155
|
+
} else {
|
|
156
|
+
resourceInputs["allowBingSearch"] = undefined /*out*/;
|
|
157
|
+
resourceInputs["allowMovingDataAcrossRegions"] = undefined /*out*/;
|
|
158
|
+
resourceInputs["azureRegion"] = undefined /*out*/;
|
|
159
|
+
resourceInputs["billingPolicyId"] = undefined /*out*/;
|
|
160
|
+
resourceInputs["cadence"] = undefined /*out*/;
|
|
161
|
+
resourceInputs["createdTime"] = undefined /*out*/;
|
|
162
|
+
resourceInputs["dataverse"] = undefined /*out*/;
|
|
163
|
+
resourceInputs["description"] = undefined /*out*/;
|
|
164
|
+
resourceInputs["displayName"] = undefined /*out*/;
|
|
165
|
+
resourceInputs["enterprisePolicies"] = undefined /*out*/;
|
|
166
|
+
resourceInputs["environmentGroupId"] = undefined /*out*/;
|
|
167
|
+
resourceInputs["environmentType"] = undefined /*out*/;
|
|
168
|
+
resourceInputs["lastModifiedTime"] = undefined /*out*/;
|
|
169
|
+
resourceInputs["linkedAppId"] = undefined /*out*/;
|
|
170
|
+
resourceInputs["linkedAppType"] = undefined /*out*/;
|
|
171
|
+
resourceInputs["linkedAppUrl"] = undefined /*out*/;
|
|
172
|
+
resourceInputs["location"] = undefined /*out*/;
|
|
173
|
+
resourceInputs["ownerId"] = undefined /*out*/;
|
|
174
|
+
resourceInputs["state"] = undefined /*out*/;
|
|
175
|
+
}
|
|
176
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
177
|
+
super(Environment.__pulumiType, name, resourceInputs, opts);
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* The set of arguments for constructing a Environment resource.
|
|
183
|
+
*/
|
|
184
|
+
export interface EnvironmentArgs {
|
|
185
|
+
/**
|
|
186
|
+
* Allow Bing Search integration (AI generative features).
|
|
187
|
+
*/
|
|
188
|
+
allowBingSearch?: pulumi.Input<boolean>;
|
|
189
|
+
/**
|
|
190
|
+
* Allow data to move across geographic boundaries for Copilot features.
|
|
191
|
+
*/
|
|
192
|
+
allowMovingDataAcrossRegions?: pulumi.Input<boolean>;
|
|
193
|
+
/**
|
|
194
|
+
* Specific Azure region within the location geo (e.g. westus2). Immutable after creation.
|
|
195
|
+
*/
|
|
196
|
+
azureRegion?: pulumi.Input<string>;
|
|
197
|
+
/**
|
|
198
|
+
* ID of the billing policy to link to this environment.
|
|
199
|
+
*/
|
|
200
|
+
billingPolicyId?: pulumi.Input<string>;
|
|
201
|
+
/**
|
|
202
|
+
* Release wave cadence: Frequent or Moderate. Immutable after creation.
|
|
203
|
+
*/
|
|
204
|
+
cadence?: pulumi.Input<string>;
|
|
205
|
+
/**
|
|
206
|
+
* Dataverse database configuration. Presence triggers Dataverse provisioning.
|
|
207
|
+
*/
|
|
208
|
+
dataverse?: pulumi.Input<inputs.DataverseArgs>;
|
|
209
|
+
/**
|
|
210
|
+
* A description of the environment.
|
|
211
|
+
*/
|
|
212
|
+
description?: pulumi.Input<string>;
|
|
213
|
+
/**
|
|
214
|
+
* The display name of the environment.
|
|
215
|
+
*/
|
|
216
|
+
displayName: pulumi.Input<string>;
|
|
217
|
+
/**
|
|
218
|
+
* Set of enterprise policies associated with the environment.
|
|
219
|
+
*/
|
|
220
|
+
enterprisePolicies?: pulumi.Input<pulumi.Input<inputs.EnterprisePolicyArgs>[]>;
|
|
221
|
+
/**
|
|
222
|
+
* ID of the environment group this environment belongs to.
|
|
223
|
+
*/
|
|
224
|
+
environmentGroupId?: pulumi.Input<string>;
|
|
225
|
+
/**
|
|
226
|
+
* The type (SKU) of the environment: Sandbox, Production, Trial, Developer, or Default. Immutable after creation.
|
|
227
|
+
*/
|
|
228
|
+
environmentType: pulumi.Input<string>;
|
|
229
|
+
/**
|
|
230
|
+
* GUID of the linked app.
|
|
231
|
+
*/
|
|
232
|
+
linkedAppId?: pulumi.Input<string>;
|
|
233
|
+
/**
|
|
234
|
+
* Type of linked app: Canvas or ModelDriven.
|
|
235
|
+
*/
|
|
236
|
+
linkedAppType?: pulumi.Input<string>;
|
|
237
|
+
/**
|
|
238
|
+
* The geographic region for the environment (e.g., unitedstates, europe). Immutable after creation.
|
|
239
|
+
*/
|
|
240
|
+
location: pulumi.Input<string>;
|
|
241
|
+
/**
|
|
242
|
+
* AAD user or group GUID who owns the environment. Only valid for Developer environments.
|
|
243
|
+
*/
|
|
244
|
+
ownerId?: pulumi.Input<string>;
|
|
245
|
+
}
|