pulumi-alicloud 3.76.0a1743571220__py3-none-any.whl → 3.76.0a1744139894__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 (237) hide show
  1. pulumi_alicloud/__init__.py +271 -4
  2. pulumi_alicloud/_inputs.py +20 -0
  3. pulumi_alicloud/actiontrail/global_events_storage_region.py +2 -2
  4. pulumi_alicloud/adb/db_cluster_lake_version.py +458 -49
  5. pulumi_alicloud/alb/load_balancer_access_log_config_attachment.py +2 -2
  6. pulumi_alicloud/alb/server_group.py +2 -2
  7. pulumi_alicloud/alikafka/sasl_acl.py +7 -7
  8. pulumi_alicloud/apigateway/_inputs.py +134 -0
  9. pulumi_alicloud/apigateway/group.py +117 -5
  10. pulumi_alicloud/apigateway/instance.py +148 -7
  11. pulumi_alicloud/apigateway/outputs.py +107 -0
  12. pulumi_alicloud/arms/alert_contact.py +2 -2
  13. pulumi_alicloud/arms/alert_contact_group.py +2 -2
  14. pulumi_alicloud/arms/get_prometheus.py +2 -6
  15. pulumi_alicloud/arms/grafana_workspace.py +511 -69
  16. pulumi_alicloud/arms/outputs.py +18 -18
  17. pulumi_alicloud/arms/prometheus_alert_rule.py +2 -2
  18. pulumi_alicloud/arms/prometheus_monitoring.py +2 -2
  19. pulumi_alicloud/cdn/domain_new.py +2 -2
  20. pulumi_alicloud/cen/_inputs.py +6 -3
  21. pulumi_alicloud/cen/get_transit_router_vpn_attachments.py +131 -19
  22. pulumi_alicloud/cen/instance.py +101 -59
  23. pulumi_alicloud/cen/inter_region_traffic_qos_policy.py +126 -81
  24. pulumi_alicloud/cen/inter_region_traffic_qos_queue.py +93 -47
  25. pulumi_alicloud/cen/outputs.py +69 -26
  26. pulumi_alicloud/cen/transit_route_table_aggregation.py +171 -55
  27. pulumi_alicloud/cen/transit_router.py +127 -53
  28. pulumi_alicloud/cen/transit_router_cidr.py +53 -35
  29. pulumi_alicloud/cen/transit_router_ecr_attachment.py +2 -2
  30. pulumi_alicloud/cen/transit_router_peer_attachment.py +360 -143
  31. pulumi_alicloud/cen/transit_router_route_table_association.py +33 -43
  32. pulumi_alicloud/cen/transit_router_vpn_attachment.py +438 -109
  33. pulumi_alicloud/clickhouse/db_cluster.py +179 -6
  34. pulumi_alicloud/clickhouseenterprisedbcluster/__init__.py +14 -0
  35. pulumi_alicloud/clickhouseenterprisedbcluster/_inputs.py +167 -0
  36. pulumi_alicloud/clickhouseenterprisedbcluster/account.py +554 -0
  37. pulumi_alicloud/clickhouseenterprisedbcluster/backup_policy.py +407 -0
  38. pulumi_alicloud/clickhouseenterprisedbcluster/click_house_enterprise_db_cluster.py +641 -0
  39. pulumi_alicloud/clickhouseenterprisedbcluster/outputs.py +147 -0
  40. pulumi_alicloud/clickhouseenterprisedbcluster/public_endpoint.py +364 -0
  41. pulumi_alicloud/clickhouseenterprisedbcluster/security_ip.py +357 -0
  42. pulumi_alicloud/cloudsso/scim_server_credential.py +178 -11
  43. pulumi_alicloud/config/outputs.py +12 -0
  44. pulumi_alicloud/cs/__init__.py +1 -0
  45. pulumi_alicloud/cs/get_kubernetes_node_pools.py +147 -0
  46. pulumi_alicloud/cs/managed_kubernetes.py +127 -24
  47. pulumi_alicloud/cs/node_pool.py +42 -42
  48. pulumi_alicloud/cs/outputs.py +1782 -4
  49. pulumi_alicloud/databasefilesystem/service_linked_role.py +2 -2
  50. pulumi_alicloud/dataworks/data_source.py +2 -2
  51. pulumi_alicloud/dataworks/data_source_shared_rule.py +2 -2
  52. pulumi_alicloud/dataworks/di_alarm_rule.py +2 -2
  53. pulumi_alicloud/dataworks/di_job.py +2 -2
  54. pulumi_alicloud/dataworks/dw_resource_group.py +2 -2
  55. pulumi_alicloud/dataworks/network.py +2 -2
  56. pulumi_alicloud/dataworks/project.py +2 -2
  57. pulumi_alicloud/dataworks/project_member.py +2 -2
  58. pulumi_alicloud/dbs/backup_plan.py +2 -2
  59. pulumi_alicloud/ddos/bgp_policy.py +2 -2
  60. pulumi_alicloud/eais/__init__.py +2 -0
  61. pulumi_alicloud/eais/_inputs.py +75 -0
  62. pulumi_alicloud/eais/client_instance_attachment.py +408 -0
  63. pulumi_alicloud/eais/instance.py +365 -118
  64. pulumi_alicloud/eais/outputs.py +32 -0
  65. pulumi_alicloud/ebs/disk_replica_group.py +512 -30
  66. pulumi_alicloud/ebs/disk_replica_pair.py +443 -113
  67. pulumi_alicloud/ebs/enterprise_snapshot_policy.py +2 -2
  68. pulumi_alicloud/ebs/enterprise_snapshot_policy_attachment.py +2 -2
  69. pulumi_alicloud/ecp/instance.py +2 -2
  70. pulumi_alicloud/ecp/key_pair.py +4 -4
  71. pulumi_alicloud/ecs/_inputs.py +33 -0
  72. pulumi_alicloud/ecs/disk.py +1 -1
  73. pulumi_alicloud/ecs/ecs_disk.py +1 -1
  74. pulumi_alicloud/ecs/ecs_launch_template.py +23 -23
  75. pulumi_alicloud/ecs/instance.py +1 -1
  76. pulumi_alicloud/ecs/outputs.py +26 -2
  77. pulumi_alicloud/eflo/__init__.py +5 -0
  78. pulumi_alicloud/eflo/_inputs.py +1717 -0
  79. pulumi_alicloud/eflo/cluster.py +935 -0
  80. pulumi_alicloud/eflo/invocation.py +1114 -0
  81. pulumi_alicloud/eflo/node.py +1013 -0
  82. pulumi_alicloud/eflo/node_group.py +1101 -0
  83. pulumi_alicloud/eflo/outputs.py +1366 -0
  84. pulumi_alicloud/ens/eip_instance_attachment.py +2 -2
  85. pulumi_alicloud/ens/image.py +81 -34
  86. pulumi_alicloud/esa/__init__.py +4 -0
  87. pulumi_alicloud/esa/_inputs.py +640 -18
  88. pulumi_alicloud/esa/cache_reserve_instance.py +522 -0
  89. pulumi_alicloud/esa/cache_rule.py +193 -179
  90. pulumi_alicloud/esa/certificate.py +99 -92
  91. pulumi_alicloud/esa/compression_rule.py +42 -28
  92. pulumi_alicloud/esa/edge_container_app.py +972 -0
  93. pulumi_alicloud/esa/edge_container_app_record.py +376 -0
  94. pulumi_alicloud/esa/http_request_header_modification_rule.py +56 -42
  95. pulumi_alicloud/esa/http_response_header_modification_rule.py +35 -56
  96. pulumi_alicloud/esa/https_application_configuration.py +42 -28
  97. pulumi_alicloud/esa/https_basic_configuration.py +56 -42
  98. pulumi_alicloud/esa/image_transform.py +42 -28
  99. pulumi_alicloud/esa/kv_namespace.py +11 -11
  100. pulumi_alicloud/esa/list.py +28 -28
  101. pulumi_alicloud/esa/network_optimization.py +56 -126
  102. pulumi_alicloud/esa/origin_pool.py +19 -19
  103. pulumi_alicloud/esa/origin_rule.py +67 -39
  104. pulumi_alicloud/esa/outputs.py +536 -12
  105. pulumi_alicloud/esa/page.py +28 -49
  106. pulumi_alicloud/esa/rate_plan_instance.py +86 -159
  107. pulumi_alicloud/esa/redirect_rule.py +42 -28
  108. pulumi_alicloud/esa/rewrite_url_rule.py +49 -63
  109. pulumi_alicloud/esa/site.py +67 -123
  110. pulumi_alicloud/esa/site_delivery_task.py +841 -0
  111. pulumi_alicloud/esa/waiting_room.py +269 -319
  112. pulumi_alicloud/esa/waiting_room_event.py +291 -305
  113. pulumi_alicloud/esa/waiting_room_rule.py +46 -53
  114. pulumi_alicloud/ess/_inputs.py +155 -0
  115. pulumi_alicloud/ess/outputs.py +128 -0
  116. pulumi_alicloud/ess/scaling_group.py +237 -2
  117. pulumi_alicloud/ess/scaling_rule.py +143 -2
  118. pulumi_alicloud/expressconnect/router_grant_association.py +2 -2
  119. pulumi_alicloud/expressconnect/virtual_border_router.py +4 -4
  120. pulumi_alicloud/gpdb/hadoop_data_source.py +2 -2
  121. pulumi_alicloud/gpdb/jdbc_data_source.py +2 -2
  122. pulumi_alicloud/gpdb/remote_adb_data_source.py +6 -6
  123. pulumi_alicloud/gpdb/streaming_data_source.py +2 -2
  124. pulumi_alicloud/gpdb/streaming_job.py +2 -2
  125. pulumi_alicloud/ims/oidc_provider.py +24 -13
  126. pulumi_alicloud/kvstore/account.py +9 -9
  127. pulumi_alicloud/kvstore/connection.py +2 -2
  128. pulumi_alicloud/kvstore/get_instance_classes.py +2 -2
  129. pulumi_alicloud/kvstore/get_instance_engines.py +2 -2
  130. pulumi_alicloud/kvstore/instance.py +7 -7
  131. pulumi_alicloud/kvstore/outputs.py +2 -2
  132. pulumi_alicloud/live/caster.py +2 -2
  133. pulumi_alicloud/maxcompute/__init__.py +1 -0
  134. pulumi_alicloud/maxcompute/_inputs.py +232 -3
  135. pulumi_alicloud/maxcompute/outputs.py +183 -2
  136. pulumi_alicloud/maxcompute/project.py +2 -2
  137. pulumi_alicloud/maxcompute/quota.py +438 -0
  138. pulumi_alicloud/nas/mount_target.py +149 -54
  139. pulumi_alicloud/nlb/__init__.py +1 -0
  140. pulumi_alicloud/nlb/_inputs.py +43 -6
  141. pulumi_alicloud/nlb/load_balancer.py +212 -24
  142. pulumi_alicloud/nlb/load_balancer_zone_shifted_attachment.py +397 -0
  143. pulumi_alicloud/nlb/outputs.py +30 -4
  144. pulumi_alicloud/nlb/server_group_server_attachment.py +118 -65
  145. pulumi_alicloud/oss/__init__.py +1 -0
  146. pulumi_alicloud/oss/_inputs.py +20 -0
  147. pulumi_alicloud/oss/access_point.py +2 -2
  148. pulumi_alicloud/oss/bucket_cname.py +2 -2
  149. pulumi_alicloud/oss/bucket_cors.py +2 -2
  150. pulumi_alicloud/oss/bucket_style.py +402 -0
  151. pulumi_alicloud/oss/bucket_website.py +2 -2
  152. pulumi_alicloud/oss/outputs.py +14 -0
  153. pulumi_alicloud/pai/service.py +59 -67
  154. pulumi_alicloud/polardb/cluster.py +75 -28
  155. pulumi_alicloud/privatelink/vpc_endpoint_zone.py +1 -1
  156. pulumi_alicloud/pulumi-plugin.json +1 -1
  157. pulumi_alicloud/ram/__init__.py +3 -0
  158. pulumi_alicloud/ram/_inputs.py +9 -9
  159. pulumi_alicloud/ram/access_key.py +77 -31
  160. pulumi_alicloud/ram/account_alias.py +18 -45
  161. pulumi_alicloud/ram/get_system_policys.py +189 -0
  162. pulumi_alicloud/ram/group.py +156 -35
  163. pulumi_alicloud/ram/group_policy_attachment.py +51 -29
  164. pulumi_alicloud/ram/login_profile.py +92 -38
  165. pulumi_alicloud/ram/outputs.py +91 -6
  166. pulumi_alicloud/ram/password_policy.py +779 -0
  167. pulumi_alicloud/ram/policy.py +199 -88
  168. pulumi_alicloud/ram/role_policy_attachment.py +51 -29
  169. pulumi_alicloud/ram/saml_provider.py +44 -37
  170. pulumi_alicloud/ram/user_group_attachment.py +273 -0
  171. pulumi_alicloud/ram/user_policy_attachment.py +49 -27
  172. pulumi_alicloud/rds/__init__.py +1 -0
  173. pulumi_alicloud/rds/custom_disk.py +1053 -0
  174. pulumi_alicloud/rds/instance.py +110 -14
  175. pulumi_alicloud/redis/tair_instance.py +14 -14
  176. pulumi_alicloud/resourcemanager/__init__.py +1 -0
  177. pulumi_alicloud/resourcemanager/_inputs.py +53 -0
  178. pulumi_alicloud/resourcemanager/auto_grouping_rule.py +796 -0
  179. pulumi_alicloud/resourcemanager/outputs.py +50 -0
  180. pulumi_alicloud/resourcemanager/shared_resource.py +7 -0
  181. pulumi_alicloud/rocketmq/__init__.py +1 -1
  182. pulumi_alicloud/rocketmq/_inputs.py +146 -4
  183. pulumi_alicloud/rocketmq/account.py +452 -0
  184. pulumi_alicloud/rocketmq/acl.py +473 -47
  185. pulumi_alicloud/rocketmq/client_user.py +8 -2
  186. pulumi_alicloud/rocketmq/consumer_group.py +121 -24
  187. pulumi_alicloud/rocketmq/dnat_entry.py +8 -2
  188. pulumi_alicloud/rocketmq/outputs.py +113 -4
  189. pulumi_alicloud/rocketmq/qos.py +8 -2
  190. pulumi_alicloud/rocketmq/qos_car.py +10 -4
  191. pulumi_alicloud/rocketmq/qos_policy.py +6 -0
  192. pulumi_alicloud/rocketmq/rocket_mq_instance.py +136 -7
  193. pulumi_alicloud/rocketmq/rocket_mq_topic.py +121 -24
  194. pulumi_alicloud/rocketmq/snat_entry.py +8 -2
  195. pulumi_alicloud/sag/__init__.py +8 -0
  196. pulumi_alicloud/sag/acl.py +200 -0
  197. pulumi_alicloud/{rocketmq → sag}/acl_rule.py +7 -7
  198. pulumi_alicloud/sag/client_user.py +560 -0
  199. pulumi_alicloud/sag/dnat_entry.py +512 -0
  200. pulumi_alicloud/sag/get_acls.py +2 -2
  201. pulumi_alicloud/sag/qos.py +202 -0
  202. pulumi_alicloud/sag/qos_car.py +654 -0
  203. pulumi_alicloud/sag/qos_policy.py +659 -0
  204. pulumi_alicloud/sag/snat_entry.py +313 -0
  205. pulumi_alicloud/securitycenter/group.py +2 -2
  206. pulumi_alicloud/selectdb/db_instance.py +60 -11
  207. pulumi_alicloud/slb/server_group_server_attachment.py +101 -111
  208. pulumi_alicloud/sls/oss_export_sink.py +2 -2
  209. pulumi_alicloud/threatdetection/__init__.py +3 -0
  210. pulumi_alicloud/threatdetection/anti_brute_force_rule.py +41 -65
  211. pulumi_alicloud/threatdetection/asset_bind.py +209 -0
  212. pulumi_alicloud/threatdetection/asset_selection_config.py +258 -0
  213. pulumi_alicloud/threatdetection/instance.py +271 -54
  214. pulumi_alicloud/threatdetection/log_meta.py +351 -0
  215. pulumi_alicloud/vpc/__init__.py +1 -0
  216. pulumi_alicloud/vpc/_inputs.py +281 -0
  217. pulumi_alicloud/vpc/gateway_endpoint.py +85 -27
  218. pulumi_alicloud/vpc/get_ipam_ipam_pool_allocations.py +2 -2
  219. pulumi_alicloud/vpc/get_ipam_ipam_pool_cidrs.py +2 -2
  220. pulumi_alicloud/vpc/get_ipam_ipam_pools.py +2 -2
  221. pulumi_alicloud/vpc/get_ipam_ipam_scopes.py +2 -2
  222. pulumi_alicloud/vpc/get_ipam_ipams.py +2 -2
  223. pulumi_alicloud/vpc/ipv6_address.py +85 -5
  224. pulumi_alicloud/vpc/outputs.py +232 -0
  225. pulumi_alicloud/vpc/peer_connection.py +84 -42
  226. pulumi_alicloud/vpc/peer_connection_accepter.py +7 -21
  227. pulumi_alicloud/vpc/route_table.py +100 -45
  228. pulumi_alicloud/vpc/vpc_route_entry.py +724 -0
  229. pulumi_alicloud/vpn/_inputs.py +716 -71
  230. pulumi_alicloud/vpn/gateway_vpn_attachment.py +622 -128
  231. pulumi_alicloud/vpn/get_gateway_vpn_attachments.py +20 -63
  232. pulumi_alicloud/vpn/ipsec_server.py +2 -2
  233. pulumi_alicloud/vpn/outputs.py +1963 -998
  234. {pulumi_alicloud-3.76.0a1743571220.dist-info → pulumi_alicloud-3.76.0a1744139894.dist-info}/METADATA +1 -1
  235. {pulumi_alicloud-3.76.0a1743571220.dist-info → pulumi_alicloud-3.76.0a1744139894.dist-info}/RECORD +237 -197
  236. {pulumi_alicloud-3.76.0a1743571220.dist-info → pulumi_alicloud-3.76.0a1744139894.dist-info}/WHEEL +0 -0
  237. {pulumi_alicloud-3.76.0a1743571220.dist-info → pulumi_alicloud-3.76.0a1744139894.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,1114 @@
1
+ # coding=utf-8
2
+ # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
+ # *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+
5
+ import copy
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
+
17
+ __all__ = ['InvocationArgs', 'Invocation']
18
+
19
+ @pulumi.input_type
20
+ class InvocationArgs:
21
+ def __init__(__self__, *,
22
+ command_content: Optional[pulumi.Input[str]] = None,
23
+ command_id: Optional[pulumi.Input[str]] = None,
24
+ content_encoding: Optional[pulumi.Input[str]] = None,
25
+ description: Optional[pulumi.Input[str]] = None,
26
+ enable_parameter: Optional[pulumi.Input[bool]] = None,
27
+ frequency: Optional[pulumi.Input[str]] = None,
28
+ launcher: Optional[pulumi.Input[str]] = None,
29
+ name: Optional[pulumi.Input[str]] = None,
30
+ node_id_lists: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
31
+ parameters: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
32
+ repeat_mode: Optional[pulumi.Input[str]] = None,
33
+ termination_mode: Optional[pulumi.Input[str]] = None,
34
+ timeout: Optional[pulumi.Input[int]] = None,
35
+ username: Optional[pulumi.Input[str]] = None,
36
+ working_dir: Optional[pulumi.Input[str]] = None):
37
+ """
38
+ The set of arguments for constructing a Invocation resource.
39
+ :param pulumi.Input[str] command_content: The command content. You need to pay attention:
40
+ - Specify the parameter 'EnableParameter = true' to enable the custom parameter feature in the command content.
41
+ - Define custom parameters in the form of {{}} inclusion, and spaces and line breaks before and after the parameter name in '{{}}' are ignored.
42
+ - The number of custom parameters cannot exceed 20.
43
+ - Custom parameter names can a-zA-Z0-9 a combination of-_. Other characters are not supported. Parameter names are not case-sensitive.
44
+ - A single custom parameter name cannot exceed 64 bytes.
45
+ :param pulumi.Input[str] command_id: Command ID
46
+ :param pulumi.Input[str] content_encoding: The encoding of the script content. Value range:
47
+ - PlainText: no encoding, using PlainText transmission.
48
+ - Base64:Base64 encoding.
49
+
50
+ Default value: PlainText. If you fill it randomly or wrongly, the value will be treated as a PlainText.
51
+ :param pulumi.Input[str] description: The command description.
52
+ :param pulumi.Input[bool] enable_parameter: Whether custom parameters are included in the command.
53
+ Default value: false.
54
+ :param pulumi.Input[str] frequency: The execution time of the scheduled execution command. Currently, three scheduled execution methods are supported: fixed interval execution (based on Rate expression), only once at a specified time, and timed execution based on clock (based on Cron expression).
55
+ - Fixed time interval execution: Based on the Rate expression, the command is executed at the set time interval. Time intervals can be selected by seconds (s), minutes (m), hours (h), and days (d), which is suitable for scenarios where tasks are executed at fixed time intervals. The format is rate( ). If the execution is performed every 5 minutes, the format is rate(5m). Executing with a fixed time interval has the following limitations:
56
+ - The set time interval is no more than 7 days and no less than 60 seconds, and must be greater than the timeout period of the scheduled task.
57
+ - The execution interval is based only on a fixed frequency, independent of the time the task actually takes to execute. For example, if the command is executed every 5 minutes and the task takes 2 minutes to complete, the next round will be executed 3 minutes after the task is completed.
58
+ - The task is not executed immediately when it is created. For example, if a command is executed every 5 minutes, the command is not executed immediately when a task is created, but is executed 5 minutes after the task is created.
59
+ - Execute only once at the specified time: Execute the command once according to the set time zone and execution time point. The format is at(yyyy-MM-dd HH:mm:ss ), that is, at (year-month-day time: minute: Second ). If you do not specify a time zone, the default is the UTC time zone. Time zones can be in the following three formats: the full name of the time zone, such as Asia/Shanghai (China/Shanghai time), America/los_angles (United States/Los Angeles time), and so on. The offset of the time zone relative to Greenwich Mean Time: E.G. GMT +8:00 (East Zone 8), GMT-7 (West Zone 7), etc. When using the GMT format, the hour bit does not support adding leading zeros. Time zone abbreviation: Only UTC (Coordinated Universal Time) is supported.
60
+ If it is specified to be executed once 13:15:30 June 06, 2022, China/Shanghai time, the format is at (Asia/Shanghai, 2022-06-06 13:15:30); If it is specified to be executed once 13:15:30 June 06, 2022, the format is at(2022-06-06 13:15:30 GMT-7:00).
61
+ - Timing based on clock (based on Cron expression): Based on Cron expression, commands are executed according to the set timing task. The format is , that is, . In the specified time zone, calculate the execution time of the scheduled task based on the Cron expression and execute it. If no time zone is specified, the default time zone is the internal time zone of the scheduled task instance. For more information about Cron expressions, see Cron Expressions. Time zones support the following three forms:
62
+ - Full time zone name: such as Asia/Shanghai (China/Shanghai time), America/los_angles (US/Los Angeles time), etc.
63
+ - The offset of the time zone relative to Greenwich Mean Time: E.G. GMT +8:00 (East Zone 8), GMT-7 (West Zone 7), etc. When using the GMT format, the hour bit does not support adding leading zeros.
64
+ - Time zone abbreviation: Only UTC (Coordinated Universal Time) is supported.
65
+
66
+ For example, in China/Shanghai time, the command will be executed once every day at 10:15 am in 2022 in the format 0 15 10? * * 2022 Asia/Shanghai; In the eastern 8th District time, it will be executed every half hour from 10:00 a.m. to 11:30 a.m. every day in 2022, in the format of 0 0/30 10-11 * *? 2022 GMT +8:00; In UTC time, starting from 2022, it will be executed every 5 minutes from 14:00 P.M. to 14:55 p. M. Every two years in October, in the format of 0 0/5 14*10? 2022/2 UTC.
67
+ :param pulumi.Input[str] launcher: The bootstrapper for script execution. The length cannot exceed 1KB.
68
+ :param pulumi.Input[str] name: The command name.
69
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] node_id_lists: A list of nodes.
70
+ :param pulumi.Input[Mapping[str, pulumi.Input[str]]] parameters: When the command contains custom parameters, the key-value pair of the custom parameters passed in when the command is executed. For example, if the command content is 'echo {{name}}', the key-value pair'{"name":"Jack"}'can be passed through the 'Parameter' parameter'. The custom parameter will automatically replace the variable value 'name' to get a new command that actually executes 'echo Jack '.
71
+
72
+ The number of custom parameters ranges from 0 to 10, and you need to pay attention:
73
+ - The key is not allowed to be an empty string and supports a maximum of 64 characters.
74
+ - The value is allowed to be an empty string.
75
+ - After the custom parameters and the original command content are encoded in Base64, if the command is saved, the size of the command content after Base64 encoding cannot exceed 18KB. If the command is not saved, the size of the command content after Base64 encoding cannot exceed 24KB. You can set whether to keep the command through 'KeepCommand.
76
+ - The set of custom parameter names must be a subset of the parameter set defined when the command is created. For parameters that are not passed in, you can use an empty string instead.
77
+
78
+ The default value is empty, which means that the parameter is unset and the custom parameter is disabled.
79
+ :param pulumi.Input[str] repeat_mode: Sets the way the command is executed. Value range:
80
+ - Once: Execute the command immediately.
81
+ - Period: executes the command regularly. When the value of this parameter is 'Period', the 'Frequency' parameter must also be specified.
82
+ - NextRebootOnly: Automatically execute the command when the instance is next started.
83
+ - EveryReboot: The command is automatically executed every time the instance is started.
84
+
85
+ Default:
86
+ - When the'frequency' parameter is not specified, the default value is'once '.
87
+ - When the'frequency' parameter is specified, regardless of whether the parameter value has been set or not, it will be processed according to'period.
88
+ :param pulumi.Input[str] termination_mode: The mode when the task is stopped (manually stopped or execution time-out interrupted). Possible values:
89
+ Process: Stops the current script Process.
90
+ ProcessTree: Stops the current process tree (the script process and the collection of all child processes it created)
91
+ :param pulumi.Input[int] timeout: The timeout period for command execution. Unit: seconds. A timeout occurs when a command cannot be run due to a process, a missing module, or a missing cloud assistant Agent. After the timeout, the command process is forcibly terminated. Default value: 60.
92
+ :param pulumi.Input[str] username: The name of the user who executed the command in the instance. The length must not exceed 255 characters.
93
+ The instance of the Linux system. By default, the root user runs commands.
94
+ :param pulumi.Input[str] working_dir: You can customize the command execution path. The default path is as follows:
95
+ Linux instance: the execution path is in the/home directory of the root user by default.
96
+ """
97
+ if command_content is not None:
98
+ pulumi.set(__self__, "command_content", command_content)
99
+ if command_id is not None:
100
+ pulumi.set(__self__, "command_id", command_id)
101
+ if content_encoding is not None:
102
+ pulumi.set(__self__, "content_encoding", content_encoding)
103
+ if description is not None:
104
+ pulumi.set(__self__, "description", description)
105
+ if enable_parameter is not None:
106
+ pulumi.set(__self__, "enable_parameter", enable_parameter)
107
+ if frequency is not None:
108
+ pulumi.set(__self__, "frequency", frequency)
109
+ if launcher is not None:
110
+ pulumi.set(__self__, "launcher", launcher)
111
+ if name is not None:
112
+ pulumi.set(__self__, "name", name)
113
+ if node_id_lists is not None:
114
+ pulumi.set(__self__, "node_id_lists", node_id_lists)
115
+ if parameters is not None:
116
+ pulumi.set(__self__, "parameters", parameters)
117
+ if repeat_mode is not None:
118
+ pulumi.set(__self__, "repeat_mode", repeat_mode)
119
+ if termination_mode is not None:
120
+ pulumi.set(__self__, "termination_mode", termination_mode)
121
+ if timeout is not None:
122
+ pulumi.set(__self__, "timeout", timeout)
123
+ if username is not None:
124
+ pulumi.set(__self__, "username", username)
125
+ if working_dir is not None:
126
+ pulumi.set(__self__, "working_dir", working_dir)
127
+
128
+ @property
129
+ @pulumi.getter(name="commandContent")
130
+ def command_content(self) -> Optional[pulumi.Input[str]]:
131
+ """
132
+ The command content. You need to pay attention:
133
+ - Specify the parameter 'EnableParameter = true' to enable the custom parameter feature in the command content.
134
+ - Define custom parameters in the form of {{}} inclusion, and spaces and line breaks before and after the parameter name in '{{}}' are ignored.
135
+ - The number of custom parameters cannot exceed 20.
136
+ - Custom parameter names can a-zA-Z0-9 a combination of-_. Other characters are not supported. Parameter names are not case-sensitive.
137
+ - A single custom parameter name cannot exceed 64 bytes.
138
+ """
139
+ return pulumi.get(self, "command_content")
140
+
141
+ @command_content.setter
142
+ def command_content(self, value: Optional[pulumi.Input[str]]):
143
+ pulumi.set(self, "command_content", value)
144
+
145
+ @property
146
+ @pulumi.getter(name="commandId")
147
+ def command_id(self) -> Optional[pulumi.Input[str]]:
148
+ """
149
+ Command ID
150
+ """
151
+ return pulumi.get(self, "command_id")
152
+
153
+ @command_id.setter
154
+ def command_id(self, value: Optional[pulumi.Input[str]]):
155
+ pulumi.set(self, "command_id", value)
156
+
157
+ @property
158
+ @pulumi.getter(name="contentEncoding")
159
+ def content_encoding(self) -> Optional[pulumi.Input[str]]:
160
+ """
161
+ The encoding of the script content. Value range:
162
+ - PlainText: no encoding, using PlainText transmission.
163
+ - Base64:Base64 encoding.
164
+
165
+ Default value: PlainText. If you fill it randomly or wrongly, the value will be treated as a PlainText.
166
+ """
167
+ return pulumi.get(self, "content_encoding")
168
+
169
+ @content_encoding.setter
170
+ def content_encoding(self, value: Optional[pulumi.Input[str]]):
171
+ pulumi.set(self, "content_encoding", value)
172
+
173
+ @property
174
+ @pulumi.getter
175
+ def description(self) -> Optional[pulumi.Input[str]]:
176
+ """
177
+ The command description.
178
+ """
179
+ return pulumi.get(self, "description")
180
+
181
+ @description.setter
182
+ def description(self, value: Optional[pulumi.Input[str]]):
183
+ pulumi.set(self, "description", value)
184
+
185
+ @property
186
+ @pulumi.getter(name="enableParameter")
187
+ def enable_parameter(self) -> Optional[pulumi.Input[bool]]:
188
+ """
189
+ Whether custom parameters are included in the command.
190
+ Default value: false.
191
+ """
192
+ return pulumi.get(self, "enable_parameter")
193
+
194
+ @enable_parameter.setter
195
+ def enable_parameter(self, value: Optional[pulumi.Input[bool]]):
196
+ pulumi.set(self, "enable_parameter", value)
197
+
198
+ @property
199
+ @pulumi.getter
200
+ def frequency(self) -> Optional[pulumi.Input[str]]:
201
+ """
202
+ The execution time of the scheduled execution command. Currently, three scheduled execution methods are supported: fixed interval execution (based on Rate expression), only once at a specified time, and timed execution based on clock (based on Cron expression).
203
+ - Fixed time interval execution: Based on the Rate expression, the command is executed at the set time interval. Time intervals can be selected by seconds (s), minutes (m), hours (h), and days (d), which is suitable for scenarios where tasks are executed at fixed time intervals. The format is rate( ). If the execution is performed every 5 minutes, the format is rate(5m). Executing with a fixed time interval has the following limitations:
204
+ - The set time interval is no more than 7 days and no less than 60 seconds, and must be greater than the timeout period of the scheduled task.
205
+ - The execution interval is based only on a fixed frequency, independent of the time the task actually takes to execute. For example, if the command is executed every 5 minutes and the task takes 2 minutes to complete, the next round will be executed 3 minutes after the task is completed.
206
+ - The task is not executed immediately when it is created. For example, if a command is executed every 5 minutes, the command is not executed immediately when a task is created, but is executed 5 minutes after the task is created.
207
+ - Execute only once at the specified time: Execute the command once according to the set time zone and execution time point. The format is at(yyyy-MM-dd HH:mm:ss ), that is, at (year-month-day time: minute: Second ). If you do not specify a time zone, the default is the UTC time zone. Time zones can be in the following three formats: the full name of the time zone, such as Asia/Shanghai (China/Shanghai time), America/los_angles (United States/Los Angeles time), and so on. The offset of the time zone relative to Greenwich Mean Time: E.G. GMT +8:00 (East Zone 8), GMT-7 (West Zone 7), etc. When using the GMT format, the hour bit does not support adding leading zeros. Time zone abbreviation: Only UTC (Coordinated Universal Time) is supported.
208
+ If it is specified to be executed once 13:15:30 June 06, 2022, China/Shanghai time, the format is at (Asia/Shanghai, 2022-06-06 13:15:30); If it is specified to be executed once 13:15:30 June 06, 2022, the format is at(2022-06-06 13:15:30 GMT-7:00).
209
+ - Timing based on clock (based on Cron expression): Based on Cron expression, commands are executed according to the set timing task. The format is , that is, . In the specified time zone, calculate the execution time of the scheduled task based on the Cron expression and execute it. If no time zone is specified, the default time zone is the internal time zone of the scheduled task instance. For more information about Cron expressions, see Cron Expressions. Time zones support the following three forms:
210
+ - Full time zone name: such as Asia/Shanghai (China/Shanghai time), America/los_angles (US/Los Angeles time), etc.
211
+ - The offset of the time zone relative to Greenwich Mean Time: E.G. GMT +8:00 (East Zone 8), GMT-7 (West Zone 7), etc. When using the GMT format, the hour bit does not support adding leading zeros.
212
+ - Time zone abbreviation: Only UTC (Coordinated Universal Time) is supported.
213
+
214
+ For example, in China/Shanghai time, the command will be executed once every day at 10:15 am in 2022 in the format 0 15 10? * * 2022 Asia/Shanghai; In the eastern 8th District time, it will be executed every half hour from 10:00 a.m. to 11:30 a.m. every day in 2022, in the format of 0 0/30 10-11 * *? 2022 GMT +8:00; In UTC time, starting from 2022, it will be executed every 5 minutes from 14:00 P.M. to 14:55 p. M. Every two years in October, in the format of 0 0/5 14*10? 2022/2 UTC.
215
+ """
216
+ return pulumi.get(self, "frequency")
217
+
218
+ @frequency.setter
219
+ def frequency(self, value: Optional[pulumi.Input[str]]):
220
+ pulumi.set(self, "frequency", value)
221
+
222
+ @property
223
+ @pulumi.getter
224
+ def launcher(self) -> Optional[pulumi.Input[str]]:
225
+ """
226
+ The bootstrapper for script execution. The length cannot exceed 1KB.
227
+ """
228
+ return pulumi.get(self, "launcher")
229
+
230
+ @launcher.setter
231
+ def launcher(self, value: Optional[pulumi.Input[str]]):
232
+ pulumi.set(self, "launcher", value)
233
+
234
+ @property
235
+ @pulumi.getter
236
+ def name(self) -> Optional[pulumi.Input[str]]:
237
+ """
238
+ The command name.
239
+ """
240
+ return pulumi.get(self, "name")
241
+
242
+ @name.setter
243
+ def name(self, value: Optional[pulumi.Input[str]]):
244
+ pulumi.set(self, "name", value)
245
+
246
+ @property
247
+ @pulumi.getter(name="nodeIdLists")
248
+ def node_id_lists(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
249
+ """
250
+ A list of nodes.
251
+ """
252
+ return pulumi.get(self, "node_id_lists")
253
+
254
+ @node_id_lists.setter
255
+ def node_id_lists(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
256
+ pulumi.set(self, "node_id_lists", value)
257
+
258
+ @property
259
+ @pulumi.getter
260
+ def parameters(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
261
+ """
262
+ When the command contains custom parameters, the key-value pair of the custom parameters passed in when the command is executed. For example, if the command content is 'echo {{name}}', the key-value pair'{"name":"Jack"}'can be passed through the 'Parameter' parameter'. The custom parameter will automatically replace the variable value 'name' to get a new command that actually executes 'echo Jack '.
263
+
264
+ The number of custom parameters ranges from 0 to 10, and you need to pay attention:
265
+ - The key is not allowed to be an empty string and supports a maximum of 64 characters.
266
+ - The value is allowed to be an empty string.
267
+ - After the custom parameters and the original command content are encoded in Base64, if the command is saved, the size of the command content after Base64 encoding cannot exceed 18KB. If the command is not saved, the size of the command content after Base64 encoding cannot exceed 24KB. You can set whether to keep the command through 'KeepCommand.
268
+ - The set of custom parameter names must be a subset of the parameter set defined when the command is created. For parameters that are not passed in, you can use an empty string instead.
269
+
270
+ The default value is empty, which means that the parameter is unset and the custom parameter is disabled.
271
+ """
272
+ return pulumi.get(self, "parameters")
273
+
274
+ @parameters.setter
275
+ def parameters(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
276
+ pulumi.set(self, "parameters", value)
277
+
278
+ @property
279
+ @pulumi.getter(name="repeatMode")
280
+ def repeat_mode(self) -> Optional[pulumi.Input[str]]:
281
+ """
282
+ Sets the way the command is executed. Value range:
283
+ - Once: Execute the command immediately.
284
+ - Period: executes the command regularly. When the value of this parameter is 'Period', the 'Frequency' parameter must also be specified.
285
+ - NextRebootOnly: Automatically execute the command when the instance is next started.
286
+ - EveryReboot: The command is automatically executed every time the instance is started.
287
+
288
+ Default:
289
+ - When the'frequency' parameter is not specified, the default value is'once '.
290
+ - When the'frequency' parameter is specified, regardless of whether the parameter value has been set or not, it will be processed according to'period.
291
+ """
292
+ return pulumi.get(self, "repeat_mode")
293
+
294
+ @repeat_mode.setter
295
+ def repeat_mode(self, value: Optional[pulumi.Input[str]]):
296
+ pulumi.set(self, "repeat_mode", value)
297
+
298
+ @property
299
+ @pulumi.getter(name="terminationMode")
300
+ def termination_mode(self) -> Optional[pulumi.Input[str]]:
301
+ """
302
+ The mode when the task is stopped (manually stopped or execution time-out interrupted). Possible values:
303
+ Process: Stops the current script Process.
304
+ ProcessTree: Stops the current process tree (the script process and the collection of all child processes it created)
305
+ """
306
+ return pulumi.get(self, "termination_mode")
307
+
308
+ @termination_mode.setter
309
+ def termination_mode(self, value: Optional[pulumi.Input[str]]):
310
+ pulumi.set(self, "termination_mode", value)
311
+
312
+ @property
313
+ @pulumi.getter
314
+ def timeout(self) -> Optional[pulumi.Input[int]]:
315
+ """
316
+ The timeout period for command execution. Unit: seconds. A timeout occurs when a command cannot be run due to a process, a missing module, or a missing cloud assistant Agent. After the timeout, the command process is forcibly terminated. Default value: 60.
317
+ """
318
+ return pulumi.get(self, "timeout")
319
+
320
+ @timeout.setter
321
+ def timeout(self, value: Optional[pulumi.Input[int]]):
322
+ pulumi.set(self, "timeout", value)
323
+
324
+ @property
325
+ @pulumi.getter
326
+ def username(self) -> Optional[pulumi.Input[str]]:
327
+ """
328
+ The name of the user who executed the command in the instance. The length must not exceed 255 characters.
329
+ The instance of the Linux system. By default, the root user runs commands.
330
+ """
331
+ return pulumi.get(self, "username")
332
+
333
+ @username.setter
334
+ def username(self, value: Optional[pulumi.Input[str]]):
335
+ pulumi.set(self, "username", value)
336
+
337
+ @property
338
+ @pulumi.getter(name="workingDir")
339
+ def working_dir(self) -> Optional[pulumi.Input[str]]:
340
+ """
341
+ You can customize the command execution path. The default path is as follows:
342
+ Linux instance: the execution path is in the/home directory of the root user by default.
343
+ """
344
+ return pulumi.get(self, "working_dir")
345
+
346
+ @working_dir.setter
347
+ def working_dir(self, value: Optional[pulumi.Input[str]]):
348
+ pulumi.set(self, "working_dir", value)
349
+
350
+
351
+ @pulumi.input_type
352
+ class _InvocationState:
353
+ def __init__(__self__, *,
354
+ command_content: Optional[pulumi.Input[str]] = None,
355
+ command_id: Optional[pulumi.Input[str]] = None,
356
+ content_encoding: Optional[pulumi.Input[str]] = None,
357
+ description: Optional[pulumi.Input[str]] = None,
358
+ enable_parameter: Optional[pulumi.Input[bool]] = None,
359
+ frequency: Optional[pulumi.Input[str]] = None,
360
+ launcher: Optional[pulumi.Input[str]] = None,
361
+ name: Optional[pulumi.Input[str]] = None,
362
+ node_id_lists: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
363
+ parameters: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
364
+ repeat_mode: Optional[pulumi.Input[str]] = None,
365
+ termination_mode: Optional[pulumi.Input[str]] = None,
366
+ timeout: Optional[pulumi.Input[int]] = None,
367
+ username: Optional[pulumi.Input[str]] = None,
368
+ working_dir: Optional[pulumi.Input[str]] = None):
369
+ """
370
+ Input properties used for looking up and filtering Invocation resources.
371
+ :param pulumi.Input[str] command_content: The command content. You need to pay attention:
372
+ - Specify the parameter 'EnableParameter = true' to enable the custom parameter feature in the command content.
373
+ - Define custom parameters in the form of {{}} inclusion, and spaces and line breaks before and after the parameter name in '{{}}' are ignored.
374
+ - The number of custom parameters cannot exceed 20.
375
+ - Custom parameter names can a-zA-Z0-9 a combination of-_. Other characters are not supported. Parameter names are not case-sensitive.
376
+ - A single custom parameter name cannot exceed 64 bytes.
377
+ :param pulumi.Input[str] command_id: Command ID
378
+ :param pulumi.Input[str] content_encoding: The encoding of the script content. Value range:
379
+ - PlainText: no encoding, using PlainText transmission.
380
+ - Base64:Base64 encoding.
381
+
382
+ Default value: PlainText. If you fill it randomly or wrongly, the value will be treated as a PlainText.
383
+ :param pulumi.Input[str] description: The command description.
384
+ :param pulumi.Input[bool] enable_parameter: Whether custom parameters are included in the command.
385
+ Default value: false.
386
+ :param pulumi.Input[str] frequency: The execution time of the scheduled execution command. Currently, three scheduled execution methods are supported: fixed interval execution (based on Rate expression), only once at a specified time, and timed execution based on clock (based on Cron expression).
387
+ - Fixed time interval execution: Based on the Rate expression, the command is executed at the set time interval. Time intervals can be selected by seconds (s), minutes (m), hours (h), and days (d), which is suitable for scenarios where tasks are executed at fixed time intervals. The format is rate( ). If the execution is performed every 5 minutes, the format is rate(5m). Executing with a fixed time interval has the following limitations:
388
+ - The set time interval is no more than 7 days and no less than 60 seconds, and must be greater than the timeout period of the scheduled task.
389
+ - The execution interval is based only on a fixed frequency, independent of the time the task actually takes to execute. For example, if the command is executed every 5 minutes and the task takes 2 minutes to complete, the next round will be executed 3 minutes after the task is completed.
390
+ - The task is not executed immediately when it is created. For example, if a command is executed every 5 minutes, the command is not executed immediately when a task is created, but is executed 5 minutes after the task is created.
391
+ - Execute only once at the specified time: Execute the command once according to the set time zone and execution time point. The format is at(yyyy-MM-dd HH:mm:ss ), that is, at (year-month-day time: minute: Second ). If you do not specify a time zone, the default is the UTC time zone. Time zones can be in the following three formats: the full name of the time zone, such as Asia/Shanghai (China/Shanghai time), America/los_angles (United States/Los Angeles time), and so on. The offset of the time zone relative to Greenwich Mean Time: E.G. GMT +8:00 (East Zone 8), GMT-7 (West Zone 7), etc. When using the GMT format, the hour bit does not support adding leading zeros. Time zone abbreviation: Only UTC (Coordinated Universal Time) is supported.
392
+ If it is specified to be executed once 13:15:30 June 06, 2022, China/Shanghai time, the format is at (Asia/Shanghai, 2022-06-06 13:15:30); If it is specified to be executed once 13:15:30 June 06, 2022, the format is at(2022-06-06 13:15:30 GMT-7:00).
393
+ - Timing based on clock (based on Cron expression): Based on Cron expression, commands are executed according to the set timing task. The format is , that is, . In the specified time zone, calculate the execution time of the scheduled task based on the Cron expression and execute it. If no time zone is specified, the default time zone is the internal time zone of the scheduled task instance. For more information about Cron expressions, see Cron Expressions. Time zones support the following three forms:
394
+ - Full time zone name: such as Asia/Shanghai (China/Shanghai time), America/los_angles (US/Los Angeles time), etc.
395
+ - The offset of the time zone relative to Greenwich Mean Time: E.G. GMT +8:00 (East Zone 8), GMT-7 (West Zone 7), etc. When using the GMT format, the hour bit does not support adding leading zeros.
396
+ - Time zone abbreviation: Only UTC (Coordinated Universal Time) is supported.
397
+
398
+ For example, in China/Shanghai time, the command will be executed once every day at 10:15 am in 2022 in the format 0 15 10? * * 2022 Asia/Shanghai; In the eastern 8th District time, it will be executed every half hour from 10:00 a.m. to 11:30 a.m. every day in 2022, in the format of 0 0/30 10-11 * *? 2022 GMT +8:00; In UTC time, starting from 2022, it will be executed every 5 minutes from 14:00 P.M. to 14:55 p. M. Every two years in October, in the format of 0 0/5 14*10? 2022/2 UTC.
399
+ :param pulumi.Input[str] launcher: The bootstrapper for script execution. The length cannot exceed 1KB.
400
+ :param pulumi.Input[str] name: The command name.
401
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] node_id_lists: A list of nodes.
402
+ :param pulumi.Input[Mapping[str, pulumi.Input[str]]] parameters: When the command contains custom parameters, the key-value pair of the custom parameters passed in when the command is executed. For example, if the command content is 'echo {{name}}', the key-value pair'{"name":"Jack"}'can be passed through the 'Parameter' parameter'. The custom parameter will automatically replace the variable value 'name' to get a new command that actually executes 'echo Jack '.
403
+
404
+ The number of custom parameters ranges from 0 to 10, and you need to pay attention:
405
+ - The key is not allowed to be an empty string and supports a maximum of 64 characters.
406
+ - The value is allowed to be an empty string.
407
+ - After the custom parameters and the original command content are encoded in Base64, if the command is saved, the size of the command content after Base64 encoding cannot exceed 18KB. If the command is not saved, the size of the command content after Base64 encoding cannot exceed 24KB. You can set whether to keep the command through 'KeepCommand.
408
+ - The set of custom parameter names must be a subset of the parameter set defined when the command is created. For parameters that are not passed in, you can use an empty string instead.
409
+
410
+ The default value is empty, which means that the parameter is unset and the custom parameter is disabled.
411
+ :param pulumi.Input[str] repeat_mode: Sets the way the command is executed. Value range:
412
+ - Once: Execute the command immediately.
413
+ - Period: executes the command regularly. When the value of this parameter is 'Period', the 'Frequency' parameter must also be specified.
414
+ - NextRebootOnly: Automatically execute the command when the instance is next started.
415
+ - EveryReboot: The command is automatically executed every time the instance is started.
416
+
417
+ Default:
418
+ - When the'frequency' parameter is not specified, the default value is'once '.
419
+ - When the'frequency' parameter is specified, regardless of whether the parameter value has been set or not, it will be processed according to'period.
420
+ :param pulumi.Input[str] termination_mode: The mode when the task is stopped (manually stopped or execution time-out interrupted). Possible values:
421
+ Process: Stops the current script Process.
422
+ ProcessTree: Stops the current process tree (the script process and the collection of all child processes it created)
423
+ :param pulumi.Input[int] timeout: The timeout period for command execution. Unit: seconds. A timeout occurs when a command cannot be run due to a process, a missing module, or a missing cloud assistant Agent. After the timeout, the command process is forcibly terminated. Default value: 60.
424
+ :param pulumi.Input[str] username: The name of the user who executed the command in the instance. The length must not exceed 255 characters.
425
+ The instance of the Linux system. By default, the root user runs commands.
426
+ :param pulumi.Input[str] working_dir: You can customize the command execution path. The default path is as follows:
427
+ Linux instance: the execution path is in the/home directory of the root user by default.
428
+ """
429
+ if command_content is not None:
430
+ pulumi.set(__self__, "command_content", command_content)
431
+ if command_id is not None:
432
+ pulumi.set(__self__, "command_id", command_id)
433
+ if content_encoding is not None:
434
+ pulumi.set(__self__, "content_encoding", content_encoding)
435
+ if description is not None:
436
+ pulumi.set(__self__, "description", description)
437
+ if enable_parameter is not None:
438
+ pulumi.set(__self__, "enable_parameter", enable_parameter)
439
+ if frequency is not None:
440
+ pulumi.set(__self__, "frequency", frequency)
441
+ if launcher is not None:
442
+ pulumi.set(__self__, "launcher", launcher)
443
+ if name is not None:
444
+ pulumi.set(__self__, "name", name)
445
+ if node_id_lists is not None:
446
+ pulumi.set(__self__, "node_id_lists", node_id_lists)
447
+ if parameters is not None:
448
+ pulumi.set(__self__, "parameters", parameters)
449
+ if repeat_mode is not None:
450
+ pulumi.set(__self__, "repeat_mode", repeat_mode)
451
+ if termination_mode is not None:
452
+ pulumi.set(__self__, "termination_mode", termination_mode)
453
+ if timeout is not None:
454
+ pulumi.set(__self__, "timeout", timeout)
455
+ if username is not None:
456
+ pulumi.set(__self__, "username", username)
457
+ if working_dir is not None:
458
+ pulumi.set(__self__, "working_dir", working_dir)
459
+
460
+ @property
461
+ @pulumi.getter(name="commandContent")
462
+ def command_content(self) -> Optional[pulumi.Input[str]]:
463
+ """
464
+ The command content. You need to pay attention:
465
+ - Specify the parameter 'EnableParameter = true' to enable the custom parameter feature in the command content.
466
+ - Define custom parameters in the form of {{}} inclusion, and spaces and line breaks before and after the parameter name in '{{}}' are ignored.
467
+ - The number of custom parameters cannot exceed 20.
468
+ - Custom parameter names can a-zA-Z0-9 a combination of-_. Other characters are not supported. Parameter names are not case-sensitive.
469
+ - A single custom parameter name cannot exceed 64 bytes.
470
+ """
471
+ return pulumi.get(self, "command_content")
472
+
473
+ @command_content.setter
474
+ def command_content(self, value: Optional[pulumi.Input[str]]):
475
+ pulumi.set(self, "command_content", value)
476
+
477
+ @property
478
+ @pulumi.getter(name="commandId")
479
+ def command_id(self) -> Optional[pulumi.Input[str]]:
480
+ """
481
+ Command ID
482
+ """
483
+ return pulumi.get(self, "command_id")
484
+
485
+ @command_id.setter
486
+ def command_id(self, value: Optional[pulumi.Input[str]]):
487
+ pulumi.set(self, "command_id", value)
488
+
489
+ @property
490
+ @pulumi.getter(name="contentEncoding")
491
+ def content_encoding(self) -> Optional[pulumi.Input[str]]:
492
+ """
493
+ The encoding of the script content. Value range:
494
+ - PlainText: no encoding, using PlainText transmission.
495
+ - Base64:Base64 encoding.
496
+
497
+ Default value: PlainText. If you fill it randomly or wrongly, the value will be treated as a PlainText.
498
+ """
499
+ return pulumi.get(self, "content_encoding")
500
+
501
+ @content_encoding.setter
502
+ def content_encoding(self, value: Optional[pulumi.Input[str]]):
503
+ pulumi.set(self, "content_encoding", value)
504
+
505
+ @property
506
+ @pulumi.getter
507
+ def description(self) -> Optional[pulumi.Input[str]]:
508
+ """
509
+ The command description.
510
+ """
511
+ return pulumi.get(self, "description")
512
+
513
+ @description.setter
514
+ def description(self, value: Optional[pulumi.Input[str]]):
515
+ pulumi.set(self, "description", value)
516
+
517
+ @property
518
+ @pulumi.getter(name="enableParameter")
519
+ def enable_parameter(self) -> Optional[pulumi.Input[bool]]:
520
+ """
521
+ Whether custom parameters are included in the command.
522
+ Default value: false.
523
+ """
524
+ return pulumi.get(self, "enable_parameter")
525
+
526
+ @enable_parameter.setter
527
+ def enable_parameter(self, value: Optional[pulumi.Input[bool]]):
528
+ pulumi.set(self, "enable_parameter", value)
529
+
530
+ @property
531
+ @pulumi.getter
532
+ def frequency(self) -> Optional[pulumi.Input[str]]:
533
+ """
534
+ The execution time of the scheduled execution command. Currently, three scheduled execution methods are supported: fixed interval execution (based on Rate expression), only once at a specified time, and timed execution based on clock (based on Cron expression).
535
+ - Fixed time interval execution: Based on the Rate expression, the command is executed at the set time interval. Time intervals can be selected by seconds (s), minutes (m), hours (h), and days (d), which is suitable for scenarios where tasks are executed at fixed time intervals. The format is rate( ). If the execution is performed every 5 minutes, the format is rate(5m). Executing with a fixed time interval has the following limitations:
536
+ - The set time interval is no more than 7 days and no less than 60 seconds, and must be greater than the timeout period of the scheduled task.
537
+ - The execution interval is based only on a fixed frequency, independent of the time the task actually takes to execute. For example, if the command is executed every 5 minutes and the task takes 2 minutes to complete, the next round will be executed 3 minutes after the task is completed.
538
+ - The task is not executed immediately when it is created. For example, if a command is executed every 5 minutes, the command is not executed immediately when a task is created, but is executed 5 minutes after the task is created.
539
+ - Execute only once at the specified time: Execute the command once according to the set time zone and execution time point. The format is at(yyyy-MM-dd HH:mm:ss ), that is, at (year-month-day time: minute: Second ). If you do not specify a time zone, the default is the UTC time zone. Time zones can be in the following three formats: the full name of the time zone, such as Asia/Shanghai (China/Shanghai time), America/los_angles (United States/Los Angeles time), and so on. The offset of the time zone relative to Greenwich Mean Time: E.G. GMT +8:00 (East Zone 8), GMT-7 (West Zone 7), etc. When using the GMT format, the hour bit does not support adding leading zeros. Time zone abbreviation: Only UTC (Coordinated Universal Time) is supported.
540
+ If it is specified to be executed once 13:15:30 June 06, 2022, China/Shanghai time, the format is at (Asia/Shanghai, 2022-06-06 13:15:30); If it is specified to be executed once 13:15:30 June 06, 2022, the format is at(2022-06-06 13:15:30 GMT-7:00).
541
+ - Timing based on clock (based on Cron expression): Based on Cron expression, commands are executed according to the set timing task. The format is , that is, . In the specified time zone, calculate the execution time of the scheduled task based on the Cron expression and execute it. If no time zone is specified, the default time zone is the internal time zone of the scheduled task instance. For more information about Cron expressions, see Cron Expressions. Time zones support the following three forms:
542
+ - Full time zone name: such as Asia/Shanghai (China/Shanghai time), America/los_angles (US/Los Angeles time), etc.
543
+ - The offset of the time zone relative to Greenwich Mean Time: E.G. GMT +8:00 (East Zone 8), GMT-7 (West Zone 7), etc. When using the GMT format, the hour bit does not support adding leading zeros.
544
+ - Time zone abbreviation: Only UTC (Coordinated Universal Time) is supported.
545
+
546
+ For example, in China/Shanghai time, the command will be executed once every day at 10:15 am in 2022 in the format 0 15 10? * * 2022 Asia/Shanghai; In the eastern 8th District time, it will be executed every half hour from 10:00 a.m. to 11:30 a.m. every day in 2022, in the format of 0 0/30 10-11 * *? 2022 GMT +8:00; In UTC time, starting from 2022, it will be executed every 5 minutes from 14:00 P.M. to 14:55 p. M. Every two years in October, in the format of 0 0/5 14*10? 2022/2 UTC.
547
+ """
548
+ return pulumi.get(self, "frequency")
549
+
550
+ @frequency.setter
551
+ def frequency(self, value: Optional[pulumi.Input[str]]):
552
+ pulumi.set(self, "frequency", value)
553
+
554
+ @property
555
+ @pulumi.getter
556
+ def launcher(self) -> Optional[pulumi.Input[str]]:
557
+ """
558
+ The bootstrapper for script execution. The length cannot exceed 1KB.
559
+ """
560
+ return pulumi.get(self, "launcher")
561
+
562
+ @launcher.setter
563
+ def launcher(self, value: Optional[pulumi.Input[str]]):
564
+ pulumi.set(self, "launcher", value)
565
+
566
+ @property
567
+ @pulumi.getter
568
+ def name(self) -> Optional[pulumi.Input[str]]:
569
+ """
570
+ The command name.
571
+ """
572
+ return pulumi.get(self, "name")
573
+
574
+ @name.setter
575
+ def name(self, value: Optional[pulumi.Input[str]]):
576
+ pulumi.set(self, "name", value)
577
+
578
+ @property
579
+ @pulumi.getter(name="nodeIdLists")
580
+ def node_id_lists(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
581
+ """
582
+ A list of nodes.
583
+ """
584
+ return pulumi.get(self, "node_id_lists")
585
+
586
+ @node_id_lists.setter
587
+ def node_id_lists(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
588
+ pulumi.set(self, "node_id_lists", value)
589
+
590
+ @property
591
+ @pulumi.getter
592
+ def parameters(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
593
+ """
594
+ When the command contains custom parameters, the key-value pair of the custom parameters passed in when the command is executed. For example, if the command content is 'echo {{name}}', the key-value pair'{"name":"Jack"}'can be passed through the 'Parameter' parameter'. The custom parameter will automatically replace the variable value 'name' to get a new command that actually executes 'echo Jack '.
595
+
596
+ The number of custom parameters ranges from 0 to 10, and you need to pay attention:
597
+ - The key is not allowed to be an empty string and supports a maximum of 64 characters.
598
+ - The value is allowed to be an empty string.
599
+ - After the custom parameters and the original command content are encoded in Base64, if the command is saved, the size of the command content after Base64 encoding cannot exceed 18KB. If the command is not saved, the size of the command content after Base64 encoding cannot exceed 24KB. You can set whether to keep the command through 'KeepCommand.
600
+ - The set of custom parameter names must be a subset of the parameter set defined when the command is created. For parameters that are not passed in, you can use an empty string instead.
601
+
602
+ The default value is empty, which means that the parameter is unset and the custom parameter is disabled.
603
+ """
604
+ return pulumi.get(self, "parameters")
605
+
606
+ @parameters.setter
607
+ def parameters(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
608
+ pulumi.set(self, "parameters", value)
609
+
610
+ @property
611
+ @pulumi.getter(name="repeatMode")
612
+ def repeat_mode(self) -> Optional[pulumi.Input[str]]:
613
+ """
614
+ Sets the way the command is executed. Value range:
615
+ - Once: Execute the command immediately.
616
+ - Period: executes the command regularly. When the value of this parameter is 'Period', the 'Frequency' parameter must also be specified.
617
+ - NextRebootOnly: Automatically execute the command when the instance is next started.
618
+ - EveryReboot: The command is automatically executed every time the instance is started.
619
+
620
+ Default:
621
+ - When the'frequency' parameter is not specified, the default value is'once '.
622
+ - When the'frequency' parameter is specified, regardless of whether the parameter value has been set or not, it will be processed according to'period.
623
+ """
624
+ return pulumi.get(self, "repeat_mode")
625
+
626
+ @repeat_mode.setter
627
+ def repeat_mode(self, value: Optional[pulumi.Input[str]]):
628
+ pulumi.set(self, "repeat_mode", value)
629
+
630
+ @property
631
+ @pulumi.getter(name="terminationMode")
632
+ def termination_mode(self) -> Optional[pulumi.Input[str]]:
633
+ """
634
+ The mode when the task is stopped (manually stopped or execution time-out interrupted). Possible values:
635
+ Process: Stops the current script Process.
636
+ ProcessTree: Stops the current process tree (the script process and the collection of all child processes it created)
637
+ """
638
+ return pulumi.get(self, "termination_mode")
639
+
640
+ @termination_mode.setter
641
+ def termination_mode(self, value: Optional[pulumi.Input[str]]):
642
+ pulumi.set(self, "termination_mode", value)
643
+
644
+ @property
645
+ @pulumi.getter
646
+ def timeout(self) -> Optional[pulumi.Input[int]]:
647
+ """
648
+ The timeout period for command execution. Unit: seconds. A timeout occurs when a command cannot be run due to a process, a missing module, or a missing cloud assistant Agent. After the timeout, the command process is forcibly terminated. Default value: 60.
649
+ """
650
+ return pulumi.get(self, "timeout")
651
+
652
+ @timeout.setter
653
+ def timeout(self, value: Optional[pulumi.Input[int]]):
654
+ pulumi.set(self, "timeout", value)
655
+
656
+ @property
657
+ @pulumi.getter
658
+ def username(self) -> Optional[pulumi.Input[str]]:
659
+ """
660
+ The name of the user who executed the command in the instance. The length must not exceed 255 characters.
661
+ The instance of the Linux system. By default, the root user runs commands.
662
+ """
663
+ return pulumi.get(self, "username")
664
+
665
+ @username.setter
666
+ def username(self, value: Optional[pulumi.Input[str]]):
667
+ pulumi.set(self, "username", value)
668
+
669
+ @property
670
+ @pulumi.getter(name="workingDir")
671
+ def working_dir(self) -> Optional[pulumi.Input[str]]:
672
+ """
673
+ You can customize the command execution path. The default path is as follows:
674
+ Linux instance: the execution path is in the/home directory of the root user by default.
675
+ """
676
+ return pulumi.get(self, "working_dir")
677
+
678
+ @working_dir.setter
679
+ def working_dir(self, value: Optional[pulumi.Input[str]]):
680
+ pulumi.set(self, "working_dir", value)
681
+
682
+
683
+ class Invocation(pulumi.CustomResource):
684
+ @overload
685
+ def __init__(__self__,
686
+ resource_name: str,
687
+ opts: Optional[pulumi.ResourceOptions] = None,
688
+ command_content: Optional[pulumi.Input[str]] = None,
689
+ command_id: Optional[pulumi.Input[str]] = None,
690
+ content_encoding: Optional[pulumi.Input[str]] = None,
691
+ description: Optional[pulumi.Input[str]] = None,
692
+ enable_parameter: Optional[pulumi.Input[bool]] = None,
693
+ frequency: Optional[pulumi.Input[str]] = None,
694
+ launcher: Optional[pulumi.Input[str]] = None,
695
+ name: Optional[pulumi.Input[str]] = None,
696
+ node_id_lists: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
697
+ parameters: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
698
+ repeat_mode: Optional[pulumi.Input[str]] = None,
699
+ termination_mode: Optional[pulumi.Input[str]] = None,
700
+ timeout: Optional[pulumi.Input[int]] = None,
701
+ username: Optional[pulumi.Input[str]] = None,
702
+ working_dir: Optional[pulumi.Input[str]] = None,
703
+ __props__=None):
704
+ """
705
+ ## Import
706
+
707
+ Eflo Invocation can be imported using the id, e.g.
708
+
709
+ ```sh
710
+ $ pulumi import alicloud:eflo/invocation:Invocation example <id>
711
+ ```
712
+
713
+ :param str resource_name: The name of the resource.
714
+ :param pulumi.ResourceOptions opts: Options for the resource.
715
+ :param pulumi.Input[str] command_content: The command content. You need to pay attention:
716
+ - Specify the parameter 'EnableParameter = true' to enable the custom parameter feature in the command content.
717
+ - Define custom parameters in the form of {{}} inclusion, and spaces and line breaks before and after the parameter name in '{{}}' are ignored.
718
+ - The number of custom parameters cannot exceed 20.
719
+ - Custom parameter names can a-zA-Z0-9 a combination of-_. Other characters are not supported. Parameter names are not case-sensitive.
720
+ - A single custom parameter name cannot exceed 64 bytes.
721
+ :param pulumi.Input[str] command_id: Command ID
722
+ :param pulumi.Input[str] content_encoding: The encoding of the script content. Value range:
723
+ - PlainText: no encoding, using PlainText transmission.
724
+ - Base64:Base64 encoding.
725
+
726
+ Default value: PlainText. If you fill it randomly or wrongly, the value will be treated as a PlainText.
727
+ :param pulumi.Input[str] description: The command description.
728
+ :param pulumi.Input[bool] enable_parameter: Whether custom parameters are included in the command.
729
+ Default value: false.
730
+ :param pulumi.Input[str] frequency: The execution time of the scheduled execution command. Currently, three scheduled execution methods are supported: fixed interval execution (based on Rate expression), only once at a specified time, and timed execution based on clock (based on Cron expression).
731
+ - Fixed time interval execution: Based on the Rate expression, the command is executed at the set time interval. Time intervals can be selected by seconds (s), minutes (m), hours (h), and days (d), which is suitable for scenarios where tasks are executed at fixed time intervals. The format is rate( ). If the execution is performed every 5 minutes, the format is rate(5m). Executing with a fixed time interval has the following limitations:
732
+ - The set time interval is no more than 7 days and no less than 60 seconds, and must be greater than the timeout period of the scheduled task.
733
+ - The execution interval is based only on a fixed frequency, independent of the time the task actually takes to execute. For example, if the command is executed every 5 minutes and the task takes 2 minutes to complete, the next round will be executed 3 minutes after the task is completed.
734
+ - The task is not executed immediately when it is created. For example, if a command is executed every 5 minutes, the command is not executed immediately when a task is created, but is executed 5 minutes after the task is created.
735
+ - Execute only once at the specified time: Execute the command once according to the set time zone and execution time point. The format is at(yyyy-MM-dd HH:mm:ss ), that is, at (year-month-day time: minute: Second ). If you do not specify a time zone, the default is the UTC time zone. Time zones can be in the following three formats: the full name of the time zone, such as Asia/Shanghai (China/Shanghai time), America/los_angles (United States/Los Angeles time), and so on. The offset of the time zone relative to Greenwich Mean Time: E.G. GMT +8:00 (East Zone 8), GMT-7 (West Zone 7), etc. When using the GMT format, the hour bit does not support adding leading zeros. Time zone abbreviation: Only UTC (Coordinated Universal Time) is supported.
736
+ If it is specified to be executed once 13:15:30 June 06, 2022, China/Shanghai time, the format is at (Asia/Shanghai, 2022-06-06 13:15:30); If it is specified to be executed once 13:15:30 June 06, 2022, the format is at(2022-06-06 13:15:30 GMT-7:00).
737
+ - Timing based on clock (based on Cron expression): Based on Cron expression, commands are executed according to the set timing task. The format is , that is, . In the specified time zone, calculate the execution time of the scheduled task based on the Cron expression and execute it. If no time zone is specified, the default time zone is the internal time zone of the scheduled task instance. For more information about Cron expressions, see Cron Expressions. Time zones support the following three forms:
738
+ - Full time zone name: such as Asia/Shanghai (China/Shanghai time), America/los_angles (US/Los Angeles time), etc.
739
+ - The offset of the time zone relative to Greenwich Mean Time: E.G. GMT +8:00 (East Zone 8), GMT-7 (West Zone 7), etc. When using the GMT format, the hour bit does not support adding leading zeros.
740
+ - Time zone abbreviation: Only UTC (Coordinated Universal Time) is supported.
741
+
742
+ For example, in China/Shanghai time, the command will be executed once every day at 10:15 am in 2022 in the format 0 15 10? * * 2022 Asia/Shanghai; In the eastern 8th District time, it will be executed every half hour from 10:00 a.m. to 11:30 a.m. every day in 2022, in the format of 0 0/30 10-11 * *? 2022 GMT +8:00; In UTC time, starting from 2022, it will be executed every 5 minutes from 14:00 P.M. to 14:55 p. M. Every two years in October, in the format of 0 0/5 14*10? 2022/2 UTC.
743
+ :param pulumi.Input[str] launcher: The bootstrapper for script execution. The length cannot exceed 1KB.
744
+ :param pulumi.Input[str] name: The command name.
745
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] node_id_lists: A list of nodes.
746
+ :param pulumi.Input[Mapping[str, pulumi.Input[str]]] parameters: When the command contains custom parameters, the key-value pair of the custom parameters passed in when the command is executed. For example, if the command content is 'echo {{name}}', the key-value pair'{"name":"Jack"}'can be passed through the 'Parameter' parameter'. The custom parameter will automatically replace the variable value 'name' to get a new command that actually executes 'echo Jack '.
747
+
748
+ The number of custom parameters ranges from 0 to 10, and you need to pay attention:
749
+ - The key is not allowed to be an empty string and supports a maximum of 64 characters.
750
+ - The value is allowed to be an empty string.
751
+ - After the custom parameters and the original command content are encoded in Base64, if the command is saved, the size of the command content after Base64 encoding cannot exceed 18KB. If the command is not saved, the size of the command content after Base64 encoding cannot exceed 24KB. You can set whether to keep the command through 'KeepCommand.
752
+ - The set of custom parameter names must be a subset of the parameter set defined when the command is created. For parameters that are not passed in, you can use an empty string instead.
753
+
754
+ The default value is empty, which means that the parameter is unset and the custom parameter is disabled.
755
+ :param pulumi.Input[str] repeat_mode: Sets the way the command is executed. Value range:
756
+ - Once: Execute the command immediately.
757
+ - Period: executes the command regularly. When the value of this parameter is 'Period', the 'Frequency' parameter must also be specified.
758
+ - NextRebootOnly: Automatically execute the command when the instance is next started.
759
+ - EveryReboot: The command is automatically executed every time the instance is started.
760
+
761
+ Default:
762
+ - When the'frequency' parameter is not specified, the default value is'once '.
763
+ - When the'frequency' parameter is specified, regardless of whether the parameter value has been set or not, it will be processed according to'period.
764
+ :param pulumi.Input[str] termination_mode: The mode when the task is stopped (manually stopped or execution time-out interrupted). Possible values:
765
+ Process: Stops the current script Process.
766
+ ProcessTree: Stops the current process tree (the script process and the collection of all child processes it created)
767
+ :param pulumi.Input[int] timeout: The timeout period for command execution. Unit: seconds. A timeout occurs when a command cannot be run due to a process, a missing module, or a missing cloud assistant Agent. After the timeout, the command process is forcibly terminated. Default value: 60.
768
+ :param pulumi.Input[str] username: The name of the user who executed the command in the instance. The length must not exceed 255 characters.
769
+ The instance of the Linux system. By default, the root user runs commands.
770
+ :param pulumi.Input[str] working_dir: You can customize the command execution path. The default path is as follows:
771
+ Linux instance: the execution path is in the/home directory of the root user by default.
772
+ """
773
+ ...
774
+ @overload
775
+ def __init__(__self__,
776
+ resource_name: str,
777
+ args: Optional[InvocationArgs] = None,
778
+ opts: Optional[pulumi.ResourceOptions] = None):
779
+ """
780
+ ## Import
781
+
782
+ Eflo Invocation can be imported using the id, e.g.
783
+
784
+ ```sh
785
+ $ pulumi import alicloud:eflo/invocation:Invocation example <id>
786
+ ```
787
+
788
+ :param str resource_name: The name of the resource.
789
+ :param InvocationArgs args: The arguments to use to populate this resource's properties.
790
+ :param pulumi.ResourceOptions opts: Options for the resource.
791
+ """
792
+ ...
793
+ def __init__(__self__, resource_name: str, *args, **kwargs):
794
+ resource_args, opts = _utilities.get_resource_args_opts(InvocationArgs, pulumi.ResourceOptions, *args, **kwargs)
795
+ if resource_args is not None:
796
+ __self__._internal_init(resource_name, opts, **resource_args.__dict__)
797
+ else:
798
+ __self__._internal_init(resource_name, *args, **kwargs)
799
+
800
+ def _internal_init(__self__,
801
+ resource_name: str,
802
+ opts: Optional[pulumi.ResourceOptions] = None,
803
+ command_content: Optional[pulumi.Input[str]] = None,
804
+ command_id: Optional[pulumi.Input[str]] = None,
805
+ content_encoding: Optional[pulumi.Input[str]] = None,
806
+ description: Optional[pulumi.Input[str]] = None,
807
+ enable_parameter: Optional[pulumi.Input[bool]] = None,
808
+ frequency: Optional[pulumi.Input[str]] = None,
809
+ launcher: Optional[pulumi.Input[str]] = None,
810
+ name: Optional[pulumi.Input[str]] = None,
811
+ node_id_lists: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
812
+ parameters: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
813
+ repeat_mode: Optional[pulumi.Input[str]] = None,
814
+ termination_mode: Optional[pulumi.Input[str]] = None,
815
+ timeout: Optional[pulumi.Input[int]] = None,
816
+ username: Optional[pulumi.Input[str]] = None,
817
+ working_dir: Optional[pulumi.Input[str]] = None,
818
+ __props__=None):
819
+ opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
820
+ if not isinstance(opts, pulumi.ResourceOptions):
821
+ raise TypeError('Expected resource options to be a ResourceOptions instance')
822
+ if opts.id is None:
823
+ if __props__ is not None:
824
+ raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
825
+ __props__ = InvocationArgs.__new__(InvocationArgs)
826
+
827
+ __props__.__dict__["command_content"] = command_content
828
+ __props__.__dict__["command_id"] = command_id
829
+ __props__.__dict__["content_encoding"] = content_encoding
830
+ __props__.__dict__["description"] = description
831
+ __props__.__dict__["enable_parameter"] = enable_parameter
832
+ __props__.__dict__["frequency"] = frequency
833
+ __props__.__dict__["launcher"] = launcher
834
+ __props__.__dict__["name"] = name
835
+ __props__.__dict__["node_id_lists"] = node_id_lists
836
+ __props__.__dict__["parameters"] = parameters
837
+ __props__.__dict__["repeat_mode"] = repeat_mode
838
+ __props__.__dict__["termination_mode"] = termination_mode
839
+ __props__.__dict__["timeout"] = timeout
840
+ __props__.__dict__["username"] = username
841
+ __props__.__dict__["working_dir"] = working_dir
842
+ super(Invocation, __self__).__init__(
843
+ 'alicloud:eflo/invocation:Invocation',
844
+ resource_name,
845
+ __props__,
846
+ opts)
847
+
848
+ @staticmethod
849
+ def get(resource_name: str,
850
+ id: pulumi.Input[str],
851
+ opts: Optional[pulumi.ResourceOptions] = None,
852
+ command_content: Optional[pulumi.Input[str]] = None,
853
+ command_id: Optional[pulumi.Input[str]] = None,
854
+ content_encoding: Optional[pulumi.Input[str]] = None,
855
+ description: Optional[pulumi.Input[str]] = None,
856
+ enable_parameter: Optional[pulumi.Input[bool]] = None,
857
+ frequency: Optional[pulumi.Input[str]] = None,
858
+ launcher: Optional[pulumi.Input[str]] = None,
859
+ name: Optional[pulumi.Input[str]] = None,
860
+ node_id_lists: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
861
+ parameters: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
862
+ repeat_mode: Optional[pulumi.Input[str]] = None,
863
+ termination_mode: Optional[pulumi.Input[str]] = None,
864
+ timeout: Optional[pulumi.Input[int]] = None,
865
+ username: Optional[pulumi.Input[str]] = None,
866
+ working_dir: Optional[pulumi.Input[str]] = None) -> 'Invocation':
867
+ """
868
+ Get an existing Invocation resource's state with the given name, id, and optional extra
869
+ properties used to qualify the lookup.
870
+
871
+ :param str resource_name: The unique name of the resulting resource.
872
+ :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
873
+ :param pulumi.ResourceOptions opts: Options for the resource.
874
+ :param pulumi.Input[str] command_content: The command content. You need to pay attention:
875
+ - Specify the parameter 'EnableParameter = true' to enable the custom parameter feature in the command content.
876
+ - Define custom parameters in the form of {{}} inclusion, and spaces and line breaks before and after the parameter name in '{{}}' are ignored.
877
+ - The number of custom parameters cannot exceed 20.
878
+ - Custom parameter names can a-zA-Z0-9 a combination of-_. Other characters are not supported. Parameter names are not case-sensitive.
879
+ - A single custom parameter name cannot exceed 64 bytes.
880
+ :param pulumi.Input[str] command_id: Command ID
881
+ :param pulumi.Input[str] content_encoding: The encoding of the script content. Value range:
882
+ - PlainText: no encoding, using PlainText transmission.
883
+ - Base64:Base64 encoding.
884
+
885
+ Default value: PlainText. If you fill it randomly or wrongly, the value will be treated as a PlainText.
886
+ :param pulumi.Input[str] description: The command description.
887
+ :param pulumi.Input[bool] enable_parameter: Whether custom parameters are included in the command.
888
+ Default value: false.
889
+ :param pulumi.Input[str] frequency: The execution time of the scheduled execution command. Currently, three scheduled execution methods are supported: fixed interval execution (based on Rate expression), only once at a specified time, and timed execution based on clock (based on Cron expression).
890
+ - Fixed time interval execution: Based on the Rate expression, the command is executed at the set time interval. Time intervals can be selected by seconds (s), minutes (m), hours (h), and days (d), which is suitable for scenarios where tasks are executed at fixed time intervals. The format is rate( ). If the execution is performed every 5 minutes, the format is rate(5m). Executing with a fixed time interval has the following limitations:
891
+ - The set time interval is no more than 7 days and no less than 60 seconds, and must be greater than the timeout period of the scheduled task.
892
+ - The execution interval is based only on a fixed frequency, independent of the time the task actually takes to execute. For example, if the command is executed every 5 minutes and the task takes 2 minutes to complete, the next round will be executed 3 minutes after the task is completed.
893
+ - The task is not executed immediately when it is created. For example, if a command is executed every 5 minutes, the command is not executed immediately when a task is created, but is executed 5 minutes after the task is created.
894
+ - Execute only once at the specified time: Execute the command once according to the set time zone and execution time point. The format is at(yyyy-MM-dd HH:mm:ss ), that is, at (year-month-day time: minute: Second ). If you do not specify a time zone, the default is the UTC time zone. Time zones can be in the following three formats: the full name of the time zone, such as Asia/Shanghai (China/Shanghai time), America/los_angles (United States/Los Angeles time), and so on. The offset of the time zone relative to Greenwich Mean Time: E.G. GMT +8:00 (East Zone 8), GMT-7 (West Zone 7), etc. When using the GMT format, the hour bit does not support adding leading zeros. Time zone abbreviation: Only UTC (Coordinated Universal Time) is supported.
895
+ If it is specified to be executed once 13:15:30 June 06, 2022, China/Shanghai time, the format is at (Asia/Shanghai, 2022-06-06 13:15:30); If it is specified to be executed once 13:15:30 June 06, 2022, the format is at(2022-06-06 13:15:30 GMT-7:00).
896
+ - Timing based on clock (based on Cron expression): Based on Cron expression, commands are executed according to the set timing task. The format is , that is, . In the specified time zone, calculate the execution time of the scheduled task based on the Cron expression and execute it. If no time zone is specified, the default time zone is the internal time zone of the scheduled task instance. For more information about Cron expressions, see Cron Expressions. Time zones support the following three forms:
897
+ - Full time zone name: such as Asia/Shanghai (China/Shanghai time), America/los_angles (US/Los Angeles time), etc.
898
+ - The offset of the time zone relative to Greenwich Mean Time: E.G. GMT +8:00 (East Zone 8), GMT-7 (West Zone 7), etc. When using the GMT format, the hour bit does not support adding leading zeros.
899
+ - Time zone abbreviation: Only UTC (Coordinated Universal Time) is supported.
900
+
901
+ For example, in China/Shanghai time, the command will be executed once every day at 10:15 am in 2022 in the format 0 15 10? * * 2022 Asia/Shanghai; In the eastern 8th District time, it will be executed every half hour from 10:00 a.m. to 11:30 a.m. every day in 2022, in the format of 0 0/30 10-11 * *? 2022 GMT +8:00; In UTC time, starting from 2022, it will be executed every 5 minutes from 14:00 P.M. to 14:55 p. M. Every two years in October, in the format of 0 0/5 14*10? 2022/2 UTC.
902
+ :param pulumi.Input[str] launcher: The bootstrapper for script execution. The length cannot exceed 1KB.
903
+ :param pulumi.Input[str] name: The command name.
904
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] node_id_lists: A list of nodes.
905
+ :param pulumi.Input[Mapping[str, pulumi.Input[str]]] parameters: When the command contains custom parameters, the key-value pair of the custom parameters passed in when the command is executed. For example, if the command content is 'echo {{name}}', the key-value pair'{"name":"Jack"}'can be passed through the 'Parameter' parameter'. The custom parameter will automatically replace the variable value 'name' to get a new command that actually executes 'echo Jack '.
906
+
907
+ The number of custom parameters ranges from 0 to 10, and you need to pay attention:
908
+ - The key is not allowed to be an empty string and supports a maximum of 64 characters.
909
+ - The value is allowed to be an empty string.
910
+ - After the custom parameters and the original command content are encoded in Base64, if the command is saved, the size of the command content after Base64 encoding cannot exceed 18KB. If the command is not saved, the size of the command content after Base64 encoding cannot exceed 24KB. You can set whether to keep the command through 'KeepCommand.
911
+ - The set of custom parameter names must be a subset of the parameter set defined when the command is created. For parameters that are not passed in, you can use an empty string instead.
912
+
913
+ The default value is empty, which means that the parameter is unset and the custom parameter is disabled.
914
+ :param pulumi.Input[str] repeat_mode: Sets the way the command is executed. Value range:
915
+ - Once: Execute the command immediately.
916
+ - Period: executes the command regularly. When the value of this parameter is 'Period', the 'Frequency' parameter must also be specified.
917
+ - NextRebootOnly: Automatically execute the command when the instance is next started.
918
+ - EveryReboot: The command is automatically executed every time the instance is started.
919
+
920
+ Default:
921
+ - When the'frequency' parameter is not specified, the default value is'once '.
922
+ - When the'frequency' parameter is specified, regardless of whether the parameter value has been set or not, it will be processed according to'period.
923
+ :param pulumi.Input[str] termination_mode: The mode when the task is stopped (manually stopped or execution time-out interrupted). Possible values:
924
+ Process: Stops the current script Process.
925
+ ProcessTree: Stops the current process tree (the script process and the collection of all child processes it created)
926
+ :param pulumi.Input[int] timeout: The timeout period for command execution. Unit: seconds. A timeout occurs when a command cannot be run due to a process, a missing module, or a missing cloud assistant Agent. After the timeout, the command process is forcibly terminated. Default value: 60.
927
+ :param pulumi.Input[str] username: The name of the user who executed the command in the instance. The length must not exceed 255 characters.
928
+ The instance of the Linux system. By default, the root user runs commands.
929
+ :param pulumi.Input[str] working_dir: You can customize the command execution path. The default path is as follows:
930
+ Linux instance: the execution path is in the/home directory of the root user by default.
931
+ """
932
+ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
933
+
934
+ __props__ = _InvocationState.__new__(_InvocationState)
935
+
936
+ __props__.__dict__["command_content"] = command_content
937
+ __props__.__dict__["command_id"] = command_id
938
+ __props__.__dict__["content_encoding"] = content_encoding
939
+ __props__.__dict__["description"] = description
940
+ __props__.__dict__["enable_parameter"] = enable_parameter
941
+ __props__.__dict__["frequency"] = frequency
942
+ __props__.__dict__["launcher"] = launcher
943
+ __props__.__dict__["name"] = name
944
+ __props__.__dict__["node_id_lists"] = node_id_lists
945
+ __props__.__dict__["parameters"] = parameters
946
+ __props__.__dict__["repeat_mode"] = repeat_mode
947
+ __props__.__dict__["termination_mode"] = termination_mode
948
+ __props__.__dict__["timeout"] = timeout
949
+ __props__.__dict__["username"] = username
950
+ __props__.__dict__["working_dir"] = working_dir
951
+ return Invocation(resource_name, opts=opts, __props__=__props__)
952
+
953
+ @property
954
+ @pulumi.getter(name="commandContent")
955
+ def command_content(self) -> pulumi.Output[Optional[str]]:
956
+ """
957
+ The command content. You need to pay attention:
958
+ - Specify the parameter 'EnableParameter = true' to enable the custom parameter feature in the command content.
959
+ - Define custom parameters in the form of {{}} inclusion, and spaces and line breaks before and after the parameter name in '{{}}' are ignored.
960
+ - The number of custom parameters cannot exceed 20.
961
+ - Custom parameter names can a-zA-Z0-9 a combination of-_. Other characters are not supported. Parameter names are not case-sensitive.
962
+ - A single custom parameter name cannot exceed 64 bytes.
963
+ """
964
+ return pulumi.get(self, "command_content")
965
+
966
+ @property
967
+ @pulumi.getter(name="commandId")
968
+ def command_id(self) -> pulumi.Output[Optional[str]]:
969
+ """
970
+ Command ID
971
+ """
972
+ return pulumi.get(self, "command_id")
973
+
974
+ @property
975
+ @pulumi.getter(name="contentEncoding")
976
+ def content_encoding(self) -> pulumi.Output[Optional[str]]:
977
+ """
978
+ The encoding of the script content. Value range:
979
+ - PlainText: no encoding, using PlainText transmission.
980
+ - Base64:Base64 encoding.
981
+
982
+ Default value: PlainText. If you fill it randomly or wrongly, the value will be treated as a PlainText.
983
+ """
984
+ return pulumi.get(self, "content_encoding")
985
+
986
+ @property
987
+ @pulumi.getter
988
+ def description(self) -> pulumi.Output[Optional[str]]:
989
+ """
990
+ The command description.
991
+ """
992
+ return pulumi.get(self, "description")
993
+
994
+ @property
995
+ @pulumi.getter(name="enableParameter")
996
+ def enable_parameter(self) -> pulumi.Output[Optional[bool]]:
997
+ """
998
+ Whether custom parameters are included in the command.
999
+ Default value: false.
1000
+ """
1001
+ return pulumi.get(self, "enable_parameter")
1002
+
1003
+ @property
1004
+ @pulumi.getter
1005
+ def frequency(self) -> pulumi.Output[Optional[str]]:
1006
+ """
1007
+ The execution time of the scheduled execution command. Currently, three scheduled execution methods are supported: fixed interval execution (based on Rate expression), only once at a specified time, and timed execution based on clock (based on Cron expression).
1008
+ - Fixed time interval execution: Based on the Rate expression, the command is executed at the set time interval. Time intervals can be selected by seconds (s), minutes (m), hours (h), and days (d), which is suitable for scenarios where tasks are executed at fixed time intervals. The format is rate( ). If the execution is performed every 5 minutes, the format is rate(5m). Executing with a fixed time interval has the following limitations:
1009
+ - The set time interval is no more than 7 days and no less than 60 seconds, and must be greater than the timeout period of the scheduled task.
1010
+ - The execution interval is based only on a fixed frequency, independent of the time the task actually takes to execute. For example, if the command is executed every 5 minutes and the task takes 2 minutes to complete, the next round will be executed 3 minutes after the task is completed.
1011
+ - The task is not executed immediately when it is created. For example, if a command is executed every 5 minutes, the command is not executed immediately when a task is created, but is executed 5 minutes after the task is created.
1012
+ - Execute only once at the specified time: Execute the command once according to the set time zone and execution time point. The format is at(yyyy-MM-dd HH:mm:ss ), that is, at (year-month-day time: minute: Second ). If you do not specify a time zone, the default is the UTC time zone. Time zones can be in the following three formats: the full name of the time zone, such as Asia/Shanghai (China/Shanghai time), America/los_angles (United States/Los Angeles time), and so on. The offset of the time zone relative to Greenwich Mean Time: E.G. GMT +8:00 (East Zone 8), GMT-7 (West Zone 7), etc. When using the GMT format, the hour bit does not support adding leading zeros. Time zone abbreviation: Only UTC (Coordinated Universal Time) is supported.
1013
+ If it is specified to be executed once 13:15:30 June 06, 2022, China/Shanghai time, the format is at (Asia/Shanghai, 2022-06-06 13:15:30); If it is specified to be executed once 13:15:30 June 06, 2022, the format is at(2022-06-06 13:15:30 GMT-7:00).
1014
+ - Timing based on clock (based on Cron expression): Based on Cron expression, commands are executed according to the set timing task. The format is , that is, . In the specified time zone, calculate the execution time of the scheduled task based on the Cron expression and execute it. If no time zone is specified, the default time zone is the internal time zone of the scheduled task instance. For more information about Cron expressions, see Cron Expressions. Time zones support the following three forms:
1015
+ - Full time zone name: such as Asia/Shanghai (China/Shanghai time), America/los_angles (US/Los Angeles time), etc.
1016
+ - The offset of the time zone relative to Greenwich Mean Time: E.G. GMT +8:00 (East Zone 8), GMT-7 (West Zone 7), etc. When using the GMT format, the hour bit does not support adding leading zeros.
1017
+ - Time zone abbreviation: Only UTC (Coordinated Universal Time) is supported.
1018
+
1019
+ For example, in China/Shanghai time, the command will be executed once every day at 10:15 am in 2022 in the format 0 15 10? * * 2022 Asia/Shanghai; In the eastern 8th District time, it will be executed every half hour from 10:00 a.m. to 11:30 a.m. every day in 2022, in the format of 0 0/30 10-11 * *? 2022 GMT +8:00; In UTC time, starting from 2022, it will be executed every 5 minutes from 14:00 P.M. to 14:55 p. M. Every two years in October, in the format of 0 0/5 14*10? 2022/2 UTC.
1020
+ """
1021
+ return pulumi.get(self, "frequency")
1022
+
1023
+ @property
1024
+ @pulumi.getter
1025
+ def launcher(self) -> pulumi.Output[Optional[str]]:
1026
+ """
1027
+ The bootstrapper for script execution. The length cannot exceed 1KB.
1028
+ """
1029
+ return pulumi.get(self, "launcher")
1030
+
1031
+ @property
1032
+ @pulumi.getter
1033
+ def name(self) -> pulumi.Output[str]:
1034
+ """
1035
+ The command name.
1036
+ """
1037
+ return pulumi.get(self, "name")
1038
+
1039
+ @property
1040
+ @pulumi.getter(name="nodeIdLists")
1041
+ def node_id_lists(self) -> pulumi.Output[Optional[Sequence[str]]]:
1042
+ """
1043
+ A list of nodes.
1044
+ """
1045
+ return pulumi.get(self, "node_id_lists")
1046
+
1047
+ @property
1048
+ @pulumi.getter
1049
+ def parameters(self) -> pulumi.Output[Optional[Mapping[str, str]]]:
1050
+ """
1051
+ When the command contains custom parameters, the key-value pair of the custom parameters passed in when the command is executed. For example, if the command content is 'echo {{name}}', the key-value pair'{"name":"Jack"}'can be passed through the 'Parameter' parameter'. The custom parameter will automatically replace the variable value 'name' to get a new command that actually executes 'echo Jack '.
1052
+
1053
+ The number of custom parameters ranges from 0 to 10, and you need to pay attention:
1054
+ - The key is not allowed to be an empty string and supports a maximum of 64 characters.
1055
+ - The value is allowed to be an empty string.
1056
+ - After the custom parameters and the original command content are encoded in Base64, if the command is saved, the size of the command content after Base64 encoding cannot exceed 18KB. If the command is not saved, the size of the command content after Base64 encoding cannot exceed 24KB. You can set whether to keep the command through 'KeepCommand.
1057
+ - The set of custom parameter names must be a subset of the parameter set defined when the command is created. For parameters that are not passed in, you can use an empty string instead.
1058
+
1059
+ The default value is empty, which means that the parameter is unset and the custom parameter is disabled.
1060
+ """
1061
+ return pulumi.get(self, "parameters")
1062
+
1063
+ @property
1064
+ @pulumi.getter(name="repeatMode")
1065
+ def repeat_mode(self) -> pulumi.Output[Optional[str]]:
1066
+ """
1067
+ Sets the way the command is executed. Value range:
1068
+ - Once: Execute the command immediately.
1069
+ - Period: executes the command regularly. When the value of this parameter is 'Period', the 'Frequency' parameter must also be specified.
1070
+ - NextRebootOnly: Automatically execute the command when the instance is next started.
1071
+ - EveryReboot: The command is automatically executed every time the instance is started.
1072
+
1073
+ Default:
1074
+ - When the'frequency' parameter is not specified, the default value is'once '.
1075
+ - When the'frequency' parameter is specified, regardless of whether the parameter value has been set or not, it will be processed according to'period.
1076
+ """
1077
+ return pulumi.get(self, "repeat_mode")
1078
+
1079
+ @property
1080
+ @pulumi.getter(name="terminationMode")
1081
+ def termination_mode(self) -> pulumi.Output[Optional[str]]:
1082
+ """
1083
+ The mode when the task is stopped (manually stopped or execution time-out interrupted). Possible values:
1084
+ Process: Stops the current script Process.
1085
+ ProcessTree: Stops the current process tree (the script process and the collection of all child processes it created)
1086
+ """
1087
+ return pulumi.get(self, "termination_mode")
1088
+
1089
+ @property
1090
+ @pulumi.getter
1091
+ def timeout(self) -> pulumi.Output[Optional[int]]:
1092
+ """
1093
+ The timeout period for command execution. Unit: seconds. A timeout occurs when a command cannot be run due to a process, a missing module, or a missing cloud assistant Agent. After the timeout, the command process is forcibly terminated. Default value: 60.
1094
+ """
1095
+ return pulumi.get(self, "timeout")
1096
+
1097
+ @property
1098
+ @pulumi.getter
1099
+ def username(self) -> pulumi.Output[Optional[str]]:
1100
+ """
1101
+ The name of the user who executed the command in the instance. The length must not exceed 255 characters.
1102
+ The instance of the Linux system. By default, the root user runs commands.
1103
+ """
1104
+ return pulumi.get(self, "username")
1105
+
1106
+ @property
1107
+ @pulumi.getter(name="workingDir")
1108
+ def working_dir(self) -> pulumi.Output[Optional[str]]:
1109
+ """
1110
+ You can customize the command execution path. The default path is as follows:
1111
+ Linux instance: the execution path is in the/home directory of the root user by default.
1112
+ """
1113
+ return pulumi.get(self, "working_dir")
1114
+