@microsoft/terraform-cdk-constructs 1.0.0 → 1.2.0
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/.jsii +60999 -15780
- package/API.md +54947 -10610
- package/README.md +72 -36
- package/docs/monitoring-guide.md +206 -0
- package/docs/testing.md +84 -1
- package/lib/azure-actiongroup/index.d.ts +11 -0
- package/lib/azure-actiongroup/index.js +28 -0
- package/lib/azure-actiongroup/lib/action-group-schemas.d.ts +24 -0
- package/lib/azure-actiongroup/lib/action-group-schemas.js +201 -0
- package/lib/azure-actiongroup/lib/action-group.d.ts +312 -0
- package/lib/azure-actiongroup/lib/action-group.js +201 -0
- package/lib/azure-actiongroup/lib/index.d.ts +5 -0
- package/lib/azure-actiongroup/lib/index.js +22 -0
- package/lib/azure-actiongroup/test/action-group.integ.d.ts +9 -0
- package/lib/azure-actiongroup/test/action-group.integ.js +79 -0
- package/lib/azure-actiongroup/test/action-group.spec.d.ts +8 -0
- package/lib/azure-actiongroup/test/action-group.spec.js +602 -0
- package/lib/azure-activitylogalert/index.d.ts +11 -0
- package/lib/azure-activitylogalert/index.js +28 -0
- package/lib/azure-activitylogalert/lib/activity-log-alert-schemas.d.ts +24 -0
- package/lib/azure-activitylogalert/lib/activity-log-alert-schemas.js +182 -0
- package/lib/azure-activitylogalert/lib/activity-log-alert.d.ts +236 -0
- package/lib/azure-activitylogalert/lib/activity-log-alert.js +212 -0
- package/lib/azure-activitylogalert/lib/index.d.ts +5 -0
- package/lib/azure-activitylogalert/lib/index.js +22 -0
- package/lib/azure-activitylogalert/test/activity-log-alert.integ.d.ts +9 -0
- package/lib/azure-activitylogalert/test/activity-log-alert.integ.js +98 -0
- package/lib/azure-activitylogalert/test/activity-log-alert.spec.d.ts +9 -0
- package/lib/azure-activitylogalert/test/activity-log-alert.spec.js +1101 -0
- package/lib/azure-aks/index.d.ts +9 -0
- package/lib/azure-aks/index.js +28 -0
- package/lib/azure-aks/lib/aks-cluster-schemas.d.ts +505 -0
- package/lib/azure-aks/lib/aks-cluster-schemas.js +572 -0
- package/lib/azure-aks/lib/aks-cluster.d.ts +395 -0
- package/lib/azure-aks/lib/aks-cluster.js +489 -0
- package/lib/azure-aks/lib/index.d.ts +11 -0
- package/lib/azure-aks/lib/index.js +38 -0
- package/lib/azure-aks/test/aks-cluster.integ.d.ts +9 -0
- package/lib/azure-aks/test/aks-cluster.integ.js +260 -0
- package/lib/azure-aks/test/aks-cluster.spec.d.ts +8 -0
- package/lib/azure-aks/test/aks-cluster.spec.js +1396 -0
- package/lib/azure-diagnosticsettings/index.d.ts +7 -0
- package/lib/azure-diagnosticsettings/index.js +24 -0
- package/lib/azure-diagnosticsettings/lib/diagnostic-settings-schemas.d.ts +50 -0
- package/lib/azure-diagnosticsettings/lib/diagnostic-settings-schemas.js +207 -0
- package/lib/azure-diagnosticsettings/lib/diagnostic-settings.d.ts +193 -0
- package/lib/azure-diagnosticsettings/lib/diagnostic-settings.js +200 -0
- package/lib/azure-diagnosticsettings/lib/index.d.ts +8 -0
- package/lib/azure-diagnosticsettings/lib/index.js +25 -0
- package/lib/azure-diagnosticsettings/test/diagnostic-settings.spec.d.ts +8 -0
- package/lib/azure-diagnosticsettings/test/diagnostic-settings.spec.js +432 -0
- package/lib/azure-metricalert/index.d.ts +11 -0
- package/lib/azure-metricalert/index.js +28 -0
- package/lib/azure-metricalert/lib/index.d.ts +5 -0
- package/lib/azure-metricalert/lib/index.js +22 -0
- package/lib/azure-metricalert/lib/metric-alert-schemas.d.ts +24 -0
- package/lib/azure-metricalert/lib/metric-alert-schemas.js +242 -0
- package/lib/azure-metricalert/lib/metric-alert.d.ts +344 -0
- package/lib/azure-metricalert/lib/metric-alert.js +252 -0
- package/lib/azure-metricalert/test/metric-alert.integ.d.ts +9 -0
- package/lib/azure-metricalert/test/metric-alert.integ.js +123 -0
- package/lib/azure-metricalert/test/metric-alert.spec.d.ts +9 -0
- package/lib/azure-metricalert/test/metric-alert.spec.js +1266 -0
- package/lib/azure-networkinterface/index.d.ts +4 -0
- package/lib/azure-networkinterface/index.js +21 -0
- package/lib/azure-networkinterface/lib/index.d.ts +6 -0
- package/lib/azure-networkinterface/lib/index.js +22 -0
- package/lib/azure-networkinterface/lib/network-interface-schemas.d.ts +32 -0
- package/lib/azure-networkinterface/lib/network-interface-schemas.js +222 -0
- package/lib/azure-networkinterface/lib/network-interface.d.ts +265 -0
- package/lib/azure-networkinterface/lib/network-interface.js +228 -0
- package/lib/azure-networkinterface/test/network-interface.integ.d.ts +9 -0
- package/lib/azure-networkinterface/test/network-interface.integ.js +102 -0
- package/lib/azure-networkinterface/test/network-interface.spec.d.ts +8 -0
- package/lib/azure-networkinterface/test/network-interface.spec.js +655 -0
- package/lib/azure-networksecuritygroup/index.d.ts +6 -0
- package/lib/azure-networksecuritygroup/index.js +23 -0
- package/lib/azure-networksecuritygroup/lib/index.d.ts +5 -0
- package/lib/azure-networksecuritygroup/lib/index.js +16 -0
- package/lib/azure-networksecuritygroup/lib/network-security-group-schemas.d.ts +32 -0
- package/lib/azure-networksecuritygroup/lib/network-security-group-schemas.js +198 -0
- package/lib/azure-networksecuritygroup/lib/network-security-group.d.ts +268 -0
- package/lib/azure-networksecuritygroup/lib/network-security-group.js +248 -0
- package/lib/azure-networksecuritygroup/test/network-security-group.integ.d.ts +9 -0
- package/lib/azure-networksecuritygroup/test/network-security-group.integ.js +151 -0
- package/lib/azure-networksecuritygroup/test/network-security-group.spec.d.ts +8 -0
- package/lib/azure-networksecuritygroup/test/network-security-group.spec.js +652 -0
- package/lib/azure-publicipaddress/index.d.ts +6 -0
- package/lib/azure-publicipaddress/index.js +23 -0
- package/lib/azure-publicipaddress/lib/index.d.ts +9 -0
- package/lib/azure-publicipaddress/lib/index.js +19 -0
- package/lib/azure-publicipaddress/lib/public-ip-address-schemas.d.ts +32 -0
- package/lib/azure-publicipaddress/lib/public-ip-address-schemas.js +227 -0
- package/lib/azure-publicipaddress/lib/public-ip-address.d.ts +256 -0
- package/lib/azure-publicipaddress/lib/public-ip-address.js +267 -0
- package/lib/azure-publicipaddress/test/public-ip-address.integ.d.ts +9 -0
- package/lib/azure-publicipaddress/test/public-ip-address.integ.js +75 -0
- package/lib/azure-publicipaddress/test/public-ip-address.spec.d.ts +15 -0
- package/lib/azure-publicipaddress/test/public-ip-address.spec.js +498 -0
- package/lib/azure-resourcegroup/lib/resource-group.js +1 -1
- package/lib/azure-resourcegroup/test/resource-group.integ.js +23 -11
- package/lib/azure-storageaccount/lib/storage-account-schemas.d.ts +98 -0
- package/lib/azure-storageaccount/lib/storage-account-schemas.js +1 -1
- package/lib/azure-storageaccount/lib/storage-account.d.ts +38 -1
- package/lib/azure-storageaccount/lib/storage-account.js +138 -2
- package/lib/azure-storageaccount/test/storage-account.integ.js +91 -12
- package/lib/azure-subnet/index.d.ts +4 -0
- package/lib/azure-subnet/index.js +21 -0
- package/lib/azure-subnet/lib/index.d.ts +5 -0
- package/lib/azure-subnet/lib/index.js +22 -0
- package/lib/azure-subnet/lib/subnet-schemas.d.ts +32 -0
- package/lib/azure-subnet/lib/subnet-schemas.js +237 -0
- package/lib/azure-subnet/lib/subnet.d.ts +285 -0
- package/lib/azure-subnet/lib/subnet.js +254 -0
- package/lib/azure-subnet/test/subnet.integ.d.ts +11 -0
- package/lib/azure-subnet/test/subnet.integ.js +80 -0
- package/lib/azure-subnet/test/subnet.spec.d.ts +8 -0
- package/lib/azure-subnet/test/subnet.spec.js +396 -0
- package/lib/azure-virtualmachine/index.d.ts +7 -0
- package/lib/azure-virtualmachine/index.js +24 -0
- package/lib/azure-virtualmachine/lib/index.d.ts +11 -0
- package/lib/azure-virtualmachine/lib/index.js +38 -0
- package/lib/azure-virtualmachine/lib/virtual-machine-schemas.d.ts +327 -0
- package/lib/azure-virtualmachine/lib/virtual-machine-schemas.js +544 -0
- package/lib/azure-virtualmachine/lib/virtual-machine.d.ts +377 -0
- package/lib/azure-virtualmachine/lib/virtual-machine.js +462 -0
- package/lib/azure-virtualmachine/test/virtual-machine.integ.d.ts +9 -0
- package/lib/azure-virtualmachine/test/virtual-machine.integ.js +220 -0
- package/lib/azure-virtualmachine/test/virtual-machine.spec.d.ts +9 -0
- package/lib/azure-virtualmachine/test/virtual-machine.spec.js +1032 -0
- package/lib/azure-virtualnetwork/index.d.ts +10 -0
- package/lib/azure-virtualnetwork/index.js +28 -0
- package/lib/azure-virtualnetwork/lib/index.d.ts +9 -0
- package/lib/azure-virtualnetwork/lib/index.js +22 -0
- package/lib/azure-virtualnetwork/lib/virtual-network-schemas.d.ts +32 -0
- package/lib/azure-virtualnetwork/lib/virtual-network-schemas.js +236 -0
- package/lib/azure-virtualnetwork/lib/virtual-network.d.ts +213 -0
- package/lib/azure-virtualnetwork/lib/virtual-network.js +245 -0
- package/lib/azure-virtualnetwork/test/virtual-network.integ.d.ts +9 -0
- package/lib/azure-virtualnetwork/test/virtual-network.integ.js +91 -0
- package/lib/azure-virtualnetwork/test/virtual-network.spec.d.ts +8 -0
- package/lib/azure-virtualnetwork/test/virtual-network.spec.js +398 -0
- package/lib/azure-vmss/index.d.ts +6 -0
- package/lib/azure-vmss/index.js +23 -0
- package/lib/azure-vmss/lib/index.d.ts +9 -0
- package/lib/azure-vmss/lib/index.js +39 -0
- package/lib/azure-vmss/lib/virtual-machine-scale-set.d.ts +258 -0
- package/lib/azure-vmss/lib/virtual-machine-scale-set.js +503 -0
- package/lib/azure-vmss/lib/vmss-schemas.d.ts +472 -0
- package/lib/azure-vmss/lib/vmss-schemas.js +444 -0
- package/lib/azure-vmss/test/virtual-machine-scale-set.integ.d.ts +15 -0
- package/lib/azure-vmss/test/virtual-machine-scale-set.integ.js +261 -0
- package/lib/azure-vmss/test/virtual-machine-scale-set.spec.d.ts +8 -0
- package/lib/azure-vmss/test/virtual-machine-scale-set.spec.js +997 -0
- package/lib/core-azure/lib/azapi/azapi-resource.d.ts +95 -27
- package/lib/core-azure/lib/azapi/azapi-resource.js +95 -58
- package/lib/core-azure/lib/azapi/providers-azapi/data-azapi-client-config/index.d.ts +33 -21
- package/lib/core-azure/lib/azapi/providers-azapi/data-azapi-client-config/index.js +69 -27
- package/lib/core-azure/lib/azapi/providers-azapi/data-azapi-resource/index.d.ts +134 -120
- package/lib/core-azure/lib/azapi/providers-azapi/data-azapi-resource/index.js +209 -59
- package/lib/core-azure/lib/azapi/providers-azapi/data-azapi-resource-action/index.d.ts +141 -128
- package/lib/core-azure/lib/azapi/providers-azapi/data-azapi-resource-action/index.js +183 -36
- package/lib/core-azure/lib/azapi/providers-azapi/data-azapi-resource-id/index.d.ts +55 -43
- package/lib/core-azure/lib/azapi/providers-azapi/data-azapi-resource-id/index.js +94 -26
- package/lib/core-azure/lib/azapi/providers-azapi/data-azapi-resource-list/index.d.ts +129 -116
- package/lib/core-azure/lib/azapi/providers-azapi/data-azapi-resource-list/index.js +155 -32
- package/lib/core-azure/lib/azapi/providers-azapi/data-plane-resource/index.d.ts +187 -174
- package/lib/core-azure/lib/azapi/providers-azapi/data-plane-resource/index.js +267 -48
- package/lib/core-azure/lib/azapi/providers-azapi/index.d.ts +10 -10
- package/lib/core-azure/lib/azapi/providers-azapi/index.js +1 -1
- package/lib/core-azure/lib/azapi/providers-azapi/lazy-index.d.ts +0 -0
- package/lib/core-azure/lib/azapi/providers-azapi/lazy-index.js +13 -0
- package/lib/core-azure/lib/azapi/providers-azapi/provider/index.d.ts +174 -162
- package/lib/core-azure/lib/azapi/providers-azapi/provider/index.js +274 -14
- package/lib/core-azure/lib/azapi/providers-azapi/resource/index.d.ts +239 -225
- package/lib/core-azure/lib/azapi/providers-azapi/resource/index.js +360 -76
- package/lib/core-azure/lib/azapi/providers-azapi/resource-action/index.d.ts +163 -150
- package/lib/core-azure/lib/azapi/providers-azapi/resource-action/index.js +221 -46
- package/lib/core-azure/lib/azapi/providers-azapi/update-resource/index.d.ts +162 -149
- package/lib/core-azure/lib/azapi/providers-azapi/update-resource/index.js +249 -50
- package/lib/core-azure/lib/azapi/schema-mapper/schema-mapper.js +4 -2
- package/lib/core-azure/lib/version-manager/api-version-manager.js +1 -1
- package/lib/core-azure/lib/version-manager/interfaces/version-interfaces.js +7 -7
- package/lib/index.d.ts +37 -0
- package/lib/index.js +40 -2
- package/lib/testing/index.d.ts +92 -2
- package/lib/testing/index.js +258 -18
- package/lib/testing/lib/cleanup.d.ts +229 -0
- package/lib/testing/lib/cleanup.js +331 -0
- package/lib/testing/lib/metadata.d.ts +151 -0
- package/lib/testing/lib/metadata.js +180 -0
- package/lib/testing/lib/naming.d.ts +96 -0
- package/lib/testing/lib/naming.js +336 -0
- package/node_modules/uuid/LICENSE.md +9 -0
- package/node_modules/uuid/README.md +510 -0
- package/node_modules/uuid/dist/cjs/index.d.ts +15 -0
- package/node_modules/uuid/dist/cjs/index.js +31 -0
- package/node_modules/uuid/dist/cjs/max.d.ts +2 -0
- package/node_modules/uuid/dist/cjs/max.js +3 -0
- package/node_modules/uuid/dist/cjs/md5.d.ts +4 -0
- package/node_modules/uuid/dist/cjs/md5.js +13 -0
- package/node_modules/uuid/dist/cjs/native.d.ts +6 -0
- package/node_modules/uuid/dist/cjs/native.js +4 -0
- package/node_modules/uuid/dist/cjs/nil.d.ts +2 -0
- package/node_modules/uuid/dist/cjs/nil.js +3 -0
- package/node_modules/uuid/dist/cjs/package.json +1 -0
- package/node_modules/uuid/dist/cjs/parse.d.ts +2 -0
- package/node_modules/uuid/dist/cjs/parse.js +11 -0
- package/node_modules/uuid/dist/cjs/regex.d.ts +2 -0
- package/node_modules/uuid/dist/cjs/regex.js +3 -0
- package/node_modules/uuid/dist/cjs/rng.d.ts +1 -0
- package/node_modules/uuid/dist/cjs/rng.js +13 -0
- package/node_modules/uuid/dist/cjs/sha1.d.ts +4 -0
- package/node_modules/uuid/dist/cjs/sha1.js +13 -0
- package/node_modules/uuid/dist/cjs/stringify.d.ts +3 -0
- package/node_modules/uuid/dist/cjs/stringify.js +39 -0
- package/node_modules/uuid/dist/cjs/types.d.ts +21 -0
- package/node_modules/uuid/dist/cjs/types.js +2 -0
- package/node_modules/uuid/dist/cjs/uuid-bin.d.ts +1 -0
- package/node_modules/uuid/dist/cjs/uuid-bin.js +72 -0
- package/node_modules/uuid/dist/cjs/v1.d.ts +11 -0
- package/node_modules/uuid/dist/cjs/v1.js +87 -0
- package/node_modules/uuid/dist/cjs/v1ToV6.d.ts +2 -0
- package/node_modules/uuid/dist/cjs/v1ToV6.js +13 -0
- package/node_modules/uuid/dist/cjs/v3.d.ts +9 -0
- package/node_modules/uuid/dist/cjs/v3.js +14 -0
- package/node_modules/uuid/dist/cjs/v35.d.ts +7 -0
- package/node_modules/uuid/dist/cjs/v35.js +41 -0
- package/node_modules/uuid/dist/cjs/v4.d.ts +4 -0
- package/node_modules/uuid/dist/cjs/v4.js +29 -0
- package/node_modules/uuid/dist/cjs/v5.d.ts +9 -0
- package/node_modules/uuid/dist/cjs/v5.js +14 -0
- package/node_modules/uuid/dist/cjs/v6.d.ts +4 -0
- package/node_modules/uuid/dist/cjs/v6.js +19 -0
- package/node_modules/uuid/dist/cjs/v6ToV1.d.ts +2 -0
- package/node_modules/uuid/dist/cjs/v6ToV1.js +13 -0
- package/node_modules/uuid/dist/cjs/v7.d.ts +9 -0
- package/node_modules/uuid/dist/cjs/v7.js +69 -0
- package/node_modules/uuid/dist/cjs/validate.d.ts +2 -0
- package/node_modules/uuid/dist/cjs/validate.js +7 -0
- package/node_modules/uuid/dist/cjs/version.d.ts +2 -0
- package/node_modules/uuid/dist/cjs/version.js +10 -0
- package/node_modules/uuid/dist/cjs-browser/index.d.ts +15 -0
- package/node_modules/uuid/dist/cjs-browser/index.js +31 -0
- package/node_modules/uuid/dist/cjs-browser/max.d.ts +2 -0
- package/node_modules/uuid/dist/cjs-browser/max.js +3 -0
- package/node_modules/uuid/dist/cjs-browser/md5.d.ts +2 -0
- package/node_modules/uuid/dist/cjs-browser/md5.js +137 -0
- package/node_modules/uuid/dist/cjs-browser/native.d.ts +4 -0
- package/node_modules/uuid/dist/cjs-browser/native.js +4 -0
- package/node_modules/uuid/dist/cjs-browser/nil.d.ts +2 -0
- package/node_modules/uuid/dist/cjs-browser/nil.js +3 -0
- package/node_modules/uuid/dist/cjs-browser/package.json +1 -0
- package/node_modules/uuid/dist/cjs-browser/parse.d.ts +2 -0
- package/node_modules/uuid/dist/cjs-browser/parse.js +11 -0
- package/node_modules/uuid/dist/cjs-browser/regex.d.ts +2 -0
- package/node_modules/uuid/dist/cjs-browser/regex.js +3 -0
- package/node_modules/uuid/dist/cjs-browser/rng.d.ts +1 -0
- package/node_modules/uuid/dist/cjs-browser/rng.js +14 -0
- package/node_modules/uuid/dist/cjs-browser/sha1.d.ts +2 -0
- package/node_modules/uuid/dist/cjs-browser/sha1.js +72 -0
- package/node_modules/uuid/dist/cjs-browser/stringify.d.ts +3 -0
- package/node_modules/uuid/dist/cjs-browser/stringify.js +39 -0
- package/node_modules/uuid/dist/cjs-browser/types.d.ts +21 -0
- package/node_modules/uuid/dist/cjs-browser/types.js +2 -0
- package/node_modules/uuid/dist/cjs-browser/uuid-bin.d.ts +1 -0
- package/node_modules/uuid/dist/cjs-browser/uuid-bin.js +72 -0
- package/node_modules/uuid/dist/cjs-browser/v1.d.ts +11 -0
- package/node_modules/uuid/dist/cjs-browser/v1.js +87 -0
- package/node_modules/uuid/dist/cjs-browser/v1ToV6.d.ts +2 -0
- package/node_modules/uuid/dist/cjs-browser/v1ToV6.js +13 -0
- package/node_modules/uuid/dist/cjs-browser/v3.d.ts +9 -0
- package/node_modules/uuid/dist/cjs-browser/v3.js +14 -0
- package/node_modules/uuid/dist/cjs-browser/v35.d.ts +7 -0
- package/node_modules/uuid/dist/cjs-browser/v35.js +41 -0
- package/node_modules/uuid/dist/cjs-browser/v4.d.ts +4 -0
- package/node_modules/uuid/dist/cjs-browser/v4.js +29 -0
- package/node_modules/uuid/dist/cjs-browser/v5.d.ts +9 -0
- package/node_modules/uuid/dist/cjs-browser/v5.js +14 -0
- package/node_modules/uuid/dist/cjs-browser/v6.d.ts +4 -0
- package/node_modules/uuid/dist/cjs-browser/v6.js +19 -0
- package/node_modules/uuid/dist/cjs-browser/v6ToV1.d.ts +2 -0
- package/node_modules/uuid/dist/cjs-browser/v6ToV1.js +13 -0
- package/node_modules/uuid/dist/cjs-browser/v7.d.ts +9 -0
- package/node_modules/uuid/dist/cjs-browser/v7.js +69 -0
- package/node_modules/uuid/dist/cjs-browser/validate.d.ts +2 -0
- package/node_modules/uuid/dist/cjs-browser/validate.js +7 -0
- package/node_modules/uuid/dist/cjs-browser/version.d.ts +2 -0
- package/node_modules/uuid/dist/cjs-browser/version.js +10 -0
- package/node_modules/uuid/dist/esm/bin/uuid +2 -0
- package/node_modules/uuid/dist/esm/index.d.ts +15 -0
- package/node_modules/uuid/dist/esm/index.js +14 -0
- package/node_modules/uuid/dist/esm/max.d.ts +2 -0
- package/node_modules/uuid/dist/esm/max.js +1 -0
- package/node_modules/uuid/dist/esm/md5.d.ts +4 -0
- package/node_modules/uuid/dist/esm/md5.js +11 -0
- package/node_modules/uuid/dist/esm/native.d.ts +6 -0
- package/node_modules/uuid/dist/esm/native.js +2 -0
- package/node_modules/uuid/dist/esm/nil.d.ts +2 -0
- package/node_modules/uuid/dist/esm/nil.js +1 -0
- package/node_modules/uuid/dist/esm/parse.d.ts +2 -0
- package/node_modules/uuid/dist/esm/parse.js +9 -0
- package/node_modules/uuid/dist/esm/regex.d.ts +2 -0
- package/node_modules/uuid/dist/esm/regex.js +1 -0
- package/node_modules/uuid/dist/esm/rng.d.ts +1 -0
- package/node_modules/uuid/dist/esm/rng.js +10 -0
- package/node_modules/uuid/dist/esm/sha1.d.ts +4 -0
- package/node_modules/uuid/dist/esm/sha1.js +11 -0
- package/node_modules/uuid/dist/esm/stringify.d.ts +3 -0
- package/node_modules/uuid/dist/esm/stringify.js +35 -0
- package/node_modules/uuid/dist/esm/types.d.ts +21 -0
- package/node_modules/uuid/dist/esm/types.js +1 -0
- package/node_modules/uuid/dist/esm/uuid-bin.d.ts +1 -0
- package/node_modules/uuid/dist/esm/uuid-bin.js +70 -0
- package/node_modules/uuid/dist/esm/v1.d.ts +11 -0
- package/node_modules/uuid/dist/esm/v1.js +83 -0
- package/node_modules/uuid/dist/esm/v1ToV6.d.ts +2 -0
- package/node_modules/uuid/dist/esm/v1ToV6.js +10 -0
- package/node_modules/uuid/dist/esm/v3.d.ts +9 -0
- package/node_modules/uuid/dist/esm/v3.js +9 -0
- package/node_modules/uuid/dist/esm/v35.d.ts +7 -0
- package/node_modules/uuid/dist/esm/v35.js +36 -0
- package/node_modules/uuid/dist/esm/v4.d.ts +4 -0
- package/node_modules/uuid/dist/esm/v4.js +27 -0
- package/node_modules/uuid/dist/esm/v5.d.ts +9 -0
- package/node_modules/uuid/dist/esm/v5.js +9 -0
- package/node_modules/uuid/dist/esm/v6.d.ts +4 -0
- package/node_modules/uuid/dist/esm/v6.js +17 -0
- package/node_modules/uuid/dist/esm/v6ToV1.d.ts +2 -0
- package/node_modules/uuid/dist/esm/v6ToV1.js +10 -0
- package/node_modules/uuid/dist/esm/v7.d.ts +9 -0
- package/node_modules/uuid/dist/esm/v7.js +65 -0
- package/node_modules/uuid/dist/esm/validate.d.ts +2 -0
- package/node_modules/uuid/dist/esm/validate.js +5 -0
- package/node_modules/uuid/dist/esm/version.d.ts +2 -0
- package/node_modules/uuid/dist/esm/version.js +8 -0
- package/node_modules/uuid/dist/esm-browser/index.d.ts +15 -0
- package/node_modules/uuid/dist/esm-browser/index.js +14 -0
- package/node_modules/uuid/dist/esm-browser/max.d.ts +2 -0
- package/node_modules/uuid/dist/esm-browser/max.js +1 -0
- package/node_modules/uuid/dist/esm-browser/md5.d.ts +2 -0
- package/node_modules/uuid/dist/esm-browser/md5.js +135 -0
- package/node_modules/uuid/dist/esm-browser/native.d.ts +4 -0
- package/node_modules/uuid/dist/esm-browser/native.js +2 -0
- package/node_modules/uuid/dist/esm-browser/nil.d.ts +2 -0
- package/node_modules/uuid/dist/esm-browser/nil.js +1 -0
- package/node_modules/uuid/dist/esm-browser/parse.d.ts +2 -0
- package/node_modules/uuid/dist/esm-browser/parse.js +9 -0
- package/node_modules/uuid/dist/esm-browser/regex.d.ts +2 -0
- package/node_modules/uuid/dist/esm-browser/regex.js +1 -0
- package/node_modules/uuid/dist/esm-browser/rng.d.ts +1 -0
- package/node_modules/uuid/dist/esm-browser/rng.js +11 -0
- package/node_modules/uuid/dist/esm-browser/sha1.d.ts +2 -0
- package/node_modules/uuid/dist/esm-browser/sha1.js +70 -0
- package/node_modules/uuid/dist/esm-browser/stringify.d.ts +3 -0
- package/node_modules/uuid/dist/esm-browser/stringify.js +35 -0
- package/node_modules/uuid/dist/esm-browser/types.d.ts +21 -0
- package/node_modules/uuid/dist/esm-browser/types.js +1 -0
- package/node_modules/uuid/dist/esm-browser/uuid-bin.d.ts +1 -0
- package/node_modules/uuid/dist/esm-browser/uuid-bin.js +70 -0
- package/node_modules/uuid/dist/esm-browser/v1.d.ts +11 -0
- package/node_modules/uuid/dist/esm-browser/v1.js +83 -0
- package/node_modules/uuid/dist/esm-browser/v1ToV6.d.ts +2 -0
- package/node_modules/uuid/dist/esm-browser/v1ToV6.js +10 -0
- package/node_modules/uuid/dist/esm-browser/v3.d.ts +9 -0
- package/node_modules/uuid/dist/esm-browser/v3.js +9 -0
- package/node_modules/uuid/dist/esm-browser/v35.d.ts +7 -0
- package/node_modules/uuid/dist/esm-browser/v35.js +36 -0
- package/node_modules/uuid/dist/esm-browser/v4.d.ts +4 -0
- package/node_modules/uuid/dist/esm-browser/v4.js +27 -0
- package/node_modules/uuid/dist/esm-browser/v5.d.ts +9 -0
- package/node_modules/uuid/dist/esm-browser/v5.js +9 -0
- package/node_modules/uuid/dist/esm-browser/v6.d.ts +4 -0
- package/node_modules/uuid/dist/esm-browser/v6.js +17 -0
- package/node_modules/uuid/dist/esm-browser/v6ToV1.d.ts +2 -0
- package/node_modules/uuid/dist/esm-browser/v6ToV1.js +10 -0
- package/node_modules/uuid/dist/esm-browser/v7.d.ts +9 -0
- package/node_modules/uuid/dist/esm-browser/v7.js +65 -0
- package/node_modules/uuid/dist/esm-browser/validate.d.ts +2 -0
- package/node_modules/uuid/dist/esm-browser/validate.js +5 -0
- package/node_modules/uuid/dist/esm-browser/version.d.ts +2 -0
- package/node_modules/uuid/dist/esm-browser/version.js +8 -0
- package/node_modules/uuid/package.json +132 -0
- package/package.json +17 -12
- package/scripts/cleanup-test-resources.ts +369 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Azure Activity Log Alert construct
|
|
3
|
+
*
|
|
4
|
+
* This module provides the Activity Log Alert construct for Azure Monitor.
|
|
5
|
+
* Activity Log Alerts monitor Azure Activity Log events and trigger notifications
|
|
6
|
+
* when specific operations occur, such as resource deletions, configuration changes,
|
|
7
|
+
* or service health events.
|
|
8
|
+
*
|
|
9
|
+
* @packageDocumentation
|
|
10
|
+
*/
|
|
11
|
+
export * from "./lib";
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Azure Activity Log Alert construct
|
|
4
|
+
*
|
|
5
|
+
* This module provides the Activity Log Alert construct for Azure Monitor.
|
|
6
|
+
* Activity Log Alerts monitor Azure Activity Log events and trigger notifications
|
|
7
|
+
* when specific operations occur, such as resource deletions, configuration changes,
|
|
8
|
+
* or service health events.
|
|
9
|
+
*
|
|
10
|
+
* @packageDocumentation
|
|
11
|
+
*/
|
|
12
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
15
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
16
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
17
|
+
}
|
|
18
|
+
Object.defineProperty(o, k2, desc);
|
|
19
|
+
}) : (function(o, m, k, k2) {
|
|
20
|
+
if (k2 === undefined) k2 = k;
|
|
21
|
+
o[k2] = m[k];
|
|
22
|
+
}));
|
|
23
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
24
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
25
|
+
};
|
|
26
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
+
__exportStar(require("./lib"), exports);
|
|
28
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvYXp1cmUtYWN0aXZpdHlsb2dhbGVydC9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUE7Ozs7Ozs7OztHQVNHOzs7Ozs7Ozs7Ozs7Ozs7O0FBRUgsd0NBQXNCIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBBenVyZSBBY3Rpdml0eSBMb2cgQWxlcnQgY29uc3RydWN0XG4gKlxuICogVGhpcyBtb2R1bGUgcHJvdmlkZXMgdGhlIEFjdGl2aXR5IExvZyBBbGVydCBjb25zdHJ1Y3QgZm9yIEF6dXJlIE1vbml0b3IuXG4gKiBBY3Rpdml0eSBMb2cgQWxlcnRzIG1vbml0b3IgQXp1cmUgQWN0aXZpdHkgTG9nIGV2ZW50cyBhbmQgdHJpZ2dlciBub3RpZmljYXRpb25zXG4gKiB3aGVuIHNwZWNpZmljIG9wZXJhdGlvbnMgb2NjdXIsIHN1Y2ggYXMgcmVzb3VyY2UgZGVsZXRpb25zLCBjb25maWd1cmF0aW9uIGNoYW5nZXMsXG4gKiBvciBzZXJ2aWNlIGhlYWx0aCBldmVudHMuXG4gKlxuICogQHBhY2thZ2VEb2N1bWVudGF0aW9uXG4gKi9cblxuZXhwb3J0ICogZnJvbSBcIi4vbGliXCI7XG4iXX0=
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* API schemas for Azure Activity Log Alert across all supported versions
|
|
3
|
+
*
|
|
4
|
+
* This file defines the complete API schemas for Microsoft.Insights/activityLogAlerts
|
|
5
|
+
* across all supported API versions. The schemas are used by the AzapiResource
|
|
6
|
+
* framework for validation, transformation, and version management.
|
|
7
|
+
*/
|
|
8
|
+
import { ApiSchema, VersionConfig } from "../../core-azure/lib/version-manager/interfaces/version-interfaces";
|
|
9
|
+
/**
|
|
10
|
+
* API Schema for Activity Log Alert version 2020-10-01
|
|
11
|
+
*/
|
|
12
|
+
export declare const ACTIVITY_LOG_ALERT_SCHEMA_2020_10_01: ApiSchema;
|
|
13
|
+
/**
|
|
14
|
+
* Version configuration for Activity Log Alert 2020-10-01
|
|
15
|
+
*/
|
|
16
|
+
export declare const ACTIVITY_LOG_ALERT_VERSION_2020_10_01: VersionConfig;
|
|
17
|
+
/**
|
|
18
|
+
* All supported Activity Log Alert versions for registration
|
|
19
|
+
*/
|
|
20
|
+
export declare const ALL_ACTIVITY_LOG_ALERT_VERSIONS: VersionConfig[];
|
|
21
|
+
/**
|
|
22
|
+
* Resource type constant
|
|
23
|
+
*/
|
|
24
|
+
export declare const ACTIVITY_LOG_ALERT_TYPE = "Microsoft.Insights/activityLogAlerts";
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* API schemas for Azure Activity Log Alert across all supported versions
|
|
4
|
+
*
|
|
5
|
+
* This file defines the complete API schemas for Microsoft.Insights/activityLogAlerts
|
|
6
|
+
* across all supported API versions. The schemas are used by the AzapiResource
|
|
7
|
+
* framework for validation, transformation, and version management.
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.ACTIVITY_LOG_ALERT_TYPE = exports.ALL_ACTIVITY_LOG_ALERT_VERSIONS = exports.ACTIVITY_LOG_ALERT_VERSION_2020_10_01 = exports.ACTIVITY_LOG_ALERT_SCHEMA_2020_10_01 = void 0;
|
|
11
|
+
const version_interfaces_1 = require("../../core-azure/lib/version-manager/interfaces/version-interfaces");
|
|
12
|
+
// =============================================================================
|
|
13
|
+
// COMMON PROPERTY DEFINITIONS
|
|
14
|
+
// =============================================================================
|
|
15
|
+
/**
|
|
16
|
+
* Common property definitions shared across all Activity Log Alert versions
|
|
17
|
+
*/
|
|
18
|
+
const COMMON_ACTIVITY_LOG_ALERT_PROPERTIES = {
|
|
19
|
+
location: {
|
|
20
|
+
dataType: version_interfaces_1.PropertyType.STRING,
|
|
21
|
+
required: true,
|
|
22
|
+
description: "Azure region (global for activity log alerts)",
|
|
23
|
+
defaultValue: "global",
|
|
24
|
+
validation: [
|
|
25
|
+
{
|
|
26
|
+
ruleType: version_interfaces_1.ValidationRuleType.REQUIRED,
|
|
27
|
+
message: "Location is required for Activity Log Alerts",
|
|
28
|
+
},
|
|
29
|
+
],
|
|
30
|
+
},
|
|
31
|
+
name: {
|
|
32
|
+
dataType: version_interfaces_1.PropertyType.STRING,
|
|
33
|
+
required: true,
|
|
34
|
+
description: "Name of the activity log alert",
|
|
35
|
+
validation: [
|
|
36
|
+
{
|
|
37
|
+
ruleType: version_interfaces_1.ValidationRuleType.REQUIRED,
|
|
38
|
+
message: "Name is required",
|
|
39
|
+
},
|
|
40
|
+
],
|
|
41
|
+
},
|
|
42
|
+
description: {
|
|
43
|
+
dataType: version_interfaces_1.PropertyType.STRING,
|
|
44
|
+
required: false,
|
|
45
|
+
description: "Description of the alert rule",
|
|
46
|
+
},
|
|
47
|
+
enabled: {
|
|
48
|
+
dataType: version_interfaces_1.PropertyType.BOOLEAN,
|
|
49
|
+
required: true,
|
|
50
|
+
defaultValue: true,
|
|
51
|
+
description: "Enable the alert rule",
|
|
52
|
+
},
|
|
53
|
+
scopes: {
|
|
54
|
+
dataType: version_interfaces_1.PropertyType.ARRAY,
|
|
55
|
+
required: true,
|
|
56
|
+
description: "Resource IDs that this alert is scoped to",
|
|
57
|
+
validation: [
|
|
58
|
+
{
|
|
59
|
+
ruleType: version_interfaces_1.ValidationRuleType.REQUIRED,
|
|
60
|
+
message: "At least one scope is required",
|
|
61
|
+
},
|
|
62
|
+
],
|
|
63
|
+
},
|
|
64
|
+
condition: {
|
|
65
|
+
dataType: version_interfaces_1.PropertyType.OBJECT,
|
|
66
|
+
required: true,
|
|
67
|
+
description: "Alert condition with field-value pairs",
|
|
68
|
+
validation: [
|
|
69
|
+
{
|
|
70
|
+
ruleType: version_interfaces_1.ValidationRuleType.REQUIRED,
|
|
71
|
+
message: "Condition is required",
|
|
72
|
+
},
|
|
73
|
+
],
|
|
74
|
+
},
|
|
75
|
+
actions: {
|
|
76
|
+
dataType: version_interfaces_1.PropertyType.OBJECT,
|
|
77
|
+
required: false,
|
|
78
|
+
description: "Action groups to notify",
|
|
79
|
+
},
|
|
80
|
+
tags: {
|
|
81
|
+
dataType: version_interfaces_1.PropertyType.OBJECT,
|
|
82
|
+
required: false,
|
|
83
|
+
defaultValue: {},
|
|
84
|
+
description: "Resource tags",
|
|
85
|
+
validation: [
|
|
86
|
+
{
|
|
87
|
+
ruleType: version_interfaces_1.ValidationRuleType.TYPE_CHECK,
|
|
88
|
+
value: version_interfaces_1.PropertyType.OBJECT,
|
|
89
|
+
message: "Tags must be an object with string key-value pairs",
|
|
90
|
+
},
|
|
91
|
+
],
|
|
92
|
+
},
|
|
93
|
+
};
|
|
94
|
+
// =============================================================================
|
|
95
|
+
// VERSION-SPECIFIC SCHEMAS
|
|
96
|
+
// =============================================================================
|
|
97
|
+
/**
|
|
98
|
+
* API Schema for Activity Log Alert version 2020-10-01
|
|
99
|
+
*/
|
|
100
|
+
exports.ACTIVITY_LOG_ALERT_SCHEMA_2020_10_01 = {
|
|
101
|
+
resourceType: "Microsoft.Insights/activityLogAlerts",
|
|
102
|
+
version: "2020-10-01",
|
|
103
|
+
properties: {
|
|
104
|
+
...COMMON_ACTIVITY_LOG_ALERT_PROPERTIES,
|
|
105
|
+
},
|
|
106
|
+
required: ["location", "name", "enabled", "scopes", "condition"],
|
|
107
|
+
optional: ["description", "actions", "tags"],
|
|
108
|
+
deprecated: [],
|
|
109
|
+
transformationRules: {},
|
|
110
|
+
validationRules: [
|
|
111
|
+
{
|
|
112
|
+
property: "location",
|
|
113
|
+
rules: [
|
|
114
|
+
{
|
|
115
|
+
ruleType: version_interfaces_1.ValidationRuleType.REQUIRED,
|
|
116
|
+
message: "Location is required for Activity Log Alerts",
|
|
117
|
+
},
|
|
118
|
+
],
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
property: "name",
|
|
122
|
+
rules: [
|
|
123
|
+
{
|
|
124
|
+
ruleType: version_interfaces_1.ValidationRuleType.REQUIRED,
|
|
125
|
+
message: "Name is required for Activity Log Alerts",
|
|
126
|
+
},
|
|
127
|
+
],
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
property: "scopes",
|
|
131
|
+
rules: [
|
|
132
|
+
{
|
|
133
|
+
ruleType: version_interfaces_1.ValidationRuleType.REQUIRED,
|
|
134
|
+
message: "At least one scope is required",
|
|
135
|
+
},
|
|
136
|
+
],
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
property: "condition",
|
|
140
|
+
rules: [
|
|
141
|
+
{
|
|
142
|
+
ruleType: version_interfaces_1.ValidationRuleType.REQUIRED,
|
|
143
|
+
message: "Condition is required",
|
|
144
|
+
},
|
|
145
|
+
],
|
|
146
|
+
},
|
|
147
|
+
],
|
|
148
|
+
};
|
|
149
|
+
// =============================================================================
|
|
150
|
+
// VERSION CONFIGURATIONS
|
|
151
|
+
// =============================================================================
|
|
152
|
+
/**
|
|
153
|
+
* Version configuration for Activity Log Alert 2020-10-01
|
|
154
|
+
*/
|
|
155
|
+
exports.ACTIVITY_LOG_ALERT_VERSION_2020_10_01 = {
|
|
156
|
+
version: "2020-10-01",
|
|
157
|
+
schema: exports.ACTIVITY_LOG_ALERT_SCHEMA_2020_10_01,
|
|
158
|
+
supportLevel: version_interfaces_1.VersionSupportLevel.ACTIVE,
|
|
159
|
+
releaseDate: "2020-10-01",
|
|
160
|
+
deprecationDate: undefined,
|
|
161
|
+
sunsetDate: undefined,
|
|
162
|
+
breakingChanges: [],
|
|
163
|
+
migrationGuide: "/docs/activity-log-alert/migration-2020-10-01",
|
|
164
|
+
changeLog: [
|
|
165
|
+
{
|
|
166
|
+
changeType: "updated",
|
|
167
|
+
description: "Stable API version for Activity Log Alerts",
|
|
168
|
+
breaking: false,
|
|
169
|
+
},
|
|
170
|
+
],
|
|
171
|
+
};
|
|
172
|
+
/**
|
|
173
|
+
* All supported Activity Log Alert versions for registration
|
|
174
|
+
*/
|
|
175
|
+
exports.ALL_ACTIVITY_LOG_ALERT_VERSIONS = [
|
|
176
|
+
exports.ACTIVITY_LOG_ALERT_VERSION_2020_10_01,
|
|
177
|
+
];
|
|
178
|
+
/**
|
|
179
|
+
* Resource type constant
|
|
180
|
+
*/
|
|
181
|
+
exports.ACTIVITY_LOG_ALERT_TYPE = "Microsoft.Insights/activityLogAlerts";
|
|
182
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWN0aXZpdHktbG9nLWFsZXJ0LXNjaGVtYXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvYXp1cmUtYWN0aXZpdHlsb2dhbGVydC9saWIvYWN0aXZpdHktbG9nLWFsZXJ0LXNjaGVtYXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBOzs7Ozs7R0FNRzs7O0FBRUgsMkdBTzRFO0FBRTVFLGdGQUFnRjtBQUNoRiw4QkFBOEI7QUFDOUIsZ0ZBQWdGO0FBRWhGOztHQUVHO0FBQ0gsTUFBTSxvQ0FBb0MsR0FFdEM7SUFDRixRQUFRLEVBQUU7UUFDUixRQUFRLEVBQUUsaUNBQVksQ0FBQyxNQUFNO1FBQzdCLFFBQVEsRUFBRSxJQUFJO1FBQ2QsV0FBVyxFQUFFL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jb25kaXRpb24gd2l0aCBmaWVsZC12YWx1ZSBwYWlyc1wiLFxuICAgIHZhbGlkYXRpb246IFtcbiAgICAgIHtcbiAgICAgICAgcnVsZVR5cGU6IFZhbGlkYXRpb25SdWxlVHlwZS5SRVFVSVJFRCxcbiAgICAgICAgbWVzc2FnZTogXCJDb25kaXRpb24gaXMgcmVxdWlyZWRcIixcbiAgICAgIH0sXG4gICAgXSxcbiAgfSxcbiAgYWN0aW9uczoge1xuICAgIGRhdGFUeXBlOiBQcm9wZXJ0eVR5cGUuT0JKRUNULFxuICAgIHJlcXVpcmVkOiBmYWxzZSxcbiAgICBkZXNjcmlwdGlvbjogXCJBY3Rpb24gZ3JvdXBzIHRvIG5vdGlmeVwiLFxuICB9LFxuICB0YWdzOiB7XG4gICAgZGF0YVR5cGU6IFByb3BlcnR5VHlwZS5PQkpFQ1QsXG4gICAgcmVxdWlyZWQ6IGZhbHNlLFxuICAgIGRlZmF1bHRWYWx1ZToge30sXG4gICAgZGVzY3JpcHRpb246IFwiUmVzb3VyY2UgdGFnc1wiLFxuICAgIHZhbGlkYXRpb246IFtcbiAgICAgIHtcbiAgICAgICAgcnVsZVR5cGU6IFZhbGlkYXRpb25SdWxlVHlwZS5UWVBFX0NIRUNLLFxuICAgICAgICB2YWx1ZTogUHJvcGVydHlUeXBlLk9CSkVDVCxcbiAgICAgICAgbWVzc2FnZTogXCJUYWdzIG11c3QgYmUgYW4gb2JqZWN0IHdpdGggc3RyaW5nIGtleS12YWx1ZSBwYWlyc1wiLFxuICAgICAgfSxcbiAgICBdLFxuICB9LFxufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIFZFUlNJT04tU1BFQ0lGSUMgU0NIRU1BU1xuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1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RVUlSRUQsXG4gICAgICAgICAgbWVzc2FnZTogXCJOYW1lIGlzIHJlcXVpcmVkIGZvciBBY3Rpdml0eSBMb2cgQWxlcnRzXCIsXG4gICAgICAgIH0sXG4gICAgICBdLFxuICAgIH0sXG4gICAge1xuICAgICAgcHJvcGVydHk6IFwic2NvcGVzXCIsXG4gICAgICBydWxlczogW1xuICAgICAgICB7XG4gICAgICAgICAgcnVsZVR5cGU6IFZhbGlkYXRpb25SdWxlVHlwZS5SRVFVSVJFRCxcbiAgICAgICAgICBtZXNzYWdlOiBcIkF0IGxlYXN0IG9uZSBzY29wZSBpcyByZXF1aXJlZFwiLFxuICAgICAgICB9LFxuICAgICAgXSxcbiAgICB9LFxuICAgIHtcbiAgICAgIHByb3BlcnR5OiBcImNvbmRpdGlvblwiLFxuICAgICAgcnVsZXM6IFtcbiAgICAgICAge1xuICAgICAgICAgIHJ1bGVUeXBlOiBWYWxpZGF0aW9uUnVsZVR5cGUuUkVRVUlSRUQsXG4gICAgICAgICAgbWVzc2FnZTogXCJDb25kaXRpb24gaXMgcmVxdWlyZWRcIixcbiAgICAgICAgfSxcbiAgICAgIF0sXG4gICAgfSxcbiAgXSxcbn07XG5cbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBWRVJTSU9OIENPTkZJR1VSQVRJT05TXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG4vKipcbiAqIFZlcnNpb24gY29uZmlndXJhdGlvbiBmb3IgQWN0aXZpdHkgTG9nIEFsZXJ0IDIwMjAtMTAtMDFcbiAqL1xuZXhwb3J0IGNvbnN0IEFDVElWSVRZX0xPR19BTEVSVF9WRVJTSU9OXzIwMjBfMTBfMDE6IFZlcnNpb25Db25maWcgPSB7XG4gIHZlcnNpb246IFwiMjAyMC0xMC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Log Alert implementation using AzapiResource framework
|
|
3
|
+
*
|
|
4
|
+
* This class provides a version-aware implementation for Azure Activity Log Alerts
|
|
5
|
+
* that automatically handles version management, schema validation, and property
|
|
6
|
+
* transformation across all supported API versions.
|
|
7
|
+
*
|
|
8
|
+
* Supported API Versions:
|
|
9
|
+
* - 2020-10-01 (Active, Latest)
|
|
10
|
+
*
|
|
11
|
+
* Features:
|
|
12
|
+
* - Automatic latest version resolution when no version is specified
|
|
13
|
+
* - Explicit version pinning for stability requirements
|
|
14
|
+
* - Schema-driven validation and transformation
|
|
15
|
+
* - Full JSII compliance for multi-language support
|
|
16
|
+
* - Support for filtering by category, operation, and resource type
|
|
17
|
+
*/
|
|
18
|
+
import * as cdktf from "cdktf";
|
|
19
|
+
import { Construct } from "constructs";
|
|
20
|
+
import { AzapiResource, AzapiResourceProps } from "../../core-azure/lib/azapi/azapi-resource";
|
|
21
|
+
import { ApiSchema } from "../../core-azure/lib/version-manager/interfaces/version-interfaces";
|
|
22
|
+
/**
|
|
23
|
+
* Activity log alert leaf condition
|
|
24
|
+
*/
|
|
25
|
+
export interface ActivityLogAlertLeafCondition {
|
|
26
|
+
/**
|
|
27
|
+
* The field name to filter on
|
|
28
|
+
* Common values: category, operationName, resourceType, status, subStatus, resourceGroup
|
|
29
|
+
*/
|
|
30
|
+
readonly field: string;
|
|
31
|
+
/**
|
|
32
|
+
* The value to match
|
|
33
|
+
*/
|
|
34
|
+
readonly equalsValue: string;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Activity log alert condition
|
|
38
|
+
*/
|
|
39
|
+
export interface ActivityLogAlertCondition {
|
|
40
|
+
/**
|
|
41
|
+
* All conditions that must be met (AND logic)
|
|
42
|
+
*/
|
|
43
|
+
readonly allOf: ActivityLogAlertLeafCondition[];
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Activity log alert action group reference
|
|
47
|
+
*/
|
|
48
|
+
export interface ActivityLogAlertActionGroup {
|
|
49
|
+
/**
|
|
50
|
+
* The action group resource ID
|
|
51
|
+
*/
|
|
52
|
+
readonly actionGroupId: string;
|
|
53
|
+
/**
|
|
54
|
+
* Webhook properties (optional)
|
|
55
|
+
*/
|
|
56
|
+
readonly webhookProperties?: {
|
|
57
|
+
[key: string]: string;
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Activity log alert actions configuration
|
|
62
|
+
*/
|
|
63
|
+
export interface ActivityLogAlertActions {
|
|
64
|
+
/**
|
|
65
|
+
* Action groups to trigger
|
|
66
|
+
*/
|
|
67
|
+
readonly actionGroups?: ActivityLogAlertActionGroup[];
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Properties for the unified Azure Activity Log Alert
|
|
71
|
+
*
|
|
72
|
+
* Extends AzapiResourceProps with Activity Log Alert specific properties
|
|
73
|
+
*/
|
|
74
|
+
export interface ActivityLogAlertProps extends AzapiResourceProps {
|
|
75
|
+
/**
|
|
76
|
+
* Description of the alert rule
|
|
77
|
+
*/
|
|
78
|
+
readonly description?: string;
|
|
79
|
+
/**
|
|
80
|
+
* Whether the alert rule is enabled
|
|
81
|
+
* @defaultValue true
|
|
82
|
+
*/
|
|
83
|
+
readonly enabled?: boolean;
|
|
84
|
+
/**
|
|
85
|
+
* Resource IDs that this alert is scoped to
|
|
86
|
+
* Can be subscription, resource group, or specific resource IDs
|
|
87
|
+
* @example ["/subscriptions/00000000-0000-0000-0000-000000000000"]
|
|
88
|
+
* @example ["/subscriptions/.../resourceGroups/my-rg"]
|
|
89
|
+
*/
|
|
90
|
+
readonly scopes: string[];
|
|
91
|
+
/**
|
|
92
|
+
* Alert condition with field-value pairs
|
|
93
|
+
* All conditions are combined with AND logic
|
|
94
|
+
*/
|
|
95
|
+
readonly condition: ActivityLogAlertCondition;
|
|
96
|
+
/**
|
|
97
|
+
* Action groups to notify
|
|
98
|
+
*/
|
|
99
|
+
readonly actions?: ActivityLogAlertActions;
|
|
100
|
+
/**
|
|
101
|
+
* Resource group ID where the activity log alert will be created
|
|
102
|
+
*/
|
|
103
|
+
readonly resourceGroupId?: string;
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Activity Log Alert properties for the request body
|
|
107
|
+
*/
|
|
108
|
+
export interface ActivityLogAlertBodyProperties {
|
|
109
|
+
readonly description?: string;
|
|
110
|
+
readonly enabled: boolean;
|
|
111
|
+
readonly scopes: string[];
|
|
112
|
+
readonly condition: ActivityLogAlertCondition;
|
|
113
|
+
readonly actions?: ActivityLogAlertActions;
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* The resource body interface for Azure Activity Log Alert API calls
|
|
117
|
+
*/
|
|
118
|
+
export interface ActivityLogAlertBody {
|
|
119
|
+
readonly location: string;
|
|
120
|
+
readonly tags?: {
|
|
121
|
+
[key: string]: string;
|
|
122
|
+
};
|
|
123
|
+
readonly properties: ActivityLogAlertBodyProperties;
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* Unified Azure Activity Log Alert implementation
|
|
127
|
+
*
|
|
128
|
+
* This class provides a single, version-aware implementation that automatically handles version
|
|
129
|
+
* resolution, schema validation, and property transformation while maintaining full JSII compliance.
|
|
130
|
+
*
|
|
131
|
+
* Activity Log Alerts monitor Azure Activity Log events and trigger notifications when specific
|
|
132
|
+
* operations occur, such as resource deletions, configuration changes, or service health events.
|
|
133
|
+
*
|
|
134
|
+
* @example
|
|
135
|
+
* // Alert on VM deletion:
|
|
136
|
+
* const vmDeletionAlert = new ActivityLogAlert(this, "vm-deletion", {
|
|
137
|
+
* name: "vm-deletion-alert",
|
|
138
|
+
* resourceGroupId: resourceGroup.id,
|
|
139
|
+
* scopes: ["/subscriptions/00000000-0000-0000-0000-000000000000"],
|
|
140
|
+
* condition: {
|
|
141
|
+
* allOf: [
|
|
142
|
+
* { field: "category", equalsValue: "Administrative" },
|
|
143
|
+
* { field: "operationName", equalsValue: "Microsoft.Compute/virtualMachines/delete" },
|
|
144
|
+
* { field: "status", equalsValue: "Succeeded" }
|
|
145
|
+
* ]
|
|
146
|
+
* },
|
|
147
|
+
* actions: {
|
|
148
|
+
* actionGroups: [{
|
|
149
|
+
* actionGroupId: actionGroup.id
|
|
150
|
+
* }]
|
|
151
|
+
* }
|
|
152
|
+
* });
|
|
153
|
+
*
|
|
154
|
+
* @example
|
|
155
|
+
* // Alert on service health events:
|
|
156
|
+
* const serviceHealthAlert = new ActivityLogAlert(this, "service-health", {
|
|
157
|
+
* name: "service-health-alert",
|
|
158
|
+
* description: "Alert on Azure service health events",
|
|
159
|
+
* resourceGroupId: resourceGroup.id,
|
|
160
|
+
* scopes: ["/subscriptions/00000000-0000-0000-0000-000000000000"],
|
|
161
|
+
* condition: {
|
|
162
|
+
* allOf: [
|
|
163
|
+
* { field: "category", equalsValue: "ServiceHealth" },
|
|
164
|
+
* { field: "properties.incidentType", equalsValue: "Incident" }
|
|
165
|
+
* ]
|
|
166
|
+
* },
|
|
167
|
+
* actions: {
|
|
168
|
+
* actionGroups: [{
|
|
169
|
+
* actionGroupId: actionGroup.id,
|
|
170
|
+
* webhookProperties: {
|
|
171
|
+
* severity: "critical"
|
|
172
|
+
* }
|
|
173
|
+
* }]
|
|
174
|
+
* }
|
|
175
|
+
* });
|
|
176
|
+
*
|
|
177
|
+
* @stability stable
|
|
178
|
+
*/
|
|
179
|
+
export declare class ActivityLogAlert extends AzapiResource {
|
|
180
|
+
/**
|
|
181
|
+
* Static initialization flag to ensure schemas are registered only once
|
|
182
|
+
*/
|
|
183
|
+
private static schemasRegistered;
|
|
184
|
+
/**
|
|
185
|
+
* Ensures that Activity Log Alert schemas are registered with the ApiVersionManager
|
|
186
|
+
* This is called once during the first ActivityLogAlert instantiation
|
|
187
|
+
*/
|
|
188
|
+
private static ensureSchemasRegistered;
|
|
189
|
+
/**
|
|
190
|
+
* The input properties for this Activity Log Alert instance
|
|
191
|
+
*/
|
|
192
|
+
readonly props: ActivityLogAlertProps;
|
|
193
|
+
readonly idOutput: cdktf.TerraformOutput;
|
|
194
|
+
readonly nameOutput: cdktf.TerraformOutput;
|
|
195
|
+
readonly id: string;
|
|
196
|
+
/**
|
|
197
|
+
* Creates a new Azure Activity Log Alert using the AzapiResource framework
|
|
198
|
+
*
|
|
199
|
+
* The constructor automatically handles version resolution, schema registration,
|
|
200
|
+
* validation, and resource creation.
|
|
201
|
+
*
|
|
202
|
+
* @param scope - The scope in which to define this construct
|
|
203
|
+
* @param id - The unique identifier for this instance
|
|
204
|
+
* @param props - Configuration properties for the Activity Log Alert
|
|
205
|
+
*/
|
|
206
|
+
constructor(scope: Construct, id: string, props: ActivityLogAlertProps);
|
|
207
|
+
/**
|
|
208
|
+
* Gets the default API version to use when no explicit version is specified
|
|
209
|
+
* Returns the most recent stable version as the default
|
|
210
|
+
*/
|
|
211
|
+
protected defaultVersion(): string;
|
|
212
|
+
/**
|
|
213
|
+
* Gets the Azure resource type for Activity Log Alerts
|
|
214
|
+
*/
|
|
215
|
+
protected resourceType(): string;
|
|
216
|
+
/**
|
|
217
|
+
* Gets the API schema for the resolved version
|
|
218
|
+
* Uses the framework's schema resolution to get the appropriate schema
|
|
219
|
+
*/
|
|
220
|
+
protected apiSchema(): ApiSchema;
|
|
221
|
+
/**
|
|
222
|
+
* Creates the resource body for the Azure API call
|
|
223
|
+
* Transforms the input properties into the JSON format expected by Azure REST API
|
|
224
|
+
*/
|
|
225
|
+
protected createResourceBody(props: any): any;
|
|
226
|
+
/**
|
|
227
|
+
* Add a tag to the Activity Log Alert
|
|
228
|
+
* Note: This modifies the construct props but requires a new deployment to take effect
|
|
229
|
+
*/
|
|
230
|
+
addTag(key: string, value: string): void;
|
|
231
|
+
/**
|
|
232
|
+
* Remove a tag from the Activity Log Alert
|
|
233
|
+
* Note: This modifies the construct props but requires a new deployment to take effect
|
|
234
|
+
*/
|
|
235
|
+
removeTag(key: string): void;
|
|
236
|
+
}
|