aws-cdk-lib 2.96.2__py3-none-any.whl → 2.97.1__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 (53) hide show
  1. aws_cdk/__init__.py +246 -62
  2. aws_cdk/_jsii/__init__.py +1 -1
  3. aws_cdk/_jsii/{aws-cdk-lib@2.96.2.jsii.tgz → aws-cdk-lib@2.97.1.jsii.tgz} +0 -0
  4. aws_cdk/aws_apigatewayv2/__init__.py +1 -1
  5. aws_cdk/aws_appflow/__init__.py +205 -7
  6. aws_cdk/aws_appstream/__init__.py +33 -28
  7. aws_cdk/aws_appsync/__init__.py +555 -71
  8. aws_cdk/aws_autoscaling/__init__.py +5 -11
  9. aws_cdk/aws_billingconductor/__init__.py +145 -1
  10. aws_cdk/aws_cleanrooms/__init__.py +1198 -86
  11. aws_cdk/aws_cloudformation/__init__.py +221 -55
  12. aws_cdk/aws_cloudwatch/__init__.py +325 -2
  13. aws_cdk/aws_cognito/__init__.py +9 -13
  14. aws_cdk/aws_config/__init__.py +68 -73
  15. aws_cdk/aws_connect/__init__.py +909 -164
  16. aws_cdk/aws_customerprofiles/__init__.py +44 -0
  17. aws_cdk/aws_dms/__init__.py +198 -0
  18. aws_cdk/aws_ec2/__init__.py +593 -73
  19. aws_cdk/aws_ecr/__init__.py +7 -2
  20. aws_cdk/aws_ecs/__init__.py +2 -2
  21. aws_cdk/aws_efs/__init__.py +237 -0
  22. aws_cdk/aws_emr/__init__.py +232 -0
  23. aws_cdk/aws_entityresolution/__init__.py +1702 -0
  24. aws_cdk/aws_events/__init__.py +13 -18
  25. aws_cdk/aws_fms/__init__.py +3 -3
  26. aws_cdk/aws_gamelift/__init__.py +10 -15
  27. aws_cdk/aws_grafana/__init__.py +9 -5
  28. aws_cdk/aws_guardduty/__init__.py +272 -205
  29. aws_cdk/aws_iam/__init__.py +20 -18
  30. aws_cdk/aws_iotwireless/__init__.py +38 -54
  31. aws_cdk/aws_lakeformation/__init__.py +18 -6
  32. aws_cdk/aws_lambda/__init__.py +1 -1
  33. aws_cdk/aws_lightsail/__init__.py +225 -0
  34. aws_cdk/aws_lookoutequipment/__init__.py +4 -4
  35. aws_cdk/aws_macie/__init__.py +5 -3
  36. aws_cdk/aws_mediapackagev2/__init__.py +3227 -0
  37. aws_cdk/aws_pcaconnectorad/__init__.py +6785 -0
  38. aws_cdk/aws_quicksight/__init__.py +189 -116
  39. aws_cdk/aws_rds/__init__.py +316 -9
  40. aws_cdk/aws_resiliencehub/__init__.py +38 -21
  41. aws_cdk/aws_route53resolver/__init__.py +429 -0
  42. aws_cdk/aws_sagemaker/__init__.py +34 -34
  43. aws_cdk/aws_stepfunctions/__init__.py +111 -14
  44. aws_cdk/aws_transfer/__init__.py +2 -2
  45. aws_cdk/aws_vpclattice/__init__.py +128 -120
  46. aws_cdk/aws_workspacesweb/__init__.py +3790 -0
  47. aws_cdk/region_info/__init__.py +49 -0
  48. {aws_cdk_lib-2.96.2.dist-info → aws_cdk_lib-2.97.1.dist-info}/METADATA +2 -2
  49. {aws_cdk_lib-2.96.2.dist-info → aws_cdk_lib-2.97.1.dist-info}/RECORD +53 -49
  50. {aws_cdk_lib-2.96.2.dist-info → aws_cdk_lib-2.97.1.dist-info}/LICENSE +0 -0
  51. {aws_cdk_lib-2.96.2.dist-info → aws_cdk_lib-2.97.1.dist-info}/NOTICE +0 -0
  52. {aws_cdk_lib-2.96.2.dist-info → aws_cdk_lib-2.97.1.dist-info}/WHEEL +0 -0
  53. {aws_cdk_lib-2.96.2.dist-info → aws_cdk_lib-2.97.1.dist-info}/top_level.txt +0 -0
@@ -16,14 +16,12 @@ autoscaling.AutoScalingGroup(self, "ASG",
16
16
  vpc=vpc,
17
17
  instance_type=ec2.InstanceType.of(ec2.InstanceClass.BURSTABLE2, ec2.InstanceSize.MICRO),
18
18
 
19
- # The latest Amazon Linux image of a particular generation
20
- machine_image=ec2.MachineImage.latest_amazon_linux(
21
- generation=ec2.AmazonLinuxGeneration.AMAZON_LINUX_2
22
- )
19
+ # The latest Amazon Linux 2 image
20
+ machine_image=ec2.MachineImage.latest_amazon_linux2()
23
21
  )
24
22
  ```
25
23
 
26
- Creating an `AutoScalingGroup` from a Launch Configuration has been deprecated. All new accounts created after December 31, 2023 will no longer be able to create Launch Configurations. With the `@aws-cdk/aws-autoscaling:disableDefaultLaunchConfigCreation` feature flag set to true, `AutoScalingGroup` properties used to create a Launch Configuration will now be used to create a `LaunchTemplate` using a [Launch Configuration to `LaunchTemplate` mapping](https://docs.aws.amazon.com/autoscaling/ec2/userguide/migrate-launch-configurations-with-cloudformation.html#launch-configuration-mapping-reference). Specifically, the following `AutoScalingGroup` properties will be used to generate a `LaunchTemplate`:
24
+ Creating an `AutoScalingGroup` from a Launch Configuration has been deprecated. All new accounts created after December 31, 2023 will no longer be able to create Launch Configurations. With the `@aws-cdk/aws-autoscaling:generateLaunchTemplateInsteadOfLaunchConfig` feature flag set to true, `AutoScalingGroup` properties used to create a Launch Configuration will now be used to create a `LaunchTemplate` using a [Launch Configuration to `LaunchTemplate` mapping](https://docs.aws.amazon.com/autoscaling/ec2/userguide/migrate-launch-configurations-with-cloudformation.html#launch-configuration-mapping-reference). Specifically, the following `AutoScalingGroup` properties will be used to generate a `LaunchTemplate`:
27
25
 
28
26
  * machineImage
29
27
  * keyName
@@ -55,9 +53,7 @@ my_security_group = ec2.SecurityGroup(self, "SecurityGroup", vpc=vpc)
55
53
  autoscaling.AutoScalingGroup(self, "ASG",
56
54
  vpc=vpc,
57
55
  instance_type=ec2.InstanceType.of(ec2.InstanceClass.BURSTABLE2, ec2.InstanceSize.MICRO),
58
- machine_image=ec2.MachineImage.latest_amazon_linux(
59
- generation=ec2.AmazonLinuxGeneration.AMAZON_LINUX_2
60
- ),
56
+ machine_image=ec2.MachineImage.latest_amazon_linux2(),
61
57
  security_group=my_security_group
62
58
  )
63
59
  ```
@@ -589,9 +585,7 @@ autoscaling.AutoScalingGroup(self, "ASG",
589
585
  instance_type=ec2.InstanceType.of(ec2.InstanceClass.T3, ec2.InstanceSize.MICRO),
590
586
 
591
587
  # Amazon Linux 2 comes with SSM Agent by default
592
- machine_image=ec2.MachineImage.latest_amazon_linux(
593
- generation=ec2.AmazonLinuxGeneration.AMAZON_LINUX_2
594
- ),
588
+ machine_image=ec2.MachineImage.latest_amazon_linux2(),
595
589
 
596
590
  # Turn on SSM
597
591
  ssm_session_permissions=True
@@ -639,6 +639,11 @@ class CfnCustomLineItem(
639
639
  flat=billingconductor.CfnCustomLineItem.CustomLineItemFlatChargeDetailsProperty(
640
640
  charge_value=123
641
641
  ),
642
+ line_item_filters=[billingconductor.CfnCustomLineItem.LineItemFilterProperty(
643
+ attribute="attribute",
644
+ match_option="matchOption",
645
+ values=["values"]
646
+ )],
642
647
  percentage=billingconductor.CfnCustomLineItem.CustomLineItemPercentageChargeDetailsProperty(
643
648
  percentage_value=123,
644
649
 
@@ -952,7 +957,12 @@ class CfnCustomLineItem(
952
957
  @jsii.data_type(
953
958
  jsii_type="aws-cdk-lib.aws_billingconductor.CfnCustomLineItem.CustomLineItemChargeDetailsProperty",
954
959
  jsii_struct_bases=[],
955
- name_mapping={"type": "type", "flat": "flat", "percentage": "percentage"},
960
+ name_mapping={
961
+ "type": "type",
962
+ "flat": "flat",
963
+ "line_item_filters": "lineItemFilters",
964
+ "percentage": "percentage",
965
+ },
956
966
  )
957
967
  class CustomLineItemChargeDetailsProperty:
958
968
  def __init__(
@@ -960,6 +970,7 @@ class CfnCustomLineItem(
960
970
  *,
961
971
  type: builtins.str,
962
972
  flat: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnCustomLineItem.CustomLineItemFlatChargeDetailsProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
973
+ line_item_filters: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnCustomLineItem.LineItemFilterProperty", typing.Dict[builtins.str, typing.Any]]]]]] = None,
963
974
  percentage: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnCustomLineItem.CustomLineItemPercentageChargeDetailsProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
964
975
  ) -> None:
965
976
  '''The charge details of a custom line item.
@@ -968,6 +979,7 @@ class CfnCustomLineItem(
968
979
 
969
980
  :param type: The type of the custom line item that indicates whether the charge is a fee or credit.
970
981
  :param flat: A ``CustomLineItemFlatChargeDetails`` that describes the charge details of a flat custom line item.
982
+ :param line_item_filters: A representation of the line item filter.
971
983
  :param percentage: A ``CustomLineItemPercentageChargeDetails`` that describes the charge details of a percentage custom line item.
972
984
 
973
985
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-billingconductor-customlineitem-customlineitemchargedetails.html
@@ -986,6 +998,11 @@ class CfnCustomLineItem(
986
998
  flat=billingconductor.CfnCustomLineItem.CustomLineItemFlatChargeDetailsProperty(
987
999
  charge_value=123
988
1000
  ),
1001
+ line_item_filters=[billingconductor.CfnCustomLineItem.LineItemFilterProperty(
1002
+ attribute="attribute",
1003
+ match_option="matchOption",
1004
+ values=["values"]
1005
+ )],
989
1006
  percentage=billingconductor.CfnCustomLineItem.CustomLineItemPercentageChargeDetailsProperty(
990
1007
  percentage_value=123,
991
1008
 
@@ -998,12 +1015,15 @@ class CfnCustomLineItem(
998
1015
  type_hints = typing.get_type_hints(_typecheckingstub__5d39d3a637475f4077ab769b05ae9d99ef31e0038d41087c4d8aa32837489e83)
999
1016
  check_type(argname="argument type", value=type, expected_type=type_hints["type"])
1000
1017
  check_type(argname="argument flat", value=flat, expected_type=type_hints["flat"])
1018
+ check_type(argname="argument line_item_filters", value=line_item_filters, expected_type=type_hints["line_item_filters"])
1001
1019
  check_type(argname="argument percentage", value=percentage, expected_type=type_hints["percentage"])
1002
1020
  self._values: typing.Dict[builtins.str, typing.Any] = {
1003
1021
  "type": type,
1004
1022
  }
1005
1023
  if flat is not None:
1006
1024
  self._values["flat"] = flat
1025
+ if line_item_filters is not None:
1026
+ self._values["line_item_filters"] = line_item_filters
1007
1027
  if percentage is not None:
1008
1028
  self._values["percentage"] = percentage
1009
1029
 
@@ -1028,6 +1048,17 @@ class CfnCustomLineItem(
1028
1048
  result = self._values.get("flat")
1029
1049
  return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnCustomLineItem.CustomLineItemFlatChargeDetailsProperty"]], result)
1030
1050
 
1051
+ @builtins.property
1052
+ def line_item_filters(
1053
+ self,
1054
+ ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnCustomLineItem.LineItemFilterProperty"]]]]:
1055
+ '''A representation of the line item filter.
1056
+
1057
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-billingconductor-customlineitem-customlineitemchargedetails.html#cfn-billingconductor-customlineitem-customlineitemchargedetails-lineitemfilters
1058
+ '''
1059
+ result = self._values.get("line_item_filters")
1060
+ return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnCustomLineItem.LineItemFilterProperty"]]]], result)
1061
+
1031
1062
  @builtins.property
1032
1063
  def percentage(
1033
1064
  self,
@@ -1184,6 +1215,104 @@ class CfnCustomLineItem(
1184
1215
  k + "=" + repr(v) for k, v in self._values.items()
1185
1216
  )
1186
1217
 
1218
+ @jsii.data_type(
1219
+ jsii_type="aws-cdk-lib.aws_billingconductor.CfnCustomLineItem.LineItemFilterProperty",
1220
+ jsii_struct_bases=[],
1221
+ name_mapping={
1222
+ "attribute": "attribute",
1223
+ "match_option": "matchOption",
1224
+ "values": "values",
1225
+ },
1226
+ )
1227
+ class LineItemFilterProperty:
1228
+ def __init__(
1229
+ self,
1230
+ *,
1231
+ attribute: builtins.str,
1232
+ match_option: builtins.str,
1233
+ values: typing.Sequence[builtins.str],
1234
+ ) -> None:
1235
+ '''A representation of the line item filter for your custom line item.
1236
+
1237
+ You can use line item filters to include or exclude specific resource values from the billing group's total cost. For example, if you create a custom line item and you want to filter out a value, such as Savings Plan discounts, you can update ``LineItemFilter`` to exclude it.
1238
+
1239
+ :param attribute: The attribute of the line item filter. This specifies what attribute that you can filter on.
1240
+ :param match_option: The match criteria of the line item filter. This parameter specifies whether not to include the resource value from the billing group total cost.
1241
+ :param values: The values of the line item filter. This specifies the values to filter on. Currently, you can only exclude Savings Plan discounts.
1242
+
1243
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-billingconductor-customlineitem-lineitemfilter.html
1244
+ :exampleMetadata: fixture=_generated
1245
+
1246
+ Example::
1247
+
1248
+ # The code below shows an example of how to instantiate this type.
1249
+ # The values are placeholders you should change.
1250
+ from aws_cdk import aws_billingconductor as billingconductor
1251
+
1252
+ line_item_filter_property = billingconductor.CfnCustomLineItem.LineItemFilterProperty(
1253
+ attribute="attribute",
1254
+ match_option="matchOption",
1255
+ values=["values"]
1256
+ )
1257
+ '''
1258
+ if __debug__:
1259
+ type_hints = typing.get_type_hints(_typecheckingstub__b18020b11e9da0d6827e72c5f07b3b822dfc78578e5de5d6bb554c27cdb13c82)
1260
+ check_type(argname="argument attribute", value=attribute, expected_type=type_hints["attribute"])
1261
+ check_type(argname="argument match_option", value=match_option, expected_type=type_hints["match_option"])
1262
+ check_type(argname="argument values", value=values, expected_type=type_hints["values"])
1263
+ self._values: typing.Dict[builtins.str, typing.Any] = {
1264
+ "attribute": attribute,
1265
+ "match_option": match_option,
1266
+ "values": values,
1267
+ }
1268
+
1269
+ @builtins.property
1270
+ def attribute(self) -> builtins.str:
1271
+ '''The attribute of the line item filter.
1272
+
1273
+ This specifies what attribute that you can filter on.
1274
+
1275
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-billingconductor-customlineitem-lineitemfilter.html#cfn-billingconductor-customlineitem-lineitemfilter-attribute
1276
+ '''
1277
+ result = self._values.get("attribute")
1278
+ assert result is not None, "Required property 'attribute' is missing"
1279
+ return typing.cast(builtins.str, result)
1280
+
1281
+ @builtins.property
1282
+ def match_option(self) -> builtins.str:
1283
+ '''The match criteria of the line item filter.
1284
+
1285
+ This parameter specifies whether not to include the resource value from the billing group total cost.
1286
+
1287
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-billingconductor-customlineitem-lineitemfilter.html#cfn-billingconductor-customlineitem-lineitemfilter-matchoption
1288
+ '''
1289
+ result = self._values.get("match_option")
1290
+ assert result is not None, "Required property 'match_option' is missing"
1291
+ return typing.cast(builtins.str, result)
1292
+
1293
+ @builtins.property
1294
+ def values(self) -> typing.List[builtins.str]:
1295
+ '''The values of the line item filter.
1296
+
1297
+ This specifies the values to filter on. Currently, you can only exclude Savings Plan discounts.
1298
+
1299
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-billingconductor-customlineitem-lineitemfilter.html#cfn-billingconductor-customlineitem-lineitemfilter-values
1300
+ '''
1301
+ result = self._values.get("values")
1302
+ assert result is not None, "Required property 'values' is missing"
1303
+ return typing.cast(typing.List[builtins.str], result)
1304
+
1305
+ def __eq__(self, rhs: typing.Any) -> builtins.bool:
1306
+ return isinstance(rhs, self.__class__) and rhs._values == self._values
1307
+
1308
+ def __ne__(self, rhs: typing.Any) -> builtins.bool:
1309
+ return not (rhs == self)
1310
+
1311
+ def __repr__(self) -> str:
1312
+ return "LineItemFilterProperty(%s)" % ", ".join(
1313
+ k + "=" + repr(v) for k, v in self._values.items()
1314
+ )
1315
+
1187
1316
 
1188
1317
  @jsii.data_type(
1189
1318
  jsii_type="aws-cdk-lib.aws_billingconductor.CfnCustomLineItemProps",
@@ -1242,6 +1371,11 @@ class CfnCustomLineItemProps:
1242
1371
  flat=billingconductor.CfnCustomLineItem.CustomLineItemFlatChargeDetailsProperty(
1243
1372
  charge_value=123
1244
1373
  ),
1374
+ line_item_filters=[billingconductor.CfnCustomLineItem.LineItemFilterProperty(
1375
+ attribute="attribute",
1376
+ match_option="matchOption",
1377
+ values=["values"]
1378
+ )],
1245
1379
  percentage=billingconductor.CfnCustomLineItem.CustomLineItemPercentageChargeDetailsProperty(
1246
1380
  percentage_value=123,
1247
1381
 
@@ -2503,6 +2637,7 @@ def _typecheckingstub__5d39d3a637475f4077ab769b05ae9d99ef31e0038d41087c4d8aa3283
2503
2637
  *,
2504
2638
  type: builtins.str,
2505
2639
  flat: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnCustomLineItem.CustomLineItemFlatChargeDetailsProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
2640
+ line_item_filters: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnCustomLineItem.LineItemFilterProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
2506
2641
  percentage: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnCustomLineItem.CustomLineItemPercentageChargeDetailsProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
2507
2642
  ) -> None:
2508
2643
  """Type checking stubs"""
@@ -2523,6 +2658,15 @@ def _typecheckingstub__70a100ff1f6e7f50a04a566e9271338762ef27b2df9198ea25f76ee75
2523
2658
  """Type checking stubs"""
2524
2659
  pass
2525
2660
 
2661
+ def _typecheckingstub__b18020b11e9da0d6827e72c5f07b3b822dfc78578e5de5d6bb554c27cdb13c82(
2662
+ *,
2663
+ attribute: builtins.str,
2664
+ match_option: builtins.str,
2665
+ values: typing.Sequence[builtins.str],
2666
+ ) -> None:
2667
+ """Type checking stubs"""
2668
+ pass
2669
+
2526
2670
  def _typecheckingstub__7a7b2e875d39abe8a3c0b572bc75c4dac4bd0fc7005579ba31e1612f811f06c3(
2527
2671
  *,
2528
2672
  billing_group_arn: builtins.str,