@volcengine/pulumi 0.0.31 → 0.0.33
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/cen/bandwidthPackage.d.ts +15 -3
- package/cen/bandwidthPackage.js +2 -0
- package/cen/bandwidthPackage.js.map +1 -1
- package/cen/getGrantInstances.d.ts +106 -0
- package/cen/getGrantInstances.js +53 -0
- package/cen/getGrantInstances.js.map +1 -0
- package/cen/getInterRegionBandwidths.d.ts +12 -0
- package/cen/getInterRegionBandwidths.js +1 -0
- package/cen/getInterRegionBandwidths.js.map +1 -1
- package/cen/grantInstances.d.ts +108 -0
- package/cen/grantInstances.js +56 -0
- package/cen/grantInstances.js.map +1 -0
- package/cen/index.d.ts +6 -0
- package/cen/index.js +7 -1
- package/cen/index.js.map +1 -1
- package/cen/interRegionBandwidths.d.ts +12 -0
- package/cen/interRegionBandwidths.js +1 -0
- package/cen/interRegionBandwidths.js.map +1 -1
- package/cen/serviceRouteEntry.d.ts +2 -2
- package/cen/serviceRouteEntry.js +2 -2
- package/cr/getNamespaces.d.ts +9 -0
- package/cr/getNamespaces.js +1 -0
- package/cr/getNamespaces.js.map +1 -1
- package/cr/getRegistries.d.ts +9 -0
- package/cr/getRegistries.js +1 -0
- package/cr/getRegistries.js.map +1 -1
- package/cr/namespace.d.ts +12 -0
- package/cr/namespace.js +2 -0
- package/cr/namespace.js.map +1 -1
- package/cr/namespaces.d.ts +9 -0
- package/cr/namespaces.js +1 -0
- package/cr/namespaces.js.map +1 -1
- package/cr/registries.d.ts +9 -0
- package/cr/registries.js +1 -0
- package/cr/registries.js.map +1 -1
- package/cr/registry.d.ts +35 -3
- package/cr/registry.js +6 -2
- package/cr/registry.js.map +1 -1
- package/dns/backup.d.ts +10 -1
- package/dns/backup.js +10 -1
- package/dns/backup.js.map +1 -1
- package/dns/zone.d.ts +1 -1
- package/dns/zone.js +1 -1
- package/ebs/getMaxExtraPerformances.d.ts +104 -0
- package/ebs/getMaxExtraPerformances.js +52 -0
- package/ebs/getMaxExtraPerformances.js.map +1 -0
- package/ebs/index.d.ts +6 -0
- package/ebs/index.js +7 -1
- package/ebs/index.js.map +1 -1
- package/ebs/maxExtraPerformances.d.ts +106 -0
- package/ebs/maxExtraPerformances.js +55 -0
- package/ebs/maxExtraPerformances.js.map +1 -0
- package/ebs/volume.d.ts +22 -14
- package/ebs/volume.js +7 -2
- package/ebs/volume.js.map +1 -1
- package/escloud_v2/escloudInstanceV2.d.ts +19 -3
- package/escloud_v2/escloudInstanceV2.js +19 -3
- package/escloud_v2/escloudInstanceV2.js.map +1 -1
- package/escloud_v2/escloudNodeAvailableSpecs.d.ts +73 -0
- package/escloud_v2/escloudNodeAvailableSpecs.js +46 -0
- package/escloud_v2/escloudNodeAvailableSpecs.js.map +1 -0
- package/escloud_v2/escloudZonesV2.d.ts +64 -0
- package/escloud_v2/escloudZonesV2.js +45 -0
- package/escloud_v2/escloudZonesV2.js.map +1 -0
- package/escloud_v2/getEscloudNodeAvailableSpecs.d.ts +71 -0
- package/escloud_v2/getEscloudNodeAvailableSpecs.js +43 -0
- package/escloud_v2/getEscloudNodeAvailableSpecs.js.map +1 -0
- package/escloud_v2/getEscloudZonesV2.d.ts +62 -0
- package/escloud_v2/getEscloudZonesV2.js +42 -0
- package/escloud_v2/getEscloudZonesV2.js.map +1 -0
- package/escloud_v2/index.d.ts +12 -0
- package/escloud_v2/index.js +13 -1
- package/escloud_v2/index.js.map +1 -1
- package/index.d.ts +4 -1
- package/index.js +8 -1
- package/index.js.map +1 -1
- package/kafka/allowList.d.ts +98 -0
- package/kafka/allowList.js +85 -0
- package/kafka/allowList.js.map +1 -0
- package/kafka/allowListAssociate.d.ts +90 -0
- package/kafka/allowListAssociate.js +87 -0
- package/kafka/allowListAssociate.js.map +1 -0
- package/kafka/allowLists.d.ts +91 -0
- package/kafka/allowLists.js +52 -0
- package/kafka/allowLists.js.map +1 -0
- package/kafka/getAllowLists.d.ts +89 -0
- package/kafka/getAllowLists.js +49 -0
- package/kafka/getAllowLists.js.map +1 -0
- package/kafka/index.d.ts +12 -0
- package/kafka/index.js +17 -1
- package/kafka/index.js.map +1 -1
- package/kafka/instance.d.ts +37 -0
- package/kafka/instance.js +37 -0
- package/kafka/instance.js.map +1 -1
- package/kms/getKeyrings.d.ts +154 -0
- package/kms/getKeyrings.js +69 -0
- package/kms/getKeyrings.js.map +1 -0
- package/kms/getKeys.d.ts +263 -0
- package/kms/getKeys.js +106 -0
- package/kms/getKeys.js.map +1 -0
- package/kms/getSecrets.d.ts +202 -0
- package/kms/getSecrets.js +73 -0
- package/kms/getSecrets.js.map +1 -0
- package/kms/index.d.ts +36 -0
- package/kms/index.js +65 -0
- package/kms/index.js.map +1 -0
- package/kms/key.d.ts +282 -0
- package/kms/key.js +127 -0
- package/kms/key.js.map +1 -0
- package/kms/keyArchive.d.ts +119 -0
- package/kms/keyArchive.js +94 -0
- package/kms/keyArchive.js.map +1 -0
- package/kms/keyEnable.d.ts +105 -0
- package/kms/keyEnable.js +80 -0
- package/kms/keyEnable.js.map +1 -0
- package/kms/keyRotation.d.ts +105 -0
- package/kms/keyRotation.js +80 -0
- package/kms/keyRotation.js.map +1 -0
- package/kms/keyring.d.ts +139 -0
- package/kms/keyring.js +89 -0
- package/kms/keyring.js.map +1 -0
- package/kms/keyrings.d.ts +156 -0
- package/kms/keyrings.js +72 -0
- package/kms/keyrings.js.map +1 -0
- package/kms/keys.d.ts +265 -0
- package/kms/keys.js +109 -0
- package/kms/keys.js.map +1 -0
- package/kms/secret.d.ts +264 -0
- package/kms/secret.js +122 -0
- package/kms/secret.js.map +1 -0
- package/kms/secrets.d.ts +204 -0
- package/kms/secrets.js +76 -0
- package/kms/secrets.js.map +1 -0
- package/mongodb/getInstanceParameterLogs.d.ts +1 -1
- package/mongodb/instance.d.ts +66 -11
- package/mongodb/instance.js +40 -11
- package/mongodb/instance.js.map +1 -1
- package/mongodb/instanceParameter.d.ts +1 -1
- package/mongodb/instanceParameter.js +1 -1
- package/mongodb/instanceParameterLogs.d.ts +1 -1
- package/nas/autoSnapshotPolicies.d.ts +115 -0
- package/nas/autoSnapshotPolicies.js +66 -0
- package/nas/autoSnapshotPolicies.js.map +1 -0
- package/nas/autoSnapshotPolicy.d.ts +132 -0
- package/nas/autoSnapshotPolicy.js +94 -0
- package/nas/autoSnapshotPolicy.js.map +1 -0
- package/nas/autoSnapshotPolicyApply.d.ts +101 -0
- package/nas/autoSnapshotPolicyApply.js +98 -0
- package/nas/autoSnapshotPolicyApply.js.map +1 -0
- package/nas/getAutoSnapshotPolicies.d.ts +113 -0
- package/nas/getAutoSnapshotPolicies.js +63 -0
- package/nas/getAutoSnapshotPolicies.js.map +1 -0
- package/nas/index.d.ts +12 -0
- package/nas/index.js +17 -1
- package/nas/index.js.map +1 -1
- package/package.json +1 -1
- package/private_zone/getPrivateZones.d.ts +31 -0
- package/private_zone/getPrivateZones.js +3 -0
- package/private_zone/getPrivateZones.js.map +1 -1
- package/private_zone/getRecords.d.ts +19 -4
- package/private_zone/getRecords.js +1 -0
- package/private_zone/getRecords.js.map +1 -1
- package/private_zone/getResolverEndpoints.d.ts +22 -0
- package/private_zone/getResolverEndpoints.js +2 -0
- package/private_zone/getResolverEndpoints.js.map +1 -1
- package/private_zone/getResolverRules.d.ts +22 -0
- package/private_zone/getResolverRules.js +2 -0
- package/private_zone/getResolverRules.js.map +1 -1
- package/private_zone/privateZone.d.ts +44 -0
- package/private_zone/privateZone.js +11 -0
- package/private_zone/privateZone.js.map +1 -1
- package/private_zone/privateZones.d.ts +31 -0
- package/private_zone/privateZones.js +3 -0
- package/private_zone/privateZones.js.map +1 -1
- package/private_zone/record.d.ts +24 -0
- package/private_zone/record.js +4 -0
- package/private_zone/record.js.map +1 -1
- package/private_zone/records.d.ts +19 -4
- package/private_zone/records.js +1 -0
- package/private_zone/records.js.map +1 -1
- package/private_zone/resolverEndpoint.d.ts +45 -2
- package/private_zone/resolverEndpoint.js +11 -4
- package/private_zone/resolverEndpoint.js.map +1 -1
- package/private_zone/resolverEndpoints.d.ts +22 -0
- package/private_zone/resolverEndpoints.js +2 -0
- package/private_zone/resolverEndpoints.js.map +1 -1
- package/private_zone/resolverRule.d.ts +62 -3
- package/private_zone/resolverRule.js +13 -0
- package/private_zone/resolverRule.js.map +1 -1
- package/private_zone/resolverRules.d.ts +22 -0
- package/private_zone/resolverRules.js +2 -0
- package/private_zone/resolverRules.js.map +1 -1
- package/private_zone/userVpcAuthorization.d.ts +24 -0
- package/private_zone/userVpcAuthorization.js +4 -0
- package/private_zone/userVpcAuthorization.js.map +1 -1
- package/rabbitmq/getRegions.d.ts +62 -0
- package/rabbitmq/getRegions.js +42 -0
- package/rabbitmq/getRegions.js.map +1 -0
- package/rabbitmq/getZones.d.ts +62 -0
- package/rabbitmq/getZones.js +42 -0
- package/rabbitmq/getZones.js.map +1 -0
- package/rabbitmq/index.d.ts +12 -0
- package/rabbitmq/index.js +13 -1
- package/rabbitmq/index.js.map +1 -1
- package/rabbitmq/regions.d.ts +64 -0
- package/rabbitmq/regions.js +45 -0
- package/rabbitmq/regions.js.map +1 -0
- package/rabbitmq/zones.d.ts +64 -0
- package/rabbitmq/zones.js +45 -0
- package/rabbitmq/zones.js.map +1 -0
- package/rds_mysql/account.d.ts +53 -3
- package/rds_mysql/account.js +20 -0
- package/rds_mysql/account.js.map +1 -1
- package/rds_mysql/accountTableColumnInfos.d.ts +139 -0
- package/rds_mysql/accountTableColumnInfos.js +57 -0
- package/rds_mysql/accountTableColumnInfos.js.map +1 -0
- package/rds_mysql/backupPolicy.d.ts +30 -1
- package/rds_mysql/backupPolicy.js +12 -1
- package/rds_mysql/backupPolicy.js.map +1 -1
- package/rds_mysql/backups.d.ts +2 -16
- package/rds_mysql/backups.js +2 -16
- package/rds_mysql/backups.js.map +1 -1
- package/rds_mysql/database.d.ts +13 -0
- package/rds_mysql/database.js +3 -0
- package/rds_mysql/database.js.map +1 -1
- package/rds_mysql/endpoint.d.ts +32 -34
- package/rds_mysql/endpoint.js +10 -19
- package/rds_mysql/endpoint.js.map +1 -1
- package/rds_mysql/getAccountTableColumnInfos.d.ts +137 -0
- package/rds_mysql/getAccountTableColumnInfos.js +54 -0
- package/rds_mysql/getAccountTableColumnInfos.js.map +1 -0
- package/rds_mysql/getBackups.d.ts +2 -16
- package/rds_mysql/getBackups.js +2 -16
- package/rds_mysql/getBackups.js.map +1 -1
- package/rds_mysql/getInstances.d.ts +75 -0
- package/rds_mysql/getInstances.js +7 -0
- package/rds_mysql/getInstances.js.map +1 -1
- package/rds_mysql/getPlannedEvents.d.ts +132 -0
- package/rds_mysql/getPlannedEvents.js +52 -0
- package/rds_mysql/getPlannedEvents.js.map +1 -0
- package/rds_mysql/getTasks.d.ts +175 -0
- package/rds_mysql/getTasks.js +60 -0
- package/rds_mysql/getTasks.js.map +1 -0
- package/rds_mysql/index.d.ts +18 -0
- package/rds_mysql/index.js +20 -2
- package/rds_mysql/index.js.map +1 -1
- package/rds_mysql/instance.d.ts +209 -20
- package/rds_mysql/instance.js +82 -11
- package/rds_mysql/instance.js.map +1 -1
- package/rds_mysql/instanceReadonlyNode.d.ts +8 -0
- package/rds_mysql/instanceReadonlyNode.js +2 -0
- package/rds_mysql/instanceReadonlyNode.js.map +1 -1
- package/rds_mysql/instances.d.ts +75 -0
- package/rds_mysql/instances.js +7 -0
- package/rds_mysql/instances.js.map +1 -1
- package/rds_mysql/plannedEvents.d.ts +134 -0
- package/rds_mysql/plannedEvents.js +55 -0
- package/rds_mysql/plannedEvents.js.map +1 -0
- package/rds_mysql/tasks.d.ts +177 -0
- package/rds_mysql/tasks.js +63 -0
- package/rds_mysql/tasks.js.map +1 -0
- package/rds_postgresql/instance.d.ts +54 -3
- package/rds_postgresql/instance.js +54 -3
- package/rds_postgresql/instance.js.map +1 -1
- package/redis/allowList.d.ts +24 -0
- package/redis/allowList.js +6 -0
- package/redis/allowList.js.map +1 -1
- package/redis/allowLists.d.ts +39 -0
- package/redis/allowLists.js +4 -0
- package/redis/allowLists.js.map +1 -1
- package/redis/backup.d.ts +46 -7
- package/redis/backup.js +14 -3
- package/redis/backup.js.map +1 -1
- package/redis/backupRestore.d.ts +14 -2
- package/redis/backupRestore.js +2 -3
- package/redis/backupRestore.js.map +1 -1
- package/redis/backups.d.ts +47 -5
- package/redis/backups.js +5 -0
- package/redis/backups.js.map +1 -1
- package/redis/bigKeys.d.ts +181 -0
- package/redis/bigKeys.js +110 -0
- package/redis/bigKeys.js.map +1 -0
- package/redis/getAllowLists.d.ts +39 -0
- package/redis/getAllowLists.js +4 -0
- package/redis/getAllowLists.js.map +1 -1
- package/redis/getBackups.d.ts +47 -5
- package/redis/getBackups.js +5 -0
- package/redis/getBackups.js.map +1 -1
- package/redis/getBigKeys.d.ts +179 -0
- package/redis/getBigKeys.js +107 -0
- package/redis/getBigKeys.js.map +1 -0
- package/redis/getInstanceSpecs.d.ts +76 -0
- package/redis/getInstanceSpecs.js +29 -0
- package/redis/getInstanceSpecs.js.map +1 -0
- package/redis/getInstances.d.ts +3 -0
- package/redis/getInstances.js.map +1 -1
- package/redis/getParameterGroups.d.ts +79 -0
- package/redis/getParameterGroups.js +29 -0
- package/redis/getParameterGroups.js.map +1 -0
- package/redis/getPlannedEvents.d.ts +161 -0
- package/redis/getPlannedEvents.js +106 -0
- package/redis/getPlannedEvents.js.map +1 -0
- package/redis/index.d.ts +27 -0
- package/redis/index.js +31 -1
- package/redis/index.js.map +1 -1
- package/redis/instance.d.ts +93 -2
- package/redis/instance.js +22 -1
- package/redis/instance.js.map +1 -1
- package/redis/instanceSpecs.d.ts +78 -0
- package/redis/instanceSpecs.js +32 -0
- package/redis/instanceSpecs.js.map +1 -0
- package/redis/instances.d.ts +3 -0
- package/redis/instances.js.map +1 -1
- package/redis/parameterGroup.d.ts +118 -0
- package/redis/parameterGroup.js +93 -0
- package/redis/parameterGroup.js.map +1 -0
- package/redis/parameterGroups.d.ts +81 -0
- package/redis/parameterGroups.js +32 -0
- package/redis/parameterGroups.js.map +1 -0
- package/redis/plannedEvents.d.ts +163 -0
- package/redis/plannedEvents.js +109 -0
- package/redis/plannedEvents.js.map +1 -0
- package/tls/consumerGroup.d.ts +121 -0
- package/tls/consumerGroup.js +97 -0
- package/tls/consumerGroup.js.map +1 -0
- package/tls/consumerGroups.d.ts +139 -0
- package/tls/consumerGroups.js +52 -0
- package/tls/consumerGroups.js.map +1 -0
- package/tls/etlTask.d.ts +196 -0
- package/tls/etlTask.js +123 -0
- package/tls/etlTask.js.map +1 -0
- package/tls/etlTasks.d.ts +160 -0
- package/tls/etlTasks.js +54 -0
- package/tls/etlTasks.js.map +1 -0
- package/tls/getConsumerGroups.d.ts +137 -0
- package/tls/getConsumerGroups.js +49 -0
- package/tls/getConsumerGroups.js.map +1 -0
- package/tls/getEtlTasks.d.ts +158 -0
- package/tls/getEtlTasks.js +51 -0
- package/tls/getEtlTasks.js.map +1 -0
- package/tls/getImportTasks.d.ts +173 -0
- package/tls/getImportTasks.js +52 -0
- package/tls/getImportTasks.js.map +1 -0
- package/tls/getScheduleSqlTasks.d.ts +155 -0
- package/tls/getScheduleSqlTasks.js +51 -0
- package/tls/getScheduleSqlTasks.js.map +1 -0
- package/tls/getShippers.d.ts +164 -0
- package/tls/getShippers.js +51 -0
- package/tls/getShippers.js.map +1 -0
- package/tls/importTask.d.ts +175 -0
- package/tls/importTask.js +110 -0
- package/tls/importTask.js.map +1 -0
- package/tls/importTasks.d.ts +175 -0
- package/tls/importTasks.js +55 -0
- package/tls/importTasks.js.map +1 -0
- package/tls/index.d.ts +45 -0
- package/tls/index.js +57 -2
- package/tls/index.js.map +1 -1
- package/tls/scheduleSqlTask.d.ts +219 -0
- package/tls/scheduleSqlTask.js +135 -0
- package/tls/scheduleSqlTask.js.map +1 -0
- package/tls/scheduleSqlTasks.d.ts +157 -0
- package/tls/scheduleSqlTasks.js +54 -0
- package/tls/scheduleSqlTasks.js.map +1 -0
- package/tls/shipper.d.ts +191 -0
- package/tls/shipper.js +119 -0
- package/tls/shipper.js.map +1 -0
- package/tls/shippers.d.ts +166 -0
- package/tls/shippers.js +54 -0
- package/tls/shippers.js.map +1 -0
- package/types/input.d.ts +1107 -31
- package/types/output.d.ts +9274 -2000
- package/vefaas/function.d.ts +346 -0
- package/vefaas/function.js +126 -0
- package/vefaas/function.js.map +1 -0
- package/vefaas/functions.d.ts +73 -0
- package/vefaas/functions.js +46 -0
- package/vefaas/functions.js.map +1 -0
- package/vefaas/getFunctions.d.ts +71 -0
- package/vefaas/getFunctions.js +43 -0
- package/vefaas/getFunctions.js.map +1 -0
- package/vefaas/getKafkaTriggers.d.ts +87 -0
- package/vefaas/getKafkaTriggers.js +47 -0
- package/vefaas/getKafkaTriggers.js.map +1 -0
- package/vefaas/getReleases.d.ts +106 -0
- package/vefaas/getReleases.js +49 -0
- package/vefaas/getReleases.js.map +1 -0
- package/vefaas/getTimers.d.ts +87 -0
- package/vefaas/getTimers.js +47 -0
- package/vefaas/getTimers.js.map +1 -0
- package/vefaas/index.d.ts +36 -0
- package/vefaas/index.js +61 -0
- package/vefaas/index.js.map +1 -0
- package/vefaas/kafkaTrigger.d.ts +232 -0
- package/vefaas/kafkaTrigger.js +119 -0
- package/vefaas/kafkaTrigger.js.map +1 -0
- package/vefaas/kafkaTriggers.d.ts +89 -0
- package/vefaas/kafkaTriggers.js +50 -0
- package/vefaas/kafkaTriggers.js.map +1 -0
- package/vefaas/release.d.ts +211 -0
- package/vefaas/release.js +108 -0
- package/vefaas/release.js.map +1 -0
- package/vefaas/releases.d.ts +108 -0
- package/vefaas/releases.js +52 -0
- package/vefaas/releases.js.map +1 -0
- package/vefaas/timer.d.ts +170 -0
- package/vefaas/timer.js +95 -0
- package/vefaas/timer.js.map +1 -0
- package/vefaas/timers.d.ts +89 -0
- package/vefaas/timers.js +50 -0
- package/vefaas/timers.js.map +1 -0
- package/vke/getPermissions.d.ts +137 -0
- package/vke/getPermissions.js +55 -0
- package/vke/getPermissions.js.map +1 -0
- package/vke/index.d.ts +9 -0
- package/vke/index.js +12 -1
- package/vke/index.js.map +1 -1
- package/vke/permission.d.ts +269 -0
- package/vke/permission.js +165 -0
- package/vke/permission.js.map +1 -0
- package/vke/permissions.d.ts +139 -0
- package/vke/permissions.js +58 -0
- package/vke/permissions.js.map +1 -0
- package/vmp/alertingRule.d.ts +300 -0
- package/vmp/alertingRule.js +220 -0
- package/vmp/alertingRule.js.map +1 -0
- package/vmp/alertingRules.d.ts +386 -0
- package/vmp/alertingRules.js +291 -0
- package/vmp/alertingRules.js.map +1 -0
- package/vmp/alerts.d.ts +119 -0
- package/vmp/alerts.js +54 -0
- package/vmp/alerts.js.map +1 -0
- package/vmp/contact.d.ts +181 -0
- package/vmp/contact.js +102 -0
- package/vmp/contact.js.map +1 -0
- package/vmp/contactGroup.d.ts +124 -0
- package/vmp/contactGroup.js +109 -0
- package/vmp/contactGroup.js.map +1 -0
- package/vmp/contactGroups.d.ts +167 -0
- package/vmp/contactGroups.js +129 -0
- package/vmp/contactGroups.js.map +1 -0
- package/vmp/contacts.d.ts +137 -0
- package/vmp/contacts.js +88 -0
- package/vmp/contacts.js.map +1 -0
- package/vmp/getAlertingRules.d.ts +384 -0
- package/vmp/getAlertingRules.js +288 -0
- package/vmp/getAlertingRules.js.map +1 -0
- package/vmp/getAlerts.d.ts +117 -0
- package/vmp/getAlerts.js +51 -0
- package/vmp/getAlerts.js.map +1 -0
- package/vmp/getContactGroups.d.ts +165 -0
- package/vmp/getContactGroups.js +126 -0
- package/vmp/getContactGroups.js.map +1 -0
- package/vmp/getContacts.d.ts +135 -0
- package/vmp/getContacts.js +85 -0
- package/vmp/getContacts.js.map +1 -0
- package/vmp/getInstanceTypes.d.ts +75 -0
- package/vmp/getInstanceTypes.js +47 -0
- package/vmp/getInstanceTypes.js.map +1 -0
- package/vmp/getNotifyGroupPolicies.d.ts +141 -0
- package/vmp/getNotifyGroupPolicies.js +102 -0
- package/vmp/getNotifyGroupPolicies.js.map +1 -0
- package/vmp/getNotifyPolicies.d.ts +221 -0
- package/vmp/getNotifyPolicies.js +160 -0
- package/vmp/getNotifyPolicies.js.map +1 -0
- package/vmp/getNotifyTemplates.d.ts +134 -0
- package/vmp/getNotifyTemplates.js +76 -0
- package/vmp/getNotifyTemplates.js.map +1 -0
- package/vmp/getRuleFiles.d.ts +152 -0
- package/vmp/getRuleFiles.js +93 -0
- package/vmp/getRuleFiles.js.map +1 -0
- package/vmp/getRules.d.ts +131 -0
- package/vmp/getRules.js +53 -0
- package/vmp/getRules.js.map +1 -0
- package/vmp/getWorkspaces.d.ts +146 -0
- package/vmp/getWorkspaces.js +68 -0
- package/vmp/getWorkspaces.js.map +1 -0
- package/vmp/index.d.ts +90 -0
- package/vmp/index.js +124 -0
- package/vmp/index.js.map +1 -0
- package/vmp/instanceTypes.d.ts +77 -0
- package/vmp/instanceTypes.js +50 -0
- package/vmp/instanceTypes.js.map +1 -0
- package/vmp/notifyGroupPolicies.d.ts +143 -0
- package/vmp/notifyGroupPolicies.js +105 -0
- package/vmp/notifyGroupPolicies.js.map +1 -0
- package/vmp/notifyGroupPolicy.d.ts +118 -0
- package/vmp/notifyGroupPolicy.js +100 -0
- package/vmp/notifyGroupPolicy.js.map +1 -0
- package/vmp/notifyPolicies.d.ts +223 -0
- package/vmp/notifyPolicies.js +163 -0
- package/vmp/notifyPolicies.js.map +1 -0
- package/vmp/notifyPolicy.d.ts +158 -0
- package/vmp/notifyPolicy.js +130 -0
- package/vmp/notifyPolicy.js.map +1 -0
- package/vmp/notifyTemplate.d.ts +144 -0
- package/vmp/notifyTemplate.js +100 -0
- package/vmp/notifyTemplate.js.map +1 -0
- package/vmp/notifyTemplates.d.ts +136 -0
- package/vmp/notifyTemplates.js +79 -0
- package/vmp/notifyTemplates.js.map +1 -0
- package/vmp/ruleFile.d.ts +163 -0
- package/vmp/ruleFile.js +110 -0
- package/vmp/ruleFile.js.map +1 -0
- package/vmp/ruleFiles.d.ts +154 -0
- package/vmp/ruleFiles.js +96 -0
- package/vmp/ruleFiles.js.map +1 -0
- package/vmp/rules.d.ts +133 -0
- package/vmp/rules.js +56 -0
- package/vmp/rules.js.map +1 -0
- package/vmp/workspace.d.ts +212 -0
- package/vmp/workspace.js +110 -0
- package/vmp/workspace.js.map +1 -0
- package/vmp/workspaces.d.ts +148 -0
- package/vmp/workspaces.js +71 -0
- package/vmp/workspaces.js.map +1 -0
- package/vpc/routeEntry.d.ts +30 -9
- package/vpc/routeEntry.js +27 -6
- package/vpc/routeEntry.js.map +1 -1
|
@@ -0,0 +1,300 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "../types/input";
|
|
3
|
+
import * as outputs from "../types/output";
|
|
4
|
+
/**
|
|
5
|
+
* Provides a resource to manage vmp alerting rule
|
|
6
|
+
* ## Example Usage
|
|
7
|
+
*
|
|
8
|
+
* ```typescript
|
|
9
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
10
|
+
* import * as volcengine from "@volcengine/pulumi";
|
|
11
|
+
*
|
|
12
|
+
* const fooWorkspace = new volcengine.vmp.Workspace("fooWorkspace", {
|
|
13
|
+
* instanceTypeId: "vmp.standard.15d",
|
|
14
|
+
* deleteProtectionEnabled: false,
|
|
15
|
+
* description: "acc-test-1",
|
|
16
|
+
* username: "admin123",
|
|
17
|
+
* password: "Pass123456",
|
|
18
|
+
* });
|
|
19
|
+
* const fooContact = new volcengine.vmp.Contact("fooContact", {
|
|
20
|
+
* email: "acctest1@tftest.com",
|
|
21
|
+
* webhook: {
|
|
22
|
+
* address: "https://www.acctest1.com",
|
|
23
|
+
* },
|
|
24
|
+
* larkBotWebhook: {
|
|
25
|
+
* address: "https://www.acctest1.com",
|
|
26
|
+
* },
|
|
27
|
+
* dingTalkBotWebhook: {
|
|
28
|
+
* address: "https://www.dingacctest1.com",
|
|
29
|
+
* atMobiles: ["18046891812"],
|
|
30
|
+
* },
|
|
31
|
+
* phoneNumber: {
|
|
32
|
+
* countryCode: "+86",
|
|
33
|
+
* number: "18310101010",
|
|
34
|
+
* },
|
|
35
|
+
* });
|
|
36
|
+
* const foo1Contact = new volcengine.vmp.Contact("foo1Contact", {
|
|
37
|
+
* email: "acctest2@tftest.com",
|
|
38
|
+
* webhook: {
|
|
39
|
+
* address: "https://www.acctest2.com",
|
|
40
|
+
* },
|
|
41
|
+
* larkBotWebhook: {
|
|
42
|
+
* address: "https://www.acctest2.com",
|
|
43
|
+
* },
|
|
44
|
+
* dingTalkBotWebhook: {
|
|
45
|
+
* address: "https://www.dingacctest2.com",
|
|
46
|
+
* atMobiles: ["18046891813"],
|
|
47
|
+
* },
|
|
48
|
+
* phoneNumber: {
|
|
49
|
+
* countryCode: "+86",
|
|
50
|
+
* number: "18310101011",
|
|
51
|
+
* },
|
|
52
|
+
* });
|
|
53
|
+
* const fooContactGroup = new volcengine.vmp.ContactGroup("fooContactGroup", {contactIds: [fooContact.id]});
|
|
54
|
+
* const foo1ContactGroup = new volcengine.vmp.ContactGroup("foo1ContactGroup", {contactIds: [foo1Contact.id]});
|
|
55
|
+
* const fooNotifyPolicy = new volcengine.vmp.NotifyPolicy("fooNotifyPolicy", {
|
|
56
|
+
* description: "acc-test-1",
|
|
57
|
+
* levels: [
|
|
58
|
+
* {
|
|
59
|
+
* level: "P1",
|
|
60
|
+
* contactGroupIds: [fooContactGroup.id],
|
|
61
|
+
* channels: [
|
|
62
|
+
* "Email",
|
|
63
|
+
* "Webhook",
|
|
64
|
+
* ],
|
|
65
|
+
* },
|
|
66
|
+
* {
|
|
67
|
+
* level: "P0",
|
|
68
|
+
* contactGroupIds: [foo1ContactGroup.id],
|
|
69
|
+
* channels: ["LarkBotWebhook"],
|
|
70
|
+
* },
|
|
71
|
+
* ],
|
|
72
|
+
* });
|
|
73
|
+
* const fooNotifyGroupPolicy = new volcengine.vmp.NotifyGroupPolicy("fooNotifyGroupPolicy", {
|
|
74
|
+
* description: "acc-test-1",
|
|
75
|
+
* levels: [
|
|
76
|
+
* {
|
|
77
|
+
* level: "P2",
|
|
78
|
+
* groupBies: ["__rule__"],
|
|
79
|
+
* groupWait: "35",
|
|
80
|
+
* groupInterval: "60",
|
|
81
|
+
* repeatInterval: "70",
|
|
82
|
+
* },
|
|
83
|
+
* {
|
|
84
|
+
* level: "P0",
|
|
85
|
+
* groupBies: ["__rule__"],
|
|
86
|
+
* groupWait: "30",
|
|
87
|
+
* groupInterval: "60",
|
|
88
|
+
* repeatInterval: "70",
|
|
89
|
+
* },
|
|
90
|
+
* {
|
|
91
|
+
* level: "P1",
|
|
92
|
+
* groupBies: ["__rule__"],
|
|
93
|
+
* groupWait: "40",
|
|
94
|
+
* groupInterval: "75",
|
|
95
|
+
* repeatInterval: "75",
|
|
96
|
+
* },
|
|
97
|
+
* ],
|
|
98
|
+
* });
|
|
99
|
+
* const fooAlertingRule = new volcengine.vmp.AlertingRule("fooAlertingRule", {
|
|
100
|
+
* description: "acc-test-1",
|
|
101
|
+
* notifyPolicyId: fooNotifyPolicy.id,
|
|
102
|
+
* notifyGroupPolicyId: fooNotifyGroupPolicy.id,
|
|
103
|
+
* query: {
|
|
104
|
+
* workspaceId: fooWorkspace.id,
|
|
105
|
+
* promQl: "sum(up)",
|
|
106
|
+
* },
|
|
107
|
+
* levels: [
|
|
108
|
+
* {
|
|
109
|
+
* level: "P0",
|
|
110
|
+
* "for": "0s",
|
|
111
|
+
* comparator: ">=",
|
|
112
|
+
* threshold: 2,
|
|
113
|
+
* },
|
|
114
|
+
* {
|
|
115
|
+
* level: "P1",
|
|
116
|
+
* "for": "0s",
|
|
117
|
+
* comparator: ">=",
|
|
118
|
+
* threshold: 1,
|
|
119
|
+
* },
|
|
120
|
+
* {
|
|
121
|
+
* level: "P2",
|
|
122
|
+
* "for": "0s",
|
|
123
|
+
* comparator: ">=",
|
|
124
|
+
* threshold: 0.5,
|
|
125
|
+
* },
|
|
126
|
+
* ],
|
|
127
|
+
* annotations: [{
|
|
128
|
+
* name: "annotation",
|
|
129
|
+
* value: "acc-test",
|
|
130
|
+
* }],
|
|
131
|
+
* labels: [{
|
|
132
|
+
* name: "label",
|
|
133
|
+
* value: "acc-test",
|
|
134
|
+
* }],
|
|
135
|
+
* });
|
|
136
|
+
* ```
|
|
137
|
+
*
|
|
138
|
+
* ## Import
|
|
139
|
+
*
|
|
140
|
+
* VmpAlertingRule can be imported using the id, e.g.
|
|
141
|
+
*
|
|
142
|
+
* ```sh
|
|
143
|
+
* $ pulumi import volcengine:vmp/alertingRule:AlertingRule default 5bd29e81-2717-4ac8-a1a6-d76da2b1****
|
|
144
|
+
* ```
|
|
145
|
+
*/
|
|
146
|
+
export declare class AlertingRule extends pulumi.CustomResource {
|
|
147
|
+
/**
|
|
148
|
+
* Get an existing AlertingRule resource's state with the given name, ID, and optional extra
|
|
149
|
+
* properties used to qualify the lookup.
|
|
150
|
+
*
|
|
151
|
+
* @param name The _unique_ name of the resulting resource.
|
|
152
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
153
|
+
* @param state Any extra arguments used during the lookup.
|
|
154
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
155
|
+
*/
|
|
156
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: AlertingRuleState, opts?: pulumi.CustomResourceOptions): AlertingRule;
|
|
157
|
+
/**
|
|
158
|
+
* Returns true if the given object is an instance of AlertingRule. This is designed to work even
|
|
159
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
160
|
+
*/
|
|
161
|
+
static isInstance(obj: any): obj is AlertingRule;
|
|
162
|
+
/**
|
|
163
|
+
* The annotations of the vmp alerting rule.
|
|
164
|
+
*/
|
|
165
|
+
readonly annotations: pulumi.Output<outputs.vmp.AlertingRuleAnnotation[] | undefined>;
|
|
166
|
+
/**
|
|
167
|
+
* The create time of the vmp alerting rule.
|
|
168
|
+
*/
|
|
169
|
+
readonly createTime: pulumi.Output<string>;
|
|
170
|
+
/**
|
|
171
|
+
* The description of the vmp alerting rule.
|
|
172
|
+
*/
|
|
173
|
+
readonly description: pulumi.Output<string>;
|
|
174
|
+
/**
|
|
175
|
+
* The labels of the vmp alerting rule.
|
|
176
|
+
*/
|
|
177
|
+
readonly labels: pulumi.Output<outputs.vmp.AlertingRuleLabel[] | undefined>;
|
|
178
|
+
/**
|
|
179
|
+
* The alerting levels of the vmp alerting rule.
|
|
180
|
+
*/
|
|
181
|
+
readonly levels: pulumi.Output<outputs.vmp.AlertingRuleLevel[]>;
|
|
182
|
+
/**
|
|
183
|
+
* The name of the vmp alerting rule.
|
|
184
|
+
*/
|
|
185
|
+
readonly name: pulumi.Output<string>;
|
|
186
|
+
/**
|
|
187
|
+
* The id of the notify group policy.
|
|
188
|
+
*/
|
|
189
|
+
readonly notifyGroupPolicyId: pulumi.Output<string>;
|
|
190
|
+
/**
|
|
191
|
+
* The id of the notify policy.
|
|
192
|
+
*/
|
|
193
|
+
readonly notifyPolicyId: pulumi.Output<string | undefined>;
|
|
194
|
+
/**
|
|
195
|
+
* The alerting query of the vmp alerting rule.
|
|
196
|
+
*/
|
|
197
|
+
readonly query: pulumi.Output<outputs.vmp.AlertingRuleQuery>;
|
|
198
|
+
/**
|
|
199
|
+
* The status of the vmp alerting rule.
|
|
200
|
+
*/
|
|
201
|
+
readonly status: pulumi.Output<string>;
|
|
202
|
+
/**
|
|
203
|
+
* The update time of the vmp alerting rule.
|
|
204
|
+
*/
|
|
205
|
+
readonly updateTime: pulumi.Output<string>;
|
|
206
|
+
/**
|
|
207
|
+
* Create a AlertingRule resource with the given unique name, arguments, and options.
|
|
208
|
+
*
|
|
209
|
+
* @param name The _unique_ name of the resource.
|
|
210
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
211
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
212
|
+
*/
|
|
213
|
+
constructor(name: string, args: AlertingRuleArgs, opts?: pulumi.CustomResourceOptions);
|
|
214
|
+
}
|
|
215
|
+
/**
|
|
216
|
+
* Input properties used for looking up and filtering AlertingRule resources.
|
|
217
|
+
*/
|
|
218
|
+
export interface AlertingRuleState {
|
|
219
|
+
/**
|
|
220
|
+
* The annotations of the vmp alerting rule.
|
|
221
|
+
*/
|
|
222
|
+
annotations?: pulumi.Input<pulumi.Input<inputs.vmp.AlertingRuleAnnotation>[]>;
|
|
223
|
+
/**
|
|
224
|
+
* The create time of the vmp alerting rule.
|
|
225
|
+
*/
|
|
226
|
+
createTime?: pulumi.Input<string>;
|
|
227
|
+
/**
|
|
228
|
+
* The description of the vmp alerting rule.
|
|
229
|
+
*/
|
|
230
|
+
description?: pulumi.Input<string>;
|
|
231
|
+
/**
|
|
232
|
+
* The labels of the vmp alerting rule.
|
|
233
|
+
*/
|
|
234
|
+
labels?: pulumi.Input<pulumi.Input<inputs.vmp.AlertingRuleLabel>[]>;
|
|
235
|
+
/**
|
|
236
|
+
* The alerting levels of the vmp alerting rule.
|
|
237
|
+
*/
|
|
238
|
+
levels?: pulumi.Input<pulumi.Input<inputs.vmp.AlertingRuleLevel>[]>;
|
|
239
|
+
/**
|
|
240
|
+
* The name of the vmp alerting rule.
|
|
241
|
+
*/
|
|
242
|
+
name?: pulumi.Input<string>;
|
|
243
|
+
/**
|
|
244
|
+
* The id of the notify group policy.
|
|
245
|
+
*/
|
|
246
|
+
notifyGroupPolicyId?: pulumi.Input<string>;
|
|
247
|
+
/**
|
|
248
|
+
* The id of the notify policy.
|
|
249
|
+
*/
|
|
250
|
+
notifyPolicyId?: pulumi.Input<string>;
|
|
251
|
+
/**
|
|
252
|
+
* The alerting query of the vmp alerting rule.
|
|
253
|
+
*/
|
|
254
|
+
query?: pulumi.Input<inputs.vmp.AlertingRuleQuery>;
|
|
255
|
+
/**
|
|
256
|
+
* The status of the vmp alerting rule.
|
|
257
|
+
*/
|
|
258
|
+
status?: pulumi.Input<string>;
|
|
259
|
+
/**
|
|
260
|
+
* The update time of the vmp alerting rule.
|
|
261
|
+
*/
|
|
262
|
+
updateTime?: pulumi.Input<string>;
|
|
263
|
+
}
|
|
264
|
+
/**
|
|
265
|
+
* The set of arguments for constructing a AlertingRule resource.
|
|
266
|
+
*/
|
|
267
|
+
export interface AlertingRuleArgs {
|
|
268
|
+
/**
|
|
269
|
+
* The annotations of the vmp alerting rule.
|
|
270
|
+
*/
|
|
271
|
+
annotations?: pulumi.Input<pulumi.Input<inputs.vmp.AlertingRuleAnnotation>[]>;
|
|
272
|
+
/**
|
|
273
|
+
* The description of the vmp alerting rule.
|
|
274
|
+
*/
|
|
275
|
+
description?: pulumi.Input<string>;
|
|
276
|
+
/**
|
|
277
|
+
* The labels of the vmp alerting rule.
|
|
278
|
+
*/
|
|
279
|
+
labels?: pulumi.Input<pulumi.Input<inputs.vmp.AlertingRuleLabel>[]>;
|
|
280
|
+
/**
|
|
281
|
+
* The alerting levels of the vmp alerting rule.
|
|
282
|
+
*/
|
|
283
|
+
levels: pulumi.Input<pulumi.Input<inputs.vmp.AlertingRuleLevel>[]>;
|
|
284
|
+
/**
|
|
285
|
+
* The name of the vmp alerting rule.
|
|
286
|
+
*/
|
|
287
|
+
name?: pulumi.Input<string>;
|
|
288
|
+
/**
|
|
289
|
+
* The id of the notify group policy.
|
|
290
|
+
*/
|
|
291
|
+
notifyGroupPolicyId: pulumi.Input<string>;
|
|
292
|
+
/**
|
|
293
|
+
* The id of the notify policy.
|
|
294
|
+
*/
|
|
295
|
+
notifyPolicyId?: pulumi.Input<string>;
|
|
296
|
+
/**
|
|
297
|
+
* The alerting query of the vmp alerting rule.
|
|
298
|
+
*/
|
|
299
|
+
query: pulumi.Input<inputs.vmp.AlertingRuleQuery>;
|
|
300
|
+
}
|
|
@@ -0,0 +1,220 @@
|
|
|
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.AlertingRule = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Provides a resource to manage vmp alerting rule
|
|
10
|
+
* ## Example Usage
|
|
11
|
+
*
|
|
12
|
+
* ```typescript
|
|
13
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
14
|
+
* import * as volcengine from "@volcengine/pulumi";
|
|
15
|
+
*
|
|
16
|
+
* const fooWorkspace = new volcengine.vmp.Workspace("fooWorkspace", {
|
|
17
|
+
* instanceTypeId: "vmp.standard.15d",
|
|
18
|
+
* deleteProtectionEnabled: false,
|
|
19
|
+
* description: "acc-test-1",
|
|
20
|
+
* username: "admin123",
|
|
21
|
+
* password: "Pass123456",
|
|
22
|
+
* });
|
|
23
|
+
* const fooContact = new volcengine.vmp.Contact("fooContact", {
|
|
24
|
+
* email: "acctest1@tftest.com",
|
|
25
|
+
* webhook: {
|
|
26
|
+
* address: "https://www.acctest1.com",
|
|
27
|
+
* },
|
|
28
|
+
* larkBotWebhook: {
|
|
29
|
+
* address: "https://www.acctest1.com",
|
|
30
|
+
* },
|
|
31
|
+
* dingTalkBotWebhook: {
|
|
32
|
+
* address: "https://www.dingacctest1.com",
|
|
33
|
+
* atMobiles: ["18046891812"],
|
|
34
|
+
* },
|
|
35
|
+
* phoneNumber: {
|
|
36
|
+
* countryCode: "+86",
|
|
37
|
+
* number: "18310101010",
|
|
38
|
+
* },
|
|
39
|
+
* });
|
|
40
|
+
* const foo1Contact = new volcengine.vmp.Contact("foo1Contact", {
|
|
41
|
+
* email: "acctest2@tftest.com",
|
|
42
|
+
* webhook: {
|
|
43
|
+
* address: "https://www.acctest2.com",
|
|
44
|
+
* },
|
|
45
|
+
* larkBotWebhook: {
|
|
46
|
+
* address: "https://www.acctest2.com",
|
|
47
|
+
* },
|
|
48
|
+
* dingTalkBotWebhook: {
|
|
49
|
+
* address: "https://www.dingacctest2.com",
|
|
50
|
+
* atMobiles: ["18046891813"],
|
|
51
|
+
* },
|
|
52
|
+
* phoneNumber: {
|
|
53
|
+
* countryCode: "+86",
|
|
54
|
+
* number: "18310101011",
|
|
55
|
+
* },
|
|
56
|
+
* });
|
|
57
|
+
* const fooContactGroup = new volcengine.vmp.ContactGroup("fooContactGroup", {contactIds: [fooContact.id]});
|
|
58
|
+
* const foo1ContactGroup = new volcengine.vmp.ContactGroup("foo1ContactGroup", {contactIds: [foo1Contact.id]});
|
|
59
|
+
* const fooNotifyPolicy = new volcengine.vmp.NotifyPolicy("fooNotifyPolicy", {
|
|
60
|
+
* description: "acc-test-1",
|
|
61
|
+
* levels: [
|
|
62
|
+
* {
|
|
63
|
+
* level: "P1",
|
|
64
|
+
* contactGroupIds: [fooContactGroup.id],
|
|
65
|
+
* channels: [
|
|
66
|
+
* "Email",
|
|
67
|
+
* "Webhook",
|
|
68
|
+
* ],
|
|
69
|
+
* },
|
|
70
|
+
* {
|
|
71
|
+
* level: "P0",
|
|
72
|
+
* contactGroupIds: [foo1ContactGroup.id],
|
|
73
|
+
* channels: ["LarkBotWebhook"],
|
|
74
|
+
* },
|
|
75
|
+
* ],
|
|
76
|
+
* });
|
|
77
|
+
* const fooNotifyGroupPolicy = new volcengine.vmp.NotifyGroupPolicy("fooNotifyGroupPolicy", {
|
|
78
|
+
* description: "acc-test-1",
|
|
79
|
+
* levels: [
|
|
80
|
+
* {
|
|
81
|
+
* level: "P2",
|
|
82
|
+
* groupBies: ["__rule__"],
|
|
83
|
+
* groupWait: "35",
|
|
84
|
+
* groupInterval: "60",
|
|
85
|
+
* repeatInterval: "70",
|
|
86
|
+
* },
|
|
87
|
+
* {
|
|
88
|
+
* level: "P0",
|
|
89
|
+
* groupBies: ["__rule__"],
|
|
90
|
+
* groupWait: "30",
|
|
91
|
+
* groupInterval: "60",
|
|
92
|
+
* repeatInterval: "70",
|
|
93
|
+
* },
|
|
94
|
+
* {
|
|
95
|
+
* level: "P1",
|
|
96
|
+
* groupBies: ["__rule__"],
|
|
97
|
+
* groupWait: "40",
|
|
98
|
+
* groupInterval: "75",
|
|
99
|
+
* repeatInterval: "75",
|
|
100
|
+
* },
|
|
101
|
+
* ],
|
|
102
|
+
* });
|
|
103
|
+
* const fooAlertingRule = new volcengine.vmp.AlertingRule("fooAlertingRule", {
|
|
104
|
+
* description: "acc-test-1",
|
|
105
|
+
* notifyPolicyId: fooNotifyPolicy.id,
|
|
106
|
+
* notifyGroupPolicyId: fooNotifyGroupPolicy.id,
|
|
107
|
+
* query: {
|
|
108
|
+
* workspaceId: fooWorkspace.id,
|
|
109
|
+
* promQl: "sum(up)",
|
|
110
|
+
* },
|
|
111
|
+
* levels: [
|
|
112
|
+
* {
|
|
113
|
+
* level: "P0",
|
|
114
|
+
* "for": "0s",
|
|
115
|
+
* comparator: ">=",
|
|
116
|
+
* threshold: 2,
|
|
117
|
+
* },
|
|
118
|
+
* {
|
|
119
|
+
* level: "P1",
|
|
120
|
+
* "for": "0s",
|
|
121
|
+
* comparator: ">=",
|
|
122
|
+
* threshold: 1,
|
|
123
|
+
* },
|
|
124
|
+
* {
|
|
125
|
+
* level: "P2",
|
|
126
|
+
* "for": "0s",
|
|
127
|
+
* comparator: ">=",
|
|
128
|
+
* threshold: 0.5,
|
|
129
|
+
* },
|
|
130
|
+
* ],
|
|
131
|
+
* annotations: [{
|
|
132
|
+
* name: "annotation",
|
|
133
|
+
* value: "acc-test",
|
|
134
|
+
* }],
|
|
135
|
+
* labels: [{
|
|
136
|
+
* name: "label",
|
|
137
|
+
* value: "acc-test",
|
|
138
|
+
* }],
|
|
139
|
+
* });
|
|
140
|
+
* ```
|
|
141
|
+
*
|
|
142
|
+
* ## Import
|
|
143
|
+
*
|
|
144
|
+
* VmpAlertingRule can be imported using the id, e.g.
|
|
145
|
+
*
|
|
146
|
+
* ```sh
|
|
147
|
+
* $ pulumi import volcengine:vmp/alertingRule:AlertingRule default 5bd29e81-2717-4ac8-a1a6-d76da2b1****
|
|
148
|
+
* ```
|
|
149
|
+
*/
|
|
150
|
+
class AlertingRule extends pulumi.CustomResource {
|
|
151
|
+
/**
|
|
152
|
+
* Get an existing AlertingRule resource's state with the given name, ID, and optional extra
|
|
153
|
+
* properties used to qualify the lookup.
|
|
154
|
+
*
|
|
155
|
+
* @param name The _unique_ name of the resulting resource.
|
|
156
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
157
|
+
* @param state Any extra arguments used during the lookup.
|
|
158
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
159
|
+
*/
|
|
160
|
+
static get(name, id, state, opts) {
|
|
161
|
+
return new AlertingRule(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* Returns true if the given object is an instance of AlertingRule. This is designed to work even
|
|
165
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
166
|
+
*/
|
|
167
|
+
static isInstance(obj) {
|
|
168
|
+
if (obj === undefined || obj === null) {
|
|
169
|
+
return false;
|
|
170
|
+
}
|
|
171
|
+
return obj['__pulumiType'] === AlertingRule.__pulumiType;
|
|
172
|
+
}
|
|
173
|
+
constructor(name, argsOrState, opts) {
|
|
174
|
+
let resourceInputs = {};
|
|
175
|
+
opts = opts || {};
|
|
176
|
+
if (opts.id) {
|
|
177
|
+
const state = argsOrState;
|
|
178
|
+
resourceInputs["annotations"] = state ? state.annotations : undefined;
|
|
179
|
+
resourceInputs["createTime"] = state ? state.createTime : undefined;
|
|
180
|
+
resourceInputs["description"] = state ? state.description : undefined;
|
|
181
|
+
resourceInputs["labels"] = state ? state.labels : undefined;
|
|
182
|
+
resourceInputs["levels"] = state ? state.levels : undefined;
|
|
183
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
184
|
+
resourceInputs["notifyGroupPolicyId"] = state ? state.notifyGroupPolicyId : undefined;
|
|
185
|
+
resourceInputs["notifyPolicyId"] = state ? state.notifyPolicyId : undefined;
|
|
186
|
+
resourceInputs["query"] = state ? state.query : undefined;
|
|
187
|
+
resourceInputs["status"] = state ? state.status : undefined;
|
|
188
|
+
resourceInputs["updateTime"] = state ? state.updateTime : undefined;
|
|
189
|
+
}
|
|
190
|
+
else {
|
|
191
|
+
const args = argsOrState;
|
|
192
|
+
if ((!args || args.levels === undefined) && !opts.urn) {
|
|
193
|
+
throw new Error("Missing required property 'levels'");
|
|
194
|
+
}
|
|
195
|
+
if ((!args || args.notifyGroupPolicyId === undefined) && !opts.urn) {
|
|
196
|
+
throw new Error("Missing required property 'notifyGroupPolicyId'");
|
|
197
|
+
}
|
|
198
|
+
if ((!args || args.query === undefined) && !opts.urn) {
|
|
199
|
+
throw new Error("Missing required property 'query'");
|
|
200
|
+
}
|
|
201
|
+
resourceInputs["annotations"] = args ? args.annotations : undefined;
|
|
202
|
+
resourceInputs["description"] = args ? args.description : undefined;
|
|
203
|
+
resourceInputs["labels"] = args ? args.labels : undefined;
|
|
204
|
+
resourceInputs["levels"] = args ? args.levels : undefined;
|
|
205
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
206
|
+
resourceInputs["notifyGroupPolicyId"] = args ? args.notifyGroupPolicyId : undefined;
|
|
207
|
+
resourceInputs["notifyPolicyId"] = args ? args.notifyPolicyId : undefined;
|
|
208
|
+
resourceInputs["query"] = args ? args.query : undefined;
|
|
209
|
+
resourceInputs["createTime"] = undefined /*out*/;
|
|
210
|
+
resourceInputs["status"] = undefined /*out*/;
|
|
211
|
+
resourceInputs["updateTime"] = undefined /*out*/;
|
|
212
|
+
}
|
|
213
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
214
|
+
super(AlertingRule.__pulumiType, name, resourceInputs, opts);
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
exports.AlertingRule = AlertingRule;
|
|
218
|
+
/** @internal */
|
|
219
|
+
AlertingRule.__pulumiType = 'volcengine:vmp/alertingRule:AlertingRule';
|
|
220
|
+
//# sourceMappingURL=alertingRule.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alertingRule.js","sourceRoot":"","sources":["../../vmp/alertingRule.ts"],"names":[],"mappings":";AAAA,wFA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