@pulumi/azure 4.32.0 → 4.34.0-alpha.1642543637

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 (262) hide show
  1. package/aadb2c/directory.d.ts +177 -0
  2. package/aadb2c/directory.js +108 -0
  3. package/aadb2c/directory.js.map +1 -0
  4. package/aadb2c/getDirectory.d.ts +82 -0
  5. package/aadb2c/getDirectory.js +41 -0
  6. package/aadb2c/getDirectory.js.map +1 -0
  7. package/aadb2c/index.d.ts +2 -0
  8. package/{costmanagement → aadb2c}/index.js +6 -5
  9. package/aadb2c/index.js.map +1 -0
  10. package/apimanagement/apiDiagnostic.d.ts +1 -1
  11. package/apimanagement/apiDiagnostic.js +1 -1
  12. package/apimanagement/apiSchema.d.ts +1 -1
  13. package/apimanagement/apiSchema.js +1 -1
  14. package/apimanagement/apiTag.d.ts +91 -0
  15. package/apimanagement/apiTag.js +87 -0
  16. package/apimanagement/apiTag.js.map +1 -0
  17. package/apimanagement/customDomain.d.ts +6 -0
  18. package/apimanagement/customDomain.js.map +1 -1
  19. package/apimanagement/identityProviderAadb2c.d.ts +1 -1
  20. package/apimanagement/identityProviderAadb2c.js +1 -1
  21. package/apimanagement/index.d.ts +1 -0
  22. package/apimanagement/index.js +5 -0
  23. package/apimanagement/index.js.map +1 -1
  24. package/apimanagement/logger.d.ts +1 -1
  25. package/apimanagement/logger.js +1 -1
  26. package/appplatform/springCloudCertificate.d.ts +14 -2
  27. package/appplatform/springCloudCertificate.js +2 -3
  28. package/appplatform/springCloudCertificate.js.map +1 -1
  29. package/appservice/environmentV3.d.ts +12 -53
  30. package/appservice/environmentV3.js +0 -50
  31. package/appservice/environmentV3.js.map +1 -1
  32. package/appservice/index.d.ts +1 -0
  33. package/appservice/index.js +5 -0
  34. package/appservice/index.js.map +1 -1
  35. package/appservice/slotCustomHostnameBinding.d.ts +135 -0
  36. package/appservice/slotCustomHostnameBinding.js +108 -0
  37. package/appservice/slotCustomHostnameBinding.js.map +1 -0
  38. package/appservice/staticSite.d.ts +1 -1
  39. package/appservice/staticSite.js +1 -1
  40. package/cdn/endpointCustomDomain.d.ts +25 -0
  41. package/cdn/endpointCustomDomain.js +4 -0
  42. package/cdn/endpointCustomDomain.js.map +1 -1
  43. package/compute/diskPool.d.ts +170 -0
  44. package/compute/diskPool.js +119 -0
  45. package/compute/diskPool.js.map +1 -0
  46. package/compute/diskPoolManagedDiskAttachment.d.ts +143 -0
  47. package/compute/diskPoolManagedDiskAttachment.js +142 -0
  48. package/compute/diskPoolManagedDiskAttachment.js.map +1 -0
  49. package/compute/getSharedImageVersion.d.ts +9 -0
  50. package/compute/getSharedImageVersion.js +1 -0
  51. package/compute/getSharedImageVersion.js.map +1 -1
  52. package/compute/index.d.ts +2 -0
  53. package/compute/index.js +10 -0
  54. package/compute/index.js.map +1 -1
  55. package/compute/linuxVirtualMachine.d.ts +12 -0
  56. package/compute/linuxVirtualMachine.js +2 -0
  57. package/compute/linuxVirtualMachine.js.map +1 -1
  58. package/compute/linuxVirtualMachineScaleSet.d.ts +12 -0
  59. package/compute/linuxVirtualMachineScaleSet.js +2 -0
  60. package/compute/linuxVirtualMachineScaleSet.js.map +1 -1
  61. package/compute/managedDisk.d.ts +15 -3
  62. package/compute/managedDisk.js +2 -0
  63. package/compute/managedDisk.js.map +1 -1
  64. package/compute/windowsVirtualMachine.d.ts +12 -0
  65. package/compute/windowsVirtualMachine.js +2 -0
  66. package/compute/windowsVirtualMachine.js.map +1 -1
  67. package/compute/windowsVirtualMachineScaleSet.d.ts +12 -0
  68. package/compute/windowsVirtualMachineScaleSet.js +2 -0
  69. package/compute/windowsVirtualMachineScaleSet.js.map +1 -1
  70. package/containerservice/kubernetesCluster.d.ts +7 -4
  71. package/containerservice/kubernetesCluster.js +2 -0
  72. package/containerservice/kubernetesCluster.js.map +1 -1
  73. package/containerservice/kubernetesClusterNodePool.d.ts +24 -0
  74. package/containerservice/kubernetesClusterNodePool.js +4 -0
  75. package/containerservice/kubernetesClusterNodePool.js.map +1 -1
  76. package/cosmosdb/mongoCollection.d.ts +4 -0
  77. package/cosmosdb/mongoCollection.js +4 -0
  78. package/cosmosdb/mongoCollection.js.map +1 -1
  79. package/datafactory/index.d.ts +1 -0
  80. package/datafactory/index.js +5 -0
  81. package/datafactory/index.js.map +1 -1
  82. package/datafactory/linkedServiceOdbc.d.ts +209 -0
  83. package/datafactory/linkedServiceOdbc.js +118 -0
  84. package/datafactory/linkedServiceOdbc.js.map +1 -0
  85. package/dataprotection/backupInstancePostgresql.d.ts +1 -1
  86. package/dataprotection/backupInstancePostgresql.js +1 -1
  87. package/desktopvirtualization/index.d.ts +1 -0
  88. package/desktopvirtualization/index.js +5 -0
  89. package/desktopvirtualization/index.js.map +1 -1
  90. package/desktopvirtualization/scalingPlan.d.ts +268 -0
  91. package/desktopvirtualization/scalingPlan.js +183 -0
  92. package/desktopvirtualization/scalingPlan.js.map +1 -0
  93. package/eventgrid/domain.d.ts +36 -0
  94. package/eventgrid/domain.js +6 -0
  95. package/eventgrid/domain.js.map +1 -1
  96. package/eventgrid/systemTopicEventSubscription.d.ts +1 -1
  97. package/eventgrid/systemTopicEventSubscription.js +1 -1
  98. package/eventgrid/topic.d.ts +12 -0
  99. package/eventgrid/topic.js +2 -0
  100. package/eventgrid/topic.js.map +1 -1
  101. package/eventhub/domain.d.ts +36 -0
  102. package/eventhub/domain.js +6 -0
  103. package/eventhub/domain.js.map +1 -1
  104. package/eventhub/eventGridTopic.d.ts +12 -0
  105. package/eventhub/eventGridTopic.js +2 -0
  106. package/eventhub/eventGridTopic.js.map +1 -1
  107. package/eventhub/namespaceAuthorizationRule.d.ts +22 -11
  108. package/eventhub/namespaceAuthorizationRule.js +3 -8
  109. package/eventhub/namespaceAuthorizationRule.js.map +1 -1
  110. package/eventhub/queue.d.ts +22 -11
  111. package/eventhub/queue.js +3 -8
  112. package/eventhub/queue.js.map +1 -1
  113. package/eventhub/queueAuthorizationRule.d.ts +27 -18
  114. package/eventhub/queueAuthorizationRule.js +4 -14
  115. package/eventhub/queueAuthorizationRule.js.map +1 -1
  116. package/eventhub/subscription.d.ts +29 -20
  117. package/eventhub/subscription.js +4 -14
  118. package/eventhub/subscription.js.map +1 -1
  119. package/eventhub/subscriptionRule.d.ts +31 -25
  120. package/eventhub/subscriptionRule.js +5 -21
  121. package/eventhub/subscriptionRule.js.map +1 -1
  122. package/eventhub/topic.d.ts +22 -14
  123. package/eventhub/topic.js +3 -8
  124. package/eventhub/topic.js.map +1 -1
  125. package/eventhub/topicAuthorizationRule.d.ts +27 -20
  126. package/eventhub/topicAuthorizationRule.js +4 -16
  127. package/eventhub/topicAuthorizationRule.js.map +1 -1
  128. package/frontdoor/rulesEngine.d.ts +8 -0
  129. package/frontdoor/rulesEngine.js +8 -0
  130. package/frontdoor/rulesEngine.js.map +1 -1
  131. package/hdinsight/hbaseCluster.d.ts +12 -0
  132. package/hdinsight/hbaseCluster.js +2 -0
  133. package/hdinsight/hbaseCluster.js.map +1 -1
  134. package/hpc/cacheBlobTarget.d.ts +1 -1
  135. package/hpc/cacheBlobTarget.js +1 -1
  136. package/hsm/module.d.ts +2 -2
  137. package/hsm/module.js +2 -2
  138. package/index.d.ts +3 -2
  139. package/index.js +7 -5
  140. package/index.js.map +1 -1
  141. package/iot/endpointEventhub.d.ts +9 -0
  142. package/iot/endpointEventhub.js.map +1 -1
  143. package/iot/endpointServicebusQueue.d.ts +37 -1
  144. package/iot/endpointServicebusQueue.js +2 -3
  145. package/iot/endpointServicebusQueue.js.map +1 -1
  146. package/iot/endpointServicebusTopic.d.ts +37 -1
  147. package/iot/endpointServicebusTopic.js +2 -3
  148. package/iot/endpointServicebusTopic.js.map +1 -1
  149. package/iot/endpointStorageContainer.d.ts +25 -7
  150. package/iot/endpointStorageContainer.js +2 -3
  151. package/iot/endpointStorageContainer.js.map +1 -1
  152. package/iot/fallbackRoute.d.ts +12 -0
  153. package/iot/fallbackRoute.js +2 -0
  154. package/iot/fallbackRoute.js.map +1 -1
  155. package/iot/ioTHub.d.ts +20 -0
  156. package/iot/ioTHub.js +4 -0
  157. package/iot/ioTHub.js.map +1 -1
  158. package/iot/route.d.ts +3 -3
  159. package/loadtest/index.d.ts +1 -0
  160. package/loadtest/index.js +33 -0
  161. package/loadtest/index.js.map +1 -0
  162. package/loadtest/loadTest.d.ts +122 -0
  163. package/loadtest/loadTest.js +86 -0
  164. package/loadtest/loadTest.js.map +1 -0
  165. package/loganalytics/linkedStorageAccount.d.ts +3 -3
  166. package/logicapps/standard.d.ts +4 -4
  167. package/logicapps/standard.js +4 -4
  168. package/mariadb/virtualNetworkRule.d.ts +1 -1
  169. package/mariadb/virtualNetworkRule.js +1 -1
  170. package/media/streamingEndpoint.d.ts +1 -1
  171. package/media/streamingEndpoint.js +1 -1
  172. package/monitoring/actionGroup.d.ts +17 -0
  173. package/monitoring/actionGroup.js +7 -0
  174. package/monitoring/actionGroup.js.map +1 -1
  175. package/monitoring/getActionGroup.d.ts +13 -1
  176. package/monitoring/getActionGroup.js +1 -0
  177. package/monitoring/getActionGroup.js.map +1 -1
  178. package/mssql/elasticPool.d.ts +3 -3
  179. package/mssql/elasticPool.js +3 -3
  180. package/mssql/serverExtendedAuditingPolicy.d.ts +92 -0
  181. package/mssql/serverExtendedAuditingPolicy.js +82 -0
  182. package/mssql/serverExtendedAuditingPolicy.js.map +1 -1
  183. package/mysql/server.d.ts +3 -3
  184. package/network/applicationGateway.d.ts +24 -0
  185. package/network/applicationGateway.js +4 -0
  186. package/network/applicationGateway.js.map +1 -1
  187. package/network/ddosProtectionPlan.d.ts +2 -0
  188. package/network/ddosProtectionPlan.js +2 -0
  189. package/network/ddosProtectionPlan.js.map +1 -1
  190. package/network/virtualNetwork.d.ts +0 -12
  191. package/network/virtualNetwork.js +0 -12
  192. package/network/virtualNetwork.js.map +1 -1
  193. package/network/virtualNetworkGatewayConnection.d.ts +21 -3
  194. package/network/virtualNetworkGatewayConnection.js +2 -0
  195. package/network/virtualNetworkGatewayConnection.js.map +1 -1
  196. package/operationalinsights/analyticsWorkspace.d.ts +13 -1
  197. package/operationalinsights/analyticsWorkspace.js +2 -0
  198. package/operationalinsights/analyticsWorkspace.js.map +1 -1
  199. package/package.json +2 -2
  200. package/package.json.dev +1 -1
  201. package/postgresql/flexibleServer.d.ts +12 -0
  202. package/postgresql/flexibleServer.js +2 -0
  203. package/postgresql/flexibleServer.js.map +1 -1
  204. package/purview/account.d.ts +8 -0
  205. package/purview/account.js +2 -0
  206. package/purview/account.js.map +1 -1
  207. package/recoveryservices/vault.d.ts +24 -0
  208. package/recoveryservices/vault.js +4 -0
  209. package/recoveryservices/vault.js.map +1 -1
  210. package/sentinel/watchlist.d.ts +1 -1
  211. package/sentinel/watchlist.js +1 -1
  212. package/servicebus/namespaceAuthorizationRule.d.ts +22 -11
  213. package/servicebus/namespaceAuthorizationRule.js +3 -8
  214. package/servicebus/namespaceAuthorizationRule.js.map +1 -1
  215. package/servicebus/namespaceNetworkRuleSet.d.ts +22 -11
  216. package/servicebus/namespaceNetworkRuleSet.js +3 -8
  217. package/servicebus/namespaceNetworkRuleSet.js.map +1 -1
  218. package/servicebus/queue.d.ts +22 -11
  219. package/servicebus/queue.js +3 -8
  220. package/servicebus/queue.js.map +1 -1
  221. package/servicebus/queueAuthorizationRule.d.ts +27 -18
  222. package/servicebus/queueAuthorizationRule.js +4 -14
  223. package/servicebus/queueAuthorizationRule.js.map +1 -1
  224. package/servicebus/subscription.d.ts +29 -20
  225. package/servicebus/subscription.js +4 -14
  226. package/servicebus/subscription.js.map +1 -1
  227. package/servicebus/subscriptionRule.d.ts +31 -25
  228. package/servicebus/subscriptionRule.js +5 -21
  229. package/servicebus/subscriptionRule.js.map +1 -1
  230. package/servicebus/topic.d.ts +22 -14
  231. package/servicebus/topic.js +3 -8
  232. package/servicebus/topic.js.map +1 -1
  233. package/servicebus/topicAuthorizationRule.d.ts +27 -20
  234. package/servicebus/topicAuthorizationRule.js +4 -16
  235. package/servicebus/topicAuthorizationRule.js.map +1 -1
  236. package/siterecovery/protectionContainer.d.ts +3 -3
  237. package/siterecovery/protectionContainerMapping.d.ts +3 -3
  238. package/siterecovery/replicatedVM.d.ts +3 -3
  239. package/siterecovery/replicationPolicy.d.ts +3 -3
  240. package/sql/getSqlManagedInstance.d.ts +127 -0
  241. package/sql/getSqlManagedInstance.js +87 -0
  242. package/sql/getSqlManagedInstance.js.map +1 -0
  243. package/sql/index.d.ts +1 -0
  244. package/sql/index.js +1 -0
  245. package/sql/index.js.map +1 -1
  246. package/storage/account.d.ts +12 -0
  247. package/storage/account.js +2 -0
  248. package/storage/account.js.map +1 -1
  249. package/storage/disksPool.d.ts +19 -17
  250. package/storage/disksPool.js +4 -2
  251. package/storage/disksPool.js.map +1 -1
  252. package/storage/getAccount.d.ts +6 -0
  253. package/storage/getAccount.js.map +1 -1
  254. package/storage/shareDirectory.d.ts +1 -1
  255. package/storage/shareDirectory.js +1 -1
  256. package/types/input.d.ts +246 -35
  257. package/types/output.d.ts +237 -35
  258. package/costmanagement/index.d.ts +0 -1
  259. package/costmanagement/index.js.map +0 -1
  260. package/costmanagement/resourceGroupExport.d.ts +0 -176
  261. package/costmanagement/resourceGroupExport.js +0 -126
  262. package/costmanagement/resourceGroupExport.js.map +0 -1
@@ -0,0 +1,177 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Manages an AAD B2C Directory.
4
+ *
5
+ * ## Example Usage
6
+ *
7
+ * ```typescript
8
+ * import * as pulumi from "@pulumi/pulumi";
9
+ * import * as azure from "@pulumi/azure";
10
+ *
11
+ * const example = new azure.aadb2c.Directory("example", {
12
+ * countryCode: "US",
13
+ * dataResidencyLocation: "United States",
14
+ * displayName: "example-b2c-tenant",
15
+ * domainName: "exampleb2ctenant.onmicrosoft.com",
16
+ * resourceGroupName: "example-rg",
17
+ * skuName: "PremiumP1",
18
+ * });
19
+ * ```
20
+ *
21
+ * ## Import
22
+ *
23
+ * AAD B2C Directories can be imported using the `resource id`, e.g.
24
+ *
25
+ * ```sh
26
+ * $ pulumi import azure:aadb2c/directory:Directory example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/example-resource-group/providers/Microsoft.AzureActiveDirectory/b2cDirectories/directory-name
27
+ * ```
28
+ */
29
+ export declare class Directory extends pulumi.CustomResource {
30
+ /**
31
+ * Get an existing Directory resource's state with the given name, ID, and optional extra
32
+ * properties used to qualify the lookup.
33
+ *
34
+ * @param name The _unique_ name of the resulting resource.
35
+ * @param id The _unique_ provider ID of the resource to lookup.
36
+ * @param state Any extra arguments used during the lookup.
37
+ * @param opts Optional settings to control the behavior of the CustomResource.
38
+ */
39
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: DirectoryState, opts?: pulumi.CustomResourceOptions): Directory;
40
+ /**
41
+ * Returns true if the given object is an instance of Directory. This is designed to work even
42
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
43
+ */
44
+ static isInstance(obj: any): obj is Directory;
45
+ /**
46
+ * The type of billing for the AAD B2C tenant. Possible values include: `MAU` or `Auths`.
47
+ */
48
+ readonly billingType: pulumi.Output<string>;
49
+ /**
50
+ * Country code of the B2C tenant. The `countryCode` should be valid for the specified `dataResidencyLocation`. See [official docs](https://aka.ms/B2CDataResidency) for valid country codes. Required when creating a new resource. Changing this forces a new AAD B2C Directory to be created.
51
+ */
52
+ readonly countryCode: pulumi.Output<string>;
53
+ /**
54
+ * Location in which the B2C tenant is hosted and data resides. The `dataResidencyLocation` should be valid for the specified `countryCode`. See [official docs](https://aka.ms/B2CDataResidenc) for more information. Changing this forces a new AAD B2C Directory to be created.
55
+ */
56
+ readonly dataResidencyLocation: pulumi.Output<string>;
57
+ /**
58
+ * The initial display name of the B2C tenant. Required when creating a new resource. Changing this forces a new AAD B2C Directory to be created.
59
+ */
60
+ readonly displayName: pulumi.Output<string>;
61
+ /**
62
+ * Domain name of the B2C tenant, including the `.onmicrosoft.com` suffix. Changing this forces a new AAD B2C Directory to be created.
63
+ */
64
+ readonly domainName: pulumi.Output<string>;
65
+ /**
66
+ * The date from which the billing type took effect. May not be populated until after the first billing cycle.
67
+ */
68
+ readonly effectiveStartDate: pulumi.Output<string>;
69
+ /**
70
+ * The name of the Resource Group where the AAD B2C Directory should exist. Changing this forces a new AAD B2C Directory to be created.
71
+ */
72
+ readonly resourceGroupName: pulumi.Output<string>;
73
+ /**
74
+ * Billing SKU for the B2C tenant. Must be one of: `PremiumP1` or `PremiumP2` (`Standard` is not supported). See [official docs](https://aka.ms/b2cBilling) for more information.
75
+ */
76
+ readonly skuName: pulumi.Output<string>;
77
+ /**
78
+ * A mapping of tags which should be assigned to the AAD B2C Directory.
79
+ */
80
+ readonly tags: pulumi.Output<{
81
+ [key: string]: string;
82
+ } | undefined>;
83
+ /**
84
+ * The Tenant ID for the AAD B2C tenant.
85
+ */
86
+ readonly tenantId: pulumi.Output<string>;
87
+ /**
88
+ * Create a Directory resource with the given unique name, arguments, and options.
89
+ *
90
+ * @param name The _unique_ name of the resource.
91
+ * @param args The arguments to use to populate this resource's properties.
92
+ * @param opts A bag of options that control this resource's behavior.
93
+ */
94
+ constructor(name: string, args: DirectoryArgs, opts?: pulumi.CustomResourceOptions);
95
+ }
96
+ /**
97
+ * Input properties used for looking up and filtering Directory resources.
98
+ */
99
+ export interface DirectoryState {
100
+ /**
101
+ * The type of billing for the AAD B2C tenant. Possible values include: `MAU` or `Auths`.
102
+ */
103
+ billingType?: pulumi.Input<string>;
104
+ /**
105
+ * Country code of the B2C tenant. The `countryCode` should be valid for the specified `dataResidencyLocation`. See [official docs](https://aka.ms/B2CDataResidency) for valid country codes. Required when creating a new resource. Changing this forces a new AAD B2C Directory to be created.
106
+ */
107
+ countryCode?: pulumi.Input<string>;
108
+ /**
109
+ * Location in which the B2C tenant is hosted and data resides. The `dataResidencyLocation` should be valid for the specified `countryCode`. See [official docs](https://aka.ms/B2CDataResidenc) for more information. Changing this forces a new AAD B2C Directory to be created.
110
+ */
111
+ dataResidencyLocation?: pulumi.Input<string>;
112
+ /**
113
+ * The initial display name of the B2C tenant. Required when creating a new resource. Changing this forces a new AAD B2C Directory to be created.
114
+ */
115
+ displayName?: pulumi.Input<string>;
116
+ /**
117
+ * Domain name of the B2C tenant, including the `.onmicrosoft.com` suffix. Changing this forces a new AAD B2C Directory to be created.
118
+ */
119
+ domainName?: pulumi.Input<string>;
120
+ /**
121
+ * The date from which the billing type took effect. May not be populated until after the first billing cycle.
122
+ */
123
+ effectiveStartDate?: pulumi.Input<string>;
124
+ /**
125
+ * The name of the Resource Group where the AAD B2C Directory should exist. Changing this forces a new AAD B2C Directory to be created.
126
+ */
127
+ resourceGroupName?: pulumi.Input<string>;
128
+ /**
129
+ * Billing SKU for the B2C tenant. Must be one of: `PremiumP1` or `PremiumP2` (`Standard` is not supported). See [official docs](https://aka.ms/b2cBilling) for more information.
130
+ */
131
+ skuName?: pulumi.Input<string>;
132
+ /**
133
+ * A mapping of tags which should be assigned to the AAD B2C Directory.
134
+ */
135
+ tags?: pulumi.Input<{
136
+ [key: string]: pulumi.Input<string>;
137
+ }>;
138
+ /**
139
+ * The Tenant ID for the AAD B2C tenant.
140
+ */
141
+ tenantId?: pulumi.Input<string>;
142
+ }
143
+ /**
144
+ * The set of arguments for constructing a Directory resource.
145
+ */
146
+ export interface DirectoryArgs {
147
+ /**
148
+ * Country code of the B2C tenant. The `countryCode` should be valid for the specified `dataResidencyLocation`. See [official docs](https://aka.ms/B2CDataResidency) for valid country codes. Required when creating a new resource. Changing this forces a new AAD B2C Directory to be created.
149
+ */
150
+ countryCode?: pulumi.Input<string>;
151
+ /**
152
+ * Location in which the B2C tenant is hosted and data resides. The `dataResidencyLocation` should be valid for the specified `countryCode`. See [official docs](https://aka.ms/B2CDataResidenc) for more information. Changing this forces a new AAD B2C Directory to be created.
153
+ */
154
+ dataResidencyLocation: pulumi.Input<string>;
155
+ /**
156
+ * The initial display name of the B2C tenant. Required when creating a new resource. Changing this forces a new AAD B2C Directory to be created.
157
+ */
158
+ displayName?: pulumi.Input<string>;
159
+ /**
160
+ * Domain name of the B2C tenant, including the `.onmicrosoft.com` suffix. Changing this forces a new AAD B2C Directory to be created.
161
+ */
162
+ domainName: pulumi.Input<string>;
163
+ /**
164
+ * The name of the Resource Group where the AAD B2C Directory should exist. Changing this forces a new AAD B2C Directory to be created.
165
+ */
166
+ resourceGroupName: pulumi.Input<string>;
167
+ /**
168
+ * Billing SKU for the B2C tenant. Must be one of: `PremiumP1` or `PremiumP2` (`Standard` is not supported). See [official docs](https://aka.ms/b2cBilling) for more information.
169
+ */
170
+ skuName: pulumi.Input<string>;
171
+ /**
172
+ * A mapping of tags which should be assigned to the AAD B2C Directory.
173
+ */
174
+ tags?: pulumi.Input<{
175
+ [key: string]: pulumi.Input<string>;
176
+ }>;
177
+ }
@@ -0,0 +1,108 @@
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.Directory = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * Manages an AAD B2C Directory.
10
+ *
11
+ * ## Example Usage
12
+ *
13
+ * ```typescript
14
+ * import * as pulumi from "@pulumi/pulumi";
15
+ * import * as azure from "@pulumi/azure";
16
+ *
17
+ * const example = new azure.aadb2c.Directory("example", {
18
+ * countryCode: "US",
19
+ * dataResidencyLocation: "United States",
20
+ * displayName: "example-b2c-tenant",
21
+ * domainName: "exampleb2ctenant.onmicrosoft.com",
22
+ * resourceGroupName: "example-rg",
23
+ * skuName: "PremiumP1",
24
+ * });
25
+ * ```
26
+ *
27
+ * ## Import
28
+ *
29
+ * AAD B2C Directories can be imported using the `resource id`, e.g.
30
+ *
31
+ * ```sh
32
+ * $ pulumi import azure:aadb2c/directory:Directory example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/example-resource-group/providers/Microsoft.AzureActiveDirectory/b2cDirectories/directory-name
33
+ * ```
34
+ */
35
+ class Directory extends pulumi.CustomResource {
36
+ constructor(name, argsOrState, opts) {
37
+ let inputs = {};
38
+ opts = opts || {};
39
+ if (opts.id) {
40
+ const state = argsOrState;
41
+ inputs["billingType"] = state ? state.billingType : undefined;
42
+ inputs["countryCode"] = state ? state.countryCode : undefined;
43
+ inputs["dataResidencyLocation"] = state ? state.dataResidencyLocation : undefined;
44
+ inputs["displayName"] = state ? state.displayName : undefined;
45
+ inputs["domainName"] = state ? state.domainName : undefined;
46
+ inputs["effectiveStartDate"] = state ? state.effectiveStartDate : undefined;
47
+ inputs["resourceGroupName"] = state ? state.resourceGroupName : undefined;
48
+ inputs["skuName"] = state ? state.skuName : undefined;
49
+ inputs["tags"] = state ? state.tags : undefined;
50
+ inputs["tenantId"] = state ? state.tenantId : undefined;
51
+ }
52
+ else {
53
+ const args = argsOrState;
54
+ if ((!args || args.dataResidencyLocation === undefined) && !opts.urn) {
55
+ throw new Error("Missing required property 'dataResidencyLocation'");
56
+ }
57
+ if ((!args || args.domainName === undefined) && !opts.urn) {
58
+ throw new Error("Missing required property 'domainName'");
59
+ }
60
+ if ((!args || args.resourceGroupName === undefined) && !opts.urn) {
61
+ throw new Error("Missing required property 'resourceGroupName'");
62
+ }
63
+ if ((!args || args.skuName === undefined) && !opts.urn) {
64
+ throw new Error("Missing required property 'skuName'");
65
+ }
66
+ inputs["countryCode"] = args ? args.countryCode : undefined;
67
+ inputs["dataResidencyLocation"] = args ? args.dataResidencyLocation : undefined;
68
+ inputs["displayName"] = args ? args.displayName : undefined;
69
+ inputs["domainName"] = args ? args.domainName : undefined;
70
+ inputs["resourceGroupName"] = args ? args.resourceGroupName : undefined;
71
+ inputs["skuName"] = args ? args.skuName : undefined;
72
+ inputs["tags"] = args ? args.tags : undefined;
73
+ inputs["billingType"] = undefined /*out*/;
74
+ inputs["effectiveStartDate"] = undefined /*out*/;
75
+ inputs["tenantId"] = undefined /*out*/;
76
+ }
77
+ if (!opts.version) {
78
+ opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
79
+ }
80
+ super(Directory.__pulumiType, name, inputs, opts);
81
+ }
82
+ /**
83
+ * Get an existing Directory resource's state with the given name, ID, and optional extra
84
+ * properties used to qualify the lookup.
85
+ *
86
+ * @param name The _unique_ name of the resulting resource.
87
+ * @param id The _unique_ provider ID of the resource to lookup.
88
+ * @param state Any extra arguments used during the lookup.
89
+ * @param opts Optional settings to control the behavior of the CustomResource.
90
+ */
91
+ static get(name, id, state, opts) {
92
+ return new Directory(name, state, Object.assign(Object.assign({}, opts), { id: id }));
93
+ }
94
+ /**
95
+ * Returns true if the given object is an instance of Directory. This is designed to work even
96
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
97
+ */
98
+ static isInstance(obj) {
99
+ if (obj === undefined || obj === null) {
100
+ return false;
101
+ }
102
+ return obj['__pulumiType'] === Directory.__pulumiType;
103
+ }
104
+ }
105
+ exports.Directory = Directory;
106
+ /** @internal */
107
+ Directory.__pulumiType = 'azure:aadb2c/directory:Directory';
108
+ //# sourceMappingURL=directory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"directory.js","sourceRoot":"","sources":["../../aadb2c/directory.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,82 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Use this data source to access information about an existing AAD B2C Directory.
4
+ *
5
+ * ## Example Usage
6
+ *
7
+ * ```typescript
8
+ * import * as pulumi from "@pulumi/pulumi";
9
+ * import * as azure from "@pulumi/azure";
10
+ *
11
+ * const example = azure.aadb2c.getDirectory({
12
+ * resourceGroupName: "example-rg",
13
+ * domainName: "exampleb2ctenant.onmicrosoft.com",
14
+ * });
15
+ * export const tenantId = example.then(example => example.tenantId);
16
+ * ```
17
+ */
18
+ export declare function getDirectory(args: GetDirectoryArgs, opts?: pulumi.InvokeOptions): Promise<GetDirectoryResult>;
19
+ /**
20
+ * A collection of arguments for invoking getDirectory.
21
+ */
22
+ export interface GetDirectoryArgs {
23
+ /**
24
+ * Domain name of the B2C tenant, including the `.onmicrosoft.com` suffix.
25
+ */
26
+ domainName: string;
27
+ /**
28
+ * The name of the Resource Group where the AAD B2C Directory exists.
29
+ */
30
+ resourceGroupName: string;
31
+ }
32
+ /**
33
+ * A collection of values returned by getDirectory.
34
+ */
35
+ export interface GetDirectoryResult {
36
+ /**
37
+ * The type of billing for the AAD B2C tenant. Possible values include: `MAU` or `Auths`.
38
+ */
39
+ readonly billingType: string;
40
+ /**
41
+ * Location in which the B2C tenant is hosted and data resides. See [official docs](https://aka.ms/B2CDataResidenc) for more information.
42
+ */
43
+ readonly dataResidencyLocation: string;
44
+ readonly domainName: string;
45
+ /**
46
+ * The date from which the billing type took effect. May not be populated until after the first billing cycle.
47
+ */
48
+ readonly effectiveStartDate: string;
49
+ /**
50
+ * The provider-assigned unique ID for this managed resource.
51
+ */
52
+ readonly id: string;
53
+ readonly resourceGroupName: string;
54
+ /**
55
+ * Billing SKU for the B2C tenant. See [official docs](https://aka.ms/b2cBilling) for more information.
56
+ */
57
+ readonly skuName: string;
58
+ /**
59
+ * A mapping of tags assigned to the AAD B2C Directory.
60
+ */
61
+ readonly tags: {
62
+ [key: string]: string;
63
+ };
64
+ /**
65
+ * The Tenant ID for the AAD B2C tenant.
66
+ */
67
+ readonly tenantId: string;
68
+ }
69
+ export declare function getDirectoryOutput(args: GetDirectoryOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetDirectoryResult>;
70
+ /**
71
+ * A collection of arguments for invoking getDirectory.
72
+ */
73
+ export interface GetDirectoryOutputArgs {
74
+ /**
75
+ * Domain name of the B2C tenant, including the `.onmicrosoft.com` suffix.
76
+ */
77
+ domainName: pulumi.Input<string>;
78
+ /**
79
+ * The name of the Resource Group where the AAD B2C Directory exists.
80
+ */
81
+ resourceGroupName: pulumi.Input<string>;
82
+ }
@@ -0,0 +1,41 @@
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.getDirectoryOutput = exports.getDirectory = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * Use this data source to access information about an existing AAD B2C Directory.
10
+ *
11
+ * ## Example Usage
12
+ *
13
+ * ```typescript
14
+ * import * as pulumi from "@pulumi/pulumi";
15
+ * import * as azure from "@pulumi/azure";
16
+ *
17
+ * const example = azure.aadb2c.getDirectory({
18
+ * resourceGroupName: "example-rg",
19
+ * domainName: "exampleb2ctenant.onmicrosoft.com",
20
+ * });
21
+ * export const tenantId = example.then(example => example.tenantId);
22
+ * ```
23
+ */
24
+ function getDirectory(args, opts) {
25
+ if (!opts) {
26
+ opts = {};
27
+ }
28
+ if (!opts.version) {
29
+ opts.version = utilities.getVersion();
30
+ }
31
+ return pulumi.runtime.invoke("azure:aadb2c/getDirectory:getDirectory", {
32
+ "domainName": args.domainName,
33
+ "resourceGroupName": args.resourceGroupName,
34
+ }, opts);
35
+ }
36
+ exports.getDirectory = getDirectory;
37
+ function getDirectoryOutput(args, opts) {
38
+ return pulumi.output(args).apply(a => getDirectory(a, opts));
39
+ }
40
+ exports.getDirectoryOutput = getDirectoryOutput;
41
+ //# sourceMappingURL=getDirectory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getDirectory.js","sourceRoot":"","sources":["../../aadb2c/getDirectory.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;GAeG;AACH,SAAgB,YAAY,CAAC,IAAsB,EAAE,IAA2B;IAC5E,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;QACf,IAAI,CAAC,OAAO,GAAG,SAAS,CAAC,UAAU,EAAE,CAAC;KACzC;IACD,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,wCAAwC,EAAE;QACnE,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,mBAAmB,EAAE,IAAI,CAAC,iBAAiB;KAC9C,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAZD,oCAYC;AAoDD,SAAgB,kBAAkB,CAAC,IAA4B,EAAE,IAA2B;IACxF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,YAAY,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAChE,CAAC;AAFD,gDAEC"}
@@ -0,0 +1,2 @@
1
+ export * from "./directory";
2
+ export * from "./getDirectory";
@@ -15,19 +15,20 @@ Object.defineProperty(exports, "__esModule", { value: true });
15
15
  const pulumi = require("@pulumi/pulumi");
16
16
  const utilities = require("../utilities");
17
17
  // Export members:
18
- __exportStar(require("./resourceGroupExport"), exports);
18
+ __exportStar(require("./directory"), exports);
19
+ __exportStar(require("./getDirectory"), exports);
19
20
  // Import resources to register:
20
- const resourceGroupExport_1 = require("./resourceGroupExport");
21
+ const directory_1 = require("./directory");
21
22
  const _module = {
22
23
  version: utilities.getVersion(),
23
24
  construct: (name, type, urn) => {
24
25
  switch (type) {
25
- case "azure:costmanagement/resourceGroupExport:ResourceGroupExport":
26
- return new resourceGroupExport_1.ResourceGroupExport(name, undefined, { urn });
26
+ case "azure:aadb2c/directory:Directory":
27
+ return new directory_1.Directory(name, undefined, { urn });
27
28
  default:
28
29
  throw new Error(`unknown resource type ${type}`);
29
30
  }
30
31
  },
31
32
  };
32
- pulumi.runtime.registerResourceModule("azure", "costmanagement/resourceGroupExport", _module);
33
+ pulumi.runtime.registerResourceModule("azure", "aadb2c/directory", _module);
33
34
  //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../aadb2c/index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;;;;;;;;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C,kBAAkB;AAClB,8CAA4B;AAC5B,iDAA+B;AAE/B,gCAAgC;AAChC,2CAAwC;AAExC,MAAM,OAAO,GAAG;IACZ,OAAO,EAAE,SAAS,CAAC,UAAU,EAAE;IAC/B,SAAS,EAAE,CAAC,IAAY,EAAE,IAAY,EAAE,GAAW,EAAmB,EAAE;QACpE,QAAQ,IAAI,EAAE;YACV,KAAK,kCAAkC;gBACnC,OAAO,IAAI,qBAAS,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YACvD;gBACI,MAAM,IAAI,KAAK,CAAC,yBAAyB,IAAI,EAAE,CAAC,CAAC;SACxD;IACL,CAAC;CACJ,CAAC;AACF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,OAAO,EAAE,kBAAkB,EAAE,OAAO,CAAC,CAAA"}
@@ -92,7 +92,7 @@ import { input as inputs, output as outputs } from "../types";
92
92
  * API Management Service API Diagnostics Logs can be imported using the `resource id`, e.g.
93
93
  *
94
94
  * ```sh
95
- * $ pulumi import azure:apimanagement/apiDiagnostic:ApiDiagnostic example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.ApiManagement/service/instance1/apis/api1/diagnostics/diagnostic1/loggers/logger1
95
+ * $ pulumi import azure:apimanagement/apiDiagnostic:ApiDiagnostic example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.ApiManagement/service/instance1/apis/api1/diagnostics/diagnostic1
96
96
  * ```
97
97
  */
98
98
  export declare class ApiDiagnostic extends pulumi.CustomResource {
@@ -97,7 +97,7 @@ const utilities = require("../utilities");
97
97
  * API Management Service API Diagnostics Logs can be imported using the `resource id`, e.g.
98
98
  *
99
99
  * ```sh
100
- * $ pulumi import azure:apimanagement/apiDiagnostic:ApiDiagnostic example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.ApiManagement/service/instance1/apis/api1/diagnostics/diagnostic1/loggers/logger1
100
+ * $ pulumi import azure:apimanagement/apiDiagnostic:ApiDiagnostic example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.ApiManagement/service/instance1/apis/api1/diagnostics/diagnostic1
101
101
  * ```
102
102
  */
103
103
  class ApiDiagnostic extends pulumi.CustomResource {
@@ -30,7 +30,7 @@ import * as pulumi from "@pulumi/pulumi";
30
30
  * API Management API Schema's can be imported using the `resource id`, e.g.
31
31
  *
32
32
  * ```sh
33
- * $ pulumi import azure:apimanagement/apiSchema:ApiSchema example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.ApiManagement/service/instance1/schemas/schema1
33
+ * $ pulumi import azure:apimanagement/apiSchema:ApiSchema example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.ApiManagement/service/instance1/apis/api1/schemas/schema1
34
34
  * ```
35
35
  */
36
36
  export declare class ApiSchema extends pulumi.CustomResource {
@@ -36,7 +36,7 @@ const utilities = require("../utilities");
36
36
  * API Management API Schema's can be imported using the `resource id`, e.g.
37
37
  *
38
38
  * ```sh
39
- * $ pulumi import azure:apimanagement/apiSchema:ApiSchema example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.ApiManagement/service/instance1/schemas/schema1
39
+ * $ pulumi import azure:apimanagement/apiSchema:ApiSchema example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.ApiManagement/service/instance1/apis/api1/schemas/schema1
40
40
  * ```
41
41
  */
42
42
  class ApiSchema extends pulumi.CustomResource {
@@ -0,0 +1,91 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Manages the Assignment of an API Management API Tag to an API.
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: "West Europe"});
12
+ * const exampleService = exampleResourceGroup.name.apply(name => azure.apimanagement.getService({
13
+ * name: "example-apim",
14
+ * resourceGroupName: name,
15
+ * }));
16
+ * const exampleApi = new azure.apimanagement.Api("exampleApi", {
17
+ * resourceGroupName: exampleResourceGroup.name,
18
+ * apiManagementName: azurerm_api_management.example.name,
19
+ * revision: "1",
20
+ * });
21
+ * const exampleTag = new azure.apimanagement.Tag("exampleTag", {apiManagementId: exampleService.apply(exampleService => exampleService.id)});
22
+ * const exampleApiTag = new azure.apimanagement.ApiTag("exampleApiTag", {apiId: exampleApi.id});
23
+ * ```
24
+ *
25
+ * ## Import
26
+ *
27
+ * API Management API Tags can be imported using the `resource id`, e.g.
28
+ *
29
+ * ```sh
30
+ * $ pulumi import azure:apimanagement/apiTag:ApiTag example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.ApiManagement/service/service1/apis/api1/tags/tag1
31
+ * ```
32
+ */
33
+ export declare class ApiTag extends pulumi.CustomResource {
34
+ /**
35
+ * Get an existing ApiTag resource's state with the given name, ID, and optional extra
36
+ * properties used to qualify the lookup.
37
+ *
38
+ * @param name The _unique_ name of the resulting resource.
39
+ * @param id The _unique_ provider ID of the resource to lookup.
40
+ * @param state Any extra arguments used during the lookup.
41
+ * @param opts Optional settings to control the behavior of the CustomResource.
42
+ */
43
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ApiTagState, opts?: pulumi.CustomResourceOptions): ApiTag;
44
+ /**
45
+ * Returns true if the given object is an instance of ApiTag. This is designed to work even
46
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
47
+ */
48
+ static isInstance(obj: any): obj is ApiTag;
49
+ /**
50
+ * The ID of the API Management API. Changing this forces a new API Management API Tag to be created.
51
+ */
52
+ readonly apiId: pulumi.Output<string>;
53
+ /**
54
+ * The name of the tag. It must be known in the API Management instance. Changing this forces a new API Management API Tag to be created.
55
+ */
56
+ readonly name: pulumi.Output<string>;
57
+ /**
58
+ * Create a ApiTag resource with the given unique name, arguments, and options.
59
+ *
60
+ * @param name The _unique_ name of the resource.
61
+ * @param args The arguments to use to populate this resource's properties.
62
+ * @param opts A bag of options that control this resource's behavior.
63
+ */
64
+ constructor(name: string, args: ApiTagArgs, opts?: pulumi.CustomResourceOptions);
65
+ }
66
+ /**
67
+ * Input properties used for looking up and filtering ApiTag resources.
68
+ */
69
+ export interface ApiTagState {
70
+ /**
71
+ * The ID of the API Management API. Changing this forces a new API Management API Tag to be created.
72
+ */
73
+ apiId?: pulumi.Input<string>;
74
+ /**
75
+ * The name of the tag. It must be known in the API Management instance. Changing this forces a new API Management API Tag to be created.
76
+ */
77
+ name?: pulumi.Input<string>;
78
+ }
79
+ /**
80
+ * The set of arguments for constructing a ApiTag resource.
81
+ */
82
+ export interface ApiTagArgs {
83
+ /**
84
+ * The ID of the API Management API. Changing this forces a new API Management API Tag to be created.
85
+ */
86
+ apiId: pulumi.Input<string>;
87
+ /**
88
+ * The name of the tag. It must be known in the API Management instance. Changing this forces a new API Management API Tag to be created.
89
+ */
90
+ name?: pulumi.Input<string>;
91
+ }