aws-cdk-lib 2.144.0__py3-none-any.whl → 2.146.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 (38) hide show
  1. aws_cdk/__init__.py +3 -1
  2. aws_cdk/_jsii/__init__.py +1 -1
  3. aws_cdk/_jsii/{aws-cdk-lib@2.144.0.jsii.tgz → aws-cdk-lib@2.146.0.jsii.tgz} +0 -0
  4. aws_cdk/aws_apigatewayv2_authorizers/__init__.py +27 -0
  5. aws_cdk/aws_apigatewayv2_integrations/__init__.py +27 -0
  6. aws_cdk/aws_appsync/__init__.py +62 -0
  7. aws_cdk/aws_autoscaling/__init__.py +416 -60
  8. aws_cdk/aws_chatbot/__init__.py +38 -0
  9. aws_cdk/aws_codebuild/__init__.py +598 -19
  10. aws_cdk/aws_config/__init__.py +1305 -45
  11. aws_cdk/aws_connect/__init__.py +86 -0
  12. aws_cdk/aws_ec2/__init__.py +42 -3
  13. aws_cdk/aws_ecs/__init__.py +110 -1
  14. aws_cdk/aws_eks/__init__.py +1495 -72
  15. aws_cdk/aws_iam/__init__.py +16 -11
  16. aws_cdk/aws_lambda/__init__.py +12 -0
  17. aws_cdk/aws_logs/__init__.py +114 -8
  18. aws_cdk/aws_logs_destinations/__init__.py +11 -9
  19. aws_cdk/aws_mediaconnect/__init__.py +2 -6
  20. aws_cdk/aws_mediapackagev2/__init__.py +476 -0
  21. aws_cdk/aws_opensearchservice/__init__.py +6 -0
  22. aws_cdk/aws_pipes/__init__.py +639 -0
  23. aws_cdk/aws_rds/__init__.py +12 -0
  24. aws_cdk/aws_rolesanywhere/__init__.py +196 -0
  25. aws_cdk/aws_route53/__init__.py +3 -3
  26. aws_cdk/aws_securityhub/__init__.py +2415 -374
  27. aws_cdk/aws_securitylake/__init__.py +179 -314
  28. aws_cdk/aws_sns/__init__.py +61 -9
  29. aws_cdk/aws_sqs/__init__.py +2 -2
  30. aws_cdk/aws_stepfunctions_tasks/__init__.py +3 -3
  31. aws_cdk/pipelines/__init__.py +2 -0
  32. aws_cdk/region_info/__init__.py +6 -0
  33. {aws_cdk_lib-2.144.0.dist-info → aws_cdk_lib-2.146.0.dist-info}/METADATA +2 -2
  34. {aws_cdk_lib-2.144.0.dist-info → aws_cdk_lib-2.146.0.dist-info}/NOTICE +0 -35
  35. {aws_cdk_lib-2.144.0.dist-info → aws_cdk_lib-2.146.0.dist-info}/RECORD +38 -38
  36. {aws_cdk_lib-2.144.0.dist-info → aws_cdk_lib-2.146.0.dist-info}/LICENSE +0 -0
  37. {aws_cdk_lib-2.144.0.dist-info → aws_cdk_lib-2.146.0.dist-info}/WHEEL +0 -0
  38. {aws_cdk_lib-2.144.0.dist-info → aws_cdk_lib-2.146.0.dist-info}/top_level.txt +0 -0
aws_cdk/__init__.py CHANGED
@@ -2075,7 +2075,7 @@ class ArnComponents:
2075
2075
 
2076
2076
  # create the record
2077
2077
  route53.CrossAccountZoneDelegationRecord(self, "delegate",
2078
- delegated_zone=sub_zone,
2078
+ delegated_zone=sub_zone, # Note that an imported HostedZone is not supported as Name Servers info will not be available
2079
2079
  parent_hosted_zone_name="someexample.com", # or you can use parentHostedZoneId
2080
2080
  delegation_role=delegation_role
2081
2081
  )
@@ -10581,6 +10581,8 @@ class CustomResourceProviderRuntime(enum.Enum):
10581
10581
  '''Node.js 16.x.'''
10582
10582
  NODEJS_18_X = "NODEJS_18_X"
10583
10583
  '''Node.js 18.x.'''
10584
+ NODEJS_20_X = "NODEJS_20_X"
10585
+ '''Node.js 20.x.'''
10584
10586
 
10585
10587
 
10586
10588
  @jsii.data_type(
aws_cdk/_jsii/__init__.py CHANGED
@@ -19,7 +19,7 @@ import aws_cdk.asset_node_proxy_agent_v6._jsii
19
19
  import constructs._jsii
20
20
 
21
21
  __jsii_assembly__ = jsii.JSIIAssembly.load(
22
- "aws-cdk-lib", "2.144.0", __name__[0:-6], "aws-cdk-lib@2.144.0.jsii.tgz"
22
+ "aws-cdk-lib", "2.146.0", __name__[0:-6], "aws-cdk-lib@2.146.0.jsii.tgz"
23
23
  )
24
24
 
25
25
  __all__ = [
@@ -17,6 +17,10 @@
17
17
 
18
18
  * [Lambda Authorizer](#lambda-authorizer)
19
19
  * [IAM Authorizers](#iam-authorizer)
20
+ * [Import Issues](#import-issues)
21
+
22
+ * [DotNet Namespace](#dotnet-namespace)
23
+ * [Java Package](#java-package)
20
24
 
21
25
  ## Introduction
22
26
 
@@ -287,6 +291,29 @@ user.attach_inline_policy(iam.Policy(self, "AllowInvoke",
287
291
  ]
288
292
  ))
289
293
  ```
294
+
295
+ ## Import Issues
296
+
297
+ `jsiirc.json` file is missing during the stablization process of this module, which caused import issues for DotNet and Java users who attempt to use this module. Unfortunately, to guarantee backward compatibility, we cannot simply correct the namespace for DotNet or package for Java. The following outlines the workaround.
298
+
299
+ ### DotNet Namespace
300
+
301
+ Instead of the conventional namespace `Amazon.CDK.AWS.Apigatewayv2.Authorizers`, you would need to use the following namespace:
302
+
303
+ ```cs
304
+ using Amazon.CDK.AwsApigatewayv2Authorizers;;
305
+ ```
306
+
307
+ ### Java Package
308
+
309
+ Instead of conventional package `import software.amazon.awscdk.services.apigatewayv2_authorizers.*`, you would need to use the following package:
310
+
311
+ ```java
312
+ import software.amazon.awscdk.aws_apigatewayv2_authorizers.*;
313
+
314
+ // If you want to import a specific construct
315
+ import software.amazon.awscdk.aws_apigatewayv2_authorizers.WebSocketIamAuthorizer;
316
+ ```
290
317
  '''
291
318
  from pkgutil import extend_path
292
319
  __path__ = extend_path(__path__, __name__)
@@ -14,6 +14,10 @@
14
14
 
15
15
  * [Lambda WebSocket Integration](#lambda-websocket-integration)
16
16
  * [AWS WebSocket Integration](#aws-websocket-integration)
17
+ * [Import Issues](#import-issues)
18
+
19
+ * [DotNet Namespace](#dotnet-namespace)
20
+ * [Java Package](#java-package)
17
21
 
18
22
  ## HTTP APIs
19
23
 
@@ -317,6 +321,29 @@ web_socket_api.add_route("$connect",
317
321
 
318
322
  You can also set additional properties to change the behavior of your integration, such as `contentHandling`.
319
323
  See [Working with binary media types for WebSocket APIs](https://docs.aws.amazon.com/apigateway/latest/developerguide/websocket-api-develop-binary-media-types.html).
324
+
325
+ ## Import Issues
326
+
327
+ `jsiirc.json` file is missing during the stablization process of this module, which caused import issues for DotNet and Java users who attempt to use this module. Unfortunately, to guarantee backward compatibility, we cannot simply correct the namespace for DotNet or package for Java. The following outlines the workaround.
328
+
329
+ ### DotNet Namespace
330
+
331
+ Instead of the conventional namespace `Amazon.CDK.AWS.Apigatewayv2.Integrations`, you would need to use the following namespace:
332
+
333
+ ```cs
334
+ using Amazon.CDK.AwsApigatewayv2Integrations;
335
+ ```
336
+
337
+ ### Java Package
338
+
339
+ Instead of conventional package `import software.amazon.awscdk.services.apigatewayv2_integrations.*`, you would need to use the following package:
340
+
341
+ ```java
342
+ import software.amazon.awscdk.aws_apigatewayv2_integrations.*;
343
+
344
+ // If you want to import a specific construct
345
+ import software.amazon.awscdk.aws_apigatewayv2_integrations.WebSocketAwsIntegration;
346
+ ```
320
347
  '''
321
348
  from pkgutil import extend_path
322
349
  __path__ = extend_path(__path__, __name__)
@@ -753,6 +753,23 @@ appsync_function = appsync.AppsyncFunction(self, "function",
753
753
  )
754
754
  ```
755
755
 
756
+ When using the `LambdaDataSource`, you can control the maximum number of resolver request
757
+ inputs that will be sent to a single AWS Lambda function in a BatchInvoke operation
758
+ by setting the `maxBatchSize` property.
759
+
760
+ ```python
761
+ # api: appsync.GraphqlApi
762
+ # lambda_data_source: appsync.LambdaDataSource
763
+
764
+
765
+ appsync_function = appsync.AppsyncFunction(self, "function",
766
+ name="appsync_function",
767
+ api=api,
768
+ data_source=lambda_data_source,
769
+ max_batch_size=10
770
+ )
771
+ ```
772
+
756
773
  AppSync Functions are used in tandem with pipeline resolvers to compose multiple
757
774
  operations.
758
775
 
@@ -1652,6 +1669,7 @@ class AwsIamConfig:
1652
1669
  "name": "name",
1653
1670
  "code": "code",
1654
1671
  "description": "description",
1672
+ "max_batch_size": "maxBatchSize",
1655
1673
  "request_mapping_template": "requestMappingTemplate",
1656
1674
  "response_mapping_template": "responseMappingTemplate",
1657
1675
  "runtime": "runtime",
@@ -1664,6 +1682,7 @@ class BaseAppsyncFunctionProps:
1664
1682
  name: builtins.str,
1665
1683
  code: typing.Optional["Code"] = None,
1666
1684
  description: typing.Optional[builtins.str] = None,
1685
+ max_batch_size: typing.Optional[jsii.Number] = None,
1667
1686
  request_mapping_template: typing.Optional["MappingTemplate"] = None,
1668
1687
  response_mapping_template: typing.Optional["MappingTemplate"] = None,
1669
1688
  runtime: typing.Optional["FunctionRuntime"] = None,
@@ -1673,6 +1692,7 @@ class BaseAppsyncFunctionProps:
1673
1692
  :param name: the name of the AppSync Function.
1674
1693
  :param code: The function code. Default: - no code is used
1675
1694
  :param description: the description for this AppSync Function. Default: - no description
1695
+ :param max_batch_size: The maximum number of resolver request inputs that will be sent to a single AWS Lambda function in a BatchInvoke operation. Can only be set when using LambdaDataSource. Default: - No max batch size
1676
1696
  :param request_mapping_template: the request mapping template for the AppSync Function. Default: - no request mapping template
1677
1697
  :param response_mapping_template: the response mapping template for the AppSync Function. Default: - no response mapping template
1678
1698
  :param runtime: The functions runtime. Default: - no function runtime, VTL mapping templates used
@@ -1695,6 +1715,7 @@ class BaseAppsyncFunctionProps:
1695
1715
  # the properties below are optional
1696
1716
  code=code,
1697
1717
  description="description",
1718
+ max_batch_size=123,
1698
1719
  request_mapping_template=mapping_template,
1699
1720
  response_mapping_template=mapping_template,
1700
1721
  runtime=function_runtime
@@ -1705,6 +1726,7 @@ class BaseAppsyncFunctionProps:
1705
1726
  check_type(argname="argument name", value=name, expected_type=type_hints["name"])
1706
1727
  check_type(argname="argument code", value=code, expected_type=type_hints["code"])
1707
1728
  check_type(argname="argument description", value=description, expected_type=type_hints["description"])
1729
+ check_type(argname="argument max_batch_size", value=max_batch_size, expected_type=type_hints["max_batch_size"])
1708
1730
  check_type(argname="argument request_mapping_template", value=request_mapping_template, expected_type=type_hints["request_mapping_template"])
1709
1731
  check_type(argname="argument response_mapping_template", value=response_mapping_template, expected_type=type_hints["response_mapping_template"])
1710
1732
  check_type(argname="argument runtime", value=runtime, expected_type=type_hints["runtime"])
@@ -1715,6 +1737,8 @@ class BaseAppsyncFunctionProps:
1715
1737
  self._values["code"] = code
1716
1738
  if description is not None:
1717
1739
  self._values["description"] = description
1740
+ if max_batch_size is not None:
1741
+ self._values["max_batch_size"] = max_batch_size
1718
1742
  if request_mapping_template is not None:
1719
1743
  self._values["request_mapping_template"] = request_mapping_template
1720
1744
  if response_mapping_template is not None:
@@ -1747,6 +1771,17 @@ class BaseAppsyncFunctionProps:
1747
1771
  result = self._values.get("description")
1748
1772
  return typing.cast(typing.Optional[builtins.str], result)
1749
1773
 
1774
+ @builtins.property
1775
+ def max_batch_size(self) -> typing.Optional[jsii.Number]:
1776
+ '''The maximum number of resolver request inputs that will be sent to a single AWS Lambda function in a BatchInvoke operation.
1777
+
1778
+ Can only be set when using LambdaDataSource.
1779
+
1780
+ :default: - No max batch size
1781
+ '''
1782
+ result = self._values.get("max_batch_size")
1783
+ return typing.cast(typing.Optional[jsii.Number], result)
1784
+
1750
1785
  @builtins.property
1751
1786
  def request_mapping_template(self) -> typing.Optional["MappingTemplate"]:
1752
1787
  '''the request mapping template for the AppSync Function.
@@ -1868,6 +1903,7 @@ class BaseDataSource(
1868
1903
  name: builtins.str,
1869
1904
  code: typing.Optional["Code"] = None,
1870
1905
  description: typing.Optional[builtins.str] = None,
1906
+ max_batch_size: typing.Optional[jsii.Number] = None,
1871
1907
  request_mapping_template: typing.Optional["MappingTemplate"] = None,
1872
1908
  response_mapping_template: typing.Optional["MappingTemplate"] = None,
1873
1909
  runtime: typing.Optional["FunctionRuntime"] = None,
@@ -1878,6 +1914,7 @@ class BaseDataSource(
1878
1914
  :param name: the name of the AppSync Function.
1879
1915
  :param code: The function code. Default: - no code is used
1880
1916
  :param description: the description for this AppSync Function. Default: - no description
1917
+ :param max_batch_size: The maximum number of resolver request inputs that will be sent to a single AWS Lambda function in a BatchInvoke operation. Can only be set when using LambdaDataSource. Default: - No max batch size
1881
1918
  :param request_mapping_template: the request mapping template for the AppSync Function. Default: - no request mapping template
1882
1919
  :param response_mapping_template: the response mapping template for the AppSync Function. Default: - no response mapping template
1883
1920
  :param runtime: The functions runtime. Default: - no function runtime, VTL mapping templates used
@@ -1889,6 +1926,7 @@ class BaseDataSource(
1889
1926
  name=name,
1890
1927
  code=code,
1891
1928
  description=description,
1929
+ max_batch_size=max_batch_size,
1892
1930
  request_mapping_template=request_mapping_template,
1893
1931
  response_mapping_template=response_mapping_template,
1894
1932
  runtime=runtime,
@@ -14780,6 +14818,7 @@ class AppsyncFunction(
14780
14818
  name: builtins.str,
14781
14819
  code: typing.Optional[Code] = None,
14782
14820
  description: typing.Optional[builtins.str] = None,
14821
+ max_batch_size: typing.Optional[jsii.Number] = None,
14783
14822
  request_mapping_template: typing.Optional[MappingTemplate] = None,
14784
14823
  response_mapping_template: typing.Optional[MappingTemplate] = None,
14785
14824
  runtime: typing.Optional[FunctionRuntime] = None,
@@ -14792,6 +14831,7 @@ class AppsyncFunction(
14792
14831
  :param name: the name of the AppSync Function.
14793
14832
  :param code: The function code. Default: - no code is used
14794
14833
  :param description: the description for this AppSync Function. Default: - no description
14834
+ :param max_batch_size: The maximum number of resolver request inputs that will be sent to a single AWS Lambda function in a BatchInvoke operation. Can only be set when using LambdaDataSource. Default: - No max batch size
14795
14835
  :param request_mapping_template: the request mapping template for the AppSync Function. Default: - no request mapping template
14796
14836
  :param response_mapping_template: the response mapping template for the AppSync Function. Default: - no response mapping template
14797
14837
  :param runtime: The functions runtime. Default: - no function runtime, VTL mapping templates used
@@ -14806,6 +14846,7 @@ class AppsyncFunction(
14806
14846
  name=name,
14807
14847
  code=code,
14808
14848
  description=description,
14849
+ max_batch_size=max_batch_size,
14809
14850
  request_mapping_template=request_mapping_template,
14810
14851
  response_mapping_template=response_mapping_template,
14811
14852
  runtime=runtime,
@@ -14880,6 +14921,7 @@ class AppsyncFunction(
14880
14921
  "name": "name",
14881
14922
  "code": "code",
14882
14923
  "description": "description",
14924
+ "max_batch_size": "maxBatchSize",
14883
14925
  "request_mapping_template": "requestMappingTemplate",
14884
14926
  "response_mapping_template": "responseMappingTemplate",
14885
14927
  "runtime": "runtime",
@@ -14894,6 +14936,7 @@ class AppsyncFunctionProps(BaseAppsyncFunctionProps):
14894
14936
  name: builtins.str,
14895
14937
  code: typing.Optional[Code] = None,
14896
14938
  description: typing.Optional[builtins.str] = None,
14939
+ max_batch_size: typing.Optional[jsii.Number] = None,
14897
14940
  request_mapping_template: typing.Optional[MappingTemplate] = None,
14898
14941
  response_mapping_template: typing.Optional[MappingTemplate] = None,
14899
14942
  runtime: typing.Optional[FunctionRuntime] = None,
@@ -14905,6 +14948,7 @@ class AppsyncFunctionProps(BaseAppsyncFunctionProps):
14905
14948
  :param name: the name of the AppSync Function.
14906
14949
  :param code: The function code. Default: - no code is used
14907
14950
  :param description: the description for this AppSync Function. Default: - no description
14951
+ :param max_batch_size: The maximum number of resolver request inputs that will be sent to a single AWS Lambda function in a BatchInvoke operation. Can only be set when using LambdaDataSource. Default: - No max batch size
14908
14952
  :param request_mapping_template: the request mapping template for the AppSync Function. Default: - no request mapping template
14909
14953
  :param response_mapping_template: the response mapping template for the AppSync Function. Default: - no response mapping template
14910
14954
  :param runtime: The functions runtime. Default: - no function runtime, VTL mapping templates used
@@ -14931,6 +14975,7 @@ class AppsyncFunctionProps(BaseAppsyncFunctionProps):
14931
14975
  check_type(argname="argument name", value=name, expected_type=type_hints["name"])
14932
14976
  check_type(argname="argument code", value=code, expected_type=type_hints["code"])
14933
14977
  check_type(argname="argument description", value=description, expected_type=type_hints["description"])
14978
+ check_type(argname="argument max_batch_size", value=max_batch_size, expected_type=type_hints["max_batch_size"])
14934
14979
  check_type(argname="argument request_mapping_template", value=request_mapping_template, expected_type=type_hints["request_mapping_template"])
14935
14980
  check_type(argname="argument response_mapping_template", value=response_mapping_template, expected_type=type_hints["response_mapping_template"])
14936
14981
  check_type(argname="argument runtime", value=runtime, expected_type=type_hints["runtime"])
@@ -14945,6 +14990,8 @@ class AppsyncFunctionProps(BaseAppsyncFunctionProps):
14945
14990
  self._values["code"] = code
14946
14991
  if description is not None:
14947
14992
  self._values["description"] = description
14993
+ if max_batch_size is not None:
14994
+ self._values["max_batch_size"] = max_batch_size
14948
14995
  if request_mapping_template is not None:
14949
14996
  self._values["request_mapping_template"] = request_mapping_template
14950
14997
  if response_mapping_template is not None:
@@ -14977,6 +15024,17 @@ class AppsyncFunctionProps(BaseAppsyncFunctionProps):
14977
15024
  result = self._values.get("description")
14978
15025
  return typing.cast(typing.Optional[builtins.str], result)
14979
15026
 
15027
+ @builtins.property
15028
+ def max_batch_size(self) -> typing.Optional[jsii.Number]:
15029
+ '''The maximum number of resolver request inputs that will be sent to a single AWS Lambda function in a BatchInvoke operation.
15030
+
15031
+ Can only be set when using LambdaDataSource.
15032
+
15033
+ :default: - No max batch size
15034
+ '''
15035
+ result = self._values.get("max_batch_size")
15036
+ return typing.cast(typing.Optional[jsii.Number], result)
15037
+
14980
15038
  @builtins.property
14981
15039
  def request_mapping_template(self) -> typing.Optional[MappingTemplate]:
14982
15040
  '''the request mapping template for the AppSync Function.
@@ -17810,6 +17868,7 @@ def _typecheckingstub__5f2edba60cc5d74f665d36e54af7d66189cc66d09566e817ef416a2e8
17810
17868
  name: builtins.str,
17811
17869
  code: typing.Optional[Code] = None,
17812
17870
  description: typing.Optional[builtins.str] = None,
17871
+ max_batch_size: typing.Optional[jsii.Number] = None,
17813
17872
  request_mapping_template: typing.Optional[MappingTemplate] = None,
17814
17873
  response_mapping_template: typing.Optional[MappingTemplate] = None,
17815
17874
  runtime: typing.Optional[FunctionRuntime] = None,
@@ -17840,6 +17899,7 @@ def _typecheckingstub__a4fc8f5bee0df00790320083fe0cca74ef85fb43651df9418be27e2a1
17840
17899
  name: builtins.str,
17841
17900
  code: typing.Optional[Code] = None,
17842
17901
  description: typing.Optional[builtins.str] = None,
17902
+ max_batch_size: typing.Optional[jsii.Number] = None,
17843
17903
  request_mapping_template: typing.Optional[MappingTemplate] = None,
17844
17904
  response_mapping_template: typing.Optional[MappingTemplate] = None,
17845
17905
  runtime: typing.Optional[FunctionRuntime] = None,
@@ -19770,6 +19830,7 @@ def _typecheckingstub__a23d4ed33443e24250ebba07a891e2279c2fad90dd6bdb7c0b41b4850
19770
19830
  name: builtins.str,
19771
19831
  code: typing.Optional[Code] = None,
19772
19832
  description: typing.Optional[builtins.str] = None,
19833
+ max_batch_size: typing.Optional[jsii.Number] = None,
19773
19834
  request_mapping_template: typing.Optional[MappingTemplate] = None,
19774
19835
  response_mapping_template: typing.Optional[MappingTemplate] = None,
19775
19836
  runtime: typing.Optional[FunctionRuntime] = None,
@@ -19791,6 +19852,7 @@ def _typecheckingstub__3af0670f4f09a616138962b9570f4bdf3dbddf35d8cf64897cb624003
19791
19852
  name: builtins.str,
19792
19853
  code: typing.Optional[Code] = None,
19793
19854
  description: typing.Optional[builtins.str] = None,
19855
+ max_batch_size: typing.Optional[jsii.Number] = None,
19794
19856
  request_mapping_template: typing.Optional[MappingTemplate] = None,
19795
19857
  response_mapping_template: typing.Optional[MappingTemplate] = None,
19796
19858
  runtime: typing.Optional[FunctionRuntime] = None,