pulumi-alicloud 3.88.0a1761582647__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.0a1761582647.dist-info → pulumi_alicloud-3.88.0a1761969289.dist-info}/METADATA +1 -1
  64. {pulumi_alicloud-3.88.0a1761582647.dist-info → pulumi_alicloud-3.88.0a1761969289.dist-info}/RECORD +66 -54
  65. {pulumi_alicloud-3.88.0a1761582647.dist-info → pulumi_alicloud-3.88.0a1761969289.dist-info}/WHEEL +0 -0
  66. {pulumi_alicloud-3.88.0a1761582647.dist-info → pulumi_alicloud-3.88.0a1761969289.dist-info}/top_level.txt +0 -0
@@ -367,6 +367,10 @@ if not MYPY:
367
367
  """
368
368
  Execute. See `exec` below.
369
369
  """
370
+ failure_threshold: NotRequired[pulumi.Input[_builtins.int]]
371
+ """
372
+ The number of consecutive failures required before considering the container as unhealthy. Increasing this value makes the container more tolerant to transient failures.
373
+ """
370
374
  http_get: NotRequired[pulumi.Input['ApplicationLivenessV2HttpGetArgsDict']]
371
375
  """
372
376
  The liveness check settings of the container. See `http_get` below.
@@ -394,6 +398,7 @@ elif False:
394
398
  class ApplicationLivenessV2Args:
395
399
  def __init__(__self__, *,
396
400
  exec_: Optional[pulumi.Input['ApplicationLivenessV2ExecArgs']] = None,
401
+ failure_threshold: Optional[pulumi.Input[_builtins.int]] = None,
397
402
  http_get: Optional[pulumi.Input['ApplicationLivenessV2HttpGetArgs']] = None,
398
403
  initial_delay_seconds: Optional[pulumi.Input[_builtins.int]] = None,
399
404
  period_seconds: Optional[pulumi.Input[_builtins.int]] = None,
@@ -401,6 +406,7 @@ class ApplicationLivenessV2Args:
401
406
  timeout_seconds: Optional[pulumi.Input[_builtins.int]] = None):
402
407
  """
403
408
  :param pulumi.Input['ApplicationLivenessV2ExecArgs'] exec_: Execute. See `exec` below.
409
+ :param pulumi.Input[_builtins.int] failure_threshold: The number of consecutive failures required before considering the container as unhealthy. Increasing this value makes the container more tolerant to transient failures.
404
410
  :param pulumi.Input['ApplicationLivenessV2HttpGetArgs'] http_get: The liveness check settings of the container. See `http_get` below.
405
411
  :param pulumi.Input[_builtins.int] initial_delay_seconds: The delay of the health check.
406
412
  :param pulumi.Input[_builtins.int] period_seconds: The interval at which the health check is performed.
@@ -409,6 +415,8 @@ class ApplicationLivenessV2Args:
409
415
  """
410
416
  if exec_ is not None:
411
417
  pulumi.set(__self__, "exec_", exec_)
418
+ if failure_threshold is not None:
419
+ pulumi.set(__self__, "failure_threshold", failure_threshold)
412
420
  if http_get is not None:
413
421
  pulumi.set(__self__, "http_get", http_get)
414
422
  if initial_delay_seconds is not None:
@@ -432,6 +440,18 @@ class ApplicationLivenessV2Args:
432
440
  def exec_(self, value: Optional[pulumi.Input['ApplicationLivenessV2ExecArgs']]):
433
441
  pulumi.set(self, "exec_", value)
434
442
 
443
+ @_builtins.property
444
+ @pulumi.getter(name="failureThreshold")
445
+ def failure_threshold(self) -> Optional[pulumi.Input[_builtins.int]]:
446
+ """
447
+ The number of consecutive failures required before considering the container as unhealthy. Increasing this value makes the container more tolerant to transient failures.
448
+ """
449
+ return pulumi.get(self, "failure_threshold")
450
+
451
+ @failure_threshold.setter
452
+ def failure_threshold(self, value: Optional[pulumi.Input[_builtins.int]]):
453
+ pulumi.set(self, "failure_threshold", value)
454
+
435
455
  @_builtins.property
436
456
  @pulumi.getter(name="httpGet")
437
457
  def http_get(self) -> Optional[pulumi.Input['ApplicationLivenessV2HttpGetArgs']]:
@@ -1098,6 +1118,10 @@ if not MYPY:
1098
1118
  """
1099
1119
  Execute. See `exec` below.
1100
1120
  """
1121
+ failure_threshold: NotRequired[pulumi.Input[_builtins.int]]
1122
+ """
1123
+ The number of consecutive failures required before considering the container as unhealthy. Increasing this value makes the container more tolerant to transient failures.
1124
+ """
1101
1125
  http_get: NotRequired[pulumi.Input['ApplicationReadinessV2HttpGetArgsDict']]
1102
1126
  """
1103
1127
  The liveness check settings of the container. See `http_get` below.
@@ -1110,6 +1134,10 @@ if not MYPY:
1110
1134
  """
1111
1135
  The interval at which the health check is performed.
1112
1136
  """
1137
+ success_threshold: NotRequired[pulumi.Input[_builtins.int]]
1138
+ """
1139
+ The number of consecutive successes required before considering the container as healthy. Increasing this value makes the container more tolerant to transient successes during recovery.
1140
+ """
1113
1141
  tcp_socket: NotRequired[pulumi.Input['ApplicationReadinessV2TcpSocketArgsDict']]
1114
1142
  """
1115
1143
  The liveness check settings of the container. See `tcp_socket` below.
@@ -1125,27 +1153,35 @@ elif False:
1125
1153
  class ApplicationReadinessV2Args:
1126
1154
  def __init__(__self__, *,
1127
1155
  exec_: Optional[pulumi.Input['ApplicationReadinessV2ExecArgs']] = None,
1156
+ failure_threshold: Optional[pulumi.Input[_builtins.int]] = None,
1128
1157
  http_get: Optional[pulumi.Input['ApplicationReadinessV2HttpGetArgs']] = None,
1129
1158
  initial_delay_seconds: Optional[pulumi.Input[_builtins.int]] = None,
1130
1159
  period_seconds: Optional[pulumi.Input[_builtins.int]] = None,
1160
+ success_threshold: Optional[pulumi.Input[_builtins.int]] = None,
1131
1161
  tcp_socket: Optional[pulumi.Input['ApplicationReadinessV2TcpSocketArgs']] = None,
1132
1162
  timeout_seconds: Optional[pulumi.Input[_builtins.int]] = None):
1133
1163
  """
1134
1164
  :param pulumi.Input['ApplicationReadinessV2ExecArgs'] exec_: Execute. See `exec` below.
1165
+ :param pulumi.Input[_builtins.int] failure_threshold: The number of consecutive failures required before considering the container as unhealthy. Increasing this value makes the container more tolerant to transient failures.
1135
1166
  :param pulumi.Input['ApplicationReadinessV2HttpGetArgs'] http_get: The liveness check settings of the container. See `http_get` below.
1136
1167
  :param pulumi.Input[_builtins.int] initial_delay_seconds: The delay of the health check.
1137
1168
  :param pulumi.Input[_builtins.int] period_seconds: The interval at which the health check is performed.
1169
+ :param pulumi.Input[_builtins.int] success_threshold: The number of consecutive successes required before considering the container as healthy. Increasing this value makes the container more tolerant to transient successes during recovery.
1138
1170
  :param pulumi.Input['ApplicationReadinessV2TcpSocketArgs'] tcp_socket: The liveness check settings of the container. See `tcp_socket` below.
1139
1171
  :param pulumi.Input[_builtins.int] timeout_seconds: The timeout period of the health check.
1140
1172
  """
1141
1173
  if exec_ is not None:
1142
1174
  pulumi.set(__self__, "exec_", exec_)
1175
+ if failure_threshold is not None:
1176
+ pulumi.set(__self__, "failure_threshold", failure_threshold)
1143
1177
  if http_get is not None:
1144
1178
  pulumi.set(__self__, "http_get", http_get)
1145
1179
  if initial_delay_seconds is not None:
1146
1180
  pulumi.set(__self__, "initial_delay_seconds", initial_delay_seconds)
1147
1181
  if period_seconds is not None:
1148
1182
  pulumi.set(__self__, "period_seconds", period_seconds)
1183
+ if success_threshold is not None:
1184
+ pulumi.set(__self__, "success_threshold", success_threshold)
1149
1185
  if tcp_socket is not None:
1150
1186
  pulumi.set(__self__, "tcp_socket", tcp_socket)
1151
1187
  if timeout_seconds is not None:
@@ -1163,6 +1199,18 @@ class ApplicationReadinessV2Args:
1163
1199
  def exec_(self, value: Optional[pulumi.Input['ApplicationReadinessV2ExecArgs']]):
1164
1200
  pulumi.set(self, "exec_", value)
1165
1201
 
1202
+ @_builtins.property
1203
+ @pulumi.getter(name="failureThreshold")
1204
+ def failure_threshold(self) -> Optional[pulumi.Input[_builtins.int]]:
1205
+ """
1206
+ The number of consecutive failures required before considering the container as unhealthy. Increasing this value makes the container more tolerant to transient failures.
1207
+ """
1208
+ return pulumi.get(self, "failure_threshold")
1209
+
1210
+ @failure_threshold.setter
1211
+ def failure_threshold(self, value: Optional[pulumi.Input[_builtins.int]]):
1212
+ pulumi.set(self, "failure_threshold", value)
1213
+
1166
1214
  @_builtins.property
1167
1215
  @pulumi.getter(name="httpGet")
1168
1216
  def http_get(self) -> Optional[pulumi.Input['ApplicationReadinessV2HttpGetArgs']]:
@@ -1199,6 +1247,18 @@ class ApplicationReadinessV2Args:
1199
1247
  def period_seconds(self, value: Optional[pulumi.Input[_builtins.int]]):
1200
1248
  pulumi.set(self, "period_seconds", value)
1201
1249
 
1250
+ @_builtins.property
1251
+ @pulumi.getter(name="successThreshold")
1252
+ def success_threshold(self) -> Optional[pulumi.Input[_builtins.int]]:
1253
+ """
1254
+ The number of consecutive successes required before considering the container as healthy. Increasing this value makes the container more tolerant to transient successes during recovery.
1255
+ """
1256
+ return pulumi.get(self, "success_threshold")
1257
+
1258
+ @success_threshold.setter
1259
+ def success_threshold(self, value: Optional[pulumi.Input[_builtins.int]]):
1260
+ pulumi.set(self, "success_threshold", value)
1261
+
1202
1262
  @_builtins.property
1203
1263
  @pulumi.getter(name="tcpSocket")
1204
1264
  def tcp_socket(self) -> Optional[pulumi.Input['ApplicationReadinessV2TcpSocketArgs']]:
@@ -3102,7 +3102,7 @@ class Application(pulumi.CustomResource):
3102
3102
 
3103
3103
  @_builtins.property
3104
3104
  @pulumi.getter(name="acrAssumeRoleArn")
3105
- def acr_assume_role_arn(self) -> pulumi.Output[Optional[_builtins.str]]:
3105
+ def acr_assume_role_arn(self) -> pulumi.Output[_builtins.str]:
3106
3106
  """
3107
3107
  The ARN of the RAM role required when pulling images across accounts. Only necessary if the image_url is pointing to an ACR EE instance.
3108
3108
  """
@@ -322,6 +322,8 @@ class ApplicationLivenessV2(dict):
322
322
  suggest = None
323
323
  if key == "exec":
324
324
  suggest = "exec_"
325
+ elif key == "failureThreshold":
326
+ suggest = "failure_threshold"
325
327
  elif key == "httpGet":
326
328
  suggest = "http_get"
327
329
  elif key == "initialDelaySeconds":
@@ -346,6 +348,7 @@ class ApplicationLivenessV2(dict):
346
348
 
347
349
  def __init__(__self__, *,
348
350
  exec_: Optional['outputs.ApplicationLivenessV2Exec'] = None,
351
+ failure_threshold: Optional[_builtins.int] = None,
349
352
  http_get: Optional['outputs.ApplicationLivenessV2HttpGet'] = None,
350
353
  initial_delay_seconds: Optional[_builtins.int] = None,
351
354
  period_seconds: Optional[_builtins.int] = None,
@@ -353,6 +356,7 @@ class ApplicationLivenessV2(dict):
353
356
  timeout_seconds: Optional[_builtins.int] = None):
354
357
  """
355
358
  :param 'ApplicationLivenessV2ExecArgs' exec_: Execute. See `exec` below.
359
+ :param _builtins.int failure_threshold: The number of consecutive failures required before considering the container as unhealthy. Increasing this value makes the container more tolerant to transient failures.
356
360
  :param 'ApplicationLivenessV2HttpGetArgs' http_get: The liveness check settings of the container. See `http_get` below.
357
361
  :param _builtins.int initial_delay_seconds: The delay of the health check.
358
362
  :param _builtins.int period_seconds: The interval at which the health check is performed.
@@ -361,6 +365,8 @@ class ApplicationLivenessV2(dict):
361
365
  """
362
366
  if exec_ is not None:
363
367
  pulumi.set(__self__, "exec_", exec_)
368
+ if failure_threshold is not None:
369
+ pulumi.set(__self__, "failure_threshold", failure_threshold)
364
370
  if http_get is not None:
365
371
  pulumi.set(__self__, "http_get", http_get)
366
372
  if initial_delay_seconds is not None:
@@ -380,6 +386,14 @@ class ApplicationLivenessV2(dict):
380
386
  """
381
387
  return pulumi.get(self, "exec_")
382
388
 
389
+ @_builtins.property
390
+ @pulumi.getter(name="failureThreshold")
391
+ def failure_threshold(self) -> Optional[_builtins.int]:
392
+ """
393
+ The number of consecutive failures required before considering the container as unhealthy. Increasing this value makes the container more tolerant to transient failures.
394
+ """
395
+ return pulumi.get(self, "failure_threshold")
396
+
383
397
  @_builtins.property
384
398
  @pulumi.getter(name="httpGet")
385
399
  def http_get(self) -> Optional['outputs.ApplicationLivenessV2HttpGet']:
@@ -907,12 +921,16 @@ class ApplicationReadinessV2(dict):
907
921
  suggest = None
908
922
  if key == "exec":
909
923
  suggest = "exec_"
924
+ elif key == "failureThreshold":
925
+ suggest = "failure_threshold"
910
926
  elif key == "httpGet":
911
927
  suggest = "http_get"
912
928
  elif key == "initialDelaySeconds":
913
929
  suggest = "initial_delay_seconds"
914
930
  elif key == "periodSeconds":
915
931
  suggest = "period_seconds"
932
+ elif key == "successThreshold":
933
+ suggest = "success_threshold"
916
934
  elif key == "tcpSocket":
917
935
  suggest = "tcp_socket"
918
936
  elif key == "timeoutSeconds":
@@ -931,27 +949,35 @@ class ApplicationReadinessV2(dict):
931
949
 
932
950
  def __init__(__self__, *,
933
951
  exec_: Optional['outputs.ApplicationReadinessV2Exec'] = None,
952
+ failure_threshold: Optional[_builtins.int] = None,
934
953
  http_get: Optional['outputs.ApplicationReadinessV2HttpGet'] = None,
935
954
  initial_delay_seconds: Optional[_builtins.int] = None,
936
955
  period_seconds: Optional[_builtins.int] = None,
956
+ success_threshold: Optional[_builtins.int] = None,
937
957
  tcp_socket: Optional['outputs.ApplicationReadinessV2TcpSocket'] = None,
938
958
  timeout_seconds: Optional[_builtins.int] = None):
939
959
  """
940
960
  :param 'ApplicationReadinessV2ExecArgs' exec_: Execute. See `exec` below.
961
+ :param _builtins.int failure_threshold: The number of consecutive failures required before considering the container as unhealthy. Increasing this value makes the container more tolerant to transient failures.
941
962
  :param 'ApplicationReadinessV2HttpGetArgs' http_get: The liveness check settings of the container. See `http_get` below.
942
963
  :param _builtins.int initial_delay_seconds: The delay of the health check.
943
964
  :param _builtins.int period_seconds: The interval at which the health check is performed.
965
+ :param _builtins.int success_threshold: The number of consecutive successes required before considering the container as healthy. Increasing this value makes the container more tolerant to transient successes during recovery.
944
966
  :param 'ApplicationReadinessV2TcpSocketArgs' tcp_socket: The liveness check settings of the container. See `tcp_socket` below.
945
967
  :param _builtins.int timeout_seconds: The timeout period of the health check.
946
968
  """
947
969
  if exec_ is not None:
948
970
  pulumi.set(__self__, "exec_", exec_)
971
+ if failure_threshold is not None:
972
+ pulumi.set(__self__, "failure_threshold", failure_threshold)
949
973
  if http_get is not None:
950
974
  pulumi.set(__self__, "http_get", http_get)
951
975
  if initial_delay_seconds is not None:
952
976
  pulumi.set(__self__, "initial_delay_seconds", initial_delay_seconds)
953
977
  if period_seconds is not None:
954
978
  pulumi.set(__self__, "period_seconds", period_seconds)
979
+ if success_threshold is not None:
980
+ pulumi.set(__self__, "success_threshold", success_threshold)
955
981
  if tcp_socket is not None:
956
982
  pulumi.set(__self__, "tcp_socket", tcp_socket)
957
983
  if timeout_seconds is not None:
@@ -965,6 +991,14 @@ class ApplicationReadinessV2(dict):
965
991
  """
966
992
  return pulumi.get(self, "exec_")
967
993
 
994
+ @_builtins.property
995
+ @pulumi.getter(name="failureThreshold")
996
+ def failure_threshold(self) -> Optional[_builtins.int]:
997
+ """
998
+ The number of consecutive failures required before considering the container as unhealthy. Increasing this value makes the container more tolerant to transient failures.
999
+ """
1000
+ return pulumi.get(self, "failure_threshold")
1001
+
968
1002
  @_builtins.property
969
1003
  @pulumi.getter(name="httpGet")
970
1004
  def http_get(self) -> Optional['outputs.ApplicationReadinessV2HttpGet']:
@@ -989,6 +1023,14 @@ class ApplicationReadinessV2(dict):
989
1023
  """
990
1024
  return pulumi.get(self, "period_seconds")
991
1025
 
1026
+ @_builtins.property
1027
+ @pulumi.getter(name="successThreshold")
1028
+ def success_threshold(self) -> Optional[_builtins.int]:
1029
+ """
1030
+ The number of consecutive successes required before considering the container as healthy. Increasing this value makes the container more tolerant to transient successes during recovery.
1031
+ """
1032
+ return pulumi.get(self, "success_threshold")
1033
+
992
1034
  @_builtins.property
993
1035
  @pulumi.getter(name="tcpSocket")
994
1036
  def tcp_socket(self) -> Optional['outputs.ApplicationReadinessV2TcpSocket']:
@@ -11,6 +11,7 @@ from .collection_policy import *
11
11
  from .etl import *
12
12
  from .get_alerts import *
13
13
  from .get_etls import *
14
+ from .get_indexs import *
14
15
  from .get_logtail_configs import *
15
16
  from .get_machine_groups import *
16
17
  from .index import *
@@ -0,0 +1,304 @@
1
+ # coding=utf-8
2
+ # *** WARNING: this file was generated by pulumi-language-python. ***
3
+ # *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+
5
+ import builtins as _builtins
6
+ import warnings
7
+ import sys
8
+ import pulumi
9
+ import pulumi.runtime
10
+ from typing import Any, Mapping, Optional, Sequence, Union, overload
11
+ if sys.version_info >= (3, 11):
12
+ from typing import NotRequired, TypedDict, TypeAlias
13
+ else:
14
+ from typing_extensions import NotRequired, TypedDict, TypeAlias
15
+ from .. import _utilities
16
+ from . import outputs
17
+
18
+ __all__ = [
19
+ 'GetIndexsResult',
20
+ 'AwaitableGetIndexsResult',
21
+ 'get_indexs',
22
+ 'get_indexs_output',
23
+ ]
24
+
25
+ @pulumi.output_type
26
+ class GetIndexsResult:
27
+ """
28
+ A collection of values returned by getIndexs.
29
+ """
30
+ def __init__(__self__, id=None, ids=None, indexs=None, logstore_name=None, output_file=None, project_name=None):
31
+ if id and not isinstance(id, str):
32
+ raise TypeError("Expected argument 'id' to be a str")
33
+ pulumi.set(__self__, "id", id)
34
+ if ids and not isinstance(ids, list):
35
+ raise TypeError("Expected argument 'ids' to be a list")
36
+ pulumi.set(__self__, "ids", ids)
37
+ if indexs and not isinstance(indexs, list):
38
+ raise TypeError("Expected argument 'indexs' to be a list")
39
+ pulumi.set(__self__, "indexs", indexs)
40
+ if logstore_name and not isinstance(logstore_name, str):
41
+ raise TypeError("Expected argument 'logstore_name' to be a str")
42
+ pulumi.set(__self__, "logstore_name", logstore_name)
43
+ if output_file and not isinstance(output_file, str):
44
+ raise TypeError("Expected argument 'output_file' to be a str")
45
+ pulumi.set(__self__, "output_file", output_file)
46
+ if project_name and not isinstance(project_name, str):
47
+ raise TypeError("Expected argument 'project_name' to be a str")
48
+ pulumi.set(__self__, "project_name", project_name)
49
+
50
+ @_builtins.property
51
+ @pulumi.getter
52
+ def id(self) -> _builtins.str:
53
+ """
54
+ The provider-assigned unique ID for this managed resource.
55
+ """
56
+ return pulumi.get(self, "id")
57
+
58
+ @_builtins.property
59
+ @pulumi.getter
60
+ def ids(self) -> Sequence[_builtins.str]:
61
+ """
62
+ A list of Index IDs.
63
+ """
64
+ return pulumi.get(self, "ids")
65
+
66
+ @_builtins.property
67
+ @pulumi.getter
68
+ def indexs(self) -> Sequence['outputs.GetIndexsIndexResult']:
69
+ """
70
+ A list of Index Entries. Each element contains the following attributes:
71
+ """
72
+ return pulumi.get(self, "indexs")
73
+
74
+ @_builtins.property
75
+ @pulumi.getter(name="logstoreName")
76
+ def logstore_name(self) -> _builtins.str:
77
+ return pulumi.get(self, "logstore_name")
78
+
79
+ @_builtins.property
80
+ @pulumi.getter(name="outputFile")
81
+ def output_file(self) -> Optional[_builtins.str]:
82
+ return pulumi.get(self, "output_file")
83
+
84
+ @_builtins.property
85
+ @pulumi.getter(name="projectName")
86
+ def project_name(self) -> _builtins.str:
87
+ return pulumi.get(self, "project_name")
88
+
89
+
90
+ class AwaitableGetIndexsResult(GetIndexsResult):
91
+ # pylint: disable=using-constant-test
92
+ def __await__(self):
93
+ if False:
94
+ yield self
95
+ return GetIndexsResult(
96
+ id=self.id,
97
+ ids=self.ids,
98
+ indexs=self.indexs,
99
+ logstore_name=self.logstore_name,
100
+ output_file=self.output_file,
101
+ project_name=self.project_name)
102
+
103
+
104
+ def get_indexs(ids: Optional[Sequence[_builtins.str]] = None,
105
+ logstore_name: Optional[_builtins.str] = None,
106
+ output_file: Optional[_builtins.str] = None,
107
+ project_name: Optional[_builtins.str] = None,
108
+ opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetIndexsResult:
109
+ """
110
+ This data source provides Sls Index available to the user.[What is Index](https://next.api.alibabacloud.com/document/Sls/2020-12-30/CreateIndex)
111
+
112
+ > **NOTE:** Available since v1.262.0.
113
+
114
+ ## Example Usage
115
+
116
+ ```python
117
+ import pulumi
118
+ import json
119
+ import pulumi_alicloud as alicloud
120
+
121
+ config = pulumi.Config()
122
+ name = config.get("name")
123
+ if name is None:
124
+ name = "terraform-example"
125
+ logstore_name = config.get("logstoreName")
126
+ if logstore_name is None:
127
+ logstore_name = "logstore-example-1"
128
+ project_name = config.get("projectName")
129
+ if project_name is None:
130
+ project_name = "project-for-index-terraform-example-1"
131
+ default_project = alicloud.log.Project("default",
132
+ description="terraform example",
133
+ project_name=project_name)
134
+ default_store = alicloud.log.Store("default",
135
+ hot_ttl=7,
136
+ retention_period=30,
137
+ shard_count=2,
138
+ project_name=default_project.project_name,
139
+ logstore_name=logstore_name)
140
+ default_index = alicloud.sls.Index("default",
141
+ line={
142
+ "chn": True,
143
+ "case_sensitive": True,
144
+ "tokens": ["a"],
145
+ "exclude_keys": ["t"],
146
+ },
147
+ keys=json.dumps({
148
+ "example": {
149
+ "caseSensitive": False,
150
+ "token": [
151
+ "\\n",
152
+ "\\x09",
153
+ ",",
154
+ " ",
155
+ ";",
156
+ "\\"",
157
+ "'",
158
+ "(",
159
+ ")",
160
+ "{",
161
+ "}",
162
+ "[",
163
+ "]",
164
+ "<",
165
+ ">",
166
+ "?",
167
+ "/",
168
+ "#",
169
+ ":",
170
+ ],
171
+ "type": "text",
172
+ "doc_value": False,
173
+ "alias": "",
174
+ "chn": False,
175
+ },
176
+ }),
177
+ logstore_name=default_store.logstore_name,
178
+ project_name=project_name)
179
+ default = alicloud.sls.get_indexs_output(logstore_name=default_store.logstore_name,
180
+ project_name=default_project.project_name)
181
+ pulumi.export("alicloudSlsIndexExampleId", default.indexs[0].id)
182
+ ```
183
+
184
+
185
+ :param Sequence[_builtins.str] ids: A list of Index IDs. The value is formulated as `<project_name>:<logstore_name>`.
186
+ :param _builtins.str logstore_name: Logstore name
187
+ :param _builtins.str output_file: File name where to save data source results (after running `pulumi preview`).
188
+ :param _builtins.str project_name: Project name
189
+ """
190
+ __args__ = dict()
191
+ __args__['ids'] = ids
192
+ __args__['logstoreName'] = logstore_name
193
+ __args__['outputFile'] = output_file
194
+ __args__['projectName'] = project_name
195
+ opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
196
+ __ret__ = pulumi.runtime.invoke('alicloud:sls/getIndexs:getIndexs', __args__, opts=opts, typ=GetIndexsResult).value
197
+
198
+ return AwaitableGetIndexsResult(
199
+ id=pulumi.get(__ret__, 'id'),
200
+ ids=pulumi.get(__ret__, 'ids'),
201
+ indexs=pulumi.get(__ret__, 'indexs'),
202
+ logstore_name=pulumi.get(__ret__, 'logstore_name'),
203
+ output_file=pulumi.get(__ret__, 'output_file'),
204
+ project_name=pulumi.get(__ret__, 'project_name'))
205
+ def get_indexs_output(ids: Optional[pulumi.Input[Optional[Sequence[_builtins.str]]]] = None,
206
+ logstore_name: Optional[pulumi.Input[_builtins.str]] = None,
207
+ output_file: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
208
+ project_name: Optional[pulumi.Input[_builtins.str]] = None,
209
+ opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetIndexsResult]:
210
+ """
211
+ This data source provides Sls Index available to the user.[What is Index](https://next.api.alibabacloud.com/document/Sls/2020-12-30/CreateIndex)
212
+
213
+ > **NOTE:** Available since v1.262.0.
214
+
215
+ ## Example Usage
216
+
217
+ ```python
218
+ import pulumi
219
+ import json
220
+ import pulumi_alicloud as alicloud
221
+
222
+ config = pulumi.Config()
223
+ name = config.get("name")
224
+ if name is None:
225
+ name = "terraform-example"
226
+ logstore_name = config.get("logstoreName")
227
+ if logstore_name is None:
228
+ logstore_name = "logstore-example-1"
229
+ project_name = config.get("projectName")
230
+ if project_name is None:
231
+ project_name = "project-for-index-terraform-example-1"
232
+ default_project = alicloud.log.Project("default",
233
+ description="terraform example",
234
+ project_name=project_name)
235
+ default_store = alicloud.log.Store("default",
236
+ hot_ttl=7,
237
+ retention_period=30,
238
+ shard_count=2,
239
+ project_name=default_project.project_name,
240
+ logstore_name=logstore_name)
241
+ default_index = alicloud.sls.Index("default",
242
+ line={
243
+ "chn": True,
244
+ "case_sensitive": True,
245
+ "tokens": ["a"],
246
+ "exclude_keys": ["t"],
247
+ },
248
+ keys=json.dumps({
249
+ "example": {
250
+ "caseSensitive": False,
251
+ "token": [
252
+ "\\n",
253
+ "\\x09",
254
+ ",",
255
+ " ",
256
+ ";",
257
+ "\\"",
258
+ "'",
259
+ "(",
260
+ ")",
261
+ "{",
262
+ "}",
263
+ "[",
264
+ "]",
265
+ "<",
266
+ ">",
267
+ "?",
268
+ "/",
269
+ "#",
270
+ ":",
271
+ ],
272
+ "type": "text",
273
+ "doc_value": False,
274
+ "alias": "",
275
+ "chn": False,
276
+ },
277
+ }),
278
+ logstore_name=default_store.logstore_name,
279
+ project_name=project_name)
280
+ default = alicloud.sls.get_indexs_output(logstore_name=default_store.logstore_name,
281
+ project_name=default_project.project_name)
282
+ pulumi.export("alicloudSlsIndexExampleId", default.indexs[0].id)
283
+ ```
284
+
285
+
286
+ :param Sequence[_builtins.str] ids: A list of Index IDs. The value is formulated as `<project_name>:<logstore_name>`.
287
+ :param _builtins.str logstore_name: Logstore name
288
+ :param _builtins.str output_file: File name where to save data source results (after running `pulumi preview`).
289
+ :param _builtins.str project_name: Project name
290
+ """
291
+ __args__ = dict()
292
+ __args__['ids'] = ids
293
+ __args__['logstoreName'] = logstore_name
294
+ __args__['outputFile'] = output_file
295
+ __args__['projectName'] = project_name
296
+ opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
297
+ __ret__ = pulumi.runtime.invoke_output('alicloud:sls/getIndexs:getIndexs', __args__, opts=opts, typ=GetIndexsResult)
298
+ return __ret__.apply(lambda __response__: GetIndexsResult(
299
+ id=pulumi.get(__response__, 'id'),
300
+ ids=pulumi.get(__response__, 'ids'),
301
+ indexs=pulumi.get(__response__, 'indexs'),
302
+ logstore_name=pulumi.get(__response__, 'logstore_name'),
303
+ output_file=pulumi.get(__response__, 'output_file'),
304
+ project_name=pulumi.get(__response__, 'project_name')))