pulumi-alicloud 3.70.0a1734412500__py3-none-any.whl → 3.71.0__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 +35 -0
- pulumi_alicloud/arms/_inputs.py +185 -0
- pulumi_alicloud/arms/dispatch_rule.py +70 -1
- pulumi_alicloud/arms/get_dispatch_rules.py +2 -2
- pulumi_alicloud/arms/get_prometheis.py +2 -2
- pulumi_alicloud/arms/get_remote_writes.py +2 -2
- pulumi_alicloud/arms/outputs.py +258 -11
- pulumi_alicloud/cen/private_zone.py +73 -69
- pulumi_alicloud/cen/transit_router_multicast_domain_peer_member.py +2 -2
- pulumi_alicloud/cfg/rule.py +2 -2
- pulumi_alicloud/ecs/ecs_snapshot.py +65 -9
- pulumi_alicloud/ecs/get_instance_types.py +1 -1
- pulumi_alicloud/ecs/outputs.py +78 -1
- pulumi_alicloud/ecs/security_group.py +161 -81
- pulumi_alicloud/ecs/snapshot.py +40 -0
- pulumi_alicloud/eds/ram_directory.py +4 -0
- pulumi_alicloud/ess/_inputs.py +54 -0
- pulumi_alicloud/ess/outputs.py +51 -0
- pulumi_alicloud/ess/scaling_configuration.py +47 -0
- pulumi_alicloud/ess/scaling_group.py +47 -0
- pulumi_alicloud/expressconnect/__init__.py +1 -0
- pulumi_alicloud/expressconnect/router_grant_association.py +477 -0
- pulumi_alicloud/fc/v3_trigger.py +96 -0
- pulumi_alicloud/kms/_inputs.py +5 -5
- pulumi_alicloud/kms/outputs.py +3 -3
- pulumi_alicloud/kvstore/backup_policy.py +32 -24
- pulumi_alicloud/live/__init__.py +8 -0
- pulumi_alicloud/live/caster.py +1343 -0
- pulumi_alicloud/nas/access_group.py +10 -2
- pulumi_alicloud/nas/access_point.py +10 -2
- pulumi_alicloud/nas/fileset.py +2 -2
- pulumi_alicloud/oos/execution.py +18 -10
- pulumi_alicloud/oos/template.py +14 -6
- pulumi_alicloud/pai/__init__.py +1 -0
- pulumi_alicloud/pai/service.py +501 -0
- pulumi_alicloud/polardb/cluster.py +47 -0
- pulumi_alicloud/privatelink/vpc_endpoint.py +143 -69
- pulumi_alicloud/privatelink/vpc_endpoint_service.py +47 -0
- pulumi_alicloud/privatelink/vpc_endpoint_service_resource.py +2 -2
- pulumi_alicloud/pulumi-plugin.json +1 -1
- pulumi_alicloud/rdc/get_organizations.py +12 -2
- pulumi_alicloud/rdc/organization.py +6 -2
- pulumi_alicloud/redis/tair_instance.py +47 -0
- pulumi_alicloud/vpc/__init__.py +1 -0
- pulumi_alicloud/vpc/ipam_ipam_pool_allocation.py +545 -0
- {pulumi_alicloud-3.70.0a1734412500.dist-info → pulumi_alicloud-3.71.0.dist-info}/METADATA +1 -1
- {pulumi_alicloud-3.70.0a1734412500.dist-info → pulumi_alicloud-3.71.0.dist-info}/RECORD +49 -44
- {pulumi_alicloud-3.70.0a1734412500.dist-info → pulumi_alicloud-3.71.0.dist-info}/WHEEL +0 -0
- {pulumi_alicloud-3.70.0a1734412500.dist-info → pulumi_alicloud-3.71.0.dist-info}/top_level.txt +0 -0
pulumi_alicloud/__init__.py
CHANGED
|
@@ -187,6 +187,8 @@ if typing.TYPE_CHECKING:
|
|
|
187
187
|
kvstore = __kvstore
|
|
188
188
|
import pulumi_alicloud.lindorm as __lindorm
|
|
189
189
|
lindorm = __lindorm
|
|
190
|
+
import pulumi_alicloud.live as __live
|
|
191
|
+
live = __live
|
|
190
192
|
import pulumi_alicloud.log as __log
|
|
191
193
|
log = __log
|
|
192
194
|
import pulumi_alicloud.marketplace as __marketplace
|
|
@@ -374,6 +376,7 @@ else:
|
|
|
374
376
|
kms = _utilities.lazy_import('pulumi_alicloud.kms')
|
|
375
377
|
kvstore = _utilities.lazy_import('pulumi_alicloud.kvstore')
|
|
376
378
|
lindorm = _utilities.lazy_import('pulumi_alicloud.lindorm')
|
|
379
|
+
live = _utilities.lazy_import('pulumi_alicloud.live')
|
|
377
380
|
log = _utilities.lazy_import('pulumi_alicloud.log')
|
|
378
381
|
marketplace = _utilities.lazy_import('pulumi_alicloud.marketplace')
|
|
379
382
|
maxcompute = _utilities.lazy_import('pulumi_alicloud.maxcompute')
|
|
@@ -4030,6 +4033,14 @@ _utilities.register(
|
|
|
4030
4033
|
"alicloud:expressconnect/routerExpressConnectRouter:RouterExpressConnectRouter": "RouterExpressConnectRouter"
|
|
4031
4034
|
}
|
|
4032
4035
|
},
|
|
4036
|
+
{
|
|
4037
|
+
"pkg": "alicloud",
|
|
4038
|
+
"mod": "expressconnect/routerGrantAssociation",
|
|
4039
|
+
"fqn": "pulumi_alicloud.expressconnect",
|
|
4040
|
+
"classes": {
|
|
4041
|
+
"alicloud:expressconnect/routerGrantAssociation:RouterGrantAssociation": "RouterGrantAssociation"
|
|
4042
|
+
}
|
|
4043
|
+
},
|
|
4033
4044
|
{
|
|
4034
4045
|
"pkg": "alicloud",
|
|
4035
4046
|
"mod": "expressconnect/routerInterface",
|
|
@@ -4966,6 +4977,14 @@ _utilities.register(
|
|
|
4966
4977
|
"alicloud:lindorm/instance:Instance": "Instance"
|
|
4967
4978
|
}
|
|
4968
4979
|
},
|
|
4980
|
+
{
|
|
4981
|
+
"pkg": "alicloud",
|
|
4982
|
+
"mod": "live/caster",
|
|
4983
|
+
"fqn": "pulumi_alicloud.live",
|
|
4984
|
+
"classes": {
|
|
4985
|
+
"alicloud:live/caster:Caster": "Caster"
|
|
4986
|
+
}
|
|
4987
|
+
},
|
|
4969
4988
|
{
|
|
4970
4989
|
"pkg": "alicloud",
|
|
4971
4990
|
"mod": "log/alert",
|
|
@@ -5750,6 +5769,14 @@ _utilities.register(
|
|
|
5750
5769
|
"alicloud:ots/tunnel:Tunnel": "Tunnel"
|
|
5751
5770
|
}
|
|
5752
5771
|
},
|
|
5772
|
+
{
|
|
5773
|
+
"pkg": "alicloud",
|
|
5774
|
+
"mod": "pai/service",
|
|
5775
|
+
"fqn": "pulumi_alicloud.pai",
|
|
5776
|
+
"classes": {
|
|
5777
|
+
"alicloud:pai/service:Service": "Service"
|
|
5778
|
+
}
|
|
5779
|
+
},
|
|
5753
5780
|
{
|
|
5754
5781
|
"pkg": "alicloud",
|
|
5755
5782
|
"mod": "pai/workspaceCodeSource",
|
|
@@ -7422,6 +7449,14 @@ _utilities.register(
|
|
|
7422
7449
|
"alicloud:vpc/ipamIpamPool:IpamIpamPool": "IpamIpamPool"
|
|
7423
7450
|
}
|
|
7424
7451
|
},
|
|
7452
|
+
{
|
|
7453
|
+
"pkg": "alicloud",
|
|
7454
|
+
"mod": "vpc/ipamIpamPoolAllocation",
|
|
7455
|
+
"fqn": "pulumi_alicloud.vpc",
|
|
7456
|
+
"classes": {
|
|
7457
|
+
"alicloud:vpc/ipamIpamPoolAllocation:IpamIpamPoolAllocation": "IpamIpamPoolAllocation"
|
|
7458
|
+
}
|
|
7459
|
+
},
|
|
7425
7460
|
{
|
|
7426
7461
|
"pkg": "alicloud",
|
|
7427
7462
|
"mod": "vpc/ipamIpamPoolCidr",
|
pulumi_alicloud/arms/_inputs.py
CHANGED
|
@@ -27,6 +27,8 @@ __all__ = [
|
|
|
27
27
|
'DispatchRuleNotifyRuleArgsDict',
|
|
28
28
|
'DispatchRuleNotifyRuleNotifyObjectArgs',
|
|
29
29
|
'DispatchRuleNotifyRuleNotifyObjectArgsDict',
|
|
30
|
+
'DispatchRuleNotifyTemplateArgs',
|
|
31
|
+
'DispatchRuleNotifyTemplateArgsDict',
|
|
30
32
|
'PrometheusAlertRuleAnnotationArgs',
|
|
31
33
|
'PrometheusAlertRuleAnnotationArgsDict',
|
|
32
34
|
'PrometheusAlertRuleLabelArgs',
|
|
@@ -492,6 +494,189 @@ class DispatchRuleNotifyRuleNotifyObjectArgs:
|
|
|
492
494
|
pulumi.set(self, "notify_type", value)
|
|
493
495
|
|
|
494
496
|
|
|
497
|
+
if not MYPY:
|
|
498
|
+
class DispatchRuleNotifyTemplateArgsDict(TypedDict):
|
|
499
|
+
email_content: pulumi.Input[str]
|
|
500
|
+
"""
|
|
501
|
+
The content of the email notification.
|
|
502
|
+
"""
|
|
503
|
+
email_recover_content: pulumi.Input[str]
|
|
504
|
+
"""
|
|
505
|
+
The content of the email notification for restored alerts.
|
|
506
|
+
"""
|
|
507
|
+
email_recover_title: pulumi.Input[str]
|
|
508
|
+
"""
|
|
509
|
+
The title of the email notification for restored alerts.
|
|
510
|
+
"""
|
|
511
|
+
email_title: pulumi.Input[str]
|
|
512
|
+
"""
|
|
513
|
+
The title of the email notification.
|
|
514
|
+
"""
|
|
515
|
+
robot_content: pulumi.Input[str]
|
|
516
|
+
"""
|
|
517
|
+
The content of the robot notification.
|
|
518
|
+
"""
|
|
519
|
+
sms_content: pulumi.Input[str]
|
|
520
|
+
"""
|
|
521
|
+
The content of the SMS notification.
|
|
522
|
+
"""
|
|
523
|
+
sms_recover_content: pulumi.Input[str]
|
|
524
|
+
"""
|
|
525
|
+
The content of the SMS notification for restored alerts.
|
|
526
|
+
"""
|
|
527
|
+
tts_content: pulumi.Input[str]
|
|
528
|
+
"""
|
|
529
|
+
The content of the TTS notification.
|
|
530
|
+
"""
|
|
531
|
+
tts_recover_content: pulumi.Input[str]
|
|
532
|
+
"""
|
|
533
|
+
The content of the TTS notification for restored alerts.
|
|
534
|
+
"""
|
|
535
|
+
elif False:
|
|
536
|
+
DispatchRuleNotifyTemplateArgsDict: TypeAlias = Mapping[str, Any]
|
|
537
|
+
|
|
538
|
+
@pulumi.input_type
|
|
539
|
+
class DispatchRuleNotifyTemplateArgs:
|
|
540
|
+
def __init__(__self__, *,
|
|
541
|
+
email_content: pulumi.Input[str],
|
|
542
|
+
email_recover_content: pulumi.Input[str],
|
|
543
|
+
email_recover_title: pulumi.Input[str],
|
|
544
|
+
email_title: pulumi.Input[str],
|
|
545
|
+
robot_content: pulumi.Input[str],
|
|
546
|
+
sms_content: pulumi.Input[str],
|
|
547
|
+
sms_recover_content: pulumi.Input[str],
|
|
548
|
+
tts_content: pulumi.Input[str],
|
|
549
|
+
tts_recover_content: pulumi.Input[str]):
|
|
550
|
+
"""
|
|
551
|
+
:param pulumi.Input[str] email_content: The content of the email notification.
|
|
552
|
+
:param pulumi.Input[str] email_recover_content: The content of the email notification for restored alerts.
|
|
553
|
+
:param pulumi.Input[str] email_recover_title: The title of the email notification for restored alerts.
|
|
554
|
+
:param pulumi.Input[str] email_title: The title of the email notification.
|
|
555
|
+
:param pulumi.Input[str] robot_content: The content of the robot notification.
|
|
556
|
+
:param pulumi.Input[str] sms_content: The content of the SMS notification.
|
|
557
|
+
:param pulumi.Input[str] sms_recover_content: The content of the SMS notification for restored alerts.
|
|
558
|
+
:param pulumi.Input[str] tts_content: The content of the TTS notification.
|
|
559
|
+
:param pulumi.Input[str] tts_recover_content: The content of the TTS notification for restored alerts.
|
|
560
|
+
"""
|
|
561
|
+
pulumi.set(__self__, "email_content", email_content)
|
|
562
|
+
pulumi.set(__self__, "email_recover_content", email_recover_content)
|
|
563
|
+
pulumi.set(__self__, "email_recover_title", email_recover_title)
|
|
564
|
+
pulumi.set(__self__, "email_title", email_title)
|
|
565
|
+
pulumi.set(__self__, "robot_content", robot_content)
|
|
566
|
+
pulumi.set(__self__, "sms_content", sms_content)
|
|
567
|
+
pulumi.set(__self__, "sms_recover_content", sms_recover_content)
|
|
568
|
+
pulumi.set(__self__, "tts_content", tts_content)
|
|
569
|
+
pulumi.set(__self__, "tts_recover_content", tts_recover_content)
|
|
570
|
+
|
|
571
|
+
@property
|
|
572
|
+
@pulumi.getter(name="emailContent")
|
|
573
|
+
def email_content(self) -> pulumi.Input[str]:
|
|
574
|
+
"""
|
|
575
|
+
The content of the email notification.
|
|
576
|
+
"""
|
|
577
|
+
return pulumi.get(self, "email_content")
|
|
578
|
+
|
|
579
|
+
@email_content.setter
|
|
580
|
+
def email_content(self, value: pulumi.Input[str]):
|
|
581
|
+
pulumi.set(self, "email_content", value)
|
|
582
|
+
|
|
583
|
+
@property
|
|
584
|
+
@pulumi.getter(name="emailRecoverContent")
|
|
585
|
+
def email_recover_content(self) -> pulumi.Input[str]:
|
|
586
|
+
"""
|
|
587
|
+
The content of the email notification for restored alerts.
|
|
588
|
+
"""
|
|
589
|
+
return pulumi.get(self, "email_recover_content")
|
|
590
|
+
|
|
591
|
+
@email_recover_content.setter
|
|
592
|
+
def email_recover_content(self, value: pulumi.Input[str]):
|
|
593
|
+
pulumi.set(self, "email_recover_content", value)
|
|
594
|
+
|
|
595
|
+
@property
|
|
596
|
+
@pulumi.getter(name="emailRecoverTitle")
|
|
597
|
+
def email_recover_title(self) -> pulumi.Input[str]:
|
|
598
|
+
"""
|
|
599
|
+
The title of the email notification for restored alerts.
|
|
600
|
+
"""
|
|
601
|
+
return pulumi.get(self, "email_recover_title")
|
|
602
|
+
|
|
603
|
+
@email_recover_title.setter
|
|
604
|
+
def email_recover_title(self, value: pulumi.Input[str]):
|
|
605
|
+
pulumi.set(self, "email_recover_title", value)
|
|
606
|
+
|
|
607
|
+
@property
|
|
608
|
+
@pulumi.getter(name="emailTitle")
|
|
609
|
+
def email_title(self) -> pulumi.Input[str]:
|
|
610
|
+
"""
|
|
611
|
+
The title of the email notification.
|
|
612
|
+
"""
|
|
613
|
+
return pulumi.get(self, "email_title")
|
|
614
|
+
|
|
615
|
+
@email_title.setter
|
|
616
|
+
def email_title(self, value: pulumi.Input[str]):
|
|
617
|
+
pulumi.set(self, "email_title", value)
|
|
618
|
+
|
|
619
|
+
@property
|
|
620
|
+
@pulumi.getter(name="robotContent")
|
|
621
|
+
def robot_content(self) -> pulumi.Input[str]:
|
|
622
|
+
"""
|
|
623
|
+
The content of the robot notification.
|
|
624
|
+
"""
|
|
625
|
+
return pulumi.get(self, "robot_content")
|
|
626
|
+
|
|
627
|
+
@robot_content.setter
|
|
628
|
+
def robot_content(self, value: pulumi.Input[str]):
|
|
629
|
+
pulumi.set(self, "robot_content", value)
|
|
630
|
+
|
|
631
|
+
@property
|
|
632
|
+
@pulumi.getter(name="smsContent")
|
|
633
|
+
def sms_content(self) -> pulumi.Input[str]:
|
|
634
|
+
"""
|
|
635
|
+
The content of the SMS notification.
|
|
636
|
+
"""
|
|
637
|
+
return pulumi.get(self, "sms_content")
|
|
638
|
+
|
|
639
|
+
@sms_content.setter
|
|
640
|
+
def sms_content(self, value: pulumi.Input[str]):
|
|
641
|
+
pulumi.set(self, "sms_content", value)
|
|
642
|
+
|
|
643
|
+
@property
|
|
644
|
+
@pulumi.getter(name="smsRecoverContent")
|
|
645
|
+
def sms_recover_content(self) -> pulumi.Input[str]:
|
|
646
|
+
"""
|
|
647
|
+
The content of the SMS notification for restored alerts.
|
|
648
|
+
"""
|
|
649
|
+
return pulumi.get(self, "sms_recover_content")
|
|
650
|
+
|
|
651
|
+
@sms_recover_content.setter
|
|
652
|
+
def sms_recover_content(self, value: pulumi.Input[str]):
|
|
653
|
+
pulumi.set(self, "sms_recover_content", value)
|
|
654
|
+
|
|
655
|
+
@property
|
|
656
|
+
@pulumi.getter(name="ttsContent")
|
|
657
|
+
def tts_content(self) -> pulumi.Input[str]:
|
|
658
|
+
"""
|
|
659
|
+
The content of the TTS notification.
|
|
660
|
+
"""
|
|
661
|
+
return pulumi.get(self, "tts_content")
|
|
662
|
+
|
|
663
|
+
@tts_content.setter
|
|
664
|
+
def tts_content(self, value: pulumi.Input[str]):
|
|
665
|
+
pulumi.set(self, "tts_content", value)
|
|
666
|
+
|
|
667
|
+
@property
|
|
668
|
+
@pulumi.getter(name="ttsRecoverContent")
|
|
669
|
+
def tts_recover_content(self) -> pulumi.Input[str]:
|
|
670
|
+
"""
|
|
671
|
+
The content of the TTS notification for restored alerts.
|
|
672
|
+
"""
|
|
673
|
+
return pulumi.get(self, "tts_recover_content")
|
|
674
|
+
|
|
675
|
+
@tts_recover_content.setter
|
|
676
|
+
def tts_recover_content(self, value: pulumi.Input[str]):
|
|
677
|
+
pulumi.set(self, "tts_recover_content", value)
|
|
678
|
+
|
|
679
|
+
|
|
495
680
|
if not MYPY:
|
|
496
681
|
class PrometheusAlertRuleAnnotationArgsDict(TypedDict):
|
|
497
682
|
name: NotRequired[pulumi.Input[str]]
|
|
@@ -26,7 +26,8 @@ class DispatchRuleArgs:
|
|
|
26
26
|
label_match_expression_grids: pulumi.Input[Sequence[pulumi.Input['DispatchRuleLabelMatchExpressionGridArgs']]],
|
|
27
27
|
notify_rules: pulumi.Input[Sequence[pulumi.Input['DispatchRuleNotifyRuleArgs']]],
|
|
28
28
|
dispatch_type: Optional[pulumi.Input[str]] = None,
|
|
29
|
-
is_recover: Optional[pulumi.Input[bool]] = None
|
|
29
|
+
is_recover: Optional[pulumi.Input[bool]] = None,
|
|
30
|
+
notify_templates: Optional[pulumi.Input[Sequence[pulumi.Input['DispatchRuleNotifyTemplateArgs']]]] = None):
|
|
30
31
|
"""
|
|
31
32
|
The set of arguments for constructing a DispatchRule resource.
|
|
32
33
|
:param pulumi.Input[str] dispatch_rule_name: The name of the dispatch policy.
|
|
@@ -35,6 +36,7 @@ class DispatchRuleArgs:
|
|
|
35
36
|
:param pulumi.Input[Sequence[pulumi.Input['DispatchRuleNotifyRuleArgs']]] notify_rules: Sets the notification rule. See `notify_rules` below. It will be ignored when `dispatch_type = "DISCARD_ALERT"`.
|
|
36
37
|
:param pulumi.Input[str] dispatch_type: The alert handling method. Valid values: CREATE_ALERT: generates an alert. DISCARD_ALERT: discards the alert event and generates no alert.
|
|
37
38
|
:param pulumi.Input[bool] is_recover: Specifies whether to send the restored alert. Valid values: true: sends the alert. false: does not send the alert.
|
|
39
|
+
:param pulumi.Input[Sequence[pulumi.Input['DispatchRuleNotifyTemplateArgs']]] notify_templates: Sets the notification template. See `notify_template` below.
|
|
38
40
|
"""
|
|
39
41
|
pulumi.set(__self__, "dispatch_rule_name", dispatch_rule_name)
|
|
40
42
|
pulumi.set(__self__, "group_rules", group_rules)
|
|
@@ -44,6 +46,8 @@ class DispatchRuleArgs:
|
|
|
44
46
|
pulumi.set(__self__, "dispatch_type", dispatch_type)
|
|
45
47
|
if is_recover is not None:
|
|
46
48
|
pulumi.set(__self__, "is_recover", is_recover)
|
|
49
|
+
if notify_templates is not None:
|
|
50
|
+
pulumi.set(__self__, "notify_templates", notify_templates)
|
|
47
51
|
|
|
48
52
|
@property
|
|
49
53
|
@pulumi.getter(name="dispatchRuleName")
|
|
@@ -117,6 +121,18 @@ class DispatchRuleArgs:
|
|
|
117
121
|
def is_recover(self, value: Optional[pulumi.Input[bool]]):
|
|
118
122
|
pulumi.set(self, "is_recover", value)
|
|
119
123
|
|
|
124
|
+
@property
|
|
125
|
+
@pulumi.getter(name="notifyTemplates")
|
|
126
|
+
def notify_templates(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['DispatchRuleNotifyTemplateArgs']]]]:
|
|
127
|
+
"""
|
|
128
|
+
Sets the notification template. See `notify_template` below.
|
|
129
|
+
"""
|
|
130
|
+
return pulumi.get(self, "notify_templates")
|
|
131
|
+
|
|
132
|
+
@notify_templates.setter
|
|
133
|
+
def notify_templates(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['DispatchRuleNotifyTemplateArgs']]]]):
|
|
134
|
+
pulumi.set(self, "notify_templates", value)
|
|
135
|
+
|
|
120
136
|
|
|
121
137
|
@pulumi.input_type
|
|
122
138
|
class _DispatchRuleState:
|
|
@@ -127,6 +143,7 @@ class _DispatchRuleState:
|
|
|
127
143
|
is_recover: Optional[pulumi.Input[bool]] = None,
|
|
128
144
|
label_match_expression_grids: Optional[pulumi.Input[Sequence[pulumi.Input['DispatchRuleLabelMatchExpressionGridArgs']]]] = None,
|
|
129
145
|
notify_rules: Optional[pulumi.Input[Sequence[pulumi.Input['DispatchRuleNotifyRuleArgs']]]] = None,
|
|
146
|
+
notify_templates: Optional[pulumi.Input[Sequence[pulumi.Input['DispatchRuleNotifyTemplateArgs']]]] = None,
|
|
130
147
|
status: Optional[pulumi.Input[str]] = None):
|
|
131
148
|
"""
|
|
132
149
|
Input properties used for looking up and filtering DispatchRule resources.
|
|
@@ -136,6 +153,7 @@ class _DispatchRuleState:
|
|
|
136
153
|
:param pulumi.Input[bool] is_recover: Specifies whether to send the restored alert. Valid values: true: sends the alert. false: does not send the alert.
|
|
137
154
|
:param pulumi.Input[Sequence[pulumi.Input['DispatchRuleLabelMatchExpressionGridArgs']]] label_match_expression_grids: Sets the dispatch rule. See `label_match_expression_grid` below.
|
|
138
155
|
:param pulumi.Input[Sequence[pulumi.Input['DispatchRuleNotifyRuleArgs']]] notify_rules: Sets the notification rule. See `notify_rules` below. It will be ignored when `dispatch_type = "DISCARD_ALERT"`.
|
|
156
|
+
:param pulumi.Input[Sequence[pulumi.Input['DispatchRuleNotifyTemplateArgs']]] notify_templates: Sets the notification template. See `notify_template` below.
|
|
139
157
|
:param pulumi.Input[str] status: The resource status of Alert Dispatch Rule.
|
|
140
158
|
"""
|
|
141
159
|
if dispatch_rule_name is not None:
|
|
@@ -150,6 +168,8 @@ class _DispatchRuleState:
|
|
|
150
168
|
pulumi.set(__self__, "label_match_expression_grids", label_match_expression_grids)
|
|
151
169
|
if notify_rules is not None:
|
|
152
170
|
pulumi.set(__self__, "notify_rules", notify_rules)
|
|
171
|
+
if notify_templates is not None:
|
|
172
|
+
pulumi.set(__self__, "notify_templates", notify_templates)
|
|
153
173
|
if status is not None:
|
|
154
174
|
pulumi.set(__self__, "status", status)
|
|
155
175
|
|
|
@@ -225,6 +245,18 @@ class _DispatchRuleState:
|
|
|
225
245
|
def notify_rules(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['DispatchRuleNotifyRuleArgs']]]]):
|
|
226
246
|
pulumi.set(self, "notify_rules", value)
|
|
227
247
|
|
|
248
|
+
@property
|
|
249
|
+
@pulumi.getter(name="notifyTemplates")
|
|
250
|
+
def notify_templates(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['DispatchRuleNotifyTemplateArgs']]]]:
|
|
251
|
+
"""
|
|
252
|
+
Sets the notification template. See `notify_template` below.
|
|
253
|
+
"""
|
|
254
|
+
return pulumi.get(self, "notify_templates")
|
|
255
|
+
|
|
256
|
+
@notify_templates.setter
|
|
257
|
+
def notify_templates(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['DispatchRuleNotifyTemplateArgs']]]]):
|
|
258
|
+
pulumi.set(self, "notify_templates", value)
|
|
259
|
+
|
|
228
260
|
@property
|
|
229
261
|
@pulumi.getter
|
|
230
262
|
def status(self) -> Optional[pulumi.Input[str]]:
|
|
@@ -249,6 +281,7 @@ class DispatchRule(pulumi.CustomResource):
|
|
|
249
281
|
is_recover: Optional[pulumi.Input[bool]] = None,
|
|
250
282
|
label_match_expression_grids: Optional[pulumi.Input[Sequence[pulumi.Input[Union['DispatchRuleLabelMatchExpressionGridArgs', 'DispatchRuleLabelMatchExpressionGridArgsDict']]]]] = None,
|
|
251
283
|
notify_rules: Optional[pulumi.Input[Sequence[pulumi.Input[Union['DispatchRuleNotifyRuleArgs', 'DispatchRuleNotifyRuleArgsDict']]]]] = None,
|
|
284
|
+
notify_templates: Optional[pulumi.Input[Sequence[pulumi.Input[Union['DispatchRuleNotifyTemplateArgs', 'DispatchRuleNotifyTemplateArgsDict']]]]] = None,
|
|
252
285
|
__props__=None):
|
|
253
286
|
"""
|
|
254
287
|
Provides a Application Real-Time Monitoring Service (ARMS) Alert Dispatch Rule resource.
|
|
@@ -308,6 +341,17 @@ class DispatchRule(pulumi.CustomResource):
|
|
|
308
341
|
],
|
|
309
342
|
"notify_start_time": "10:00",
|
|
310
343
|
"notify_end_time": "23:00",
|
|
344
|
+
}],
|
|
345
|
+
notify_templates=[{
|
|
346
|
+
"email_title": "example_email_title",
|
|
347
|
+
"email_content": "example_email_content",
|
|
348
|
+
"email_recover_title": "example_email_recover_title",
|
|
349
|
+
"email_recover_content": "example_email_recover_content",
|
|
350
|
+
"sms_content": "example_sms_content",
|
|
351
|
+
"sms_recover_content": "example_sms_recover_content",
|
|
352
|
+
"tts_content": "example_tts_content",
|
|
353
|
+
"tts_recover_content": "example_tts_recover_content",
|
|
354
|
+
"robot_content": "example_robot_content",
|
|
311
355
|
}])
|
|
312
356
|
```
|
|
313
357
|
|
|
@@ -327,6 +371,7 @@ class DispatchRule(pulumi.CustomResource):
|
|
|
327
371
|
:param pulumi.Input[bool] is_recover: Specifies whether to send the restored alert. Valid values: true: sends the alert. false: does not send the alert.
|
|
328
372
|
:param pulumi.Input[Sequence[pulumi.Input[Union['DispatchRuleLabelMatchExpressionGridArgs', 'DispatchRuleLabelMatchExpressionGridArgsDict']]]] label_match_expression_grids: Sets the dispatch rule. See `label_match_expression_grid` below.
|
|
329
373
|
:param pulumi.Input[Sequence[pulumi.Input[Union['DispatchRuleNotifyRuleArgs', 'DispatchRuleNotifyRuleArgsDict']]]] notify_rules: Sets the notification rule. See `notify_rules` below. It will be ignored when `dispatch_type = "DISCARD_ALERT"`.
|
|
374
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['DispatchRuleNotifyTemplateArgs', 'DispatchRuleNotifyTemplateArgsDict']]]] notify_templates: Sets the notification template. See `notify_template` below.
|
|
330
375
|
"""
|
|
331
376
|
...
|
|
332
377
|
@overload
|
|
@@ -392,6 +437,17 @@ class DispatchRule(pulumi.CustomResource):
|
|
|
392
437
|
],
|
|
393
438
|
"notify_start_time": "10:00",
|
|
394
439
|
"notify_end_time": "23:00",
|
|
440
|
+
}],
|
|
441
|
+
notify_templates=[{
|
|
442
|
+
"email_title": "example_email_title",
|
|
443
|
+
"email_content": "example_email_content",
|
|
444
|
+
"email_recover_title": "example_email_recover_title",
|
|
445
|
+
"email_recover_content": "example_email_recover_content",
|
|
446
|
+
"sms_content": "example_sms_content",
|
|
447
|
+
"sms_recover_content": "example_sms_recover_content",
|
|
448
|
+
"tts_content": "example_tts_content",
|
|
449
|
+
"tts_recover_content": "example_tts_recover_content",
|
|
450
|
+
"robot_content": "example_robot_content",
|
|
395
451
|
}])
|
|
396
452
|
```
|
|
397
453
|
|
|
@@ -424,6 +480,7 @@ class DispatchRule(pulumi.CustomResource):
|
|
|
424
480
|
is_recover: Optional[pulumi.Input[bool]] = None,
|
|
425
481
|
label_match_expression_grids: Optional[pulumi.Input[Sequence[pulumi.Input[Union['DispatchRuleLabelMatchExpressionGridArgs', 'DispatchRuleLabelMatchExpressionGridArgsDict']]]]] = None,
|
|
426
482
|
notify_rules: Optional[pulumi.Input[Sequence[pulumi.Input[Union['DispatchRuleNotifyRuleArgs', 'DispatchRuleNotifyRuleArgsDict']]]]] = None,
|
|
483
|
+
notify_templates: Optional[pulumi.Input[Sequence[pulumi.Input[Union['DispatchRuleNotifyTemplateArgs', 'DispatchRuleNotifyTemplateArgsDict']]]]] = None,
|
|
427
484
|
__props__=None):
|
|
428
485
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
429
486
|
if not isinstance(opts, pulumi.ResourceOptions):
|
|
@@ -447,6 +504,7 @@ class DispatchRule(pulumi.CustomResource):
|
|
|
447
504
|
if notify_rules is None and not opts.urn:
|
|
448
505
|
raise TypeError("Missing required property 'notify_rules'")
|
|
449
506
|
__props__.__dict__["notify_rules"] = notify_rules
|
|
507
|
+
__props__.__dict__["notify_templates"] = notify_templates
|
|
450
508
|
__props__.__dict__["status"] = None
|
|
451
509
|
super(DispatchRule, __self__).__init__(
|
|
452
510
|
'alicloud:arms/dispatchRule:DispatchRule',
|
|
@@ -464,6 +522,7 @@ class DispatchRule(pulumi.CustomResource):
|
|
|
464
522
|
is_recover: Optional[pulumi.Input[bool]] = None,
|
|
465
523
|
label_match_expression_grids: Optional[pulumi.Input[Sequence[pulumi.Input[Union['DispatchRuleLabelMatchExpressionGridArgs', 'DispatchRuleLabelMatchExpressionGridArgsDict']]]]] = None,
|
|
466
524
|
notify_rules: Optional[pulumi.Input[Sequence[pulumi.Input[Union['DispatchRuleNotifyRuleArgs', 'DispatchRuleNotifyRuleArgsDict']]]]] = None,
|
|
525
|
+
notify_templates: Optional[pulumi.Input[Sequence[pulumi.Input[Union['DispatchRuleNotifyTemplateArgs', 'DispatchRuleNotifyTemplateArgsDict']]]]] = None,
|
|
467
526
|
status: Optional[pulumi.Input[str]] = None) -> 'DispatchRule':
|
|
468
527
|
"""
|
|
469
528
|
Get an existing DispatchRule resource's state with the given name, id, and optional extra
|
|
@@ -478,6 +537,7 @@ class DispatchRule(pulumi.CustomResource):
|
|
|
478
537
|
:param pulumi.Input[bool] is_recover: Specifies whether to send the restored alert. Valid values: true: sends the alert. false: does not send the alert.
|
|
479
538
|
:param pulumi.Input[Sequence[pulumi.Input[Union['DispatchRuleLabelMatchExpressionGridArgs', 'DispatchRuleLabelMatchExpressionGridArgsDict']]]] label_match_expression_grids: Sets the dispatch rule. See `label_match_expression_grid` below.
|
|
480
539
|
:param pulumi.Input[Sequence[pulumi.Input[Union['DispatchRuleNotifyRuleArgs', 'DispatchRuleNotifyRuleArgsDict']]]] notify_rules: Sets the notification rule. See `notify_rules` below. It will be ignored when `dispatch_type = "DISCARD_ALERT"`.
|
|
540
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['DispatchRuleNotifyTemplateArgs', 'DispatchRuleNotifyTemplateArgsDict']]]] notify_templates: Sets the notification template. See `notify_template` below.
|
|
481
541
|
:param pulumi.Input[str] status: The resource status of Alert Dispatch Rule.
|
|
482
542
|
"""
|
|
483
543
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
@@ -490,6 +550,7 @@ class DispatchRule(pulumi.CustomResource):
|
|
|
490
550
|
__props__.__dict__["is_recover"] = is_recover
|
|
491
551
|
__props__.__dict__["label_match_expression_grids"] = label_match_expression_grids
|
|
492
552
|
__props__.__dict__["notify_rules"] = notify_rules
|
|
553
|
+
__props__.__dict__["notify_templates"] = notify_templates
|
|
493
554
|
__props__.__dict__["status"] = status
|
|
494
555
|
return DispatchRule(resource_name, opts=opts, __props__=__props__)
|
|
495
556
|
|
|
@@ -541,6 +602,14 @@ class DispatchRule(pulumi.CustomResource):
|
|
|
541
602
|
"""
|
|
542
603
|
return pulumi.get(self, "notify_rules")
|
|
543
604
|
|
|
605
|
+
@property
|
|
606
|
+
@pulumi.getter(name="notifyTemplates")
|
|
607
|
+
def notify_templates(self) -> pulumi.Output[Optional[Sequence['outputs.DispatchRuleNotifyTemplate']]]:
|
|
608
|
+
"""
|
|
609
|
+
Sets the notification template. See `notify_template` below.
|
|
610
|
+
"""
|
|
611
|
+
return pulumi.get(self, "notify_templates")
|
|
612
|
+
|
|
544
613
|
@property
|
|
545
614
|
@pulumi.getter
|
|
546
615
|
def status(self) -> pulumi.Output[str]:
|
|
@@ -185,7 +185,7 @@ def get_dispatch_rules(dispatch_rule_name: Optional[str] = None,
|
|
|
185
185
|
"notify_start_time": "10:00",
|
|
186
186
|
"notify_end_time": "23:00",
|
|
187
187
|
}])
|
|
188
|
-
ids = alicloud.arms.
|
|
188
|
+
ids = alicloud.arms.get_dispatch_rules_output(ids=[default_dispatch_rule.id])
|
|
189
189
|
pulumi.export("armsDispatchRuleId1", ids.rules[0].id)
|
|
190
190
|
```
|
|
191
191
|
|
|
@@ -277,7 +277,7 @@ def get_dispatch_rules_output(dispatch_rule_name: Optional[pulumi.Input[Optional
|
|
|
277
277
|
"notify_start_time": "10:00",
|
|
278
278
|
"notify_end_time": "23:00",
|
|
279
279
|
}])
|
|
280
|
-
ids = alicloud.arms.
|
|
280
|
+
ids = alicloud.arms.get_dispatch_rules_output(ids=[default_dispatch_rule.id])
|
|
281
281
|
pulumi.export("armsDispatchRuleId1", ids.rules[0].id)
|
|
282
282
|
```
|
|
283
283
|
|
|
@@ -146,7 +146,7 @@ def get_prometheis(enable_details: Optional[bool] = None,
|
|
|
146
146
|
|
|
147
147
|
> **NOTE:** Available since v1.203.0.
|
|
148
148
|
|
|
149
|
-
> **DEPRECATED:** This
|
|
149
|
+
> **DEPRECATED:** This data source has been renamed to arms.Prometheus from version 1.214.0.
|
|
150
150
|
|
|
151
151
|
## Example Usage
|
|
152
152
|
|
|
@@ -220,7 +220,7 @@ def get_prometheis_output(enable_details: Optional[pulumi.Input[Optional[bool]]]
|
|
|
220
220
|
|
|
221
221
|
> **NOTE:** Available since v1.203.0.
|
|
222
222
|
|
|
223
|
-
> **DEPRECATED:** This
|
|
223
|
+
> **DEPRECATED:** This data source has been renamed to arms.Prometheus from version 1.214.0.
|
|
224
224
|
|
|
225
225
|
## Example Usage
|
|
226
226
|
|
|
@@ -123,7 +123,7 @@ def get_remote_writes(cluster_id: Optional[str] = None,
|
|
|
123
123
|
|
|
124
124
|
> **NOTE:** Available since v1.204.0.
|
|
125
125
|
|
|
126
|
-
> **DEPRECATED:** This
|
|
126
|
+
> **DEPRECATED:** This data source has been deprecated since v1.228.0.
|
|
127
127
|
|
|
128
128
|
## Example Usage
|
|
129
129
|
|
|
@@ -173,7 +173,7 @@ def get_remote_writes_output(cluster_id: Optional[pulumi.Input[str]] = None,
|
|
|
173
173
|
|
|
174
174
|
> **NOTE:** Available since v1.204.0.
|
|
175
175
|
|
|
176
|
-
> **DEPRECATED:** This
|
|
176
|
+
> **DEPRECATED:** This data source has been deprecated since v1.228.0.
|
|
177
177
|
|
|
178
178
|
## Example Usage
|
|
179
179
|
|