@pulumi/azure 5.0.0 → 5.3.0-alpha.1650909643

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 (122) hide show
  1. package/README.md +5 -5
  2. package/appservice/getServicePlan.d.ts +4 -0
  3. package/appservice/getServicePlan.js.map +1 -1
  4. package/appservice/linuxWebApp.d.ts +1 -1
  5. package/appservice/linuxWebApp.js +1 -1
  6. package/appservice/linuxWebAppSlot.d.ts +1 -1
  7. package/appservice/linuxWebAppSlot.js +1 -1
  8. package/appservice/servicePlan.d.ts +14 -1
  9. package/appservice/servicePlan.js +4 -1
  10. package/appservice/servicePlan.js.map +1 -1
  11. package/appservice/sourceControl.d.ts +1 -1
  12. package/appservice/sourceControl.js +1 -1
  13. package/appservice/sourceControlSlot.d.ts +1 -1
  14. package/appservice/sourceControlSlot.js +1 -1
  15. package/appservice/staticSiteCustomDomain.d.ts +0 -25
  16. package/appservice/staticSiteCustomDomain.js +0 -25
  17. package/appservice/staticSiteCustomDomain.js.map +1 -1
  18. package/appservice/webAppActiveSlot.d.ts +2 -2
  19. package/appservice/webAppActiveSlot.js +2 -2
  20. package/appservice/windowsWebApp.d.ts +1 -1
  21. package/appservice/windowsWebApp.js +1 -1
  22. package/appservice/windowsWebAppSlot.d.ts +1 -1
  23. package/appservice/windowsWebAppSlot.js +1 -1
  24. package/backup/containerStorageAccount.d.ts +0 -2
  25. package/backup/containerStorageAccount.js +0 -2
  26. package/backup/containerStorageAccount.js.map +1 -1
  27. package/cognitive/account.d.ts +12 -0
  28. package/cognitive/account.js +2 -0
  29. package/cognitive/account.js.map +1 -1
  30. package/compute/dedicatedHost.d.ts +3 -3
  31. package/containerservice/connectedRegistry.d.ts +231 -0
  32. package/containerservice/connectedRegistry.js +127 -0
  33. package/containerservice/connectedRegistry.js.map +1 -0
  34. package/containerservice/getKubernetesCluster.d.ts +8 -0
  35. package/containerservice/getKubernetesCluster.js.map +1 -1
  36. package/containerservice/group.d.ts +12 -0
  37. package/containerservice/group.js +2 -0
  38. package/containerservice/group.js.map +1 -1
  39. package/containerservice/index.d.ts +2 -0
  40. package/containerservice/index.js +10 -0
  41. package/containerservice/index.js.map +1 -1
  42. package/containerservice/kubernetesCluster.d.ts +20 -0
  43. package/containerservice/kubernetesCluster.js +4 -0
  44. package/containerservice/kubernetesCluster.js.map +1 -1
  45. package/containerservice/registryAgentPool.d.ts +168 -0
  46. package/containerservice/registryAgentPool.js +99 -0
  47. package/containerservice/registryAgentPool.js.map +1 -0
  48. package/core/index.d.ts +3 -0
  49. package/core/index.js +15 -0
  50. package/core/index.js.map +1 -1
  51. package/core/resourceGroupPolicyExemption.d.ts +181 -0
  52. package/core/resourceGroupPolicyExemption.js +111 -0
  53. package/core/resourceGroupPolicyExemption.js.map +1 -0
  54. package/core/resourcePolicyExemption.d.ts +185 -0
  55. package/core/resourcePolicyExemption.js +115 -0
  56. package/core/resourcePolicyExemption.js.map +1 -0
  57. package/core/subscriptionPolicyExemption.d.ts +180 -0
  58. package/core/subscriptionPolicyExemption.js +110 -0
  59. package/core/subscriptionPolicyExemption.js.map +1 -0
  60. package/cosmosdb/getAccount.d.ts +1 -1
  61. package/cosmosdb/sqlContainer.d.ts +3 -3
  62. package/eventhub/namespace.d.ts +24 -0
  63. package/eventhub/namespace.js +4 -0
  64. package/eventhub/namespace.js.map +1 -1
  65. package/kusto/cluster.d.ts +9 -0
  66. package/kusto/cluster.js.map +1 -1
  67. package/kusto/getDatabase.d.ts +81 -0
  68. package/kusto/getDatabase.js +40 -0
  69. package/kusto/getDatabase.js.map +1 -0
  70. package/kusto/index.d.ts +1 -0
  71. package/kusto/index.js +1 -0
  72. package/kusto/index.js.map +1 -1
  73. package/lb/outboundRule.d.ts +3 -3
  74. package/machinelearning/workspace.d.ts +19 -1
  75. package/machinelearning/workspace.js +2 -0
  76. package/machinelearning/workspace.js.map +1 -1
  77. package/management/groupPolicyExemption.d.ts +180 -0
  78. package/management/groupPolicyExemption.js +110 -0
  79. package/management/groupPolicyExemption.js.map +1 -0
  80. package/management/index.d.ts +1 -0
  81. package/management/index.js +5 -0
  82. package/management/index.js.map +1 -1
  83. package/media/streamingEndpoint.d.ts +3 -3
  84. package/mssql/database.d.ts +15 -3
  85. package/mssql/database.js +2 -0
  86. package/mssql/database.js.map +1 -1
  87. package/mssql/managedInstanceActiveDirectoryAdministrator.d.ts +9 -0
  88. package/mssql/managedInstanceActiveDirectoryAdministrator.js.map +1 -1
  89. package/mssql/serverExtendedAuditingPolicy.d.ts +1 -1
  90. package/mssql/serverExtendedAuditingPolicy.js +1 -1
  91. package/mssql/serverSecurityAlertPolicy.d.ts +3 -3
  92. package/mysql/flexibleServer.d.ts +3 -3
  93. package/network/bgpConnection.d.ts +2 -1
  94. package/network/bgpConnection.js +2 -1
  95. package/network/bgpConnection.js.map +1 -1
  96. package/network/virtualHubIp.d.ts +2 -1
  97. package/network/virtualHubIp.js +2 -1
  98. package/network/virtualHubIp.js.map +1 -1
  99. package/package.json +2 -2
  100. package/package.json.dev +2 -2
  101. package/postgresql/serverKey.d.ts +19 -19
  102. package/postgresql/serverKey.js +19 -19
  103. package/sentinel/watchlist.d.ts +13 -0
  104. package/sentinel/watchlist.js +6 -0
  105. package/sentinel/watchlist.js.map +1 -1
  106. package/servicebus/namespace.d.ts +24 -0
  107. package/servicebus/namespace.js +4 -0
  108. package/servicebus/namespace.js.map +1 -1
  109. package/storage/account.d.ts +6 -6
  110. package/storage/dataLakeGen2Filesystem.d.ts +6 -6
  111. package/storage/dataLakeGen2Path.d.ts +6 -6
  112. package/storage/getAccount.d.ts +2 -2
  113. package/streamanalytics/getJob.d.ts +15 -3
  114. package/streamanalytics/getJob.js.map +1 -1
  115. package/streamanalytics/index.d.ts +1 -0
  116. package/streamanalytics/index.js +5 -0
  117. package/streamanalytics/index.js.map +1 -1
  118. package/streamanalytics/jobSchedule.d.ts +173 -0
  119. package/streamanalytics/jobSchedule.js +154 -0
  120. package/streamanalytics/jobSchedule.js.map +1 -0
  121. package/types/input.d.ts +165 -25
  122. package/types/output.d.ts +169 -29
@@ -0,0 +1,111 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.ResourceGroupPolicyExemption = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * Manages a Resource Group Policy Exemption.
10
+ *
11
+ * ## Example Usage
12
+ *
13
+ * ```typescript
14
+ * import * as pulumi from "@pulumi/pulumi";
15
+ * import * as azure from "@pulumi/azure";
16
+ *
17
+ * const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "westus"});
18
+ * const examplePolicyDefintion = azure.policy.getPolicyDefintion({
19
+ * displayName: "Allowed locations",
20
+ * });
21
+ * const exampleResourceGroupPolicyAssignment = new azure.core.ResourceGroupPolicyAssignment("exampleResourceGroupPolicyAssignment", {
22
+ * resourceGroupId: exampleResourceGroup.id,
23
+ * policyDefinitionId: examplePolicyDefintion.then(examplePolicyDefintion => examplePolicyDefintion.id),
24
+ * parameters: exampleResourceGroup.location.apply(location => JSON.stringify({
25
+ * listOfAllowedLocations: {
26
+ * value: [location],
27
+ * },
28
+ * })),
29
+ * });
30
+ * const exampleResourceGroupPolicyExemption = new azure.core.ResourceGroupPolicyExemption("exampleResourceGroupPolicyExemption", {
31
+ * resourceGroupId: exampleResourceGroup.id,
32
+ * policyAssignmentId: exampleResourceGroupPolicyAssignment.id,
33
+ * exemptionCategory: "Mitigated",
34
+ * });
35
+ * ```
36
+ *
37
+ * ## Import
38
+ *
39
+ * Policy Exemptions can be imported using the `resource id`, e.g.
40
+ *
41
+ * ```sh
42
+ * $ pulumi import azure:core/resourceGroupPolicyExemption:ResourceGroupPolicyExemption exemption1 /subscriptions/00000000-0000-0000-000000000000/resourceGroups/resGroup1/providers/Microsoft.Authorization/policyExemptions/exemption1
43
+ * ```
44
+ */
45
+ class ResourceGroupPolicyExemption extends pulumi.CustomResource {
46
+ constructor(name, argsOrState, opts) {
47
+ let resourceInputs = {};
48
+ opts = opts || {};
49
+ if (opts.id) {
50
+ const state = argsOrState;
51
+ resourceInputs["description"] = state ? state.description : undefined;
52
+ resourceInputs["displayName"] = state ? state.displayName : undefined;
53
+ resourceInputs["exemptionCategory"] = state ? state.exemptionCategory : undefined;
54
+ resourceInputs["expiresOn"] = state ? state.expiresOn : undefined;
55
+ resourceInputs["metadata"] = state ? state.metadata : undefined;
56
+ resourceInputs["name"] = state ? state.name : undefined;
57
+ resourceInputs["policyAssignmentId"] = state ? state.policyAssignmentId : undefined;
58
+ resourceInputs["policyDefinitionReferenceIds"] = state ? state.policyDefinitionReferenceIds : undefined;
59
+ resourceInputs["resourceGroupId"] = state ? state.resourceGroupId : undefined;
60
+ }
61
+ else {
62
+ const args = argsOrState;
63
+ if ((!args || args.exemptionCategory === undefined) && !opts.urn) {
64
+ throw new Error("Missing required property 'exemptionCategory'");
65
+ }
66
+ if ((!args || args.policyAssignmentId === undefined) && !opts.urn) {
67
+ throw new Error("Missing required property 'policyAssignmentId'");
68
+ }
69
+ if ((!args || args.resourceGroupId === undefined) && !opts.urn) {
70
+ throw new Error("Missing required property 'resourceGroupId'");
71
+ }
72
+ resourceInputs["description"] = args ? args.description : undefined;
73
+ resourceInputs["displayName"] = args ? args.displayName : undefined;
74
+ resourceInputs["exemptionCategory"] = args ? args.exemptionCategory : undefined;
75
+ resourceInputs["expiresOn"] = args ? args.expiresOn : undefined;
76
+ resourceInputs["metadata"] = args ? args.metadata : undefined;
77
+ resourceInputs["name"] = args ? args.name : undefined;
78
+ resourceInputs["policyAssignmentId"] = args ? args.policyAssignmentId : undefined;
79
+ resourceInputs["policyDefinitionReferenceIds"] = args ? args.policyDefinitionReferenceIds : undefined;
80
+ resourceInputs["resourceGroupId"] = args ? args.resourceGroupId : undefined;
81
+ }
82
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
83
+ super(ResourceGroupPolicyExemption.__pulumiType, name, resourceInputs, opts);
84
+ }
85
+ /**
86
+ * Get an existing ResourceGroupPolicyExemption resource's state with the given name, ID, and optional extra
87
+ * properties used to qualify the lookup.
88
+ *
89
+ * @param name The _unique_ name of the resulting resource.
90
+ * @param id The _unique_ provider ID of the resource to lookup.
91
+ * @param state Any extra arguments used during the lookup.
92
+ * @param opts Optional settings to control the behavior of the CustomResource.
93
+ */
94
+ static get(name, id, state, opts) {
95
+ return new ResourceGroupPolicyExemption(name, state, Object.assign(Object.assign({}, opts), { id: id }));
96
+ }
97
+ /**
98
+ * Returns true if the given object is an instance of ResourceGroupPolicyExemption. This is designed to work even
99
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
100
+ */
101
+ static isInstance(obj) {
102
+ if (obj === undefined || obj === null) {
103
+ return false;
104
+ }
105
+ return obj['__pulumiType'] === ResourceGroupPolicyExemption.__pulumiType;
106
+ }
107
+ }
108
+ exports.ResourceGroupPolicyExemption = ResourceGroupPolicyExemption;
109
+ /** @internal */
110
+ ResourceGroupPolicyExemption.__pulumiType = 'azure:core/resourceGroupPolicyExemption:ResourceGroupPolicyExemption';
111
+ //# sourceMappingURL=resourceGroupPolicyExemption.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resourceGroupPolicyExemption.js","sourceRoot":"","sources":["../../core/resourceGroupPolicyExemption.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,MAAa,4BAA6B,SAAQ,MAAM,CAAC,cAAc;IAyEnE,YAAY,IAAY,EAAE,WAAkF,EAAE,IAAmC;QAC7I,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,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CAAC;YACtG,cAAc,CAAC,iBAAiB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,SAAS,CAAC;SAC/E;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,4BAA4B,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACjF,CAAC;IA7GD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAyC,EAAE,IAAmC;QACvI,OAAO,IAAI,4BAA4B,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACnF,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,4BAA4B,CAAC,YAAY,CAAC;IAC7E,CAAC;;AA1BL,oEA+GC;AAjGG,gBAAgB;AACO,yCAAY,GAAG,sEAAsE,CAAC"}
@@ -0,0 +1,185 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Manages a Resource Policy Exemption.
4
+ *
5
+ * ## Example Usage
6
+ *
7
+ * ```typescript
8
+ * import * as pulumi from "@pulumi/pulumi";
9
+ * import * as azure from "@pulumi/azure";
10
+ *
11
+ * const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "westus"});
12
+ * const exampleVirtualNetwork = new azure.network.VirtualNetwork("exampleVirtualNetwork", {
13
+ * resourceGroupName: exampleResourceGroup.name,
14
+ * location: exampleResourceGroup.location,
15
+ * addressSpaces: ["10.0.0.0/16"],
16
+ * });
17
+ * const examplePolicySetDefinition = azure.policy.getPolicySetDefinition({
18
+ * displayName: "Audit machines with insecure password security settings",
19
+ * });
20
+ * const exampleResourcePolicyAssignment = new azure.core.ResourcePolicyAssignment("exampleResourcePolicyAssignment", {
21
+ * resourceId: exampleVirtualNetwork.id,
22
+ * policyDefinitionId: examplePolicySetDefinition.then(examplePolicySetDefinition => examplePolicySetDefinition.id),
23
+ * location: exampleResourceGroup.location,
24
+ * identity: {
25
+ * type: "SystemAssigned",
26
+ * },
27
+ * });
28
+ * const exampleResourcePolicyExemption = new azure.core.ResourcePolicyExemption("exampleResourcePolicyExemption", {
29
+ * resourceId: exampleResourcePolicyAssignment.resourceId,
30
+ * policyAssignmentId: exampleResourcePolicyAssignment.id,
31
+ * exemptionCategory: "Mitigated",
32
+ * });
33
+ * ```
34
+ *
35
+ * ## Import
36
+ *
37
+ * Policy Exemptions can be imported using the `resource id`, e.g.
38
+ *
39
+ * ```sh
40
+ * $ pulumi import azure:core/resourcePolicyExemption:ResourcePolicyExemption exemption1 /subscriptions/00000000-0000-0000-000000000000/resourceGroups/resGroup1/providers/Microsoft.Authorization/policyExemptions/exemption1
41
+ * ```
42
+ */
43
+ export declare class ResourcePolicyExemption extends pulumi.CustomResource {
44
+ /**
45
+ * Get an existing ResourcePolicyExemption resource's state with the given name, ID, and optional extra
46
+ * properties used to qualify the lookup.
47
+ *
48
+ * @param name The _unique_ name of the resulting resource.
49
+ * @param id The _unique_ provider ID of the resource to lookup.
50
+ * @param state Any extra arguments used during the lookup.
51
+ * @param opts Optional settings to control the behavior of the CustomResource.
52
+ */
53
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ResourcePolicyExemptionState, opts?: pulumi.CustomResourceOptions): ResourcePolicyExemption;
54
+ /**
55
+ * Returns true if the given object is an instance of ResourcePolicyExemption. This is designed to work even
56
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
57
+ */
58
+ static isInstance(obj: any): obj is ResourcePolicyExemption;
59
+ /**
60
+ * A description to use for this Policy Exemption.
61
+ */
62
+ readonly description: pulumi.Output<string | undefined>;
63
+ /**
64
+ * A friendly display name to use for this Policy Exemption.
65
+ */
66
+ readonly displayName: pulumi.Output<string | undefined>;
67
+ /**
68
+ * The category of this policy exemption. Possible values are `Waiver` and `Mitigated`.
69
+ */
70
+ readonly exemptionCategory: pulumi.Output<string>;
71
+ /**
72
+ * The expiration date and time in UTC ISO 8601 format of this policy exemption.
73
+ */
74
+ readonly expiresOn: pulumi.Output<string | undefined>;
75
+ /**
76
+ * The metadata for this policy exemption. This is a JSON string representing additional metadata that should be stored with the policy exemption.
77
+ */
78
+ readonly metadata: pulumi.Output<string>;
79
+ /**
80
+ * The name of the Policy Exemption. Changing this forces a new resource to be created.
81
+ */
82
+ readonly name: pulumi.Output<string>;
83
+ /**
84
+ * The ID of the Policy Assignment to be exempted at the specified Scope.
85
+ */
86
+ readonly policyAssignmentId: pulumi.Output<string>;
87
+ /**
88
+ * The policy definition reference ID list when the associated policy assignment is an assignment of a policy set definition.
89
+ */
90
+ readonly policyDefinitionReferenceIds: pulumi.Output<string[] | undefined>;
91
+ /**
92
+ * The Resource ID where the Policy Exemption should be applied. Changing this forces a new resource to be created.
93
+ */
94
+ readonly resourceId: pulumi.Output<string>;
95
+ /**
96
+ * Create a ResourcePolicyExemption resource with the given unique name, arguments, and options.
97
+ *
98
+ * @param name The _unique_ name of the resource.
99
+ * @param args The arguments to use to populate this resource's properties.
100
+ * @param opts A bag of options that control this resource's behavior.
101
+ */
102
+ constructor(name: string, args: ResourcePolicyExemptionArgs, opts?: pulumi.CustomResourceOptions);
103
+ }
104
+ /**
105
+ * Input properties used for looking up and filtering ResourcePolicyExemption resources.
106
+ */
107
+ export interface ResourcePolicyExemptionState {
108
+ /**
109
+ * A description to use for this Policy Exemption.
110
+ */
111
+ description?: pulumi.Input<string>;
112
+ /**
113
+ * A friendly display name to use for this Policy Exemption.
114
+ */
115
+ displayName?: pulumi.Input<string>;
116
+ /**
117
+ * The category of this policy exemption. Possible values are `Waiver` and `Mitigated`.
118
+ */
119
+ exemptionCategory?: pulumi.Input<string>;
120
+ /**
121
+ * The expiration date and time in UTC ISO 8601 format of this policy exemption.
122
+ */
123
+ expiresOn?: pulumi.Input<string>;
124
+ /**
125
+ * The metadata for this policy exemption. This is a JSON string representing additional metadata that should be stored with the policy exemption.
126
+ */
127
+ metadata?: pulumi.Input<string>;
128
+ /**
129
+ * The name of the Policy Exemption. Changing this forces a new resource to be created.
130
+ */
131
+ name?: pulumi.Input<string>;
132
+ /**
133
+ * The ID of the Policy Assignment to be exempted at the specified Scope.
134
+ */
135
+ policyAssignmentId?: pulumi.Input<string>;
136
+ /**
137
+ * The policy definition reference ID list when the associated policy assignment is an assignment of a policy set definition.
138
+ */
139
+ policyDefinitionReferenceIds?: pulumi.Input<pulumi.Input<string>[]>;
140
+ /**
141
+ * The Resource ID where the Policy Exemption should be applied. Changing this forces a new resource to be created.
142
+ */
143
+ resourceId?: pulumi.Input<string>;
144
+ }
145
+ /**
146
+ * The set of arguments for constructing a ResourcePolicyExemption resource.
147
+ */
148
+ export interface ResourcePolicyExemptionArgs {
149
+ /**
150
+ * A description to use for this Policy Exemption.
151
+ */
152
+ description?: pulumi.Input<string>;
153
+ /**
154
+ * A friendly display name to use for this Policy Exemption.
155
+ */
156
+ displayName?: pulumi.Input<string>;
157
+ /**
158
+ * The category of this policy exemption. Possible values are `Waiver` and `Mitigated`.
159
+ */
160
+ exemptionCategory: pulumi.Input<string>;
161
+ /**
162
+ * The expiration date and time in UTC ISO 8601 format of this policy exemption.
163
+ */
164
+ expiresOn?: pulumi.Input<string>;
165
+ /**
166
+ * The metadata for this policy exemption. This is a JSON string representing additional metadata that should be stored with the policy exemption.
167
+ */
168
+ metadata?: pulumi.Input<string>;
169
+ /**
170
+ * The name of the Policy Exemption. Changing this forces a new resource to be created.
171
+ */
172
+ name?: pulumi.Input<string>;
173
+ /**
174
+ * The ID of the Policy Assignment to be exempted at the specified Scope.
175
+ */
176
+ policyAssignmentId: pulumi.Input<string>;
177
+ /**
178
+ * The policy definition reference ID list when the associated policy assignment is an assignment of a policy set definition.
179
+ */
180
+ policyDefinitionReferenceIds?: pulumi.Input<pulumi.Input<string>[]>;
181
+ /**
182
+ * The Resource ID where the Policy Exemption should be applied. Changing this forces a new resource to be created.
183
+ */
184
+ resourceId: pulumi.Input<string>;
185
+ }
@@ -0,0 +1,115 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.ResourcePolicyExemption = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * Manages a Resource Policy Exemption.
10
+ *
11
+ * ## Example Usage
12
+ *
13
+ * ```typescript
14
+ * import * as pulumi from "@pulumi/pulumi";
15
+ * import * as azure from "@pulumi/azure";
16
+ *
17
+ * const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "westus"});
18
+ * const exampleVirtualNetwork = new azure.network.VirtualNetwork("exampleVirtualNetwork", {
19
+ * resourceGroupName: exampleResourceGroup.name,
20
+ * location: exampleResourceGroup.location,
21
+ * addressSpaces: ["10.0.0.0/16"],
22
+ * });
23
+ * const examplePolicySetDefinition = azure.policy.getPolicySetDefinition({
24
+ * displayName: "Audit machines with insecure password security settings",
25
+ * });
26
+ * const exampleResourcePolicyAssignment = new azure.core.ResourcePolicyAssignment("exampleResourcePolicyAssignment", {
27
+ * resourceId: exampleVirtualNetwork.id,
28
+ * policyDefinitionId: examplePolicySetDefinition.then(examplePolicySetDefinition => examplePolicySetDefinition.id),
29
+ * location: exampleResourceGroup.location,
30
+ * identity: {
31
+ * type: "SystemAssigned",
32
+ * },
33
+ * });
34
+ * const exampleResourcePolicyExemption = new azure.core.ResourcePolicyExemption("exampleResourcePolicyExemption", {
35
+ * resourceId: exampleResourcePolicyAssignment.resourceId,
36
+ * policyAssignmentId: exampleResourcePolicyAssignment.id,
37
+ * exemptionCategory: "Mitigated",
38
+ * });
39
+ * ```
40
+ *
41
+ * ## Import
42
+ *
43
+ * Policy Exemptions can be imported using the `resource id`, e.g.
44
+ *
45
+ * ```sh
46
+ * $ pulumi import azure:core/resourcePolicyExemption:ResourcePolicyExemption exemption1 /subscriptions/00000000-0000-0000-000000000000/resourceGroups/resGroup1/providers/Microsoft.Authorization/policyExemptions/exemption1
47
+ * ```
48
+ */
49
+ class ResourcePolicyExemption extends pulumi.CustomResource {
50
+ constructor(name, argsOrState, opts) {
51
+ let resourceInputs = {};
52
+ opts = opts || {};
53
+ if (opts.id) {
54
+ const state = argsOrState;
55
+ resourceInputs["description"] = state ? state.description : undefined;
56
+ resourceInputs["displayName"] = state ? state.displayName : undefined;
57
+ resourceInputs["exemptionCategory"] = state ? state.exemptionCategory : undefined;
58
+ resourceInputs["expiresOn"] = state ? state.expiresOn : undefined;
59
+ resourceInputs["metadata"] = state ? state.metadata : undefined;
60
+ resourceInputs["name"] = state ? state.name : undefined;
61
+ resourceInputs["policyAssignmentId"] = state ? state.policyAssignmentId : undefined;
62
+ resourceInputs["policyDefinitionReferenceIds"] = state ? state.policyDefinitionReferenceIds : undefined;
63
+ resourceInputs["resourceId"] = state ? state.resourceId : undefined;
64
+ }
65
+ else {
66
+ const args = argsOrState;
67
+ if ((!args || args.exemptionCategory === undefined) && !opts.urn) {
68
+ throw new Error("Missing required property 'exemptionCategory'");
69
+ }
70
+ if ((!args || args.policyAssignmentId === undefined) && !opts.urn) {
71
+ throw new Error("Missing required property 'policyAssignmentId'");
72
+ }
73
+ if ((!args || args.resourceId === undefined) && !opts.urn) {
74
+ throw new Error("Missing required property 'resourceId'");
75
+ }
76
+ resourceInputs["description"] = args ? args.description : undefined;
77
+ resourceInputs["displayName"] = args ? args.displayName : undefined;
78
+ resourceInputs["exemptionCategory"] = args ? args.exemptionCategory : undefined;
79
+ resourceInputs["expiresOn"] = args ? args.expiresOn : undefined;
80
+ resourceInputs["metadata"] = args ? args.metadata : undefined;
81
+ resourceInputs["name"] = args ? args.name : undefined;
82
+ resourceInputs["policyAssignmentId"] = args ? args.policyAssignmentId : undefined;
83
+ resourceInputs["policyDefinitionReferenceIds"] = args ? args.policyDefinitionReferenceIds : undefined;
84
+ resourceInputs["resourceId"] = args ? args.resourceId : undefined;
85
+ }
86
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
87
+ super(ResourcePolicyExemption.__pulumiType, name, resourceInputs, opts);
88
+ }
89
+ /**
90
+ * Get an existing ResourcePolicyExemption resource's state with the given name, ID, and optional extra
91
+ * properties used to qualify the lookup.
92
+ *
93
+ * @param name The _unique_ name of the resulting resource.
94
+ * @param id The _unique_ provider ID of the resource to lookup.
95
+ * @param state Any extra arguments used during the lookup.
96
+ * @param opts Optional settings to control the behavior of the CustomResource.
97
+ */
98
+ static get(name, id, state, opts) {
99
+ return new ResourcePolicyExemption(name, state, Object.assign(Object.assign({}, opts), { id: id }));
100
+ }
101
+ /**
102
+ * Returns true if the given object is an instance of ResourcePolicyExemption. This is designed to work even
103
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
104
+ */
105
+ static isInstance(obj) {
106
+ if (obj === undefined || obj === null) {
107
+ return false;
108
+ }
109
+ return obj['__pulumiType'] === ResourcePolicyExemption.__pulumiType;
110
+ }
111
+ }
112
+ exports.ResourcePolicyExemption = ResourcePolicyExemption;
113
+ /** @internal */
114
+ ResourcePolicyExemption.__pulumiType = 'azure:core/resourcePolicyExemption:ResourcePolicyExemption';
115
+ //# sourceMappingURL=resourcePolicyExemption.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resourcePolicyExemption.js","sourceRoot":"","sources":["../../core/resourcePolicyExemption.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,M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AC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC,CAAC,SAAS,CAAC;YAClF,cAAc,CAAC,8BAA8B,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,4BAA4B,CAAC,CAAC,CAAC,SAAS,CAAC;YACtG,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;SACrE;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,uBAAuB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC5E,CAAC;IA7GD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAoC,EAAE,IAAmC;QAClI,OAAO,IAAI,uBAAuB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC9E,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,uBAAuB,CAAC,YAAY,CAAC;IACxE,CAAC;;AA1BL,0DA+GC;AAjGG,gBAAgB;AACO,oCAAY,GAAG,4DAA4D,CAAC"}
@@ -0,0 +1,180 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Manages a Subscription Policy Exemption.
4
+ *
5
+ * ## Example Usage
6
+ *
7
+ * ```typescript
8
+ * import * as pulumi from "@pulumi/pulumi";
9
+ * import * as azure from "@pulumi/azure";
10
+ *
11
+ * const exampleSubscription = azure.core.getSubscription({});
12
+ * const examplePolicySetDefinition = azure.policy.getPolicySetDefinition({
13
+ * displayName: "Audit machines with insecure password security settings",
14
+ * });
15
+ * const exampleSubscriptionPolicyAssignment = new azure.core.SubscriptionPolicyAssignment("exampleSubscriptionPolicyAssignment", {
16
+ * subscriptionId: exampleSubscription.then(exampleSubscription => exampleSubscription.id),
17
+ * policyDefinitionId: examplePolicySetDefinition.then(examplePolicySetDefinition => examplePolicySetDefinition.id),
18
+ * location: "westus",
19
+ * identity: {
20
+ * type: "SystemAssigned",
21
+ * },
22
+ * });
23
+ * const exampleSubscriptionPolicyExemption = new azure.core.SubscriptionPolicyExemption("exampleSubscriptionPolicyExemption", {
24
+ * resourceGroupId: exampleSubscription.then(exampleSubscription => exampleSubscription.id),
25
+ * policyAssignmentId: exampleSubscriptionPolicyAssignment.id,
26
+ * exemptionCategory: "Mitigated",
27
+ * });
28
+ * ```
29
+ *
30
+ * ## Import
31
+ *
32
+ * Policy Exemptions can be imported using the `resource id`, e.g.
33
+ *
34
+ * ```sh
35
+ * $ pulumi import azure:core/subscriptionPolicyExemption:SubscriptionPolicyExemption exemption1 /subscriptions/00000000-0000-0000-000000000000/providers/Microsoft.Authorization/policyExemptions/exemption1
36
+ * ```
37
+ */
38
+ export declare class SubscriptionPolicyExemption extends pulumi.CustomResource {
39
+ /**
40
+ * Get an existing SubscriptionPolicyExemption resource's state with the given name, ID, and optional extra
41
+ * properties used to qualify the lookup.
42
+ *
43
+ * @param name The _unique_ name of the resulting resource.
44
+ * @param id The _unique_ provider ID of the resource to lookup.
45
+ * @param state Any extra arguments used during the lookup.
46
+ * @param opts Optional settings to control the behavior of the CustomResource.
47
+ */
48
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: SubscriptionPolicyExemptionState, opts?: pulumi.CustomResourceOptions): SubscriptionPolicyExemption;
49
+ /**
50
+ * Returns true if the given object is an instance of SubscriptionPolicyExemption. This is designed to work even
51
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
52
+ */
53
+ static isInstance(obj: any): obj is SubscriptionPolicyExemption;
54
+ /**
55
+ * A description to use for this Policy Exemption.
56
+ */
57
+ readonly description: pulumi.Output<string | undefined>;
58
+ /**
59
+ * A friendly display name to use for this Policy Exemption.
60
+ */
61
+ readonly displayName: pulumi.Output<string | undefined>;
62
+ /**
63
+ * The category of this policy exemption. Possible values are `Waiver` and `Mitigated`.
64
+ */
65
+ readonly exemptionCategory: pulumi.Output<string>;
66
+ /**
67
+ * The expiration date and time in UTC ISO 8601 format of this policy exemption.
68
+ */
69
+ readonly expiresOn: pulumi.Output<string | undefined>;
70
+ /**
71
+ * The metadata for this policy exemption. This is a JSON string representing additional metadata that should be stored with the policy exemption.
72
+ */
73
+ readonly metadata: pulumi.Output<string>;
74
+ /**
75
+ * The name of the Policy Exemption. Changing this forces a new resource to be created.
76
+ */
77
+ readonly name: pulumi.Output<string>;
78
+ /**
79
+ * The ID of the Policy Assignment to be exempted at the specified Scope.
80
+ */
81
+ readonly policyAssignmentId: pulumi.Output<string>;
82
+ /**
83
+ * The policy definition reference ID list when the associated policy assignment is an assignment of a policy set definition.
84
+ */
85
+ readonly policyDefinitionReferenceIds: pulumi.Output<string[] | undefined>;
86
+ /**
87
+ * The Subscription ID where the Policy Exemption should be applied. Changing this forces a new resource to be created.
88
+ */
89
+ readonly subscriptionId: pulumi.Output<string>;
90
+ /**
91
+ * Create a SubscriptionPolicyExemption resource with the given unique name, arguments, and options.
92
+ *
93
+ * @param name The _unique_ name of the resource.
94
+ * @param args The arguments to use to populate this resource's properties.
95
+ * @param opts A bag of options that control this resource's behavior.
96
+ */
97
+ constructor(name: string, args: SubscriptionPolicyExemptionArgs, opts?: pulumi.CustomResourceOptions);
98
+ }
99
+ /**
100
+ * Input properties used for looking up and filtering SubscriptionPolicyExemption resources.
101
+ */
102
+ export interface SubscriptionPolicyExemptionState {
103
+ /**
104
+ * A description to use for this Policy Exemption.
105
+ */
106
+ description?: pulumi.Input<string>;
107
+ /**
108
+ * A friendly display name to use for this Policy Exemption.
109
+ */
110
+ displayName?: pulumi.Input<string>;
111
+ /**
112
+ * The category of this policy exemption. Possible values are `Waiver` and `Mitigated`.
113
+ */
114
+ exemptionCategory?: pulumi.Input<string>;
115
+ /**
116
+ * The expiration date and time in UTC ISO 8601 format of this policy exemption.
117
+ */
118
+ expiresOn?: pulumi.Input<string>;
119
+ /**
120
+ * The metadata for this policy exemption. This is a JSON string representing additional metadata that should be stored with the policy exemption.
121
+ */
122
+ metadata?: pulumi.Input<string>;
123
+ /**
124
+ * The name of the Policy Exemption. Changing this forces a new resource to be created.
125
+ */
126
+ name?: pulumi.Input<string>;
127
+ /**
128
+ * The ID of the Policy Assignment to be exempted at the specified Scope.
129
+ */
130
+ policyAssignmentId?: pulumi.Input<string>;
131
+ /**
132
+ * The policy definition reference ID list when the associated policy assignment is an assignment of a policy set definition.
133
+ */
134
+ policyDefinitionReferenceIds?: pulumi.Input<pulumi.Input<string>[]>;
135
+ /**
136
+ * The Subscription ID where the Policy Exemption should be applied. Changing this forces a new resource to be created.
137
+ */
138
+ subscriptionId?: pulumi.Input<string>;
139
+ }
140
+ /**
141
+ * The set of arguments for constructing a SubscriptionPolicyExemption resource.
142
+ */
143
+ export interface SubscriptionPolicyExemptionArgs {
144
+ /**
145
+ * A description to use for this Policy Exemption.
146
+ */
147
+ description?: pulumi.Input<string>;
148
+ /**
149
+ * A friendly display name to use for this Policy Exemption.
150
+ */
151
+ displayName?: pulumi.Input<string>;
152
+ /**
153
+ * The category of this policy exemption. Possible values are `Waiver` and `Mitigated`.
154
+ */
155
+ exemptionCategory: pulumi.Input<string>;
156
+ /**
157
+ * The expiration date and time in UTC ISO 8601 format of this policy exemption.
158
+ */
159
+ expiresOn?: pulumi.Input<string>;
160
+ /**
161
+ * The metadata for this policy exemption. This is a JSON string representing additional metadata that should be stored with the policy exemption.
162
+ */
163
+ metadata?: pulumi.Input<string>;
164
+ /**
165
+ * The name of the Policy Exemption. Changing this forces a new resource to be created.
166
+ */
167
+ name?: pulumi.Input<string>;
168
+ /**
169
+ * The ID of the Policy Assignment to be exempted at the specified Scope.
170
+ */
171
+ policyAssignmentId: pulumi.Input<string>;
172
+ /**
173
+ * The policy definition reference ID list when the associated policy assignment is an assignment of a policy set definition.
174
+ */
175
+ policyDefinitionReferenceIds?: pulumi.Input<pulumi.Input<string>[]>;
176
+ /**
177
+ * The Subscription ID where the Policy Exemption should be applied. Changing this forces a new resource to be created.
178
+ */
179
+ subscriptionId: pulumi.Input<string>;
180
+ }