@rpothin/powerplatform 0.1.41 → 0.1.42
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 +1 -6
- 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/{bin/types/input.d.ts → types/input.ts} +10 -4
- package/{bin/types/output.d.ts → types/output.ts} +16 -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 -172
- package/bin/environment.d.ts.map +0 -1
- package/bin/environment.js +0 -124
- 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.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/index.ts
ADDED
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
2
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
3
|
+
|
|
4
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
5
|
+
import * as utilities from "./utilities";
|
|
6
|
+
|
|
7
|
+
// Export members:
|
|
8
|
+
export { BillingPolicyArgs } from "./billingPolicy";
|
|
9
|
+
export type BillingPolicy = import("./billingPolicy").BillingPolicy;
|
|
10
|
+
export const BillingPolicy: typeof import("./billingPolicy").BillingPolicy = null as any;
|
|
11
|
+
utilities.lazyLoad(exports, ["BillingPolicy"], () => require("./billingPolicy"));
|
|
12
|
+
|
|
13
|
+
export { DlpPolicyArgs } from "./dlpPolicy";
|
|
14
|
+
export type DlpPolicy = import("./dlpPolicy").DlpPolicy;
|
|
15
|
+
export const DlpPolicy: typeof import("./dlpPolicy").DlpPolicy = null as any;
|
|
16
|
+
utilities.lazyLoad(exports, ["DlpPolicy"], () => require("./dlpPolicy"));
|
|
17
|
+
|
|
18
|
+
export { EnvironmentArgs } from "./environment";
|
|
19
|
+
export type Environment = import("./environment").Environment;
|
|
20
|
+
export const Environment: typeof import("./environment").Environment = null as any;
|
|
21
|
+
utilities.lazyLoad(exports, ["Environment"], () => require("./environment"));
|
|
22
|
+
|
|
23
|
+
export { EnvironmentBackupArgs } from "./environmentBackup";
|
|
24
|
+
export type EnvironmentBackup = import("./environmentBackup").EnvironmentBackup;
|
|
25
|
+
export const EnvironmentBackup: typeof import("./environmentBackup").EnvironmentBackup = null as any;
|
|
26
|
+
utilities.lazyLoad(exports, ["EnvironmentBackup"], () => require("./environmentBackup"));
|
|
27
|
+
|
|
28
|
+
export { EnvironmentGroupArgs } from "./environmentGroup";
|
|
29
|
+
export type EnvironmentGroup = import("./environmentGroup").EnvironmentGroup;
|
|
30
|
+
export const EnvironmentGroup: typeof import("./environmentGroup").EnvironmentGroup = null as any;
|
|
31
|
+
utilities.lazyLoad(exports, ["EnvironmentGroup"], () => require("./environmentGroup"));
|
|
32
|
+
|
|
33
|
+
export { EnvironmentSettingsArgs } from "./environmentSettings";
|
|
34
|
+
export type EnvironmentSettings = import("./environmentSettings").EnvironmentSettings;
|
|
35
|
+
export const EnvironmentSettings: typeof import("./environmentSettings").EnvironmentSettings = null as any;
|
|
36
|
+
utilities.lazyLoad(exports, ["EnvironmentSettings"], () => require("./environmentSettings"));
|
|
37
|
+
|
|
38
|
+
export { GetAppsArgs, GetAppsResult, GetAppsOutputArgs } from "./getApps";
|
|
39
|
+
export const getApps: typeof import("./getApps").getApps = null as any;
|
|
40
|
+
export const getAppsOutput: typeof import("./getApps").getAppsOutput = null as any;
|
|
41
|
+
utilities.lazyLoad(exports, ["getApps","getAppsOutput"], () => require("./getApps"));
|
|
42
|
+
|
|
43
|
+
export { GetConnectorsArgs, GetConnectorsResult, GetConnectorsOutputArgs } from "./getConnectors";
|
|
44
|
+
export const getConnectors: typeof import("./getConnectors").getConnectors = null as any;
|
|
45
|
+
export const getConnectorsOutput: typeof import("./getConnectors").getConnectorsOutput = null as any;
|
|
46
|
+
utilities.lazyLoad(exports, ["getConnectors","getConnectorsOutput"], () => require("./getConnectors"));
|
|
47
|
+
|
|
48
|
+
export { GetEnvironmentsArgs, GetEnvironmentsResult, GetEnvironmentsOutputArgs } from "./getEnvironments";
|
|
49
|
+
export const getEnvironments: typeof import("./getEnvironments").getEnvironments = null as any;
|
|
50
|
+
export const getEnvironmentsOutput: typeof import("./getEnvironments").getEnvironmentsOutput = null as any;
|
|
51
|
+
utilities.lazyLoad(exports, ["getEnvironments","getEnvironmentsOutput"], () => require("./getEnvironments"));
|
|
52
|
+
|
|
53
|
+
export { GetFlowsArgs, GetFlowsResult, GetFlowsOutputArgs } from "./getFlows";
|
|
54
|
+
export const getFlows: typeof import("./getFlows").getFlows = null as any;
|
|
55
|
+
export const getFlowsOutput: typeof import("./getFlows").getFlowsOutput = null as any;
|
|
56
|
+
utilities.lazyLoad(exports, ["getFlows","getFlowsOutput"], () => require("./getFlows"));
|
|
57
|
+
|
|
58
|
+
export { IsvContractArgs } from "./isvContract";
|
|
59
|
+
export type IsvContract = import("./isvContract").IsvContract;
|
|
60
|
+
export const IsvContract: typeof import("./isvContract").IsvContract = null as any;
|
|
61
|
+
utilities.lazyLoad(exports, ["IsvContract"], () => require("./isvContract"));
|
|
62
|
+
|
|
63
|
+
export { ManagedEnvironmentArgs } from "./managedEnvironment";
|
|
64
|
+
export type ManagedEnvironment = import("./managedEnvironment").ManagedEnvironment;
|
|
65
|
+
export const ManagedEnvironment: typeof import("./managedEnvironment").ManagedEnvironment = null as any;
|
|
66
|
+
utilities.lazyLoad(exports, ["ManagedEnvironment"], () => require("./managedEnvironment"));
|
|
67
|
+
|
|
68
|
+
export { ProviderArgs } from "./provider";
|
|
69
|
+
export type Provider = import("./provider").Provider;
|
|
70
|
+
export const Provider: typeof import("./provider").Provider = null as any;
|
|
71
|
+
utilities.lazyLoad(exports, ["Provider"], () => require("./provider"));
|
|
72
|
+
|
|
73
|
+
export { RoleAssignmentArgs } from "./roleAssignment";
|
|
74
|
+
export type RoleAssignment = import("./roleAssignment").RoleAssignment;
|
|
75
|
+
export const RoleAssignment: typeof import("./roleAssignment").RoleAssignment = null as any;
|
|
76
|
+
utilities.lazyLoad(exports, ["RoleAssignment"], () => require("./roleAssignment"));
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
// Export sub-modules:
|
|
80
|
+
import * as config from "./config";
|
|
81
|
+
import * as types from "./types";
|
|
82
|
+
|
|
83
|
+
export {
|
|
84
|
+
config,
|
|
85
|
+
types,
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
const _module = {
|
|
89
|
+
version: utilities.getVersion(),
|
|
90
|
+
construct: (name: string, type: string, urn: string): pulumi.Resource => {
|
|
91
|
+
switch (type) {
|
|
92
|
+
case "powerplatform:index:BillingPolicy":
|
|
93
|
+
return new BillingPolicy(name, <any>undefined, { urn })
|
|
94
|
+
case "powerplatform:index:DlpPolicy":
|
|
95
|
+
return new DlpPolicy(name, <any>undefined, { urn })
|
|
96
|
+
case "powerplatform:index:Environment":
|
|
97
|
+
return new Environment(name, <any>undefined, { urn })
|
|
98
|
+
case "powerplatform:index:EnvironmentBackup":
|
|
99
|
+
return new EnvironmentBackup(name, <any>undefined, { urn })
|
|
100
|
+
case "powerplatform:index:EnvironmentGroup":
|
|
101
|
+
return new EnvironmentGroup(name, <any>undefined, { urn })
|
|
102
|
+
case "powerplatform:index:EnvironmentSettings":
|
|
103
|
+
return new EnvironmentSettings(name, <any>undefined, { urn })
|
|
104
|
+
case "powerplatform:index:IsvContract":
|
|
105
|
+
return new IsvContract(name, <any>undefined, { urn })
|
|
106
|
+
case "powerplatform:index:ManagedEnvironment":
|
|
107
|
+
return new ManagedEnvironment(name, <any>undefined, { urn })
|
|
108
|
+
case "powerplatform:index:RoleAssignment":
|
|
109
|
+
return new RoleAssignment(name, <any>undefined, { urn })
|
|
110
|
+
default:
|
|
111
|
+
throw new Error(`unknown resource type ${type}`);
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
};
|
|
115
|
+
pulumi.runtime.registerResourceModule("powerplatform", "index", _module)
|
|
116
|
+
pulumi.runtime.registerResourcePackage("powerplatform", {
|
|
117
|
+
version: utilities.getVersion(),
|
|
118
|
+
constructProvider: (name: string, type: string, urn: string): pulumi.ProviderResource => {
|
|
119
|
+
if (type !== "pulumi:providers:powerplatform") {
|
|
120
|
+
throw new Error(`unknown provider type ${type}`);
|
|
121
|
+
}
|
|
122
|
+
return new Provider(name, <any>undefined, { urn });
|
|
123
|
+
},
|
|
124
|
+
});
|
|
@@ -1,37 +1,13 @@
|
|
|
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
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
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.IsvContract = 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 utilities from "./utilities";
|
|
6
|
+
|
|
31
7
|
/**
|
|
32
8
|
* Manages an ISV (Independent Software Vendor) contract for Power Platform licensing.
|
|
33
9
|
*/
|
|
34
|
-
class IsvContract extends pulumi.CustomResource {
|
|
10
|
+
export class IsvContract extends pulumi.CustomResource {
|
|
35
11
|
/**
|
|
36
12
|
* Get an existing IsvContract resource's state with the given name, ID, and optional extra
|
|
37
13
|
* properties used to qualify the lookup.
|
|
@@ -40,21 +16,45 @@ class IsvContract extends pulumi.CustomResource {
|
|
|
40
16
|
* @param id The _unique_ provider ID of the resource to lookup.
|
|
41
17
|
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
42
18
|
*/
|
|
43
|
-
static get(name, id
|
|
44
|
-
return new IsvContract(name, undefined, { ...opts, id: id });
|
|
19
|
+
public static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): IsvContract {
|
|
20
|
+
return new IsvContract(name, undefined as any, { ...opts, id: id });
|
|
45
21
|
}
|
|
22
|
+
|
|
46
23
|
/** @internal */
|
|
47
|
-
static __pulumiType = 'powerplatform:index:IsvContract';
|
|
24
|
+
public static readonly __pulumiType = 'powerplatform:index:IsvContract';
|
|
25
|
+
|
|
48
26
|
/**
|
|
49
27
|
* Returns true if the given object is an instance of IsvContract. This is designed to work even
|
|
50
28
|
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
51
29
|
*/
|
|
52
|
-
static isInstance(obj) {
|
|
30
|
+
public static isInstance(obj: any): obj is IsvContract {
|
|
53
31
|
if (obj === undefined || obj === null) {
|
|
54
32
|
return false;
|
|
55
33
|
}
|
|
56
34
|
return obj['__pulumiType'] === IsvContract.__pulumiType;
|
|
57
35
|
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* The timestamp when the ISV contract was created.
|
|
39
|
+
*/
|
|
40
|
+
declare public /*out*/ readonly createdOn: pulumi.Output<string | undefined>;
|
|
41
|
+
/**
|
|
42
|
+
* The geographic region of the ISV contract.
|
|
43
|
+
*/
|
|
44
|
+
declare public readonly geo: pulumi.Output<string>;
|
|
45
|
+
/**
|
|
46
|
+
* The timestamp when the ISV contract was last modified.
|
|
47
|
+
*/
|
|
48
|
+
declare public /*out*/ readonly lastModifiedOn: pulumi.Output<string | undefined>;
|
|
49
|
+
/**
|
|
50
|
+
* The name of the ISV contract.
|
|
51
|
+
*/
|
|
52
|
+
declare public readonly name: pulumi.Output<string>;
|
|
53
|
+
/**
|
|
54
|
+
* The status of the ISV contract.
|
|
55
|
+
*/
|
|
56
|
+
declare public readonly status: pulumi.Output<string | undefined>;
|
|
57
|
+
|
|
58
58
|
/**
|
|
59
59
|
* Create a IsvContract resource with the given unique name, arguments, and options.
|
|
60
60
|
*
|
|
@@ -62,8 +62,8 @@ class IsvContract extends pulumi.CustomResource {
|
|
|
62
62
|
* @param args The arguments to use to populate this resource's properties.
|
|
63
63
|
* @param opts A bag of options that control this resource's behavior.
|
|
64
64
|
*/
|
|
65
|
-
constructor(name, args, opts) {
|
|
66
|
-
let resourceInputs = {};
|
|
65
|
+
constructor(name: string, args: IsvContractArgs, opts?: pulumi.CustomResourceOptions) {
|
|
66
|
+
let resourceInputs: pulumi.Inputs = {};
|
|
67
67
|
opts = opts || {};
|
|
68
68
|
if (!opts.id) {
|
|
69
69
|
if (args?.geo === undefined && !opts.urn) {
|
|
@@ -77,8 +77,7 @@ class IsvContract extends pulumi.CustomResource {
|
|
|
77
77
|
resourceInputs["status"] = args?.status;
|
|
78
78
|
resourceInputs["createdOn"] = undefined /*out*/;
|
|
79
79
|
resourceInputs["lastModifiedOn"] = undefined /*out*/;
|
|
80
|
-
}
|
|
81
|
-
else {
|
|
80
|
+
} else {
|
|
82
81
|
resourceInputs["createdOn"] = undefined /*out*/;
|
|
83
82
|
resourceInputs["geo"] = undefined /*out*/;
|
|
84
83
|
resourceInputs["lastModifiedOn"] = undefined /*out*/;
|
|
@@ -89,5 +88,21 @@ class IsvContract extends pulumi.CustomResource {
|
|
|
89
88
|
super(IsvContract.__pulumiType, name, resourceInputs, opts);
|
|
90
89
|
}
|
|
91
90
|
}
|
|
92
|
-
|
|
93
|
-
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* The set of arguments for constructing a IsvContract resource.
|
|
94
|
+
*/
|
|
95
|
+
export interface IsvContractArgs {
|
|
96
|
+
/**
|
|
97
|
+
* The geographic region for the ISV contract (e.g., unitedstates, europe). Immutable after creation.
|
|
98
|
+
*/
|
|
99
|
+
geo: pulumi.Input<string>;
|
|
100
|
+
/**
|
|
101
|
+
* The name of the ISV contract.
|
|
102
|
+
*/
|
|
103
|
+
name: pulumi.Input<string>;
|
|
104
|
+
/**
|
|
105
|
+
* The status of the ISV contract: Enabled or Disabled.
|
|
106
|
+
*/
|
|
107
|
+
status?: pulumi.Input<string>;
|
|
108
|
+
}
|
|
@@ -1,37 +1,13 @@
|
|
|
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
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
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.ManagedEnvironment = 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 utilities from "./utilities";
|
|
6
|
+
|
|
31
7
|
/**
|
|
32
8
|
* Enables managed environment governance on a Power Platform environment. Managed environments provide enhanced admin controls. Deleting this resource disables the managed environment setting.
|
|
33
9
|
*/
|
|
34
|
-
class ManagedEnvironment extends pulumi.CustomResource {
|
|
10
|
+
export class ManagedEnvironment extends pulumi.CustomResource {
|
|
35
11
|
/**
|
|
36
12
|
* Get an existing ManagedEnvironment resource's state with the given name, ID, and optional extra
|
|
37
13
|
* properties used to qualify the lookup.
|
|
@@ -40,21 +16,33 @@ class ManagedEnvironment extends pulumi.CustomResource {
|
|
|
40
16
|
* @param id The _unique_ provider ID of the resource to lookup.
|
|
41
17
|
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
42
18
|
*/
|
|
43
|
-
static get(name, id
|
|
44
|
-
return new ManagedEnvironment(name, undefined, { ...opts, id: id });
|
|
19
|
+
public static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): ManagedEnvironment {
|
|
20
|
+
return new ManagedEnvironment(name, undefined as any, { ...opts, id: id });
|
|
45
21
|
}
|
|
22
|
+
|
|
46
23
|
/** @internal */
|
|
47
|
-
static __pulumiType = 'powerplatform:index:ManagedEnvironment';
|
|
24
|
+
public static readonly __pulumiType = 'powerplatform:index:ManagedEnvironment';
|
|
25
|
+
|
|
48
26
|
/**
|
|
49
27
|
* Returns true if the given object is an instance of ManagedEnvironment. This is designed to work even
|
|
50
28
|
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
51
29
|
*/
|
|
52
|
-
static isInstance(obj) {
|
|
30
|
+
public static isInstance(obj: any): obj is ManagedEnvironment {
|
|
53
31
|
if (obj === undefined || obj === null) {
|
|
54
32
|
return false;
|
|
55
33
|
}
|
|
56
34
|
return obj['__pulumiType'] === ManagedEnvironment.__pulumiType;
|
|
57
35
|
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Whether the managed environment is enabled.
|
|
39
|
+
*/
|
|
40
|
+
declare public /*out*/ readonly enabled: pulumi.Output<boolean>;
|
|
41
|
+
/**
|
|
42
|
+
* The ID of the managed environment.
|
|
43
|
+
*/
|
|
44
|
+
declare public readonly environmentId: pulumi.Output<string>;
|
|
45
|
+
|
|
58
46
|
/**
|
|
59
47
|
* Create a ManagedEnvironment resource with the given unique name, arguments, and options.
|
|
60
48
|
*
|
|
@@ -62,8 +50,8 @@ class ManagedEnvironment extends pulumi.CustomResource {
|
|
|
62
50
|
* @param args The arguments to use to populate this resource's properties.
|
|
63
51
|
* @param opts A bag of options that control this resource's behavior.
|
|
64
52
|
*/
|
|
65
|
-
constructor(name, args, opts) {
|
|
66
|
-
let resourceInputs = {};
|
|
53
|
+
constructor(name: string, args: ManagedEnvironmentArgs, opts?: pulumi.CustomResourceOptions) {
|
|
54
|
+
let resourceInputs: pulumi.Inputs = {};
|
|
67
55
|
opts = opts || {};
|
|
68
56
|
if (!opts.id) {
|
|
69
57
|
if (args?.environmentId === undefined && !opts.urn) {
|
|
@@ -71,8 +59,7 @@ class ManagedEnvironment extends pulumi.CustomResource {
|
|
|
71
59
|
}
|
|
72
60
|
resourceInputs["environmentId"] = args?.environmentId;
|
|
73
61
|
resourceInputs["enabled"] = undefined /*out*/;
|
|
74
|
-
}
|
|
75
|
-
else {
|
|
62
|
+
} else {
|
|
76
63
|
resourceInputs["enabled"] = undefined /*out*/;
|
|
77
64
|
resourceInputs["environmentId"] = undefined /*out*/;
|
|
78
65
|
}
|
|
@@ -80,5 +67,13 @@ class ManagedEnvironment extends pulumi.CustomResource {
|
|
|
80
67
|
super(ManagedEnvironment.__pulumiType, name, resourceInputs, opts);
|
|
81
68
|
}
|
|
82
69
|
}
|
|
83
|
-
|
|
84
|
-
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* The set of arguments for constructing a ManagedEnvironment resource.
|
|
73
|
+
*/
|
|
74
|
+
export interface ManagedEnvironmentArgs {
|
|
75
|
+
/**
|
|
76
|
+
* The ID of the Power Platform environment to manage.
|
|
77
|
+
*/
|
|
78
|
+
environmentId: pulumi.Input<string>;
|
|
79
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rpothin/powerplatform",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.42",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"category/cloud",
|
|
6
6
|
"kind/native"
|
|
@@ -8,11 +8,6 @@
|
|
|
8
8
|
"homepage": "https://github.com/rpothin/pulumi-powerplatform",
|
|
9
9
|
"repository": "https://github.com/rpothin/pulumi-powerplatform",
|
|
10
10
|
"license": "MIT",
|
|
11
|
-
"main": "bin/index.js",
|
|
12
|
-
"types": "bin/index.d.ts",
|
|
13
|
-
"files": [
|
|
14
|
-
"bin"
|
|
15
|
-
],
|
|
16
11
|
"scripts": {
|
|
17
12
|
"build": "tsc"
|
|
18
13
|
},
|
package/provider.ts
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
2
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
3
|
+
|
|
4
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
5
|
+
import * as utilities from "./utilities";
|
|
6
|
+
|
|
7
|
+
export class Provider extends pulumi.ProviderResource {
|
|
8
|
+
/** @internal */
|
|
9
|
+
public static readonly __pulumiType = 'powerplatform';
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Returns true if the given object is an instance of Provider. This is designed to work even
|
|
13
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
14
|
+
*/
|
|
15
|
+
public static isInstance(obj: any): obj is Provider {
|
|
16
|
+
if (obj === undefined || obj === null) {
|
|
17
|
+
return false;
|
|
18
|
+
}
|
|
19
|
+
return obj['__pulumiType'] === "pulumi:providers:" + Provider.__pulumiType;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Create a Provider resource with the given unique name, arguments, and options.
|
|
25
|
+
*
|
|
26
|
+
* @param name The _unique_ name of the resource.
|
|
27
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
28
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
29
|
+
*/
|
|
30
|
+
constructor(name: string, args?: ProviderArgs, opts?: pulumi.ResourceOptions) {
|
|
31
|
+
let resourceInputs: pulumi.Inputs = {};
|
|
32
|
+
opts = opts || {};
|
|
33
|
+
{
|
|
34
|
+
}
|
|
35
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
36
|
+
super(Provider.__pulumiType, name, resourceInputs, opts);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* The set of arguments for constructing a Provider resource.
|
|
42
|
+
*/
|
|
43
|
+
export interface ProviderArgs {
|
|
44
|
+
}
|
|
@@ -1,37 +1,13 @@
|
|
|
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
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
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.RoleAssignment = 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 utilities from "./utilities";
|
|
6
|
+
|
|
31
7
|
/**
|
|
32
8
|
* Assigns a role to a principal (user, group, or service principal) at a specified scope. Role assignments are immutable — any change to inputs triggers replacement.
|
|
33
9
|
*/
|
|
34
|
-
class RoleAssignment extends pulumi.CustomResource {
|
|
10
|
+
export class RoleAssignment extends pulumi.CustomResource {
|
|
35
11
|
/**
|
|
36
12
|
* Get an existing RoleAssignment resource's state with the given name, ID, and optional extra
|
|
37
13
|
* properties used to qualify the lookup.
|
|
@@ -40,21 +16,45 @@ class RoleAssignment extends pulumi.CustomResource {
|
|
|
40
16
|
* @param id The _unique_ provider ID of the resource to lookup.
|
|
41
17
|
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
42
18
|
*/
|
|
43
|
-
static get(name, id
|
|
44
|
-
return new RoleAssignment(name, undefined, { ...opts, id: id });
|
|
19
|
+
public static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): RoleAssignment {
|
|
20
|
+
return new RoleAssignment(name, undefined as any, { ...opts, id: id });
|
|
45
21
|
}
|
|
22
|
+
|
|
46
23
|
/** @internal */
|
|
47
|
-
static __pulumiType = 'powerplatform:index:RoleAssignment';
|
|
24
|
+
public static readonly __pulumiType = 'powerplatform:index:RoleAssignment';
|
|
25
|
+
|
|
48
26
|
/**
|
|
49
27
|
* Returns true if the given object is an instance of RoleAssignment. This is designed to work even
|
|
50
28
|
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
51
29
|
*/
|
|
52
|
-
static isInstance(obj) {
|
|
30
|
+
public static isInstance(obj: any): obj is RoleAssignment {
|
|
53
31
|
if (obj === undefined || obj === null) {
|
|
54
32
|
return false;
|
|
55
33
|
}
|
|
56
34
|
return obj['__pulumiType'] === RoleAssignment.__pulumiType;
|
|
57
35
|
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* The timestamp when the role assignment was created.
|
|
39
|
+
*/
|
|
40
|
+
declare public /*out*/ readonly createdOn: pulumi.Output<string | undefined>;
|
|
41
|
+
/**
|
|
42
|
+
* The object ID of the assigned principal.
|
|
43
|
+
*/
|
|
44
|
+
declare public readonly principalObjectId: pulumi.Output<string>;
|
|
45
|
+
/**
|
|
46
|
+
* The type of the assigned principal.
|
|
47
|
+
*/
|
|
48
|
+
declare public readonly principalType: pulumi.Output<string>;
|
|
49
|
+
/**
|
|
50
|
+
* The role definition ID.
|
|
51
|
+
*/
|
|
52
|
+
declare public readonly roleDefinitionId: pulumi.Output<string>;
|
|
53
|
+
/**
|
|
54
|
+
* The scope of the role assignment.
|
|
55
|
+
*/
|
|
56
|
+
declare public readonly scope: pulumi.Output<string | undefined>;
|
|
57
|
+
|
|
58
58
|
/**
|
|
59
59
|
* Create a RoleAssignment resource with the given unique name, arguments, and options.
|
|
60
60
|
*
|
|
@@ -62,8 +62,8 @@ class RoleAssignment extends pulumi.CustomResource {
|
|
|
62
62
|
* @param args The arguments to use to populate this resource's properties.
|
|
63
63
|
* @param opts A bag of options that control this resource's behavior.
|
|
64
64
|
*/
|
|
65
|
-
constructor(name, args, opts) {
|
|
66
|
-
let resourceInputs = {};
|
|
65
|
+
constructor(name: string, args: RoleAssignmentArgs, opts?: pulumi.CustomResourceOptions) {
|
|
66
|
+
let resourceInputs: pulumi.Inputs = {};
|
|
67
67
|
opts = opts || {};
|
|
68
68
|
if (!opts.id) {
|
|
69
69
|
if (args?.principalObjectId === undefined && !opts.urn) {
|
|
@@ -80,8 +80,7 @@ class RoleAssignment extends pulumi.CustomResource {
|
|
|
80
80
|
resourceInputs["roleDefinitionId"] = args?.roleDefinitionId;
|
|
81
81
|
resourceInputs["scope"] = args?.scope;
|
|
82
82
|
resourceInputs["createdOn"] = undefined /*out*/;
|
|
83
|
-
}
|
|
84
|
-
else {
|
|
83
|
+
} else {
|
|
85
84
|
resourceInputs["createdOn"] = undefined /*out*/;
|
|
86
85
|
resourceInputs["principalObjectId"] = undefined /*out*/;
|
|
87
86
|
resourceInputs["principalType"] = undefined /*out*/;
|
|
@@ -92,5 +91,25 @@ class RoleAssignment extends pulumi.CustomResource {
|
|
|
92
91
|
super(RoleAssignment.__pulumiType, name, resourceInputs, opts);
|
|
93
92
|
}
|
|
94
93
|
}
|
|
95
|
-
|
|
96
|
-
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* The set of arguments for constructing a RoleAssignment resource.
|
|
97
|
+
*/
|
|
98
|
+
export interface RoleAssignmentArgs {
|
|
99
|
+
/**
|
|
100
|
+
* The object ID of the principal (user, group, or service principal) to assign the role to.
|
|
101
|
+
*/
|
|
102
|
+
principalObjectId: pulumi.Input<string>;
|
|
103
|
+
/**
|
|
104
|
+
* The type of the principal: User, Group, or ServicePrincipal.
|
|
105
|
+
*/
|
|
106
|
+
principalType: pulumi.Input<string>;
|
|
107
|
+
/**
|
|
108
|
+
* The ID of the role definition to assign.
|
|
109
|
+
*/
|
|
110
|
+
roleDefinitionId: pulumi.Input<string>;
|
|
111
|
+
/**
|
|
112
|
+
* The scope of the role assignment (e.g., tenant, environment, or environment group).
|
|
113
|
+
*/
|
|
114
|
+
scope?: pulumi.Input<string>;
|
|
115
|
+
}
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
// Output
|
|
4
|
+
"outDir": "bin",
|
|
5
|
+
"declaration": true,
|
|
6
|
+
"declarationMap": true,
|
|
7
|
+
"sourceMap": true,
|
|
8
|
+
"stripInternal": true,
|
|
9
|
+
// Environment
|
|
10
|
+
"target": "ES2022",
|
|
11
|
+
"module": "nodenext",
|
|
12
|
+
"moduleResolution": "nodenext",
|
|
13
|
+
"moduleDetection": "force",
|
|
14
|
+
"types": ["node"],
|
|
15
|
+
// Type Checking
|
|
16
|
+
"strict": true,
|
|
17
|
+
"noFallthroughCasesInSwitch": true,
|
|
18
|
+
"noImplicitReturns": true,
|
|
19
|
+
"skipLibCheck": true
|
|
20
|
+
},
|
|
21
|
+
"files": [
|
|
22
|
+
"billingPolicy.ts",
|
|
23
|
+
"config/index.ts",
|
|
24
|
+
"config/vars.ts",
|
|
25
|
+
"dlpPolicy.ts",
|
|
26
|
+
"environment.ts",
|
|
27
|
+
"environmentBackup.ts",
|
|
28
|
+
"environmentGroup.ts",
|
|
29
|
+
"environmentSettings.ts",
|
|
30
|
+
"getApps.ts",
|
|
31
|
+
"getConnectors.ts",
|
|
32
|
+
"getEnvironments.ts",
|
|
33
|
+
"getFlows.ts",
|
|
34
|
+
"index.ts",
|
|
35
|
+
"isvContract.ts",
|
|
36
|
+
"managedEnvironment.ts",
|
|
37
|
+
"provider.ts",
|
|
38
|
+
"roleAssignment.ts",
|
|
39
|
+
"types/index.ts",
|
|
40
|
+
"types/input.ts",
|
|
41
|
+
"types/output.ts",
|
|
42
|
+
"utilities.ts"
|
|
43
|
+
]
|
|
44
|
+
}
|
package/types/index.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
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 utilities from "../utilities";
|
|
5
|
+
|
|
6
|
+
// Export sub-modules:
|
|
7
|
+
import * as input from "./input";
|
|
8
|
+
import * as output from "./output";
|
|
9
|
+
|
|
10
|
+
export {
|
|
11
|
+
input,
|
|
12
|
+
output,
|
|
13
|
+
};
|