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

@@ -193,12 +193,14 @@ class SnapshotArgs:
193
193
  class _SnapshotState:
194
194
  def __init__(__self__, *,
195
195
  category: Optional[pulumi.Input[str]] = None,
196
+ create_time: Optional[pulumi.Input[str]] = None,
196
197
  description: Optional[pulumi.Input[str]] = None,
197
198
  disk_id: Optional[pulumi.Input[str]] = None,
198
199
  force: Optional[pulumi.Input[bool]] = None,
199
200
  instant_access: Optional[pulumi.Input[bool]] = None,
200
201
  instant_access_retention_days: Optional[pulumi.Input[int]] = None,
201
202
  name: Optional[pulumi.Input[str]] = None,
203
+ region_id: Optional[pulumi.Input[str]] = None,
202
204
  resource_group_id: Optional[pulumi.Input[str]] = None,
203
205
  retention_days: Optional[pulumi.Input[int]] = None,
204
206
  snapshot_name: Optional[pulumi.Input[str]] = None,
@@ -215,6 +217,8 @@ class _SnapshotState:
215
217
  """
216
218
  if category is not None:
217
219
  pulumi.set(__self__, "category", category)
220
+ if create_time is not None:
221
+ pulumi.set(__self__, "create_time", create_time)
218
222
  if description is not None:
219
223
  pulumi.set(__self__, "description", description)
220
224
  if disk_id is not None:
@@ -236,6 +240,8 @@ class _SnapshotState:
236
240
  pulumi.log.warn("""name is deprecated: Field `name` has been deprecated from provider version 1.120.0. New field `snapshot_name` instead.""")
237
241
  if name is not None:
238
242
  pulumi.set(__self__, "name", name)
243
+ if region_id is not None:
244
+ pulumi.set(__self__, "region_id", region_id)
239
245
  if resource_group_id is not None:
240
246
  pulumi.set(__self__, "resource_group_id", resource_group_id)
241
247
  if retention_days is not None:
@@ -256,6 +262,15 @@ class _SnapshotState:
256
262
  def category(self, value: Optional[pulumi.Input[str]]):
257
263
  pulumi.set(self, "category", value)
258
264
 
265
+ @property
266
+ @pulumi.getter(name="createTime")
267
+ def create_time(self) -> Optional[pulumi.Input[str]]:
268
+ return pulumi.get(self, "create_time")
269
+
270
+ @create_time.setter
271
+ def create_time(self, value: Optional[pulumi.Input[str]]):
272
+ pulumi.set(self, "create_time", value)
273
+
259
274
  @property
260
275
  @pulumi.getter
261
276
  def description(self) -> Optional[pulumi.Input[str]]:
@@ -323,6 +338,15 @@ class _SnapshotState:
323
338
  def name(self, value: Optional[pulumi.Input[str]]):
324
339
  pulumi.set(self, "name", value)
325
340
 
341
+ @property
342
+ @pulumi.getter(name="regionId")
343
+ def region_id(self) -> Optional[pulumi.Input[str]]:
344
+ return pulumi.get(self, "region_id")
345
+
346
+ @region_id.setter
347
+ def region_id(self, value: Optional[pulumi.Input[str]]):
348
+ pulumi.set(self, "region_id", value)
349
+
326
350
  @property
327
351
  @pulumi.getter(name="resourceGroupId")
328
352
  def resource_group_id(self) -> Optional[pulumi.Input[str]]:
@@ -515,6 +539,8 @@ class Snapshot(pulumi.CustomResource):
515
539
  __props__.__dict__["retention_days"] = retention_days
516
540
  __props__.__dict__["snapshot_name"] = snapshot_name
517
541
  __props__.__dict__["tags"] = tags
542
+ __props__.__dict__["create_time"] = None
543
+ __props__.__dict__["region_id"] = None
518
544
  __props__.__dict__["status"] = None
519
545
  super(Snapshot, __self__).__init__(
520
546
  'alicloud:ecs/snapshot:Snapshot',
@@ -527,12 +553,14 @@ class Snapshot(pulumi.CustomResource):
527
553
  id: pulumi.Input[str],
528
554
  opts: Optional[pulumi.ResourceOptions] = None,
529
555
  category: Optional[pulumi.Input[str]] = None,
556
+ create_time: Optional[pulumi.Input[str]] = None,
530
557
  description: Optional[pulumi.Input[str]] = None,
531
558
  disk_id: Optional[pulumi.Input[str]] = None,
532
559
  force: Optional[pulumi.Input[bool]] = None,
533
560
  instant_access: Optional[pulumi.Input[bool]] = None,
534
561
  instant_access_retention_days: Optional[pulumi.Input[int]] = None,
535
562
  name: Optional[pulumi.Input[str]] = None,
563
+ region_id: Optional[pulumi.Input[str]] = None,
536
564
  resource_group_id: Optional[pulumi.Input[str]] = None,
537
565
  retention_days: Optional[pulumi.Input[int]] = None,
538
566
  snapshot_name: Optional[pulumi.Input[str]] = None,
@@ -557,12 +585,14 @@ class Snapshot(pulumi.CustomResource):
557
585
  __props__ = _SnapshotState.__new__(_SnapshotState)
558
586
 
559
587
  __props__.__dict__["category"] = category
588
+ __props__.__dict__["create_time"] = create_time
560
589
  __props__.__dict__["description"] = description
561
590
  __props__.__dict__["disk_id"] = disk_id
562
591
  __props__.__dict__["force"] = force
563
592
  __props__.__dict__["instant_access"] = instant_access
564
593
  __props__.__dict__["instant_access_retention_days"] = instant_access_retention_days
565
594
  __props__.__dict__["name"] = name
595
+ __props__.__dict__["region_id"] = region_id
566
596
  __props__.__dict__["resource_group_id"] = resource_group_id
567
597
  __props__.__dict__["retention_days"] = retention_days
568
598
  __props__.__dict__["snapshot_name"] = snapshot_name
@@ -575,6 +605,11 @@ class Snapshot(pulumi.CustomResource):
575
605
  def category(self) -> pulumi.Output[str]:
576
606
  return pulumi.get(self, "category")
577
607
 
608
+ @property
609
+ @pulumi.getter(name="createTime")
610
+ def create_time(self) -> pulumi.Output[str]:
611
+ return pulumi.get(self, "create_time")
612
+
578
613
  @property
579
614
  @pulumi.getter
580
615
  def description(self) -> pulumi.Output[Optional[str]]:
@@ -618,6 +653,11 @@ class Snapshot(pulumi.CustomResource):
618
653
  """
619
654
  return pulumi.get(self, "name")
620
655
 
656
+ @property
657
+ @pulumi.getter(name="regionId")
658
+ def region_id(self) -> pulumi.Output[str]:
659
+ return pulumi.get(self, "region_id")
660
+
621
661
  @property
622
662
  @pulumi.getter(name="resourceGroupId")
623
663
  def resource_group_id(self) -> pulumi.Output[Optional[str]]:
@@ -224,6 +224,8 @@ class RamDirectory(pulumi.CustomResource):
224
224
 
225
225
  > **NOTE:** Available since v1.174.0.
226
226
 
227
+ > **DEPRECATED:** This resource has been deprecated from version `1.239.0`.
228
+
227
229
  ## Example Usage
228
230
 
229
231
  Basic Usage
@@ -281,6 +283,8 @@ class RamDirectory(pulumi.CustomResource):
281
283
 
282
284
  > **NOTE:** Available since v1.174.0.
283
285
 
286
+ > **DEPRECATED:** This resource has been deprecated from version `1.239.0`.
287
+
284
288
  ## Example Usage
285
289
 
286
290
  Basic Usage
@@ -17,6 +17,7 @@ from .get_virtual_physical_connections import *
17
17
  from .grant_rule_to_cen import *
18
18
  from .physical_connection import *
19
19
  from .router_express_connect_router import *
20
+ from .router_grant_association import *
20
21
  from .router_interface import *
21
22
  from .router_tr_association import *
22
23
  from .router_vbr_child_instance import *
@@ -0,0 +1,477 @@
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__ = ['RouterGrantAssociationArgs', 'RouterGrantAssociation']
18
+
19
+ @pulumi.input_type
20
+ class RouterGrantAssociationArgs:
21
+ def __init__(__self__, *,
22
+ ecr_id: pulumi.Input[str],
23
+ ecr_owner_ali_uid: pulumi.Input[int],
24
+ instance_id: pulumi.Input[str],
25
+ instance_region_id: pulumi.Input[str],
26
+ instance_type: pulumi.Input[str]):
27
+ """
28
+ The set of arguments for constructing a RouterGrantAssociation resource.
29
+ :param pulumi.Input[str] ecr_id: The ID of the associated Leased Line Gateway instance.
30
+ :param pulumi.Input[int] ecr_owner_ali_uid: The ID of the Alibaba Cloud account (primary account) to which the leased line gateway instance is authorized.
31
+ :param pulumi.Input[str] instance_id: The ID of the network instance.
32
+ :param pulumi.Input[str] instance_region_id: The ID of the region where the authorized network instance is located.
33
+ :param pulumi.Input[str] instance_type: The type of the network instance. Value:
34
+ - `VBR`: the VBR instance.
35
+ - `VPC`: VPC instance.
36
+ """
37
+ pulumi.set(__self__, "ecr_id", ecr_id)
38
+ pulumi.set(__self__, "ecr_owner_ali_uid", ecr_owner_ali_uid)
39
+ pulumi.set(__self__, "instance_id", instance_id)
40
+ pulumi.set(__self__, "instance_region_id", instance_region_id)
41
+ pulumi.set(__self__, "instance_type", instance_type)
42
+
43
+ @property
44
+ @pulumi.getter(name="ecrId")
45
+ def ecr_id(self) -> pulumi.Input[str]:
46
+ """
47
+ The ID of the associated Leased Line Gateway instance.
48
+ """
49
+ return pulumi.get(self, "ecr_id")
50
+
51
+ @ecr_id.setter
52
+ def ecr_id(self, value: pulumi.Input[str]):
53
+ pulumi.set(self, "ecr_id", value)
54
+
55
+ @property
56
+ @pulumi.getter(name="ecrOwnerAliUid")
57
+ def ecr_owner_ali_uid(self) -> pulumi.Input[int]:
58
+ """
59
+ The ID of the Alibaba Cloud account (primary account) to which the leased line gateway instance is authorized.
60
+ """
61
+ return pulumi.get(self, "ecr_owner_ali_uid")
62
+
63
+ @ecr_owner_ali_uid.setter
64
+ def ecr_owner_ali_uid(self, value: pulumi.Input[int]):
65
+ pulumi.set(self, "ecr_owner_ali_uid", value)
66
+
67
+ @property
68
+ @pulumi.getter(name="instanceId")
69
+ def instance_id(self) -> pulumi.Input[str]:
70
+ """
71
+ The ID of the network instance.
72
+ """
73
+ return pulumi.get(self, "instance_id")
74
+
75
+ @instance_id.setter
76
+ def instance_id(self, value: pulumi.Input[str]):
77
+ pulumi.set(self, "instance_id", value)
78
+
79
+ @property
80
+ @pulumi.getter(name="instanceRegionId")
81
+ def instance_region_id(self) -> pulumi.Input[str]:
82
+ """
83
+ The ID of the region where the authorized network instance is located.
84
+ """
85
+ return pulumi.get(self, "instance_region_id")
86
+
87
+ @instance_region_id.setter
88
+ def instance_region_id(self, value: pulumi.Input[str]):
89
+ pulumi.set(self, "instance_region_id", value)
90
+
91
+ @property
92
+ @pulumi.getter(name="instanceType")
93
+ def instance_type(self) -> pulumi.Input[str]:
94
+ """
95
+ The type of the network instance. Value:
96
+ - `VBR`: the VBR instance.
97
+ - `VPC`: VPC instance.
98
+ """
99
+ return pulumi.get(self, "instance_type")
100
+
101
+ @instance_type.setter
102
+ def instance_type(self, value: pulumi.Input[str]):
103
+ pulumi.set(self, "instance_type", value)
104
+
105
+
106
+ @pulumi.input_type
107
+ class _RouterGrantAssociationState:
108
+ def __init__(__self__, *,
109
+ ecr_id: Optional[pulumi.Input[str]] = None,
110
+ ecr_owner_ali_uid: Optional[pulumi.Input[int]] = None,
111
+ instance_id: Optional[pulumi.Input[str]] = None,
112
+ instance_region_id: Optional[pulumi.Input[str]] = None,
113
+ instance_type: Optional[pulumi.Input[str]] = None,
114
+ status: Optional[pulumi.Input[str]] = None):
115
+ """
116
+ Input properties used for looking up and filtering RouterGrantAssociation resources.
117
+ :param pulumi.Input[str] ecr_id: The ID of the associated Leased Line Gateway instance.
118
+ :param pulumi.Input[int] ecr_owner_ali_uid: The ID of the Alibaba Cloud account (primary account) to which the leased line gateway instance is authorized.
119
+ :param pulumi.Input[str] instance_id: The ID of the network instance.
120
+ :param pulumi.Input[str] instance_region_id: The ID of the region where the authorized network instance is located.
121
+ :param pulumi.Input[str] instance_type: The type of the network instance. Value:
122
+ - `VBR`: the VBR instance.
123
+ - `VPC`: VPC instance.
124
+ :param pulumi.Input[str] status: The status of the resource
125
+ """
126
+ if ecr_id is not None:
127
+ pulumi.set(__self__, "ecr_id", ecr_id)
128
+ if ecr_owner_ali_uid is not None:
129
+ pulumi.set(__self__, "ecr_owner_ali_uid", ecr_owner_ali_uid)
130
+ if instance_id is not None:
131
+ pulumi.set(__self__, "instance_id", instance_id)
132
+ if instance_region_id is not None:
133
+ pulumi.set(__self__, "instance_region_id", instance_region_id)
134
+ if instance_type is not None:
135
+ pulumi.set(__self__, "instance_type", instance_type)
136
+ if status is not None:
137
+ pulumi.set(__self__, "status", status)
138
+
139
+ @property
140
+ @pulumi.getter(name="ecrId")
141
+ def ecr_id(self) -> Optional[pulumi.Input[str]]:
142
+ """
143
+ The ID of the associated Leased Line Gateway instance.
144
+ """
145
+ return pulumi.get(self, "ecr_id")
146
+
147
+ @ecr_id.setter
148
+ def ecr_id(self, value: Optional[pulumi.Input[str]]):
149
+ pulumi.set(self, "ecr_id", value)
150
+
151
+ @property
152
+ @pulumi.getter(name="ecrOwnerAliUid")
153
+ def ecr_owner_ali_uid(self) -> Optional[pulumi.Input[int]]:
154
+ """
155
+ The ID of the Alibaba Cloud account (primary account) to which the leased line gateway instance is authorized.
156
+ """
157
+ return pulumi.get(self, "ecr_owner_ali_uid")
158
+
159
+ @ecr_owner_ali_uid.setter
160
+ def ecr_owner_ali_uid(self, value: Optional[pulumi.Input[int]]):
161
+ pulumi.set(self, "ecr_owner_ali_uid", value)
162
+
163
+ @property
164
+ @pulumi.getter(name="instanceId")
165
+ def instance_id(self) -> Optional[pulumi.Input[str]]:
166
+ """
167
+ The ID of the network instance.
168
+ """
169
+ return pulumi.get(self, "instance_id")
170
+
171
+ @instance_id.setter
172
+ def instance_id(self, value: Optional[pulumi.Input[str]]):
173
+ pulumi.set(self, "instance_id", value)
174
+
175
+ @property
176
+ @pulumi.getter(name="instanceRegionId")
177
+ def instance_region_id(self) -> Optional[pulumi.Input[str]]:
178
+ """
179
+ The ID of the region where the authorized network instance is located.
180
+ """
181
+ return pulumi.get(self, "instance_region_id")
182
+
183
+ @instance_region_id.setter
184
+ def instance_region_id(self, value: Optional[pulumi.Input[str]]):
185
+ pulumi.set(self, "instance_region_id", value)
186
+
187
+ @property
188
+ @pulumi.getter(name="instanceType")
189
+ def instance_type(self) -> Optional[pulumi.Input[str]]:
190
+ """
191
+ The type of the network instance. Value:
192
+ - `VBR`: the VBR instance.
193
+ - `VPC`: VPC instance.
194
+ """
195
+ return pulumi.get(self, "instance_type")
196
+
197
+ @instance_type.setter
198
+ def instance_type(self, value: Optional[pulumi.Input[str]]):
199
+ pulumi.set(self, "instance_type", value)
200
+
201
+ @property
202
+ @pulumi.getter
203
+ def status(self) -> Optional[pulumi.Input[str]]:
204
+ """
205
+ The status of the resource
206
+ """
207
+ return pulumi.get(self, "status")
208
+
209
+ @status.setter
210
+ def status(self, value: Optional[pulumi.Input[str]]):
211
+ pulumi.set(self, "status", value)
212
+
213
+
214
+ class RouterGrantAssociation(pulumi.CustomResource):
215
+ @overload
216
+ def __init__(__self__,
217
+ resource_name: str,
218
+ opts: Optional[pulumi.ResourceOptions] = None,
219
+ ecr_id: Optional[pulumi.Input[str]] = None,
220
+ ecr_owner_ali_uid: Optional[pulumi.Input[int]] = None,
221
+ instance_id: Optional[pulumi.Input[str]] = None,
222
+ instance_region_id: Optional[pulumi.Input[str]] = None,
223
+ instance_type: Optional[pulumi.Input[str]] = None,
224
+ __props__=None):
225
+ """
226
+ Provides a Express Connect Router Grant Association resource.
227
+
228
+ Network instances authorized to the leased line Gateway.
229
+
230
+ For information about Express Connect Router Grant Association and how to use it, see [What is Grant Association](https://www.alibabacloud.com/help/en/).
231
+
232
+ > **NOTE:** Available since v1.239.0.
233
+
234
+ ## Example Usage
235
+
236
+ Basic Usage
237
+
238
+ ```python
239
+ import pulumi
240
+ import pulumi_alicloud as alicloud
241
+
242
+ config = pulumi.Config()
243
+ name = config.get("name")
244
+ if name is None:
245
+ name = "terraform-example"
246
+ vpc_id = config.get("vpcId")
247
+ if vpc_id is None:
248
+ vpc_id = "vpc-xxx"
249
+ ecr_owner_uid = config.get("ecrOwnerUid")
250
+ if ecr_owner_uid is None:
251
+ ecr_owner_uid = "18xxx"
252
+ ecr_id = config.get("ecrId")
253
+ if ecr_id is None:
254
+ ecr_id = "ecr-xxx"
255
+ region = config.get("region")
256
+ if region is None:
257
+ region = "cn-hangzhou"
258
+ default = alicloud.expressconnect.RouterGrantAssociation("default",
259
+ ecr_id=ecr_id,
260
+ instance_region_id=region,
261
+ instance_id=vpc_id,
262
+ ecr_owner_ali_uid=ecr_owner_uid,
263
+ instance_type="VPC")
264
+ ```
265
+
266
+ ## Import
267
+
268
+ Express Connect Router Grant Association can be imported using the id, e.g.
269
+
270
+ ```sh
271
+ $ pulumi import alicloud:expressconnect/routerGrantAssociation:RouterGrantAssociation example <ecr_id>:<instance_id>:<instance_region_id>:<ecr_owner_ali_uid>:<instance_type>
272
+ ```
273
+
274
+ :param str resource_name: The name of the resource.
275
+ :param pulumi.ResourceOptions opts: Options for the resource.
276
+ :param pulumi.Input[str] ecr_id: The ID of the associated Leased Line Gateway instance.
277
+ :param pulumi.Input[int] ecr_owner_ali_uid: The ID of the Alibaba Cloud account (primary account) to which the leased line gateway instance is authorized.
278
+ :param pulumi.Input[str] instance_id: The ID of the network instance.
279
+ :param pulumi.Input[str] instance_region_id: The ID of the region where the authorized network instance is located.
280
+ :param pulumi.Input[str] instance_type: The type of the network instance. Value:
281
+ - `VBR`: the VBR instance.
282
+ - `VPC`: VPC instance.
283
+ """
284
+ ...
285
+ @overload
286
+ def __init__(__self__,
287
+ resource_name: str,
288
+ args: RouterGrantAssociationArgs,
289
+ opts: Optional[pulumi.ResourceOptions] = None):
290
+ """
291
+ Provides a Express Connect Router Grant Association resource.
292
+
293
+ Network instances authorized to the leased line Gateway.
294
+
295
+ For information about Express Connect Router Grant Association and how to use it, see [What is Grant Association](https://www.alibabacloud.com/help/en/).
296
+
297
+ > **NOTE:** Available since v1.239.0.
298
+
299
+ ## Example Usage
300
+
301
+ Basic Usage
302
+
303
+ ```python
304
+ import pulumi
305
+ import pulumi_alicloud as alicloud
306
+
307
+ config = pulumi.Config()
308
+ name = config.get("name")
309
+ if name is None:
310
+ name = "terraform-example"
311
+ vpc_id = config.get("vpcId")
312
+ if vpc_id is None:
313
+ vpc_id = "vpc-xxx"
314
+ ecr_owner_uid = config.get("ecrOwnerUid")
315
+ if ecr_owner_uid is None:
316
+ ecr_owner_uid = "18xxx"
317
+ ecr_id = config.get("ecrId")
318
+ if ecr_id is None:
319
+ ecr_id = "ecr-xxx"
320
+ region = config.get("region")
321
+ if region is None:
322
+ region = "cn-hangzhou"
323
+ default = alicloud.expressconnect.RouterGrantAssociation("default",
324
+ ecr_id=ecr_id,
325
+ instance_region_id=region,
326
+ instance_id=vpc_id,
327
+ ecr_owner_ali_uid=ecr_owner_uid,
328
+ instance_type="VPC")
329
+ ```
330
+
331
+ ## Import
332
+
333
+ Express Connect Router Grant Association can be imported using the id, e.g.
334
+
335
+ ```sh
336
+ $ pulumi import alicloud:expressconnect/routerGrantAssociation:RouterGrantAssociation example <ecr_id>:<instance_id>:<instance_region_id>:<ecr_owner_ali_uid>:<instance_type>
337
+ ```
338
+
339
+ :param str resource_name: The name of the resource.
340
+ :param RouterGrantAssociationArgs args: The arguments to use to populate this resource's properties.
341
+ :param pulumi.ResourceOptions opts: Options for the resource.
342
+ """
343
+ ...
344
+ def __init__(__self__, resource_name: str, *args, **kwargs):
345
+ resource_args, opts = _utilities.get_resource_args_opts(RouterGrantAssociationArgs, pulumi.ResourceOptions, *args, **kwargs)
346
+ if resource_args is not None:
347
+ __self__._internal_init(resource_name, opts, **resource_args.__dict__)
348
+ else:
349
+ __self__._internal_init(resource_name, *args, **kwargs)
350
+
351
+ def _internal_init(__self__,
352
+ resource_name: str,
353
+ opts: Optional[pulumi.ResourceOptions] = None,
354
+ ecr_id: Optional[pulumi.Input[str]] = None,
355
+ ecr_owner_ali_uid: Optional[pulumi.Input[int]] = None,
356
+ instance_id: Optional[pulumi.Input[str]] = None,
357
+ instance_region_id: Optional[pulumi.Input[str]] = None,
358
+ instance_type: Optional[pulumi.Input[str]] = None,
359
+ __props__=None):
360
+ opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
361
+ if not isinstance(opts, pulumi.ResourceOptions):
362
+ raise TypeError('Expected resource options to be a ResourceOptions instance')
363
+ if opts.id is None:
364
+ if __props__ is not None:
365
+ raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
366
+ __props__ = RouterGrantAssociationArgs.__new__(RouterGrantAssociationArgs)
367
+
368
+ if ecr_id is None and not opts.urn:
369
+ raise TypeError("Missing required property 'ecr_id'")
370
+ __props__.__dict__["ecr_id"] = ecr_id
371
+ if ecr_owner_ali_uid is None and not opts.urn:
372
+ raise TypeError("Missing required property 'ecr_owner_ali_uid'")
373
+ __props__.__dict__["ecr_owner_ali_uid"] = ecr_owner_ali_uid
374
+ if instance_id is None and not opts.urn:
375
+ raise TypeError("Missing required property 'instance_id'")
376
+ __props__.__dict__["instance_id"] = instance_id
377
+ if instance_region_id is None and not opts.urn:
378
+ raise TypeError("Missing required property 'instance_region_id'")
379
+ __props__.__dict__["instance_region_id"] = instance_region_id
380
+ if instance_type is None and not opts.urn:
381
+ raise TypeError("Missing required property 'instance_type'")
382
+ __props__.__dict__["instance_type"] = instance_type
383
+ __props__.__dict__["status"] = None
384
+ super(RouterGrantAssociation, __self__).__init__(
385
+ 'alicloud:expressconnect/routerGrantAssociation:RouterGrantAssociation',
386
+ resource_name,
387
+ __props__,
388
+ opts)
389
+
390
+ @staticmethod
391
+ def get(resource_name: str,
392
+ id: pulumi.Input[str],
393
+ opts: Optional[pulumi.ResourceOptions] = None,
394
+ ecr_id: Optional[pulumi.Input[str]] = None,
395
+ ecr_owner_ali_uid: Optional[pulumi.Input[int]] = None,
396
+ instance_id: Optional[pulumi.Input[str]] = None,
397
+ instance_region_id: Optional[pulumi.Input[str]] = None,
398
+ instance_type: Optional[pulumi.Input[str]] = None,
399
+ status: Optional[pulumi.Input[str]] = None) -> 'RouterGrantAssociation':
400
+ """
401
+ Get an existing RouterGrantAssociation resource's state with the given name, id, and optional extra
402
+ properties used to qualify the lookup.
403
+
404
+ :param str resource_name: The unique name of the resulting resource.
405
+ :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
406
+ :param pulumi.ResourceOptions opts: Options for the resource.
407
+ :param pulumi.Input[str] ecr_id: The ID of the associated Leased Line Gateway instance.
408
+ :param pulumi.Input[int] ecr_owner_ali_uid: The ID of the Alibaba Cloud account (primary account) to which the leased line gateway instance is authorized.
409
+ :param pulumi.Input[str] instance_id: The ID of the network instance.
410
+ :param pulumi.Input[str] instance_region_id: The ID of the region where the authorized network instance is located.
411
+ :param pulumi.Input[str] instance_type: The type of the network instance. Value:
412
+ - `VBR`: the VBR instance.
413
+ - `VPC`: VPC instance.
414
+ :param pulumi.Input[str] status: The status of the resource
415
+ """
416
+ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
417
+
418
+ __props__ = _RouterGrantAssociationState.__new__(_RouterGrantAssociationState)
419
+
420
+ __props__.__dict__["ecr_id"] = ecr_id
421
+ __props__.__dict__["ecr_owner_ali_uid"] = ecr_owner_ali_uid
422
+ __props__.__dict__["instance_id"] = instance_id
423
+ __props__.__dict__["instance_region_id"] = instance_region_id
424
+ __props__.__dict__["instance_type"] = instance_type
425
+ __props__.__dict__["status"] = status
426
+ return RouterGrantAssociation(resource_name, opts=opts, __props__=__props__)
427
+
428
+ @property
429
+ @pulumi.getter(name="ecrId")
430
+ def ecr_id(self) -> pulumi.Output[str]:
431
+ """
432
+ The ID of the associated Leased Line Gateway instance.
433
+ """
434
+ return pulumi.get(self, "ecr_id")
435
+
436
+ @property
437
+ @pulumi.getter(name="ecrOwnerAliUid")
438
+ def ecr_owner_ali_uid(self) -> pulumi.Output[int]:
439
+ """
440
+ The ID of the Alibaba Cloud account (primary account) to which the leased line gateway instance is authorized.
441
+ """
442
+ return pulumi.get(self, "ecr_owner_ali_uid")
443
+
444
+ @property
445
+ @pulumi.getter(name="instanceId")
446
+ def instance_id(self) -> pulumi.Output[str]:
447
+ """
448
+ The ID of the network instance.
449
+ """
450
+ return pulumi.get(self, "instance_id")
451
+
452
+ @property
453
+ @pulumi.getter(name="instanceRegionId")
454
+ def instance_region_id(self) -> pulumi.Output[str]:
455
+ """
456
+ The ID of the region where the authorized network instance is located.
457
+ """
458
+ return pulumi.get(self, "instance_region_id")
459
+
460
+ @property
461
+ @pulumi.getter(name="instanceType")
462
+ def instance_type(self) -> pulumi.Output[str]:
463
+ """
464
+ The type of the network instance. Value:
465
+ - `VBR`: the VBR instance.
466
+ - `VPC`: VPC instance.
467
+ """
468
+ return pulumi.get(self, "instance_type")
469
+
470
+ @property
471
+ @pulumi.getter
472
+ def status(self) -> pulumi.Output[str]:
473
+ """
474
+ The status of the resource
475
+ """
476
+ return pulumi.get(self, "status")
477
+