aws-cdk-lib 2.181.1__py3-none-any.whl → 2.183.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 (69) hide show
  1. aws_cdk/__init__.py +751 -41
  2. aws_cdk/_jsii/__init__.py +1 -1
  3. aws_cdk/_jsii/{aws-cdk-lib@2.181.1.jsii.tgz → aws-cdk-lib@2.183.0.jsii.tgz} +0 -0
  4. aws_cdk/assertions/__init__.py +59 -0
  5. aws_cdk/aws_apigateway/__init__.py +122 -66
  6. aws_cdk/aws_applicationautoscaling/__init__.py +4 -0
  7. aws_cdk/aws_appsync/__init__.py +30 -4
  8. aws_cdk/aws_autoscaling/__init__.py +409 -36
  9. aws_cdk/aws_batch/__init__.py +638 -14
  10. aws_cdk/aws_bedrock/__init__.py +6009 -2326
  11. aws_cdk/aws_ce/__init__.py +141 -3
  12. aws_cdk/aws_certificatemanager/__init__.py +24 -0
  13. aws_cdk/aws_cloudformation/__init__.py +310 -35
  14. aws_cdk/aws_cloudfront/__init__.py +1 -0
  15. aws_cdk/aws_cloudtrail/__init__.py +8 -8
  16. aws_cdk/aws_codebuild/__init__.py +4 -10
  17. aws_cdk/aws_cognito/__init__.py +3 -3
  18. aws_cdk/aws_datazone/__init__.py +82 -0
  19. aws_cdk/aws_dms/__init__.py +350 -0
  20. aws_cdk/aws_ec2/__init__.py +95 -17
  21. aws_cdk/aws_ecr/__init__.py +10 -4
  22. aws_cdk/aws_ecs/__init__.py +58 -9
  23. aws_cdk/aws_eks/__init__.py +32 -3
  24. aws_cdk/aws_elasticache/__init__.py +3 -3
  25. aws_cdk/aws_emr/__init__.py +9 -3
  26. aws_cdk/aws_fsx/__init__.py +2 -0
  27. aws_cdk/aws_gameliftstreams/__init__.py +1205 -0
  28. aws_cdk/aws_guardduty/__init__.py +38 -26
  29. aws_cdk/aws_iam/__init__.py +295 -37
  30. aws_cdk/aws_inspector/__init__.py +180 -1
  31. aws_cdk/aws_iot/__init__.py +616 -22
  32. aws_cdk/aws_iotfleetwise/__init__.py +72 -10
  33. aws_cdk/aws_iotsitewise/__init__.py +14 -11
  34. aws_cdk/aws_kafkaconnect/__init__.py +4 -2
  35. aws_cdk/aws_kinesisfirehose/__init__.py +6 -0
  36. aws_cdk/aws_lambda/__init__.py +17 -0
  37. aws_cdk/aws_logs/__init__.py +135 -0
  38. aws_cdk/aws_medialive/__init__.py +86 -86
  39. aws_cdk/aws_mediapackagev2/__init__.py +22 -14
  40. aws_cdk/aws_msk/__init__.py +236 -128
  41. aws_cdk/aws_neptunegraph/__init__.py +3 -3
  42. aws_cdk/aws_opensearchserverless/__init__.py +1031 -0
  43. aws_cdk/aws_opensearchservice/__init__.py +261 -1
  44. aws_cdk/aws_pcaconnectorad/__init__.py +30 -4
  45. aws_cdk/aws_pipes/__init__.py +6 -2
  46. aws_cdk/aws_quicksight/__init__.py +6712 -20758
  47. aws_cdk/aws_rds/__init__.py +174 -30
  48. aws_cdk/aws_redshift/__init__.py +8 -8
  49. aws_cdk/aws_s3/__init__.py +8 -0
  50. aws_cdk/aws_sagemaker/__init__.py +80 -18
  51. aws_cdk/aws_securitylake/__init__.py +3 -0
  52. aws_cdk/aws_sns/__init__.py +76 -1
  53. aws_cdk/aws_synthetics/__init__.py +2 -0
  54. aws_cdk/aws_transfer/__init__.py +241 -40
  55. aws_cdk/aws_vpclattice/__init__.py +144 -9
  56. aws_cdk/aws_wafv2/__init__.py +790 -0
  57. aws_cdk/aws_wisdom/__init__.py +3 -110
  58. aws_cdk/aws_workspacesthinclient/__init__.py +4 -4
  59. aws_cdk/aws_workspacesweb/__init__.py +179 -2
  60. aws_cdk/aws_xray/__init__.py +195 -0
  61. aws_cdk/cloud_assembly_schema/__init__.py +224 -4
  62. aws_cdk/custom_resources/__init__.py +65 -8
  63. aws_cdk/cx_api/__init__.py +2 -1
  64. {aws_cdk_lib-2.181.1.dist-info → aws_cdk_lib-2.183.0.dist-info}/METADATA +2 -2
  65. {aws_cdk_lib-2.181.1.dist-info → aws_cdk_lib-2.183.0.dist-info}/RECORD +69 -68
  66. {aws_cdk_lib-2.181.1.dist-info → aws_cdk_lib-2.183.0.dist-info}/LICENSE +0 -0
  67. {aws_cdk_lib-2.181.1.dist-info → aws_cdk_lib-2.183.0.dist-info}/NOTICE +0 -0
  68. {aws_cdk_lib-2.181.1.dist-info → aws_cdk_lib-2.183.0.dist-info}/WHEEL +0 -0
  69. {aws_cdk_lib-2.181.1.dist-info → aws_cdk_lib-2.183.0.dist-info}/top_level.txt +0 -0
@@ -62,6 +62,8 @@ from .. import (
62
62
  CfnResource as _CfnResource_9df397a6,
63
63
  IInspectable as _IInspectable_c2943556,
64
64
  IResolvable as _IResolvable_da3f097b,
65
+ ITaggableV2 as _ITaggableV2_4e6798f8,
66
+ TagManager as _TagManager_0a598cb3,
65
67
  TreeInspector as _TreeInspector_488e0dd5,
66
68
  )
67
69
 
@@ -1068,7 +1070,7 @@ class CfnAnomalySubscriptionProps:
1068
1070
  )
1069
1071
 
1070
1072
 
1071
- @jsii.implements(_IInspectable_c2943556)
1073
+ @jsii.implements(_IInspectable_c2943556, _ITaggableV2_4e6798f8)
1072
1074
  class CfnCostCategory(
1073
1075
  _CfnResource_9df397a6,
1074
1076
  metaclass=jsii.JSIIMeta,
@@ -1095,7 +1097,11 @@ class CfnCostCategory(
1095
1097
 
1096
1098
  # the properties below are optional
1097
1099
  default_value="defaultValue",
1098
- split_charge_rules="splitChargeRules"
1100
+ split_charge_rules="splitChargeRules",
1101
+ tags=[ce.CfnCostCategory.ResourceTagProperty(
1102
+ key="key",
1103
+ value="value"
1104
+ )]
1099
1105
  )
1100
1106
  '''
1101
1107
 
@@ -1109,6 +1115,7 @@ class CfnCostCategory(
1109
1115
  rule_version: builtins.str,
1110
1116
  default_value: typing.Optional[builtins.str] = None,
1111
1117
  split_charge_rules: typing.Optional[builtins.str] = None,
1118
+ tags: typing.Optional[typing.Sequence[typing.Union["CfnCostCategory.ResourceTagProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
1112
1119
  ) -> None:
1113
1120
  '''
1114
1121
  :param scope: Scope in which this resource is defined.
@@ -1118,6 +1125,7 @@ class CfnCostCategory(
1118
1125
  :param rule_version: The rule schema version in this particular Cost Category.
1119
1126
  :param default_value: The default value for the cost category.
1120
1127
  :param split_charge_rules: The split charge rules that are used to allocate your charges between your Cost Category values.
1128
+ :param tags: Tags to assign to the cost category.
1121
1129
  '''
1122
1130
  if __debug__:
1123
1131
  type_hints = typing.get_type_hints(_typecheckingstub__0d86a2b59e53c629c2de8bd291387500a9799712ca28f9459ef98f5dd619ad1a)
@@ -1129,6 +1137,7 @@ class CfnCostCategory(
1129
1137
  rule_version=rule_version,
1130
1138
  default_value=default_value,
1131
1139
  split_charge_rules=split_charge_rules,
1140
+ tags=tags,
1132
1141
  )
1133
1142
 
1134
1143
  jsii.create(self.__class__, self, [scope, id, props])
@@ -1181,6 +1190,12 @@ class CfnCostCategory(
1181
1190
  '''
1182
1191
  return typing.cast(builtins.str, jsii.get(self, "attrEffectiveStart"))
1183
1192
 
1193
+ @builtins.property
1194
+ @jsii.member(jsii_name="cdkTagManager")
1195
+ def cdk_tag_manager(self) -> _TagManager_0a598cb3:
1196
+ '''Tag Manager which manages the tags for this resource.'''
1197
+ return typing.cast(_TagManager_0a598cb3, jsii.get(self, "cdkTagManager"))
1198
+
1184
1199
  @builtins.property
1185
1200
  @jsii.member(jsii_name="cfnProperties")
1186
1201
  def _cfn_properties(self) -> typing.Mapping[builtins.str, typing.Any]:
@@ -1251,6 +1266,94 @@ class CfnCostCategory(
1251
1266
  check_type(argname="argument value", value=value, expected_type=type_hints["value"])
1252
1267
  jsii.set(self, "splitChargeRules", value) # pyright: ignore[reportArgumentType]
1253
1268
 
1269
+ @builtins.property
1270
+ @jsii.member(jsii_name="tags")
1271
+ def tags(
1272
+ self,
1273
+ ) -> typing.Optional[typing.List["CfnCostCategory.ResourceTagProperty"]]:
1274
+ '''Tags to assign to the cost category.'''
1275
+ return typing.cast(typing.Optional[typing.List["CfnCostCategory.ResourceTagProperty"]], jsii.get(self, "tags"))
1276
+
1277
+ @tags.setter
1278
+ def tags(
1279
+ self,
1280
+ value: typing.Optional[typing.List["CfnCostCategory.ResourceTagProperty"]],
1281
+ ) -> None:
1282
+ if __debug__:
1283
+ type_hints = typing.get_type_hints(_typecheckingstub__382ee3f151d322b779bace915dc422d549fbc43498f542c3117781ec44cbb469)
1284
+ check_type(argname="argument value", value=value, expected_type=type_hints["value"])
1285
+ jsii.set(self, "tags", value) # pyright: ignore[reportArgumentType]
1286
+
1287
+ @jsii.data_type(
1288
+ jsii_type="aws-cdk-lib.aws_ce.CfnCostCategory.ResourceTagProperty",
1289
+ jsii_struct_bases=[],
1290
+ name_mapping={"key": "key", "value": "value"},
1291
+ )
1292
+ class ResourceTagProperty:
1293
+ def __init__(self, *, key: builtins.str, value: builtins.str) -> None:
1294
+ '''The tag structure that contains a tag key and value.
1295
+
1296
+ .. epigraph::
1297
+
1298
+ Tagging is supported only for the following Cost Explorer resource types: ```AnomalyMonitor`` <https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_AnomalyMonitor.html>`_ , ```AnomalySubscription`` <https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_AnomalySubscription.html>`_ , ```CostCategory`` <https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_CostCategory.html>`_ .
1299
+
1300
+ :param key: The key that's associated with the tag.
1301
+ :param value: The value that's associated with the tag.
1302
+
1303
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ce-costcategory-resourcetag.html
1304
+ :exampleMetadata: fixture=_generated
1305
+
1306
+ Example::
1307
+
1308
+ # The code below shows an example of how to instantiate this type.
1309
+ # The values are placeholders you should change.
1310
+ from aws_cdk import aws_ce as ce
1311
+
1312
+ resource_tag_property = ce.CfnCostCategory.ResourceTagProperty(
1313
+ key="key",
1314
+ value="value"
1315
+ )
1316
+ '''
1317
+ if __debug__:
1318
+ type_hints = typing.get_type_hints(_typecheckingstub__8ebb0ce3955d4416c7a704b1a825b845e02eef926e8c0da3592ea7ccecb229d5)
1319
+ check_type(argname="argument key", value=key, expected_type=type_hints["key"])
1320
+ check_type(argname="argument value", value=value, expected_type=type_hints["value"])
1321
+ self._values: typing.Dict[builtins.str, typing.Any] = {
1322
+ "key": key,
1323
+ "value": value,
1324
+ }
1325
+
1326
+ @builtins.property
1327
+ def key(self) -> builtins.str:
1328
+ '''The key that's associated with the tag.
1329
+
1330
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ce-costcategory-resourcetag.html#cfn-ce-costcategory-resourcetag-key
1331
+ '''
1332
+ result = self._values.get("key")
1333
+ assert result is not None, "Required property 'key' is missing"
1334
+ return typing.cast(builtins.str, result)
1335
+
1336
+ @builtins.property
1337
+ def value(self) -> builtins.str:
1338
+ '''The value that's associated with the tag.
1339
+
1340
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ce-costcategory-resourcetag.html#cfn-ce-costcategory-resourcetag-value
1341
+ '''
1342
+ result = self._values.get("value")
1343
+ assert result is not None, "Required property 'value' is missing"
1344
+ return typing.cast(builtins.str, result)
1345
+
1346
+ def __eq__(self, rhs: typing.Any) -> builtins.bool:
1347
+ return isinstance(rhs, self.__class__) and rhs._values == self._values
1348
+
1349
+ def __ne__(self, rhs: typing.Any) -> builtins.bool:
1350
+ return not (rhs == self)
1351
+
1352
+ def __repr__(self) -> str:
1353
+ return "ResourceTagProperty(%s)" % ", ".join(
1354
+ k + "=" + repr(v) for k, v in self._values.items()
1355
+ )
1356
+
1254
1357
 
1255
1358
  @jsii.data_type(
1256
1359
  jsii_type="aws-cdk-lib.aws_ce.CfnCostCategoryProps",
@@ -1261,6 +1364,7 @@ class CfnCostCategory(
1261
1364
  "rule_version": "ruleVersion",
1262
1365
  "default_value": "defaultValue",
1263
1366
  "split_charge_rules": "splitChargeRules",
1367
+ "tags": "tags",
1264
1368
  },
1265
1369
  )
1266
1370
  class CfnCostCategoryProps:
@@ -1272,6 +1376,7 @@ class CfnCostCategoryProps:
1272
1376
  rule_version: builtins.str,
1273
1377
  default_value: typing.Optional[builtins.str] = None,
1274
1378
  split_charge_rules: typing.Optional[builtins.str] = None,
1379
+ tags: typing.Optional[typing.Sequence[typing.Union[CfnCostCategory.ResourceTagProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
1275
1380
  ) -> None:
1276
1381
  '''Properties for defining a ``CfnCostCategory``.
1277
1382
 
@@ -1280,6 +1385,7 @@ class CfnCostCategoryProps:
1280
1385
  :param rule_version: The rule schema version in this particular Cost Category.
1281
1386
  :param default_value: The default value for the cost category.
1282
1387
  :param split_charge_rules: The split charge rules that are used to allocate your charges between your Cost Category values.
1388
+ :param tags: Tags to assign to the cost category.
1283
1389
 
1284
1390
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ce-costcategory.html
1285
1391
  :exampleMetadata: fixture=_generated
@@ -1297,7 +1403,11 @@ class CfnCostCategoryProps:
1297
1403
 
1298
1404
  # the properties below are optional
1299
1405
  default_value="defaultValue",
1300
- split_charge_rules="splitChargeRules"
1406
+ split_charge_rules="splitChargeRules",
1407
+ tags=[ce.CfnCostCategory.ResourceTagProperty(
1408
+ key="key",
1409
+ value="value"
1410
+ )]
1301
1411
  )
1302
1412
  '''
1303
1413
  if __debug__:
@@ -1307,6 +1417,7 @@ class CfnCostCategoryProps:
1307
1417
  check_type(argname="argument rule_version", value=rule_version, expected_type=type_hints["rule_version"])
1308
1418
  check_type(argname="argument default_value", value=default_value, expected_type=type_hints["default_value"])
1309
1419
  check_type(argname="argument split_charge_rules", value=split_charge_rules, expected_type=type_hints["split_charge_rules"])
1420
+ check_type(argname="argument tags", value=tags, expected_type=type_hints["tags"])
1310
1421
  self._values: typing.Dict[builtins.str, typing.Any] = {
1311
1422
  "name": name,
1312
1423
  "rules": rules,
@@ -1316,6 +1427,8 @@ class CfnCostCategoryProps:
1316
1427
  self._values["default_value"] = default_value
1317
1428
  if split_charge_rules is not None:
1318
1429
  self._values["split_charge_rules"] = split_charge_rules
1430
+ if tags is not None:
1431
+ self._values["tags"] = tags
1319
1432
 
1320
1433
  @builtins.property
1321
1434
  def name(self) -> builtins.str:
@@ -1369,6 +1482,15 @@ class CfnCostCategoryProps:
1369
1482
  result = self._values.get("split_charge_rules")
1370
1483
  return typing.cast(typing.Optional[builtins.str], result)
1371
1484
 
1485
+ @builtins.property
1486
+ def tags(self) -> typing.Optional[typing.List[CfnCostCategory.ResourceTagProperty]]:
1487
+ '''Tags to assign to the cost category.
1488
+
1489
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ce-costcategory.html#cfn-ce-costcategory-tags
1490
+ '''
1491
+ result = self._values.get("tags")
1492
+ return typing.cast(typing.Optional[typing.List[CfnCostCategory.ResourceTagProperty]], result)
1493
+
1372
1494
  def __eq__(self, rhs: typing.Any) -> builtins.bool:
1373
1495
  return isinstance(rhs, self.__class__) and rhs._values == self._values
1374
1496
 
@@ -1574,6 +1696,7 @@ def _typecheckingstub__0d86a2b59e53c629c2de8bd291387500a9799712ca28f9459ef98f5dd
1574
1696
  rule_version: builtins.str,
1575
1697
  default_value: typing.Optional[builtins.str] = None,
1576
1698
  split_charge_rules: typing.Optional[builtins.str] = None,
1699
+ tags: typing.Optional[typing.Sequence[typing.Union[CfnCostCategory.ResourceTagProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
1577
1700
  ) -> None:
1578
1701
  """Type checking stubs"""
1579
1702
  pass
@@ -1620,6 +1743,20 @@ def _typecheckingstub__ae51b4a5cd7f6e8738ed01709064f1d42c9cdd90e02dfe56151acb934
1620
1743
  """Type checking stubs"""
1621
1744
  pass
1622
1745
 
1746
+ def _typecheckingstub__382ee3f151d322b779bace915dc422d549fbc43498f542c3117781ec44cbb469(
1747
+ value: typing.Optional[typing.List[CfnCostCategory.ResourceTagProperty]],
1748
+ ) -> None:
1749
+ """Type checking stubs"""
1750
+ pass
1751
+
1752
+ def _typecheckingstub__8ebb0ce3955d4416c7a704b1a825b845e02eef926e8c0da3592ea7ccecb229d5(
1753
+ *,
1754
+ key: builtins.str,
1755
+ value: builtins.str,
1756
+ ) -> None:
1757
+ """Type checking stubs"""
1758
+ pass
1759
+
1623
1760
  def _typecheckingstub__22fe6bbc471c7d1efb8863c64af07f8dbb0f94f407bc64ec8606d11422837dd3(
1624
1761
  *,
1625
1762
  name: builtins.str,
@@ -1627,6 +1764,7 @@ def _typecheckingstub__22fe6bbc471c7d1efb8863c64af07f8dbb0f94f407bc64ec8606d1142
1627
1764
  rule_version: builtins.str,
1628
1765
  default_value: typing.Optional[builtins.str] = None,
1629
1766
  split_charge_rules: typing.Optional[builtins.str] = None,
1767
+ tags: typing.Optional[typing.Sequence[typing.Union[CfnCostCategory.ResourceTagProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
1630
1768
  ) -> None:
1631
1769
  """Type checking stubs"""
1632
1770
  pass
@@ -1884,12 +1884,36 @@ class KeyAlgorithm(
1884
1884
  '''EC_secp384r1 algorithm.'''
1885
1885
  return typing.cast("KeyAlgorithm", jsii.sget(cls, "EC_SECP384R1"))
1886
1886
 
1887
+ @jsii.python.classproperty
1888
+ @jsii.member(jsii_name="EC_SECP521R1")
1889
+ def EC_SECP521_R1(cls) -> "KeyAlgorithm":
1890
+ '''EC_secp521r1 algorithm.'''
1891
+ return typing.cast("KeyAlgorithm", jsii.sget(cls, "EC_SECP521R1"))
1892
+
1893
+ @jsii.python.classproperty
1894
+ @jsii.member(jsii_name="RSA_1024")
1895
+ def RSA_1024(cls) -> "KeyAlgorithm":
1896
+ '''RSA_1024 algorithm.'''
1897
+ return typing.cast("KeyAlgorithm", jsii.sget(cls, "RSA_1024"))
1898
+
1887
1899
  @jsii.python.classproperty
1888
1900
  @jsii.member(jsii_name="RSA_2048")
1889
1901
  def RSA_2048(cls) -> "KeyAlgorithm":
1890
1902
  '''RSA_2048 algorithm.'''
1891
1903
  return typing.cast("KeyAlgorithm", jsii.sget(cls, "RSA_2048"))
1892
1904
 
1905
+ @jsii.python.classproperty
1906
+ @jsii.member(jsii_name="RSA_3072")
1907
+ def RSA_3072(cls) -> "KeyAlgorithm":
1908
+ '''RSA_3072 algorithm.'''
1909
+ return typing.cast("KeyAlgorithm", jsii.sget(cls, "RSA_3072"))
1910
+
1911
+ @jsii.python.classproperty
1912
+ @jsii.member(jsii_name="RSA_4096")
1913
+ def RSA_4096(cls) -> "KeyAlgorithm":
1914
+ '''RSA_4096 algorithm.'''
1915
+ return typing.cast("KeyAlgorithm", jsii.sget(cls, "RSA_4096"))
1916
+
1893
1917
  @builtins.property
1894
1918
  @jsii.member(jsii_name="name")
1895
1919
  def name(self) -> builtins.str: