@rpothin/powerplatform 0.1.33 → 0.1.34

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 (97) hide show
  1. package/.gitattributes +1 -0
  2. package/{bin/billingPolicy.js → billingPolicy.ts} +64 -39
  3. package/{bin/types/input.js → config/index.ts} +3 -3
  4. package/config/vars.ts +42 -0
  5. package/{bin/dlpPolicy.js → dlpPolicy.ts} +52 -39
  6. package/environment.ts +245 -0
  7. package/{bin/environmentBackup.js → environmentBackup.ts} +46 -39
  8. package/{bin/environmentGroup.js → environmentGroup.ts} +54 -39
  9. package/{bin/environmentSettings.js → environmentSettings.ts} +70 -39
  10. package/getApps.ts +47 -0
  11. package/getConnectors.ts +47 -0
  12. package/{bin/getEnvironments.d.ts → getEnvironments.ts} +25 -3
  13. package/getFlows.ts +47 -0
  14. package/index.ts +124 -0
  15. package/{bin/isvContract.js → isvContract.ts} +54 -39
  16. package/{bin/managedEnvironment.js → managedEnvironment.ts} +34 -39
  17. package/package.json +2 -7
  18. package/provider.ts +44 -0
  19. package/{bin/roleAssignment.js → roleAssignment.ts} +58 -39
  20. package/tsconfig.json +44 -0
  21. package/types/index.ts +13 -0
  22. package/types/input.ts +122 -0
  23. package/{bin/types/output.d.ts → types/output.ts} +94 -4
  24. package/{bin/utilities.js → utilities.ts} +28 -46
  25. package/bin/billingPolicy.d.ts +0 -76
  26. package/bin/billingPolicy.d.ts.map +0 -1
  27. package/bin/billingPolicy.js.map +0 -1
  28. package/bin/config/index.d.ts +0 -2
  29. package/bin/config/index.d.ts.map +0 -1
  30. package/bin/config/index.js +0 -21
  31. package/bin/config/index.js.map +0 -1
  32. package/bin/config/vars.d.ts +0 -13
  33. package/bin/config/vars.d.ts.map +0 -1
  34. package/bin/config/vars.js +0 -48
  35. package/bin/config/vars.js.map +0 -1
  36. package/bin/dlpPolicy.d.ts +0 -64
  37. package/bin/dlpPolicy.d.ts.map +0 -1
  38. package/bin/dlpPolicy.js.map +0 -1
  39. package/bin/environment.d.ts +0 -106
  40. package/bin/environment.d.ts.map +0 -1
  41. package/bin/environment.js +0 -108
  42. package/bin/environment.js.map +0 -1
  43. package/bin/environmentBackup.d.ts +0 -58
  44. package/bin/environmentBackup.d.ts.map +0 -1
  45. package/bin/environmentBackup.js.map +0 -1
  46. package/bin/environmentGroup.d.ts +0 -66
  47. package/bin/environmentGroup.d.ts.map +0 -1
  48. package/bin/environmentGroup.js.map +0 -1
  49. package/bin/environmentSettings.d.ts +0 -82
  50. package/bin/environmentSettings.d.ts.map +0 -1
  51. package/bin/environmentSettings.js.map +0 -1
  52. package/bin/getApps.d.ts +0 -29
  53. package/bin/getApps.d.ts.map +0 -1
  54. package/bin/getApps.js +0 -51
  55. package/bin/getApps.js.map +0 -1
  56. package/bin/getConnectors.d.ts +0 -29
  57. package/bin/getConnectors.d.ts.map +0 -1
  58. package/bin/getConnectors.js +0 -51
  59. package/bin/getConnectors.js.map +0 -1
  60. package/bin/getEnvironments.d.ts.map +0 -1
  61. package/bin/getEnvironments.js +0 -55
  62. package/bin/getEnvironments.js.map +0 -1
  63. package/bin/getFlows.d.ts +0 -29
  64. package/bin/getFlows.d.ts.map +0 -1
  65. package/bin/getFlows.js +0 -51
  66. package/bin/getFlows.js.map +0 -1
  67. package/bin/index.d.ts +0 -46
  68. package/bin/index.d.ts.map +0 -1
  69. package/bin/index.js +0 -105
  70. package/bin/index.js.map +0 -1
  71. package/bin/isvContract.d.ts +0 -66
  72. package/bin/isvContract.d.ts.map +0 -1
  73. package/bin/isvContract.js.map +0 -1
  74. package/bin/managedEnvironment.d.ts +0 -46
  75. package/bin/managedEnvironment.d.ts.map +0 -1
  76. package/bin/managedEnvironment.js.map +0 -1
  77. package/bin/package.json +0 -31
  78. package/bin/provider.d.ts +0 -22
  79. package/bin/provider.d.ts.map +0 -1
  80. package/bin/provider.js +0 -61
  81. package/bin/provider.js.map +0 -1
  82. package/bin/roleAssignment.d.ts +0 -70
  83. package/bin/roleAssignment.d.ts.map +0 -1
  84. package/bin/roleAssignment.js.map +0 -1
  85. package/bin/types/index.d.ts +0 -4
  86. package/bin/types/index.d.ts.map +0 -1
  87. package/bin/types/index.js +0 -34
  88. package/bin/types/index.js.map +0 -1
  89. package/bin/types/input.d.ts +0 -38
  90. package/bin/types/input.d.ts.map +0 -1
  91. package/bin/types/input.js.map +0 -1
  92. package/bin/types/output.d.ts.map +0 -1
  93. package/bin/types/output.js +0 -5
  94. package/bin/types/output.js.map +0 -1
  95. package/bin/utilities.d.ts +0 -5
  96. package/bin/utilities.d.ts.map +0 -1
  97. package/bin/utilities.js.map +0 -1
@@ -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
- 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.EnvironmentBackup = 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
  * Creates a manual backup of a Power Platform environment. Backups are immutable — any change to inputs triggers replacement.
33
9
  */
34
- class EnvironmentBackup extends pulumi.CustomResource {
10
+ export class EnvironmentBackup extends pulumi.CustomResource {
35
11
  /**
36
12
  * Get an existing EnvironmentBackup resource's state with the given name, ID, and optional extra
37
13
  * properties used to qualify the lookup.
@@ -40,21 +16,41 @@ class EnvironmentBackup 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, opts) {
44
- return new EnvironmentBackup(name, undefined, { ...opts, id: id });
19
+ public static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): EnvironmentBackup {
20
+ return new EnvironmentBackup(name, undefined as any, { ...opts, id: id });
45
21
  }
22
+
46
23
  /** @internal */
47
- static __pulumiType = 'powerplatform:index:EnvironmentBackup';
24
+ public static readonly __pulumiType = 'powerplatform:index:EnvironmentBackup';
25
+
48
26
  /**
49
27
  * Returns true if the given object is an instance of EnvironmentBackup. 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 EnvironmentBackup {
53
31
  if (obj === undefined || obj === null) {
54
32
  return false;
55
33
  }
56
34
  return obj['__pulumiType'] === EnvironmentBackup.__pulumiType;
57
35
  }
36
+
37
+ /**
38
+ * The date and time when the backup expires.
39
+ */
40
+ declare public /*out*/ readonly backupExpiryDateTime: pulumi.Output<string | undefined>;
41
+ /**
42
+ * The date and time when the backup was created.
43
+ */
44
+ declare public /*out*/ readonly backupPointDateTime: pulumi.Output<string | undefined>;
45
+ /**
46
+ * The ID of the backed-up environment.
47
+ */
48
+ declare public readonly environmentId: pulumi.Output<string>;
49
+ /**
50
+ * The label for the backup.
51
+ */
52
+ declare public readonly label: pulumi.Output<string>;
53
+
58
54
  /**
59
55
  * Create a EnvironmentBackup resource with the given unique name, arguments, and options.
60
56
  *
@@ -62,8 +58,8 @@ class EnvironmentBackup extends pulumi.CustomResource {
62
58
  * @param args The arguments to use to populate this resource's properties.
63
59
  * @param opts A bag of options that control this resource's behavior.
64
60
  */
65
- constructor(name, args, opts) {
66
- let resourceInputs = {};
61
+ constructor(name: string, args: EnvironmentBackupArgs, opts?: pulumi.CustomResourceOptions) {
62
+ let resourceInputs: pulumi.Inputs = {};
67
63
  opts = opts || {};
68
64
  if (!opts.id) {
69
65
  if (args?.environmentId === undefined && !opts.urn) {
@@ -76,8 +72,7 @@ class EnvironmentBackup extends pulumi.CustomResource {
76
72
  resourceInputs["label"] = args?.label;
77
73
  resourceInputs["backupExpiryDateTime"] = undefined /*out*/;
78
74
  resourceInputs["backupPointDateTime"] = undefined /*out*/;
79
- }
80
- else {
75
+ } else {
81
76
  resourceInputs["backupExpiryDateTime"] = undefined /*out*/;
82
77
  resourceInputs["backupPointDateTime"] = undefined /*out*/;
83
78
  resourceInputs["environmentId"] = undefined /*out*/;
@@ -87,5 +82,17 @@ class EnvironmentBackup extends pulumi.CustomResource {
87
82
  super(EnvironmentBackup.__pulumiType, name, resourceInputs, opts);
88
83
  }
89
84
  }
90
- exports.EnvironmentBackup = EnvironmentBackup;
91
- //# sourceMappingURL=environmentBackup.js.map
85
+
86
+ /**
87
+ * The set of arguments for constructing a EnvironmentBackup resource.
88
+ */
89
+ export interface EnvironmentBackupArgs {
90
+ /**
91
+ * The ID of the environment to back up.
92
+ */
93
+ environmentId: pulumi.Input<string>;
94
+ /**
95
+ * A descriptive label for the backup.
96
+ */
97
+ label: pulumi.Input<string>;
98
+ }
@@ -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
- 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.EnvironmentGroup = 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 a Power Platform environment group. Environment groups allow you to organize environments and apply policies at a group level.
33
9
  */
34
- class EnvironmentGroup extends pulumi.CustomResource {
10
+ export class EnvironmentGroup extends pulumi.CustomResource {
35
11
  /**
36
12
  * Get an existing EnvironmentGroup resource's state with the given name, ID, and optional extra
37
13
  * properties used to qualify the lookup.
@@ -40,21 +16,45 @@ class EnvironmentGroup 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, opts) {
44
- return new EnvironmentGroup(name, undefined, { ...opts, id: id });
19
+ public static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): EnvironmentGroup {
20
+ return new EnvironmentGroup(name, undefined as any, { ...opts, id: id });
45
21
  }
22
+
46
23
  /** @internal */
47
- static __pulumiType = 'powerplatform:index:EnvironmentGroup';
24
+ public static readonly __pulumiType = 'powerplatform:index:EnvironmentGroup';
25
+
48
26
  /**
49
27
  * Returns true if the given object is an instance of EnvironmentGroup. 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 EnvironmentGroup {
53
31
  if (obj === undefined || obj === null) {
54
32
  return false;
55
33
  }
56
34
  return obj['__pulumiType'] === EnvironmentGroup.__pulumiType;
57
35
  }
36
+
37
+ /**
38
+ * The timestamp when the group was created.
39
+ */
40
+ declare public /*out*/ readonly createdTime: pulumi.Output<string | undefined>;
41
+ /**
42
+ * The description of the environment group.
43
+ */
44
+ declare public readonly description: pulumi.Output<string | undefined>;
45
+ /**
46
+ * The display name of the environment group.
47
+ */
48
+ declare public readonly displayName: pulumi.Output<string>;
49
+ /**
50
+ * The timestamp when the group was last modified.
51
+ */
52
+ declare public /*out*/ readonly lastModifiedTime: pulumi.Output<string | undefined>;
53
+ /**
54
+ * The ID of the parent environment group.
55
+ */
56
+ declare public readonly parentGroupId: pulumi.Output<string | undefined>;
57
+
58
58
  /**
59
59
  * Create a EnvironmentGroup resource with the given unique name, arguments, and options.
60
60
  *
@@ -62,8 +62,8 @@ class EnvironmentGroup 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: EnvironmentGroupArgs, opts?: pulumi.CustomResourceOptions) {
66
+ let resourceInputs: pulumi.Inputs = {};
67
67
  opts = opts || {};
68
68
  if (!opts.id) {
69
69
  if (args?.displayName === undefined && !opts.urn) {
@@ -74,8 +74,7 @@ class EnvironmentGroup extends pulumi.CustomResource {
74
74
  resourceInputs["parentGroupId"] = args?.parentGroupId;
75
75
  resourceInputs["createdTime"] = undefined /*out*/;
76
76
  resourceInputs["lastModifiedTime"] = undefined /*out*/;
77
- }
78
- else {
77
+ } else {
79
78
  resourceInputs["createdTime"] = undefined /*out*/;
80
79
  resourceInputs["description"] = undefined /*out*/;
81
80
  resourceInputs["displayName"] = undefined /*out*/;
@@ -86,5 +85,21 @@ class EnvironmentGroup extends pulumi.CustomResource {
86
85
  super(EnvironmentGroup.__pulumiType, name, resourceInputs, opts);
87
86
  }
88
87
  }
89
- exports.EnvironmentGroup = EnvironmentGroup;
90
- //# sourceMappingURL=environmentGroup.js.map
88
+
89
+ /**
90
+ * The set of arguments for constructing a EnvironmentGroup resource.
91
+ */
92
+ export interface EnvironmentGroupArgs {
93
+ /**
94
+ * A description of the environment group.
95
+ */
96
+ description?: pulumi.Input<string>;
97
+ /**
98
+ * The display name for the environment group.
99
+ */
100
+ displayName: pulumi.Input<string>;
101
+ /**
102
+ * The ID of the parent environment group, if this is a nested group.
103
+ */
104
+ parentGroupId?: pulumi.Input<string>;
105
+ }
@@ -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
- 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.EnvironmentSettings = 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 settings on a Power Platform environment. Settings are applied via PATCH to the BAP admin API. Deletion removes the resource from Pulumi state only (settings cannot be unset).
33
9
  */
34
- class EnvironmentSettings extends pulumi.CustomResource {
10
+ export class EnvironmentSettings extends pulumi.CustomResource {
35
11
  /**
36
12
  * Get an existing EnvironmentSettings resource's state with the given name, ID, and optional extra
37
13
  * properties used to qualify the lookup.
@@ -40,21 +16,49 @@ class EnvironmentSettings 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, opts) {
44
- return new EnvironmentSettings(name, undefined, { ...opts, id: id });
19
+ public static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): EnvironmentSettings {
20
+ return new EnvironmentSettings(name, undefined as any, { ...opts, id: id });
45
21
  }
22
+
46
23
  /** @internal */
47
- static __pulumiType = 'powerplatform:index:EnvironmentSettings';
24
+ public static readonly __pulumiType = 'powerplatform:index:EnvironmentSettings';
25
+
48
26
  /**
49
27
  * Returns true if the given object is an instance of EnvironmentSettings. 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 EnvironmentSettings {
53
31
  if (obj === undefined || obj === null) {
54
32
  return false;
55
33
  }
56
34
  return obj['__pulumiType'] === EnvironmentSettings.__pulumiType;
57
35
  }
36
+
37
+ /**
38
+ * The ID of the environment.
39
+ */
40
+ declare public readonly environmentId: pulumi.Output<string>;
41
+ /**
42
+ * Whether activity logging is enabled.
43
+ */
44
+ declare public readonly isActivityLoggingEnabled: pulumi.Output<string | undefined>;
45
+ /**
46
+ * Whether auditing is enabled.
47
+ */
48
+ declare public readonly isAuditEnabled: pulumi.Output<string | undefined>;
49
+ /**
50
+ * Whether user access auditing is enabled.
51
+ */
52
+ declare public readonly isUserAccessAuditEnabled: pulumi.Output<string | undefined>;
53
+ /**
54
+ * Maximum file upload size in bytes.
55
+ */
56
+ declare public readonly maxUploadFileSize: pulumi.Output<string | undefined>;
57
+ /**
58
+ * Plugin trace log setting.
59
+ */
60
+ declare public readonly pluginTraceLogSetting: pulumi.Output<string | undefined>;
61
+
58
62
  /**
59
63
  * Create a EnvironmentSettings resource with the given unique name, arguments, and options.
60
64
  *
@@ -62,8 +66,8 @@ class EnvironmentSettings extends pulumi.CustomResource {
62
66
  * @param args The arguments to use to populate this resource's properties.
63
67
  * @param opts A bag of options that control this resource's behavior.
64
68
  */
65
- constructor(name, args, opts) {
66
- let resourceInputs = {};
69
+ constructor(name: string, args: EnvironmentSettingsArgs, opts?: pulumi.CustomResourceOptions) {
70
+ let resourceInputs: pulumi.Inputs = {};
67
71
  opts = opts || {};
68
72
  if (!opts.id) {
69
73
  if (args?.environmentId === undefined && !opts.urn) {
@@ -75,8 +79,7 @@ class EnvironmentSettings extends pulumi.CustomResource {
75
79
  resourceInputs["isUserAccessAuditEnabled"] = args?.isUserAccessAuditEnabled;
76
80
  resourceInputs["maxUploadFileSize"] = args?.maxUploadFileSize;
77
81
  resourceInputs["pluginTraceLogSetting"] = args?.pluginTraceLogSetting;
78
- }
79
- else {
82
+ } else {
80
83
  resourceInputs["environmentId"] = undefined /*out*/;
81
84
  resourceInputs["isActivityLoggingEnabled"] = undefined /*out*/;
82
85
  resourceInputs["isAuditEnabled"] = undefined /*out*/;
@@ -88,5 +91,33 @@ class EnvironmentSettings extends pulumi.CustomResource {
88
91
  super(EnvironmentSettings.__pulumiType, name, resourceInputs, opts);
89
92
  }
90
93
  }
91
- exports.EnvironmentSettings = EnvironmentSettings;
92
- //# sourceMappingURL=environmentSettings.js.map
94
+
95
+ /**
96
+ * The set of arguments for constructing a EnvironmentSettings resource.
97
+ */
98
+ export interface EnvironmentSettingsArgs {
99
+ /**
100
+ * The ID of the environment to manage settings for. Immutable after creation.
101
+ */
102
+ environmentId: pulumi.Input<string>;
103
+ /**
104
+ * Whether activity logging is enabled (true or false).
105
+ */
106
+ isActivityLoggingEnabled?: pulumi.Input<string>;
107
+ /**
108
+ * Whether auditing is enabled (true or false).
109
+ */
110
+ isAuditEnabled?: pulumi.Input<string>;
111
+ /**
112
+ * Whether user access auditing is enabled (true or false).
113
+ */
114
+ isUserAccessAuditEnabled?: pulumi.Input<string>;
115
+ /**
116
+ * Maximum file upload size in bytes.
117
+ */
118
+ maxUploadFileSize?: pulumi.Input<string>;
119
+ /**
120
+ * Plugin trace log setting (Off, Exception, All).
121
+ */
122
+ pluginTraceLogSetting?: pulumi.Input<string>;
123
+ }
package/getApps.ts ADDED
@@ -0,0 +1,47 @@
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
+ }
@@ -0,0 +1,47 @@
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
+ }
@@ -1,9 +1,23 @@
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
+
1
4
  import * as pulumi from "@pulumi/pulumi";
5
+ import * as inputs from "./types/input";
2
6
  import * as outputs from "./types/output";
7
+ import * as utilities from "./utilities";
8
+
3
9
  /**
4
10
  * Retrieves a list of Power Platform environments available for the authenticated user.
5
11
  */
6
- export declare function getEnvironments(args?: GetEnvironmentsArgs, opts?: pulumi.InvokeOptions): Promise<GetEnvironmentsResult>;
12
+ export function getEnvironments(args?: GetEnvironmentsArgs, opts?: pulumi.InvokeOptions): Promise<GetEnvironmentsResult> {
13
+ args = args || {};
14
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
15
+ return pulumi.runtime.invoke("powerplatform:index:getEnvironments", {
16
+ "filter": args.filter,
17
+ "top": args.top,
18
+ }, opts);
19
+ }
20
+
7
21
  export interface GetEnvironmentsArgs {
8
22
  /**
9
23
  * An OData filter expression. Supported properties: dataverseId, type, geo, state, environmentGroupId, domainName.
@@ -14,6 +28,7 @@ export interface GetEnvironmentsArgs {
14
28
  */
15
29
  top?: number;
16
30
  }
31
+
17
32
  export interface GetEnvironmentsResult {
18
33
  /**
19
34
  * The list of environments.
@@ -23,7 +38,15 @@ export interface GetEnvironmentsResult {
23
38
  /**
24
39
  * Retrieves a list of Power Platform environments available for the authenticated user.
25
40
  */
26
- export declare function getEnvironmentsOutput(args?: GetEnvironmentsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetEnvironmentsResult>;
41
+ export function getEnvironmentsOutput(args?: GetEnvironmentsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetEnvironmentsResult> {
42
+ args = args || {};
43
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
44
+ return pulumi.runtime.invokeOutput("powerplatform:index:getEnvironments", {
45
+ "filter": args.filter,
46
+ "top": args.top,
47
+ }, opts);
48
+ }
49
+
27
50
  export interface GetEnvironmentsOutputArgs {
28
51
  /**
29
52
  * An OData filter expression. Supported properties: dataverseId, type, geo, state, environmentGroupId, domainName.
@@ -34,4 +57,3 @@ export interface GetEnvironmentsOutputArgs {
34
57
  */
35
58
  top?: pulumi.Input<number>;
36
59
  }
37
- //# sourceMappingURL=getEnvironments.d.ts.map
package/getFlows.ts ADDED
@@ -0,0 +1,47 @@
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 Cloud Flows in a Power Platform environment.
11
+ */
12
+ export function getFlows(args: GetFlowsArgs, opts?: pulumi.InvokeOptions): Promise<GetFlowsResult> {
13
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
14
+ return pulumi.runtime.invoke("powerplatform:index:getFlows", {
15
+ "environmentId": args.environmentId,
16
+ }, opts);
17
+ }
18
+
19
+ export interface GetFlowsArgs {
20
+ /**
21
+ * The ID of the environment to list flows for.
22
+ */
23
+ environmentId: string;
24
+ }
25
+
26
+ export interface GetFlowsResult {
27
+ /**
28
+ * The list of Cloud Flows.
29
+ */
30
+ readonly flows: outputs.FlowSummary[];
31
+ }
32
+ /**
33
+ * Lists Cloud Flows in a Power Platform environment.
34
+ */
35
+ export function getFlowsOutput(args: GetFlowsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetFlowsResult> {
36
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
37
+ return pulumi.runtime.invokeOutput("powerplatform:index:getFlows", {
38
+ "environmentId": args.environmentId,
39
+ }, opts);
40
+ }
41
+
42
+ export interface GetFlowsOutputArgs {
43
+ /**
44
+ * The ID of the environment to list flows for.
45
+ */
46
+ environmentId: pulumi.Input<string>;
47
+ }