ros-cdk-cxapi 1.9.0__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.
@@ -0,0 +1,1689 @@
1
+ '''
2
+ # `@alicloud/ros-cdk-cxapi`
3
+
4
+ > TODO: description
5
+
6
+ ## Usage
7
+
8
+ ```
9
+ const rosCxapi = require('@alicloud/ros-cdk-cxapi');
10
+
11
+ // TODO: DEMONSTRATE API
12
+ ```
13
+ '''
14
+ import abc
15
+ import builtins
16
+ import datetime
17
+ import enum
18
+ import typing
19
+
20
+ import jsii
21
+ import publication
22
+ import typing_extensions
23
+
24
+ from typeguard import check_type
25
+
26
+ from ._jsii import *
27
+
28
+ import ros_cdk_assembly_schema as _ros_cdk_assembly_schema_63fe2cdf
29
+
30
+
31
+ @jsii.data_type(
32
+ jsii_type="@alicloud/ros-cdk-cxapi.AliyunRosStackProperties",
33
+ jsii_struct_bases=[],
34
+ name_mapping={
35
+ "template_file": "templateFile",
36
+ "parameters": "parameters",
37
+ "stack_name": "stackName",
38
+ },
39
+ )
40
+ class AliyunRosStackProperties:
41
+ def __init__(
42
+ self,
43
+ *,
44
+ template_file: builtins.str,
45
+ parameters: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
46
+ stack_name: typing.Optional[builtins.str] = None,
47
+ ) -> None:
48
+ '''Artifact properties for ROS stacks.
49
+
50
+ :param template_file: A file relative to the assembly root which contains the ROS template for this stack.
51
+ :param parameters: Values for ROS stack parameters that should be passed when the stack is deployed.
52
+ :param stack_name: The name to use for the ROS stack. Default: - name derived from artifact ID
53
+ '''
54
+ if __debug__:
55
+ type_hints = typing.get_type_hints(_typecheckingstub__c02ed7b56cc2e43438298ee3508e579a38f323bf81e58eb4f9fe4cb4bce823fe)
56
+ check_type(argname="argument template_file", value=template_file, expected_type=type_hints["template_file"])
57
+ check_type(argname="argument parameters", value=parameters, expected_type=type_hints["parameters"])
58
+ check_type(argname="argument stack_name", value=stack_name, expected_type=type_hints["stack_name"])
59
+ self._values: typing.Dict[builtins.str, typing.Any] = {
60
+ "template_file": template_file,
61
+ }
62
+ if parameters is not None:
63
+ self._values["parameters"] = parameters
64
+ if stack_name is not None:
65
+ self._values["stack_name"] = stack_name
66
+
67
+ @builtins.property
68
+ def template_file(self) -> builtins.str:
69
+ '''A file relative to the assembly root which contains the ROS template for this stack.'''
70
+ result = self._values.get("template_file")
71
+ assert result is not None, "Required property 'template_file' is missing"
72
+ return typing.cast(builtins.str, result)
73
+
74
+ @builtins.property
75
+ def parameters(self) -> typing.Optional[typing.Mapping[builtins.str, builtins.str]]:
76
+ '''Values for ROS stack parameters that should be passed when the stack is deployed.'''
77
+ result = self._values.get("parameters")
78
+ return typing.cast(typing.Optional[typing.Mapping[builtins.str, builtins.str]], result)
79
+
80
+ @builtins.property
81
+ def stack_name(self) -> typing.Optional[builtins.str]:
82
+ '''The name to use for the ROS stack.
83
+
84
+ :default: - name derived from artifact ID
85
+ '''
86
+ result = self._values.get("stack_name")
87
+ return typing.cast(typing.Optional[builtins.str], result)
88
+
89
+ def __eq__(self, rhs: typing.Any) -> builtins.bool:
90
+ return isinstance(rhs, self.__class__) and rhs._values == self._values
91
+
92
+ def __ne__(self, rhs: typing.Any) -> builtins.bool:
93
+ return not (rhs == self)
94
+
95
+ def __repr__(self) -> str:
96
+ return "AliyunRosStackProperties(%s)" % ", ".join(
97
+ k + "=" + repr(v) for k, v in self._values.items()
98
+ )
99
+
100
+
101
+ @jsii.data_type(
102
+ jsii_type="@alicloud/ros-cdk-cxapi.AssemblyBuildOptions",
103
+ jsii_struct_bases=[],
104
+ name_mapping={"runtime_info": "runtimeInfo"},
105
+ )
106
+ class AssemblyBuildOptions:
107
+ def __init__(
108
+ self,
109
+ *,
110
+ runtime_info: typing.Optional[typing.Union["RuntimeInfo", typing.Dict[builtins.str, typing.Any]]] = None,
111
+ ) -> None:
112
+ '''
113
+ :param runtime_info: Include the specified runtime information (module versions) in manifest. Default: - if this option is not specified, runtime info will not be included
114
+ '''
115
+ if isinstance(runtime_info, dict):
116
+ runtime_info = RuntimeInfo(**runtime_info)
117
+ if __debug__:
118
+ type_hints = typing.get_type_hints(_typecheckingstub__c428fbe5fd205eae0bef5974551be51b07e9a88490dedd6a67cf54448f1ce884)
119
+ check_type(argname="argument runtime_info", value=runtime_info, expected_type=type_hints["runtime_info"])
120
+ self._values: typing.Dict[builtins.str, typing.Any] = {}
121
+ if runtime_info is not None:
122
+ self._values["runtime_info"] = runtime_info
123
+
124
+ @builtins.property
125
+ def runtime_info(self) -> typing.Optional["RuntimeInfo"]:
126
+ '''Include the specified runtime information (module versions) in manifest.
127
+
128
+ :default: - if this option is not specified, runtime info will not be included
129
+ '''
130
+ result = self._values.get("runtime_info")
131
+ return typing.cast(typing.Optional["RuntimeInfo"], result)
132
+
133
+ def __eq__(self, rhs: typing.Any) -> builtins.bool:
134
+ return isinstance(rhs, self.__class__) and rhs._values == self._values
135
+
136
+ def __ne__(self, rhs: typing.Any) -> builtins.bool:
137
+ return not (rhs == self)
138
+
139
+ def __repr__(self) -> str:
140
+ return "AssemblyBuildOptions(%s)" % ", ".join(
141
+ k + "=" + repr(v) for k, v in self._values.items()
142
+ )
143
+
144
+
145
+ class CloudArtifact(
146
+ metaclass=jsii.JSIIMeta,
147
+ jsii_type="@alicloud/ros-cdk-cxapi.CloudArtifact",
148
+ ):
149
+ '''Represents an artifact within a cloud assembly.'''
150
+
151
+ def __init__(
152
+ self,
153
+ assembly: "CloudAssembly",
154
+ id: builtins.str,
155
+ *,
156
+ type: _ros_cdk_assembly_schema_63fe2cdf.ArtifactType,
157
+ dependencies: typing.Optional[typing.Sequence[builtins.str]] = None,
158
+ metadata: typing.Optional[typing.Mapping[builtins.str, typing.Sequence[typing.Union[_ros_cdk_assembly_schema_63fe2cdf.MetadataEntry, typing.Dict[builtins.str, typing.Any]]]]] = None,
159
+ properties: typing.Optional[typing.Union[typing.Union[_ros_cdk_assembly_schema_63fe2cdf.AliyunRosStackProperties, typing.Dict[builtins.str, typing.Any]], typing.Union[_ros_cdk_assembly_schema_63fe2cdf.TreeArtifactProperties, typing.Dict[builtins.str, typing.Any]], typing.Union[_ros_cdk_assembly_schema_63fe2cdf.NestedCloudAssemblyProperties, typing.Dict[builtins.str, typing.Any]]]] = None,
160
+ ) -> None:
161
+ '''
162
+ :param assembly: -
163
+ :param id: -
164
+ :param type: The type of artifact.
165
+ :param dependencies: IDs of artifacts that must be deployed before this artifact. Default: - no dependencies.
166
+ :param metadata: Associated metadata. Default: - no metadata.
167
+ :param properties: The set of properties for this artifact (depends on type). Default: - no properties.
168
+ '''
169
+ if __debug__:
170
+ type_hints = typing.get_type_hints(_typecheckingstub__1fd0b278a419cc7c82a8290aa9ee9ccbbf437c5b5d7134968e9e678dd089a5d0)
171
+ check_type(argname="argument assembly", value=assembly, expected_type=type_hints["assembly"])
172
+ check_type(argname="argument id", value=id, expected_type=type_hints["id"])
173
+ manifest = _ros_cdk_assembly_schema_63fe2cdf.ArtifactManifest(
174
+ type=type,
175
+ dependencies=dependencies,
176
+ metadata=metadata,
177
+ properties=properties,
178
+ )
179
+
180
+ jsii.create(self.__class__, self, [assembly, id, manifest])
181
+
182
+ @jsii.member(jsii_name="fromManifest")
183
+ @builtins.classmethod
184
+ def from_manifest(
185
+ cls,
186
+ assembly: "CloudAssembly",
187
+ id: builtins.str,
188
+ *,
189
+ type: _ros_cdk_assembly_schema_63fe2cdf.ArtifactType,
190
+ dependencies: typing.Optional[typing.Sequence[builtins.str]] = None,
191
+ metadata: typing.Optional[typing.Mapping[builtins.str, typing.Sequence[typing.Union[_ros_cdk_assembly_schema_63fe2cdf.MetadataEntry, typing.Dict[builtins.str, typing.Any]]]]] = None,
192
+ properties: typing.Optional[typing.Union[typing.Union[_ros_cdk_assembly_schema_63fe2cdf.AliyunRosStackProperties, typing.Dict[builtins.str, typing.Any]], typing.Union[_ros_cdk_assembly_schema_63fe2cdf.TreeArtifactProperties, typing.Dict[builtins.str, typing.Any]], typing.Union[_ros_cdk_assembly_schema_63fe2cdf.NestedCloudAssemblyProperties, typing.Dict[builtins.str, typing.Any]]]] = None,
193
+ ) -> typing.Optional["CloudArtifact"]:
194
+ '''Returns a subclass of ``CloudArtifact`` based on the artifact type defined in the artifact manifest.
195
+
196
+ :param assembly: The cloud assembly from which to load the artifact.
197
+ :param id: The artifact ID.
198
+ :param type: The type of artifact.
199
+ :param dependencies: IDs of artifacts that must be deployed before this artifact. Default: - no dependencies.
200
+ :param metadata: Associated metadata. Default: - no metadata.
201
+ :param properties: The set of properties for this artifact (depends on type). Default: - no properties.
202
+
203
+ :return: the ``CloudArtifact`` that matches the artifact type or ``undefined`` if it's an artifact type that is unrecognized by this module.
204
+ '''
205
+ if __debug__:
206
+ type_hints = typing.get_type_hints(_typecheckingstub__be38acca09c6a3d4ac6cc76c6234c9a24041d73b92c27272b0a1b6e699dc1f27)
207
+ check_type(argname="argument assembly", value=assembly, expected_type=type_hints["assembly"])
208
+ check_type(argname="argument id", value=id, expected_type=type_hints["id"])
209
+ artifact = _ros_cdk_assembly_schema_63fe2cdf.ArtifactManifest(
210
+ type=type,
211
+ dependencies=dependencies,
212
+ metadata=metadata,
213
+ properties=properties,
214
+ )
215
+
216
+ return typing.cast(typing.Optional["CloudArtifact"], jsii.sinvoke(cls, "fromManifest", [assembly, id, artifact]))
217
+
218
+ @jsii.member(jsii_name="findMetadataByType")
219
+ def find_metadata_by_type(
220
+ self,
221
+ type: builtins.str,
222
+ ) -> typing.List["MetadataEntryResult"]:
223
+ '''
224
+ :param type: -
225
+
226
+ :return: all the metadata entries of a specific type in this artifact.
227
+ '''
228
+ if __debug__:
229
+ type_hints = typing.get_type_hints(_typecheckingstub__a8f2a3233d0b940b4d1131326fc03874d2dd78b2190cb926f12932641dedc71b)
230
+ check_type(argname="argument type", value=type, expected_type=type_hints["type"])
231
+ return typing.cast(typing.List["MetadataEntryResult"], jsii.invoke(self, "findMetadataByType", [type]))
232
+
233
+ @builtins.property
234
+ @jsii.member(jsii_name="assembly")
235
+ def assembly(self) -> "CloudAssembly":
236
+ return typing.cast("CloudAssembly", jsii.get(self, "assembly"))
237
+
238
+ @builtins.property
239
+ @jsii.member(jsii_name="id")
240
+ def id(self) -> builtins.str:
241
+ return typing.cast(builtins.str, jsii.get(self, "id"))
242
+
243
+ @builtins.property
244
+ @jsii.member(jsii_name="manifest")
245
+ def manifest(self) -> _ros_cdk_assembly_schema_63fe2cdf.ArtifactManifest:
246
+ '''The artifact's manifest.'''
247
+ return typing.cast(_ros_cdk_assembly_schema_63fe2cdf.ArtifactManifest, jsii.get(self, "manifest"))
248
+
249
+ @builtins.property
250
+ @jsii.member(jsii_name="messages")
251
+ def messages(self) -> typing.List["SynthesisMessage"]:
252
+ '''The set of messages extracted from the artifact's metadata.'''
253
+ return typing.cast(typing.List["SynthesisMessage"], jsii.get(self, "messages"))
254
+
255
+ @builtins.property
256
+ @jsii.member(jsii_name="dependencies")
257
+ def dependencies(self) -> typing.Optional[typing.List["CloudArtifact"]]:
258
+ '''Returns all the artifacts that this artifact depends on.'''
259
+ return typing.cast(typing.Optional[typing.List["CloudArtifact"]], jsii.get(self, "dependencies"))
260
+
261
+
262
+ class CloudAssembly(
263
+ metaclass=jsii.JSIIMeta,
264
+ jsii_type="@alicloud/ros-cdk-cxapi.CloudAssembly",
265
+ ):
266
+ '''Represents a deployable cloud application.'''
267
+
268
+ def __init__(self, directory: builtins.str) -> None:
269
+ '''Reads a cloud assembly from the specified directory.
270
+
271
+ :param directory: The root directory of the assembly.
272
+ '''
273
+ if __debug__:
274
+ type_hints = typing.get_type_hints(_typecheckingstub__6fc32998cdaf053872836758c7fc414b91dd33adb0f551492b661dfb7cb9582a)
275
+ check_type(argname="argument directory", value=directory, expected_type=type_hints["directory"])
276
+ jsii.create(self.__class__, self, [directory])
277
+
278
+ @jsii.member(jsii_name="getNestedAssembly")
279
+ def get_nested_assembly(self, artifact_id: builtins.str) -> "CloudAssembly":
280
+ '''Returns a nested assembly.
281
+
282
+ :param artifact_id: The artifact ID of the nested assembly.
283
+ '''
284
+ if __debug__:
285
+ type_hints = typing.get_type_hints(_typecheckingstub__4f72946b7befa08df80a014df5beeb1c4c4ead603501b0a383ea2a5f89865495)
286
+ check_type(argname="argument artifact_id", value=artifact_id, expected_type=type_hints["artifact_id"])
287
+ return typing.cast("CloudAssembly", jsii.invoke(self, "getNestedAssembly", [artifact_id]))
288
+
289
+ @jsii.member(jsii_name="getNestedAssemblyArtifact")
290
+ def get_nested_assembly_artifact(
291
+ self,
292
+ artifact_id: builtins.str,
293
+ ) -> "NestedCloudAssemblyArtifact":
294
+ '''Returns a nested assembly artifact.
295
+
296
+ :param artifact_id: The artifact ID of the nested assembly.
297
+ '''
298
+ if __debug__:
299
+ type_hints = typing.get_type_hints(_typecheckingstub__1f381a040192c6bc37553e4c5191411332ecd5f16170049db20de03fab74b507)
300
+ check_type(argname="argument artifact_id", value=artifact_id, expected_type=type_hints["artifact_id"])
301
+ return typing.cast("NestedCloudAssemblyArtifact", jsii.invoke(self, "getNestedAssemblyArtifact", [artifact_id]))
302
+
303
+ @jsii.member(jsii_name="getStack")
304
+ def get_stack(self, stack_name: builtins.str) -> "RosStackArtifact":
305
+ '''Returns a ROS stack artifact by name from this assembly.
306
+
307
+ Deprecated renamed to 'getStackByName' (or 'getStackArtifact(id)')
308
+
309
+ :param stack_name: -
310
+ '''
311
+ if __debug__:
312
+ type_hints = typing.get_type_hints(_typecheckingstub__ded5294193414eaa1d0f86c39f8c7ee2076958d3caf70331c05459880c74eeed)
313
+ check_type(argname="argument stack_name", value=stack_name, expected_type=type_hints["stack_name"])
314
+ return typing.cast("RosStackArtifact", jsii.invoke(self, "getStack", [stack_name]))
315
+
316
+ @jsii.member(jsii_name="getStackArtifact")
317
+ def get_stack_artifact(self, artifact_id: builtins.str) -> "RosStackArtifact":
318
+ '''Returns a ROS stack artifact from this assembly.
319
+
320
+ Param artifactId the artifact id of the stack (can be obtained through 'stack.artifactId').
321
+ Throws if there is no stack artifact with that id
322
+ Returns a 'RosStackArtifact' object.
323
+
324
+ :param artifact_id: -
325
+ '''
326
+ if __debug__:
327
+ type_hints = typing.get_type_hints(_typecheckingstub__0a5601e746b677b59fb0147c2712861e77db605cb365170c99f3dfe176b33327)
328
+ check_type(argname="argument artifact_id", value=artifact_id, expected_type=type_hints["artifact_id"])
329
+ return typing.cast("RosStackArtifact", jsii.invoke(self, "getStackArtifact", [artifact_id]))
330
+
331
+ @jsii.member(jsii_name="getStackByName")
332
+ def get_stack_by_name(self, stack_name: builtins.str) -> "RosStackArtifact":
333
+ '''Returns a ROS stack artifact from this assembly.
334
+
335
+ Will only search the current assembly.
336
+
337
+ Param stackName the name of the ROS stack.
338
+ Throws if there is no stack artifact by that name
339
+ Throws if there is more than one stack with the same stack name. You can
340
+ use 'getStackArtifact - stack.artifactId' instead.
341
+ Returns a 'RosStackArtifact' object.
342
+
343
+ :param stack_name: -
344
+ '''
345
+ if __debug__:
346
+ type_hints = typing.get_type_hints(_typecheckingstub__eeb03f99fef00e1295a5f99ece1e08e0da66f513918a08f156c5e503c51915cd)
347
+ check_type(argname="argument stack_name", value=stack_name, expected_type=type_hints["stack_name"])
348
+ return typing.cast("RosStackArtifact", jsii.invoke(self, "getStackByName", [stack_name]))
349
+
350
+ @jsii.member(jsii_name="tree")
351
+ def tree(self) -> typing.Optional["TreeCloudArtifact"]:
352
+ '''Returns the tree metadata artifact from this assembly.
353
+
354
+ Throws if there is no metadata artifact by that name
355
+ Returns a 'TreeCloudArtifact' object if there is one defined in the manifest, 'undefined' otherwise.
356
+ '''
357
+ return typing.cast(typing.Optional["TreeCloudArtifact"], jsii.invoke(self, "tree", []))
358
+
359
+ @jsii.member(jsii_name="tryGetArtifact")
360
+ def try_get_artifact(self, id: builtins.str) -> typing.Optional[CloudArtifact]:
361
+ '''Attempts to find an artifact with a specific identity.
362
+
363
+ Returns A 'CloudArtifact' object or 'undefined' if the artifact does not exist in this assembly.
364
+ Param id The artifact ID
365
+
366
+ :param id: -
367
+ '''
368
+ if __debug__:
369
+ type_hints = typing.get_type_hints(_typecheckingstub__9d7f16b827e7384c7db89d5c67b9026edf7de88a522a9504d732d134d19d7977)
370
+ check_type(argname="argument id", value=id, expected_type=type_hints["id"])
371
+ return typing.cast(typing.Optional[CloudArtifact], jsii.invoke(self, "tryGetArtifact", [id]))
372
+
373
+ @builtins.property
374
+ @jsii.member(jsii_name="artifacts")
375
+ def artifacts(self) -> typing.List[CloudArtifact]:
376
+ '''All artifacts included in this assembly.'''
377
+ return typing.cast(typing.List[CloudArtifact], jsii.get(self, "artifacts"))
378
+
379
+ @builtins.property
380
+ @jsii.member(jsii_name="directory")
381
+ def directory(self) -> builtins.str:
382
+ '''The root directory of the cloud assembly.'''
383
+ return typing.cast(builtins.str, jsii.get(self, "directory"))
384
+
385
+ @builtins.property
386
+ @jsii.member(jsii_name="manifest")
387
+ def manifest(self) -> _ros_cdk_assembly_schema_63fe2cdf.AssemblyManifest:
388
+ '''The raw assembly manifest.'''
389
+ return typing.cast(_ros_cdk_assembly_schema_63fe2cdf.AssemblyManifest, jsii.get(self, "manifest"))
390
+
391
+ @builtins.property
392
+ @jsii.member(jsii_name="runtime")
393
+ def runtime(self) -> _ros_cdk_assembly_schema_63fe2cdf.RuntimeInfo:
394
+ '''Runtime information such as module versions used to synthesize this assembly.'''
395
+ return typing.cast(_ros_cdk_assembly_schema_63fe2cdf.RuntimeInfo, jsii.get(self, "runtime"))
396
+
397
+ @builtins.property
398
+ @jsii.member(jsii_name="stacks")
399
+ def stacks(self) -> typing.List["RosStackArtifact"]:
400
+ '''
401
+ :return: all the ROS stack artifacts that are included in this assembly.
402
+ '''
403
+ return typing.cast(typing.List["RosStackArtifact"], jsii.get(self, "stacks"))
404
+
405
+ @builtins.property
406
+ @jsii.member(jsii_name="version")
407
+ def version(self) -> builtins.str:
408
+ '''The schema version of the assembly manifest.'''
409
+ return typing.cast(builtins.str, jsii.get(self, "version"))
410
+
411
+
412
+ class CloudAssemblyBuilder(
413
+ metaclass=jsii.JSIIMeta,
414
+ jsii_type="@alicloud/ros-cdk-cxapi.CloudAssemblyBuilder",
415
+ ):
416
+ '''Can be used to build a cloud assembly.'''
417
+
418
+ def __init__(
419
+ self,
420
+ outdir: typing.Optional[builtins.str] = None,
421
+ *,
422
+ asset_outdir: typing.Optional[builtins.str] = None,
423
+ parent_builder: typing.Optional["CloudAssemblyBuilder"] = None,
424
+ ) -> None:
425
+ '''Initializes a cloud assembly builder.
426
+
427
+ :param outdir: The output directory, uses temporary directory if undefined.
428
+ :param asset_outdir: Use the given asset output directory. Default: - Same as the manifest outdir
429
+ :param parent_builder: If this builder is for a nested assembly, the parent assembly builder. Default: - This is a root assembly
430
+ '''
431
+ if __debug__:
432
+ type_hints = typing.get_type_hints(_typecheckingstub__75737a474095421951968fdd1fc84e47e73502fca3a5d0e733a24a707b927fef)
433
+ check_type(argname="argument outdir", value=outdir, expected_type=type_hints["outdir"])
434
+ props = CloudAssemblyBuilderProps(
435
+ asset_outdir=asset_outdir, parent_builder=parent_builder
436
+ )
437
+
438
+ jsii.create(self.__class__, self, [outdir, props])
439
+
440
+ @jsii.member(jsii_name="addArtifact")
441
+ def add_artifact(
442
+ self,
443
+ id: builtins.str,
444
+ *,
445
+ type: _ros_cdk_assembly_schema_63fe2cdf.ArtifactType,
446
+ dependencies: typing.Optional[typing.Sequence[builtins.str]] = None,
447
+ metadata: typing.Optional[typing.Mapping[builtins.str, typing.Sequence[typing.Union[_ros_cdk_assembly_schema_63fe2cdf.MetadataEntry, typing.Dict[builtins.str, typing.Any]]]]] = None,
448
+ properties: typing.Optional[typing.Union[typing.Union[_ros_cdk_assembly_schema_63fe2cdf.AliyunRosStackProperties, typing.Dict[builtins.str, typing.Any]], typing.Union[_ros_cdk_assembly_schema_63fe2cdf.TreeArtifactProperties, typing.Dict[builtins.str, typing.Any]], typing.Union[_ros_cdk_assembly_schema_63fe2cdf.NestedCloudAssemblyProperties, typing.Dict[builtins.str, typing.Any]]]] = None,
449
+ ) -> None:
450
+ '''Adds an artifact into the cloud assembly.
451
+
452
+ :param id: The ID of the artifact.
453
+ :param type: The type of artifact.
454
+ :param dependencies: IDs of artifacts that must be deployed before this artifact. Default: - no dependencies.
455
+ :param metadata: Associated metadata. Default: - no metadata.
456
+ :param properties: The set of properties for this artifact (depends on type). Default: - no properties.
457
+ '''
458
+ if __debug__:
459
+ type_hints = typing.get_type_hints(_typecheckingstub__37c58bea2c2cfc78a9e7a865d93058b291dc4d0394532dc0fe2f7dd1ca4de3a3)
460
+ check_type(argname="argument id", value=id, expected_type=type_hints["id"])
461
+ manifest = _ros_cdk_assembly_schema_63fe2cdf.ArtifactManifest(
462
+ type=type,
463
+ dependencies=dependencies,
464
+ metadata=metadata,
465
+ properties=properties,
466
+ )
467
+
468
+ return typing.cast(None, jsii.invoke(self, "addArtifact", [id, manifest]))
469
+
470
+ @jsii.member(jsii_name="addMissing")
471
+ def add_missing(
472
+ self,
473
+ *,
474
+ key: builtins.str,
475
+ props: typing.Union[typing.Union[_ros_cdk_assembly_schema_63fe2cdf.AmiContextQuery, typing.Dict[builtins.str, typing.Any]], typing.Union[_ros_cdk_assembly_schema_63fe2cdf.AvailabilityZonesContextQuery, typing.Dict[builtins.str, typing.Any]], typing.Union[_ros_cdk_assembly_schema_63fe2cdf.HostedZoneContextQuery, typing.Dict[builtins.str, typing.Any]], typing.Union[_ros_cdk_assembly_schema_63fe2cdf.SSMParameterContextQuery, typing.Dict[builtins.str, typing.Any]], typing.Union[_ros_cdk_assembly_schema_63fe2cdf.VpcContextQuery, typing.Dict[builtins.str, typing.Any]], typing.Union[_ros_cdk_assembly_schema_63fe2cdf.EndpointServiceAvailabilityZonesContextQuery, typing.Dict[builtins.str, typing.Any]]],
476
+ provider: _ros_cdk_assembly_schema_63fe2cdf.ContextProvider,
477
+ ) -> None:
478
+ '''Reports that some context is missing in order for this cloud assembly to be fully synthesized.
479
+
480
+ :param key: The missing context key.
481
+ :param props: A set of provider-specific options.
482
+ :param provider: The provider from which we expect this context key to be obtained.
483
+ '''
484
+ missing = _ros_cdk_assembly_schema_63fe2cdf.MissingContext(
485
+ key=key, props=props, provider=provider
486
+ )
487
+
488
+ return typing.cast(None, jsii.invoke(self, "addMissing", [missing]))
489
+
490
+ @jsii.member(jsii_name="buildAssembly")
491
+ def build_assembly(
492
+ self,
493
+ *,
494
+ runtime_info: typing.Optional[typing.Union["RuntimeInfo", typing.Dict[builtins.str, typing.Any]]] = None,
495
+ ) -> CloudAssembly:
496
+ '''Finalizes the cloud assembly into the output directory returns a 'CloudAssembly' object that can be used to inspect the assembly.
497
+
498
+ :param runtime_info: Include the specified runtime information (module versions) in manifest. Default: - if this option is not specified, runtime info will not be included
499
+ '''
500
+ options = AssemblyBuildOptions(runtime_info=runtime_info)
501
+
502
+ return typing.cast(CloudAssembly, jsii.invoke(self, "buildAssembly", [options]))
503
+
504
+ @jsii.member(jsii_name="createNestedAssembly")
505
+ def create_nested_assembly(
506
+ self,
507
+ artifact_id: builtins.str,
508
+ display_name: builtins.str,
509
+ ) -> "CloudAssemblyBuilder":
510
+ '''Creates a nested cloud assembly.
511
+
512
+ :param artifact_id: -
513
+ :param display_name: -
514
+ '''
515
+ if __debug__:
516
+ type_hints = typing.get_type_hints(_typecheckingstub__19e5e6e20d5f256f412a8fe0e0d60a4dafe9cb8b5bc81e152ff0f4d9029db1c0)
517
+ check_type(argname="argument artifact_id", value=artifact_id, expected_type=type_hints["artifact_id"])
518
+ check_type(argname="argument display_name", value=display_name, expected_type=type_hints["display_name"])
519
+ return typing.cast("CloudAssemblyBuilder", jsii.invoke(self, "createNestedAssembly", [artifact_id, display_name]))
520
+
521
+ @builtins.property
522
+ @jsii.member(jsii_name="assetOutdir")
523
+ def asset_outdir(self) -> builtins.str:
524
+ '''The directory where assets of this Cloud Assembly should be stored.'''
525
+ return typing.cast(builtins.str, jsii.get(self, "assetOutdir"))
526
+
527
+ @builtins.property
528
+ @jsii.member(jsii_name="outdir")
529
+ def outdir(self) -> builtins.str:
530
+ '''The root directory of the resulting cloud assembly.'''
531
+ return typing.cast(builtins.str, jsii.get(self, "outdir"))
532
+
533
+
534
+ @jsii.data_type(
535
+ jsii_type="@alicloud/ros-cdk-cxapi.CloudAssemblyBuilderProps",
536
+ jsii_struct_bases=[],
537
+ name_mapping={"asset_outdir": "assetOutdir", "parent_builder": "parentBuilder"},
538
+ )
539
+ class CloudAssemblyBuilderProps:
540
+ def __init__(
541
+ self,
542
+ *,
543
+ asset_outdir: typing.Optional[builtins.str] = None,
544
+ parent_builder: typing.Optional[CloudAssemblyBuilder] = None,
545
+ ) -> None:
546
+ '''Construction properties for CloudAssemblyBuilder.
547
+
548
+ :param asset_outdir: Use the given asset output directory. Default: - Same as the manifest outdir
549
+ :param parent_builder: If this builder is for a nested assembly, the parent assembly builder. Default: - This is a root assembly
550
+ '''
551
+ if __debug__:
552
+ type_hints = typing.get_type_hints(_typecheckingstub__4dfe8c845f2f11c0a8de26f8ec25911c2610e4b7bf6cfa2465c5530c6a942903)
553
+ check_type(argname="argument asset_outdir", value=asset_outdir, expected_type=type_hints["asset_outdir"])
554
+ check_type(argname="argument parent_builder", value=parent_builder, expected_type=type_hints["parent_builder"])
555
+ self._values: typing.Dict[builtins.str, typing.Any] = {}
556
+ if asset_outdir is not None:
557
+ self._values["asset_outdir"] = asset_outdir
558
+ if parent_builder is not None:
559
+ self._values["parent_builder"] = parent_builder
560
+
561
+ @builtins.property
562
+ def asset_outdir(self) -> typing.Optional[builtins.str]:
563
+ '''Use the given asset output directory.
564
+
565
+ :default: - Same as the manifest outdir
566
+ '''
567
+ result = self._values.get("asset_outdir")
568
+ return typing.cast(typing.Optional[builtins.str], result)
569
+
570
+ @builtins.property
571
+ def parent_builder(self) -> typing.Optional[CloudAssemblyBuilder]:
572
+ '''If this builder is for a nested assembly, the parent assembly builder.
573
+
574
+ :default: - This is a root assembly
575
+ '''
576
+ result = self._values.get("parent_builder")
577
+ return typing.cast(typing.Optional[CloudAssemblyBuilder], result)
578
+
579
+ def __eq__(self, rhs: typing.Any) -> builtins.bool:
580
+ return isinstance(rhs, self.__class__) and rhs._values == self._values
581
+
582
+ def __ne__(self, rhs: typing.Any) -> builtins.bool:
583
+ return not (rhs == self)
584
+
585
+ def __repr__(self) -> str:
586
+ return "CloudAssemblyBuilderProps(%s)" % ", ".join(
587
+ k + "=" + repr(v) for k, v in self._values.items()
588
+ )
589
+
590
+
591
+ @jsii.data_type(
592
+ jsii_type="@alicloud/ros-cdk-cxapi.Environment",
593
+ jsii_struct_bases=[],
594
+ name_mapping={"account": "account", "name": "name", "region": "region"},
595
+ )
596
+ class Environment:
597
+ def __init__(
598
+ self,
599
+ *,
600
+ account: builtins.str,
601
+ name: builtins.str,
602
+ region: builtins.str,
603
+ ) -> None:
604
+ '''Models an ALIYUN execution environment, for use within the CDK toolkit.
605
+
606
+ :param account: The ALIYUN account this environment deploys into.
607
+ :param name: The arbitrary name of this environment (user-set, or at least user-meaningful).
608
+ :param region: The ALIYUN region name where this environment deploys into.
609
+ '''
610
+ if __debug__:
611
+ type_hints = typing.get_type_hints(_typecheckingstub__2a4eb373dfdab72c8b81886f9964f3bd7c4f1a43c757df34b3d4d2f01a87f554)
612
+ check_type(argname="argument account", value=account, expected_type=type_hints["account"])
613
+ check_type(argname="argument name", value=name, expected_type=type_hints["name"])
614
+ check_type(argname="argument region", value=region, expected_type=type_hints["region"])
615
+ self._values: typing.Dict[builtins.str, typing.Any] = {
616
+ "account": account,
617
+ "name": name,
618
+ "region": region,
619
+ }
620
+
621
+ @builtins.property
622
+ def account(self) -> builtins.str:
623
+ '''The ALIYUN account this environment deploys into.'''
624
+ result = self._values.get("account")
625
+ assert result is not None, "Required property 'account' is missing"
626
+ return typing.cast(builtins.str, result)
627
+
628
+ @builtins.property
629
+ def name(self) -> builtins.str:
630
+ '''The arbitrary name of this environment (user-set, or at least user-meaningful).'''
631
+ result = self._values.get("name")
632
+ assert result is not None, "Required property 'name' is missing"
633
+ return typing.cast(builtins.str, result)
634
+
635
+ @builtins.property
636
+ def region(self) -> builtins.str:
637
+ '''The ALIYUN region name where this environment deploys into.'''
638
+ result = self._values.get("region")
639
+ assert result is not None, "Required property 'region' is missing"
640
+ return typing.cast(builtins.str, result)
641
+
642
+ def __eq__(self, rhs: typing.Any) -> builtins.bool:
643
+ return isinstance(rhs, self.__class__) and rhs._values == self._values
644
+
645
+ def __ne__(self, rhs: typing.Any) -> builtins.bool:
646
+ return not (rhs == self)
647
+
648
+ def __repr__(self) -> str:
649
+ return "Environment(%s)" % ", ".join(
650
+ k + "=" + repr(v) for k, v in self._values.items()
651
+ )
652
+
653
+
654
+ @jsii.data_type(
655
+ jsii_type="@alicloud/ros-cdk-cxapi.EnvironmentPlaceholderValues",
656
+ jsii_struct_bases=[],
657
+ name_mapping={"account_id": "accountId", "region": "region"},
658
+ )
659
+ class EnvironmentPlaceholderValues:
660
+ def __init__(self, *, account_id: builtins.str, region: builtins.str) -> None:
661
+ '''Return the appropriate values for the environment placeholders.
662
+
663
+ :param account_id: Return the account.
664
+ :param region: Return the region.
665
+ '''
666
+ if __debug__:
667
+ type_hints = typing.get_type_hints(_typecheckingstub__4095b7704f90efb3a6da91b80b3ab65b25e5a26544bdbed32fef51ae7deb5d4a)
668
+ check_type(argname="argument account_id", value=account_id, expected_type=type_hints["account_id"])
669
+ check_type(argname="argument region", value=region, expected_type=type_hints["region"])
670
+ self._values: typing.Dict[builtins.str, typing.Any] = {
671
+ "account_id": account_id,
672
+ "region": region,
673
+ }
674
+
675
+ @builtins.property
676
+ def account_id(self) -> builtins.str:
677
+ '''Return the account.'''
678
+ result = self._values.get("account_id")
679
+ assert result is not None, "Required property 'account_id' is missing"
680
+ return typing.cast(builtins.str, result)
681
+
682
+ @builtins.property
683
+ def region(self) -> builtins.str:
684
+ '''Return the region.'''
685
+ result = self._values.get("region")
686
+ assert result is not None, "Required property 'region' is missing"
687
+ return typing.cast(builtins.str, result)
688
+
689
+ def __eq__(self, rhs: typing.Any) -> builtins.bool:
690
+ return isinstance(rhs, self.__class__) and rhs._values == self._values
691
+
692
+ def __ne__(self, rhs: typing.Any) -> builtins.bool:
693
+ return not (rhs == self)
694
+
695
+ def __repr__(self) -> str:
696
+ return "EnvironmentPlaceholderValues(%s)" % ", ".join(
697
+ k + "=" + repr(v) for k, v in self._values.items()
698
+ )
699
+
700
+
701
+ class EnvironmentPlaceholders(
702
+ metaclass=jsii.JSIIMeta,
703
+ jsii_type="@alicloud/ros-cdk-cxapi.EnvironmentPlaceholders",
704
+ ):
705
+ '''Placeholders which can be used manifests.
706
+
707
+ These can occur both in the Asset Manifest as well as the general
708
+ Cloud Assembly manifest.
709
+ '''
710
+
711
+ def __init__(self) -> None:
712
+ jsii.create(self.__class__, self, [])
713
+
714
+ @jsii.member(jsii_name="replace")
715
+ @builtins.classmethod
716
+ def replace(
717
+ cls,
718
+ object: typing.Any,
719
+ *,
720
+ account_id: builtins.str,
721
+ region: builtins.str,
722
+ ) -> typing.Any:
723
+ '''Replace the environment placeholders in all strings found in a complex object.
724
+
725
+ :param object: -
726
+ :param account_id: Return the account.
727
+ :param region: Return the region.
728
+ '''
729
+ if __debug__:
730
+ type_hints = typing.get_type_hints(_typecheckingstub__8d93747b5318e68c45ec4fb7a9712da60d52317a69cfce73f530a4e4953c65ca)
731
+ check_type(argname="argument object", value=object, expected_type=type_hints["object"])
732
+ values = EnvironmentPlaceholderValues(account_id=account_id, region=region)
733
+
734
+ return typing.cast(typing.Any, jsii.sinvoke(cls, "replace", [object, values]))
735
+
736
+ @jsii.member(jsii_name="replaceAsync")
737
+ @builtins.classmethod
738
+ def replace_async(
739
+ cls,
740
+ object: typing.Any,
741
+ provider: "IEnvironmentPlaceholderProvider",
742
+ ) -> typing.Any:
743
+ '''Like 'replace', but asynchronous.
744
+
745
+ :param object: -
746
+ :param provider: -
747
+ '''
748
+ if __debug__:
749
+ type_hints = typing.get_type_hints(_typecheckingstub__fb032ab0f32a3893d4e2e3fd969115b98c3c727d9152deca4fe9d01061532abf)
750
+ check_type(argname="argument object", value=object, expected_type=type_hints["object"])
751
+ check_type(argname="argument provider", value=provider, expected_type=type_hints["provider"])
752
+ return typing.cast(typing.Any, jsii.sinvoke(cls, "replaceAsync", [object, provider]))
753
+
754
+ @jsii.python.classproperty
755
+ @jsii.member(jsii_name="CURRENT_ACCOUNT")
756
+ def CURRENT_ACCOUNT(cls) -> builtins.str:
757
+ '''Insert this into the destination fields to be replaced with the current account.'''
758
+ return typing.cast(builtins.str, jsii.sget(cls, "CURRENT_ACCOUNT"))
759
+
760
+ @jsii.python.classproperty
761
+ @jsii.member(jsii_name="CURRENT_REGION")
762
+ def CURRENT_REGION(cls) -> builtins.str:
763
+ '''Insert this into the destination fields to be replaced with the current region.'''
764
+ return typing.cast(builtins.str, jsii.sget(cls, "CURRENT_REGION"))
765
+
766
+
767
+ class EnvironmentUtils(
768
+ metaclass=jsii.JSIIMeta,
769
+ jsii_type="@alicloud/ros-cdk-cxapi.EnvironmentUtils",
770
+ ):
771
+ def __init__(self) -> None:
772
+ jsii.create(self.__class__, self, [])
773
+
774
+ @jsii.member(jsii_name="format")
775
+ @builtins.classmethod
776
+ def format(cls, account: builtins.str, region: builtins.str) -> builtins.str:
777
+ '''Format an environment string from an account and region.
778
+
779
+ :param account: -
780
+ :param region: -
781
+ '''
782
+ if __debug__:
783
+ type_hints = typing.get_type_hints(_typecheckingstub__dd7c5a1f09e810478a920bac269f90d1f7cd2a9dc7cda24ddd510bd73bb49f48)
784
+ check_type(argname="argument account", value=account, expected_type=type_hints["account"])
785
+ check_type(argname="argument region", value=region, expected_type=type_hints["region"])
786
+ return typing.cast(builtins.str, jsii.sinvoke(cls, "format", [account, region]))
787
+
788
+ @jsii.member(jsii_name="make")
789
+ @builtins.classmethod
790
+ def make(cls, account: builtins.str, region: builtins.str) -> Environment:
791
+ '''Build an environment object from an account and region.
792
+
793
+ :param account: -
794
+ :param region: -
795
+ '''
796
+ if __debug__:
797
+ type_hints = typing.get_type_hints(_typecheckingstub__80b98bc75a150467af9735eb813371760e40b79e9272752d521824f42dfe9d94)
798
+ check_type(argname="argument account", value=account, expected_type=type_hints["account"])
799
+ check_type(argname="argument region", value=region, expected_type=type_hints["region"])
800
+ return typing.cast(Environment, jsii.sinvoke(cls, "make", [account, region]))
801
+
802
+ @jsii.member(jsii_name="parse")
803
+ @builtins.classmethod
804
+ def parse(cls, environment: builtins.str) -> Environment:
805
+ '''
806
+ :param environment: -
807
+ '''
808
+ if __debug__:
809
+ type_hints = typing.get_type_hints(_typecheckingstub__dd936c28dc750b8677f13a6377c47a102ef01644cdd56d4041e098bbc8edb1a5)
810
+ check_type(argname="argument environment", value=environment, expected_type=type_hints["environment"])
811
+ return typing.cast(Environment, jsii.sinvoke(cls, "parse", [environment]))
812
+
813
+
814
+ @jsii.interface(jsii_type="@alicloud/ros-cdk-cxapi.IEnvironmentPlaceholderProvider")
815
+ class IEnvironmentPlaceholderProvider(typing_extensions.Protocol):
816
+ '''Return the appropriate values for the environment placeholders.'''
817
+
818
+ @jsii.member(jsii_name="accountId")
819
+ def account_id(self) -> builtins.str:
820
+ '''Return the account.'''
821
+ ...
822
+
823
+ @jsii.member(jsii_name="region")
824
+ def region(self) -> builtins.str:
825
+ '''Return the region.'''
826
+ ...
827
+
828
+
829
+ class _IEnvironmentPlaceholderProviderProxy:
830
+ '''Return the appropriate values for the environment placeholders.'''
831
+
832
+ __jsii_type__: typing.ClassVar[str] = "@alicloud/ros-cdk-cxapi.IEnvironmentPlaceholderProvider"
833
+
834
+ @jsii.member(jsii_name="accountId")
835
+ def account_id(self) -> builtins.str:
836
+ '''Return the account.'''
837
+ return typing.cast(builtins.str, jsii.invoke(self, "accountId", []))
838
+
839
+ @jsii.member(jsii_name="region")
840
+ def region(self) -> builtins.str:
841
+ '''Return the region.'''
842
+ return typing.cast(builtins.str, jsii.invoke(self, "region", []))
843
+
844
+ # Adding a "__jsii_proxy_class__(): typing.Type" function to the interface
845
+ typing.cast(typing.Any, IEnvironmentPlaceholderProvider).__jsii_proxy_class__ = lambda : _IEnvironmentPlaceholderProviderProxy
846
+
847
+
848
+ @jsii.data_type(
849
+ jsii_type="@alicloud/ros-cdk-cxapi.MetadataEntry",
850
+ jsii_struct_bases=[_ros_cdk_assembly_schema_63fe2cdf.MetadataEntry],
851
+ name_mapping={"type": "type", "data": "data", "trace": "trace"},
852
+ )
853
+ class MetadataEntry(_ros_cdk_assembly_schema_63fe2cdf.MetadataEntry):
854
+ def __init__(
855
+ self,
856
+ *,
857
+ type: builtins.str,
858
+ data: typing.Optional[typing.Union[builtins.str, typing.Sequence[typing.Union[_ros_cdk_assembly_schema_63fe2cdf.Tag, typing.Dict[builtins.str, typing.Any]]]]] = None,
859
+ trace: typing.Optional[typing.Sequence[builtins.str]] = None,
860
+ ) -> None:
861
+ '''(deprecated) Backwards compatibility for when 'MetadataEntry' was defined here.
862
+
863
+ This is necessary because its used as an input in the stable
864
+
865
+ :param type: The type of the metadata entry.
866
+ :param data: The data. Default: - no data.
867
+ :param trace: A stack trace for when the entry was created. Default: - no trace.
868
+
869
+ :deprecated: moved to package 'ros-assembly-schema'
870
+
871
+ :see: core.ConstructNode.metadata
872
+ :stability: deprecated
873
+ :alicloud: /ros-cdk-core library.
874
+ '''
875
+ if __debug__:
876
+ type_hints = typing.get_type_hints(_typecheckingstub__7da05f7944577a8db92b5dbb13556d9742f74b4771deeb411f0f697323831715)
877
+ check_type(argname="argument type", value=type, expected_type=type_hints["type"])
878
+ check_type(argname="argument data", value=data, expected_type=type_hints["data"])
879
+ check_type(argname="argument trace", value=trace, expected_type=type_hints["trace"])
880
+ self._values: typing.Dict[builtins.str, typing.Any] = {
881
+ "type": type,
882
+ }
883
+ if data is not None:
884
+ self._values["data"] = data
885
+ if trace is not None:
886
+ self._values["trace"] = trace
887
+
888
+ @builtins.property
889
+ def type(self) -> builtins.str:
890
+ '''The type of the metadata entry.'''
891
+ result = self._values.get("type")
892
+ assert result is not None, "Required property 'type' is missing"
893
+ return typing.cast(builtins.str, result)
894
+
895
+ @builtins.property
896
+ def data(
897
+ self,
898
+ ) -> typing.Optional[typing.Union[builtins.str, typing.List[_ros_cdk_assembly_schema_63fe2cdf.Tag]]]:
899
+ '''The data.
900
+
901
+ :default: - no data.
902
+ '''
903
+ result = self._values.get("data")
904
+ return typing.cast(typing.Optional[typing.Union[builtins.str, typing.List[_ros_cdk_assembly_schema_63fe2cdf.Tag]]], result)
905
+
906
+ @builtins.property
907
+ def trace(self) -> typing.Optional[typing.List[builtins.str]]:
908
+ '''A stack trace for when the entry was created.
909
+
910
+ :default: - no trace.
911
+ '''
912
+ result = self._values.get("trace")
913
+ return typing.cast(typing.Optional[typing.List[builtins.str]], result)
914
+
915
+ def __eq__(self, rhs: typing.Any) -> builtins.bool:
916
+ return isinstance(rhs, self.__class__) and rhs._values == self._values
917
+
918
+ def __ne__(self, rhs: typing.Any) -> builtins.bool:
919
+ return not (rhs == self)
920
+
921
+ def __repr__(self) -> str:
922
+ return "MetadataEntry(%s)" % ", ".join(
923
+ k + "=" + repr(v) for k, v in self._values.items()
924
+ )
925
+
926
+
927
+ @jsii.data_type(
928
+ jsii_type="@alicloud/ros-cdk-cxapi.MetadataEntryResult",
929
+ jsii_struct_bases=[_ros_cdk_assembly_schema_63fe2cdf.MetadataEntry],
930
+ name_mapping={"type": "type", "data": "data", "trace": "trace", "path": "path"},
931
+ )
932
+ class MetadataEntryResult(_ros_cdk_assembly_schema_63fe2cdf.MetadataEntry):
933
+ def __init__(
934
+ self,
935
+ *,
936
+ type: builtins.str,
937
+ data: typing.Optional[typing.Union[builtins.str, typing.Sequence[typing.Union[_ros_cdk_assembly_schema_63fe2cdf.Tag, typing.Dict[builtins.str, typing.Any]]]]] = None,
938
+ trace: typing.Optional[typing.Sequence[builtins.str]] = None,
939
+ path: builtins.str,
940
+ ) -> None:
941
+ '''
942
+ :param type: The type of the metadata entry.
943
+ :param data: The data. Default: - no data.
944
+ :param trace: A stack trace for when the entry was created. Default: - no trace.
945
+ :param path: The path in which this entry was defined.
946
+ '''
947
+ if __debug__:
948
+ type_hints = typing.get_type_hints(_typecheckingstub__74f95e884ce76eab45ca5e38eea872e53d87ffb47aa5b58460065832a9164559)
949
+ check_type(argname="argument type", value=type, expected_type=type_hints["type"])
950
+ check_type(argname="argument data", value=data, expected_type=type_hints["data"])
951
+ check_type(argname="argument trace", value=trace, expected_type=type_hints["trace"])
952
+ check_type(argname="argument path", value=path, expected_type=type_hints["path"])
953
+ self._values: typing.Dict[builtins.str, typing.Any] = {
954
+ "type": type,
955
+ "path": path,
956
+ }
957
+ if data is not None:
958
+ self._values["data"] = data
959
+ if trace is not None:
960
+ self._values["trace"] = trace
961
+
962
+ @builtins.property
963
+ def type(self) -> builtins.str:
964
+ '''The type of the metadata entry.'''
965
+ result = self._values.get("type")
966
+ assert result is not None, "Required property 'type' is missing"
967
+ return typing.cast(builtins.str, result)
968
+
969
+ @builtins.property
970
+ def data(
971
+ self,
972
+ ) -> typing.Optional[typing.Union[builtins.str, typing.List[_ros_cdk_assembly_schema_63fe2cdf.Tag]]]:
973
+ '''The data.
974
+
975
+ :default: - no data.
976
+ '''
977
+ result = self._values.get("data")
978
+ return typing.cast(typing.Optional[typing.Union[builtins.str, typing.List[_ros_cdk_assembly_schema_63fe2cdf.Tag]]], result)
979
+
980
+ @builtins.property
981
+ def trace(self) -> typing.Optional[typing.List[builtins.str]]:
982
+ '''A stack trace for when the entry was created.
983
+
984
+ :default: - no trace.
985
+ '''
986
+ result = self._values.get("trace")
987
+ return typing.cast(typing.Optional[typing.List[builtins.str]], result)
988
+
989
+ @builtins.property
990
+ def path(self) -> builtins.str:
991
+ '''The path in which this entry was defined.'''
992
+ result = self._values.get("path")
993
+ assert result is not None, "Required property 'path' is missing"
994
+ return typing.cast(builtins.str, result)
995
+
996
+ def __eq__(self, rhs: typing.Any) -> builtins.bool:
997
+ return isinstance(rhs, self.__class__) and rhs._values == self._values
998
+
999
+ def __ne__(self, rhs: typing.Any) -> builtins.bool:
1000
+ return not (rhs == self)
1001
+
1002
+ def __repr__(self) -> str:
1003
+ return "MetadataEntryResult(%s)" % ", ".join(
1004
+ k + "=" + repr(v) for k, v in self._values.items()
1005
+ )
1006
+
1007
+
1008
+ @jsii.data_type(
1009
+ jsii_type="@alicloud/ros-cdk-cxapi.MissingContext",
1010
+ jsii_struct_bases=[],
1011
+ name_mapping={"key": "key", "props": "props", "provider": "provider"},
1012
+ )
1013
+ class MissingContext:
1014
+ def __init__(
1015
+ self,
1016
+ *,
1017
+ key: builtins.str,
1018
+ props: typing.Mapping[builtins.str, typing.Any],
1019
+ provider: builtins.str,
1020
+ ) -> None:
1021
+ '''(deprecated) Backwards compatibility for when 'MissingContext' was defined here.
1022
+
1023
+ This is necessary because its used as an input in the stable
1024
+
1025
+ :param key: (deprecated) The missing context key.
1026
+ :param props: (deprecated) A set of provider-specific options. (This is the old untyped definition, which is necessary for backwards compatibility. See cxschema for a type definition.)
1027
+ :param provider: (deprecated) The provider from which we expect this context key to be obtained. (This is the old untyped definition, which is necessary for backwards compatibility. See cxschema for a type definition.)
1028
+
1029
+ :deprecated: moved to package 'ros-assembly-schema'
1030
+
1031
+ :see: core.Stack.reportMissingContext
1032
+ :stability: deprecated
1033
+ :alicloud: /ros-cdk-core library.
1034
+ '''
1035
+ if __debug__:
1036
+ type_hints = typing.get_type_hints(_typecheckingstub__119f56e5e0f5a649eab50e526b8d2d6b09d418768278604c5cbad5a9e608d765)
1037
+ check_type(argname="argument key", value=key, expected_type=type_hints["key"])
1038
+ check_type(argname="argument props", value=props, expected_type=type_hints["props"])
1039
+ check_type(argname="argument provider", value=provider, expected_type=type_hints["provider"])
1040
+ self._values: typing.Dict[builtins.str, typing.Any] = {
1041
+ "key": key,
1042
+ "props": props,
1043
+ "provider": provider,
1044
+ }
1045
+
1046
+ @builtins.property
1047
+ def key(self) -> builtins.str:
1048
+ '''(deprecated) The missing context key.
1049
+
1050
+ :stability: deprecated
1051
+ '''
1052
+ result = self._values.get("key")
1053
+ assert result is not None, "Required property 'key' is missing"
1054
+ return typing.cast(builtins.str, result)
1055
+
1056
+ @builtins.property
1057
+ def props(self) -> typing.Mapping[builtins.str, typing.Any]:
1058
+ '''(deprecated) A set of provider-specific options.
1059
+
1060
+ (This is the old untyped definition, which is necessary for backwards compatibility.
1061
+ See cxschema for a type definition.)
1062
+
1063
+ :stability: deprecated
1064
+ '''
1065
+ result = self._values.get("props")
1066
+ assert result is not None, "Required property 'props' is missing"
1067
+ return typing.cast(typing.Mapping[builtins.str, typing.Any], result)
1068
+
1069
+ @builtins.property
1070
+ def provider(self) -> builtins.str:
1071
+ '''(deprecated) The provider from which we expect this context key to be obtained.
1072
+
1073
+ (This is the old untyped definition, which is necessary for backwards compatibility.
1074
+ See cxschema for a type definition.)
1075
+
1076
+ :stability: deprecated
1077
+ '''
1078
+ result = self._values.get("provider")
1079
+ assert result is not None, "Required property 'provider' is missing"
1080
+ return typing.cast(builtins.str, result)
1081
+
1082
+ def __eq__(self, rhs: typing.Any) -> builtins.bool:
1083
+ return isinstance(rhs, self.__class__) and rhs._values == self._values
1084
+
1085
+ def __ne__(self, rhs: typing.Any) -> builtins.bool:
1086
+ return not (rhs == self)
1087
+
1088
+ def __repr__(self) -> str:
1089
+ return "MissingContext(%s)" % ", ".join(
1090
+ k + "=" + repr(v) for k, v in self._values.items()
1091
+ )
1092
+
1093
+
1094
+ class NestedCloudAssemblyArtifact(
1095
+ CloudArtifact,
1096
+ metaclass=jsii.JSIIMeta,
1097
+ jsii_type="@alicloud/ros-cdk-cxapi.NestedCloudAssemblyArtifact",
1098
+ ):
1099
+ '''Asset manifest is a description of a set of assets which need to be built and published.'''
1100
+
1101
+ def __init__(
1102
+ self,
1103
+ assembly: CloudAssembly,
1104
+ name: builtins.str,
1105
+ *,
1106
+ type: _ros_cdk_assembly_schema_63fe2cdf.ArtifactType,
1107
+ dependencies: typing.Optional[typing.Sequence[builtins.str]] = None,
1108
+ metadata: typing.Optional[typing.Mapping[builtins.str, typing.Sequence[typing.Union[_ros_cdk_assembly_schema_63fe2cdf.MetadataEntry, typing.Dict[builtins.str, typing.Any]]]]] = None,
1109
+ properties: typing.Optional[typing.Union[typing.Union[_ros_cdk_assembly_schema_63fe2cdf.AliyunRosStackProperties, typing.Dict[builtins.str, typing.Any]], typing.Union[_ros_cdk_assembly_schema_63fe2cdf.TreeArtifactProperties, typing.Dict[builtins.str, typing.Any]], typing.Union[_ros_cdk_assembly_schema_63fe2cdf.NestedCloudAssemblyProperties, typing.Dict[builtins.str, typing.Any]]]] = None,
1110
+ ) -> None:
1111
+ '''
1112
+ :param assembly: -
1113
+ :param name: -
1114
+ :param type: The type of artifact.
1115
+ :param dependencies: IDs of artifacts that must be deployed before this artifact. Default: - no dependencies.
1116
+ :param metadata: Associated metadata. Default: - no metadata.
1117
+ :param properties: The set of properties for this artifact (depends on type). Default: - no properties.
1118
+ '''
1119
+ if __debug__:
1120
+ type_hints = typing.get_type_hints(_typecheckingstub__980fec3b47bb5d0e76aec285ce93492b22654f56c0ae965b06c0d23e34307565)
1121
+ check_type(argname="argument assembly", value=assembly, expected_type=type_hints["assembly"])
1122
+ check_type(argname="argument name", value=name, expected_type=type_hints["name"])
1123
+ artifact = _ros_cdk_assembly_schema_63fe2cdf.ArtifactManifest(
1124
+ type=type,
1125
+ dependencies=dependencies,
1126
+ metadata=metadata,
1127
+ properties=properties,
1128
+ )
1129
+
1130
+ jsii.create(self.__class__, self, [assembly, name, artifact])
1131
+
1132
+ @builtins.property
1133
+ @jsii.member(jsii_name="directoryName")
1134
+ def directory_name(self) -> builtins.str:
1135
+ '''The relative directory name of the asset manifest.'''
1136
+ return typing.cast(builtins.str, jsii.get(self, "directoryName"))
1137
+
1138
+ @builtins.property
1139
+ @jsii.member(jsii_name="displayName")
1140
+ def display_name(self) -> builtins.str:
1141
+ '''Display name.'''
1142
+ return typing.cast(builtins.str, jsii.get(self, "displayName"))
1143
+
1144
+ @builtins.property
1145
+ @jsii.member(jsii_name="fullPath")
1146
+ def full_path(self) -> builtins.str:
1147
+ '''Full path to the nested assembly directory.'''
1148
+ return typing.cast(builtins.str, jsii.get(self, "fullPath"))
1149
+
1150
+ @builtins.property
1151
+ @jsii.member(jsii_name="nestedAssembly")
1152
+ def nested_assembly(self) -> CloudAssembly:
1153
+ '''The nested Assembly.'''
1154
+ return typing.cast(CloudAssembly, jsii.get(self, "nestedAssembly"))
1155
+
1156
+
1157
+ class RosStackArtifact(
1158
+ CloudArtifact,
1159
+ metaclass=jsii.JSIIMeta,
1160
+ jsii_type="@alicloud/ros-cdk-cxapi.RosStackArtifact",
1161
+ ):
1162
+ def __init__(
1163
+ self,
1164
+ assembly: CloudAssembly,
1165
+ artifact_id: builtins.str,
1166
+ *,
1167
+ type: _ros_cdk_assembly_schema_63fe2cdf.ArtifactType,
1168
+ dependencies: typing.Optional[typing.Sequence[builtins.str]] = None,
1169
+ metadata: typing.Optional[typing.Mapping[builtins.str, typing.Sequence[typing.Union[_ros_cdk_assembly_schema_63fe2cdf.MetadataEntry, typing.Dict[builtins.str, typing.Any]]]]] = None,
1170
+ properties: typing.Optional[typing.Union[typing.Union[_ros_cdk_assembly_schema_63fe2cdf.AliyunRosStackProperties, typing.Dict[builtins.str, typing.Any]], typing.Union[_ros_cdk_assembly_schema_63fe2cdf.TreeArtifactProperties, typing.Dict[builtins.str, typing.Any]], typing.Union[_ros_cdk_assembly_schema_63fe2cdf.NestedCloudAssemblyProperties, typing.Dict[builtins.str, typing.Any]]]] = None,
1171
+ ) -> None:
1172
+ '''
1173
+ :param assembly: -
1174
+ :param artifact_id: -
1175
+ :param type: The type of artifact.
1176
+ :param dependencies: IDs of artifacts that must be deployed before this artifact. Default: - no dependencies.
1177
+ :param metadata: Associated metadata. Default: - no metadata.
1178
+ :param properties: The set of properties for this artifact (depends on type). Default: - no properties.
1179
+ '''
1180
+ if __debug__:
1181
+ type_hints = typing.get_type_hints(_typecheckingstub__5b1e2e9874ff423089b54d266f1b6b305028045d5dce84f26a3286f13d694ef6)
1182
+ check_type(argname="argument assembly", value=assembly, expected_type=type_hints["assembly"])
1183
+ check_type(argname="argument artifact_id", value=artifact_id, expected_type=type_hints["artifact_id"])
1184
+ artifact = _ros_cdk_assembly_schema_63fe2cdf.ArtifactManifest(
1185
+ type=type,
1186
+ dependencies=dependencies,
1187
+ metadata=metadata,
1188
+ properties=properties,
1189
+ )
1190
+
1191
+ jsii.create(self.__class__, self, [assembly, artifact_id, artifact])
1192
+
1193
+ @builtins.property
1194
+ @jsii.member(jsii_name="displayName")
1195
+ def display_name(self) -> builtins.str:
1196
+ '''A string that represents this stack.
1197
+
1198
+ Should only be used in user interfaces.
1199
+ If the stackName and artifactId are the same, it will just return that. Otherwise,
1200
+ it will return something like " ()"
1201
+ '''
1202
+ return typing.cast(builtins.str, jsii.get(self, "displayName"))
1203
+
1204
+ @builtins.property
1205
+ @jsii.member(jsii_name="name")
1206
+ def name(self) -> builtins.str:
1207
+ '''(deprecated) The physical name of this stack.
1208
+
1209
+ :deprecated: renamed to ``stackName``
1210
+
1211
+ :stability: deprecated
1212
+ '''
1213
+ return typing.cast(builtins.str, jsii.get(self, "name"))
1214
+
1215
+ @builtins.property
1216
+ @jsii.member(jsii_name="originalName")
1217
+ def original_name(self) -> builtins.str:
1218
+ '''The original name as defined in the CDK app.'''
1219
+ return typing.cast(builtins.str, jsii.get(self, "originalName"))
1220
+
1221
+ @builtins.property
1222
+ @jsii.member(jsii_name="parameters")
1223
+ def parameters(self) -> typing.Mapping[builtins.str, builtins.str]:
1224
+ '''ROS parameters to pass to the stack.'''
1225
+ return typing.cast(typing.Mapping[builtins.str, builtins.str], jsii.get(self, "parameters"))
1226
+
1227
+ @builtins.property
1228
+ @jsii.member(jsii_name="stackName")
1229
+ def stack_name(self) -> builtins.str:
1230
+ '''The physical name of this stack.'''
1231
+ return typing.cast(builtins.str, jsii.get(self, "stackName"))
1232
+
1233
+ @builtins.property
1234
+ @jsii.member(jsii_name="tags")
1235
+ def tags(self) -> typing.Any:
1236
+ return typing.cast(typing.Any, jsii.get(self, "tags"))
1237
+
1238
+ @builtins.property
1239
+ @jsii.member(jsii_name="template")
1240
+ def template(self) -> typing.Any:
1241
+ '''The ROS template for this stack.'''
1242
+ return typing.cast(typing.Any, jsii.get(self, "template"))
1243
+
1244
+ @builtins.property
1245
+ @jsii.member(jsii_name="templateFile")
1246
+ def template_file(self) -> builtins.str:
1247
+ '''The file name of the template.'''
1248
+ return typing.cast(builtins.str, jsii.get(self, "templateFile"))
1249
+
1250
+
1251
+ @jsii.data_type(
1252
+ jsii_type="@alicloud/ros-cdk-cxapi.RuntimeInfo",
1253
+ jsii_struct_bases=[_ros_cdk_assembly_schema_63fe2cdf.RuntimeInfo],
1254
+ name_mapping={"libraries": "libraries"},
1255
+ )
1256
+ class RuntimeInfo(_ros_cdk_assembly_schema_63fe2cdf.RuntimeInfo):
1257
+ def __init__(
1258
+ self,
1259
+ *,
1260
+ libraries: typing.Mapping[builtins.str, builtins.str],
1261
+ ) -> None:
1262
+ '''(deprecated) Backwards compatibility for when 'RuntimeInfo' was defined here.
1263
+
1264
+ This is necessary because its used as an input in the stable
1265
+
1266
+ :param libraries: The list of libraries loaded in the application, associated with their versions.
1267
+
1268
+ :deprecated: moved to package 'ros-assembly-schema'
1269
+
1270
+ :see: core.ConstructNode.synth
1271
+ :stability: deprecated
1272
+ :alicloud: /ros-cdk-core library.
1273
+ '''
1274
+ if __debug__:
1275
+ type_hints = typing.get_type_hints(_typecheckingstub__b7c7ce3d847d7562d19e05aef24620874c5b871196174139f16553b6f3278590)
1276
+ check_type(argname="argument libraries", value=libraries, expected_type=type_hints["libraries"])
1277
+ self._values: typing.Dict[builtins.str, typing.Any] = {
1278
+ "libraries": libraries,
1279
+ }
1280
+
1281
+ @builtins.property
1282
+ def libraries(self) -> typing.Mapping[builtins.str, builtins.str]:
1283
+ '''The list of libraries loaded in the application, associated with their versions.'''
1284
+ result = self._values.get("libraries")
1285
+ assert result is not None, "Required property 'libraries' is missing"
1286
+ return typing.cast(typing.Mapping[builtins.str, builtins.str], result)
1287
+
1288
+ def __eq__(self, rhs: typing.Any) -> builtins.bool:
1289
+ return isinstance(rhs, self.__class__) and rhs._values == self._values
1290
+
1291
+ def __ne__(self, rhs: typing.Any) -> builtins.bool:
1292
+ return not (rhs == self)
1293
+
1294
+ def __repr__(self) -> str:
1295
+ return "RuntimeInfo(%s)" % ", ".join(
1296
+ k + "=" + repr(v) for k, v in self._values.items()
1297
+ )
1298
+
1299
+
1300
+ @jsii.data_type(
1301
+ jsii_type="@alicloud/ros-cdk-cxapi.SynthesisMessage",
1302
+ jsii_struct_bases=[],
1303
+ name_mapping={"entry": "entry", "id": "id", "level": "level"},
1304
+ )
1305
+ class SynthesisMessage:
1306
+ def __init__(
1307
+ self,
1308
+ *,
1309
+ entry: typing.Union[_ros_cdk_assembly_schema_63fe2cdf.MetadataEntry, typing.Dict[builtins.str, typing.Any]],
1310
+ id: builtins.str,
1311
+ level: "SynthesisMessageLevel",
1312
+ ) -> None:
1313
+ '''
1314
+ :param entry: -
1315
+ :param id: -
1316
+ :param level: -
1317
+ '''
1318
+ if isinstance(entry, dict):
1319
+ entry = _ros_cdk_assembly_schema_63fe2cdf.MetadataEntry(**entry)
1320
+ if __debug__:
1321
+ type_hints = typing.get_type_hints(_typecheckingstub__9585640b1217a9eeda7edf01f3a252bddc38603523313be361abe48f810ab155)
1322
+ check_type(argname="argument entry", value=entry, expected_type=type_hints["entry"])
1323
+ check_type(argname="argument id", value=id, expected_type=type_hints["id"])
1324
+ check_type(argname="argument level", value=level, expected_type=type_hints["level"])
1325
+ self._values: typing.Dict[builtins.str, typing.Any] = {
1326
+ "entry": entry,
1327
+ "id": id,
1328
+ "level": level,
1329
+ }
1330
+
1331
+ @builtins.property
1332
+ def entry(self) -> _ros_cdk_assembly_schema_63fe2cdf.MetadataEntry:
1333
+ result = self._values.get("entry")
1334
+ assert result is not None, "Required property 'entry' is missing"
1335
+ return typing.cast(_ros_cdk_assembly_schema_63fe2cdf.MetadataEntry, result)
1336
+
1337
+ @builtins.property
1338
+ def id(self) -> builtins.str:
1339
+ result = self._values.get("id")
1340
+ assert result is not None, "Required property 'id' is missing"
1341
+ return typing.cast(builtins.str, result)
1342
+
1343
+ @builtins.property
1344
+ def level(self) -> "SynthesisMessageLevel":
1345
+ result = self._values.get("level")
1346
+ assert result is not None, "Required property 'level' is missing"
1347
+ return typing.cast("SynthesisMessageLevel", result)
1348
+
1349
+ def __eq__(self, rhs: typing.Any) -> builtins.bool:
1350
+ return isinstance(rhs, self.__class__) and rhs._values == self._values
1351
+
1352
+ def __ne__(self, rhs: typing.Any) -> builtins.bool:
1353
+ return not (rhs == self)
1354
+
1355
+ def __repr__(self) -> str:
1356
+ return "SynthesisMessage(%s)" % ", ".join(
1357
+ k + "=" + repr(v) for k, v in self._values.items()
1358
+ )
1359
+
1360
+
1361
+ @jsii.enum(jsii_type="@alicloud/ros-cdk-cxapi.SynthesisMessageLevel")
1362
+ class SynthesisMessageLevel(enum.Enum):
1363
+ INFO = "INFO"
1364
+ WARNING = "WARNING"
1365
+ ERROR = "ERROR"
1366
+
1367
+
1368
+ class TreeCloudArtifact(
1369
+ CloudArtifact,
1370
+ metaclass=jsii.JSIIMeta,
1371
+ jsii_type="@alicloud/ros-cdk-cxapi.TreeCloudArtifact",
1372
+ ):
1373
+ def __init__(
1374
+ self,
1375
+ assembly: CloudAssembly,
1376
+ name: builtins.str,
1377
+ *,
1378
+ type: _ros_cdk_assembly_schema_63fe2cdf.ArtifactType,
1379
+ dependencies: typing.Optional[typing.Sequence[builtins.str]] = None,
1380
+ metadata: typing.Optional[typing.Mapping[builtins.str, typing.Sequence[typing.Union[_ros_cdk_assembly_schema_63fe2cdf.MetadataEntry, typing.Dict[builtins.str, typing.Any]]]]] = None,
1381
+ properties: typing.Optional[typing.Union[typing.Union[_ros_cdk_assembly_schema_63fe2cdf.AliyunRosStackProperties, typing.Dict[builtins.str, typing.Any]], typing.Union[_ros_cdk_assembly_schema_63fe2cdf.TreeArtifactProperties, typing.Dict[builtins.str, typing.Any]], typing.Union[_ros_cdk_assembly_schema_63fe2cdf.NestedCloudAssemblyProperties, typing.Dict[builtins.str, typing.Any]]]] = None,
1382
+ ) -> None:
1383
+ '''
1384
+ :param assembly: -
1385
+ :param name: -
1386
+ :param type: The type of artifact.
1387
+ :param dependencies: IDs of artifacts that must be deployed before this artifact. Default: - no dependencies.
1388
+ :param metadata: Associated metadata. Default: - no metadata.
1389
+ :param properties: The set of properties for this artifact (depends on type). Default: - no properties.
1390
+ '''
1391
+ if __debug__:
1392
+ type_hints = typing.get_type_hints(_typecheckingstub__8817b7cbf6cd51228f8ae6b5c4b8e9d2f166df1f66a32bea6dc2b6f738720e1f)
1393
+ check_type(argname="argument assembly", value=assembly, expected_type=type_hints["assembly"])
1394
+ check_type(argname="argument name", value=name, expected_type=type_hints["name"])
1395
+ artifact = _ros_cdk_assembly_schema_63fe2cdf.ArtifactManifest(
1396
+ type=type,
1397
+ dependencies=dependencies,
1398
+ metadata=metadata,
1399
+ properties=properties,
1400
+ )
1401
+
1402
+ jsii.create(self.__class__, self, [assembly, name, artifact])
1403
+
1404
+ @builtins.property
1405
+ @jsii.member(jsii_name="file")
1406
+ def file(self) -> builtins.str:
1407
+ return typing.cast(builtins.str, jsii.get(self, "file"))
1408
+
1409
+
1410
+ __all__ = [
1411
+ "AliyunRosStackProperties",
1412
+ "AssemblyBuildOptions",
1413
+ "CloudArtifact",
1414
+ "CloudAssembly",
1415
+ "CloudAssemblyBuilder",
1416
+ "CloudAssemblyBuilderProps",
1417
+ "Environment",
1418
+ "EnvironmentPlaceholderValues",
1419
+ "EnvironmentPlaceholders",
1420
+ "EnvironmentUtils",
1421
+ "IEnvironmentPlaceholderProvider",
1422
+ "MetadataEntry",
1423
+ "MetadataEntryResult",
1424
+ "MissingContext",
1425
+ "NestedCloudAssemblyArtifact",
1426
+ "RosStackArtifact",
1427
+ "RuntimeInfo",
1428
+ "SynthesisMessage",
1429
+ "SynthesisMessageLevel",
1430
+ "TreeCloudArtifact",
1431
+ ]
1432
+
1433
+ publication.publish()
1434
+
1435
+ def _typecheckingstub__c02ed7b56cc2e43438298ee3508e579a38f323bf81e58eb4f9fe4cb4bce823fe(
1436
+ *,
1437
+ template_file: builtins.str,
1438
+ parameters: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
1439
+ stack_name: typing.Optional[builtins.str] = None,
1440
+ ) -> None:
1441
+ """Type checking stubs"""
1442
+ pass
1443
+
1444
+ def _typecheckingstub__c428fbe5fd205eae0bef5974551be51b07e9a88490dedd6a67cf54448f1ce884(
1445
+ *,
1446
+ runtime_info: typing.Optional[typing.Union[RuntimeInfo, typing.Dict[builtins.str, typing.Any]]] = None,
1447
+ ) -> None:
1448
+ """Type checking stubs"""
1449
+ pass
1450
+
1451
+ def _typecheckingstub__1fd0b278a419cc7c82a8290aa9ee9ccbbf437c5b5d7134968e9e678dd089a5d0(
1452
+ assembly: CloudAssembly,
1453
+ id: builtins.str,
1454
+ *,
1455
+ type: _ros_cdk_assembly_schema_63fe2cdf.ArtifactType,
1456
+ dependencies: typing.Optional[typing.Sequence[builtins.str]] = None,
1457
+ metadata: typing.Optional[typing.Mapping[builtins.str, typing.Sequence[typing.Union[_ros_cdk_assembly_schema_63fe2cdf.MetadataEntry, typing.Dict[builtins.str, typing.Any]]]]] = None,
1458
+ properties: typing.Optional[typing.Union[typing.Union[_ros_cdk_assembly_schema_63fe2cdf.AliyunRosStackProperties, typing.Dict[builtins.str, typing.Any]], typing.Union[_ros_cdk_assembly_schema_63fe2cdf.TreeArtifactProperties, typing.Dict[builtins.str, typing.Any]], typing.Union[_ros_cdk_assembly_schema_63fe2cdf.NestedCloudAssemblyProperties, typing.Dict[builtins.str, typing.Any]]]] = None,
1459
+ ) -> None:
1460
+ """Type checking stubs"""
1461
+ pass
1462
+
1463
+ def _typecheckingstub__be38acca09c6a3d4ac6cc76c6234c9a24041d73b92c27272b0a1b6e699dc1f27(
1464
+ assembly: CloudAssembly,
1465
+ id: builtins.str,
1466
+ *,
1467
+ type: _ros_cdk_assembly_schema_63fe2cdf.ArtifactType,
1468
+ dependencies: typing.Optional[typing.Sequence[builtins.str]] = None,
1469
+ metadata: typing.Optional[typing.Mapping[builtins.str, typing.Sequence[typing.Union[_ros_cdk_assembly_schema_63fe2cdf.MetadataEntry, typing.Dict[builtins.str, typing.Any]]]]] = None,
1470
+ properties: typing.Optional[typing.Union[typing.Union[_ros_cdk_assembly_schema_63fe2cdf.AliyunRosStackProperties, typing.Dict[builtins.str, typing.Any]], typing.Union[_ros_cdk_assembly_schema_63fe2cdf.TreeArtifactProperties, typing.Dict[builtins.str, typing.Any]], typing.Union[_ros_cdk_assembly_schema_63fe2cdf.NestedCloudAssemblyProperties, typing.Dict[builtins.str, typing.Any]]]] = None,
1471
+ ) -> None:
1472
+ """Type checking stubs"""
1473
+ pass
1474
+
1475
+ def _typecheckingstub__a8f2a3233d0b940b4d1131326fc03874d2dd78b2190cb926f12932641dedc71b(
1476
+ type: builtins.str,
1477
+ ) -> None:
1478
+ """Type checking stubs"""
1479
+ pass
1480
+
1481
+ def _typecheckingstub__6fc32998cdaf053872836758c7fc414b91dd33adb0f551492b661dfb7cb9582a(
1482
+ directory: builtins.str,
1483
+ ) -> None:
1484
+ """Type checking stubs"""
1485
+ pass
1486
+
1487
+ def _typecheckingstub__4f72946b7befa08df80a014df5beeb1c4c4ead603501b0a383ea2a5f89865495(
1488
+ artifact_id: builtins.str,
1489
+ ) -> None:
1490
+ """Type checking stubs"""
1491
+ pass
1492
+
1493
+ def _typecheckingstub__1f381a040192c6bc37553e4c5191411332ecd5f16170049db20de03fab74b507(
1494
+ artifact_id: builtins.str,
1495
+ ) -> None:
1496
+ """Type checking stubs"""
1497
+ pass
1498
+
1499
+ def _typecheckingstub__ded5294193414eaa1d0f86c39f8c7ee2076958d3caf70331c05459880c74eeed(
1500
+ stack_name: builtins.str,
1501
+ ) -> None:
1502
+ """Type checking stubs"""
1503
+ pass
1504
+
1505
+ def _typecheckingstub__0a5601e746b677b59fb0147c2712861e77db605cb365170c99f3dfe176b33327(
1506
+ artifact_id: builtins.str,
1507
+ ) -> None:
1508
+ """Type checking stubs"""
1509
+ pass
1510
+
1511
+ def _typecheckingstub__eeb03f99fef00e1295a5f99ece1e08e0da66f513918a08f156c5e503c51915cd(
1512
+ stack_name: builtins.str,
1513
+ ) -> None:
1514
+ """Type checking stubs"""
1515
+ pass
1516
+
1517
+ def _typecheckingstub__9d7f16b827e7384c7db89d5c67b9026edf7de88a522a9504d732d134d19d7977(
1518
+ id: builtins.str,
1519
+ ) -> None:
1520
+ """Type checking stubs"""
1521
+ pass
1522
+
1523
+ def _typecheckingstub__75737a474095421951968fdd1fc84e47e73502fca3a5d0e733a24a707b927fef(
1524
+ outdir: typing.Optional[builtins.str] = None,
1525
+ *,
1526
+ asset_outdir: typing.Optional[builtins.str] = None,
1527
+ parent_builder: typing.Optional[CloudAssemblyBuilder] = None,
1528
+ ) -> None:
1529
+ """Type checking stubs"""
1530
+ pass
1531
+
1532
+ def _typecheckingstub__37c58bea2c2cfc78a9e7a865d93058b291dc4d0394532dc0fe2f7dd1ca4de3a3(
1533
+ id: builtins.str,
1534
+ *,
1535
+ type: _ros_cdk_assembly_schema_63fe2cdf.ArtifactType,
1536
+ dependencies: typing.Optional[typing.Sequence[builtins.str]] = None,
1537
+ metadata: typing.Optional[typing.Mapping[builtins.str, typing.Sequence[typing.Union[_ros_cdk_assembly_schema_63fe2cdf.MetadataEntry, typing.Dict[builtins.str, typing.Any]]]]] = None,
1538
+ properties: typing.Optional[typing.Union[typing.Union[_ros_cdk_assembly_schema_63fe2cdf.AliyunRosStackProperties, typing.Dict[builtins.str, typing.Any]], typing.Union[_ros_cdk_assembly_schema_63fe2cdf.TreeArtifactProperties, typing.Dict[builtins.str, typing.Any]], typing.Union[_ros_cdk_assembly_schema_63fe2cdf.NestedCloudAssemblyProperties, typing.Dict[builtins.str, typing.Any]]]] = None,
1539
+ ) -> None:
1540
+ """Type checking stubs"""
1541
+ pass
1542
+
1543
+ def _typecheckingstub__19e5e6e20d5f256f412a8fe0e0d60a4dafe9cb8b5bc81e152ff0f4d9029db1c0(
1544
+ artifact_id: builtins.str,
1545
+ display_name: builtins.str,
1546
+ ) -> None:
1547
+ """Type checking stubs"""
1548
+ pass
1549
+
1550
+ def _typecheckingstub__4dfe8c845f2f11c0a8de26f8ec25911c2610e4b7bf6cfa2465c5530c6a942903(
1551
+ *,
1552
+ asset_outdir: typing.Optional[builtins.str] = None,
1553
+ parent_builder: typing.Optional[CloudAssemblyBuilder] = None,
1554
+ ) -> None:
1555
+ """Type checking stubs"""
1556
+ pass
1557
+
1558
+ def _typecheckingstub__2a4eb373dfdab72c8b81886f9964f3bd7c4f1a43c757df34b3d4d2f01a87f554(
1559
+ *,
1560
+ account: builtins.str,
1561
+ name: builtins.str,
1562
+ region: builtins.str,
1563
+ ) -> None:
1564
+ """Type checking stubs"""
1565
+ pass
1566
+
1567
+ def _typecheckingstub__4095b7704f90efb3a6da91b80b3ab65b25e5a26544bdbed32fef51ae7deb5d4a(
1568
+ *,
1569
+ account_id: builtins.str,
1570
+ region: builtins.str,
1571
+ ) -> None:
1572
+ """Type checking stubs"""
1573
+ pass
1574
+
1575
+ def _typecheckingstub__8d93747b5318e68c45ec4fb7a9712da60d52317a69cfce73f530a4e4953c65ca(
1576
+ object: typing.Any,
1577
+ *,
1578
+ account_id: builtins.str,
1579
+ region: builtins.str,
1580
+ ) -> None:
1581
+ """Type checking stubs"""
1582
+ pass
1583
+
1584
+ def _typecheckingstub__fb032ab0f32a3893d4e2e3fd969115b98c3c727d9152deca4fe9d01061532abf(
1585
+ object: typing.Any,
1586
+ provider: IEnvironmentPlaceholderProvider,
1587
+ ) -> None:
1588
+ """Type checking stubs"""
1589
+ pass
1590
+
1591
+ def _typecheckingstub__dd7c5a1f09e810478a920bac269f90d1f7cd2a9dc7cda24ddd510bd73bb49f48(
1592
+ account: builtins.str,
1593
+ region: builtins.str,
1594
+ ) -> None:
1595
+ """Type checking stubs"""
1596
+ pass
1597
+
1598
+ def _typecheckingstub__80b98bc75a150467af9735eb813371760e40b79e9272752d521824f42dfe9d94(
1599
+ account: builtins.str,
1600
+ region: builtins.str,
1601
+ ) -> None:
1602
+ """Type checking stubs"""
1603
+ pass
1604
+
1605
+ def _typecheckingstub__dd936c28dc750b8677f13a6377c47a102ef01644cdd56d4041e098bbc8edb1a5(
1606
+ environment: builtins.str,
1607
+ ) -> None:
1608
+ """Type checking stubs"""
1609
+ pass
1610
+
1611
+ def _typecheckingstub__7da05f7944577a8db92b5dbb13556d9742f74b4771deeb411f0f697323831715(
1612
+ *,
1613
+ type: builtins.str,
1614
+ data: typing.Optional[typing.Union[builtins.str, typing.Sequence[typing.Union[_ros_cdk_assembly_schema_63fe2cdf.Tag, typing.Dict[builtins.str, typing.Any]]]]] = None,
1615
+ trace: typing.Optional[typing.Sequence[builtins.str]] = None,
1616
+ ) -> None:
1617
+ """Type checking stubs"""
1618
+ pass
1619
+
1620
+ def _typecheckingstub__74f95e884ce76eab45ca5e38eea872e53d87ffb47aa5b58460065832a9164559(
1621
+ *,
1622
+ type: builtins.str,
1623
+ data: typing.Optional[typing.Union[builtins.str, typing.Sequence[typing.Union[_ros_cdk_assembly_schema_63fe2cdf.Tag, typing.Dict[builtins.str, typing.Any]]]]] = None,
1624
+ trace: typing.Optional[typing.Sequence[builtins.str]] = None,
1625
+ path: builtins.str,
1626
+ ) -> None:
1627
+ """Type checking stubs"""
1628
+ pass
1629
+
1630
+ def _typecheckingstub__119f56e5e0f5a649eab50e526b8d2d6b09d418768278604c5cbad5a9e608d765(
1631
+ *,
1632
+ key: builtins.str,
1633
+ props: typing.Mapping[builtins.str, typing.Any],
1634
+ provider: builtins.str,
1635
+ ) -> None:
1636
+ """Type checking stubs"""
1637
+ pass
1638
+
1639
+ def _typecheckingstub__980fec3b47bb5d0e76aec285ce93492b22654f56c0ae965b06c0d23e34307565(
1640
+ assembly: CloudAssembly,
1641
+ name: builtins.str,
1642
+ *,
1643
+ type: _ros_cdk_assembly_schema_63fe2cdf.ArtifactType,
1644
+ dependencies: typing.Optional[typing.Sequence[builtins.str]] = None,
1645
+ metadata: typing.Optional[typing.Mapping[builtins.str, typing.Sequence[typing.Union[_ros_cdk_assembly_schema_63fe2cdf.MetadataEntry, typing.Dict[builtins.str, typing.Any]]]]] = None,
1646
+ properties: typing.Optional[typing.Union[typing.Union[_ros_cdk_assembly_schema_63fe2cdf.AliyunRosStackProperties, typing.Dict[builtins.str, typing.Any]], typing.Union[_ros_cdk_assembly_schema_63fe2cdf.TreeArtifactProperties, typing.Dict[builtins.str, typing.Any]], typing.Union[_ros_cdk_assembly_schema_63fe2cdf.NestedCloudAssemblyProperties, typing.Dict[builtins.str, typing.Any]]]] = None,
1647
+ ) -> None:
1648
+ """Type checking stubs"""
1649
+ pass
1650
+
1651
+ def _typecheckingstub__5b1e2e9874ff423089b54d266f1b6b305028045d5dce84f26a3286f13d694ef6(
1652
+ assembly: CloudAssembly,
1653
+ artifact_id: builtins.str,
1654
+ *,
1655
+ type: _ros_cdk_assembly_schema_63fe2cdf.ArtifactType,
1656
+ dependencies: typing.Optional[typing.Sequence[builtins.str]] = None,
1657
+ metadata: typing.Optional[typing.Mapping[builtins.str, typing.Sequence[typing.Union[_ros_cdk_assembly_schema_63fe2cdf.MetadataEntry, typing.Dict[builtins.str, typing.Any]]]]] = None,
1658
+ properties: typing.Optional[typing.Union[typing.Union[_ros_cdk_assembly_schema_63fe2cdf.AliyunRosStackProperties, typing.Dict[builtins.str, typing.Any]], typing.Union[_ros_cdk_assembly_schema_63fe2cdf.TreeArtifactProperties, typing.Dict[builtins.str, typing.Any]], typing.Union[_ros_cdk_assembly_schema_63fe2cdf.NestedCloudAssemblyProperties, typing.Dict[builtins.str, typing.Any]]]] = None,
1659
+ ) -> None:
1660
+ """Type checking stubs"""
1661
+ pass
1662
+
1663
+ def _typecheckingstub__b7c7ce3d847d7562d19e05aef24620874c5b871196174139f16553b6f3278590(
1664
+ *,
1665
+ libraries: typing.Mapping[builtins.str, builtins.str],
1666
+ ) -> None:
1667
+ """Type checking stubs"""
1668
+ pass
1669
+
1670
+ def _typecheckingstub__9585640b1217a9eeda7edf01f3a252bddc38603523313be361abe48f810ab155(
1671
+ *,
1672
+ entry: typing.Union[_ros_cdk_assembly_schema_63fe2cdf.MetadataEntry, typing.Dict[builtins.str, typing.Any]],
1673
+ id: builtins.str,
1674
+ level: SynthesisMessageLevel,
1675
+ ) -> None:
1676
+ """Type checking stubs"""
1677
+ pass
1678
+
1679
+ def _typecheckingstub__8817b7cbf6cd51228f8ae6b5c4b8e9d2f166df1f66a32bea6dc2b6f738720e1f(
1680
+ assembly: CloudAssembly,
1681
+ name: builtins.str,
1682
+ *,
1683
+ type: _ros_cdk_assembly_schema_63fe2cdf.ArtifactType,
1684
+ dependencies: typing.Optional[typing.Sequence[builtins.str]] = None,
1685
+ metadata: typing.Optional[typing.Mapping[builtins.str, typing.Sequence[typing.Union[_ros_cdk_assembly_schema_63fe2cdf.MetadataEntry, typing.Dict[builtins.str, typing.Any]]]]] = None,
1686
+ properties: typing.Optional[typing.Union[typing.Union[_ros_cdk_assembly_schema_63fe2cdf.AliyunRosStackProperties, typing.Dict[builtins.str, typing.Any]], typing.Union[_ros_cdk_assembly_schema_63fe2cdf.TreeArtifactProperties, typing.Dict[builtins.str, typing.Any]], typing.Union[_ros_cdk_assembly_schema_63fe2cdf.NestedCloudAssemblyProperties, typing.Dict[builtins.str, typing.Any]]]] = None,
1687
+ ) -> None:
1688
+ """Type checking stubs"""
1689
+ pass