pulumi-alicloud 3.71.0__py3-none-any.whl → 3.71.0a1735017309__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.

@@ -24,42 +24,35 @@ class SecurityGroupArgs:
24
24
  inner_access_policy: Optional[pulumi.Input[str]] = None,
25
25
  name: Optional[pulumi.Input[str]] = None,
26
26
  resource_group_id: Optional[pulumi.Input[str]] = None,
27
- security_group_name: Optional[pulumi.Input[str]] = None,
28
27
  security_group_type: Optional[pulumi.Input[str]] = None,
29
28
  tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
30
29
  vpc_id: Optional[pulumi.Input[str]] = None):
31
30
  """
32
31
  The set of arguments for constructing a SecurityGroup resource.
33
- :param pulumi.Input[str] description: The description of the security group. The description must be `2` to `256` characters in length. It cannot start with `http://` or `https://`.
32
+ :param pulumi.Input[str] description: The security group description. Defaults to null.
34
33
  :param pulumi.Input[bool] inner_access: Field `inner_access` has been deprecated from provider version 1.55.3. New field `inner_access_policy` instead.
35
- :param pulumi.Input[str] inner_access_policy: The internal access control policy of the security group. Valid values:
36
- - `Accept`: The internal interconnectivity policy.
37
- - `Drop`: The internal isolation policy.
38
- :param pulumi.Input[str] name: Field `name` has been deprecated from provider version 1.239.0. New field `security_group_name` instead.
34
+
35
+ Combining security group rules, the policy can define multiple application scenario. Default to true. It is valid from version `1.7.2`.
36
+ :param pulumi.Input[str] inner_access_policy: The internal access control policy of the security group. Valid values: `Accept`, `Drop`.
37
+ :param pulumi.Input[str] name: The name of the security group. Defaults to null.
39
38
  :param pulumi.Input[str] resource_group_id: The ID of the resource group to which the security group belongs. **NOTE:** From version 1.115.0, `resource_group_id` can be modified.
40
- :param pulumi.Input[str] security_group_name: The name of the security group. The name must be `2` to `128` characters in length. The name must start with a letter and cannot start with `http://` or `https://`. The name can contain Unicode characters under the Decimal Number category and the categories whose names contain Letter. The name can also contain colons (:), underscores (\\_), periods (.), and hyphens (-).
41
- :param pulumi.Input[str] security_group_type: The type of the security group. Default value: `normal`. Valid values:
39
+ :param pulumi.Input[str] security_group_type: The type of the security group. Valid values:
42
40
  :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A mapping of tags to assign to the resource.
43
- :param pulumi.Input[str] vpc_id: The ID of the VPC in which you want to create the security group.
41
+ :param pulumi.Input[str] vpc_id: The ID of the VPC.
44
42
  """
45
43
  if description is not None:
46
44
  pulumi.set(__self__, "description", description)
47
45
  if inner_access is not None:
48
- warnings.warn("""Field `inner_access` has been deprecated from provider version 1.55.3. New field `inner_access_policy` instead.""", DeprecationWarning)
49
- pulumi.log.warn("""inner_access is deprecated: Field `inner_access` has been deprecated from provider version 1.55.3. New field `inner_access_policy` instead.""")
46
+ warnings.warn("""Field `inner_access` has been deprecated from provider version 1.55.3. Use `inner_access_policy` replaces it.""", DeprecationWarning)
47
+ pulumi.log.warn("""inner_access is deprecated: Field `inner_access` has been deprecated from provider version 1.55.3. Use `inner_access_policy` replaces it.""")
50
48
  if inner_access is not None:
51
49
  pulumi.set(__self__, "inner_access", inner_access)
52
50
  if inner_access_policy is not None:
53
51
  pulumi.set(__self__, "inner_access_policy", inner_access_policy)
54
- if name is not None:
55
- warnings.warn("""Field `name` has been deprecated from provider version 1.239.0. New field `security_group_name` instead.""", DeprecationWarning)
56
- pulumi.log.warn("""name is deprecated: Field `name` has been deprecated from provider version 1.239.0. New field `security_group_name` instead.""")
57
52
  if name is not None:
58
53
  pulumi.set(__self__, "name", name)
59
54
  if resource_group_id is not None:
60
55
  pulumi.set(__self__, "resource_group_id", resource_group_id)
61
- if security_group_name is not None:
62
- pulumi.set(__self__, "security_group_name", security_group_name)
63
56
  if security_group_type is not None:
64
57
  pulumi.set(__self__, "security_group_type", security_group_type)
65
58
  if tags is not None:
@@ -71,7 +64,7 @@ class SecurityGroupArgs:
71
64
  @pulumi.getter
72
65
  def description(self) -> Optional[pulumi.Input[str]]:
73
66
  """
74
- The description of the security group. The description must be `2` to `256` characters in length. It cannot start with `http://` or `https://`.
67
+ The security group description. Defaults to null.
75
68
  """
76
69
  return pulumi.get(self, "description")
77
70
 
@@ -81,10 +74,12 @@ class SecurityGroupArgs:
81
74
 
82
75
  @property
83
76
  @pulumi.getter(name="innerAccess")
84
- @_utilities.deprecated("""Field `inner_access` has been deprecated from provider version 1.55.3. New field `inner_access_policy` instead.""")
77
+ @_utilities.deprecated("""Field `inner_access` has been deprecated from provider version 1.55.3. Use `inner_access_policy` replaces it.""")
85
78
  def inner_access(self) -> Optional[pulumi.Input[bool]]:
86
79
  """
87
80
  Field `inner_access` has been deprecated from provider version 1.55.3. New field `inner_access_policy` instead.
81
+
82
+ Combining security group rules, the policy can define multiple application scenario. Default to true. It is valid from version `1.7.2`.
88
83
  """
89
84
  return pulumi.get(self, "inner_access")
90
85
 
@@ -96,9 +91,7 @@ class SecurityGroupArgs:
96
91
  @pulumi.getter(name="innerAccessPolicy")
97
92
  def inner_access_policy(self) -> Optional[pulumi.Input[str]]:
98
93
  """
99
- The internal access control policy of the security group. Valid values:
100
- - `Accept`: The internal interconnectivity policy.
101
- - `Drop`: The internal isolation policy.
94
+ The internal access control policy of the security group. Valid values: `Accept`, `Drop`.
102
95
  """
103
96
  return pulumi.get(self, "inner_access_policy")
104
97
 
@@ -108,10 +101,9 @@ class SecurityGroupArgs:
108
101
 
109
102
  @property
110
103
  @pulumi.getter
111
- @_utilities.deprecated("""Field `name` has been deprecated from provider version 1.239.0. New field `security_group_name` instead.""")
112
104
  def name(self) -> Optional[pulumi.Input[str]]:
113
105
  """
114
- Field `name` has been deprecated from provider version 1.239.0. New field `security_group_name` instead.
106
+ The name of the security group. Defaults to null.
115
107
  """
116
108
  return pulumi.get(self, "name")
117
109
 
@@ -131,23 +123,11 @@ class SecurityGroupArgs:
131
123
  def resource_group_id(self, value: Optional[pulumi.Input[str]]):
132
124
  pulumi.set(self, "resource_group_id", value)
133
125
 
134
- @property
135
- @pulumi.getter(name="securityGroupName")
136
- def security_group_name(self) -> Optional[pulumi.Input[str]]:
137
- """
138
- The name of the security group. The name must be `2` to `128` characters in length. The name must start with a letter and cannot start with `http://` or `https://`. The name can contain Unicode characters under the Decimal Number category and the categories whose names contain Letter. The name can also contain colons (:), underscores (\\_), periods (.), and hyphens (-).
139
- """
140
- return pulumi.get(self, "security_group_name")
141
-
142
- @security_group_name.setter
143
- def security_group_name(self, value: Optional[pulumi.Input[str]]):
144
- pulumi.set(self, "security_group_name", value)
145
-
146
126
  @property
147
127
  @pulumi.getter(name="securityGroupType")
148
128
  def security_group_type(self) -> Optional[pulumi.Input[str]]:
149
129
  """
150
- The type of the security group. Default value: `normal`. Valid values:
130
+ The type of the security group. Valid values:
151
131
  """
152
132
  return pulumi.get(self, "security_group_type")
153
133
 
@@ -171,7 +151,7 @@ class SecurityGroupArgs:
171
151
  @pulumi.getter(name="vpcId")
172
152
  def vpc_id(self) -> Optional[pulumi.Input[str]]:
173
153
  """
174
- The ID of the VPC in which you want to create the security group.
154
+ The ID of the VPC.
175
155
  """
176
156
  return pulumi.get(self, "vpc_id")
177
157
 
@@ -183,51 +163,40 @@ class SecurityGroupArgs:
183
163
  @pulumi.input_type
184
164
  class _SecurityGroupState:
185
165
  def __init__(__self__, *,
186
- create_time: Optional[pulumi.Input[str]] = None,
187
166
  description: Optional[pulumi.Input[str]] = None,
188
167
  inner_access: Optional[pulumi.Input[bool]] = None,
189
168
  inner_access_policy: Optional[pulumi.Input[str]] = None,
190
169
  name: Optional[pulumi.Input[str]] = None,
191
170
  resource_group_id: Optional[pulumi.Input[str]] = None,
192
- security_group_name: Optional[pulumi.Input[str]] = None,
193
171
  security_group_type: Optional[pulumi.Input[str]] = None,
194
172
  tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
195
173
  vpc_id: Optional[pulumi.Input[str]] = None):
196
174
  """
197
175
  Input properties used for looking up and filtering SecurityGroup resources.
198
- :param pulumi.Input[str] create_time: (Available since v1.239.0) The time when the security group was created.
199
- :param pulumi.Input[str] description: The description of the security group. The description must be `2` to `256` characters in length. It cannot start with `http://` or `https://`.
176
+ :param pulumi.Input[str] description: The security group description. Defaults to null.
200
177
  :param pulumi.Input[bool] inner_access: Field `inner_access` has been deprecated from provider version 1.55.3. New field `inner_access_policy` instead.
201
- :param pulumi.Input[str] inner_access_policy: The internal access control policy of the security group. Valid values:
202
- - `Accept`: The internal interconnectivity policy.
203
- - `Drop`: The internal isolation policy.
204
- :param pulumi.Input[str] name: Field `name` has been deprecated from provider version 1.239.0. New field `security_group_name` instead.
178
+
179
+ Combining security group rules, the policy can define multiple application scenario. Default to true. It is valid from version `1.7.2`.
180
+ :param pulumi.Input[str] inner_access_policy: The internal access control policy of the security group. Valid values: `Accept`, `Drop`.
181
+ :param pulumi.Input[str] name: The name of the security group. Defaults to null.
205
182
  :param pulumi.Input[str] resource_group_id: The ID of the resource group to which the security group belongs. **NOTE:** From version 1.115.0, `resource_group_id` can be modified.
206
- :param pulumi.Input[str] security_group_name: The name of the security group. The name must be `2` to `128` characters in length. The name must start with a letter and cannot start with `http://` or `https://`. The name can contain Unicode characters under the Decimal Number category and the categories whose names contain Letter. The name can also contain colons (:), underscores (\\_), periods (.), and hyphens (-).
207
- :param pulumi.Input[str] security_group_type: The type of the security group. Default value: `normal`. Valid values:
183
+ :param pulumi.Input[str] security_group_type: The type of the security group. Valid values:
208
184
  :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A mapping of tags to assign to the resource.
209
- :param pulumi.Input[str] vpc_id: The ID of the VPC in which you want to create the security group.
185
+ :param pulumi.Input[str] vpc_id: The ID of the VPC.
210
186
  """
211
- if create_time is not None:
212
- pulumi.set(__self__, "create_time", create_time)
213
187
  if description is not None:
214
188
  pulumi.set(__self__, "description", description)
215
189
  if inner_access is not None:
216
- warnings.warn("""Field `inner_access` has been deprecated from provider version 1.55.3. New field `inner_access_policy` instead.""", DeprecationWarning)
217
- pulumi.log.warn("""inner_access is deprecated: Field `inner_access` has been deprecated from provider version 1.55.3. New field `inner_access_policy` instead.""")
190
+ warnings.warn("""Field `inner_access` has been deprecated from provider version 1.55.3. Use `inner_access_policy` replaces it.""", DeprecationWarning)
191
+ pulumi.log.warn("""inner_access is deprecated: Field `inner_access` has been deprecated from provider version 1.55.3. Use `inner_access_policy` replaces it.""")
218
192
  if inner_access is not None:
219
193
  pulumi.set(__self__, "inner_access", inner_access)
220
194
  if inner_access_policy is not None:
221
195
  pulumi.set(__self__, "inner_access_policy", inner_access_policy)
222
- if name is not None:
223
- warnings.warn("""Field `name` has been deprecated from provider version 1.239.0. New field `security_group_name` instead.""", DeprecationWarning)
224
- pulumi.log.warn("""name is deprecated: Field `name` has been deprecated from provider version 1.239.0. New field `security_group_name` instead.""")
225
196
  if name is not None:
226
197
  pulumi.set(__self__, "name", name)
227
198
  if resource_group_id is not None:
228
199
  pulumi.set(__self__, "resource_group_id", resource_group_id)
229
- if security_group_name is not None:
230
- pulumi.set(__self__, "security_group_name", security_group_name)
231
200
  if security_group_type is not None:
232
201
  pulumi.set(__self__, "security_group_type", security_group_type)
233
202
  if tags is not None:
@@ -235,23 +204,11 @@ class _SecurityGroupState:
235
204
  if vpc_id is not None:
236
205
  pulumi.set(__self__, "vpc_id", vpc_id)
237
206
 
238
- @property
239
- @pulumi.getter(name="createTime")
240
- def create_time(self) -> Optional[pulumi.Input[str]]:
241
- """
242
- (Available since v1.239.0) The time when the security group was created.
243
- """
244
- return pulumi.get(self, "create_time")
245
-
246
- @create_time.setter
247
- def create_time(self, value: Optional[pulumi.Input[str]]):
248
- pulumi.set(self, "create_time", value)
249
-
250
207
  @property
251
208
  @pulumi.getter
252
209
  def description(self) -> Optional[pulumi.Input[str]]:
253
210
  """
254
- The description of the security group. The description must be `2` to `256` characters in length. It cannot start with `http://` or `https://`.
211
+ The security group description. Defaults to null.
255
212
  """
256
213
  return pulumi.get(self, "description")
257
214
 
@@ -261,10 +218,12 @@ class _SecurityGroupState:
261
218
 
262
219
  @property
263
220
  @pulumi.getter(name="innerAccess")
264
- @_utilities.deprecated("""Field `inner_access` has been deprecated from provider version 1.55.3. New field `inner_access_policy` instead.""")
221
+ @_utilities.deprecated("""Field `inner_access` has been deprecated from provider version 1.55.3. Use `inner_access_policy` replaces it.""")
265
222
  def inner_access(self) -> Optional[pulumi.Input[bool]]:
266
223
  """
267
224
  Field `inner_access` has been deprecated from provider version 1.55.3. New field `inner_access_policy` instead.
225
+
226
+ Combining security group rules, the policy can define multiple application scenario. Default to true. It is valid from version `1.7.2`.
268
227
  """
269
228
  return pulumi.get(self, "inner_access")
270
229
 
@@ -276,9 +235,7 @@ class _SecurityGroupState:
276
235
  @pulumi.getter(name="innerAccessPolicy")
277
236
  def inner_access_policy(self) -> Optional[pulumi.Input[str]]:
278
237
  """
279
- The internal access control policy of the security group. Valid values:
280
- - `Accept`: The internal interconnectivity policy.
281
- - `Drop`: The internal isolation policy.
238
+ The internal access control policy of the security group. Valid values: `Accept`, `Drop`.
282
239
  """
283
240
  return pulumi.get(self, "inner_access_policy")
284
241
 
@@ -288,10 +245,9 @@ class _SecurityGroupState:
288
245
 
289
246
  @property
290
247
  @pulumi.getter
291
- @_utilities.deprecated("""Field `name` has been deprecated from provider version 1.239.0. New field `security_group_name` instead.""")
292
248
  def name(self) -> Optional[pulumi.Input[str]]:
293
249
  """
294
- Field `name` has been deprecated from provider version 1.239.0. New field `security_group_name` instead.
250
+ The name of the security group. Defaults to null.
295
251
  """
296
252
  return pulumi.get(self, "name")
297
253
 
@@ -311,23 +267,11 @@ class _SecurityGroupState:
311
267
  def resource_group_id(self, value: Optional[pulumi.Input[str]]):
312
268
  pulumi.set(self, "resource_group_id", value)
313
269
 
314
- @property
315
- @pulumi.getter(name="securityGroupName")
316
- def security_group_name(self) -> Optional[pulumi.Input[str]]:
317
- """
318
- The name of the security group. The name must be `2` to `128` characters in length. The name must start with a letter and cannot start with `http://` or `https://`. The name can contain Unicode characters under the Decimal Number category and the categories whose names contain Letter. The name can also contain colons (:), underscores (\\_), periods (.), and hyphens (-).
319
- """
320
- return pulumi.get(self, "security_group_name")
321
-
322
- @security_group_name.setter
323
- def security_group_name(self, value: Optional[pulumi.Input[str]]):
324
- pulumi.set(self, "security_group_name", value)
325
-
326
270
  @property
327
271
  @pulumi.getter(name="securityGroupType")
328
272
  def security_group_type(self) -> Optional[pulumi.Input[str]]:
329
273
  """
330
- The type of the security group. Default value: `normal`. Valid values:
274
+ The type of the security group. Valid values:
331
275
  """
332
276
  return pulumi.get(self, "security_group_type")
333
277
 
@@ -351,7 +295,7 @@ class _SecurityGroupState:
351
295
  @pulumi.getter(name="vpcId")
352
296
  def vpc_id(self) -> Optional[pulumi.Input[str]]:
353
297
  """
354
- The ID of the VPC in which you want to create the security group.
298
+ The ID of the VPC.
355
299
  """
356
300
  return pulumi.get(self, "vpc_id")
357
301
 
@@ -370,15 +314,14 @@ class SecurityGroup(pulumi.CustomResource):
370
314
  inner_access_policy: Optional[pulumi.Input[str]] = None,
371
315
  name: Optional[pulumi.Input[str]] = None,
372
316
  resource_group_id: Optional[pulumi.Input[str]] = None,
373
- security_group_name: Optional[pulumi.Input[str]] = None,
374
317
  security_group_type: Optional[pulumi.Input[str]] = None,
375
318
  tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
376
319
  vpc_id: Optional[pulumi.Input[str]] = None,
377
320
  __props__=None):
378
321
  """
379
- Provides a ECS Security Group resource.
322
+ Provides a Security Group resource.
380
323
 
381
- For information about ECS Security Group and how to use it, see [What is Security Group](https://www.alibabacloud.com/help/en/ecs/developer-reference/api-createsecuritygroup).
324
+ For information about Security Group and how to use it, see [What is Security Group](https://www.alibabacloud.com/help/en/ecs/developer-reference/api-createsecuritygroup).
382
325
 
383
326
  > **NOTE:** Available since v1.0.0.
384
327
 
@@ -394,7 +337,9 @@ class SecurityGroup(pulumi.CustomResource):
394
337
  import pulumi
395
338
  import pulumi_alicloud as alicloud
396
339
 
397
- default = alicloud.ecs.SecurityGroup("default", security_group_name="terraform-example")
340
+ default = alicloud.ecs.SecurityGroup("default",
341
+ name="terraform-example",
342
+ description="New security group")
398
343
  ```
399
344
 
400
345
  Basic Usage for VPC
@@ -403,12 +348,12 @@ class SecurityGroup(pulumi.CustomResource):
403
348
  import pulumi
404
349
  import pulumi_alicloud as alicloud
405
350
 
406
- default = alicloud.vpc.Network("default",
351
+ vpc = alicloud.vpc.Network("vpc",
407
352
  vpc_name="terraform-example",
408
- cidr_block="172.16.0.0/16")
409
- default_security_group = alicloud.ecs.SecurityGroup("default",
410
- security_group_name="terraform-example",
411
- vpc_id=default.id)
353
+ cidr_block="10.1.0.0/21")
354
+ group = alicloud.ecs.SecurityGroup("group",
355
+ name="terraform-example",
356
+ vpc_id=vpc.id)
412
357
  ```
413
358
 
414
359
  ## Module Support
@@ -418,25 +363,24 @@ class SecurityGroup(pulumi.CustomResource):
418
363
 
419
364
  ## Import
420
365
 
421
- ECS Security Group can be imported using the id, e.g.
366
+ Security Group can be imported using the id, e.g.
422
367
 
423
368
  ```sh
424
- $ pulumi import alicloud:ecs/securityGroup:SecurityGroup example <id>
369
+ $ pulumi import alicloud:ecs/securityGroup:SecurityGroup example sg-abc123456
425
370
  ```
426
371
 
427
372
  :param str resource_name: The name of the resource.
428
373
  :param pulumi.ResourceOptions opts: Options for the resource.
429
- :param pulumi.Input[str] description: The description of the security group. The description must be `2` to `256` characters in length. It cannot start with `http://` or `https://`.
374
+ :param pulumi.Input[str] description: The security group description. Defaults to null.
430
375
  :param pulumi.Input[bool] inner_access: Field `inner_access` has been deprecated from provider version 1.55.3. New field `inner_access_policy` instead.
431
- :param pulumi.Input[str] inner_access_policy: The internal access control policy of the security group. Valid values:
432
- - `Accept`: The internal interconnectivity policy.
433
- - `Drop`: The internal isolation policy.
434
- :param pulumi.Input[str] name: Field `name` has been deprecated from provider version 1.239.0. New field `security_group_name` instead.
376
+
377
+ Combining security group rules, the policy can define multiple application scenario. Default to true. It is valid from version `1.7.2`.
378
+ :param pulumi.Input[str] inner_access_policy: The internal access control policy of the security group. Valid values: `Accept`, `Drop`.
379
+ :param pulumi.Input[str] name: The name of the security group. Defaults to null.
435
380
  :param pulumi.Input[str] resource_group_id: The ID of the resource group to which the security group belongs. **NOTE:** From version 1.115.0, `resource_group_id` can be modified.
436
- :param pulumi.Input[str] security_group_name: The name of the security group. The name must be `2` to `128` characters in length. The name must start with a letter and cannot start with `http://` or `https://`. The name can contain Unicode characters under the Decimal Number category and the categories whose names contain Letter. The name can also contain colons (:), underscores (\\_), periods (.), and hyphens (-).
437
- :param pulumi.Input[str] security_group_type: The type of the security group. Default value: `normal`. Valid values:
381
+ :param pulumi.Input[str] security_group_type: The type of the security group. Valid values:
438
382
  :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A mapping of tags to assign to the resource.
439
- :param pulumi.Input[str] vpc_id: The ID of the VPC in which you want to create the security group.
383
+ :param pulumi.Input[str] vpc_id: The ID of the VPC.
440
384
  """
441
385
  ...
442
386
  @overload
@@ -445,9 +389,9 @@ class SecurityGroup(pulumi.CustomResource):
445
389
  args: Optional[SecurityGroupArgs] = None,
446
390
  opts: Optional[pulumi.ResourceOptions] = None):
447
391
  """
448
- Provides a ECS Security Group resource.
392
+ Provides a Security Group resource.
449
393
 
450
- For information about ECS Security Group and how to use it, see [What is Security Group](https://www.alibabacloud.com/help/en/ecs/developer-reference/api-createsecuritygroup).
394
+ For information about Security Group and how to use it, see [What is Security Group](https://www.alibabacloud.com/help/en/ecs/developer-reference/api-createsecuritygroup).
451
395
 
452
396
  > **NOTE:** Available since v1.0.0.
453
397
 
@@ -463,7 +407,9 @@ class SecurityGroup(pulumi.CustomResource):
463
407
  import pulumi
464
408
  import pulumi_alicloud as alicloud
465
409
 
466
- default = alicloud.ecs.SecurityGroup("default", security_group_name="terraform-example")
410
+ default = alicloud.ecs.SecurityGroup("default",
411
+ name="terraform-example",
412
+ description="New security group")
467
413
  ```
468
414
 
469
415
  Basic Usage for VPC
@@ -472,12 +418,12 @@ class SecurityGroup(pulumi.CustomResource):
472
418
  import pulumi
473
419
  import pulumi_alicloud as alicloud
474
420
 
475
- default = alicloud.vpc.Network("default",
421
+ vpc = alicloud.vpc.Network("vpc",
476
422
  vpc_name="terraform-example",
477
- cidr_block="172.16.0.0/16")
478
- default_security_group = alicloud.ecs.SecurityGroup("default",
479
- security_group_name="terraform-example",
480
- vpc_id=default.id)
423
+ cidr_block="10.1.0.0/21")
424
+ group = alicloud.ecs.SecurityGroup("group",
425
+ name="terraform-example",
426
+ vpc_id=vpc.id)
481
427
  ```
482
428
 
483
429
  ## Module Support
@@ -487,10 +433,10 @@ class SecurityGroup(pulumi.CustomResource):
487
433
 
488
434
  ## Import
489
435
 
490
- ECS Security Group can be imported using the id, e.g.
436
+ Security Group can be imported using the id, e.g.
491
437
 
492
438
  ```sh
493
- $ pulumi import alicloud:ecs/securityGroup:SecurityGroup example <id>
439
+ $ pulumi import alicloud:ecs/securityGroup:SecurityGroup example sg-abc123456
494
440
  ```
495
441
 
496
442
  :param str resource_name: The name of the resource.
@@ -513,7 +459,6 @@ class SecurityGroup(pulumi.CustomResource):
513
459
  inner_access_policy: Optional[pulumi.Input[str]] = None,
514
460
  name: Optional[pulumi.Input[str]] = None,
515
461
  resource_group_id: Optional[pulumi.Input[str]] = None,
516
- security_group_name: Optional[pulumi.Input[str]] = None,
517
462
  security_group_type: Optional[pulumi.Input[str]] = None,
518
463
  tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
519
464
  vpc_id: Optional[pulumi.Input[str]] = None,
@@ -531,11 +476,9 @@ class SecurityGroup(pulumi.CustomResource):
531
476
  __props__.__dict__["inner_access_policy"] = inner_access_policy
532
477
  __props__.__dict__["name"] = name
533
478
  __props__.__dict__["resource_group_id"] = resource_group_id
534
- __props__.__dict__["security_group_name"] = security_group_name
535
479
  __props__.__dict__["security_group_type"] = security_group_type
536
480
  __props__.__dict__["tags"] = tags
537
481
  __props__.__dict__["vpc_id"] = vpc_id
538
- __props__.__dict__["create_time"] = None
539
482
  super(SecurityGroup, __self__).__init__(
540
483
  'alicloud:ecs/securityGroup:SecurityGroup',
541
484
  resource_name,
@@ -546,13 +489,11 @@ class SecurityGroup(pulumi.CustomResource):
546
489
  def get(resource_name: str,
547
490
  id: pulumi.Input[str],
548
491
  opts: Optional[pulumi.ResourceOptions] = None,
549
- create_time: Optional[pulumi.Input[str]] = None,
550
492
  description: Optional[pulumi.Input[str]] = None,
551
493
  inner_access: Optional[pulumi.Input[bool]] = None,
552
494
  inner_access_policy: Optional[pulumi.Input[str]] = None,
553
495
  name: Optional[pulumi.Input[str]] = None,
554
496
  resource_group_id: Optional[pulumi.Input[str]] = None,
555
- security_group_name: Optional[pulumi.Input[str]] = None,
556
497
  security_group_type: Optional[pulumi.Input[str]] = None,
557
498
  tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
558
499
  vpc_id: Optional[pulumi.Input[str]] = None) -> 'SecurityGroup':
@@ -563,57 +504,47 @@ class SecurityGroup(pulumi.CustomResource):
563
504
  :param str resource_name: The unique name of the resulting resource.
564
505
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
565
506
  :param pulumi.ResourceOptions opts: Options for the resource.
566
- :param pulumi.Input[str] create_time: (Available since v1.239.0) The time when the security group was created.
567
- :param pulumi.Input[str] description: The description of the security group. The description must be `2` to `256` characters in length. It cannot start with `http://` or `https://`.
507
+ :param pulumi.Input[str] description: The security group description. Defaults to null.
568
508
  :param pulumi.Input[bool] inner_access: Field `inner_access` has been deprecated from provider version 1.55.3. New field `inner_access_policy` instead.
569
- :param pulumi.Input[str] inner_access_policy: The internal access control policy of the security group. Valid values:
570
- - `Accept`: The internal interconnectivity policy.
571
- - `Drop`: The internal isolation policy.
572
- :param pulumi.Input[str] name: Field `name` has been deprecated from provider version 1.239.0. New field `security_group_name` instead.
509
+
510
+ Combining security group rules, the policy can define multiple application scenario. Default to true. It is valid from version `1.7.2`.
511
+ :param pulumi.Input[str] inner_access_policy: The internal access control policy of the security group. Valid values: `Accept`, `Drop`.
512
+ :param pulumi.Input[str] name: The name of the security group. Defaults to null.
573
513
  :param pulumi.Input[str] resource_group_id: The ID of the resource group to which the security group belongs. **NOTE:** From version 1.115.0, `resource_group_id` can be modified.
574
- :param pulumi.Input[str] security_group_name: The name of the security group. The name must be `2` to `128` characters in length. The name must start with a letter and cannot start with `http://` or `https://`. The name can contain Unicode characters under the Decimal Number category and the categories whose names contain Letter. The name can also contain colons (:), underscores (\\_), periods (.), and hyphens (-).
575
- :param pulumi.Input[str] security_group_type: The type of the security group. Default value: `normal`. Valid values:
514
+ :param pulumi.Input[str] security_group_type: The type of the security group. Valid values:
576
515
  :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A mapping of tags to assign to the resource.
577
- :param pulumi.Input[str] vpc_id: The ID of the VPC in which you want to create the security group.
516
+ :param pulumi.Input[str] vpc_id: The ID of the VPC.
578
517
  """
579
518
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
580
519
 
581
520
  __props__ = _SecurityGroupState.__new__(_SecurityGroupState)
582
521
 
583
- __props__.__dict__["create_time"] = create_time
584
522
  __props__.__dict__["description"] = description
585
523
  __props__.__dict__["inner_access"] = inner_access
586
524
  __props__.__dict__["inner_access_policy"] = inner_access_policy
587
525
  __props__.__dict__["name"] = name
588
526
  __props__.__dict__["resource_group_id"] = resource_group_id
589
- __props__.__dict__["security_group_name"] = security_group_name
590
527
  __props__.__dict__["security_group_type"] = security_group_type
591
528
  __props__.__dict__["tags"] = tags
592
529
  __props__.__dict__["vpc_id"] = vpc_id
593
530
  return SecurityGroup(resource_name, opts=opts, __props__=__props__)
594
531
 
595
- @property
596
- @pulumi.getter(name="createTime")
597
- def create_time(self) -> pulumi.Output[str]:
598
- """
599
- (Available since v1.239.0) The time when the security group was created.
600
- """
601
- return pulumi.get(self, "create_time")
602
-
603
532
  @property
604
533
  @pulumi.getter
605
534
  def description(self) -> pulumi.Output[Optional[str]]:
606
535
  """
607
- The description of the security group. The description must be `2` to `256` characters in length. It cannot start with `http://` or `https://`.
536
+ The security group description. Defaults to null.
608
537
  """
609
538
  return pulumi.get(self, "description")
610
539
 
611
540
  @property
612
541
  @pulumi.getter(name="innerAccess")
613
- @_utilities.deprecated("""Field `inner_access` has been deprecated from provider version 1.55.3. New field `inner_access_policy` instead.""")
542
+ @_utilities.deprecated("""Field `inner_access` has been deprecated from provider version 1.55.3. Use `inner_access_policy` replaces it.""")
614
543
  def inner_access(self) -> pulumi.Output[bool]:
615
544
  """
616
545
  Field `inner_access` has been deprecated from provider version 1.55.3. New field `inner_access_policy` instead.
546
+
547
+ Combining security group rules, the policy can define multiple application scenario. Default to true. It is valid from version `1.7.2`.
617
548
  """
618
549
  return pulumi.get(self, "inner_access")
619
550
 
@@ -621,18 +552,15 @@ class SecurityGroup(pulumi.CustomResource):
621
552
  @pulumi.getter(name="innerAccessPolicy")
622
553
  def inner_access_policy(self) -> pulumi.Output[str]:
623
554
  """
624
- The internal access control policy of the security group. Valid values:
625
- - `Accept`: The internal interconnectivity policy.
626
- - `Drop`: The internal isolation policy.
555
+ The internal access control policy of the security group. Valid values: `Accept`, `Drop`.
627
556
  """
628
557
  return pulumi.get(self, "inner_access_policy")
629
558
 
630
559
  @property
631
560
  @pulumi.getter
632
- @_utilities.deprecated("""Field `name` has been deprecated from provider version 1.239.0. New field `security_group_name` instead.""")
633
561
  def name(self) -> pulumi.Output[str]:
634
562
  """
635
- Field `name` has been deprecated from provider version 1.239.0. New field `security_group_name` instead.
563
+ The name of the security group. Defaults to null.
636
564
  """
637
565
  return pulumi.get(self, "name")
638
566
 
@@ -644,19 +572,11 @@ class SecurityGroup(pulumi.CustomResource):
644
572
  """
645
573
  return pulumi.get(self, "resource_group_id")
646
574
 
647
- @property
648
- @pulumi.getter(name="securityGroupName")
649
- def security_group_name(self) -> pulumi.Output[str]:
650
- """
651
- The name of the security group. The name must be `2` to `128` characters in length. The name must start with a letter and cannot start with `http://` or `https://`. The name can contain Unicode characters under the Decimal Number category and the categories whose names contain Letter. The name can also contain colons (:), underscores (\\_), periods (.), and hyphens (-).
652
- """
653
- return pulumi.get(self, "security_group_name")
654
-
655
575
  @property
656
576
  @pulumi.getter(name="securityGroupType")
657
577
  def security_group_type(self) -> pulumi.Output[str]:
658
578
  """
659
- The type of the security group. Default value: `normal`. Valid values:
579
+ The type of the security group. Valid values:
660
580
  """
661
581
  return pulumi.get(self, "security_group_type")
662
582
 
@@ -670,9 +590,9 @@ class SecurityGroup(pulumi.CustomResource):
670
590
 
671
591
  @property
672
592
  @pulumi.getter(name="vpcId")
673
- def vpc_id(self) -> pulumi.Output[str]:
593
+ def vpc_id(self) -> pulumi.Output[Optional[str]]:
674
594
  """
675
- The ID of the VPC in which you want to create the security group.
595
+ The ID of the VPC.
676
596
  """
677
597
  return pulumi.get(self, "vpc_id")
678
598