@rpothin/powerplatform 0.1.1

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.
@@ -0,0 +1,123 @@
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
+ /**
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).
9
+ */
10
+ export class EnvironmentSettings extends pulumi.CustomResource {
11
+ /**
12
+ * Get an existing EnvironmentSettings resource's state with the given name, ID, and optional extra
13
+ * properties used to qualify the lookup.
14
+ *
15
+ * @param name The _unique_ name of the resulting resource.
16
+ * @param id The _unique_ provider ID of the resource to lookup.
17
+ * @param opts Optional settings to control the behavior of the CustomResource.
18
+ */
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 });
21
+ }
22
+
23
+ /** @internal */
24
+ public static readonly __pulumiType = 'powerplatform:index:EnvironmentSettings';
25
+
26
+ /**
27
+ * Returns true if the given object is an instance of EnvironmentSettings. This is designed to work even
28
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
29
+ */
30
+ public static isInstance(obj: any): obj is EnvironmentSettings {
31
+ if (obj === undefined || obj === null) {
32
+ return false;
33
+ }
34
+ return obj['__pulumiType'] === EnvironmentSettings.__pulumiType;
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
+
62
+ /**
63
+ * Create a EnvironmentSettings resource with the given unique name, arguments, and options.
64
+ *
65
+ * @param name The _unique_ name of the resource.
66
+ * @param args The arguments to use to populate this resource's properties.
67
+ * @param opts A bag of options that control this resource's behavior.
68
+ */
69
+ constructor(name: string, args: EnvironmentSettingsArgs, opts?: pulumi.CustomResourceOptions) {
70
+ let resourceInputs: pulumi.Inputs = {};
71
+ opts = opts || {};
72
+ if (!opts.id) {
73
+ if (args?.environmentId === undefined && !opts.urn) {
74
+ throw new Error("Missing required property 'environmentId'");
75
+ }
76
+ resourceInputs["environmentId"] = args?.environmentId;
77
+ resourceInputs["isActivityLoggingEnabled"] = args?.isActivityLoggingEnabled;
78
+ resourceInputs["isAuditEnabled"] = args?.isAuditEnabled;
79
+ resourceInputs["isUserAccessAuditEnabled"] = args?.isUserAccessAuditEnabled;
80
+ resourceInputs["maxUploadFileSize"] = args?.maxUploadFileSize;
81
+ resourceInputs["pluginTraceLogSetting"] = args?.pluginTraceLogSetting;
82
+ } else {
83
+ resourceInputs["environmentId"] = undefined /*out*/;
84
+ resourceInputs["isActivityLoggingEnabled"] = undefined /*out*/;
85
+ resourceInputs["isAuditEnabled"] = undefined /*out*/;
86
+ resourceInputs["isUserAccessAuditEnabled"] = undefined /*out*/;
87
+ resourceInputs["maxUploadFileSize"] = undefined /*out*/;
88
+ resourceInputs["pluginTraceLogSetting"] = undefined /*out*/;
89
+ }
90
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
91
+ super(EnvironmentSettings.__pulumiType, name, resourceInputs, opts);
92
+ }
93
+ }
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
+ }
@@ -0,0 +1,59 @@
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
+ * Retrieves a list of Power Platform environments available for the authenticated user.
11
+ */
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
+
21
+ export interface GetEnvironmentsArgs {
22
+ /**
23
+ * An OData filter expression. Supported properties: dataverseId, type, geo, state, environmentGroupId, domainName.
24
+ */
25
+ filter?: string;
26
+ /**
27
+ * Maximum number of environments to return.
28
+ */
29
+ top?: number;
30
+ }
31
+
32
+ export interface GetEnvironmentsResult {
33
+ /**
34
+ * The list of environments.
35
+ */
36
+ readonly environments: outputs.EnvironmentSummary[];
37
+ }
38
+ /**
39
+ * Retrieves a list of Power Platform environments available for the authenticated user.
40
+ */
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
+
50
+ export interface GetEnvironmentsOutputArgs {
51
+ /**
52
+ * An OData filter expression. Supported properties: dataverseId, type, geo, state, environmentGroupId, domainName.
53
+ */
54
+ filter?: pulumi.Input<string>;
55
+ /**
56
+ * Maximum number of environments to return.
57
+ */
58
+ top?: pulumi.Input<number>;
59
+ }
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
+ }
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
+ });
package/isvContract.ts ADDED
@@ -0,0 +1,108 @@
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
+ /**
8
+ * Manages an ISV (Independent Software Vendor) contract for Power Platform licensing.
9
+ */
10
+ export class IsvContract extends pulumi.CustomResource {
11
+ /**
12
+ * Get an existing IsvContract resource's state with the given name, ID, and optional extra
13
+ * properties used to qualify the lookup.
14
+ *
15
+ * @param name The _unique_ name of the resulting resource.
16
+ * @param id The _unique_ provider ID of the resource to lookup.
17
+ * @param opts Optional settings to control the behavior of the CustomResource.
18
+ */
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 });
21
+ }
22
+
23
+ /** @internal */
24
+ public static readonly __pulumiType = 'powerplatform:index:IsvContract';
25
+
26
+ /**
27
+ * Returns true if the given object is an instance of IsvContract. This is designed to work even
28
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
29
+ */
30
+ public static isInstance(obj: any): obj is IsvContract {
31
+ if (obj === undefined || obj === null) {
32
+ return false;
33
+ }
34
+ return obj['__pulumiType'] === IsvContract.__pulumiType;
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
+ /**
59
+ * Create a IsvContract resource with the given unique name, arguments, and options.
60
+ *
61
+ * @param name The _unique_ name of the resource.
62
+ * @param args The arguments to use to populate this resource's properties.
63
+ * @param opts A bag of options that control this resource's behavior.
64
+ */
65
+ constructor(name: string, args: IsvContractArgs, opts?: pulumi.CustomResourceOptions) {
66
+ let resourceInputs: pulumi.Inputs = {};
67
+ opts = opts || {};
68
+ if (!opts.id) {
69
+ if (args?.geo === undefined && !opts.urn) {
70
+ throw new Error("Missing required property 'geo'");
71
+ }
72
+ if (args?.name === undefined && !opts.urn) {
73
+ throw new Error("Missing required property 'name'");
74
+ }
75
+ resourceInputs["geo"] = args?.geo;
76
+ resourceInputs["name"] = args?.name;
77
+ resourceInputs["status"] = args?.status;
78
+ resourceInputs["createdOn"] = undefined /*out*/;
79
+ resourceInputs["lastModifiedOn"] = undefined /*out*/;
80
+ } else {
81
+ resourceInputs["createdOn"] = undefined /*out*/;
82
+ resourceInputs["geo"] = undefined /*out*/;
83
+ resourceInputs["lastModifiedOn"] = undefined /*out*/;
84
+ resourceInputs["name"] = undefined /*out*/;
85
+ resourceInputs["status"] = undefined /*out*/;
86
+ }
87
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
88
+ super(IsvContract.__pulumiType, name, resourceInputs, opts);
89
+ }
90
+ }
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
+ }
@@ -0,0 +1,79 @@
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
+ /**
8
+ * Enables managed environment governance on a Power Platform environment. Managed environments provide enhanced admin controls. Deleting this resource disables the managed environment setting.
9
+ */
10
+ export class ManagedEnvironment extends pulumi.CustomResource {
11
+ /**
12
+ * Get an existing ManagedEnvironment resource's state with the given name, ID, and optional extra
13
+ * properties used to qualify the lookup.
14
+ *
15
+ * @param name The _unique_ name of the resulting resource.
16
+ * @param id The _unique_ provider ID of the resource to lookup.
17
+ * @param opts Optional settings to control the behavior of the CustomResource.
18
+ */
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 });
21
+ }
22
+
23
+ /** @internal */
24
+ public static readonly __pulumiType = 'powerplatform:index:ManagedEnvironment';
25
+
26
+ /**
27
+ * Returns true if the given object is an instance of ManagedEnvironment. This is designed to work even
28
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
29
+ */
30
+ public static isInstance(obj: any): obj is ManagedEnvironment {
31
+ if (obj === undefined || obj === null) {
32
+ return false;
33
+ }
34
+ return obj['__pulumiType'] === ManagedEnvironment.__pulumiType;
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
+
46
+ /**
47
+ * Create a ManagedEnvironment resource with the given unique name, arguments, and options.
48
+ *
49
+ * @param name The _unique_ name of the resource.
50
+ * @param args The arguments to use to populate this resource's properties.
51
+ * @param opts A bag of options that control this resource's behavior.
52
+ */
53
+ constructor(name: string, args: ManagedEnvironmentArgs, opts?: pulumi.CustomResourceOptions) {
54
+ let resourceInputs: pulumi.Inputs = {};
55
+ opts = opts || {};
56
+ if (!opts.id) {
57
+ if (args?.environmentId === undefined && !opts.urn) {
58
+ throw new Error("Missing required property 'environmentId'");
59
+ }
60
+ resourceInputs["environmentId"] = args?.environmentId;
61
+ resourceInputs["enabled"] = undefined /*out*/;
62
+ } else {
63
+ resourceInputs["enabled"] = undefined /*out*/;
64
+ resourceInputs["environmentId"] = undefined /*out*/;
65
+ }
66
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
67
+ super(ManagedEnvironment.__pulumiType, name, resourceInputs, opts);
68
+ }
69
+ }
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 ADDED
@@ -0,0 +1,26 @@
1
+ {
2
+ "name": "@rpothin/powerplatform",
3
+ "version": "0.1.1",
4
+ "keywords": [
5
+ "category/cloud",
6
+ "kind/native"
7
+ ],
8
+ "homepage": "https://github.com/rpothin/pulumi-powerplatform",
9
+ "repository": "https://github.com/rpothin/pulumi-powerplatform",
10
+ "license": "MIT",
11
+ "scripts": {
12
+ "build": "tsc"
13
+ },
14
+ "dependencies": {
15
+ "@pulumi/pulumi": "^3.142.0"
16
+ },
17
+ "devDependencies": {
18
+ "@types/node": "^20",
19
+ "typescript": "^4.7.0"
20
+ },
21
+ "pulumi": {
22
+ "resource": true,
23
+ "name": "powerplatform",
24
+ "server": "github://api.github.com/rpothin"
25
+ }
26
+ }