aws-cdk-lib 2.175.1__py3-none-any.whl → 2.176.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.

Potentially problematic release.


This version of aws-cdk-lib might be problematic. Click here for more details.

Files changed (40) hide show
  1. aws_cdk/__init__.py +15 -6
  2. aws_cdk/_jsii/__init__.py +1 -1
  3. aws_cdk/_jsii/{aws-cdk-lib@2.175.1.jsii.tgz → aws-cdk-lib@2.176.0.jsii.tgz} +0 -0
  4. aws_cdk/aws_apigatewayv2_integrations/__init__.py +159 -7
  5. aws_cdk/aws_appconfig/__init__.py +106 -24
  6. aws_cdk/aws_appsync/__init__.py +3 -3
  7. aws_cdk/aws_backup/__init__.py +18 -84
  8. aws_cdk/aws_cleanrooms/__init__.py +77 -34
  9. aws_cdk/aws_cloudformation/__init__.py +4 -2
  10. aws_cdk/aws_cloudfront/experimental/__init__.py +1 -1
  11. aws_cdk/aws_cloudwatch/__init__.py +53 -49
  12. aws_cdk/aws_codebuild/__init__.py +36 -0
  13. aws_cdk/aws_cognito/__init__.py +228 -219
  14. aws_cdk/aws_customerprofiles/__init__.py +1060 -0
  15. aws_cdk/aws_docdb/__init__.py +29 -9
  16. aws_cdk/aws_dynamodb/__init__.py +77 -58
  17. aws_cdk/aws_ec2/__init__.py +11 -8
  18. aws_cdk/aws_ecs/__init__.py +100 -35
  19. aws_cdk/aws_elasticloadbalancingv2/__init__.py +41 -5
  20. aws_cdk/aws_healthlake/__init__.py +36 -40
  21. aws_cdk/aws_lambda/__init__.py +8 -8
  22. aws_cdk/aws_lambda_event_sources/__init__.py +9 -9
  23. aws_cdk/aws_lex/__init__.py +105 -0
  24. aws_cdk/aws_mediaconvert/__init__.py +7 -3
  25. aws_cdk/aws_organizations/__init__.py +5 -9
  26. aws_cdk/aws_rds/__init__.py +83 -8
  27. aws_cdk/aws_resiliencehub/__init__.py +41 -0
  28. aws_cdk/aws_s3/__init__.py +5 -5
  29. aws_cdk/aws_ses/__init__.py +25 -4
  30. aws_cdk/aws_ssm/__init__.py +9 -2
  31. aws_cdk/aws_ssmquicksetup/__init__.py +84 -84
  32. aws_cdk/aws_sso/__init__.py +9 -5
  33. aws_cdk/cx_api/__init__.py +25 -4
  34. {aws_cdk_lib-2.175.1.dist-info → aws_cdk_lib-2.176.0.dist-info}/METADATA +1 -1
  35. {aws_cdk_lib-2.175.1.dist-info → aws_cdk_lib-2.176.0.dist-info}/RECORD +39 -40
  36. aws_cdk/aws_iot1click/__init__.py +0 -1193
  37. {aws_cdk_lib-2.175.1.dist-info → aws_cdk_lib-2.176.0.dist-info}/LICENSE +0 -0
  38. {aws_cdk_lib-2.175.1.dist-info → aws_cdk_lib-2.176.0.dist-info}/NOTICE +0 -0
  39. {aws_cdk_lib-2.175.1.dist-info → aws_cdk_lib-2.176.0.dist-info}/WHEEL +0 -0
  40. {aws_cdk_lib-2.175.1.dist-info → aws_cdk_lib-2.176.0.dist-info}/top_level.txt +0 -0
@@ -1,1193 +0,0 @@
1
- r'''
2
- # AWS IoT 1-Click Construct Library
3
-
4
- This module is part of the [AWS Cloud Development Kit](https://github.com/aws/aws-cdk) project.
5
-
6
- ```python
7
- import aws_cdk.aws_iot1click as iot1click
8
- ```
9
-
10
- <!--BEGIN CFNONLY DISCLAIMER-->
11
-
12
- There are no official hand-written ([L2](https://docs.aws.amazon.com/cdk/latest/guide/constructs.html#constructs_lib)) constructs for this service yet. Here are some suggestions on how to proceed:
13
-
14
- * Search [Construct Hub for IoT1Click construct libraries](https://constructs.dev/search?q=iot1click)
15
- * Use the automatically generated [L1](https://docs.aws.amazon.com/cdk/latest/guide/constructs.html#constructs_l1_using) constructs, in the same way you would use [the CloudFormation AWS::IoT1Click resources](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/AWS_IoT1Click.html) directly.
16
-
17
- <!--BEGIN CFNONLY DISCLAIMER-->
18
-
19
- There are no hand-written ([L2](https://docs.aws.amazon.com/cdk/latest/guide/constructs.html#constructs_lib)) constructs for this service yet.
20
- However, you can still use the automatically generated [L1](https://docs.aws.amazon.com/cdk/latest/guide/constructs.html#constructs_l1_using) constructs, and use this service exactly as you would using CloudFormation directly.
21
-
22
- For more information on the resources and properties available for this service, see the [CloudFormation documentation for AWS::IoT1Click](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/AWS_IoT1Click.html).
23
-
24
- (Read the [CDK Contributing Guide](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and submit an RFC if you are interested in contributing to this construct library.)
25
-
26
- <!--END CFNONLY DISCLAIMER-->
27
- '''
28
- from pkgutil import extend_path
29
- __path__ = extend_path(__path__, __name__)
30
-
31
- import abc
32
- import builtins
33
- import datetime
34
- import enum
35
- import typing
36
-
37
- import jsii
38
- import publication
39
- import typing_extensions
40
-
41
- import typeguard
42
- from importlib.metadata import version as _metadata_package_version
43
- TYPEGUARD_MAJOR_VERSION = int(_metadata_package_version('typeguard').split('.')[0])
44
-
45
- def check_type(argname: str, value: object, expected_type: typing.Any) -> typing.Any:
46
- if TYPEGUARD_MAJOR_VERSION <= 2:
47
- return typeguard.check_type(argname=argname, value=value, expected_type=expected_type) # type:ignore
48
- else:
49
- if isinstance(value, jsii._reference_map.InterfaceDynamicProxy): # pyright: ignore [reportAttributeAccessIssue]
50
- pass
51
- else:
52
- if TYPEGUARD_MAJOR_VERSION == 3:
53
- typeguard.config.collection_check_strategy = typeguard.CollectionCheckStrategy.ALL_ITEMS # type:ignore
54
- typeguard.check_type(value=value, expected_type=expected_type) # type:ignore
55
- else:
56
- typeguard.check_type(value=value, expected_type=expected_type, collection_check_strategy=typeguard.CollectionCheckStrategy.ALL_ITEMS) # type:ignore
57
-
58
- from .._jsii import *
59
-
60
- import constructs as _constructs_77d1e7e8
61
- from .. import (
62
- CfnResource as _CfnResource_9df397a6,
63
- IInspectable as _IInspectable_c2943556,
64
- IResolvable as _IResolvable_da3f097b,
65
- TreeInspector as _TreeInspector_488e0dd5,
66
- )
67
-
68
-
69
- @jsii.implements(_IInspectable_c2943556)
70
- class CfnDevice(
71
- _CfnResource_9df397a6,
72
- metaclass=jsii.JSIIMeta,
73
- jsii_type="aws-cdk-lib.aws_iot1click.CfnDevice",
74
- ):
75
- '''.. epigraph::
76
-
77
- AWS IoT 1-Click was discontinued on Dec 16, 2024. For more information, see `AWS IoT 1-Click <https://docs.aws.amazon.com//iot/latest/developerguide/iot-legacy-services.html>`_ .
78
-
79
- The ``AWS::IoT1Click::Device`` resource controls the enabled state of an AWS IoT 1-Click compatible device. For more information, see `Device <https://docs.aws.amazon.com/iot-1-click/1.0/devices-apireference/devices-deviceid.html>`_ in the *AWS IoT 1-Click Devices API Reference* .
80
-
81
- :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot1click-device.html
82
- :cloudformationResource: AWS::IoT1Click::Device
83
- :exampleMetadata: fixture=_generated
84
-
85
- Example::
86
-
87
- # The code below shows an example of how to instantiate this type.
88
- # The values are placeholders you should change.
89
- from aws_cdk import aws_iot1click as iot1click
90
-
91
- cfn_device = iot1click.CfnDevice(self, "MyCfnDevice",
92
- device_id="deviceId",
93
- enabled=False
94
- )
95
- '''
96
-
97
- def __init__(
98
- self,
99
- scope: _constructs_77d1e7e8.Construct,
100
- id: builtins.str,
101
- *,
102
- device_id: builtins.str,
103
- enabled: typing.Union[builtins.bool, _IResolvable_da3f097b],
104
- ) -> None:
105
- '''
106
- :param scope: Scope in which this resource is defined.
107
- :param id: Construct identifier for this resource (unique in its scope).
108
- :param device_id: The ID of the device, such as ``G030PX0312744DWM`` .
109
- :param enabled: A Boolean value indicating whether the device is enabled ( ``true`` ) or not ( ``false`` ).
110
- '''
111
- if __debug__:
112
- type_hints = typing.get_type_hints(_typecheckingstub__4a339667885af529b8cd8c8d1e0a01ab39b4df8c37caaa4e780eaac7c2f9666f)
113
- check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
114
- check_type(argname="argument id", value=id, expected_type=type_hints["id"])
115
- props = CfnDeviceProps(device_id=device_id, enabled=enabled)
116
-
117
- jsii.create(self.__class__, self, [scope, id, props])
118
-
119
- @jsii.member(jsii_name="inspect")
120
- def inspect(self, inspector: _TreeInspector_488e0dd5) -> None:
121
- '''Examines the CloudFormation resource and discloses attributes.
122
-
123
- :param inspector: tree inspector to collect and process attributes.
124
- '''
125
- if __debug__:
126
- type_hints = typing.get_type_hints(_typecheckingstub__2c208db47e9fcc79bcc2e61f32b9c12a92a8fd2fbe37297fb8a7f35416fff32e)
127
- check_type(argname="argument inspector", value=inspector, expected_type=type_hints["inspector"])
128
- return typing.cast(None, jsii.invoke(self, "inspect", [inspector]))
129
-
130
- @jsii.member(jsii_name="renderProperties")
131
- def _render_properties(
132
- self,
133
- props: typing.Mapping[builtins.str, typing.Any],
134
- ) -> typing.Mapping[builtins.str, typing.Any]:
135
- '''
136
- :param props: -
137
- '''
138
- if __debug__:
139
- type_hints = typing.get_type_hints(_typecheckingstub__0937e66cec46366bbf925d7a3705e020a00ac7868787dc36d1cfa4978d429e56)
140
- check_type(argname="argument props", value=props, expected_type=type_hints["props"])
141
- return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.invoke(self, "renderProperties", [props]))
142
-
143
- @jsii.python.classproperty
144
- @jsii.member(jsii_name="CFN_RESOURCE_TYPE_NAME")
145
- def CFN_RESOURCE_TYPE_NAME(cls) -> builtins.str:
146
- '''The CloudFormation resource type name for this resource class.'''
147
- return typing.cast(builtins.str, jsii.sget(cls, "CFN_RESOURCE_TYPE_NAME"))
148
-
149
- @builtins.property
150
- @jsii.member(jsii_name="attrArn")
151
- def attr_arn(self) -> builtins.str:
152
- '''The ARN of the device, such as ``arn:aws:iot1click:us-west-2:123456789012:devices/G030PX0312744DWM`` .
153
-
154
- :cloudformationAttribute: Arn
155
- '''
156
- return typing.cast(builtins.str, jsii.get(self, "attrArn"))
157
-
158
- @builtins.property
159
- @jsii.member(jsii_name="attrDeviceId")
160
- def attr_device_id(self) -> builtins.str:
161
- '''The unique identifier of the device.
162
-
163
- :cloudformationAttribute: DeviceId
164
- '''
165
- return typing.cast(builtins.str, jsii.get(self, "attrDeviceId"))
166
-
167
- @builtins.property
168
- @jsii.member(jsii_name="attrEnabled")
169
- def attr_enabled(self) -> _IResolvable_da3f097b:
170
- '''A Boolean value indicating whether the device is enabled ( ``true`` ) or not ( ``false`` ).
171
-
172
- :cloudformationAttribute: Enabled
173
- '''
174
- return typing.cast(_IResolvable_da3f097b, jsii.get(self, "attrEnabled"))
175
-
176
- @builtins.property
177
- @jsii.member(jsii_name="cfnProperties")
178
- def _cfn_properties(self) -> typing.Mapping[builtins.str, typing.Any]:
179
- return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.get(self, "cfnProperties"))
180
-
181
- @builtins.property
182
- @jsii.member(jsii_name="deviceId")
183
- def device_id(self) -> builtins.str:
184
- '''The ID of the device, such as ``G030PX0312744DWM`` .'''
185
- return typing.cast(builtins.str, jsii.get(self, "deviceId"))
186
-
187
- @device_id.setter
188
- def device_id(self, value: builtins.str) -> None:
189
- if __debug__:
190
- type_hints = typing.get_type_hints(_typecheckingstub__1af5e1ede2c9cfe87913d3b2fe43a47c008e26ef1d491043fc5231d4a6fc4c0e)
191
- check_type(argname="argument value", value=value, expected_type=type_hints["value"])
192
- jsii.set(self, "deviceId", value) # pyright: ignore[reportArgumentType]
193
-
194
- @builtins.property
195
- @jsii.member(jsii_name="enabled")
196
- def enabled(self) -> typing.Union[builtins.bool, _IResolvable_da3f097b]:
197
- '''A Boolean value indicating whether the device is enabled ( ``true`` ) or not ( ``false`` ).'''
198
- return typing.cast(typing.Union[builtins.bool, _IResolvable_da3f097b], jsii.get(self, "enabled"))
199
-
200
- @enabled.setter
201
- def enabled(
202
- self,
203
- value: typing.Union[builtins.bool, _IResolvable_da3f097b],
204
- ) -> None:
205
- if __debug__:
206
- type_hints = typing.get_type_hints(_typecheckingstub__7b986cfe7b04041b5edc4a04f13db84e74e99be88c5d7752df22893d05d9f79f)
207
- check_type(argname="argument value", value=value, expected_type=type_hints["value"])
208
- jsii.set(self, "enabled", value) # pyright: ignore[reportArgumentType]
209
-
210
-
211
- @jsii.data_type(
212
- jsii_type="aws-cdk-lib.aws_iot1click.CfnDeviceProps",
213
- jsii_struct_bases=[],
214
- name_mapping={"device_id": "deviceId", "enabled": "enabled"},
215
- )
216
- class CfnDeviceProps:
217
- def __init__(
218
- self,
219
- *,
220
- device_id: builtins.str,
221
- enabled: typing.Union[builtins.bool, _IResolvable_da3f097b],
222
- ) -> None:
223
- '''Properties for defining a ``CfnDevice``.
224
-
225
- :param device_id: The ID of the device, such as ``G030PX0312744DWM`` .
226
- :param enabled: A Boolean value indicating whether the device is enabled ( ``true`` ) or not ( ``false`` ).
227
-
228
- :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot1click-device.html
229
- :exampleMetadata: fixture=_generated
230
-
231
- Example::
232
-
233
- # The code below shows an example of how to instantiate this type.
234
- # The values are placeholders you should change.
235
- from aws_cdk import aws_iot1click as iot1click
236
-
237
- cfn_device_props = iot1click.CfnDeviceProps(
238
- device_id="deviceId",
239
- enabled=False
240
- )
241
- '''
242
- if __debug__:
243
- type_hints = typing.get_type_hints(_typecheckingstub__ed52f8e78c1c813a8f26b92a1f5cb2a3266d3b98a462677f54a8e4c568b1c7b9)
244
- check_type(argname="argument device_id", value=device_id, expected_type=type_hints["device_id"])
245
- check_type(argname="argument enabled", value=enabled, expected_type=type_hints["enabled"])
246
- self._values: typing.Dict[builtins.str, typing.Any] = {
247
- "device_id": device_id,
248
- "enabled": enabled,
249
- }
250
-
251
- @builtins.property
252
- def device_id(self) -> builtins.str:
253
- '''The ID of the device, such as ``G030PX0312744DWM`` .
254
-
255
- :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot1click-device.html#cfn-iot1click-device-deviceid
256
- '''
257
- result = self._values.get("device_id")
258
- assert result is not None, "Required property 'device_id' is missing"
259
- return typing.cast(builtins.str, result)
260
-
261
- @builtins.property
262
- def enabled(self) -> typing.Union[builtins.bool, _IResolvable_da3f097b]:
263
- '''A Boolean value indicating whether the device is enabled ( ``true`` ) or not ( ``false`` ).
264
-
265
- :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot1click-device.html#cfn-iot1click-device-enabled
266
- '''
267
- result = self._values.get("enabled")
268
- assert result is not None, "Required property 'enabled' is missing"
269
- return typing.cast(typing.Union[builtins.bool, _IResolvable_da3f097b], result)
270
-
271
- def __eq__(self, rhs: typing.Any) -> builtins.bool:
272
- return isinstance(rhs, self.__class__) and rhs._values == self._values
273
-
274
- def __ne__(self, rhs: typing.Any) -> builtins.bool:
275
- return not (rhs == self)
276
-
277
- def __repr__(self) -> str:
278
- return "CfnDeviceProps(%s)" % ", ".join(
279
- k + "=" + repr(v) for k, v in self._values.items()
280
- )
281
-
282
-
283
- @jsii.implements(_IInspectable_c2943556)
284
- class CfnPlacement(
285
- _CfnResource_9df397a6,
286
- metaclass=jsii.JSIIMeta,
287
- jsii_type="aws-cdk-lib.aws_iot1click.CfnPlacement",
288
- ):
289
- '''.. epigraph::
290
-
291
- AWS IoT 1-Click was discontinued on Dec 16, 2024. For more information, see `AWS IoT 1-Click <https://docs.aws.amazon.com//iot/latest/developerguide/iot-legacy-services.html>`_ .
292
-
293
- The ``AWS::IoT1Click::Placement`` resource creates a placement to be associated with an AWS IoT 1-Click project. A placement is an instance of a device in a location. For more information, see `Projects, Templates, and Placements <https://docs.aws.amazon.com/iot-1-click/latest/developerguide/1click-PTP.html>`_ in the *AWS IoT 1-Click Developer Guide* .
294
-
295
- :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot1click-placement.html
296
- :cloudformationResource: AWS::IoT1Click::Placement
297
- :exampleMetadata: fixture=_generated
298
-
299
- Example::
300
-
301
- # The code below shows an example of how to instantiate this type.
302
- # The values are placeholders you should change.
303
- from aws_cdk import aws_iot1click as iot1click
304
-
305
- # associated_devices: Any
306
- # attributes: Any
307
-
308
- cfn_placement = iot1click.CfnPlacement(self, "MyCfnPlacement",
309
- project_name="projectName",
310
-
311
- # the properties below are optional
312
- associated_devices=associated_devices,
313
- attributes=attributes,
314
- placement_name="placementName"
315
- )
316
- '''
317
-
318
- def __init__(
319
- self,
320
- scope: _constructs_77d1e7e8.Construct,
321
- id: builtins.str,
322
- *,
323
- project_name: builtins.str,
324
- associated_devices: typing.Any = None,
325
- attributes: typing.Any = None,
326
- placement_name: typing.Optional[builtins.str] = None,
327
- ) -> None:
328
- '''
329
- :param scope: Scope in which this resource is defined.
330
- :param id: Construct identifier for this resource (unique in its scope).
331
- :param project_name: The name of the project containing the placement.
332
- :param associated_devices: The devices to associate with the placement, as defined by a mapping of zero or more key-value pairs wherein the key is a template name and the value is a device ID.
333
- :param attributes: The user-defined attributes associated with the placement.
334
- :param placement_name: The name of the placement.
335
- '''
336
- if __debug__:
337
- type_hints = typing.get_type_hints(_typecheckingstub__1832ff90d2995fc576cdd9b6a1b5fa00191a74d323a5bc23e80b816f8ac9854d)
338
- check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
339
- check_type(argname="argument id", value=id, expected_type=type_hints["id"])
340
- props = CfnPlacementProps(
341
- project_name=project_name,
342
- associated_devices=associated_devices,
343
- attributes=attributes,
344
- placement_name=placement_name,
345
- )
346
-
347
- jsii.create(self.__class__, self, [scope, id, props])
348
-
349
- @jsii.member(jsii_name="inspect")
350
- def inspect(self, inspector: _TreeInspector_488e0dd5) -> None:
351
- '''Examines the CloudFormation resource and discloses attributes.
352
-
353
- :param inspector: tree inspector to collect and process attributes.
354
- '''
355
- if __debug__:
356
- type_hints = typing.get_type_hints(_typecheckingstub__ed4609cb5007624d058eaa3272257198873e4f46babc9f039aca356a1b992955)
357
- check_type(argname="argument inspector", value=inspector, expected_type=type_hints["inspector"])
358
- return typing.cast(None, jsii.invoke(self, "inspect", [inspector]))
359
-
360
- @jsii.member(jsii_name="renderProperties")
361
- def _render_properties(
362
- self,
363
- props: typing.Mapping[builtins.str, typing.Any],
364
- ) -> typing.Mapping[builtins.str, typing.Any]:
365
- '''
366
- :param props: -
367
- '''
368
- if __debug__:
369
- type_hints = typing.get_type_hints(_typecheckingstub__af49c721837c421886783abf1ffc1647011473f5b646bd22401113aaae686e8e)
370
- check_type(argname="argument props", value=props, expected_type=type_hints["props"])
371
- return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.invoke(self, "renderProperties", [props]))
372
-
373
- @jsii.python.classproperty
374
- @jsii.member(jsii_name="CFN_RESOURCE_TYPE_NAME")
375
- def CFN_RESOURCE_TYPE_NAME(cls) -> builtins.str:
376
- '''The CloudFormation resource type name for this resource class.'''
377
- return typing.cast(builtins.str, jsii.sget(cls, "CFN_RESOURCE_TYPE_NAME"))
378
-
379
- @builtins.property
380
- @jsii.member(jsii_name="attrId")
381
- def attr_id(self) -> builtins.str:
382
- '''
383
- :cloudformationAttribute: Id
384
- '''
385
- return typing.cast(builtins.str, jsii.get(self, "attrId"))
386
-
387
- @builtins.property
388
- @jsii.member(jsii_name="attrPlacementName")
389
- def attr_placement_name(self) -> builtins.str:
390
- '''The name of the placement, such as ``floor17`` .
391
-
392
- :cloudformationAttribute: PlacementName
393
- '''
394
- return typing.cast(builtins.str, jsii.get(self, "attrPlacementName"))
395
-
396
- @builtins.property
397
- @jsii.member(jsii_name="attrProjectName")
398
- def attr_project_name(self) -> builtins.str:
399
- '''The name of the project containing the placement, such as ``conference-rooms`` .
400
-
401
- :cloudformationAttribute: ProjectName
402
- '''
403
- return typing.cast(builtins.str, jsii.get(self, "attrProjectName"))
404
-
405
- @builtins.property
406
- @jsii.member(jsii_name="cfnProperties")
407
- def _cfn_properties(self) -> typing.Mapping[builtins.str, typing.Any]:
408
- return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.get(self, "cfnProperties"))
409
-
410
- @builtins.property
411
- @jsii.member(jsii_name="projectName")
412
- def project_name(self) -> builtins.str:
413
- '''The name of the project containing the placement.'''
414
- return typing.cast(builtins.str, jsii.get(self, "projectName"))
415
-
416
- @project_name.setter
417
- def project_name(self, value: builtins.str) -> None:
418
- if __debug__:
419
- type_hints = typing.get_type_hints(_typecheckingstub__f68bef049df594e77c7012b197213cb53a06ead39f89cf4e53e662971c19c947)
420
- check_type(argname="argument value", value=value, expected_type=type_hints["value"])
421
- jsii.set(self, "projectName", value) # pyright: ignore[reportArgumentType]
422
-
423
- @builtins.property
424
- @jsii.member(jsii_name="associatedDevices")
425
- def associated_devices(self) -> typing.Any:
426
- '''The devices to associate with the placement, as defined by a mapping of zero or more key-value pairs wherein the key is a template name and the value is a device ID.'''
427
- return typing.cast(typing.Any, jsii.get(self, "associatedDevices"))
428
-
429
- @associated_devices.setter
430
- def associated_devices(self, value: typing.Any) -> None:
431
- if __debug__:
432
- type_hints = typing.get_type_hints(_typecheckingstub__41ed621a48ebcff7516df830ca4354bd481f7fe3c2a7b02f987d9817f06437aa)
433
- check_type(argname="argument value", value=value, expected_type=type_hints["value"])
434
- jsii.set(self, "associatedDevices", value) # pyright: ignore[reportArgumentType]
435
-
436
- @builtins.property
437
- @jsii.member(jsii_name="attributes")
438
- def attributes(self) -> typing.Any:
439
- '''The user-defined attributes associated with the placement.'''
440
- return typing.cast(typing.Any, jsii.get(self, "attributes"))
441
-
442
- @attributes.setter
443
- def attributes(self, value: typing.Any) -> None:
444
- if __debug__:
445
- type_hints = typing.get_type_hints(_typecheckingstub__279a36e68d02da72c788a0ae0680ed6215b286e6067d4217301b95e1759e8945)
446
- check_type(argname="argument value", value=value, expected_type=type_hints["value"])
447
- jsii.set(self, "attributes", value) # pyright: ignore[reportArgumentType]
448
-
449
- @builtins.property
450
- @jsii.member(jsii_name="placementName")
451
- def placement_name(self) -> typing.Optional[builtins.str]:
452
- '''The name of the placement.'''
453
- return typing.cast(typing.Optional[builtins.str], jsii.get(self, "placementName"))
454
-
455
- @placement_name.setter
456
- def placement_name(self, value: typing.Optional[builtins.str]) -> None:
457
- if __debug__:
458
- type_hints = typing.get_type_hints(_typecheckingstub__9997ef913ccc729d6160ae2ad2530921224a6b3d37a9783881301d6e83aa1a7d)
459
- check_type(argname="argument value", value=value, expected_type=type_hints["value"])
460
- jsii.set(self, "placementName", value) # pyright: ignore[reportArgumentType]
461
-
462
-
463
- @jsii.data_type(
464
- jsii_type="aws-cdk-lib.aws_iot1click.CfnPlacementProps",
465
- jsii_struct_bases=[],
466
- name_mapping={
467
- "project_name": "projectName",
468
- "associated_devices": "associatedDevices",
469
- "attributes": "attributes",
470
- "placement_name": "placementName",
471
- },
472
- )
473
- class CfnPlacementProps:
474
- def __init__(
475
- self,
476
- *,
477
- project_name: builtins.str,
478
- associated_devices: typing.Any = None,
479
- attributes: typing.Any = None,
480
- placement_name: typing.Optional[builtins.str] = None,
481
- ) -> None:
482
- '''Properties for defining a ``CfnPlacement``.
483
-
484
- :param project_name: The name of the project containing the placement.
485
- :param associated_devices: The devices to associate with the placement, as defined by a mapping of zero or more key-value pairs wherein the key is a template name and the value is a device ID.
486
- :param attributes: The user-defined attributes associated with the placement.
487
- :param placement_name: The name of the placement.
488
-
489
- :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot1click-placement.html
490
- :exampleMetadata: fixture=_generated
491
-
492
- Example::
493
-
494
- # The code below shows an example of how to instantiate this type.
495
- # The values are placeholders you should change.
496
- from aws_cdk import aws_iot1click as iot1click
497
-
498
- # associated_devices: Any
499
- # attributes: Any
500
-
501
- cfn_placement_props = iot1click.CfnPlacementProps(
502
- project_name="projectName",
503
-
504
- # the properties below are optional
505
- associated_devices=associated_devices,
506
- attributes=attributes,
507
- placement_name="placementName"
508
- )
509
- '''
510
- if __debug__:
511
- type_hints = typing.get_type_hints(_typecheckingstub__5b1bbe2d11ebbdd26b5e90bd4b93cff97bf9de6a4af0c3d4f57d17ce47727447)
512
- check_type(argname="argument project_name", value=project_name, expected_type=type_hints["project_name"])
513
- check_type(argname="argument associated_devices", value=associated_devices, expected_type=type_hints["associated_devices"])
514
- check_type(argname="argument attributes", value=attributes, expected_type=type_hints["attributes"])
515
- check_type(argname="argument placement_name", value=placement_name, expected_type=type_hints["placement_name"])
516
- self._values: typing.Dict[builtins.str, typing.Any] = {
517
- "project_name": project_name,
518
- }
519
- if associated_devices is not None:
520
- self._values["associated_devices"] = associated_devices
521
- if attributes is not None:
522
- self._values["attributes"] = attributes
523
- if placement_name is not None:
524
- self._values["placement_name"] = placement_name
525
-
526
- @builtins.property
527
- def project_name(self) -> builtins.str:
528
- '''The name of the project containing the placement.
529
-
530
- :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot1click-placement.html#cfn-iot1click-placement-projectname
531
- '''
532
- result = self._values.get("project_name")
533
- assert result is not None, "Required property 'project_name' is missing"
534
- return typing.cast(builtins.str, result)
535
-
536
- @builtins.property
537
- def associated_devices(self) -> typing.Any:
538
- '''The devices to associate with the placement, as defined by a mapping of zero or more key-value pairs wherein the key is a template name and the value is a device ID.
539
-
540
- :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot1click-placement.html#cfn-iot1click-placement-associateddevices
541
- '''
542
- result = self._values.get("associated_devices")
543
- return typing.cast(typing.Any, result)
544
-
545
- @builtins.property
546
- def attributes(self) -> typing.Any:
547
- '''The user-defined attributes associated with the placement.
548
-
549
- :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot1click-placement.html#cfn-iot1click-placement-attributes
550
- '''
551
- result = self._values.get("attributes")
552
- return typing.cast(typing.Any, result)
553
-
554
- @builtins.property
555
- def placement_name(self) -> typing.Optional[builtins.str]:
556
- '''The name of the placement.
557
-
558
- :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot1click-placement.html#cfn-iot1click-placement-placementname
559
- '''
560
- result = self._values.get("placement_name")
561
- return typing.cast(typing.Optional[builtins.str], result)
562
-
563
- def __eq__(self, rhs: typing.Any) -> builtins.bool:
564
- return isinstance(rhs, self.__class__) and rhs._values == self._values
565
-
566
- def __ne__(self, rhs: typing.Any) -> builtins.bool:
567
- return not (rhs == self)
568
-
569
- def __repr__(self) -> str:
570
- return "CfnPlacementProps(%s)" % ", ".join(
571
- k + "=" + repr(v) for k, v in self._values.items()
572
- )
573
-
574
-
575
- @jsii.implements(_IInspectable_c2943556)
576
- class CfnProject(
577
- _CfnResource_9df397a6,
578
- metaclass=jsii.JSIIMeta,
579
- jsii_type="aws-cdk-lib.aws_iot1click.CfnProject",
580
- ):
581
- '''.. epigraph::
582
-
583
- AWS IoT 1-Click was discontinued on Dec 16, 2024. For more information, see `AWS IoT 1-Click <https://docs.aws.amazon.com//iot/latest/developerguide/iot-legacy-services.html>`_ .
584
-
585
- The ``AWS::IoT1Click::Project`` resource creates an empty project with a placement template. A project contains zero or more placements that adhere to the placement template defined in the project. For more information, see `CreateProject <https://docs.aws.amazon.com/iot-1-click/latest/projects-apireference/API_CreateProject.html>`_ in the *AWS IoT 1-Click Projects API Reference* .
586
-
587
- :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot1click-project.html
588
- :cloudformationResource: AWS::IoT1Click::Project
589
- :exampleMetadata: fixture=_generated
590
-
591
- Example::
592
-
593
- # The code below shows an example of how to instantiate this type.
594
- # The values are placeholders you should change.
595
- from aws_cdk import aws_iot1click as iot1click
596
-
597
- # callback_overrides: Any
598
- # default_attributes: Any
599
-
600
- cfn_project = iot1click.CfnProject(self, "MyCfnProject",
601
- placement_template=iot1click.CfnProject.PlacementTemplateProperty(
602
- default_attributes=default_attributes,
603
- device_templates={
604
- "device_templates_key": iot1click.CfnProject.DeviceTemplateProperty(
605
- callback_overrides=callback_overrides,
606
- device_type="deviceType"
607
- )
608
- }
609
- ),
610
-
611
- # the properties below are optional
612
- description="description",
613
- project_name="projectName"
614
- )
615
- '''
616
-
617
- def __init__(
618
- self,
619
- scope: _constructs_77d1e7e8.Construct,
620
- id: builtins.str,
621
- *,
622
- placement_template: typing.Union[_IResolvable_da3f097b, typing.Union["CfnProject.PlacementTemplateProperty", typing.Dict[builtins.str, typing.Any]]],
623
- description: typing.Optional[builtins.str] = None,
624
- project_name: typing.Optional[builtins.str] = None,
625
- ) -> None:
626
- '''
627
- :param scope: Scope in which this resource is defined.
628
- :param id: Construct identifier for this resource (unique in its scope).
629
- :param placement_template: An object describing the project's placement specifications.
630
- :param description: The description of the project.
631
- :param project_name: The name of the project from which to obtain information.
632
- '''
633
- if __debug__:
634
- type_hints = typing.get_type_hints(_typecheckingstub__d2c29252c15ba10b77b5985156042673510f8f87b02c8fa43d385a6ff3839856)
635
- check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
636
- check_type(argname="argument id", value=id, expected_type=type_hints["id"])
637
- props = CfnProjectProps(
638
- placement_template=placement_template,
639
- description=description,
640
- project_name=project_name,
641
- )
642
-
643
- jsii.create(self.__class__, self, [scope, id, props])
644
-
645
- @jsii.member(jsii_name="inspect")
646
- def inspect(self, inspector: _TreeInspector_488e0dd5) -> None:
647
- '''Examines the CloudFormation resource and discloses attributes.
648
-
649
- :param inspector: tree inspector to collect and process attributes.
650
- '''
651
- if __debug__:
652
- type_hints = typing.get_type_hints(_typecheckingstub__70aee69d79cd59a1403adc51005f6f5e7f053b1b1860ee137f3ed174df3ed786)
653
- check_type(argname="argument inspector", value=inspector, expected_type=type_hints["inspector"])
654
- return typing.cast(None, jsii.invoke(self, "inspect", [inspector]))
655
-
656
- @jsii.member(jsii_name="renderProperties")
657
- def _render_properties(
658
- self,
659
- props: typing.Mapping[builtins.str, typing.Any],
660
- ) -> typing.Mapping[builtins.str, typing.Any]:
661
- '''
662
- :param props: -
663
- '''
664
- if __debug__:
665
- type_hints = typing.get_type_hints(_typecheckingstub__867b815a22af6da5102aa2a4ee22b7bd47dd9e8a4df8627649ebf70096b28fc9)
666
- check_type(argname="argument props", value=props, expected_type=type_hints["props"])
667
- return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.invoke(self, "renderProperties", [props]))
668
-
669
- @jsii.python.classproperty
670
- @jsii.member(jsii_name="CFN_RESOURCE_TYPE_NAME")
671
- def CFN_RESOURCE_TYPE_NAME(cls) -> builtins.str:
672
- '''The CloudFormation resource type name for this resource class.'''
673
- return typing.cast(builtins.str, jsii.sget(cls, "CFN_RESOURCE_TYPE_NAME"))
674
-
675
- @builtins.property
676
- @jsii.member(jsii_name="attrArn")
677
- def attr_arn(self) -> builtins.str:
678
- '''The Amazon Resource Name (ARN) of the project, such as ``arn:aws:iot1click:us-east-1:123456789012:projects/project-a1bzhi`` .
679
-
680
- :cloudformationAttribute: Arn
681
- '''
682
- return typing.cast(builtins.str, jsii.get(self, "attrArn"))
683
-
684
- @builtins.property
685
- @jsii.member(jsii_name="attrId")
686
- def attr_id(self) -> builtins.str:
687
- '''
688
- :cloudformationAttribute: Id
689
- '''
690
- return typing.cast(builtins.str, jsii.get(self, "attrId"))
691
-
692
- @builtins.property
693
- @jsii.member(jsii_name="attrProjectName")
694
- def attr_project_name(self) -> builtins.str:
695
- '''The name of the project, such as ``project-a1bzhi`` .
696
-
697
- :cloudformationAttribute: ProjectName
698
- '''
699
- return typing.cast(builtins.str, jsii.get(self, "attrProjectName"))
700
-
701
- @builtins.property
702
- @jsii.member(jsii_name="cfnProperties")
703
- def _cfn_properties(self) -> typing.Mapping[builtins.str, typing.Any]:
704
- return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.get(self, "cfnProperties"))
705
-
706
- @builtins.property
707
- @jsii.member(jsii_name="placementTemplate")
708
- def placement_template(
709
- self,
710
- ) -> typing.Union[_IResolvable_da3f097b, "CfnProject.PlacementTemplateProperty"]:
711
- '''An object describing the project's placement specifications.'''
712
- return typing.cast(typing.Union[_IResolvable_da3f097b, "CfnProject.PlacementTemplateProperty"], jsii.get(self, "placementTemplate"))
713
-
714
- @placement_template.setter
715
- def placement_template(
716
- self,
717
- value: typing.Union[_IResolvable_da3f097b, "CfnProject.PlacementTemplateProperty"],
718
- ) -> None:
719
- if __debug__:
720
- type_hints = typing.get_type_hints(_typecheckingstub__10329a883f29ed9a6dd8489a9b81a75968998073c701add9d1761585b9e40cd7)
721
- check_type(argname="argument value", value=value, expected_type=type_hints["value"])
722
- jsii.set(self, "placementTemplate", value) # pyright: ignore[reportArgumentType]
723
-
724
- @builtins.property
725
- @jsii.member(jsii_name="description")
726
- def description(self) -> typing.Optional[builtins.str]:
727
- '''The description of the project.'''
728
- return typing.cast(typing.Optional[builtins.str], jsii.get(self, "description"))
729
-
730
- @description.setter
731
- def description(self, value: typing.Optional[builtins.str]) -> None:
732
- if __debug__:
733
- type_hints = typing.get_type_hints(_typecheckingstub__9afaa0e2c9e7b64d739597df0dff663b59f88cd587e919e616f1d8e09db62698)
734
- check_type(argname="argument value", value=value, expected_type=type_hints["value"])
735
- jsii.set(self, "description", value) # pyright: ignore[reportArgumentType]
736
-
737
- @builtins.property
738
- @jsii.member(jsii_name="projectName")
739
- def project_name(self) -> typing.Optional[builtins.str]:
740
- '''The name of the project from which to obtain information.'''
741
- return typing.cast(typing.Optional[builtins.str], jsii.get(self, "projectName"))
742
-
743
- @project_name.setter
744
- def project_name(self, value: typing.Optional[builtins.str]) -> None:
745
- if __debug__:
746
- type_hints = typing.get_type_hints(_typecheckingstub__3cc0f114afe3a05f16542f8d1804e57b5ea886248e56cef59f9de5e8cf1bbca6)
747
- check_type(argname="argument value", value=value, expected_type=type_hints["value"])
748
- jsii.set(self, "projectName", value) # pyright: ignore[reportArgumentType]
749
-
750
- @jsii.data_type(
751
- jsii_type="aws-cdk-lib.aws_iot1click.CfnProject.DeviceTemplateProperty",
752
- jsii_struct_bases=[],
753
- name_mapping={
754
- "callback_overrides": "callbackOverrides",
755
- "device_type": "deviceType",
756
- },
757
- )
758
- class DeviceTemplateProperty:
759
- def __init__(
760
- self,
761
- *,
762
- callback_overrides: typing.Any = None,
763
- device_type: typing.Optional[builtins.str] = None,
764
- ) -> None:
765
- '''
766
- :param callback_overrides:
767
- :param device_type:
768
-
769
- :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot1click-project-devicetemplate.html
770
- :exampleMetadata: fixture=_generated
771
-
772
- Example::
773
-
774
- # The code below shows an example of how to instantiate this type.
775
- # The values are placeholders you should change.
776
- from aws_cdk import aws_iot1click as iot1click
777
-
778
- # callback_overrides: Any
779
-
780
- device_template_property = iot1click.CfnProject.DeviceTemplateProperty(
781
- callback_overrides=callback_overrides,
782
- device_type="deviceType"
783
- )
784
- '''
785
- if __debug__:
786
- type_hints = typing.get_type_hints(_typecheckingstub__a364cc50019121c27a835abe7b914c8315b0e2c88002dcbc6901ada8ae32bb6b)
787
- check_type(argname="argument callback_overrides", value=callback_overrides, expected_type=type_hints["callback_overrides"])
788
- check_type(argname="argument device_type", value=device_type, expected_type=type_hints["device_type"])
789
- self._values: typing.Dict[builtins.str, typing.Any] = {}
790
- if callback_overrides is not None:
791
- self._values["callback_overrides"] = callback_overrides
792
- if device_type is not None:
793
- self._values["device_type"] = device_type
794
-
795
- @builtins.property
796
- def callback_overrides(self) -> typing.Any:
797
- '''
798
- :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot1click-project-devicetemplate.html#cfn-iot1click-project-devicetemplate-callbackoverrides
799
- '''
800
- result = self._values.get("callback_overrides")
801
- return typing.cast(typing.Any, result)
802
-
803
- @builtins.property
804
- def device_type(self) -> typing.Optional[builtins.str]:
805
- '''
806
- :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot1click-project-devicetemplate.html#cfn-iot1click-project-devicetemplate-devicetype
807
- '''
808
- result = self._values.get("device_type")
809
- return typing.cast(typing.Optional[builtins.str], result)
810
-
811
- def __eq__(self, rhs: typing.Any) -> builtins.bool:
812
- return isinstance(rhs, self.__class__) and rhs._values == self._values
813
-
814
- def __ne__(self, rhs: typing.Any) -> builtins.bool:
815
- return not (rhs == self)
816
-
817
- def __repr__(self) -> str:
818
- return "DeviceTemplateProperty(%s)" % ", ".join(
819
- k + "=" + repr(v) for k, v in self._values.items()
820
- )
821
-
822
- @jsii.data_type(
823
- jsii_type="aws-cdk-lib.aws_iot1click.CfnProject.PlacementTemplateProperty",
824
- jsii_struct_bases=[],
825
- name_mapping={
826
- "default_attributes": "defaultAttributes",
827
- "device_templates": "deviceTemplates",
828
- },
829
- )
830
- class PlacementTemplateProperty:
831
- def __init__(
832
- self,
833
- *,
834
- default_attributes: typing.Any = None,
835
- device_templates: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Mapping[builtins.str, typing.Union[_IResolvable_da3f097b, typing.Union["CfnProject.DeviceTemplateProperty", typing.Dict[builtins.str, typing.Any]]]]]] = None,
836
- ) -> None:
837
- '''.. epigraph::
838
-
839
- AWS IoT 1-Click was discontinued on Dec 16, 2024. For more information, see `AWS IoT 1-Click <https://docs.aws.amazon.com//iot/latest/developerguide/iot-legacy-services.html>`_ .
840
-
841
- In AWS CloudFormation , use the ``PlacementTemplate`` property type to define the template for an AWS IoT 1-Click project.
842
-
843
- ``PlacementTemplate`` is a property of the ``AWS::IoT1Click::Project`` resource.
844
-
845
- :param default_attributes: The default attributes (key-value pairs) to be applied to all placements using this template.
846
- :param device_templates: An object specifying the `DeviceTemplate <https://docs.aws.amazon.com/iot-1-click/latest/projects-apireference/API_DeviceTemplate.html>`_ for all placements using this ( `PlacementTemplate <https://docs.aws.amazon.com/iot-1-click/latest/projects-apireference/API_PlacementTemplate.html>`_ ) template.
847
-
848
- :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot1click-project-placementtemplate.html
849
- :exampleMetadata: fixture=_generated
850
-
851
- Example::
852
-
853
- # The code below shows an example of how to instantiate this type.
854
- # The values are placeholders you should change.
855
- from aws_cdk import aws_iot1click as iot1click
856
-
857
- # callback_overrides: Any
858
- # default_attributes: Any
859
-
860
- placement_template_property = iot1click.CfnProject.PlacementTemplateProperty(
861
- default_attributes=default_attributes,
862
- device_templates={
863
- "device_templates_key": iot1click.CfnProject.DeviceTemplateProperty(
864
- callback_overrides=callback_overrides,
865
- device_type="deviceType"
866
- )
867
- }
868
- )
869
- '''
870
- if __debug__:
871
- type_hints = typing.get_type_hints(_typecheckingstub__dc41c90630ddc14dd8b14abf74ffbb2fc8fa550552a4b6a37ee7b0c3f65c25ba)
872
- check_type(argname="argument default_attributes", value=default_attributes, expected_type=type_hints["default_attributes"])
873
- check_type(argname="argument device_templates", value=device_templates, expected_type=type_hints["device_templates"])
874
- self._values: typing.Dict[builtins.str, typing.Any] = {}
875
- if default_attributes is not None:
876
- self._values["default_attributes"] = default_attributes
877
- if device_templates is not None:
878
- self._values["device_templates"] = device_templates
879
-
880
- @builtins.property
881
- def default_attributes(self) -> typing.Any:
882
- '''The default attributes (key-value pairs) to be applied to all placements using this template.
883
-
884
- :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot1click-project-placementtemplate.html#cfn-iot1click-project-placementtemplate-defaultattributes
885
- '''
886
- result = self._values.get("default_attributes")
887
- return typing.cast(typing.Any, result)
888
-
889
- @builtins.property
890
- def device_templates(
891
- self,
892
- ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Mapping[builtins.str, typing.Union[_IResolvable_da3f097b, "CfnProject.DeviceTemplateProperty"]]]]:
893
- '''An object specifying the `DeviceTemplate <https://docs.aws.amazon.com/iot-1-click/latest/projects-apireference/API_DeviceTemplate.html>`_ for all placements using this ( `PlacementTemplate <https://docs.aws.amazon.com/iot-1-click/latest/projects-apireference/API_PlacementTemplate.html>`_ ) template.
894
-
895
- :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot1click-project-placementtemplate.html#cfn-iot1click-project-placementtemplate-devicetemplates
896
- '''
897
- result = self._values.get("device_templates")
898
- return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Mapping[builtins.str, typing.Union[_IResolvable_da3f097b, "CfnProject.DeviceTemplateProperty"]]]], result)
899
-
900
- def __eq__(self, rhs: typing.Any) -> builtins.bool:
901
- return isinstance(rhs, self.__class__) and rhs._values == self._values
902
-
903
- def __ne__(self, rhs: typing.Any) -> builtins.bool:
904
- return not (rhs == self)
905
-
906
- def __repr__(self) -> str:
907
- return "PlacementTemplateProperty(%s)" % ", ".join(
908
- k + "=" + repr(v) for k, v in self._values.items()
909
- )
910
-
911
-
912
- @jsii.data_type(
913
- jsii_type="aws-cdk-lib.aws_iot1click.CfnProjectProps",
914
- jsii_struct_bases=[],
915
- name_mapping={
916
- "placement_template": "placementTemplate",
917
- "description": "description",
918
- "project_name": "projectName",
919
- },
920
- )
921
- class CfnProjectProps:
922
- def __init__(
923
- self,
924
- *,
925
- placement_template: typing.Union[_IResolvable_da3f097b, typing.Union[CfnProject.PlacementTemplateProperty, typing.Dict[builtins.str, typing.Any]]],
926
- description: typing.Optional[builtins.str] = None,
927
- project_name: typing.Optional[builtins.str] = None,
928
- ) -> None:
929
- '''Properties for defining a ``CfnProject``.
930
-
931
- :param placement_template: An object describing the project's placement specifications.
932
- :param description: The description of the project.
933
- :param project_name: The name of the project from which to obtain information.
934
-
935
- :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot1click-project.html
936
- :exampleMetadata: fixture=_generated
937
-
938
- Example::
939
-
940
- # The code below shows an example of how to instantiate this type.
941
- # The values are placeholders you should change.
942
- from aws_cdk import aws_iot1click as iot1click
943
-
944
- # callback_overrides: Any
945
- # default_attributes: Any
946
-
947
- cfn_project_props = iot1click.CfnProjectProps(
948
- placement_template=iot1click.CfnProject.PlacementTemplateProperty(
949
- default_attributes=default_attributes,
950
- device_templates={
951
- "device_templates_key": iot1click.CfnProject.DeviceTemplateProperty(
952
- callback_overrides=callback_overrides,
953
- device_type="deviceType"
954
- )
955
- }
956
- ),
957
-
958
- # the properties below are optional
959
- description="description",
960
- project_name="projectName"
961
- )
962
- '''
963
- if __debug__:
964
- type_hints = typing.get_type_hints(_typecheckingstub__1077ac21e114e5467c3dc453c6e32e23dfee1deab570e2fce54ad955b96fb2d0)
965
- check_type(argname="argument placement_template", value=placement_template, expected_type=type_hints["placement_template"])
966
- check_type(argname="argument description", value=description, expected_type=type_hints["description"])
967
- check_type(argname="argument project_name", value=project_name, expected_type=type_hints["project_name"])
968
- self._values: typing.Dict[builtins.str, typing.Any] = {
969
- "placement_template": placement_template,
970
- }
971
- if description is not None:
972
- self._values["description"] = description
973
- if project_name is not None:
974
- self._values["project_name"] = project_name
975
-
976
- @builtins.property
977
- def placement_template(
978
- self,
979
- ) -> typing.Union[_IResolvable_da3f097b, CfnProject.PlacementTemplateProperty]:
980
- '''An object describing the project's placement specifications.
981
-
982
- :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot1click-project.html#cfn-iot1click-project-placementtemplate
983
- '''
984
- result = self._values.get("placement_template")
985
- assert result is not None, "Required property 'placement_template' is missing"
986
- return typing.cast(typing.Union[_IResolvable_da3f097b, CfnProject.PlacementTemplateProperty], result)
987
-
988
- @builtins.property
989
- def description(self) -> typing.Optional[builtins.str]:
990
- '''The description of the project.
991
-
992
- :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot1click-project.html#cfn-iot1click-project-description
993
- '''
994
- result = self._values.get("description")
995
- return typing.cast(typing.Optional[builtins.str], result)
996
-
997
- @builtins.property
998
- def project_name(self) -> typing.Optional[builtins.str]:
999
- '''The name of the project from which to obtain information.
1000
-
1001
- :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot1click-project.html#cfn-iot1click-project-projectname
1002
- '''
1003
- result = self._values.get("project_name")
1004
- return typing.cast(typing.Optional[builtins.str], result)
1005
-
1006
- def __eq__(self, rhs: typing.Any) -> builtins.bool:
1007
- return isinstance(rhs, self.__class__) and rhs._values == self._values
1008
-
1009
- def __ne__(self, rhs: typing.Any) -> builtins.bool:
1010
- return not (rhs == self)
1011
-
1012
- def __repr__(self) -> str:
1013
- return "CfnProjectProps(%s)" % ", ".join(
1014
- k + "=" + repr(v) for k, v in self._values.items()
1015
- )
1016
-
1017
-
1018
- __all__ = [
1019
- "CfnDevice",
1020
- "CfnDeviceProps",
1021
- "CfnPlacement",
1022
- "CfnPlacementProps",
1023
- "CfnProject",
1024
- "CfnProjectProps",
1025
- ]
1026
-
1027
- publication.publish()
1028
-
1029
- def _typecheckingstub__4a339667885af529b8cd8c8d1e0a01ab39b4df8c37caaa4e780eaac7c2f9666f(
1030
- scope: _constructs_77d1e7e8.Construct,
1031
- id: builtins.str,
1032
- *,
1033
- device_id: builtins.str,
1034
- enabled: typing.Union[builtins.bool, _IResolvable_da3f097b],
1035
- ) -> None:
1036
- """Type checking stubs"""
1037
- pass
1038
-
1039
- def _typecheckingstub__2c208db47e9fcc79bcc2e61f32b9c12a92a8fd2fbe37297fb8a7f35416fff32e(
1040
- inspector: _TreeInspector_488e0dd5,
1041
- ) -> None:
1042
- """Type checking stubs"""
1043
- pass
1044
-
1045
- def _typecheckingstub__0937e66cec46366bbf925d7a3705e020a00ac7868787dc36d1cfa4978d429e56(
1046
- props: typing.Mapping[builtins.str, typing.Any],
1047
- ) -> None:
1048
- """Type checking stubs"""
1049
- pass
1050
-
1051
- def _typecheckingstub__1af5e1ede2c9cfe87913d3b2fe43a47c008e26ef1d491043fc5231d4a6fc4c0e(
1052
- value: builtins.str,
1053
- ) -> None:
1054
- """Type checking stubs"""
1055
- pass
1056
-
1057
- def _typecheckingstub__7b986cfe7b04041b5edc4a04f13db84e74e99be88c5d7752df22893d05d9f79f(
1058
- value: typing.Union[builtins.bool, _IResolvable_da3f097b],
1059
- ) -> None:
1060
- """Type checking stubs"""
1061
- pass
1062
-
1063
- def _typecheckingstub__ed52f8e78c1c813a8f26b92a1f5cb2a3266d3b98a462677f54a8e4c568b1c7b9(
1064
- *,
1065
- device_id: builtins.str,
1066
- enabled: typing.Union[builtins.bool, _IResolvable_da3f097b],
1067
- ) -> None:
1068
- """Type checking stubs"""
1069
- pass
1070
-
1071
- def _typecheckingstub__1832ff90d2995fc576cdd9b6a1b5fa00191a74d323a5bc23e80b816f8ac9854d(
1072
- scope: _constructs_77d1e7e8.Construct,
1073
- id: builtins.str,
1074
- *,
1075
- project_name: builtins.str,
1076
- associated_devices: typing.Any = None,
1077
- attributes: typing.Any = None,
1078
- placement_name: typing.Optional[builtins.str] = None,
1079
- ) -> None:
1080
- """Type checking stubs"""
1081
- pass
1082
-
1083
- def _typecheckingstub__ed4609cb5007624d058eaa3272257198873e4f46babc9f039aca356a1b992955(
1084
- inspector: _TreeInspector_488e0dd5,
1085
- ) -> None:
1086
- """Type checking stubs"""
1087
- pass
1088
-
1089
- def _typecheckingstub__af49c721837c421886783abf1ffc1647011473f5b646bd22401113aaae686e8e(
1090
- props: typing.Mapping[builtins.str, typing.Any],
1091
- ) -> None:
1092
- """Type checking stubs"""
1093
- pass
1094
-
1095
- def _typecheckingstub__f68bef049df594e77c7012b197213cb53a06ead39f89cf4e53e662971c19c947(
1096
- value: builtins.str,
1097
- ) -> None:
1098
- """Type checking stubs"""
1099
- pass
1100
-
1101
- def _typecheckingstub__41ed621a48ebcff7516df830ca4354bd481f7fe3c2a7b02f987d9817f06437aa(
1102
- value: typing.Any,
1103
- ) -> None:
1104
- """Type checking stubs"""
1105
- pass
1106
-
1107
- def _typecheckingstub__279a36e68d02da72c788a0ae0680ed6215b286e6067d4217301b95e1759e8945(
1108
- value: typing.Any,
1109
- ) -> None:
1110
- """Type checking stubs"""
1111
- pass
1112
-
1113
- def _typecheckingstub__9997ef913ccc729d6160ae2ad2530921224a6b3d37a9783881301d6e83aa1a7d(
1114
- value: typing.Optional[builtins.str],
1115
- ) -> None:
1116
- """Type checking stubs"""
1117
- pass
1118
-
1119
- def _typecheckingstub__5b1bbe2d11ebbdd26b5e90bd4b93cff97bf9de6a4af0c3d4f57d17ce47727447(
1120
- *,
1121
- project_name: builtins.str,
1122
- associated_devices: typing.Any = None,
1123
- attributes: typing.Any = None,
1124
- placement_name: typing.Optional[builtins.str] = None,
1125
- ) -> None:
1126
- """Type checking stubs"""
1127
- pass
1128
-
1129
- def _typecheckingstub__d2c29252c15ba10b77b5985156042673510f8f87b02c8fa43d385a6ff3839856(
1130
- scope: _constructs_77d1e7e8.Construct,
1131
- id: builtins.str,
1132
- *,
1133
- placement_template: typing.Union[_IResolvable_da3f097b, typing.Union[CfnProject.PlacementTemplateProperty, typing.Dict[builtins.str, typing.Any]]],
1134
- description: typing.Optional[builtins.str] = None,
1135
- project_name: typing.Optional[builtins.str] = None,
1136
- ) -> None:
1137
- """Type checking stubs"""
1138
- pass
1139
-
1140
- def _typecheckingstub__70aee69d79cd59a1403adc51005f6f5e7f053b1b1860ee137f3ed174df3ed786(
1141
- inspector: _TreeInspector_488e0dd5,
1142
- ) -> None:
1143
- """Type checking stubs"""
1144
- pass
1145
-
1146
- def _typecheckingstub__867b815a22af6da5102aa2a4ee22b7bd47dd9e8a4df8627649ebf70096b28fc9(
1147
- props: typing.Mapping[builtins.str, typing.Any],
1148
- ) -> None:
1149
- """Type checking stubs"""
1150
- pass
1151
-
1152
- def _typecheckingstub__10329a883f29ed9a6dd8489a9b81a75968998073c701add9d1761585b9e40cd7(
1153
- value: typing.Union[_IResolvable_da3f097b, CfnProject.PlacementTemplateProperty],
1154
- ) -> None:
1155
- """Type checking stubs"""
1156
- pass
1157
-
1158
- def _typecheckingstub__9afaa0e2c9e7b64d739597df0dff663b59f88cd587e919e616f1d8e09db62698(
1159
- value: typing.Optional[builtins.str],
1160
- ) -> None:
1161
- """Type checking stubs"""
1162
- pass
1163
-
1164
- def _typecheckingstub__3cc0f114afe3a05f16542f8d1804e57b5ea886248e56cef59f9de5e8cf1bbca6(
1165
- value: typing.Optional[builtins.str],
1166
- ) -> None:
1167
- """Type checking stubs"""
1168
- pass
1169
-
1170
- def _typecheckingstub__a364cc50019121c27a835abe7b914c8315b0e2c88002dcbc6901ada8ae32bb6b(
1171
- *,
1172
- callback_overrides: typing.Any = None,
1173
- device_type: typing.Optional[builtins.str] = None,
1174
- ) -> None:
1175
- """Type checking stubs"""
1176
- pass
1177
-
1178
- def _typecheckingstub__dc41c90630ddc14dd8b14abf74ffbb2fc8fa550552a4b6a37ee7b0c3f65c25ba(
1179
- *,
1180
- default_attributes: typing.Any = None,
1181
- device_templates: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Mapping[builtins.str, typing.Union[_IResolvable_da3f097b, typing.Union[CfnProject.DeviceTemplateProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
1182
- ) -> None:
1183
- """Type checking stubs"""
1184
- pass
1185
-
1186
- def _typecheckingstub__1077ac21e114e5467c3dc453c6e32e23dfee1deab570e2fce54ad955b96fb2d0(
1187
- *,
1188
- placement_template: typing.Union[_IResolvable_da3f097b, typing.Union[CfnProject.PlacementTemplateProperty, typing.Dict[builtins.str, typing.Any]]],
1189
- description: typing.Optional[builtins.str] = None,
1190
- project_name: typing.Optional[builtins.str] = None,
1191
- ) -> None:
1192
- """Type checking stubs"""
1193
- pass