@rpothin/powerplatform 0.1.42 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (96) hide show
  1. package/bin/billingPolicy.d.ts +76 -0
  2. package/bin/billingPolicy.d.ts.map +1 -0
  3. package/{billingPolicy.ts → bin/billingPolicy.js} +39 -64
  4. package/bin/billingPolicy.js.map +1 -0
  5. package/bin/config/index.d.ts +2 -0
  6. package/bin/config/index.d.ts.map +1 -0
  7. package/bin/config/index.js +21 -0
  8. package/bin/config/index.js.map +1 -0
  9. package/bin/config/vars.d.ts +13 -0
  10. package/bin/config/vars.d.ts.map +1 -0
  11. package/bin/config/vars.js +48 -0
  12. package/bin/config/vars.js.map +1 -0
  13. package/bin/dlpPolicy.d.ts +64 -0
  14. package/bin/dlpPolicy.d.ts.map +1 -0
  15. package/{dlpPolicy.ts → bin/dlpPolicy.js} +39 -52
  16. package/bin/dlpPolicy.js.map +1 -0
  17. package/bin/environment.d.ts +172 -0
  18. package/bin/environment.d.ts.map +1 -0
  19. package/bin/environment.js +124 -0
  20. package/bin/environment.js.map +1 -0
  21. package/bin/environmentBackup.d.ts +58 -0
  22. package/bin/environmentBackup.d.ts.map +1 -0
  23. package/{environmentBackup.ts → bin/environmentBackup.js} +39 -46
  24. package/bin/environmentBackup.js.map +1 -0
  25. package/bin/environmentGroup.d.ts +66 -0
  26. package/bin/environmentGroup.d.ts.map +1 -0
  27. package/{environmentGroup.ts → bin/environmentGroup.js} +39 -54
  28. package/bin/environmentGroup.js.map +1 -0
  29. package/bin/environmentSettings.d.ts +82 -0
  30. package/bin/environmentSettings.d.ts.map +1 -0
  31. package/{environmentSettings.ts → bin/environmentSettings.js} +39 -70
  32. package/bin/environmentSettings.js.map +1 -0
  33. package/bin/getApps.d.ts +29 -0
  34. package/bin/getApps.d.ts.map +1 -0
  35. package/bin/getApps.js +51 -0
  36. package/bin/getApps.js.map +1 -0
  37. package/bin/getConnectors.d.ts +29 -0
  38. package/bin/getConnectors.d.ts.map +1 -0
  39. package/bin/getConnectors.js +51 -0
  40. package/bin/getConnectors.js.map +1 -0
  41. package/{getEnvironments.ts → bin/getEnvironments.d.ts} +3 -25
  42. package/bin/getEnvironments.d.ts.map +1 -0
  43. package/bin/getEnvironments.js +55 -0
  44. package/bin/getEnvironments.js.map +1 -0
  45. package/bin/getFlows.d.ts +29 -0
  46. package/bin/getFlows.d.ts.map +1 -0
  47. package/bin/getFlows.js +51 -0
  48. package/bin/getFlows.js.map +1 -0
  49. package/bin/index.d.ts +46 -0
  50. package/bin/index.d.ts.map +1 -0
  51. package/bin/index.js +105 -0
  52. package/bin/index.js.map +1 -0
  53. package/bin/isvContract.d.ts +66 -0
  54. package/bin/isvContract.d.ts.map +1 -0
  55. package/{isvContract.ts → bin/isvContract.js} +39 -54
  56. package/bin/isvContract.js.map +1 -0
  57. package/bin/managedEnvironment.d.ts +46 -0
  58. package/bin/managedEnvironment.d.ts.map +1 -0
  59. package/{managedEnvironment.ts → bin/managedEnvironment.js} +39 -34
  60. package/bin/managedEnvironment.js.map +1 -0
  61. package/bin/package.json +31 -0
  62. package/bin/provider.d.ts +22 -0
  63. package/bin/provider.d.ts.map +1 -0
  64. package/bin/provider.js +61 -0
  65. package/bin/provider.js.map +1 -0
  66. package/bin/roleAssignment.d.ts +70 -0
  67. package/bin/roleAssignment.d.ts.map +1 -0
  68. package/{roleAssignment.ts → bin/roleAssignment.js} +39 -58
  69. package/bin/roleAssignment.js.map +1 -0
  70. package/bin/types/index.d.ts +4 -0
  71. package/bin/types/index.d.ts.map +1 -0
  72. package/bin/types/index.js +34 -0
  73. package/bin/types/index.js.map +1 -0
  74. package/{types/input.ts → bin/types/input.d.ts} +4 -10
  75. package/bin/types/input.d.ts.map +1 -0
  76. package/{config/index.ts → bin/types/input.js} +3 -3
  77. package/bin/types/input.js.map +1 -0
  78. package/{types/output.ts → bin/types/output.d.ts} +4 -16
  79. package/bin/types/output.d.ts.map +1 -0
  80. package/bin/types/output.js +5 -0
  81. package/bin/types/output.js.map +1 -0
  82. package/bin/utilities.d.ts +5 -0
  83. package/bin/utilities.d.ts.map +1 -0
  84. package/{utilities.ts → bin/utilities.js} +46 -28
  85. package/bin/utilities.js.map +1 -0
  86. package/package.json +6 -1
  87. package/.gitattributes +0 -1
  88. package/config/vars.ts +0 -42
  89. package/environment.ts +0 -245
  90. package/getApps.ts +0 -47
  91. package/getConnectors.ts +0 -47
  92. package/getFlows.ts +0 -47
  93. package/index.ts +0 -124
  94. package/provider.ts +0 -44
  95. package/tsconfig.json +0 -44
  96. package/types/index.ts +0 -13
@@ -1,10 +1,3 @@
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
-
8
1
  /**
9
2
  * Summary information about a Power App.
10
3
  */
@@ -22,7 +15,6 @@ export interface AppSummary {
22
15
  */
23
16
  name?: string;
24
17
  }
25
-
26
18
  /**
27
19
  * Azure billing instrument (subscription) details for a billing policy.
28
20
  */
@@ -40,7 +32,6 @@ export interface BillingInstrument {
40
32
  */
41
33
  subscriptionId?: string;
42
34
  }
43
-
44
35
  /**
45
36
  * Summary information about a Power Platform connector.
46
37
  */
@@ -62,7 +53,6 @@ export interface ConnectorSummary {
62
53
  */
63
54
  type?: string;
64
55
  }
65
-
66
56
  /**
67
57
  * Configuration for the Dataverse database associated with a Power Platform environment.
68
58
  */
@@ -116,7 +106,6 @@ export interface Dataverse {
116
106
  */
117
107
  version?: string;
118
108
  }
119
-
120
109
  /**
121
110
  * An enterprise policy associated with a Power Platform environment.
122
111
  */
@@ -142,7 +131,6 @@ export interface EnterprisePolicy {
142
131
  */
143
132
  type?: string;
144
133
  }
145
-
146
134
  /**
147
135
  * Summary information about a Power Platform environment.
148
136
  */
@@ -200,7 +188,6 @@ export interface EnvironmentSummary {
200
188
  */
201
189
  version?: string;
202
190
  }
203
-
204
191
  /**
205
192
  * Summary information about a Cloud Flow.
206
193
  */
@@ -218,7 +205,6 @@ export interface FlowSummary {
218
205
  */
219
206
  name?: string;
220
207
  }
221
-
222
208
  /**
223
209
  * A rule set for a DLP policy, defining data loss prevention rules.
224
210
  */
@@ -230,10 +216,12 @@ export interface RuleSet {
230
216
  /**
231
217
  * The inputs for the rule set, which may vary based on the rule.
232
218
  */
233
- inputs?: {[key: string]: any};
219
+ inputs?: {
220
+ [key: string]: any;
221
+ };
234
222
  /**
235
223
  * The version of the rule set.
236
224
  */
237
225
  version?: string;
238
226
  }
239
-
227
+ //# sourceMappingURL=output.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"output.d.ts","sourceRoot":"","sources":["../../types/output.ts"],"names":[],"mappings":"AAOA;;GAEG;AACH,MAAM,WAAW,UAAU;IACvB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC7B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,SAAS;IACtB;;OAEG;IACH,yBAAyB,CAAC,EAAE,OAAO,CAAC;IACpC;;OAEG;IACH,0BAA0B,CAA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zB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IACxB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,OAAO;IACpB;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,MAAM,CAAC,EAAE;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAC,CAAC;IAC9B;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB"}
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ //# sourceMappingURL=output.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"output.js","sourceRoot":"","sources":["../../types/output.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF"}
@@ -0,0 +1,5 @@
1
+ export declare function getEnv(...vars: string[]): string | undefined;
2
+ export declare function getEnvBoolean(...vars: string[]): boolean | undefined;
3
+ export declare function getEnvNumber(...vars: string[]): number | undefined;
4
+ export declare function getVersion(): string;
5
+ //# sourceMappingURL=utilities.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utilities.d.ts","sourceRoot":"","sources":["../utilities.ts"],"names":[],"mappings":"AAOA,wBAAgB,MAAM,CAAC,GAAG,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,GAAG,SAAS,CAQ5D;AAED,wBAAgB,aAAa,CAAC,GAAG,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,GAAG,SAAS,CAapE;AAED,wBAAgB,YAAY,CAAC,GAAG,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,GAAG,SAAS,CASlE;AAED,wBAAgB,UAAU,IAAI,MAAM,CAQnC"}
@@ -1,11 +1,33 @@
1
+ "use strict";
1
2
  // *** WARNING: this file was generated by pulumi-language-nodejs. ***
2
3
  // *** Do not edit by hand unless you're certain you know what you are doing! ***
3
-
4
-
5
- import * as runtime from "@pulumi/pulumi/runtime";
6
- import * as pulumi from "@pulumi/pulumi";
7
-
8
- export function getEnv(...vars: string[]): string | undefined {
4
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
5
+ if (k2 === undefined) k2 = k;
6
+ var desc = Object.getOwnPropertyDescriptor(m, k);
7
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
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.callAsync = exports.lazyLoad = exports.resourceOptsDefaults = exports.getVersion = exports.getEnvNumber = exports.getEnvBoolean = exports.getEnv = void 0;
29
+ const runtime = __importStar(require("@pulumi/pulumi/runtime"));
30
+ function getEnv(...vars) {
9
31
  for (const v of vars) {
10
32
  const value = process.env[v];
11
33
  if (value) {
@@ -14,8 +36,8 @@ export function getEnv(...vars: string[]): string | undefined {
14
36
  }
15
37
  return undefined;
16
38
  }
17
-
18
- export function getEnvBoolean(...vars: string[]): boolean | undefined {
39
+ exports.getEnv = getEnv;
40
+ function getEnvBoolean(...vars) {
19
41
  const s = getEnv(...vars);
20
42
  if (s !== undefined) {
21
43
  // NOTE: these values are taken from https://golang.org/src/strconv/atob.go?s=351:391#L1, which is what
@@ -29,8 +51,8 @@ export function getEnvBoolean(...vars: string[]): boolean | undefined {
29
51
  }
30
52
  return undefined;
31
53
  }
32
-
33
- export function getEnvNumber(...vars: string[]): number | undefined {
54
+ exports.getEnvBoolean = getEnvBoolean;
55
+ function getEnvNumber(...vars) {
34
56
  const s = getEnv(...vars);
35
57
  if (s !== undefined) {
36
58
  const f = parseFloat(s);
@@ -40,8 +62,8 @@ export function getEnvNumber(...vars: string[]): number | undefined {
40
62
  }
41
63
  return undefined;
42
64
  }
43
-
44
- export function getVersion(): string {
65
+ exports.getEnvNumber = getEnvNumber;
66
+ function getVersion() {
45
67
  let version = require('./package.json').version;
46
68
  // Node allows for the version to be prefixed by a "v", while semver doesn't.
47
69
  // If there is a v, strip it off.
@@ -50,39 +72,33 @@ export function getVersion(): string {
50
72
  }
51
73
  return version;
52
74
  }
53
-
75
+ exports.getVersion = getVersion;
54
76
  /** @internal */
55
- export function resourceOptsDefaults(): any {
77
+ function resourceOptsDefaults() {
56
78
  return { version: getVersion(), pluginDownloadURL: "github://api.github.com/rpothin" };
57
79
  }
58
-
80
+ exports.resourceOptsDefaults = resourceOptsDefaults;
59
81
  /** @internal */
60
- export function lazyLoad(exports: any, props: string[], loadModule: any) {
82
+ function lazyLoad(exports, props, loadModule) {
61
83
  for (let property of props) {
62
84
  Object.defineProperty(exports, property, {
63
85
  enumerable: true,
64
- get: function() {
86
+ get: function () {
65
87
  return loadModule()[property];
66
88
  },
67
89
  });
68
90
  }
69
91
  }
70
-
92
+ exports.lazyLoad = lazyLoad;
71
93
  /** @internal */
72
- export async function callAsync<T>(
73
- tok: string,
74
- props: pulumi.Inputs,
75
- res?: pulumi.Resource,
76
- opts?: {property?: string},
77
- ): Promise<T> {
78
- const o: any = runtime.call<T>(tok, props, res);
94
+ async function callAsync(tok, props, res, opts) {
95
+ const o = runtime.call(tok, props, res);
79
96
  const value = await o.promise(true /*withUnknowns*/);
80
97
  const isKnown = await o.isKnown;
81
98
  const isSecret = await o.isSecret;
82
- const problem: string|undefined =
83
- !isKnown ? "an unknown value"
99
+ const problem = !isKnown ? "an unknown value"
84
100
  : isSecret ? "a secret value"
85
- : undefined;
101
+ : undefined;
86
102
  // Ingoring o.resources silently. They are typically non-empty, r.f() calls include r as a dependency.
87
103
  if (problem) {
88
104
  throw new Error(`Plain resource method "${tok}" incorrectly returned ${problem}. ` +
@@ -94,3 +110,5 @@ export async function callAsync<T>(
94
110
  }
95
111
  return value;
96
112
  }
113
+ exports.callAsync = callAsync;
114
+ //# sourceMappingURL=utilities.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utilities.js","sourceRoot":"","sources":["../utilities.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAGjF,gEAAkD;AAGlD,SAAgB,MAAM,CAAC,GAAG,IAAc;IACpC,KAAK,MAAM,CAAC,IAAI,IAAI,EAAE;QAClB,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;QAC7B,IAAI,KAAK,EAAE;YACP,OAAO,KAAK,CAAC;SAChB;KACJ;IACD,OAAO,SAAS,CAAC;AACrB,CAAC;AARD,wBAQC;AAED,SAAgB,aAAa,CAAC,GAAG,IAAc;IAC3C,MAAM,CAAC,GAAG,MAAM,CAAC,GAAG,IAAI,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CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rpothin/powerplatform",
3
- "version": "0.1.42",
3
+ "version": "0.2.0",
4
4
  "keywords": [
5
5
  "category/cloud",
6
6
  "kind/native"
@@ -8,6 +8,11 @@
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
+ ],
11
16
  "scripts": {
12
17
  "build": "tsc"
13
18
  },
package/.gitattributes DELETED
@@ -1 +0,0 @@
1
- * linguist-generated
package/config/vars.ts DELETED
@@ -1,42 +0,0 @@
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
-
package/environment.ts DELETED
@@ -1,245 +0,0 @@
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
- }
package/getApps.ts DELETED
@@ -1,47 +0,0 @@
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
- * Lists Power Apps in a Power Platform environment.
11
- */
12
- export function getApps(args: GetAppsArgs, opts?: pulumi.InvokeOptions): Promise<GetAppsResult> {
13
- opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
14
- return pulumi.runtime.invoke("powerplatform:index:getApps", {
15
- "environmentId": args.environmentId,
16
- }, opts);
17
- }
18
-
19
- export interface GetAppsArgs {
20
- /**
21
- * The ID of the environment to list apps for.
22
- */
23
- environmentId: string;
24
- }
25
-
26
- export interface GetAppsResult {
27
- /**
28
- * The list of Power Apps.
29
- */
30
- readonly apps: outputs.AppSummary[];
31
- }
32
- /**
33
- * Lists Power Apps in a Power Platform environment.
34
- */
35
- export function getAppsOutput(args: GetAppsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetAppsResult> {
36
- opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
37
- return pulumi.runtime.invokeOutput("powerplatform:index:getApps", {
38
- "environmentId": args.environmentId,
39
- }, opts);
40
- }
41
-
42
- export interface GetAppsOutputArgs {
43
- /**
44
- * The ID of the environment to list apps for.
45
- */
46
- environmentId: pulumi.Input<string>;
47
- }
package/getConnectors.ts DELETED
@@ -1,47 +0,0 @@
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
- * Lists connectors available in a Power Platform environment.
11
- */
12
- export function getConnectors(args: GetConnectorsArgs, opts?: pulumi.InvokeOptions): Promise<GetConnectorsResult> {
13
- opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
14
- return pulumi.runtime.invoke("powerplatform:index:getConnectors", {
15
- "environmentId": args.environmentId,
16
- }, opts);
17
- }
18
-
19
- export interface GetConnectorsArgs {
20
- /**
21
- * The ID of the environment to list connectors for.
22
- */
23
- environmentId: string;
24
- }
25
-
26
- export interface GetConnectorsResult {
27
- /**
28
- * The list of connectors.
29
- */
30
- readonly connectors: outputs.ConnectorSummary[];
31
- }
32
- /**
33
- * Lists connectors available in a Power Platform environment.
34
- */
35
- export function getConnectorsOutput(args: GetConnectorsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetConnectorsResult> {
36
- opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
37
- return pulumi.runtime.invokeOutput("powerplatform:index:getConnectors", {
38
- "environmentId": args.environmentId,
39
- }, opts);
40
- }
41
-
42
- export interface GetConnectorsOutputArgs {
43
- /**
44
- * The ID of the environment to list connectors for.
45
- */
46
- environmentId: pulumi.Input<string>;
47
- }