pulumi-alicloud 3.60.0a1723455033__py3-none-any.whl → 3.60.0a1723462134__py3-none-any.whl
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.
Potentially problematic release.
This version of pulumi-alicloud might be problematic. Click here for more details.
- pulumi_alicloud/__init__.py +150 -0
- pulumi_alicloud/adb/resource_group.py +48 -20
- pulumi_alicloud/alb/_inputs.py +22 -22
- pulumi_alicloud/alb/load_balancer.py +119 -133
- pulumi_alicloud/alb/outputs.py +22 -22
- pulumi_alicloud/alb/server_group.py +2 -2
- pulumi_alicloud/aligreen/__init__.py +13 -0
- pulumi_alicloud/aligreen/audit_callback.py +422 -0
- pulumi_alicloud/aligreen/biz_type.py +398 -0
- pulumi_alicloud/aligreen/callback.py +449 -0
- pulumi_alicloud/aligreen/image_lib.py +406 -0
- pulumi_alicloud/aligreen/keyword_lib.py +615 -0
- pulumi_alicloud/aligreen/oss_stock_task.py +1661 -0
- pulumi_alicloud/amqp/binding.py +94 -102
- pulumi_alicloud/apigateway/__init__.py +2 -0
- pulumi_alicloud/apigateway/_inputs.py +221 -2
- pulumi_alicloud/apigateway/access_control_list.py +17 -9
- pulumi_alicloud/apigateway/acl_entry_attachment.py +303 -0
- pulumi_alicloud/apigateway/api.py +4 -2
- pulumi_alicloud/apigateway/group.py +51 -2
- pulumi_alicloud/apigateway/instance.py +396 -63
- pulumi_alicloud/apigateway/instance_acl_attachment.py +326 -0
- pulumi_alicloud/apigateway/outputs.py +223 -2
- pulumi_alicloud/apigateway/vpc_access.py +2 -2
- pulumi_alicloud/arms/get_remote_writes.py +4 -0
- pulumi_alicloud/arms/outputs.py +2 -2
- pulumi_alicloud/arms/remote_write.py +4 -0
- pulumi_alicloud/cen/route_entry.py +2 -2
- pulumi_alicloud/cen/vbr_health_check.py +1 -1
- pulumi_alicloud/cfg/aggregate_delivery.py +255 -118
- pulumi_alicloud/cfg/delivery.py +259 -122
- pulumi_alicloud/clickhouse/_inputs.py +39 -0
- pulumi_alicloud/clickhouse/db_cluster.py +66 -6
- pulumi_alicloud/clickhouse/outputs.py +50 -0
- pulumi_alicloud/cloudfirewall/__init__.py +1 -0
- pulumi_alicloud/cloudfirewall/control_policy.py +116 -108
- pulumi_alicloud/cloudfirewall/vpc_cen_tr_firewall.py +929 -0
- pulumi_alicloud/cloudmonitor/service_monitoring_agent_process.py +2 -2
- pulumi_alicloud/cloudstoragegateway/gateway_cache_disk.py +0 -76
- pulumi_alicloud/cms/_inputs.py +214 -42
- pulumi_alicloud/cms/alarm.py +61 -14
- pulumi_alicloud/cms/dynamic_tag_group.py +53 -51
- pulumi_alicloud/cms/metric_rule_black_list.py +2 -2
- pulumi_alicloud/cms/metric_rule_template.py +54 -87
- pulumi_alicloud/cms/outputs.py +214 -42
- pulumi_alicloud/cs/get_kubernetes_clusters.py +4 -2
- pulumi_alicloud/cs/outputs.py +2 -2
- pulumi_alicloud/databasefilesystem/instance_attachment.py +2 -2
- pulumi_alicloud/databasefilesystem/snapshot.py +2 -2
- pulumi_alicloud/ddos/basic_threshold.py +2 -2
- pulumi_alicloud/ddos/bgp_ip.py +2 -6
- pulumi_alicloud/eci/get_container_groups.py +2 -2
- pulumi_alicloud/ecs/ecs_disk_attachment.py +2 -2
- pulumi_alicloud/ecs/ecs_image_pipeline.py +2 -2
- pulumi_alicloud/ecs/ecs_instance_set.py +2 -2
- pulumi_alicloud/ecs/ecs_invocation.py +2 -2
- pulumi_alicloud/ecs/ecs_key_pair_attachment.py +2 -2
- pulumi_alicloud/ecs/ecs_launch_template.py +9 -9
- pulumi_alicloud/ecs/ecs_network_interface_attachment.py +2 -2
- pulumi_alicloud/ecs/eip_association.py +4 -6
- pulumi_alicloud/ecs/get_ecs_network_interfaces.py +46 -6
- pulumi_alicloud/ecs/get_instances.py +3 -3
- pulumi_alicloud/ecs/get_network_interfaces.py +5 -5
- pulumi_alicloud/ecs/image.py +4 -6
- pulumi_alicloud/ecs/image_copy.py +2 -2
- pulumi_alicloud/ecs/image_export.py +2 -2
- pulumi_alicloud/ecs/image_import.py +14 -6
- pulumi_alicloud/ecs/image_share_permission.py +2 -2
- pulumi_alicloud/ecs/instance.py +7 -7
- pulumi_alicloud/ecs/outputs.py +48 -26
- pulumi_alicloud/edas/instance_cluster_attachment.py +2 -2
- pulumi_alicloud/eds/outputs.py +10 -10
- pulumi_alicloud/ess/scaling_group.py +101 -7
- pulumi_alicloud/fc/__init__.py +7 -0
- pulumi_alicloud/fc/_inputs.py +1666 -0
- pulumi_alicloud/fc/outputs.py +1723 -2
- pulumi_alicloud/fc/v3_alias.py +440 -0
- pulumi_alicloud/fc/v3_async_invoke_config.py +439 -0
- pulumi_alicloud/fc/v3_concurrency_config.py +281 -0
- pulumi_alicloud/fc/v3_custom_domain.py +847 -0
- pulumi_alicloud/fc/v3_function.py +1391 -0
- pulumi_alicloud/fc/v3_function_version.py +313 -0
- pulumi_alicloud/fc/v3_trigger.py +663 -0
- pulumi_alicloud/ga/basic_accelerator.py +8 -8
- pulumi_alicloud/governance/__init__.py +12 -0
- pulumi_alicloud/governance/_inputs.py +70 -0
- pulumi_alicloud/governance/account.py +505 -0
- pulumi_alicloud/governance/baseline.py +387 -0
- pulumi_alicloud/governance/get_baselines.py +241 -0
- pulumi_alicloud/governance/outputs.py +99 -0
- pulumi_alicloud/hbr/ecs_backup_client.py +2 -2
- pulumi_alicloud/hbr/ecs_backup_plan.py +2 -2
- pulumi_alicloud/hbr/server_backup_plan.py +2 -2
- pulumi_alicloud/kvstore/instance.py +47 -0
- pulumi_alicloud/kvstore/outputs.py +2 -2
- pulumi_alicloud/maxcompute/get_projects.py +12 -14
- pulumi_alicloud/maxcompute/get_service.py +4 -0
- pulumi_alicloud/maxcompute/outputs.py +75 -60
- pulumi_alicloud/maxcompute/project.py +7 -7
- pulumi_alicloud/polardb/outputs.py +2 -2
- pulumi_alicloud/privatelink/outputs.py +2 -2
- pulumi_alicloud/pulumi-plugin.json +1 -1
- pulumi_alicloud/ram/login_profile.py +8 -8
- pulumi_alicloud/rds/get_instances.py +1 -1
- pulumi_alicloud/rds/rds_account.py +189 -49
- pulumi_alicloud/rds/read_write_splitting_connection.py +10 -2
- pulumi_alicloud/slb/get_application_load_balancers.py +3 -3
- pulumi_alicloud/slb/get_load_balancers.py +3 -3
- pulumi_alicloud/slb/load_balancer.py +7 -7
- pulumi_alicloud/slb/outputs.py +8 -8
- pulumi_alicloud/slb/server_group_server_attachment.py +2 -2
- pulumi_alicloud/vpc/bgp_peer.py +1 -1
- pulumi_alicloud/vpc/get_networks.py +2 -2
- pulumi_alicloud/vpc/get_switches.py +27 -27
- pulumi_alicloud/vpc/ha_vip_attachment.py +2 -2
- pulumi_alicloud/vpc/outputs.py +24 -24
- pulumi_alicloud/vpc/traffic_mirror_session.py +2 -2
- pulumi_alicloud/vpn/outputs.py +4 -4
- {pulumi_alicloud-3.60.0a1723455033.dist-info → pulumi_alicloud-3.60.0a1723462134.dist-info}/METADATA +1 -1
- {pulumi_alicloud-3.60.0a1723455033.dist-info → pulumi_alicloud-3.60.0a1723462134.dist-info}/RECORD +122 -99
- {pulumi_alicloud-3.60.0a1723455033.dist-info → pulumi_alicloud-3.60.0a1723462134.dist-info}/WHEEL +0 -0
- {pulumi_alicloud-3.60.0a1723455033.dist-info → pulumi_alicloud-3.60.0a1723462134.dist-info}/top_level.txt +0 -0
pulumi_alicloud/cms/alarm.py
CHANGED
|
@@ -19,6 +19,7 @@ class AlarmArgs:
|
|
|
19
19
|
contact_groups: pulumi.Input[Sequence[pulumi.Input[str]]],
|
|
20
20
|
metric: pulumi.Input[str],
|
|
21
21
|
project: pulumi.Input[str],
|
|
22
|
+
composite_expression: Optional[pulumi.Input['AlarmCompositeExpressionArgs']] = None,
|
|
22
23
|
dimensions: Optional[pulumi.Input[Mapping[str, Any]]] = None,
|
|
23
24
|
effective_interval: Optional[pulumi.Input[str]] = None,
|
|
24
25
|
enabled: Optional[pulumi.Input[bool]] = None,
|
|
@@ -41,8 +42,9 @@ class AlarmArgs:
|
|
|
41
42
|
:param pulumi.Input[str] metric: The name of the metric, such as `CPUUtilization` and `networkin_rate`. For more information, see [Metrics Reference](https://www.alibabacloud.com/help/doc-detail/28619.htm).
|
|
42
43
|
:param pulumi.Input[str] project: The namespace of the cloud service, such as `acs_ecs_dashboard` and `acs_rds_dashboard`. For more information, see [Metrics Reference](https://www.alibabacloud.com/help/doc-detail/28619.htm).
|
|
43
44
|
**NOTE:** The `dimensions` and `metric_dimensions` must be empty when `project` is `acs_prometheus`, otherwise, one of them must be set.
|
|
45
|
+
:param pulumi.Input['AlarmCompositeExpressionArgs'] composite_expression: The trigger conditions for multiple metrics. See `composite_expression` below.
|
|
44
46
|
:param pulumi.Input[Mapping[str, Any]] dimensions: Field `dimensions` has been deprecated from provider version 1.173.0. New field `metric_dimensions` instead.
|
|
45
|
-
:param pulumi.Input[str] effective_interval: The interval of effecting alarm rule. It format as "hh:mm-hh:mm", like "0:00-4:00". Default
|
|
47
|
+
:param pulumi.Input[str] effective_interval: The interval of effecting alarm rule. It format as "hh:mm-hh:mm", like "0:00-4:00". Default value: `00:00-23:59`.
|
|
46
48
|
:param pulumi.Input[bool] enabled: Whether to enable alarm rule. Default value: `true`.
|
|
47
49
|
:param pulumi.Input[int] end_time: Field `end_time` has been deprecated from provider version 1.50.0. New field `effective_interval` instead.
|
|
48
50
|
:param pulumi.Input['AlarmEscalationsCriticalArgs'] escalations_critical: A configuration of critical alarm. See `escalations_critical` below.
|
|
@@ -50,7 +52,7 @@ class AlarmArgs:
|
|
|
50
52
|
:param pulumi.Input['AlarmEscalationsWarnArgs'] escalations_warn: A configuration of critical warn. See `escalations_warn` below.
|
|
51
53
|
:param pulumi.Input[str] metric_dimensions: Map of the resources associated with the alarm rule, such as "instanceId", "device" and "port". Each key's value is a string, and it uses comma to split multiple items. For more information, see [Metrics Reference](https://www.alibabacloud.com/help/doc-detail/28619.htm).
|
|
52
54
|
:param pulumi.Input[str] name: The name of the alert rule.
|
|
53
|
-
:param pulumi.Input[int] period:
|
|
55
|
+
:param pulumi.Input[int] period: The statistical period of the metric. Unit: seconds. Default value: `300`.
|
|
54
56
|
:param pulumi.Input[Sequence[pulumi.Input['AlarmPrometheusArgs']]] prometheuses: The Prometheus alert rule. See `prometheus` below. **Note:** This parameter is required only when you create a Prometheus alert rule for Hybrid Cloud Monitoring.
|
|
55
57
|
:param pulumi.Input[int] silence_time: Notification silence period in the alarm state, in seconds. Default value: `86400`. Valid value range: [300, 86400].
|
|
56
58
|
:param pulumi.Input[int] start_time: Field `start_time` has been deprecated from provider version 1.50.0. New field `effective_interval` instead.
|
|
@@ -61,6 +63,8 @@ class AlarmArgs:
|
|
|
61
63
|
pulumi.set(__self__, "contact_groups", contact_groups)
|
|
62
64
|
pulumi.set(__self__, "metric", metric)
|
|
63
65
|
pulumi.set(__self__, "project", project)
|
|
66
|
+
if composite_expression is not None:
|
|
67
|
+
pulumi.set(__self__, "composite_expression", composite_expression)
|
|
64
68
|
if dimensions is not None:
|
|
65
69
|
warnings.warn("""Field `dimensions` has been deprecated from provider version 1.173.0. New field `metric_dimensions` instead.""", DeprecationWarning)
|
|
66
70
|
pulumi.log.warn("""dimensions is deprecated: Field `dimensions` has been deprecated from provider version 1.173.0. New field `metric_dimensions` instead.""")
|
|
@@ -140,6 +144,18 @@ class AlarmArgs:
|
|
|
140
144
|
def project(self, value: pulumi.Input[str]):
|
|
141
145
|
pulumi.set(self, "project", value)
|
|
142
146
|
|
|
147
|
+
@property
|
|
148
|
+
@pulumi.getter(name="compositeExpression")
|
|
149
|
+
def composite_expression(self) -> Optional[pulumi.Input['AlarmCompositeExpressionArgs']]:
|
|
150
|
+
"""
|
|
151
|
+
The trigger conditions for multiple metrics. See `composite_expression` below.
|
|
152
|
+
"""
|
|
153
|
+
return pulumi.get(self, "composite_expression")
|
|
154
|
+
|
|
155
|
+
@composite_expression.setter
|
|
156
|
+
def composite_expression(self, value: Optional[pulumi.Input['AlarmCompositeExpressionArgs']]):
|
|
157
|
+
pulumi.set(self, "composite_expression", value)
|
|
158
|
+
|
|
143
159
|
@property
|
|
144
160
|
@pulumi.getter
|
|
145
161
|
@_utilities.deprecated("""Field `dimensions` has been deprecated from provider version 1.173.0. New field `metric_dimensions` instead.""")
|
|
@@ -157,7 +173,7 @@ class AlarmArgs:
|
|
|
157
173
|
@pulumi.getter(name="effectiveInterval")
|
|
158
174
|
def effective_interval(self) -> Optional[pulumi.Input[str]]:
|
|
159
175
|
"""
|
|
160
|
-
The interval of effecting alarm rule. It format as "hh:mm-hh:mm", like "0:00-4:00". Default
|
|
176
|
+
The interval of effecting alarm rule. It format as "hh:mm-hh:mm", like "0:00-4:00". Default value: `00:00-23:59`.
|
|
161
177
|
"""
|
|
162
178
|
return pulumi.get(self, "effective_interval")
|
|
163
179
|
|
|
@@ -254,7 +270,7 @@ class AlarmArgs:
|
|
|
254
270
|
@pulumi.getter
|
|
255
271
|
def period(self) -> Optional[pulumi.Input[int]]:
|
|
256
272
|
"""
|
|
257
|
-
|
|
273
|
+
The statistical period of the metric. Unit: seconds. Default value: `300`.
|
|
258
274
|
"""
|
|
259
275
|
return pulumi.get(self, "period")
|
|
260
276
|
|
|
@@ -339,6 +355,7 @@ class AlarmArgs:
|
|
|
339
355
|
@pulumi.input_type
|
|
340
356
|
class _AlarmState:
|
|
341
357
|
def __init__(__self__, *,
|
|
358
|
+
composite_expression: Optional[pulumi.Input['AlarmCompositeExpressionArgs']] = None,
|
|
342
359
|
contact_groups: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
343
360
|
dimensions: Optional[pulumi.Input[Mapping[str, Any]]] = None,
|
|
344
361
|
effective_interval: Optional[pulumi.Input[str]] = None,
|
|
@@ -361,9 +378,10 @@ class _AlarmState:
|
|
|
361
378
|
webhook: Optional[pulumi.Input[str]] = None):
|
|
362
379
|
"""
|
|
363
380
|
Input properties used for looking up and filtering Alarm resources.
|
|
381
|
+
:param pulumi.Input['AlarmCompositeExpressionArgs'] composite_expression: The trigger conditions for multiple metrics. See `composite_expression` below.
|
|
364
382
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] contact_groups: List contact groups of the alarm rule, which must have been created on the console.
|
|
365
383
|
:param pulumi.Input[Mapping[str, Any]] dimensions: Field `dimensions` has been deprecated from provider version 1.173.0. New field `metric_dimensions` instead.
|
|
366
|
-
:param pulumi.Input[str] effective_interval: The interval of effecting alarm rule. It format as "hh:mm-hh:mm", like "0:00-4:00". Default
|
|
384
|
+
:param pulumi.Input[str] effective_interval: The interval of effecting alarm rule. It format as "hh:mm-hh:mm", like "0:00-4:00". Default value: `00:00-23:59`.
|
|
367
385
|
:param pulumi.Input[bool] enabled: Whether to enable alarm rule. Default value: `true`.
|
|
368
386
|
:param pulumi.Input[int] end_time: Field `end_time` has been deprecated from provider version 1.50.0. New field `effective_interval` instead.
|
|
369
387
|
:param pulumi.Input['AlarmEscalationsCriticalArgs'] escalations_critical: A configuration of critical alarm. See `escalations_critical` below.
|
|
@@ -372,7 +390,7 @@ class _AlarmState:
|
|
|
372
390
|
:param pulumi.Input[str] metric: The name of the metric, such as `CPUUtilization` and `networkin_rate`. For more information, see [Metrics Reference](https://www.alibabacloud.com/help/doc-detail/28619.htm).
|
|
373
391
|
:param pulumi.Input[str] metric_dimensions: Map of the resources associated with the alarm rule, such as "instanceId", "device" and "port". Each key's value is a string, and it uses comma to split multiple items. For more information, see [Metrics Reference](https://www.alibabacloud.com/help/doc-detail/28619.htm).
|
|
374
392
|
:param pulumi.Input[str] name: The name of the alert rule.
|
|
375
|
-
:param pulumi.Input[int] period:
|
|
393
|
+
:param pulumi.Input[int] period: The statistical period of the metric. Unit: seconds. Default value: `300`.
|
|
376
394
|
:param pulumi.Input[str] project: The namespace of the cloud service, such as `acs_ecs_dashboard` and `acs_rds_dashboard`. For more information, see [Metrics Reference](https://www.alibabacloud.com/help/doc-detail/28619.htm).
|
|
377
395
|
**NOTE:** The `dimensions` and `metric_dimensions` must be empty when `project` is `acs_prometheus`, otherwise, one of them must be set.
|
|
378
396
|
:param pulumi.Input[Sequence[pulumi.Input['AlarmPrometheusArgs']]] prometheuses: The Prometheus alert rule. See `prometheus` below. **Note:** This parameter is required only when you create a Prometheus alert rule for Hybrid Cloud Monitoring.
|
|
@@ -383,6 +401,8 @@ class _AlarmState:
|
|
|
383
401
|
:param pulumi.Input[Sequence[pulumi.Input['AlarmTargetArgs']]] targets: The information about the resource for which alerts are triggered. See `targets` below.
|
|
384
402
|
:param pulumi.Input[str] webhook: The webhook that should be called when the alarm is triggered. Currently, only http protocol is supported. Default is empty string.
|
|
385
403
|
"""
|
|
404
|
+
if composite_expression is not None:
|
|
405
|
+
pulumi.set(__self__, "composite_expression", composite_expression)
|
|
386
406
|
if contact_groups is not None:
|
|
387
407
|
pulumi.set(__self__, "contact_groups", contact_groups)
|
|
388
408
|
if dimensions is not None:
|
|
@@ -433,6 +453,18 @@ class _AlarmState:
|
|
|
433
453
|
if webhook is not None:
|
|
434
454
|
pulumi.set(__self__, "webhook", webhook)
|
|
435
455
|
|
|
456
|
+
@property
|
|
457
|
+
@pulumi.getter(name="compositeExpression")
|
|
458
|
+
def composite_expression(self) -> Optional[pulumi.Input['AlarmCompositeExpressionArgs']]:
|
|
459
|
+
"""
|
|
460
|
+
The trigger conditions for multiple metrics. See `composite_expression` below.
|
|
461
|
+
"""
|
|
462
|
+
return pulumi.get(self, "composite_expression")
|
|
463
|
+
|
|
464
|
+
@composite_expression.setter
|
|
465
|
+
def composite_expression(self, value: Optional[pulumi.Input['AlarmCompositeExpressionArgs']]):
|
|
466
|
+
pulumi.set(self, "composite_expression", value)
|
|
467
|
+
|
|
436
468
|
@property
|
|
437
469
|
@pulumi.getter(name="contactGroups")
|
|
438
470
|
def contact_groups(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
@@ -462,7 +494,7 @@ class _AlarmState:
|
|
|
462
494
|
@pulumi.getter(name="effectiveInterval")
|
|
463
495
|
def effective_interval(self) -> Optional[pulumi.Input[str]]:
|
|
464
496
|
"""
|
|
465
|
-
The interval of effecting alarm rule. It format as "hh:mm-hh:mm", like "0:00-4:00". Default
|
|
497
|
+
The interval of effecting alarm rule. It format as "hh:mm-hh:mm", like "0:00-4:00". Default value: `00:00-23:59`.
|
|
466
498
|
"""
|
|
467
499
|
return pulumi.get(self, "effective_interval")
|
|
468
500
|
|
|
@@ -571,7 +603,7 @@ class _AlarmState:
|
|
|
571
603
|
@pulumi.getter
|
|
572
604
|
def period(self) -> Optional[pulumi.Input[int]]:
|
|
573
605
|
"""
|
|
574
|
-
|
|
606
|
+
The statistical period of the metric. Unit: seconds. Default value: `300`.
|
|
575
607
|
"""
|
|
576
608
|
return pulumi.get(self, "period")
|
|
577
609
|
|
|
@@ -683,6 +715,7 @@ class Alarm(pulumi.CustomResource):
|
|
|
683
715
|
def __init__(__self__,
|
|
684
716
|
resource_name: str,
|
|
685
717
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
718
|
+
composite_expression: Optional[pulumi.Input[Union['AlarmCompositeExpressionArgs', 'AlarmCompositeExpressionArgsDict']]] = None,
|
|
686
719
|
contact_groups: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
687
720
|
dimensions: Optional[pulumi.Input[Mapping[str, Any]]] = None,
|
|
688
721
|
effective_interval: Optional[pulumi.Input[str]] = None,
|
|
@@ -779,9 +812,10 @@ class Alarm(pulumi.CustomResource):
|
|
|
779
812
|
|
|
780
813
|
:param str resource_name: The name of the resource.
|
|
781
814
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
815
|
+
:param pulumi.Input[Union['AlarmCompositeExpressionArgs', 'AlarmCompositeExpressionArgsDict']] composite_expression: The trigger conditions for multiple metrics. See `composite_expression` below.
|
|
782
816
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] contact_groups: List contact groups of the alarm rule, which must have been created on the console.
|
|
783
817
|
:param pulumi.Input[Mapping[str, Any]] dimensions: Field `dimensions` has been deprecated from provider version 1.173.0. New field `metric_dimensions` instead.
|
|
784
|
-
:param pulumi.Input[str] effective_interval: The interval of effecting alarm rule. It format as "hh:mm-hh:mm", like "0:00-4:00". Default
|
|
818
|
+
:param pulumi.Input[str] effective_interval: The interval of effecting alarm rule. It format as "hh:mm-hh:mm", like "0:00-4:00". Default value: `00:00-23:59`.
|
|
785
819
|
:param pulumi.Input[bool] enabled: Whether to enable alarm rule. Default value: `true`.
|
|
786
820
|
:param pulumi.Input[int] end_time: Field `end_time` has been deprecated from provider version 1.50.0. New field `effective_interval` instead.
|
|
787
821
|
:param pulumi.Input[Union['AlarmEscalationsCriticalArgs', 'AlarmEscalationsCriticalArgsDict']] escalations_critical: A configuration of critical alarm. See `escalations_critical` below.
|
|
@@ -790,7 +824,7 @@ class Alarm(pulumi.CustomResource):
|
|
|
790
824
|
:param pulumi.Input[str] metric: The name of the metric, such as `CPUUtilization` and `networkin_rate`. For more information, see [Metrics Reference](https://www.alibabacloud.com/help/doc-detail/28619.htm).
|
|
791
825
|
:param pulumi.Input[str] metric_dimensions: Map of the resources associated with the alarm rule, such as "instanceId", "device" and "port". Each key's value is a string, and it uses comma to split multiple items. For more information, see [Metrics Reference](https://www.alibabacloud.com/help/doc-detail/28619.htm).
|
|
792
826
|
:param pulumi.Input[str] name: The name of the alert rule.
|
|
793
|
-
:param pulumi.Input[int] period:
|
|
827
|
+
:param pulumi.Input[int] period: The statistical period of the metric. Unit: seconds. Default value: `300`.
|
|
794
828
|
:param pulumi.Input[str] project: The namespace of the cloud service, such as `acs_ecs_dashboard` and `acs_rds_dashboard`. For more information, see [Metrics Reference](https://www.alibabacloud.com/help/doc-detail/28619.htm).
|
|
795
829
|
**NOTE:** The `dimensions` and `metric_dimensions` must be empty when `project` is `acs_prometheus`, otherwise, one of them must be set.
|
|
796
830
|
:param pulumi.Input[Sequence[pulumi.Input[Union['AlarmPrometheusArgs', 'AlarmPrometheusArgsDict']]]] prometheuses: The Prometheus alert rule. See `prometheus` below. **Note:** This parameter is required only when you create a Prometheus alert rule for Hybrid Cloud Monitoring.
|
|
@@ -895,6 +929,7 @@ class Alarm(pulumi.CustomResource):
|
|
|
895
929
|
def _internal_init(__self__,
|
|
896
930
|
resource_name: str,
|
|
897
931
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
932
|
+
composite_expression: Optional[pulumi.Input[Union['AlarmCompositeExpressionArgs', 'AlarmCompositeExpressionArgsDict']]] = None,
|
|
898
933
|
contact_groups: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
899
934
|
dimensions: Optional[pulumi.Input[Mapping[str, Any]]] = None,
|
|
900
935
|
effective_interval: Optional[pulumi.Input[str]] = None,
|
|
@@ -923,6 +958,7 @@ class Alarm(pulumi.CustomResource):
|
|
|
923
958
|
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
|
924
959
|
__props__ = AlarmArgs.__new__(AlarmArgs)
|
|
925
960
|
|
|
961
|
+
__props__.__dict__["composite_expression"] = composite_expression
|
|
926
962
|
if contact_groups is None and not opts.urn:
|
|
927
963
|
raise TypeError("Missing required property 'contact_groups'")
|
|
928
964
|
__props__.__dict__["contact_groups"] = contact_groups
|
|
@@ -959,6 +995,7 @@ class Alarm(pulumi.CustomResource):
|
|
|
959
995
|
def get(resource_name: str,
|
|
960
996
|
id: pulumi.Input[str],
|
|
961
997
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
998
|
+
composite_expression: Optional[pulumi.Input[Union['AlarmCompositeExpressionArgs', 'AlarmCompositeExpressionArgsDict']]] = None,
|
|
962
999
|
contact_groups: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
963
1000
|
dimensions: Optional[pulumi.Input[Mapping[str, Any]]] = None,
|
|
964
1001
|
effective_interval: Optional[pulumi.Input[str]] = None,
|
|
@@ -986,9 +1023,10 @@ class Alarm(pulumi.CustomResource):
|
|
|
986
1023
|
:param str resource_name: The unique name of the resulting resource.
|
|
987
1024
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
988
1025
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
1026
|
+
:param pulumi.Input[Union['AlarmCompositeExpressionArgs', 'AlarmCompositeExpressionArgsDict']] composite_expression: The trigger conditions for multiple metrics. See `composite_expression` below.
|
|
989
1027
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] contact_groups: List contact groups of the alarm rule, which must have been created on the console.
|
|
990
1028
|
:param pulumi.Input[Mapping[str, Any]] dimensions: Field `dimensions` has been deprecated from provider version 1.173.0. New field `metric_dimensions` instead.
|
|
991
|
-
:param pulumi.Input[str] effective_interval: The interval of effecting alarm rule. It format as "hh:mm-hh:mm", like "0:00-4:00". Default
|
|
1029
|
+
:param pulumi.Input[str] effective_interval: The interval of effecting alarm rule. It format as "hh:mm-hh:mm", like "0:00-4:00". Default value: `00:00-23:59`.
|
|
992
1030
|
:param pulumi.Input[bool] enabled: Whether to enable alarm rule. Default value: `true`.
|
|
993
1031
|
:param pulumi.Input[int] end_time: Field `end_time` has been deprecated from provider version 1.50.0. New field `effective_interval` instead.
|
|
994
1032
|
:param pulumi.Input[Union['AlarmEscalationsCriticalArgs', 'AlarmEscalationsCriticalArgsDict']] escalations_critical: A configuration of critical alarm. See `escalations_critical` below.
|
|
@@ -997,7 +1035,7 @@ class Alarm(pulumi.CustomResource):
|
|
|
997
1035
|
:param pulumi.Input[str] metric: The name of the metric, such as `CPUUtilization` and `networkin_rate`. For more information, see [Metrics Reference](https://www.alibabacloud.com/help/doc-detail/28619.htm).
|
|
998
1036
|
:param pulumi.Input[str] metric_dimensions: Map of the resources associated with the alarm rule, such as "instanceId", "device" and "port". Each key's value is a string, and it uses comma to split multiple items. For more information, see [Metrics Reference](https://www.alibabacloud.com/help/doc-detail/28619.htm).
|
|
999
1037
|
:param pulumi.Input[str] name: The name of the alert rule.
|
|
1000
|
-
:param pulumi.Input[int] period:
|
|
1038
|
+
:param pulumi.Input[int] period: The statistical period of the metric. Unit: seconds. Default value: `300`.
|
|
1001
1039
|
:param pulumi.Input[str] project: The namespace of the cloud service, such as `acs_ecs_dashboard` and `acs_rds_dashboard`. For more information, see [Metrics Reference](https://www.alibabacloud.com/help/doc-detail/28619.htm).
|
|
1002
1040
|
**NOTE:** The `dimensions` and `metric_dimensions` must be empty when `project` is `acs_prometheus`, otherwise, one of them must be set.
|
|
1003
1041
|
:param pulumi.Input[Sequence[pulumi.Input[Union['AlarmPrometheusArgs', 'AlarmPrometheusArgsDict']]]] prometheuses: The Prometheus alert rule. See `prometheus` below. **Note:** This parameter is required only when you create a Prometheus alert rule for Hybrid Cloud Monitoring.
|
|
@@ -1012,6 +1050,7 @@ class Alarm(pulumi.CustomResource):
|
|
|
1012
1050
|
|
|
1013
1051
|
__props__ = _AlarmState.__new__(_AlarmState)
|
|
1014
1052
|
|
|
1053
|
+
__props__.__dict__["composite_expression"] = composite_expression
|
|
1015
1054
|
__props__.__dict__["contact_groups"] = contact_groups
|
|
1016
1055
|
__props__.__dict__["dimensions"] = dimensions
|
|
1017
1056
|
__props__.__dict__["effective_interval"] = effective_interval
|
|
@@ -1034,6 +1073,14 @@ class Alarm(pulumi.CustomResource):
|
|
|
1034
1073
|
__props__.__dict__["webhook"] = webhook
|
|
1035
1074
|
return Alarm(resource_name, opts=opts, __props__=__props__)
|
|
1036
1075
|
|
|
1076
|
+
@property
|
|
1077
|
+
@pulumi.getter(name="compositeExpression")
|
|
1078
|
+
def composite_expression(self) -> pulumi.Output[Optional['outputs.AlarmCompositeExpression']]:
|
|
1079
|
+
"""
|
|
1080
|
+
The trigger conditions for multiple metrics. See `composite_expression` below.
|
|
1081
|
+
"""
|
|
1082
|
+
return pulumi.get(self, "composite_expression")
|
|
1083
|
+
|
|
1037
1084
|
@property
|
|
1038
1085
|
@pulumi.getter(name="contactGroups")
|
|
1039
1086
|
def contact_groups(self) -> pulumi.Output[Sequence[str]]:
|
|
@@ -1055,7 +1102,7 @@ class Alarm(pulumi.CustomResource):
|
|
|
1055
1102
|
@pulumi.getter(name="effectiveInterval")
|
|
1056
1103
|
def effective_interval(self) -> pulumi.Output[Optional[str]]:
|
|
1057
1104
|
"""
|
|
1058
|
-
The interval of effecting alarm rule. It format as "hh:mm-hh:mm", like "0:00-4:00". Default
|
|
1105
|
+
The interval of effecting alarm rule. It format as "hh:mm-hh:mm", like "0:00-4:00". Default value: `00:00-23:59`.
|
|
1059
1106
|
"""
|
|
1060
1107
|
return pulumi.get(self, "effective_interval")
|
|
1061
1108
|
|
|
@@ -1128,7 +1175,7 @@ class Alarm(pulumi.CustomResource):
|
|
|
1128
1175
|
@pulumi.getter
|
|
1129
1176
|
def period(self) -> pulumi.Output[Optional[int]]:
|
|
1130
1177
|
"""
|
|
1131
|
-
|
|
1178
|
+
The statistical period of the metric. Unit: seconds. Default value: `300`.
|
|
1132
1179
|
"""
|
|
1133
1180
|
return pulumi.get(self, "period")
|
|
1134
1181
|
|
|
@@ -23,11 +23,11 @@ class DynamicTagGroupArgs:
|
|
|
23
23
|
template_id_lists: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None):
|
|
24
24
|
"""
|
|
25
25
|
The set of arguments for constructing a DynamicTagGroup resource.
|
|
26
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] contact_group_lists:
|
|
27
|
-
:param pulumi.Input[Sequence[pulumi.Input['DynamicTagGroupMatchExpressArgs']]] match_expresses: The
|
|
28
|
-
:param pulumi.Input[str] tag_key: The tag
|
|
29
|
-
:param pulumi.Input[str] match_express_filter_relation: The relationship between conditional expressions. Valid values: `and`, `or`.
|
|
30
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] template_id_lists:
|
|
26
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] contact_group_lists: The alert contact groups. The alert notifications of the application group are sent to the alert contacts that belong to the specified alert contact groups.
|
|
27
|
+
:param pulumi.Input[Sequence[pulumi.Input['DynamicTagGroupMatchExpressArgs']]] match_expresses: The conditional expressions used to create an application group based on the tag. See `match_express` below.
|
|
28
|
+
:param pulumi.Input[str] tag_key: The tag keys of the cloud resources.
|
|
29
|
+
:param pulumi.Input[str] match_express_filter_relation: The relationship between the conditional expressions for the tag values of the cloud resources. Valid values: `and`, `or`.
|
|
30
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] template_id_lists: The IDs of the alert templates.
|
|
31
31
|
"""
|
|
32
32
|
pulumi.set(__self__, "contact_group_lists", contact_group_lists)
|
|
33
33
|
pulumi.set(__self__, "match_expresses", match_expresses)
|
|
@@ -41,7 +41,7 @@ class DynamicTagGroupArgs:
|
|
|
41
41
|
@pulumi.getter(name="contactGroupLists")
|
|
42
42
|
def contact_group_lists(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]:
|
|
43
43
|
"""
|
|
44
|
-
|
|
44
|
+
The alert contact groups. The alert notifications of the application group are sent to the alert contacts that belong to the specified alert contact groups.
|
|
45
45
|
"""
|
|
46
46
|
return pulumi.get(self, "contact_group_lists")
|
|
47
47
|
|
|
@@ -53,7 +53,7 @@ class DynamicTagGroupArgs:
|
|
|
53
53
|
@pulumi.getter(name="matchExpresses")
|
|
54
54
|
def match_expresses(self) -> pulumi.Input[Sequence[pulumi.Input['DynamicTagGroupMatchExpressArgs']]]:
|
|
55
55
|
"""
|
|
56
|
-
The
|
|
56
|
+
The conditional expressions used to create an application group based on the tag. See `match_express` below.
|
|
57
57
|
"""
|
|
58
58
|
return pulumi.get(self, "match_expresses")
|
|
59
59
|
|
|
@@ -65,7 +65,7 @@ class DynamicTagGroupArgs:
|
|
|
65
65
|
@pulumi.getter(name="tagKey")
|
|
66
66
|
def tag_key(self) -> pulumi.Input[str]:
|
|
67
67
|
"""
|
|
68
|
-
The tag
|
|
68
|
+
The tag keys of the cloud resources.
|
|
69
69
|
"""
|
|
70
70
|
return pulumi.get(self, "tag_key")
|
|
71
71
|
|
|
@@ -77,7 +77,7 @@ class DynamicTagGroupArgs:
|
|
|
77
77
|
@pulumi.getter(name="matchExpressFilterRelation")
|
|
78
78
|
def match_express_filter_relation(self) -> Optional[pulumi.Input[str]]:
|
|
79
79
|
"""
|
|
80
|
-
The relationship between conditional expressions. Valid values: `and`, `or`.
|
|
80
|
+
The relationship between the conditional expressions for the tag values of the cloud resources. Valid values: `and`, `or`.
|
|
81
81
|
"""
|
|
82
82
|
return pulumi.get(self, "match_express_filter_relation")
|
|
83
83
|
|
|
@@ -89,7 +89,7 @@ class DynamicTagGroupArgs:
|
|
|
89
89
|
@pulumi.getter(name="templateIdLists")
|
|
90
90
|
def template_id_lists(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
91
91
|
"""
|
|
92
|
-
|
|
92
|
+
The IDs of the alert templates.
|
|
93
93
|
"""
|
|
94
94
|
return pulumi.get(self, "template_id_lists")
|
|
95
95
|
|
|
@@ -109,12 +109,12 @@ class _DynamicTagGroupState:
|
|
|
109
109
|
template_id_lists: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None):
|
|
110
110
|
"""
|
|
111
111
|
Input properties used for looking up and filtering DynamicTagGroup resources.
|
|
112
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] contact_group_lists:
|
|
113
|
-
:param pulumi.Input[str] match_express_filter_relation: The relationship between conditional expressions. Valid values: `and`, `or`.
|
|
114
|
-
:param pulumi.Input[Sequence[pulumi.Input['DynamicTagGroupMatchExpressArgs']]] match_expresses: The
|
|
115
|
-
:param pulumi.Input[str] status: The status of the
|
|
116
|
-
:param pulumi.Input[str] tag_key: The tag
|
|
117
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] template_id_lists:
|
|
112
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] contact_group_lists: The alert contact groups. The alert notifications of the application group are sent to the alert contacts that belong to the specified alert contact groups.
|
|
113
|
+
:param pulumi.Input[str] match_express_filter_relation: The relationship between the conditional expressions for the tag values of the cloud resources. Valid values: `and`, `or`.
|
|
114
|
+
:param pulumi.Input[Sequence[pulumi.Input['DynamicTagGroupMatchExpressArgs']]] match_expresses: The conditional expressions used to create an application group based on the tag. See `match_express` below.
|
|
115
|
+
:param pulumi.Input[str] status: The status of the Dynamic Tag Group.
|
|
116
|
+
:param pulumi.Input[str] tag_key: The tag keys of the cloud resources.
|
|
117
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] template_id_lists: The IDs of the alert templates.
|
|
118
118
|
"""
|
|
119
119
|
if contact_group_lists is not None:
|
|
120
120
|
pulumi.set(__self__, "contact_group_lists", contact_group_lists)
|
|
@@ -133,7 +133,7 @@ class _DynamicTagGroupState:
|
|
|
133
133
|
@pulumi.getter(name="contactGroupLists")
|
|
134
134
|
def contact_group_lists(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
135
135
|
"""
|
|
136
|
-
|
|
136
|
+
The alert contact groups. The alert notifications of the application group are sent to the alert contacts that belong to the specified alert contact groups.
|
|
137
137
|
"""
|
|
138
138
|
return pulumi.get(self, "contact_group_lists")
|
|
139
139
|
|
|
@@ -145,7 +145,7 @@ class _DynamicTagGroupState:
|
|
|
145
145
|
@pulumi.getter(name="matchExpressFilterRelation")
|
|
146
146
|
def match_express_filter_relation(self) -> Optional[pulumi.Input[str]]:
|
|
147
147
|
"""
|
|
148
|
-
The relationship between conditional expressions. Valid values: `and`, `or`.
|
|
148
|
+
The relationship between the conditional expressions for the tag values of the cloud resources. Valid values: `and`, `or`.
|
|
149
149
|
"""
|
|
150
150
|
return pulumi.get(self, "match_express_filter_relation")
|
|
151
151
|
|
|
@@ -157,7 +157,7 @@ class _DynamicTagGroupState:
|
|
|
157
157
|
@pulumi.getter(name="matchExpresses")
|
|
158
158
|
def match_expresses(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['DynamicTagGroupMatchExpressArgs']]]]:
|
|
159
159
|
"""
|
|
160
|
-
The
|
|
160
|
+
The conditional expressions used to create an application group based on the tag. See `match_express` below.
|
|
161
161
|
"""
|
|
162
162
|
return pulumi.get(self, "match_expresses")
|
|
163
163
|
|
|
@@ -169,7 +169,7 @@ class _DynamicTagGroupState:
|
|
|
169
169
|
@pulumi.getter
|
|
170
170
|
def status(self) -> Optional[pulumi.Input[str]]:
|
|
171
171
|
"""
|
|
172
|
-
The status of the
|
|
172
|
+
The status of the Dynamic Tag Group.
|
|
173
173
|
"""
|
|
174
174
|
return pulumi.get(self, "status")
|
|
175
175
|
|
|
@@ -181,7 +181,7 @@ class _DynamicTagGroupState:
|
|
|
181
181
|
@pulumi.getter(name="tagKey")
|
|
182
182
|
def tag_key(self) -> Optional[pulumi.Input[str]]:
|
|
183
183
|
"""
|
|
184
|
-
The tag
|
|
184
|
+
The tag keys of the cloud resources.
|
|
185
185
|
"""
|
|
186
186
|
return pulumi.get(self, "tag_key")
|
|
187
187
|
|
|
@@ -193,7 +193,7 @@ class _DynamicTagGroupState:
|
|
|
193
193
|
@pulumi.getter(name="templateIdLists")
|
|
194
194
|
def template_id_lists(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
195
195
|
"""
|
|
196
|
-
|
|
196
|
+
The IDs of the alert templates.
|
|
197
197
|
"""
|
|
198
198
|
return pulumi.get(self, "template_id_lists")
|
|
199
199
|
|
|
@@ -228,15 +228,16 @@ class DynamicTagGroup(pulumi.CustomResource):
|
|
|
228
228
|
import pulumi
|
|
229
229
|
import pulumi_alicloud as alicloud
|
|
230
230
|
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
231
|
+
config = pulumi.Config()
|
|
232
|
+
name = config.get("name")
|
|
233
|
+
if name is None:
|
|
234
|
+
name = "terraform-example"
|
|
235
|
+
default = alicloud.cms.AlarmContactGroup("default", alarm_contact_group_name=name)
|
|
235
236
|
default_dynamic_tag_group = alicloud.cms.DynamicTagGroup("default",
|
|
237
|
+
tag_key=name,
|
|
236
238
|
contact_group_lists=[default.id],
|
|
237
|
-
tag_key="your_tag_key",
|
|
238
239
|
match_expresses=[{
|
|
239
|
-
"tag_value":
|
|
240
|
+
"tag_value": name,
|
|
240
241
|
"tag_value_match_function": "all",
|
|
241
242
|
}])
|
|
242
243
|
```
|
|
@@ -251,11 +252,11 @@ class DynamicTagGroup(pulumi.CustomResource):
|
|
|
251
252
|
|
|
252
253
|
:param str resource_name: The name of the resource.
|
|
253
254
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
254
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] contact_group_lists:
|
|
255
|
-
:param pulumi.Input[str] match_express_filter_relation: The relationship between conditional expressions. Valid values: `and`, `or`.
|
|
256
|
-
:param pulumi.Input[Sequence[pulumi.Input[Union['DynamicTagGroupMatchExpressArgs', 'DynamicTagGroupMatchExpressArgsDict']]]] match_expresses: The
|
|
257
|
-
:param pulumi.Input[str] tag_key: The tag
|
|
258
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] template_id_lists:
|
|
255
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] contact_group_lists: The alert contact groups. The alert notifications of the application group are sent to the alert contacts that belong to the specified alert contact groups.
|
|
256
|
+
:param pulumi.Input[str] match_express_filter_relation: The relationship between the conditional expressions for the tag values of the cloud resources. Valid values: `and`, `or`.
|
|
257
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['DynamicTagGroupMatchExpressArgs', 'DynamicTagGroupMatchExpressArgsDict']]]] match_expresses: The conditional expressions used to create an application group based on the tag. See `match_express` below.
|
|
258
|
+
:param pulumi.Input[str] tag_key: The tag keys of the cloud resources.
|
|
259
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] template_id_lists: The IDs of the alert templates.
|
|
259
260
|
"""
|
|
260
261
|
...
|
|
261
262
|
@overload
|
|
@@ -278,15 +279,16 @@ class DynamicTagGroup(pulumi.CustomResource):
|
|
|
278
279
|
import pulumi
|
|
279
280
|
import pulumi_alicloud as alicloud
|
|
280
281
|
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
282
|
+
config = pulumi.Config()
|
|
283
|
+
name = config.get("name")
|
|
284
|
+
if name is None:
|
|
285
|
+
name = "terraform-example"
|
|
286
|
+
default = alicloud.cms.AlarmContactGroup("default", alarm_contact_group_name=name)
|
|
285
287
|
default_dynamic_tag_group = alicloud.cms.DynamicTagGroup("default",
|
|
288
|
+
tag_key=name,
|
|
286
289
|
contact_group_lists=[default.id],
|
|
287
|
-
tag_key="your_tag_key",
|
|
288
290
|
match_expresses=[{
|
|
289
|
-
"tag_value":
|
|
291
|
+
"tag_value": name,
|
|
290
292
|
"tag_value_match_function": "all",
|
|
291
293
|
}])
|
|
292
294
|
```
|
|
@@ -363,12 +365,12 @@ class DynamicTagGroup(pulumi.CustomResource):
|
|
|
363
365
|
:param str resource_name: The unique name of the resulting resource.
|
|
364
366
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
365
367
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
366
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] contact_group_lists:
|
|
367
|
-
:param pulumi.Input[str] match_express_filter_relation: The relationship between conditional expressions. Valid values: `and`, `or`.
|
|
368
|
-
:param pulumi.Input[Sequence[pulumi.Input[Union['DynamicTagGroupMatchExpressArgs', 'DynamicTagGroupMatchExpressArgsDict']]]] match_expresses: The
|
|
369
|
-
:param pulumi.Input[str] status: The status of the
|
|
370
|
-
:param pulumi.Input[str] tag_key: The tag
|
|
371
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] template_id_lists:
|
|
368
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] contact_group_lists: The alert contact groups. The alert notifications of the application group are sent to the alert contacts that belong to the specified alert contact groups.
|
|
369
|
+
:param pulumi.Input[str] match_express_filter_relation: The relationship between the conditional expressions for the tag values of the cloud resources. Valid values: `and`, `or`.
|
|
370
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['DynamicTagGroupMatchExpressArgs', 'DynamicTagGroupMatchExpressArgsDict']]]] match_expresses: The conditional expressions used to create an application group based on the tag. See `match_express` below.
|
|
371
|
+
:param pulumi.Input[str] status: The status of the Dynamic Tag Group.
|
|
372
|
+
:param pulumi.Input[str] tag_key: The tag keys of the cloud resources.
|
|
373
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] template_id_lists: The IDs of the alert templates.
|
|
372
374
|
"""
|
|
373
375
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
374
376
|
|
|
@@ -386,7 +388,7 @@ class DynamicTagGroup(pulumi.CustomResource):
|
|
|
386
388
|
@pulumi.getter(name="contactGroupLists")
|
|
387
389
|
def contact_group_lists(self) -> pulumi.Output[Sequence[str]]:
|
|
388
390
|
"""
|
|
389
|
-
|
|
391
|
+
The alert contact groups. The alert notifications of the application group are sent to the alert contacts that belong to the specified alert contact groups.
|
|
390
392
|
"""
|
|
391
393
|
return pulumi.get(self, "contact_group_lists")
|
|
392
394
|
|
|
@@ -394,7 +396,7 @@ class DynamicTagGroup(pulumi.CustomResource):
|
|
|
394
396
|
@pulumi.getter(name="matchExpressFilterRelation")
|
|
395
397
|
def match_express_filter_relation(self) -> pulumi.Output[str]:
|
|
396
398
|
"""
|
|
397
|
-
The relationship between conditional expressions. Valid values: `and`, `or`.
|
|
399
|
+
The relationship between the conditional expressions for the tag values of the cloud resources. Valid values: `and`, `or`.
|
|
398
400
|
"""
|
|
399
401
|
return pulumi.get(self, "match_express_filter_relation")
|
|
400
402
|
|
|
@@ -402,7 +404,7 @@ class DynamicTagGroup(pulumi.CustomResource):
|
|
|
402
404
|
@pulumi.getter(name="matchExpresses")
|
|
403
405
|
def match_expresses(self) -> pulumi.Output[Sequence['outputs.DynamicTagGroupMatchExpress']]:
|
|
404
406
|
"""
|
|
405
|
-
The
|
|
407
|
+
The conditional expressions used to create an application group based on the tag. See `match_express` below.
|
|
406
408
|
"""
|
|
407
409
|
return pulumi.get(self, "match_expresses")
|
|
408
410
|
|
|
@@ -410,7 +412,7 @@ class DynamicTagGroup(pulumi.CustomResource):
|
|
|
410
412
|
@pulumi.getter
|
|
411
413
|
def status(self) -> pulumi.Output[str]:
|
|
412
414
|
"""
|
|
413
|
-
The status of the
|
|
415
|
+
The status of the Dynamic Tag Group.
|
|
414
416
|
"""
|
|
415
417
|
return pulumi.get(self, "status")
|
|
416
418
|
|
|
@@ -418,7 +420,7 @@ class DynamicTagGroup(pulumi.CustomResource):
|
|
|
418
420
|
@pulumi.getter(name="tagKey")
|
|
419
421
|
def tag_key(self) -> pulumi.Output[str]:
|
|
420
422
|
"""
|
|
421
|
-
The tag
|
|
423
|
+
The tag keys of the cloud resources.
|
|
422
424
|
"""
|
|
423
425
|
return pulumi.get(self, "tag_key")
|
|
424
426
|
|
|
@@ -426,7 +428,7 @@ class DynamicTagGroup(pulumi.CustomResource):
|
|
|
426
428
|
@pulumi.getter(name="templateIdLists")
|
|
427
429
|
def template_id_lists(self) -> pulumi.Output[Optional[Sequence[str]]]:
|
|
428
430
|
"""
|
|
429
|
-
|
|
431
|
+
The IDs of the alert templates.
|
|
430
432
|
"""
|
|
431
433
|
return pulumi.get(self, "template_id_lists")
|
|
432
434
|
|
|
@@ -465,7 +465,7 @@ class MetricRuleBlackList(pulumi.CustomResource):
|
|
|
465
465
|
default_get_instance_types = alicloud.ecs.get_instance_types(availability_zone=default.zones[0].id,
|
|
466
466
|
cpu_core_count=1,
|
|
467
467
|
memory_size=2)
|
|
468
|
-
default_get_images = alicloud.ecs.get_images(name_regex="^
|
|
468
|
+
default_get_images = alicloud.ecs.get_images(name_regex="^ubuntu_18.*64",
|
|
469
469
|
owners="system")
|
|
470
470
|
default_network = alicloud.vpc.Network("default",
|
|
471
471
|
vpc_name=name,
|
|
@@ -548,7 +548,7 @@ class MetricRuleBlackList(pulumi.CustomResource):
|
|
|
548
548
|
default_get_instance_types = alicloud.ecs.get_instance_types(availability_zone=default.zones[0].id,
|
|
549
549
|
cpu_core_count=1,
|
|
550
550
|
memory_size=2)
|
|
551
|
-
default_get_images = alicloud.ecs.get_images(name_regex="^
|
|
551
|
+
default_get_images = alicloud.ecs.get_images(name_regex="^ubuntu_18.*64",
|
|
552
552
|
owners="system")
|
|
553
553
|
default_network = alicloud.vpc.Network("default",
|
|
554
554
|
vpc_name=name,
|