pulumi-alicloud 3.88.0a1761888283__py3-none-any.whl → 3.88.0a1761969289__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.

Files changed (66) hide show
  1. pulumi_alicloud/__init__.py +59 -0
  2. pulumi_alicloud/cfg/_inputs.py +27 -24
  3. pulumi_alicloud/cfg/aggregator.py +142 -53
  4. pulumi_alicloud/cfg/outputs.py +18 -15
  5. pulumi_alicloud/cloudfirewall/__init__.py +1 -0
  6. pulumi_alicloud/cloudfirewall/get_tls_inspect_ca_certificates.py +214 -0
  7. pulumi_alicloud/cloudfirewall/outputs.py +30 -0
  8. pulumi_alicloud/cms/_inputs.py +870 -10
  9. pulumi_alicloud/cms/get_site_monitors.py +2 -2
  10. pulumi_alicloud/cms/outputs.py +606 -6
  11. pulumi_alicloud/cms/site_monitor.py +360 -89
  12. pulumi_alicloud/cr/registry_enterprise_instance.py +63 -0
  13. pulumi_alicloud/dts/instance.py +14 -14
  14. pulumi_alicloud/eci/container_group.py +47 -0
  15. pulumi_alicloud/ecs/security_group_rule.py +7 -7
  16. pulumi_alicloud/ens/load_balancer.py +8 -4
  17. pulumi_alicloud/esa/__init__.py +1 -0
  18. pulumi_alicloud/esa/_inputs.py +611 -0
  19. pulumi_alicloud/esa/cache_rule.py +47 -0
  20. pulumi_alicloud/esa/certificate.py +21 -54
  21. pulumi_alicloud/esa/compression_rule.py +47 -0
  22. pulumi_alicloud/esa/load_balancer.py +999 -0
  23. pulumi_alicloud/esa/outputs.py +469 -0
  24. pulumi_alicloud/eventbridge/event_source.py +57 -57
  25. pulumi_alicloud/ga/_inputs.py +56 -16
  26. pulumi_alicloud/ga/outputs.py +39 -11
  27. pulumi_alicloud/lindorm/instance_v2.py +358 -70
  28. pulumi_alicloud/oss/_inputs.py +53 -0
  29. pulumi_alicloud/oss/bucket_logging.py +80 -29
  30. pulumi_alicloud/oss/bucket_replication.py +55 -8
  31. pulumi_alicloud/oss/outputs.py +31 -0
  32. pulumi_alicloud/polardb/__init__.py +2 -0
  33. pulumi_alicloud/polardb/cluster.py +14 -14
  34. pulumi_alicloud/polardb/zonal_account.py +449 -0
  35. pulumi_alicloud/polardb/zonal_db_cluster.py +2 -2
  36. pulumi_alicloud/polardb/zonal_endpoint.py +865 -0
  37. pulumi_alicloud/pulumi-plugin.json +1 -1
  38. pulumi_alicloud/ram/policy.py +2 -2
  39. pulumi_alicloud/resourcemanager/__init__.py +2 -0
  40. pulumi_alicloud/resourcemanager/_inputs.py +745 -0
  41. pulumi_alicloud/resourcemanager/delivery_channel.py +449 -0
  42. pulumi_alicloud/resourcemanager/multi_account_delivery_channel.py +470 -0
  43. pulumi_alicloud/resourcemanager/outputs.py +643 -0
  44. pulumi_alicloud/sae/_inputs.py +60 -0
  45. pulumi_alicloud/sae/application.py +1 -1
  46. pulumi_alicloud/sae/outputs.py +42 -0
  47. pulumi_alicloud/sls/__init__.py +1 -0
  48. pulumi_alicloud/sls/get_indexs.py +304 -0
  49. pulumi_alicloud/sls/outputs.py +148 -0
  50. pulumi_alicloud/star_rocks_instance.py +8 -2
  51. pulumi_alicloud/starrocks/__init__.py +12 -0
  52. pulumi_alicloud/starrocks/_inputs.py +656 -0
  53. pulumi_alicloud/starrocks/instance.py +1427 -0
  54. pulumi_alicloud/starrocks/node_group.py +1298 -0
  55. pulumi_alicloud/starrocks/outputs.py +508 -0
  56. pulumi_alicloud/vpc/_inputs.py +84 -0
  57. pulumi_alicloud/vpc/gateway_endpoint.py +8 -8
  58. pulumi_alicloud/vpc/network_acl_entries.py +16 -20
  59. pulumi_alicloud/vpc/outputs.py +48 -0
  60. pulumi_alicloud/wafv3/_inputs.py +396 -0
  61. pulumi_alicloud/wafv3/defense_rule.py +40 -110
  62. pulumi_alicloud/wafv3/outputs.py +303 -0
  63. {pulumi_alicloud-3.88.0a1761888283.dist-info → pulumi_alicloud-3.88.0a1761969289.dist-info}/METADATA +1 -1
  64. {pulumi_alicloud-3.88.0a1761888283.dist-info → pulumi_alicloud-3.88.0a1761969289.dist-info}/RECORD +66 -54
  65. {pulumi_alicloud-3.88.0a1761888283.dist-info → pulumi_alicloud-3.88.0a1761969289.dist-info}/WHEEL +0 -0
  66. {pulumi_alicloud-3.88.0a1761888283.dist-info → pulumi_alicloud-3.88.0a1761969289.dist-info}/top_level.txt +0 -0
@@ -396,79 +396,44 @@ class DefenseRule(pulumi.CustomResource):
396
396
  config = pulumi.Config()
397
397
  name = config.get("name")
398
398
  if name is None:
399
- name = "tfaccwafv310619"
399
+ name = "tfexample"
400
400
  region_id = config.get("regionId")
401
401
  if region_id is None:
402
402
  region_id = "cn-hangzhou"
403
+ domain = config.get("domain")
404
+ if domain is None:
405
+ domain = "example.wafqax.top"
403
406
  default = alicloud.wafv3.get_instances()
404
- default_domain = alicloud.wafv3.Domain("default",
405
- instance_id=default.ids[0],
406
- listen={
407
- "protection_resource": "share",
408
- "http_ports": [
409
- 81,
410
- 82,
411
- 83,
412
- ],
413
- "https_ports": [],
414
- "xff_header_mode": 2,
415
- "xff_headers": [
416
- "examplea",
417
- "exampleb",
418
- "examplec",
419
- ],
420
- "custom_ciphers": [],
421
- "ipv6_enabled": True,
422
- },
407
+ default_icm_rhk = alicloud.wafv3.Domain("defaultICMRhk",
423
408
  redirect={
424
- "keepalive_timeout": 15,
425
- "backends": [
426
- "1.1.1.1",
427
- "3.3.3.3",
428
- "2.2.2.2",
429
- ],
430
- "write_timeout": 5,
431
- "keepalive_requests": 1000,
432
- "request_headers": [
433
- {
434
- "key": "examplekey1",
435
- "value": "exampleValue1",
436
- },
437
- {
438
- "key": "key1",
439
- "value": "value1",
440
- },
441
- {
442
- "key": "key22",
443
- "value": "value22",
444
- },
445
- ],
446
409
  "loadbalance": "iphash",
447
- "focus_http_backend": False,
448
- "sni_enabled": False,
410
+ "backends": ["39.98.217.197"],
449
411
  "connect_timeout": 5,
450
- "read_timeout": 5,
451
- "keepalive": True,
452
- "retry": True,
412
+ "read_timeout": 120,
413
+ "write_timeout": 120,
453
414
  },
454
- domain="zcexample_250746.wafqax.top",
455
- access_type="share")
415
+ domain="example.wafqax.top",
416
+ access_type="share",
417
+ instance_id=default.ids[0],
418
+ listen={
419
+ "http_ports": [80],
420
+ })
456
421
  default_defense_rule = alicloud.wafv3.DefenseRule("default",
422
+ defense_type="resource",
423
+ defense_scene="account_identifier",
424
+ rule_status=1,
425
+ resource=default_icm_rhk.domain_id,
457
426
  defense_origin="custom",
458
427
  config={
459
428
  "account_identifiers": [{
429
+ "position": "jwt",
460
430
  "priority": 2,
461
431
  "decode_type": "jwt",
462
432
  "key": "Query-Arg",
463
433
  "sub_key": "adb",
464
- "position": "jwt",
465
434
  }],
466
435
  },
467
- instance_id=default.ids[0],
468
- defense_type="resource",
469
- defense_scene="account_identifier",
470
- rule_status=1,
471
- resource=default_domain.domain_id)
436
+ instance_id=default.ids[0])
472
437
  ```
473
438
 
474
439
  ## Import
@@ -522,79 +487,44 @@ class DefenseRule(pulumi.CustomResource):
522
487
  config = pulumi.Config()
523
488
  name = config.get("name")
524
489
  if name is None:
525
- name = "tfaccwafv310619"
490
+ name = "tfexample"
526
491
  region_id = config.get("regionId")
527
492
  if region_id is None:
528
493
  region_id = "cn-hangzhou"
494
+ domain = config.get("domain")
495
+ if domain is None:
496
+ domain = "example.wafqax.top"
529
497
  default = alicloud.wafv3.get_instances()
530
- default_domain = alicloud.wafv3.Domain("default",
531
- instance_id=default.ids[0],
532
- listen={
533
- "protection_resource": "share",
534
- "http_ports": [
535
- 81,
536
- 82,
537
- 83,
538
- ],
539
- "https_ports": [],
540
- "xff_header_mode": 2,
541
- "xff_headers": [
542
- "examplea",
543
- "exampleb",
544
- "examplec",
545
- ],
546
- "custom_ciphers": [],
547
- "ipv6_enabled": True,
548
- },
498
+ default_icm_rhk = alicloud.wafv3.Domain("defaultICMRhk",
549
499
  redirect={
550
- "keepalive_timeout": 15,
551
- "backends": [
552
- "1.1.1.1",
553
- "3.3.3.3",
554
- "2.2.2.2",
555
- ],
556
- "write_timeout": 5,
557
- "keepalive_requests": 1000,
558
- "request_headers": [
559
- {
560
- "key": "examplekey1",
561
- "value": "exampleValue1",
562
- },
563
- {
564
- "key": "key1",
565
- "value": "value1",
566
- },
567
- {
568
- "key": "key22",
569
- "value": "value22",
570
- },
571
- ],
572
500
  "loadbalance": "iphash",
573
- "focus_http_backend": False,
574
- "sni_enabled": False,
501
+ "backends": ["39.98.217.197"],
575
502
  "connect_timeout": 5,
576
- "read_timeout": 5,
577
- "keepalive": True,
578
- "retry": True,
503
+ "read_timeout": 120,
504
+ "write_timeout": 120,
579
505
  },
580
- domain="zcexample_250746.wafqax.top",
581
- access_type="share")
506
+ domain="example.wafqax.top",
507
+ access_type="share",
508
+ instance_id=default.ids[0],
509
+ listen={
510
+ "http_ports": [80],
511
+ })
582
512
  default_defense_rule = alicloud.wafv3.DefenseRule("default",
513
+ defense_type="resource",
514
+ defense_scene="account_identifier",
515
+ rule_status=1,
516
+ resource=default_icm_rhk.domain_id,
583
517
  defense_origin="custom",
584
518
  config={
585
519
  "account_identifiers": [{
520
+ "position": "jwt",
586
521
  "priority": 2,
587
522
  "decode_type": "jwt",
588
523
  "key": "Query-Arg",
589
524
  "sub_key": "adb",
590
- "position": "jwt",
591
525
  }],
592
526
  },
593
- instance_id=default.ids[0],
594
- defense_type="resource",
595
- defense_scene="account_identifier",
596
- rule_status=1,
597
- resource=default_domain.domain_id)
527
+ instance_id=default.ids[0])
598
528
  ```
599
529
 
600
530
  ## Import
@@ -19,8 +19,13 @@ __all__ = [
19
19
  'DefenseRuleConfig',
20
20
  'DefenseRuleConfigAccountIdentifier',
21
21
  'DefenseRuleConfigCondition',
22
+ 'DefenseRuleConfigGrayConfig',
22
23
  'DefenseRuleConfigRateLimit',
23
24
  'DefenseRuleConfigRateLimitStatus',
25
+ 'DefenseRuleConfigTimeConfig',
26
+ 'DefenseRuleConfigTimeConfigTimePeriod',
27
+ 'DefenseRuleConfigTimeConfigWeekTimePeriod',
28
+ 'DefenseRuleConfigTimeConfigWeekTimePeriodDayPeriod',
24
29
  'DomainListen',
25
30
  'DomainRedirect',
26
31
  'DomainRedirectRequestHeader',
@@ -52,6 +57,10 @@ class DefenseRuleConfig(dict):
52
57
  suggest = "cc_status"
53
58
  elif key == "cnRegions":
54
59
  suggest = "cn_regions"
60
+ elif key == "grayConfig":
61
+ suggest = "gray_config"
62
+ elif key == "grayStatus":
63
+ suggest = "gray_status"
55
64
  elif key == "rateLimit":
56
65
  suggest = "rate_limit"
57
66
  elif key == "remoteAddrs":
@@ -62,6 +71,8 @@ class DefenseRuleConfig(dict):
62
71
  suggest = "throttle_threhold"
63
72
  elif key == "throttleType":
64
73
  suggest = "throttle_type"
74
+ elif key == "timeConfig":
75
+ suggest = "time_config"
65
76
 
66
77
  if suggest:
67
78
  pulumi.log.warn(f"Key '{key}' not found in DefenseRuleConfig. Access the value via the '{suggest}' property getter instead.")
@@ -84,6 +95,8 @@ class DefenseRuleConfig(dict):
84
95
  cc_status: Optional[_builtins.int] = None,
85
96
  cn_regions: Optional[_builtins.str] = None,
86
97
  conditions: Optional[Sequence['outputs.DefenseRuleConfigCondition']] = None,
98
+ gray_config: Optional['outputs.DefenseRuleConfigGrayConfig'] = None,
99
+ gray_status: Optional[_builtins.int] = None,
87
100
  mode: Optional[_builtins.int] = None,
88
101
  protocol: Optional[_builtins.str] = None,
89
102
  rate_limit: Optional['outputs.DefenseRuleConfigRateLimit'] = None,
@@ -91,6 +104,7 @@ class DefenseRuleConfig(dict):
91
104
  rule_action: Optional[_builtins.str] = None,
92
105
  throttle_threhold: Optional[_builtins.int] = None,
93
106
  throttle_type: Optional[_builtins.str] = None,
107
+ time_config: Optional['outputs.DefenseRuleConfigTimeConfig'] = None,
94
108
  ua: Optional[_builtins.str] = None,
95
109
  url: Optional[_builtins.str] = None):
96
110
  """
@@ -144,6 +158,10 @@ class DefenseRuleConfig(dict):
144
158
  - 1: Indicates that the speed limit is on.
145
159
  :param _builtins.str cn_regions: The regions in China from which you want to block requests. If you specify "CN", requests from the Chinese mainland (excluding Hong Kong, Macao, and Taiwan) are blocked. Separate multiple regions with commas (,). For more information about region codes, see Description of region codes in China.
146
160
  :param Sequence['DefenseRuleConfigConditionArgs'] conditions: The traffic characteristics of ACL, which are described in JSON format. You can enter up to five matching conditions. For specific configuration information, see detailed configuration of conditions. See `conditions` below.
161
+ :param 'DefenseRuleConfigGrayConfigArgs' gray_config: The canary release configuration for the rule. The value is a JSON. This parameter is required only when you set `GrayStatus` to 1. See `gray_config` below.
162
+ :param _builtins.int gray_status: Specifies whether to enable canary release for the rule. Valid values:
163
+ - 0 (default): disables canary release.
164
+ - 1: enables canary release.
147
165
  :param _builtins.int mode: The HTTP flood protection mode. Valid values:
148
166
  - 0 (default): indicates normal protection.
149
167
  - 1: indicates emergency protection.
@@ -165,6 +183,7 @@ class DefenseRuleConfig(dict):
165
183
  :param _builtins.str throttle_type: The throttling method. Valid values:
166
184
  - qps: indicates throttling based on queries per second (QPS).
167
185
  - ratio (default): indicates throttling based on percentage.
186
+ :param 'DefenseRuleConfigTimeConfigArgs' time_config: The scheduled rule configuration. The value is a JSON. See `time_config` below.
168
187
  :param _builtins.str ua: The User-Agent string that is allowed for access to the address.
169
188
  :param _builtins.str url: The address of the cached page.
170
189
  """
@@ -186,6 +205,10 @@ class DefenseRuleConfig(dict):
186
205
  pulumi.set(__self__, "cn_regions", cn_regions)
187
206
  if conditions is not None:
188
207
  pulumi.set(__self__, "conditions", conditions)
208
+ if gray_config is not None:
209
+ pulumi.set(__self__, "gray_config", gray_config)
210
+ if gray_status is not None:
211
+ pulumi.set(__self__, "gray_status", gray_status)
189
212
  if mode is not None:
190
213
  pulumi.set(__self__, "mode", mode)
191
214
  if protocol is not None:
@@ -200,6 +223,8 @@ class DefenseRuleConfig(dict):
200
223
  pulumi.set(__self__, "throttle_threhold", throttle_threhold)
201
224
  if throttle_type is not None:
202
225
  pulumi.set(__self__, "throttle_type", throttle_type)
226
+ if time_config is not None:
227
+ pulumi.set(__self__, "time_config", time_config)
203
228
  if ua is not None:
204
229
  pulumi.set(__self__, "ua", ua)
205
230
  if url is not None:
@@ -318,6 +343,24 @@ class DefenseRuleConfig(dict):
318
343
  """
319
344
  return pulumi.get(self, "conditions")
320
345
 
346
+ @_builtins.property
347
+ @pulumi.getter(name="grayConfig")
348
+ def gray_config(self) -> Optional['outputs.DefenseRuleConfigGrayConfig']:
349
+ """
350
+ The canary release configuration for the rule. The value is a JSON. This parameter is required only when you set `GrayStatus` to 1. See `gray_config` below.
351
+ """
352
+ return pulumi.get(self, "gray_config")
353
+
354
+ @_builtins.property
355
+ @pulumi.getter(name="grayStatus")
356
+ def gray_status(self) -> Optional[_builtins.int]:
357
+ """
358
+ Specifies whether to enable canary release for the rule. Valid values:
359
+ - 0 (default): disables canary release.
360
+ - 1: enables canary release.
361
+ """
362
+ return pulumi.get(self, "gray_status")
363
+
321
364
  @_builtins.property
322
365
  @pulumi.getter
323
366
  def mode(self) -> Optional[_builtins.int]:
@@ -388,6 +431,14 @@ class DefenseRuleConfig(dict):
388
431
  """
389
432
  return pulumi.get(self, "throttle_type")
390
433
 
434
+ @_builtins.property
435
+ @pulumi.getter(name="timeConfig")
436
+ def time_config(self) -> Optional['outputs.DefenseRuleConfigTimeConfig']:
437
+ """
438
+ The scheduled rule configuration. The value is a JSON. See `time_config` below.
439
+ """
440
+ return pulumi.get(self, "time_config")
441
+
391
442
  @_builtins.property
392
443
  @pulumi.getter
393
444
  def ua(self) -> Optional[_builtins.str]:
@@ -635,6 +686,70 @@ class DefenseRuleConfigCondition(dict):
635
686
  return pulumi.get(self, "values")
636
687
 
637
688
 
689
+ @pulumi.output_type
690
+ class DefenseRuleConfigGrayConfig(dict):
691
+ @staticmethod
692
+ def __key_warning(key: str):
693
+ suggest = None
694
+ if key == "grayRate":
695
+ suggest = "gray_rate"
696
+ elif key == "graySubKey":
697
+ suggest = "gray_sub_key"
698
+ elif key == "grayTarget":
699
+ suggest = "gray_target"
700
+
701
+ if suggest:
702
+ pulumi.log.warn(f"Key '{key}' not found in DefenseRuleConfigGrayConfig. Access the value via the '{suggest}' property getter instead.")
703
+
704
+ def __getitem__(self, key: str) -> Any:
705
+ DefenseRuleConfigGrayConfig.__key_warning(key)
706
+ return super().__getitem__(key)
707
+
708
+ def get(self, key: str, default = None) -> Any:
709
+ DefenseRuleConfigGrayConfig.__key_warning(key)
710
+ return super().get(key, default)
711
+
712
+ def __init__(__self__, *,
713
+ gray_rate: Optional[_builtins.int] = None,
714
+ gray_sub_key: Optional[_builtins.str] = None,
715
+ gray_target: Optional[_builtins.str] = None):
716
+ """
717
+ :param _builtins.int gray_rate: The percentage of traffic for which the canary release takes effect. The value must be in the range of 1 to 100.
718
+ :param _builtins.str gray_sub_key: The sub-feature of the statistical object. This parameter is required when you set the `GrayTarget` parameter to `cookie`, `header`, or `queryarg`.
719
+ :param _builtins.str gray_target: The type of the canary release object. Valid values:
720
+ """
721
+ if gray_rate is not None:
722
+ pulumi.set(__self__, "gray_rate", gray_rate)
723
+ if gray_sub_key is not None:
724
+ pulumi.set(__self__, "gray_sub_key", gray_sub_key)
725
+ if gray_target is not None:
726
+ pulumi.set(__self__, "gray_target", gray_target)
727
+
728
+ @_builtins.property
729
+ @pulumi.getter(name="grayRate")
730
+ def gray_rate(self) -> Optional[_builtins.int]:
731
+ """
732
+ The percentage of traffic for which the canary release takes effect. The value must be in the range of 1 to 100.
733
+ """
734
+ return pulumi.get(self, "gray_rate")
735
+
736
+ @_builtins.property
737
+ @pulumi.getter(name="graySubKey")
738
+ def gray_sub_key(self) -> Optional[_builtins.str]:
739
+ """
740
+ The sub-feature of the statistical object. This parameter is required when you set the `GrayTarget` parameter to `cookie`, `header`, or `queryarg`.
741
+ """
742
+ return pulumi.get(self, "gray_sub_key")
743
+
744
+ @_builtins.property
745
+ @pulumi.getter(name="grayTarget")
746
+ def gray_target(self) -> Optional[_builtins.str]:
747
+ """
748
+ The type of the canary release object. Valid values:
749
+ """
750
+ return pulumi.get(self, "gray_target")
751
+
752
+
638
753
  @pulumi.output_type
639
754
  class DefenseRuleConfigRateLimit(dict):
640
755
  @staticmethod
@@ -788,6 +903,194 @@ class DefenseRuleConfigRateLimitStatus(dict):
788
903
  return pulumi.get(self, "ratio")
789
904
 
790
905
 
906
+ @pulumi.output_type
907
+ class DefenseRuleConfigTimeConfig(dict):
908
+ @staticmethod
909
+ def __key_warning(key: str):
910
+ suggest = None
911
+ if key == "timePeriods":
912
+ suggest = "time_periods"
913
+ elif key == "timeScope":
914
+ suggest = "time_scope"
915
+ elif key == "timeZone":
916
+ suggest = "time_zone"
917
+ elif key == "weekTimePeriods":
918
+ suggest = "week_time_periods"
919
+
920
+ if suggest:
921
+ pulumi.log.warn(f"Key '{key}' not found in DefenseRuleConfigTimeConfig. Access the value via the '{suggest}' property getter instead.")
922
+
923
+ def __getitem__(self, key: str) -> Any:
924
+ DefenseRuleConfigTimeConfig.__key_warning(key)
925
+ return super().__getitem__(key)
926
+
927
+ def get(self, key: str, default = None) -> Any:
928
+ DefenseRuleConfigTimeConfig.__key_warning(key)
929
+ return super().get(key, default)
930
+
931
+ def __init__(__self__, *,
932
+ time_periods: Optional[Sequence['outputs.DefenseRuleConfigTimeConfigTimePeriod']] = None,
933
+ time_scope: Optional[_builtins.str] = None,
934
+ time_zone: Optional[_builtins.int] = None,
935
+ week_time_periods: Optional[Sequence['outputs.DefenseRuleConfigTimeConfigWeekTimePeriod']] = None):
936
+ """
937
+ :param Sequence['DefenseRuleConfigTimeConfigTimePeriodArgs'] time_periods: The time period during which the rule is effective. This parameter is required when you set the `TimeScope` parameter to `period`. A maximum of five time periods can be set. See `time_periods` below.
938
+ :param _builtins.str time_scope: The effective period of the rule. Valid values:
939
+ :param _builtins.int time_zone: The time zone in which the rule is effective. The default value is `8`. The value must be in the range of - 12 to 12. `0` indicates UTC. `8` indicates UTC+8. **-8** indicates UTC-8.
940
+ :param Sequence['DefenseRuleConfigTimeConfigWeekTimePeriodArgs'] week_time_periods: The periodic time period during which the rule is effective. This parameter is required when you set the `TimeScope` parameter to `cycle`. A maximum of five time periods can be set. See `week_time_periods` below.
941
+ """
942
+ if time_periods is not None:
943
+ pulumi.set(__self__, "time_periods", time_periods)
944
+ if time_scope is not None:
945
+ pulumi.set(__self__, "time_scope", time_scope)
946
+ if time_zone is not None:
947
+ pulumi.set(__self__, "time_zone", time_zone)
948
+ if week_time_periods is not None:
949
+ pulumi.set(__self__, "week_time_periods", week_time_periods)
950
+
951
+ @_builtins.property
952
+ @pulumi.getter(name="timePeriods")
953
+ def time_periods(self) -> Optional[Sequence['outputs.DefenseRuleConfigTimeConfigTimePeriod']]:
954
+ """
955
+ The time period during which the rule is effective. This parameter is required when you set the `TimeScope` parameter to `period`. A maximum of five time periods can be set. See `time_periods` below.
956
+ """
957
+ return pulumi.get(self, "time_periods")
958
+
959
+ @_builtins.property
960
+ @pulumi.getter(name="timeScope")
961
+ def time_scope(self) -> Optional[_builtins.str]:
962
+ """
963
+ The effective period of the rule. Valid values:
964
+ """
965
+ return pulumi.get(self, "time_scope")
966
+
967
+ @_builtins.property
968
+ @pulumi.getter(name="timeZone")
969
+ def time_zone(self) -> Optional[_builtins.int]:
970
+ """
971
+ The time zone in which the rule is effective. The default value is `8`. The value must be in the range of - 12 to 12. `0` indicates UTC. `8` indicates UTC+8. **-8** indicates UTC-8.
972
+ """
973
+ return pulumi.get(self, "time_zone")
974
+
975
+ @_builtins.property
976
+ @pulumi.getter(name="weekTimePeriods")
977
+ def week_time_periods(self) -> Optional[Sequence['outputs.DefenseRuleConfigTimeConfigWeekTimePeriod']]:
978
+ """
979
+ The periodic time period during which the rule is effective. This parameter is required when you set the `TimeScope` parameter to `cycle`. A maximum of five time periods can be set. See `week_time_periods` below.
980
+ """
981
+ return pulumi.get(self, "week_time_periods")
982
+
983
+
984
+ @pulumi.output_type
985
+ class DefenseRuleConfigTimeConfigTimePeriod(dict):
986
+ def __init__(__self__, *,
987
+ end: Optional[_builtins.int] = None,
988
+ start: Optional[_builtins.int] = None):
989
+ """
990
+ :param _builtins.int end: The end time of each day when the rule is effective. This is a millisecond-level timestamp relative to 00:00 of the day. The value must be in the range of 0-86400000).
991
+ :param _builtins.int start: The start time of each day when the rule is effective. This is a millisecond-level timestamp relative to 00:00 of the day. The value must be in the range of [0-86400000).
992
+ """
993
+ if end is not None:
994
+ pulumi.set(__self__, "end", end)
995
+ if start is not None:
996
+ pulumi.set(__self__, "start", start)
997
+
998
+ @_builtins.property
999
+ @pulumi.getter
1000
+ def end(self) -> Optional[_builtins.int]:
1001
+ """
1002
+ The end time of each day when the rule is effective. This is a millisecond-level timestamp relative to 00:00 of the day. The value must be in the range of 0-86400000).
1003
+ """
1004
+ return pulumi.get(self, "end")
1005
+
1006
+ @_builtins.property
1007
+ @pulumi.getter
1008
+ def start(self) -> Optional[_builtins.int]:
1009
+ """
1010
+ The start time of each day when the rule is effective. This is a millisecond-level timestamp relative to 00:00 of the day. The value must be in the range of [0-86400000).
1011
+ """
1012
+ return pulumi.get(self, "start")
1013
+
1014
+
1015
+ @pulumi.output_type
1016
+ class DefenseRuleConfigTimeConfigWeekTimePeriod(dict):
1017
+ @staticmethod
1018
+ def __key_warning(key: str):
1019
+ suggest = None
1020
+ if key == "dayPeriods":
1021
+ suggest = "day_periods"
1022
+
1023
+ if suggest:
1024
+ pulumi.log.warn(f"Key '{key}' not found in DefenseRuleConfigTimeConfigWeekTimePeriod. Access the value via the '{suggest}' property getter instead.")
1025
+
1026
+ def __getitem__(self, key: str) -> Any:
1027
+ DefenseRuleConfigTimeConfigWeekTimePeriod.__key_warning(key)
1028
+ return super().__getitem__(key)
1029
+
1030
+ def get(self, key: str, default = None) -> Any:
1031
+ DefenseRuleConfigTimeConfigWeekTimePeriod.__key_warning(key)
1032
+ return super().get(key, default)
1033
+
1034
+ def __init__(__self__, *,
1035
+ day: Optional[_builtins.str] = None,
1036
+ day_periods: Optional[Sequence['outputs.DefenseRuleConfigTimeConfigWeekTimePeriodDayPeriod']] = None):
1037
+ """
1038
+ :param _builtins.str day: The time period of each day when the rule is effective. It includes the start time start and end time end. You can specify multiple time periods.
1039
+ :param Sequence['DefenseRuleConfigTimeConfigWeekTimePeriodDayPeriodArgs'] day_periods: The time period of each day when the rule is effective. See `day_periods` below.
1040
+ """
1041
+ if day is not None:
1042
+ pulumi.set(__self__, "day", day)
1043
+ if day_periods is not None:
1044
+ pulumi.set(__self__, "day_periods", day_periods)
1045
+
1046
+ @_builtins.property
1047
+ @pulumi.getter
1048
+ def day(self) -> Optional[_builtins.str]:
1049
+ """
1050
+ The time period of each day when the rule is effective. It includes the start time start and end time end. You can specify multiple time periods.
1051
+ """
1052
+ return pulumi.get(self, "day")
1053
+
1054
+ @_builtins.property
1055
+ @pulumi.getter(name="dayPeriods")
1056
+ def day_periods(self) -> Optional[Sequence['outputs.DefenseRuleConfigTimeConfigWeekTimePeriodDayPeriod']]:
1057
+ """
1058
+ The time period of each day when the rule is effective. See `day_periods` below.
1059
+ """
1060
+ return pulumi.get(self, "day_periods")
1061
+
1062
+
1063
+ @pulumi.output_type
1064
+ class DefenseRuleConfigTimeConfigWeekTimePeriodDayPeriod(dict):
1065
+ def __init__(__self__, *,
1066
+ end: Optional[_builtins.int] = None,
1067
+ start: Optional[_builtins.int] = None):
1068
+ """
1069
+ :param _builtins.int end: The end time of each day when the rule is effective. This is a millisecond-level timestamp relative to 00:00 of the day. The value must be in the range of 0-86400000).
1070
+ :param _builtins.int start: The start time of each day when the rule is effective. This is a millisecond-level timestamp relative to 00:00 of the day. The value must be in the range of [0-86400000).
1071
+ """
1072
+ if end is not None:
1073
+ pulumi.set(__self__, "end", end)
1074
+ if start is not None:
1075
+ pulumi.set(__self__, "start", start)
1076
+
1077
+ @_builtins.property
1078
+ @pulumi.getter
1079
+ def end(self) -> Optional[_builtins.int]:
1080
+ """
1081
+ The end time of each day when the rule is effective. This is a millisecond-level timestamp relative to 00:00 of the day. The value must be in the range of 0-86400000).
1082
+ """
1083
+ return pulumi.get(self, "end")
1084
+
1085
+ @_builtins.property
1086
+ @pulumi.getter
1087
+ def start(self) -> Optional[_builtins.int]:
1088
+ """
1089
+ The start time of each day when the rule is effective. This is a millisecond-level timestamp relative to 00:00 of the day. The value must be in the range of [0-86400000).
1090
+ """
1091
+ return pulumi.get(self, "start")
1092
+
1093
+
791
1094
  @pulumi.output_type
792
1095
  class DomainListen(dict):
793
1096
  @staticmethod
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pulumi_alicloud
3
- Version: 3.88.0a1761888283
3
+ Version: 3.88.0a1761969289
4
4
  Summary: A Pulumi package for creating and managing AliCloud resources.
5
5
  License: Apache-2.0
6
6
  Project-URL: Homepage, https://pulumi.io