pulumi-alicloud 3.56.0a1715923185__py3-none-any.whl → 3.56.0a1716440817__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.
@@ -23,13 +23,13 @@ class ServiceQueueArgs:
23
23
  visibility_timeout: Optional[pulumi.Input[int]] = None):
24
24
  """
25
25
  The set of arguments for constructing a ServiceQueue resource.
26
- :param pulumi.Input[str] queue_name: Two queues on a single account in the same region cannot have the same name. A queue name must start with an English letter or a digit, and can contain English letters, digits, and hyphens, with the length not exceeding 120 characters.
27
- :param pulumi.Input[int] delay_seconds: The delay period after which a message sent to the queue can be consumed. Unit: seconds. Valid values: 0-604800 seconds. Default value: 0.
28
- :param pulumi.Input[bool] logging_enabled: Specifies whether to enable the log management feature. Default value: false. Valid values:
29
- :param pulumi.Input[int] maximum_message_size: The maximum size of a message body that can be sent to the queue. Unit: bytes. Valid value range: 1024-65536. Default value: 65536.
30
- :param pulumi.Input[int] message_retention_period: The maximum period for which a message can be retained in the queue. After the specified period, the message is deleted no matter whether the message is consumed. Unit: seconds. Valid values: 60-604800. Default value: 345600.
31
- :param pulumi.Input[int] polling_wait_seconds: The maximum period for which a ReceiveMessage request waits if no message is available in the queue. Unit: seconds. Valid values: 0-30. Default value: 0.
32
- :param pulumi.Input[int] visibility_timeout: The invisibility period for which the received message remains the Inactive state. Unit: seconds. Valid values: 1-43200. Default value: 30.
26
+ :param pulumi.Input[str] queue_name: Representative resources.
27
+ :param pulumi.Input[int] delay_seconds: This means that messages sent to the queue can only be consumed after the delay time set by this parameter, in seconds.
28
+ :param pulumi.Input[bool] logging_enabled: Represents whether the log management function is enabled.
29
+ :param pulumi.Input[int] maximum_message_size: Represents the maximum length of the message body sent to the Queue, in Byte.
30
+ :param pulumi.Input[int] message_retention_period: Represents the longest life time of the message in the Queue.
31
+ :param pulumi.Input[int] polling_wait_seconds: The longest waiting time for a Queue request when the number of messages is empty, in seconds.
32
+ :param pulumi.Input[int] visibility_timeout: Represents the duration after the message is removed from the Queue and changed from the Active state to the Inactive state.
33
33
  """
34
34
  pulumi.set(__self__, "queue_name", queue_name)
35
35
  if delay_seconds is not None:
@@ -49,7 +49,7 @@ class ServiceQueueArgs:
49
49
  @pulumi.getter(name="queueName")
50
50
  def queue_name(self) -> pulumi.Input[str]:
51
51
  """
52
- Two queues on a single account in the same region cannot have the same name. A queue name must start with an English letter or a digit, and can contain English letters, digits, and hyphens, with the length not exceeding 120 characters.
52
+ Representative resources.
53
53
  """
54
54
  return pulumi.get(self, "queue_name")
55
55
 
@@ -61,7 +61,7 @@ class ServiceQueueArgs:
61
61
  @pulumi.getter(name="delaySeconds")
62
62
  def delay_seconds(self) -> Optional[pulumi.Input[int]]:
63
63
  """
64
- The delay period after which a message sent to the queue can be consumed. Unit: seconds. Valid values: 0-604800 seconds. Default value: 0.
64
+ This means that messages sent to the queue can only be consumed after the delay time set by this parameter, in seconds.
65
65
  """
66
66
  return pulumi.get(self, "delay_seconds")
67
67
 
@@ -73,7 +73,7 @@ class ServiceQueueArgs:
73
73
  @pulumi.getter(name="loggingEnabled")
74
74
  def logging_enabled(self) -> Optional[pulumi.Input[bool]]:
75
75
  """
76
- Specifies whether to enable the log management feature. Default value: false. Valid values:
76
+ Represents whether the log management function is enabled.
77
77
  """
78
78
  return pulumi.get(self, "logging_enabled")
79
79
 
@@ -85,7 +85,7 @@ class ServiceQueueArgs:
85
85
  @pulumi.getter(name="maximumMessageSize")
86
86
  def maximum_message_size(self) -> Optional[pulumi.Input[int]]:
87
87
  """
88
- The maximum size of a message body that can be sent to the queue. Unit: bytes. Valid value range: 1024-65536. Default value: 65536.
88
+ Represents the maximum length of the message body sent to the Queue, in Byte.
89
89
  """
90
90
  return pulumi.get(self, "maximum_message_size")
91
91
 
@@ -97,7 +97,7 @@ class ServiceQueueArgs:
97
97
  @pulumi.getter(name="messageRetentionPeriod")
98
98
  def message_retention_period(self) -> Optional[pulumi.Input[int]]:
99
99
  """
100
- The maximum period for which a message can be retained in the queue. After the specified period, the message is deleted no matter whether the message is consumed. Unit: seconds. Valid values: 60-604800. Default value: 345600.
100
+ Represents the longest life time of the message in the Queue.
101
101
  """
102
102
  return pulumi.get(self, "message_retention_period")
103
103
 
@@ -109,7 +109,7 @@ class ServiceQueueArgs:
109
109
  @pulumi.getter(name="pollingWaitSeconds")
110
110
  def polling_wait_seconds(self) -> Optional[pulumi.Input[int]]:
111
111
  """
112
- The maximum period for which a ReceiveMessage request waits if no message is available in the queue. Unit: seconds. Valid values: 0-30. Default value: 0.
112
+ The longest waiting time for a Queue request when the number of messages is empty, in seconds.
113
113
  """
114
114
  return pulumi.get(self, "polling_wait_seconds")
115
115
 
@@ -121,7 +121,7 @@ class ServiceQueueArgs:
121
121
  @pulumi.getter(name="visibilityTimeout")
122
122
  def visibility_timeout(self) -> Optional[pulumi.Input[int]]:
123
123
  """
124
- The invisibility period for which the received message remains the Inactive state. Unit: seconds. Valid values: 1-43200. Default value: 30.
124
+ Represents the duration after the message is removed from the Queue and changed from the Active state to the Inactive state.
125
125
  """
126
126
  return pulumi.get(self, "visibility_timeout")
127
127
 
@@ -133,6 +133,7 @@ class ServiceQueueArgs:
133
133
  @pulumi.input_type
134
134
  class _ServiceQueueState:
135
135
  def __init__(__self__, *,
136
+ create_time: Optional[pulumi.Input[int]] = None,
136
137
  delay_seconds: Optional[pulumi.Input[int]] = None,
137
138
  logging_enabled: Optional[pulumi.Input[bool]] = None,
138
139
  maximum_message_size: Optional[pulumi.Input[int]] = None,
@@ -142,14 +143,17 @@ class _ServiceQueueState:
142
143
  visibility_timeout: Optional[pulumi.Input[int]] = None):
143
144
  """
144
145
  Input properties used for looking up and filtering ServiceQueue resources.
145
- :param pulumi.Input[int] delay_seconds: The delay period after which a message sent to the queue can be consumed. Unit: seconds. Valid values: 0-604800 seconds. Default value: 0.
146
- :param pulumi.Input[bool] logging_enabled: Specifies whether to enable the log management feature. Default value: false. Valid values:
147
- :param pulumi.Input[int] maximum_message_size: The maximum size of a message body that can be sent to the queue. Unit: bytes. Valid value range: 1024-65536. Default value: 65536.
148
- :param pulumi.Input[int] message_retention_period: The maximum period for which a message can be retained in the queue. After the specified period, the message is deleted no matter whether the message is consumed. Unit: seconds. Valid values: 60-604800. Default value: 345600.
149
- :param pulumi.Input[int] polling_wait_seconds: The maximum period for which a ReceiveMessage request waits if no message is available in the queue. Unit: seconds. Valid values: 0-30. Default value: 0.
150
- :param pulumi.Input[str] queue_name: Two queues on a single account in the same region cannot have the same name. A queue name must start with an English letter or a digit, and can contain English letters, digits, and hyphens, with the length not exceeding 120 characters.
151
- :param pulumi.Input[int] visibility_timeout: The invisibility period for which the received message remains the Inactive state. Unit: seconds. Valid values: 1-43200. Default value: 30.
152
- """
146
+ :param pulumi.Input[int] create_time: Represents the time when the Queue was created.
147
+ :param pulumi.Input[int] delay_seconds: This means that messages sent to the queue can only be consumed after the delay time set by this parameter, in seconds.
148
+ :param pulumi.Input[bool] logging_enabled: Represents whether the log management function is enabled.
149
+ :param pulumi.Input[int] maximum_message_size: Represents the maximum length of the message body sent to the Queue, in Byte.
150
+ :param pulumi.Input[int] message_retention_period: Represents the longest life time of the message in the Queue.
151
+ :param pulumi.Input[int] polling_wait_seconds: The longest waiting time for a Queue request when the number of messages is empty, in seconds.
152
+ :param pulumi.Input[str] queue_name: Representative resources.
153
+ :param pulumi.Input[int] visibility_timeout: Represents the duration after the message is removed from the Queue and changed from the Active state to the Inactive state.
154
+ """
155
+ if create_time is not None:
156
+ pulumi.set(__self__, "create_time", create_time)
153
157
  if delay_seconds is not None:
154
158
  pulumi.set(__self__, "delay_seconds", delay_seconds)
155
159
  if logging_enabled is not None:
@@ -165,11 +169,23 @@ class _ServiceQueueState:
165
169
  if visibility_timeout is not None:
166
170
  pulumi.set(__self__, "visibility_timeout", visibility_timeout)
167
171
 
172
+ @property
173
+ @pulumi.getter(name="createTime")
174
+ def create_time(self) -> Optional[pulumi.Input[int]]:
175
+ """
176
+ Represents the time when the Queue was created.
177
+ """
178
+ return pulumi.get(self, "create_time")
179
+
180
+ @create_time.setter
181
+ def create_time(self, value: Optional[pulumi.Input[int]]):
182
+ pulumi.set(self, "create_time", value)
183
+
168
184
  @property
169
185
  @pulumi.getter(name="delaySeconds")
170
186
  def delay_seconds(self) -> Optional[pulumi.Input[int]]:
171
187
  """
172
- The delay period after which a message sent to the queue can be consumed. Unit: seconds. Valid values: 0-604800 seconds. Default value: 0.
188
+ This means that messages sent to the queue can only be consumed after the delay time set by this parameter, in seconds.
173
189
  """
174
190
  return pulumi.get(self, "delay_seconds")
175
191
 
@@ -181,7 +197,7 @@ class _ServiceQueueState:
181
197
  @pulumi.getter(name="loggingEnabled")
182
198
  def logging_enabled(self) -> Optional[pulumi.Input[bool]]:
183
199
  """
184
- Specifies whether to enable the log management feature. Default value: false. Valid values:
200
+ Represents whether the log management function is enabled.
185
201
  """
186
202
  return pulumi.get(self, "logging_enabled")
187
203
 
@@ -193,7 +209,7 @@ class _ServiceQueueState:
193
209
  @pulumi.getter(name="maximumMessageSize")
194
210
  def maximum_message_size(self) -> Optional[pulumi.Input[int]]:
195
211
  """
196
- The maximum size of a message body that can be sent to the queue. Unit: bytes. Valid value range: 1024-65536. Default value: 65536.
212
+ Represents the maximum length of the message body sent to the Queue, in Byte.
197
213
  """
198
214
  return pulumi.get(self, "maximum_message_size")
199
215
 
@@ -205,7 +221,7 @@ class _ServiceQueueState:
205
221
  @pulumi.getter(name="messageRetentionPeriod")
206
222
  def message_retention_period(self) -> Optional[pulumi.Input[int]]:
207
223
  """
208
- The maximum period for which a message can be retained in the queue. After the specified period, the message is deleted no matter whether the message is consumed. Unit: seconds. Valid values: 60-604800. Default value: 345600.
224
+ Represents the longest life time of the message in the Queue.
209
225
  """
210
226
  return pulumi.get(self, "message_retention_period")
211
227
 
@@ -217,7 +233,7 @@ class _ServiceQueueState:
217
233
  @pulumi.getter(name="pollingWaitSeconds")
218
234
  def polling_wait_seconds(self) -> Optional[pulumi.Input[int]]:
219
235
  """
220
- The maximum period for which a ReceiveMessage request waits if no message is available in the queue. Unit: seconds. Valid values: 0-30. Default value: 0.
236
+ The longest waiting time for a Queue request when the number of messages is empty, in seconds.
221
237
  """
222
238
  return pulumi.get(self, "polling_wait_seconds")
223
239
 
@@ -229,7 +245,7 @@ class _ServiceQueueState:
229
245
  @pulumi.getter(name="queueName")
230
246
  def queue_name(self) -> Optional[pulumi.Input[str]]:
231
247
  """
232
- Two queues on a single account in the same region cannot have the same name. A queue name must start with an English letter or a digit, and can contain English letters, digits, and hyphens, with the length not exceeding 120 characters.
248
+ Representative resources.
233
249
  """
234
250
  return pulumi.get(self, "queue_name")
235
251
 
@@ -241,7 +257,7 @@ class _ServiceQueueState:
241
257
  @pulumi.getter(name="visibilityTimeout")
242
258
  def visibility_timeout(self) -> Optional[pulumi.Input[int]]:
243
259
  """
244
- The invisibility period for which the received message remains the Inactive state. Unit: seconds. Valid values: 1-43200. Default value: 30.
260
+ Represents the duration after the message is removed from the Queue and changed from the Active state to the Inactive state.
245
261
  """
246
262
  return pulumi.get(self, "visibility_timeout")
247
263
 
@@ -264,9 +280,9 @@ class ServiceQueue(pulumi.CustomResource):
264
280
  visibility_timeout: Optional[pulumi.Input[int]] = None,
265
281
  __props__=None):
266
282
  """
267
- Provides a Message Notification Service Queue resource.
283
+ Provides a Message Service Queue resource.
268
284
 
269
- For information about Message Notification Service Queue and how to use it, see [What is Queue](https://www.alibabacloud.com/help/en/message-service/latest/createqueue).
285
+ For information about Message Service Queue and how to use it, see [What is Queue](https://www.alibabacloud.com/help/en/message-service/latest/createqueue).
270
286
 
271
287
  > **NOTE:** Available since v1.188.0.
272
288
 
@@ -277,42 +293,37 @@ class ServiceQueue(pulumi.CustomResource):
277
293
  ```python
278
294
  import pulumi
279
295
  import pulumi_alicloud as alicloud
280
- import pulumi_random as random
281
296
 
282
297
  config = pulumi.Config()
283
298
  name = config.get("name")
284
299
  if name is None:
285
- name = "tf-example"
286
- default = random.index.Integer("default",
287
- min=10000,
288
- max=99999)
289
- queue = alicloud.message.ServiceQueue("queue",
290
- queue_name=f"{name}-{default['result']}",
291
- delay_seconds=60478,
292
- maximum_message_size=12357,
293
- message_retention_period=256000,
300
+ name = "terraform-example"
301
+ default = alicloud.message.ServiceQueue("default",
302
+ delay_seconds=2,
303
+ polling_wait_seconds=2,
304
+ message_retention_period=566,
305
+ maximum_message_size=1123,
294
306
  visibility_timeout=30,
295
- polling_wait_seconds=3,
296
- logging_enabled=True)
307
+ queue_name=name)
297
308
  ```
298
309
 
299
310
  ## Import
300
311
 
301
- Message Notification Service Queue can be imported using the id or queue_name, e.g.
312
+ Message Service Queue can be imported using the id, e.g.
302
313
 
303
314
  ```sh
304
- $ pulumi import alicloud:message/serviceQueue:ServiceQueue example <queue_name>
315
+ $ pulumi import alicloud:message/serviceQueue:ServiceQueue example <id>
305
316
  ```
306
317
 
307
318
  :param str resource_name: The name of the resource.
308
319
  :param pulumi.ResourceOptions opts: Options for the resource.
309
- :param pulumi.Input[int] delay_seconds: The delay period after which a message sent to the queue can be consumed. Unit: seconds. Valid values: 0-604800 seconds. Default value: 0.
310
- :param pulumi.Input[bool] logging_enabled: Specifies whether to enable the log management feature. Default value: false. Valid values:
311
- :param pulumi.Input[int] maximum_message_size: The maximum size of a message body that can be sent to the queue. Unit: bytes. Valid value range: 1024-65536. Default value: 65536.
312
- :param pulumi.Input[int] message_retention_period: The maximum period for which a message can be retained in the queue. After the specified period, the message is deleted no matter whether the message is consumed. Unit: seconds. Valid values: 60-604800. Default value: 345600.
313
- :param pulumi.Input[int] polling_wait_seconds: The maximum period for which a ReceiveMessage request waits if no message is available in the queue. Unit: seconds. Valid values: 0-30. Default value: 0.
314
- :param pulumi.Input[str] queue_name: Two queues on a single account in the same region cannot have the same name. A queue name must start with an English letter or a digit, and can contain English letters, digits, and hyphens, with the length not exceeding 120 characters.
315
- :param pulumi.Input[int] visibility_timeout: The invisibility period for which the received message remains the Inactive state. Unit: seconds. Valid values: 1-43200. Default value: 30.
320
+ :param pulumi.Input[int] delay_seconds: This means that messages sent to the queue can only be consumed after the delay time set by this parameter, in seconds.
321
+ :param pulumi.Input[bool] logging_enabled: Represents whether the log management function is enabled.
322
+ :param pulumi.Input[int] maximum_message_size: Represents the maximum length of the message body sent to the Queue, in Byte.
323
+ :param pulumi.Input[int] message_retention_period: Represents the longest life time of the message in the Queue.
324
+ :param pulumi.Input[int] polling_wait_seconds: The longest waiting time for a Queue request when the number of messages is empty, in seconds.
325
+ :param pulumi.Input[str] queue_name: Representative resources.
326
+ :param pulumi.Input[int] visibility_timeout: Represents the duration after the message is removed from the Queue and changed from the Active state to the Inactive state.
316
327
  """
317
328
  ...
318
329
  @overload
@@ -321,9 +332,9 @@ class ServiceQueue(pulumi.CustomResource):
321
332
  args: ServiceQueueArgs,
322
333
  opts: Optional[pulumi.ResourceOptions] = None):
323
334
  """
324
- Provides a Message Notification Service Queue resource.
335
+ Provides a Message Service Queue resource.
325
336
 
326
- For information about Message Notification Service Queue and how to use it, see [What is Queue](https://www.alibabacloud.com/help/en/message-service/latest/createqueue).
337
+ For information about Message Service Queue and how to use it, see [What is Queue](https://www.alibabacloud.com/help/en/message-service/latest/createqueue).
327
338
 
328
339
  > **NOTE:** Available since v1.188.0.
329
340
 
@@ -334,31 +345,26 @@ class ServiceQueue(pulumi.CustomResource):
334
345
  ```python
335
346
  import pulumi
336
347
  import pulumi_alicloud as alicloud
337
- import pulumi_random as random
338
348
 
339
349
  config = pulumi.Config()
340
350
  name = config.get("name")
341
351
  if name is None:
342
- name = "tf-example"
343
- default = random.index.Integer("default",
344
- min=10000,
345
- max=99999)
346
- queue = alicloud.message.ServiceQueue("queue",
347
- queue_name=f"{name}-{default['result']}",
348
- delay_seconds=60478,
349
- maximum_message_size=12357,
350
- message_retention_period=256000,
352
+ name = "terraform-example"
353
+ default = alicloud.message.ServiceQueue("default",
354
+ delay_seconds=2,
355
+ polling_wait_seconds=2,
356
+ message_retention_period=566,
357
+ maximum_message_size=1123,
351
358
  visibility_timeout=30,
352
- polling_wait_seconds=3,
353
- logging_enabled=True)
359
+ queue_name=name)
354
360
  ```
355
361
 
356
362
  ## Import
357
363
 
358
- Message Notification Service Queue can be imported using the id or queue_name, e.g.
364
+ Message Service Queue can be imported using the id, e.g.
359
365
 
360
366
  ```sh
361
- $ pulumi import alicloud:message/serviceQueue:ServiceQueue example <queue_name>
367
+ $ pulumi import alicloud:message/serviceQueue:ServiceQueue example <id>
362
368
  ```
363
369
 
364
370
  :param str resource_name: The name of the resource.
@@ -401,6 +407,7 @@ class ServiceQueue(pulumi.CustomResource):
401
407
  raise TypeError("Missing required property 'queue_name'")
402
408
  __props__.__dict__["queue_name"] = queue_name
403
409
  __props__.__dict__["visibility_timeout"] = visibility_timeout
410
+ __props__.__dict__["create_time"] = None
404
411
  super(ServiceQueue, __self__).__init__(
405
412
  'alicloud:message/serviceQueue:ServiceQueue',
406
413
  resource_name,
@@ -411,6 +418,7 @@ class ServiceQueue(pulumi.CustomResource):
411
418
  def get(resource_name: str,
412
419
  id: pulumi.Input[str],
413
420
  opts: Optional[pulumi.ResourceOptions] = None,
421
+ create_time: Optional[pulumi.Input[int]] = None,
414
422
  delay_seconds: Optional[pulumi.Input[int]] = None,
415
423
  logging_enabled: Optional[pulumi.Input[bool]] = None,
416
424
  maximum_message_size: Optional[pulumi.Input[int]] = None,
@@ -425,18 +433,20 @@ class ServiceQueue(pulumi.CustomResource):
425
433
  :param str resource_name: The unique name of the resulting resource.
426
434
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
427
435
  :param pulumi.ResourceOptions opts: Options for the resource.
428
- :param pulumi.Input[int] delay_seconds: The delay period after which a message sent to the queue can be consumed. Unit: seconds. Valid values: 0-604800 seconds. Default value: 0.
429
- :param pulumi.Input[bool] logging_enabled: Specifies whether to enable the log management feature. Default value: false. Valid values:
430
- :param pulumi.Input[int] maximum_message_size: The maximum size of a message body that can be sent to the queue. Unit: bytes. Valid value range: 1024-65536. Default value: 65536.
431
- :param pulumi.Input[int] message_retention_period: The maximum period for which a message can be retained in the queue. After the specified period, the message is deleted no matter whether the message is consumed. Unit: seconds. Valid values: 60-604800. Default value: 345600.
432
- :param pulumi.Input[int] polling_wait_seconds: The maximum period for which a ReceiveMessage request waits if no message is available in the queue. Unit: seconds. Valid values: 0-30. Default value: 0.
433
- :param pulumi.Input[str] queue_name: Two queues on a single account in the same region cannot have the same name. A queue name must start with an English letter or a digit, and can contain English letters, digits, and hyphens, with the length not exceeding 120 characters.
434
- :param pulumi.Input[int] visibility_timeout: The invisibility period for which the received message remains the Inactive state. Unit: seconds. Valid values: 1-43200. Default value: 30.
436
+ :param pulumi.Input[int] create_time: Represents the time when the Queue was created.
437
+ :param pulumi.Input[int] delay_seconds: This means that messages sent to the queue can only be consumed after the delay time set by this parameter, in seconds.
438
+ :param pulumi.Input[bool] logging_enabled: Represents whether the log management function is enabled.
439
+ :param pulumi.Input[int] maximum_message_size: Represents the maximum length of the message body sent to the Queue, in Byte.
440
+ :param pulumi.Input[int] message_retention_period: Represents the longest life time of the message in the Queue.
441
+ :param pulumi.Input[int] polling_wait_seconds: The longest waiting time for a Queue request when the number of messages is empty, in seconds.
442
+ :param pulumi.Input[str] queue_name: Representative resources.
443
+ :param pulumi.Input[int] visibility_timeout: Represents the duration after the message is removed from the Queue and changed from the Active state to the Inactive state.
435
444
  """
436
445
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
437
446
 
438
447
  __props__ = _ServiceQueueState.__new__(_ServiceQueueState)
439
448
 
449
+ __props__.__dict__["create_time"] = create_time
440
450
  __props__.__dict__["delay_seconds"] = delay_seconds
441
451
  __props__.__dict__["logging_enabled"] = logging_enabled
442
452
  __props__.__dict__["maximum_message_size"] = maximum_message_size
@@ -446,11 +456,19 @@ class ServiceQueue(pulumi.CustomResource):
446
456
  __props__.__dict__["visibility_timeout"] = visibility_timeout
447
457
  return ServiceQueue(resource_name, opts=opts, __props__=__props__)
448
458
 
459
+ @property
460
+ @pulumi.getter(name="createTime")
461
+ def create_time(self) -> pulumi.Output[int]:
462
+ """
463
+ Represents the time when the Queue was created.
464
+ """
465
+ return pulumi.get(self, "create_time")
466
+
449
467
  @property
450
468
  @pulumi.getter(name="delaySeconds")
451
469
  def delay_seconds(self) -> pulumi.Output[int]:
452
470
  """
453
- The delay period after which a message sent to the queue can be consumed. Unit: seconds. Valid values: 0-604800 seconds. Default value: 0.
471
+ This means that messages sent to the queue can only be consumed after the delay time set by this parameter, in seconds.
454
472
  """
455
473
  return pulumi.get(self, "delay_seconds")
456
474
 
@@ -458,7 +476,7 @@ class ServiceQueue(pulumi.CustomResource):
458
476
  @pulumi.getter(name="loggingEnabled")
459
477
  def logging_enabled(self) -> pulumi.Output[Optional[bool]]:
460
478
  """
461
- Specifies whether to enable the log management feature. Default value: false. Valid values:
479
+ Represents whether the log management function is enabled.
462
480
  """
463
481
  return pulumi.get(self, "logging_enabled")
464
482
 
@@ -466,7 +484,7 @@ class ServiceQueue(pulumi.CustomResource):
466
484
  @pulumi.getter(name="maximumMessageSize")
467
485
  def maximum_message_size(self) -> pulumi.Output[int]:
468
486
  """
469
- The maximum size of a message body that can be sent to the queue. Unit: bytes. Valid value range: 1024-65536. Default value: 65536.
487
+ Represents the maximum length of the message body sent to the Queue, in Byte.
470
488
  """
471
489
  return pulumi.get(self, "maximum_message_size")
472
490
 
@@ -474,7 +492,7 @@ class ServiceQueue(pulumi.CustomResource):
474
492
  @pulumi.getter(name="messageRetentionPeriod")
475
493
  def message_retention_period(self) -> pulumi.Output[int]:
476
494
  """
477
- The maximum period for which a message can be retained in the queue. After the specified period, the message is deleted no matter whether the message is consumed. Unit: seconds. Valid values: 60-604800. Default value: 345600.
495
+ Represents the longest life time of the message in the Queue.
478
496
  """
479
497
  return pulumi.get(self, "message_retention_period")
480
498
 
@@ -482,7 +500,7 @@ class ServiceQueue(pulumi.CustomResource):
482
500
  @pulumi.getter(name="pollingWaitSeconds")
483
501
  def polling_wait_seconds(self) -> pulumi.Output[int]:
484
502
  """
485
- The maximum period for which a ReceiveMessage request waits if no message is available in the queue. Unit: seconds. Valid values: 0-30. Default value: 0.
503
+ The longest waiting time for a Queue request when the number of messages is empty, in seconds.
486
504
  """
487
505
  return pulumi.get(self, "polling_wait_seconds")
488
506
 
@@ -490,7 +508,7 @@ class ServiceQueue(pulumi.CustomResource):
490
508
  @pulumi.getter(name="queueName")
491
509
  def queue_name(self) -> pulumi.Output[str]:
492
510
  """
493
- Two queues on a single account in the same region cannot have the same name. A queue name must start with an English letter or a digit, and can contain English letters, digits, and hyphens, with the length not exceeding 120 characters.
511
+ Representative resources.
494
512
  """
495
513
  return pulumi.get(self, "queue_name")
496
514
 
@@ -498,7 +516,7 @@ class ServiceQueue(pulumi.CustomResource):
498
516
  @pulumi.getter(name="visibilityTimeout")
499
517
  def visibility_timeout(self) -> pulumi.Output[int]:
500
518
  """
501
- The invisibility period for which the received message remains the Inactive state. Unit: seconds. Valid values: 1-43200. Default value: 30.
519
+ Represents the duration after the message is removed from the Queue and changed from the Active state to the Inactive state.
502
520
  """
503
521
  return pulumi.get(self, "visibility_timeout")
504
522
 
@@ -293,17 +293,27 @@ class AccessRule(pulumi.CustomResource):
293
293
  ```python
294
294
  import pulumi
295
295
  import pulumi_alicloud as alicloud
296
-
297
- foo = alicloud.nas.AccessGroup("foo",
298
- access_group_name="tf-NasConfigName",
296
+ import pulumi_random as random
297
+
298
+ config = pulumi.Config()
299
+ name = config.get("name")
300
+ if name is None:
301
+ name = "terraform-example"
302
+ default = random.index.Integer("default",
303
+ min=10000,
304
+ max=99999)
305
+ default_access_group = alicloud.nas.AccessGroup("default",
299
306
  access_group_type="Vpc",
300
- description="tf-testAccNasConfig")
301
- foo_access_rule = alicloud.nas.AccessRule("foo",
302
- access_group_name=foo.access_group_name,
303
- source_cidr_ip="168.1.1.0/16",
304
- rw_access_type="RDWR",
307
+ description="ExtremeAccessGroup",
308
+ access_group_name=f"terraform-example-{default['result']}",
309
+ file_system_type="extreme")
310
+ default_access_rule = alicloud.nas.AccessRule("default",
311
+ access_group_name=default_access_group.access_group_name,
312
+ rw_access_type="RDONLY",
313
+ ipv6_source_cidr_ip="::1",
305
314
  user_access_type="no_squash",
306
- priority=2)
315
+ priority=1,
316
+ file_system_type="extreme")
307
317
  ```
308
318
 
309
319
  ## Import
@@ -344,17 +354,27 @@ class AccessRule(pulumi.CustomResource):
344
354
  ```python
345
355
  import pulumi
346
356
  import pulumi_alicloud as alicloud
347
-
348
- foo = alicloud.nas.AccessGroup("foo",
349
- access_group_name="tf-NasConfigName",
357
+ import pulumi_random as random
358
+
359
+ config = pulumi.Config()
360
+ name = config.get("name")
361
+ if name is None:
362
+ name = "terraform-example"
363
+ default = random.index.Integer("default",
364
+ min=10000,
365
+ max=99999)
366
+ default_access_group = alicloud.nas.AccessGroup("default",
350
367
  access_group_type="Vpc",
351
- description="tf-testAccNasConfig")
352
- foo_access_rule = alicloud.nas.AccessRule("foo",
353
- access_group_name=foo.access_group_name,
354
- source_cidr_ip="168.1.1.0/16",
355
- rw_access_type="RDWR",
368
+ description="ExtremeAccessGroup",
369
+ access_group_name=f"terraform-example-{default['result']}",
370
+ file_system_type="extreme")
371
+ default_access_rule = alicloud.nas.AccessRule("default",
372
+ access_group_name=default_access_group.access_group_name,
373
+ rw_access_type="RDONLY",
374
+ ipv6_source_cidr_ip="::1",
356
375
  user_access_type="no_squash",
357
- priority=2)
376
+ priority=1,
377
+ file_system_type="extreme")
358
378
  ```
359
379
 
360
380
  ## Import