@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.
- package/.gitattributes +1 -0
- package/README.md +1 -0
- package/billingPolicy.ts +120 -0
- package/config/index.ts +5 -0
- package/config/vars.ts +42 -0
- package/dlpPolicy.ts +103 -0
- package/environment.ts +163 -0
- package/environmentBackup.ts +98 -0
- package/environmentGroup.ts +105 -0
- package/environmentSettings.ts +123 -0
- package/getApps.ts +47 -0
- package/getConnectors.ts +47 -0
- package/getEnvironments.ts +59 -0
- package/getFlows.ts +47 -0
- package/index.ts +124 -0
- package/isvContract.ts +108 -0
- package/managedEnvironment.ts +79 -0
- package/package.json +26 -0
- package/provider.ts +44 -0
- package/roleAssignment.ts +115 -0
- package/tsconfig.json +44 -0
- package/types/index.ts +13 -0
- package/types/input.ts +42 -0
- package/types/output.ts +159 -0
- package/utilities.ts +96 -0
package/.gitattributes
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
* linguist-generated
|
package/README.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
A Pulumi provider for managing Microsoft Power Platform resources.
|
package/billingPolicy.ts
ADDED
|
@@ -0,0 +1,120 @@
|
|
|
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 billing policy. Billing policies control pay-as-you-go billing for Power Platform environments.
|
|
11
|
+
*/
|
|
12
|
+
export class BillingPolicy extends pulumi.CustomResource {
|
|
13
|
+
/**
|
|
14
|
+
* Get an existing BillingPolicy 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): BillingPolicy {
|
|
22
|
+
return new BillingPolicy(name, undefined as any, { ...opts, id: id });
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/** @internal */
|
|
26
|
+
public static readonly __pulumiType = 'powerplatform:index:BillingPolicy';
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Returns true if the given object is an instance of BillingPolicy. 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 BillingPolicy {
|
|
33
|
+
if (obj === undefined || obj === null) {
|
|
34
|
+
return false;
|
|
35
|
+
}
|
|
36
|
+
return obj['__pulumiType'] === BillingPolicy.__pulumiType;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* The billing instrument details.
|
|
41
|
+
*/
|
|
42
|
+
declare public readonly billingInstrument: pulumi.Output<outputs.BillingInstrument | undefined>;
|
|
43
|
+
/**
|
|
44
|
+
* The timestamp when the billing policy was created.
|
|
45
|
+
*/
|
|
46
|
+
declare public /*out*/ readonly createdOn: pulumi.Output<string | undefined>;
|
|
47
|
+
/**
|
|
48
|
+
* The timestamp when the billing policy was last modified.
|
|
49
|
+
*/
|
|
50
|
+
declare public /*out*/ readonly lastModifiedOn: pulumi.Output<string | undefined>;
|
|
51
|
+
/**
|
|
52
|
+
* The geographic location of the billing policy.
|
|
53
|
+
*/
|
|
54
|
+
declare public readonly location: pulumi.Output<string>;
|
|
55
|
+
/**
|
|
56
|
+
* The name of the billing policy.
|
|
57
|
+
*/
|
|
58
|
+
declare public readonly name: pulumi.Output<string>;
|
|
59
|
+
/**
|
|
60
|
+
* The status of the billing policy.
|
|
61
|
+
*/
|
|
62
|
+
declare public readonly status: pulumi.Output<string | undefined>;
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Create a BillingPolicy resource with the given unique name, arguments, and options.
|
|
66
|
+
*
|
|
67
|
+
* @param name The _unique_ name of the resource.
|
|
68
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
69
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
70
|
+
*/
|
|
71
|
+
constructor(name: string, args: BillingPolicyArgs, opts?: pulumi.CustomResourceOptions) {
|
|
72
|
+
let resourceInputs: pulumi.Inputs = {};
|
|
73
|
+
opts = opts || {};
|
|
74
|
+
if (!opts.id) {
|
|
75
|
+
if (args?.location === undefined && !opts.urn) {
|
|
76
|
+
throw new Error("Missing required property 'location'");
|
|
77
|
+
}
|
|
78
|
+
if (args?.name === undefined && !opts.urn) {
|
|
79
|
+
throw new Error("Missing required property 'name'");
|
|
80
|
+
}
|
|
81
|
+
resourceInputs["billingInstrument"] = args?.billingInstrument;
|
|
82
|
+
resourceInputs["location"] = args?.location;
|
|
83
|
+
resourceInputs["name"] = args?.name;
|
|
84
|
+
resourceInputs["status"] = args?.status;
|
|
85
|
+
resourceInputs["createdOn"] = undefined /*out*/;
|
|
86
|
+
resourceInputs["lastModifiedOn"] = undefined /*out*/;
|
|
87
|
+
} else {
|
|
88
|
+
resourceInputs["billingInstrument"] = undefined /*out*/;
|
|
89
|
+
resourceInputs["createdOn"] = undefined /*out*/;
|
|
90
|
+
resourceInputs["lastModifiedOn"] = undefined /*out*/;
|
|
91
|
+
resourceInputs["location"] = undefined /*out*/;
|
|
92
|
+
resourceInputs["name"] = undefined /*out*/;
|
|
93
|
+
resourceInputs["status"] = undefined /*out*/;
|
|
94
|
+
}
|
|
95
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
96
|
+
super(BillingPolicy.__pulumiType, name, resourceInputs, opts);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* The set of arguments for constructing a BillingPolicy resource.
|
|
102
|
+
*/
|
|
103
|
+
export interface BillingPolicyArgs {
|
|
104
|
+
/**
|
|
105
|
+
* The billing instrument (Azure subscription) details.
|
|
106
|
+
*/
|
|
107
|
+
billingInstrument?: pulumi.Input<inputs.BillingInstrumentArgs>;
|
|
108
|
+
/**
|
|
109
|
+
* The geographic location for the billing policy (e.g., unitedstates, europe).
|
|
110
|
+
*/
|
|
111
|
+
location: pulumi.Input<string>;
|
|
112
|
+
/**
|
|
113
|
+
* The name of the billing policy.
|
|
114
|
+
*/
|
|
115
|
+
name: pulumi.Input<string>;
|
|
116
|
+
/**
|
|
117
|
+
* The status of the billing policy: Enabled or Disabled.
|
|
118
|
+
*/
|
|
119
|
+
status?: pulumi.Input<string>;
|
|
120
|
+
}
|
package/config/index.ts
ADDED
package/config/vars.ts
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
2
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
3
|
+
|
|
4
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
5
|
+
import * as utilities from "../utilities";
|
|
6
|
+
|
|
7
|
+
declare var exports: any;
|
|
8
|
+
const __config = new pulumi.Config("powerplatform");
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* The Azure AD Application (Client) ID. Can also be set with the AZURE_CLIENT_ID environment variable.
|
|
12
|
+
*/
|
|
13
|
+
export declare const clientId: string | undefined;
|
|
14
|
+
Object.defineProperty(exports, "clientId", {
|
|
15
|
+
get() {
|
|
16
|
+
return __config.get("clientId");
|
|
17
|
+
},
|
|
18
|
+
enumerable: true,
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* The Azure AD Client Secret. Can also be set with the AZURE_CLIENT_SECRET environment variable.
|
|
23
|
+
*/
|
|
24
|
+
export declare const clientSecret: string | undefined;
|
|
25
|
+
Object.defineProperty(exports, "clientSecret", {
|
|
26
|
+
get() {
|
|
27
|
+
return __config.get("clientSecret");
|
|
28
|
+
},
|
|
29
|
+
enumerable: true,
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* The Azure AD Tenant ID for authenticating with Power Platform. Can also be set with the AZURE_TENANT_ID environment variable.
|
|
34
|
+
*/
|
|
35
|
+
export declare const tenantId: string | undefined;
|
|
36
|
+
Object.defineProperty(exports, "tenantId", {
|
|
37
|
+
get() {
|
|
38
|
+
return __config.get("tenantId");
|
|
39
|
+
},
|
|
40
|
+
enumerable: true,
|
|
41
|
+
});
|
|
42
|
+
|
package/dlpPolicy.ts
ADDED
|
@@ -0,0 +1,103 @@
|
|
|
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 Data Loss Prevention (DLP) policy. DLP policies define rules to control how connectors can share data. Note: Deletion removes all rule sets from the policy, as the SDK does not expose a direct policy delete endpoint.
|
|
11
|
+
*/
|
|
12
|
+
export class DlpPolicy extends pulumi.CustomResource {
|
|
13
|
+
/**
|
|
14
|
+
* Get an existing DlpPolicy 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): DlpPolicy {
|
|
22
|
+
return new DlpPolicy(name, undefined as any, { ...opts, id: id });
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/** @internal */
|
|
26
|
+
public static readonly __pulumiType = 'powerplatform:index:DlpPolicy';
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Returns true if the given object is an instance of DlpPolicy. 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 DlpPolicy {
|
|
33
|
+
if (obj === undefined || obj === null) {
|
|
34
|
+
return false;
|
|
35
|
+
}
|
|
36
|
+
return obj['__pulumiType'] === DlpPolicy.__pulumiType;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* The timestamp when the policy was last modified.
|
|
41
|
+
*/
|
|
42
|
+
declare public /*out*/ readonly lastModified: pulumi.Output<string | undefined>;
|
|
43
|
+
/**
|
|
44
|
+
* The name of the DLP policy.
|
|
45
|
+
*/
|
|
46
|
+
declare public readonly name: pulumi.Output<string>;
|
|
47
|
+
/**
|
|
48
|
+
* The number of rule sets in the policy.
|
|
49
|
+
*/
|
|
50
|
+
declare public /*out*/ readonly ruleSetCount: pulumi.Output<number | undefined>;
|
|
51
|
+
/**
|
|
52
|
+
* The rule sets that define the DLP policy rules.
|
|
53
|
+
*/
|
|
54
|
+
declare public readonly ruleSets: pulumi.Output<outputs.RuleSet[] | undefined>;
|
|
55
|
+
/**
|
|
56
|
+
* The tenant ID that owns the policy.
|
|
57
|
+
*/
|
|
58
|
+
declare public /*out*/ readonly tenantId: pulumi.Output<string | undefined>;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Create a DlpPolicy resource with the given unique name, arguments, and options.
|
|
62
|
+
*
|
|
63
|
+
* @param name The _unique_ name of the resource.
|
|
64
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
65
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
66
|
+
*/
|
|
67
|
+
constructor(name: string, args: DlpPolicyArgs, opts?: pulumi.CustomResourceOptions) {
|
|
68
|
+
let resourceInputs: pulumi.Inputs = {};
|
|
69
|
+
opts = opts || {};
|
|
70
|
+
if (!opts.id) {
|
|
71
|
+
if (args?.name === undefined && !opts.urn) {
|
|
72
|
+
throw new Error("Missing required property 'name'");
|
|
73
|
+
}
|
|
74
|
+
resourceInputs["name"] = args?.name;
|
|
75
|
+
resourceInputs["ruleSets"] = args?.ruleSets;
|
|
76
|
+
resourceInputs["lastModified"] = undefined /*out*/;
|
|
77
|
+
resourceInputs["ruleSetCount"] = undefined /*out*/;
|
|
78
|
+
resourceInputs["tenantId"] = undefined /*out*/;
|
|
79
|
+
} else {
|
|
80
|
+
resourceInputs["lastModified"] = undefined /*out*/;
|
|
81
|
+
resourceInputs["name"] = undefined /*out*/;
|
|
82
|
+
resourceInputs["ruleSetCount"] = undefined /*out*/;
|
|
83
|
+
resourceInputs["ruleSets"] = undefined /*out*/;
|
|
84
|
+
resourceInputs["tenantId"] = undefined /*out*/;
|
|
85
|
+
}
|
|
86
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
87
|
+
super(DlpPolicy.__pulumiType, name, resourceInputs, opts);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* The set of arguments for constructing a DlpPolicy resource.
|
|
93
|
+
*/
|
|
94
|
+
export interface DlpPolicyArgs {
|
|
95
|
+
/**
|
|
96
|
+
* The name of the DLP policy.
|
|
97
|
+
*/
|
|
98
|
+
name: pulumi.Input<string>;
|
|
99
|
+
/**
|
|
100
|
+
* The rule sets that define the DLP policy rules.
|
|
101
|
+
*/
|
|
102
|
+
ruleSets?: pulumi.Input<pulumi.Input<inputs.RuleSetArgs>[]>;
|
|
103
|
+
}
|
package/environment.ts
ADDED
|
@@ -0,0 +1,163 @@
|
|
|
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 a Power Platform environment. Environments are containers for apps, flows, data, and other resources. Uses the BAP admin REST API for lifecycle management.
|
|
9
|
+
*/
|
|
10
|
+
export class Environment extends pulumi.CustomResource {
|
|
11
|
+
/**
|
|
12
|
+
* Get an existing Environment 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): Environment {
|
|
20
|
+
return new Environment(name, undefined as any, { ...opts, id: id });
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/** @internal */
|
|
24
|
+
public static readonly __pulumiType = 'powerplatform:index:Environment';
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Returns true if the given object is an instance of Environment. 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 Environment {
|
|
31
|
+
if (obj === undefined || obj === null) {
|
|
32
|
+
return false;
|
|
33
|
+
}
|
|
34
|
+
return obj['__pulumiType'] === Environment.__pulumiType;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* The timestamp when the environment was created.
|
|
39
|
+
*/
|
|
40
|
+
declare public /*out*/ readonly createdTime: pulumi.Output<string | undefined>;
|
|
41
|
+
/**
|
|
42
|
+
* The currency code of the Dataverse database.
|
|
43
|
+
*/
|
|
44
|
+
declare public readonly currencyCode: pulumi.Output<string | undefined>;
|
|
45
|
+
/**
|
|
46
|
+
* The description of the environment.
|
|
47
|
+
*/
|
|
48
|
+
declare public readonly description: pulumi.Output<string | undefined>;
|
|
49
|
+
/**
|
|
50
|
+
* The display name of the environment.
|
|
51
|
+
*/
|
|
52
|
+
declare public readonly displayName: pulumi.Output<string>;
|
|
53
|
+
/**
|
|
54
|
+
* The domain name of the Dataverse database.
|
|
55
|
+
*/
|
|
56
|
+
declare public readonly domainName: pulumi.Output<string | undefined>;
|
|
57
|
+
/**
|
|
58
|
+
* The type (SKU) of the environment.
|
|
59
|
+
*/
|
|
60
|
+
declare public readonly environmentType: pulumi.Output<string>;
|
|
61
|
+
/**
|
|
62
|
+
* The base language code of the Dataverse database.
|
|
63
|
+
*/
|
|
64
|
+
declare public readonly languageCode: pulumi.Output<string | undefined>;
|
|
65
|
+
/**
|
|
66
|
+
* The timestamp when the environment was last modified.
|
|
67
|
+
*/
|
|
68
|
+
declare public /*out*/ readonly lastModifiedTime: pulumi.Output<string | undefined>;
|
|
69
|
+
/**
|
|
70
|
+
* The geographic region of the environment.
|
|
71
|
+
*/
|
|
72
|
+
declare public readonly location: pulumi.Output<string>;
|
|
73
|
+
/**
|
|
74
|
+
* The current state of the environment (e.g., Ready, Preparing).
|
|
75
|
+
*/
|
|
76
|
+
declare public /*out*/ readonly state: pulumi.Output<string | undefined>;
|
|
77
|
+
/**
|
|
78
|
+
* The Dataverse instance URL of the environment.
|
|
79
|
+
*/
|
|
80
|
+
declare public /*out*/ readonly url: pulumi.Output<string | undefined>;
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Create a Environment resource with the given unique name, arguments, and options.
|
|
84
|
+
*
|
|
85
|
+
* @param name The _unique_ name of the resource.
|
|
86
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
87
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
88
|
+
*/
|
|
89
|
+
constructor(name: string, args: EnvironmentArgs, opts?: pulumi.CustomResourceOptions) {
|
|
90
|
+
let resourceInputs: pulumi.Inputs = {};
|
|
91
|
+
opts = opts || {};
|
|
92
|
+
if (!opts.id) {
|
|
93
|
+
if (args?.displayName === undefined && !opts.urn) {
|
|
94
|
+
throw new Error("Missing required property 'displayName'");
|
|
95
|
+
}
|
|
96
|
+
if (args?.environmentType === undefined && !opts.urn) {
|
|
97
|
+
throw new Error("Missing required property 'environmentType'");
|
|
98
|
+
}
|
|
99
|
+
if (args?.location === undefined && !opts.urn) {
|
|
100
|
+
throw new Error("Missing required property 'location'");
|
|
101
|
+
}
|
|
102
|
+
resourceInputs["currencyCode"] = args?.currencyCode;
|
|
103
|
+
resourceInputs["description"] = args?.description;
|
|
104
|
+
resourceInputs["displayName"] = args?.displayName;
|
|
105
|
+
resourceInputs["domainName"] = args?.domainName;
|
|
106
|
+
resourceInputs["environmentType"] = args?.environmentType;
|
|
107
|
+
resourceInputs["languageCode"] = args?.languageCode;
|
|
108
|
+
resourceInputs["location"] = args?.location;
|
|
109
|
+
resourceInputs["createdTime"] = undefined /*out*/;
|
|
110
|
+
resourceInputs["lastModifiedTime"] = undefined /*out*/;
|
|
111
|
+
resourceInputs["state"] = undefined /*out*/;
|
|
112
|
+
resourceInputs["url"] = undefined /*out*/;
|
|
113
|
+
} else {
|
|
114
|
+
resourceInputs["createdTime"] = undefined /*out*/;
|
|
115
|
+
resourceInputs["currencyCode"] = undefined /*out*/;
|
|
116
|
+
resourceInputs["description"] = undefined /*out*/;
|
|
117
|
+
resourceInputs["displayName"] = undefined /*out*/;
|
|
118
|
+
resourceInputs["domainName"] = undefined /*out*/;
|
|
119
|
+
resourceInputs["environmentType"] = undefined /*out*/;
|
|
120
|
+
resourceInputs["languageCode"] = undefined /*out*/;
|
|
121
|
+
resourceInputs["lastModifiedTime"] = undefined /*out*/;
|
|
122
|
+
resourceInputs["location"] = undefined /*out*/;
|
|
123
|
+
resourceInputs["state"] = undefined /*out*/;
|
|
124
|
+
resourceInputs["url"] = undefined /*out*/;
|
|
125
|
+
}
|
|
126
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
127
|
+
super(Environment.__pulumiType, name, resourceInputs, opts);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* The set of arguments for constructing a Environment resource.
|
|
133
|
+
*/
|
|
134
|
+
export interface EnvironmentArgs {
|
|
135
|
+
/**
|
|
136
|
+
* The currency code for the Dataverse database (e.g., USD, EUR).
|
|
137
|
+
*/
|
|
138
|
+
currencyCode?: pulumi.Input<string>;
|
|
139
|
+
/**
|
|
140
|
+
* A description of the environment.
|
|
141
|
+
*/
|
|
142
|
+
description?: pulumi.Input<string>;
|
|
143
|
+
/**
|
|
144
|
+
* The display name of the environment.
|
|
145
|
+
*/
|
|
146
|
+
displayName: pulumi.Input<string>;
|
|
147
|
+
/**
|
|
148
|
+
* The domain name for the Dataverse database associated with the environment.
|
|
149
|
+
*/
|
|
150
|
+
domainName?: pulumi.Input<string>;
|
|
151
|
+
/**
|
|
152
|
+
* The type (SKU) of the environment: Sandbox, Production, Trial, Developer, or Default. Immutable after creation.
|
|
153
|
+
*/
|
|
154
|
+
environmentType: pulumi.Input<string>;
|
|
155
|
+
/**
|
|
156
|
+
* The base language code for the Dataverse database (e.g., 1033 for English).
|
|
157
|
+
*/
|
|
158
|
+
languageCode?: pulumi.Input<string>;
|
|
159
|
+
/**
|
|
160
|
+
* The geographic region for the environment (e.g., unitedstates, europe). Immutable after creation.
|
|
161
|
+
*/
|
|
162
|
+
location: pulumi.Input<string>;
|
|
163
|
+
}
|
|
@@ -0,0 +1,98 @@
|
|
|
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
|
+
* Creates a manual backup of a Power Platform environment. Backups are immutable — any change to inputs triggers replacement.
|
|
9
|
+
*/
|
|
10
|
+
export class EnvironmentBackup extends pulumi.CustomResource {
|
|
11
|
+
/**
|
|
12
|
+
* Get an existing EnvironmentBackup 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): EnvironmentBackup {
|
|
20
|
+
return new EnvironmentBackup(name, undefined as any, { ...opts, id: id });
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/** @internal */
|
|
24
|
+
public static readonly __pulumiType = 'powerplatform:index:EnvironmentBackup';
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Returns true if the given object is an instance of EnvironmentBackup. 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 EnvironmentBackup {
|
|
31
|
+
if (obj === undefined || obj === null) {
|
|
32
|
+
return false;
|
|
33
|
+
}
|
|
34
|
+
return obj['__pulumiType'] === EnvironmentBackup.__pulumiType;
|
|
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
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Create a EnvironmentBackup resource with the given unique name, arguments, and options.
|
|
56
|
+
*
|
|
57
|
+
* @param name The _unique_ name of the resource.
|
|
58
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
59
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
60
|
+
*/
|
|
61
|
+
constructor(name: string, args: EnvironmentBackupArgs, opts?: pulumi.CustomResourceOptions) {
|
|
62
|
+
let resourceInputs: pulumi.Inputs = {};
|
|
63
|
+
opts = opts || {};
|
|
64
|
+
if (!opts.id) {
|
|
65
|
+
if (args?.environmentId === undefined && !opts.urn) {
|
|
66
|
+
throw new Error("Missing required property 'environmentId'");
|
|
67
|
+
}
|
|
68
|
+
if (args?.label === undefined && !opts.urn) {
|
|
69
|
+
throw new Error("Missing required property 'label'");
|
|
70
|
+
}
|
|
71
|
+
resourceInputs["environmentId"] = args?.environmentId;
|
|
72
|
+
resourceInputs["label"] = args?.label;
|
|
73
|
+
resourceInputs["backupExpiryDateTime"] = undefined /*out*/;
|
|
74
|
+
resourceInputs["backupPointDateTime"] = undefined /*out*/;
|
|
75
|
+
} else {
|
|
76
|
+
resourceInputs["backupExpiryDateTime"] = undefined /*out*/;
|
|
77
|
+
resourceInputs["backupPointDateTime"] = undefined /*out*/;
|
|
78
|
+
resourceInputs["environmentId"] = undefined /*out*/;
|
|
79
|
+
resourceInputs["label"] = undefined /*out*/;
|
|
80
|
+
}
|
|
81
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
82
|
+
super(EnvironmentBackup.__pulumiType, name, resourceInputs, opts);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
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
|
+
}
|
|
@@ -0,0 +1,105 @@
|
|
|
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 a Power Platform environment group. Environment groups allow you to organize environments and apply policies at a group level.
|
|
9
|
+
*/
|
|
10
|
+
export class EnvironmentGroup extends pulumi.CustomResource {
|
|
11
|
+
/**
|
|
12
|
+
* Get an existing EnvironmentGroup 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): EnvironmentGroup {
|
|
20
|
+
return new EnvironmentGroup(name, undefined as any, { ...opts, id: id });
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/** @internal */
|
|
24
|
+
public static readonly __pulumiType = 'powerplatform:index:EnvironmentGroup';
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Returns true if the given object is an instance of EnvironmentGroup. 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 EnvironmentGroup {
|
|
31
|
+
if (obj === undefined || obj === null) {
|
|
32
|
+
return false;
|
|
33
|
+
}
|
|
34
|
+
return obj['__pulumiType'] === EnvironmentGroup.__pulumiType;
|
|
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
|
+
/**
|
|
59
|
+
* Create a EnvironmentGroup 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: EnvironmentGroupArgs, opts?: pulumi.CustomResourceOptions) {
|
|
66
|
+
let resourceInputs: pulumi.Inputs = {};
|
|
67
|
+
opts = opts || {};
|
|
68
|
+
if (!opts.id) {
|
|
69
|
+
if (args?.displayName === undefined && !opts.urn) {
|
|
70
|
+
throw new Error("Missing required property 'displayName'");
|
|
71
|
+
}
|
|
72
|
+
resourceInputs["description"] = args?.description;
|
|
73
|
+
resourceInputs["displayName"] = args?.displayName;
|
|
74
|
+
resourceInputs["parentGroupId"] = args?.parentGroupId;
|
|
75
|
+
resourceInputs["createdTime"] = undefined /*out*/;
|
|
76
|
+
resourceInputs["lastModifiedTime"] = undefined /*out*/;
|
|
77
|
+
} else {
|
|
78
|
+
resourceInputs["createdTime"] = undefined /*out*/;
|
|
79
|
+
resourceInputs["description"] = undefined /*out*/;
|
|
80
|
+
resourceInputs["displayName"] = undefined /*out*/;
|
|
81
|
+
resourceInputs["lastModifiedTime"] = undefined /*out*/;
|
|
82
|
+
resourceInputs["parentGroupId"] = undefined /*out*/;
|
|
83
|
+
}
|
|
84
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
85
|
+
super(EnvironmentGroup.__pulumiType, name, resourceInputs, opts);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
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
|
+
}
|