aws-cdk-lib 2.169.0__py3-none-any.whl → 2.171.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.
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.169.0.jsii.tgz → aws-cdk-lib@2.171.0.jsii.tgz} +0 -0
- aws_cdk/aws_cloudfront/experimental/__init__.py +5 -0
- aws_cdk/aws_lambda/__init__.py +150 -6
- aws_cdk/aws_lambda_event_sources/__init__.py +298 -1
- aws_cdk/aws_rds/__init__.py +303 -154
- {aws_cdk_lib-2.169.0.dist-info → aws_cdk_lib-2.171.0.dist-info}/METADATA +1 -1
- {aws_cdk_lib-2.169.0.dist-info → aws_cdk_lib-2.171.0.dist-info}/RECORD +12 -12
- {aws_cdk_lib-2.169.0.dist-info → aws_cdk_lib-2.171.0.dist-info}/WHEEL +1 -1
- {aws_cdk_lib-2.169.0.dist-info → aws_cdk_lib-2.171.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.169.0.dist-info → aws_cdk_lib-2.171.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.169.0.dist-info → aws_cdk_lib-2.171.0.dist-info}/top_level.txt +0 -0
aws_cdk/_jsii/__init__.py
CHANGED
|
@@ -35,7 +35,7 @@ import aws_cdk.cloud_assembly_schema._jsii
|
|
|
35
35
|
import constructs._jsii
|
|
36
36
|
|
|
37
37
|
__jsii_assembly__ = jsii.JSIIAssembly.load(
|
|
38
|
-
"aws-cdk-lib", "2.
|
|
38
|
+
"aws-cdk-lib", "2.171.0", __name__[0:-6], "aws-cdk-lib@2.171.0.jsii.tgz"
|
|
39
39
|
)
|
|
40
40
|
|
|
41
41
|
__all__ = [
|
|
Binary file
|
|
@@ -87,6 +87,7 @@ from ...aws_lambda import (
|
|
|
87
87
|
MetricsConfig as _MetricsConfig_48ab59c4,
|
|
88
88
|
ParamsAndSecretsLayerVersion as _ParamsAndSecretsLayerVersion_dce97f06,
|
|
89
89
|
Permission as _Permission_9def3964,
|
|
90
|
+
ProvisionedPollerConfig as _ProvisionedPollerConfig_1025e063,
|
|
90
91
|
RecursiveLoop as _RecursiveLoop_fc293827,
|
|
91
92
|
Runtime as _Runtime_b4eaa844,
|
|
92
93
|
RuntimeManagementMode as _RuntimeManagementMode_688c173b,
|
|
@@ -392,6 +393,7 @@ class EdgeFunction(
|
|
|
392
393
|
metrics_config: typing.Optional[typing.Union[_MetricsConfig_48ab59c4, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
393
394
|
on_failure: typing.Optional[_IEventSourceDlq_5e2c6ad9] = None,
|
|
394
395
|
parallelization_factor: typing.Optional[jsii.Number] = None,
|
|
396
|
+
provisioned_poller_config: typing.Optional[typing.Union[_ProvisionedPollerConfig_1025e063, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
395
397
|
report_batch_item_failures: typing.Optional[builtins.bool] = None,
|
|
396
398
|
retry_attempts: typing.Optional[jsii.Number] = None,
|
|
397
399
|
source_access_configurations: typing.Optional[typing.Sequence[typing.Union[_SourceAccessConfiguration_1926ff89, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
@@ -418,6 +420,7 @@ class EdgeFunction(
|
|
|
418
420
|
:param metrics_config: Configuration for enhanced monitoring metrics collection When specified, enables collection of additional metrics for the stream event source. Default: - Enhanced monitoring is disabled
|
|
419
421
|
:param on_failure: An Amazon SQS queue or Amazon SNS topic destination for discarded records. Default: discarded records are ignored
|
|
420
422
|
:param parallelization_factor: The number of batches to process from each shard concurrently. Valid Range: - Minimum value of 1 - Maximum value of 10 Default: 1
|
|
423
|
+
:param provisioned_poller_config: Configuration for provisioned pollers that read from the event source. When specified, allows control over the minimum and maximum number of pollers that can be provisioned to process events from the source. Default: - no provisioned pollers
|
|
421
424
|
:param report_batch_item_failures: Allow functions to return partially successful responses for a batch of records. Default: false
|
|
422
425
|
:param retry_attempts: The maximum number of times to retry when the function returns an error. Set to ``undefined`` if you want lambda to keep retrying infinitely or until the record expires. Valid Range: - Minimum value of 0 - Maximum value of 10000 Default: - infinite or until the record expires.
|
|
423
426
|
:param source_access_configurations: Specific settings like the authentication protocol or the VPC components to secure access to your event source. Default: - none
|
|
@@ -445,6 +448,7 @@ class EdgeFunction(
|
|
|
445
448
|
metrics_config=metrics_config,
|
|
446
449
|
on_failure=on_failure,
|
|
447
450
|
parallelization_factor=parallelization_factor,
|
|
451
|
+
provisioned_poller_config=provisioned_poller_config,
|
|
448
452
|
report_batch_item_failures=report_batch_item_failures,
|
|
449
453
|
retry_attempts=retry_attempts,
|
|
450
454
|
source_access_configurations=source_access_configurations,
|
|
@@ -2055,6 +2059,7 @@ def _typecheckingstub__e3a2f6769309cd3c52da869813738e2d4a94d233e574ada7ebba1654d
|
|
|
2055
2059
|
metrics_config: typing.Optional[typing.Union[_MetricsConfig_48ab59c4, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
2056
2060
|
on_failure: typing.Optional[_IEventSourceDlq_5e2c6ad9] = None,
|
|
2057
2061
|
parallelization_factor: typing.Optional[jsii.Number] = None,
|
|
2062
|
+
provisioned_poller_config: typing.Optional[typing.Union[_ProvisionedPollerConfig_1025e063, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
2058
2063
|
report_batch_item_failures: typing.Optional[builtins.bool] = None,
|
|
2059
2064
|
retry_attempts: typing.Optional[jsii.Number] = None,
|
|
2060
2065
|
source_access_configurations: typing.Optional[typing.Sequence[typing.Union[_SourceAccessConfiguration_1926ff89, typing.Dict[builtins.str, typing.Any]]]] = None,
|
aws_cdk/aws_lambda/__init__.py
CHANGED
|
@@ -13260,6 +13260,7 @@ class EventInvokeConfigProps(EventInvokeConfigOptions):
|
|
|
13260
13260
|
"metrics_config": "metricsConfig",
|
|
13261
13261
|
"on_failure": "onFailure",
|
|
13262
13262
|
"parallelization_factor": "parallelizationFactor",
|
|
13263
|
+
"provisioned_poller_config": "provisionedPollerConfig",
|
|
13263
13264
|
"report_batch_item_failures": "reportBatchItemFailures",
|
|
13264
13265
|
"retry_attempts": "retryAttempts",
|
|
13265
13266
|
"source_access_configurations": "sourceAccessConfigurations",
|
|
@@ -13288,6 +13289,7 @@ class EventSourceMappingOptions:
|
|
|
13288
13289
|
metrics_config: typing.Optional[typing.Union["MetricsConfig", typing.Dict[builtins.str, typing.Any]]] = None,
|
|
13289
13290
|
on_failure: typing.Optional["IEventSourceDlq"] = None,
|
|
13290
13291
|
parallelization_factor: typing.Optional[jsii.Number] = None,
|
|
13292
|
+
provisioned_poller_config: typing.Optional[typing.Union["ProvisionedPollerConfig", typing.Dict[builtins.str, typing.Any]]] = None,
|
|
13291
13293
|
report_batch_item_failures: typing.Optional[builtins.bool] = None,
|
|
13292
13294
|
retry_attempts: typing.Optional[jsii.Number] = None,
|
|
13293
13295
|
source_access_configurations: typing.Optional[typing.Sequence[typing.Union["SourceAccessConfiguration", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
@@ -13312,6 +13314,7 @@ class EventSourceMappingOptions:
|
|
|
13312
13314
|
:param metrics_config: Configuration for enhanced monitoring metrics collection When specified, enables collection of additional metrics for the stream event source. Default: - Enhanced monitoring is disabled
|
|
13313
13315
|
:param on_failure: An Amazon SQS queue or Amazon SNS topic destination for discarded records. Default: discarded records are ignored
|
|
13314
13316
|
:param parallelization_factor: The number of batches to process from each shard concurrently. Valid Range: - Minimum value of 1 - Maximum value of 10 Default: 1
|
|
13317
|
+
:param provisioned_poller_config: Configuration for provisioned pollers that read from the event source. When specified, allows control over the minimum and maximum number of pollers that can be provisioned to process events from the source. Default: - no provisioned pollers
|
|
13315
13318
|
:param report_batch_item_failures: Allow functions to return partially successful responses for a batch of records. Default: false
|
|
13316
13319
|
:param retry_attempts: The maximum number of times to retry when the function returns an error. Set to ``undefined`` if you want lambda to keep retrying infinitely or until the record expires. Valid Range: - Minimum value of 0 - Maximum value of 10000 Default: - infinite or until the record expires.
|
|
13317
13320
|
:param source_access_configurations: Specific settings like the authentication protocol or the VPC components to secure access to your event source. Default: - none
|
|
@@ -13355,6 +13358,10 @@ class EventSourceMappingOptions:
|
|
|
13355
13358
|
),
|
|
13356
13359
|
on_failure=event_source_dlq,
|
|
13357
13360
|
parallelization_factor=123,
|
|
13361
|
+
provisioned_poller_config=lambda.ProvisionedPollerConfig(
|
|
13362
|
+
maximum_pollers=123,
|
|
13363
|
+
minimum_pollers=123
|
|
13364
|
+
),
|
|
13358
13365
|
report_batch_item_failures=False,
|
|
13359
13366
|
retry_attempts=123,
|
|
13360
13367
|
source_access_configurations=[lambda.SourceAccessConfiguration(
|
|
@@ -13369,6 +13376,8 @@ class EventSourceMappingOptions:
|
|
|
13369
13376
|
'''
|
|
13370
13377
|
if isinstance(metrics_config, dict):
|
|
13371
13378
|
metrics_config = MetricsConfig(**metrics_config)
|
|
13379
|
+
if isinstance(provisioned_poller_config, dict):
|
|
13380
|
+
provisioned_poller_config = ProvisionedPollerConfig(**provisioned_poller_config)
|
|
13372
13381
|
if __debug__:
|
|
13373
13382
|
type_hints = typing.get_type_hints(_typecheckingstub__7442d2bd60e56a826eab54e95fa6a6ebc8961285a26558c7189840a124a0a2e0)
|
|
13374
13383
|
check_type(argname="argument batch_size", value=batch_size, expected_type=type_hints["batch_size"])
|
|
@@ -13386,6 +13395,7 @@ class EventSourceMappingOptions:
|
|
|
13386
13395
|
check_type(argname="argument metrics_config", value=metrics_config, expected_type=type_hints["metrics_config"])
|
|
13387
13396
|
check_type(argname="argument on_failure", value=on_failure, expected_type=type_hints["on_failure"])
|
|
13388
13397
|
check_type(argname="argument parallelization_factor", value=parallelization_factor, expected_type=type_hints["parallelization_factor"])
|
|
13398
|
+
check_type(argname="argument provisioned_poller_config", value=provisioned_poller_config, expected_type=type_hints["provisioned_poller_config"])
|
|
13389
13399
|
check_type(argname="argument report_batch_item_failures", value=report_batch_item_failures, expected_type=type_hints["report_batch_item_failures"])
|
|
13390
13400
|
check_type(argname="argument retry_attempts", value=retry_attempts, expected_type=type_hints["retry_attempts"])
|
|
13391
13401
|
check_type(argname="argument source_access_configurations", value=source_access_configurations, expected_type=type_hints["source_access_configurations"])
|
|
@@ -13424,6 +13434,8 @@ class EventSourceMappingOptions:
|
|
|
13424
13434
|
self._values["on_failure"] = on_failure
|
|
13425
13435
|
if parallelization_factor is not None:
|
|
13426
13436
|
self._values["parallelization_factor"] = parallelization_factor
|
|
13437
|
+
if provisioned_poller_config is not None:
|
|
13438
|
+
self._values["provisioned_poller_config"] = provisioned_poller_config
|
|
13427
13439
|
if report_batch_item_failures is not None:
|
|
13428
13440
|
self._values["report_batch_item_failures"] = report_batch_item_failures
|
|
13429
13441
|
if retry_attempts is not None:
|
|
@@ -13615,6 +13627,18 @@ class EventSourceMappingOptions:
|
|
|
13615
13627
|
result = self._values.get("parallelization_factor")
|
|
13616
13628
|
return typing.cast(typing.Optional[jsii.Number], result)
|
|
13617
13629
|
|
|
13630
|
+
@builtins.property
|
|
13631
|
+
def provisioned_poller_config(self) -> typing.Optional["ProvisionedPollerConfig"]:
|
|
13632
|
+
'''Configuration for provisioned pollers that read from the event source.
|
|
13633
|
+
|
|
13634
|
+
When specified, allows control over the minimum and maximum number of pollers
|
|
13635
|
+
that can be provisioned to process events from the source.
|
|
13636
|
+
|
|
13637
|
+
:default: - no provisioned pollers
|
|
13638
|
+
'''
|
|
13639
|
+
result = self._values.get("provisioned_poller_config")
|
|
13640
|
+
return typing.cast(typing.Optional["ProvisionedPollerConfig"], result)
|
|
13641
|
+
|
|
13618
13642
|
@builtins.property
|
|
13619
13643
|
def report_batch_item_failures(self) -> typing.Optional[builtins.bool]:
|
|
13620
13644
|
'''Allow functions to return partially successful responses for a batch of records.
|
|
@@ -13733,6 +13757,7 @@ class EventSourceMappingOptions:
|
|
|
13733
13757
|
"metrics_config": "metricsConfig",
|
|
13734
13758
|
"on_failure": "onFailure",
|
|
13735
13759
|
"parallelization_factor": "parallelizationFactor",
|
|
13760
|
+
"provisioned_poller_config": "provisionedPollerConfig",
|
|
13736
13761
|
"report_batch_item_failures": "reportBatchItemFailures",
|
|
13737
13762
|
"retry_attempts": "retryAttempts",
|
|
13738
13763
|
"source_access_configurations": "sourceAccessConfigurations",
|
|
@@ -13762,6 +13787,7 @@ class EventSourceMappingProps(EventSourceMappingOptions):
|
|
|
13762
13787
|
metrics_config: typing.Optional[typing.Union["MetricsConfig", typing.Dict[builtins.str, typing.Any]]] = None,
|
|
13763
13788
|
on_failure: typing.Optional["IEventSourceDlq"] = None,
|
|
13764
13789
|
parallelization_factor: typing.Optional[jsii.Number] = None,
|
|
13790
|
+
provisioned_poller_config: typing.Optional[typing.Union["ProvisionedPollerConfig", typing.Dict[builtins.str, typing.Any]]] = None,
|
|
13765
13791
|
report_batch_item_failures: typing.Optional[builtins.bool] = None,
|
|
13766
13792
|
retry_attempts: typing.Optional[jsii.Number] = None,
|
|
13767
13793
|
source_access_configurations: typing.Optional[typing.Sequence[typing.Union["SourceAccessConfiguration", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
@@ -13788,6 +13814,7 @@ class EventSourceMappingProps(EventSourceMappingOptions):
|
|
|
13788
13814
|
:param metrics_config: Configuration for enhanced monitoring metrics collection When specified, enables collection of additional metrics for the stream event source. Default: - Enhanced monitoring is disabled
|
|
13789
13815
|
:param on_failure: An Amazon SQS queue or Amazon SNS topic destination for discarded records. Default: discarded records are ignored
|
|
13790
13816
|
:param parallelization_factor: The number of batches to process from each shard concurrently. Valid Range: - Minimum value of 1 - Maximum value of 10 Default: 1
|
|
13817
|
+
:param provisioned_poller_config: Configuration for provisioned pollers that read from the event source. When specified, allows control over the minimum and maximum number of pollers that can be provisioned to process events from the source. Default: - no provisioned pollers
|
|
13791
13818
|
:param report_batch_item_failures: Allow functions to return partially successful responses for a batch of records. Default: false
|
|
13792
13819
|
:param retry_attempts: The maximum number of times to retry when the function returns an error. Set to ``undefined`` if you want lambda to keep retrying infinitely or until the record expires. Valid Range: - Minimum value of 0 - Maximum value of 10000 Default: - infinite or until the record expires.
|
|
13793
13820
|
:param source_access_configurations: Specific settings like the authentication protocol or the VPC components to secure access to your event source. Default: - none
|
|
@@ -13836,6 +13863,10 @@ class EventSourceMappingProps(EventSourceMappingOptions):
|
|
|
13836
13863
|
),
|
|
13837
13864
|
on_failure=event_source_dlq,
|
|
13838
13865
|
parallelization_factor=123,
|
|
13866
|
+
provisioned_poller_config=lambda.ProvisionedPollerConfig(
|
|
13867
|
+
maximum_pollers=123,
|
|
13868
|
+
minimum_pollers=123
|
|
13869
|
+
),
|
|
13839
13870
|
report_batch_item_failures=False,
|
|
13840
13871
|
retry_attempts=123,
|
|
13841
13872
|
source_access_configurations=[lambda.SourceAccessConfiguration(
|
|
@@ -13850,6 +13881,8 @@ class EventSourceMappingProps(EventSourceMappingOptions):
|
|
|
13850
13881
|
'''
|
|
13851
13882
|
if isinstance(metrics_config, dict):
|
|
13852
13883
|
metrics_config = MetricsConfig(**metrics_config)
|
|
13884
|
+
if isinstance(provisioned_poller_config, dict):
|
|
13885
|
+
provisioned_poller_config = ProvisionedPollerConfig(**provisioned_poller_config)
|
|
13853
13886
|
if __debug__:
|
|
13854
13887
|
type_hints = typing.get_type_hints(_typecheckingstub__e74d0bc5516fc715f7302bdf199df23dddf769e98771f0bac2ff026a4e386fec)
|
|
13855
13888
|
check_type(argname="argument batch_size", value=batch_size, expected_type=type_hints["batch_size"])
|
|
@@ -13867,6 +13900,7 @@ class EventSourceMappingProps(EventSourceMappingOptions):
|
|
|
13867
13900
|
check_type(argname="argument metrics_config", value=metrics_config, expected_type=type_hints["metrics_config"])
|
|
13868
13901
|
check_type(argname="argument on_failure", value=on_failure, expected_type=type_hints["on_failure"])
|
|
13869
13902
|
check_type(argname="argument parallelization_factor", value=parallelization_factor, expected_type=type_hints["parallelization_factor"])
|
|
13903
|
+
check_type(argname="argument provisioned_poller_config", value=provisioned_poller_config, expected_type=type_hints["provisioned_poller_config"])
|
|
13870
13904
|
check_type(argname="argument report_batch_item_failures", value=report_batch_item_failures, expected_type=type_hints["report_batch_item_failures"])
|
|
13871
13905
|
check_type(argname="argument retry_attempts", value=retry_attempts, expected_type=type_hints["retry_attempts"])
|
|
13872
13906
|
check_type(argname="argument source_access_configurations", value=source_access_configurations, expected_type=type_hints["source_access_configurations"])
|
|
@@ -13908,6 +13942,8 @@ class EventSourceMappingProps(EventSourceMappingOptions):
|
|
|
13908
13942
|
self._values["on_failure"] = on_failure
|
|
13909
13943
|
if parallelization_factor is not None:
|
|
13910
13944
|
self._values["parallelization_factor"] = parallelization_factor
|
|
13945
|
+
if provisioned_poller_config is not None:
|
|
13946
|
+
self._values["provisioned_poller_config"] = provisioned_poller_config
|
|
13911
13947
|
if report_batch_item_failures is not None:
|
|
13912
13948
|
self._values["report_batch_item_failures"] = report_batch_item_failures
|
|
13913
13949
|
if retry_attempts is not None:
|
|
@@ -14099,6 +14135,18 @@ class EventSourceMappingProps(EventSourceMappingOptions):
|
|
|
14099
14135
|
result = self._values.get("parallelization_factor")
|
|
14100
14136
|
return typing.cast(typing.Optional[jsii.Number], result)
|
|
14101
14137
|
|
|
14138
|
+
@builtins.property
|
|
14139
|
+
def provisioned_poller_config(self) -> typing.Optional["ProvisionedPollerConfig"]:
|
|
14140
|
+
'''Configuration for provisioned pollers that read from the event source.
|
|
14141
|
+
|
|
14142
|
+
When specified, allows control over the minimum and maximum number of pollers
|
|
14143
|
+
that can be provisioned to process events from the source.
|
|
14144
|
+
|
|
14145
|
+
:default: - no provisioned pollers
|
|
14146
|
+
'''
|
|
14147
|
+
result = self._values.get("provisioned_poller_config")
|
|
14148
|
+
return typing.cast(typing.Optional["ProvisionedPollerConfig"], result)
|
|
14149
|
+
|
|
14102
14150
|
@builtins.property
|
|
14103
14151
|
def report_batch_item_failures(self) -> typing.Optional[builtins.bool]:
|
|
14104
14152
|
'''Allow functions to return partially successful responses for a batch of records.
|
|
@@ -17613,6 +17661,7 @@ class IFunction(
|
|
|
17613
17661
|
metrics_config: typing.Optional[typing.Union["MetricsConfig", typing.Dict[builtins.str, typing.Any]]] = None,
|
|
17614
17662
|
on_failure: typing.Optional[IEventSourceDlq] = None,
|
|
17615
17663
|
parallelization_factor: typing.Optional[jsii.Number] = None,
|
|
17664
|
+
provisioned_poller_config: typing.Optional[typing.Union["ProvisionedPollerConfig", typing.Dict[builtins.str, typing.Any]]] = None,
|
|
17616
17665
|
report_batch_item_failures: typing.Optional[builtins.bool] = None,
|
|
17617
17666
|
retry_attempts: typing.Optional[jsii.Number] = None,
|
|
17618
17667
|
source_access_configurations: typing.Optional[typing.Sequence[typing.Union["SourceAccessConfiguration", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
@@ -17639,6 +17688,7 @@ class IFunction(
|
|
|
17639
17688
|
:param metrics_config: Configuration for enhanced monitoring metrics collection When specified, enables collection of additional metrics for the stream event source. Default: - Enhanced monitoring is disabled
|
|
17640
17689
|
:param on_failure: An Amazon SQS queue or Amazon SNS topic destination for discarded records. Default: discarded records are ignored
|
|
17641
17690
|
:param parallelization_factor: The number of batches to process from each shard concurrently. Valid Range: - Minimum value of 1 - Maximum value of 10 Default: 1
|
|
17691
|
+
:param provisioned_poller_config: Configuration for provisioned pollers that read from the event source. When specified, allows control over the minimum and maximum number of pollers that can be provisioned to process events from the source. Default: - no provisioned pollers
|
|
17642
17692
|
:param report_batch_item_failures: Allow functions to return partially successful responses for a batch of records. Default: false
|
|
17643
17693
|
:param retry_attempts: The maximum number of times to retry when the function returns an error. Set to ``undefined`` if you want lambda to keep retrying infinitely or until the record expires. Valid Range: - Minimum value of 0 - Maximum value of 10000 Default: - infinite or until the record expires.
|
|
17644
17694
|
:param source_access_configurations: Specific settings like the authentication protocol or the VPC components to secure access to your event source. Default: - none
|
|
@@ -18033,6 +18083,7 @@ class _IFunctionProxy(
|
|
|
18033
18083
|
metrics_config: typing.Optional[typing.Union["MetricsConfig", typing.Dict[builtins.str, typing.Any]]] = None,
|
|
18034
18084
|
on_failure: typing.Optional[IEventSourceDlq] = None,
|
|
18035
18085
|
parallelization_factor: typing.Optional[jsii.Number] = None,
|
|
18086
|
+
provisioned_poller_config: typing.Optional[typing.Union["ProvisionedPollerConfig", typing.Dict[builtins.str, typing.Any]]] = None,
|
|
18036
18087
|
report_batch_item_failures: typing.Optional[builtins.bool] = None,
|
|
18037
18088
|
retry_attempts: typing.Optional[jsii.Number] = None,
|
|
18038
18089
|
source_access_configurations: typing.Optional[typing.Sequence[typing.Union["SourceAccessConfiguration", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
@@ -18059,6 +18110,7 @@ class _IFunctionProxy(
|
|
|
18059
18110
|
:param metrics_config: Configuration for enhanced monitoring metrics collection When specified, enables collection of additional metrics for the stream event source. Default: - Enhanced monitoring is disabled
|
|
18060
18111
|
:param on_failure: An Amazon SQS queue or Amazon SNS topic destination for discarded records. Default: discarded records are ignored
|
|
18061
18112
|
:param parallelization_factor: The number of batches to process from each shard concurrently. Valid Range: - Minimum value of 1 - Maximum value of 10 Default: 1
|
|
18113
|
+
:param provisioned_poller_config: Configuration for provisioned pollers that read from the event source. When specified, allows control over the minimum and maximum number of pollers that can be provisioned to process events from the source. Default: - no provisioned pollers
|
|
18062
18114
|
:param report_batch_item_failures: Allow functions to return partially successful responses for a batch of records. Default: false
|
|
18063
18115
|
:param retry_attempts: The maximum number of times to retry when the function returns an error. Set to ``undefined`` if you want lambda to keep retrying infinitely or until the record expires. Valid Range: - Minimum value of 0 - Maximum value of 10000 Default: - infinite or until the record expires.
|
|
18064
18116
|
:param source_access_configurations: Specific settings like the authentication protocol or the VPC components to secure access to your event source. Default: - none
|
|
@@ -18086,6 +18138,7 @@ class _IFunctionProxy(
|
|
|
18086
18138
|
metrics_config=metrics_config,
|
|
18087
18139
|
on_failure=on_failure,
|
|
18088
18140
|
parallelization_factor=parallelization_factor,
|
|
18141
|
+
provisioned_poller_config=provisioned_poller_config,
|
|
18089
18142
|
report_batch_item_failures=report_batch_item_failures,
|
|
18090
18143
|
retry_attempts=retry_attempts,
|
|
18091
18144
|
source_access_configurations=source_access_configurations,
|
|
@@ -20716,6 +20769,78 @@ class Permission:
|
|
|
20716
20769
|
)
|
|
20717
20770
|
|
|
20718
20771
|
|
|
20772
|
+
@jsii.data_type(
|
|
20773
|
+
jsii_type="aws-cdk-lib.aws_lambda.ProvisionedPollerConfig",
|
|
20774
|
+
jsii_struct_bases=[],
|
|
20775
|
+
name_mapping={
|
|
20776
|
+
"maximum_pollers": "maximumPollers",
|
|
20777
|
+
"minimum_pollers": "minimumPollers",
|
|
20778
|
+
},
|
|
20779
|
+
)
|
|
20780
|
+
class ProvisionedPollerConfig:
|
|
20781
|
+
def __init__(
|
|
20782
|
+
self,
|
|
20783
|
+
*,
|
|
20784
|
+
maximum_pollers: typing.Optional[jsii.Number] = None,
|
|
20785
|
+
minimum_pollers: typing.Optional[jsii.Number] = None,
|
|
20786
|
+
) -> None:
|
|
20787
|
+
'''
|
|
20788
|
+
:param maximum_pollers: The maximum number of pollers that can be provisioned. Default: - 200
|
|
20789
|
+
:param minimum_pollers: The minimum number of pollers that should be provisioned. Default: - 1
|
|
20790
|
+
|
|
20791
|
+
:exampleMetadata: fixture=_generated
|
|
20792
|
+
|
|
20793
|
+
Example::
|
|
20794
|
+
|
|
20795
|
+
# The code below shows an example of how to instantiate this type.
|
|
20796
|
+
# The values are placeholders you should change.
|
|
20797
|
+
from aws_cdk import aws_lambda as lambda_
|
|
20798
|
+
|
|
20799
|
+
provisioned_poller_config = lambda.ProvisionedPollerConfig(
|
|
20800
|
+
maximum_pollers=123,
|
|
20801
|
+
minimum_pollers=123
|
|
20802
|
+
)
|
|
20803
|
+
'''
|
|
20804
|
+
if __debug__:
|
|
20805
|
+
type_hints = typing.get_type_hints(_typecheckingstub__7daeb3a0360a4da1ad9a12a6a656f2d6c53d84bbebb9ef1e2273e4ca2dde8be0)
|
|
20806
|
+
check_type(argname="argument maximum_pollers", value=maximum_pollers, expected_type=type_hints["maximum_pollers"])
|
|
20807
|
+
check_type(argname="argument minimum_pollers", value=minimum_pollers, expected_type=type_hints["minimum_pollers"])
|
|
20808
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
20809
|
+
if maximum_pollers is not None:
|
|
20810
|
+
self._values["maximum_pollers"] = maximum_pollers
|
|
20811
|
+
if minimum_pollers is not None:
|
|
20812
|
+
self._values["minimum_pollers"] = minimum_pollers
|
|
20813
|
+
|
|
20814
|
+
@builtins.property
|
|
20815
|
+
def maximum_pollers(self) -> typing.Optional[jsii.Number]:
|
|
20816
|
+
'''The maximum number of pollers that can be provisioned.
|
|
20817
|
+
|
|
20818
|
+
:default: - 200
|
|
20819
|
+
'''
|
|
20820
|
+
result = self._values.get("maximum_pollers")
|
|
20821
|
+
return typing.cast(typing.Optional[jsii.Number], result)
|
|
20822
|
+
|
|
20823
|
+
@builtins.property
|
|
20824
|
+
def minimum_pollers(self) -> typing.Optional[jsii.Number]:
|
|
20825
|
+
'''The minimum number of pollers that should be provisioned.
|
|
20826
|
+
|
|
20827
|
+
:default: - 1
|
|
20828
|
+
'''
|
|
20829
|
+
result = self._values.get("minimum_pollers")
|
|
20830
|
+
return typing.cast(typing.Optional[jsii.Number], result)
|
|
20831
|
+
|
|
20832
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
20833
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
20834
|
+
|
|
20835
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
20836
|
+
return not (rhs == self)
|
|
20837
|
+
|
|
20838
|
+
def __repr__(self) -> str:
|
|
20839
|
+
return "ProvisionedPollerConfig(%s)" % ", ".join(
|
|
20840
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
20841
|
+
)
|
|
20842
|
+
|
|
20843
|
+
|
|
20719
20844
|
@jsii.enum(jsii_type="aws-cdk-lib.aws_lambda.RecursiveLoop")
|
|
20720
20845
|
class RecursiveLoop(enum.Enum):
|
|
20721
20846
|
'''
|
|
@@ -22717,7 +22842,6 @@ class StartingPosition(enum.Enum):
|
|
|
22717
22842
|
Example::
|
|
22718
22843
|
|
|
22719
22844
|
from aws_cdk.aws_lambda_event_sources import ManagedKafkaEventSource
|
|
22720
|
-
from aws_cdk.aws_kms import Key
|
|
22721
22845
|
|
|
22722
22846
|
# my_function: lambda.Function
|
|
22723
22847
|
|
|
@@ -22727,9 +22851,6 @@ class StartingPosition(enum.Enum):
|
|
|
22727
22851
|
|
|
22728
22852
|
# The Kafka topic you want to subscribe to
|
|
22729
22853
|
topic = "some-cool-topic"
|
|
22730
|
-
|
|
22731
|
-
# Your self managed KMS key
|
|
22732
|
-
my_key = Key.from_key_arn(self, "SourceBucketEncryptionKey", "arn:aws:kms:us-east-1:123456789012:key/<key-id>")
|
|
22733
22854
|
my_function.add_event_source(ManagedKafkaEventSource(
|
|
22734
22855
|
cluster_arn=cluster_arn,
|
|
22735
22856
|
topic=topic,
|
|
@@ -22738,8 +22859,7 @@ class StartingPosition(enum.Enum):
|
|
|
22738
22859
|
lambda_.FilterCriteria.filter({
|
|
22739
22860
|
"string_equals": lambda_.FilterRule.is_equal("test")
|
|
22740
22861
|
})
|
|
22741
|
-
]
|
|
22742
|
-
filter_encryption=my_key
|
|
22862
|
+
]
|
|
22743
22863
|
))
|
|
22744
22864
|
'''
|
|
22745
22865
|
|
|
@@ -25465,6 +25585,10 @@ class EventSourceMapping(
|
|
|
25465
25585
|
),
|
|
25466
25586
|
on_failure=event_source_dlq,
|
|
25467
25587
|
parallelization_factor=123,
|
|
25588
|
+
provisioned_poller_config=lambda.ProvisionedPollerConfig(
|
|
25589
|
+
maximum_pollers=123,
|
|
25590
|
+
minimum_pollers=123
|
|
25591
|
+
),
|
|
25468
25592
|
report_batch_item_failures=False,
|
|
25469
25593
|
retry_attempts=123,
|
|
25470
25594
|
source_access_configurations=[lambda.SourceAccessConfiguration(
|
|
@@ -25499,6 +25623,7 @@ class EventSourceMapping(
|
|
|
25499
25623
|
metrics_config: typing.Optional[typing.Union[MetricsConfig, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
25500
25624
|
on_failure: typing.Optional[IEventSourceDlq] = None,
|
|
25501
25625
|
parallelization_factor: typing.Optional[jsii.Number] = None,
|
|
25626
|
+
provisioned_poller_config: typing.Optional[typing.Union[ProvisionedPollerConfig, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
25502
25627
|
report_batch_item_failures: typing.Optional[builtins.bool] = None,
|
|
25503
25628
|
retry_attempts: typing.Optional[jsii.Number] = None,
|
|
25504
25629
|
source_access_configurations: typing.Optional[typing.Sequence[typing.Union[SourceAccessConfiguration, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
@@ -25526,6 +25651,7 @@ class EventSourceMapping(
|
|
|
25526
25651
|
:param metrics_config: Configuration for enhanced monitoring metrics collection When specified, enables collection of additional metrics for the stream event source. Default: - Enhanced monitoring is disabled
|
|
25527
25652
|
:param on_failure: An Amazon SQS queue or Amazon SNS topic destination for discarded records. Default: discarded records are ignored
|
|
25528
25653
|
:param parallelization_factor: The number of batches to process from each shard concurrently. Valid Range: - Minimum value of 1 - Maximum value of 10 Default: 1
|
|
25654
|
+
:param provisioned_poller_config: Configuration for provisioned pollers that read from the event source. When specified, allows control over the minimum and maximum number of pollers that can be provisioned to process events from the source. Default: - no provisioned pollers
|
|
25529
25655
|
:param report_batch_item_failures: Allow functions to return partially successful responses for a batch of records. Default: false
|
|
25530
25656
|
:param retry_attempts: The maximum number of times to retry when the function returns an error. Set to ``undefined`` if you want lambda to keep retrying infinitely or until the record expires. Valid Range: - Minimum value of 0 - Maximum value of 10000 Default: - infinite or until the record expires.
|
|
25531
25657
|
:param source_access_configurations: Specific settings like the authentication protocol or the VPC components to secure access to your event source. Default: - none
|
|
@@ -25555,6 +25681,7 @@ class EventSourceMapping(
|
|
|
25555
25681
|
metrics_config=metrics_config,
|
|
25556
25682
|
on_failure=on_failure,
|
|
25557
25683
|
parallelization_factor=parallelization_factor,
|
|
25684
|
+
provisioned_poller_config=provisioned_poller_config,
|
|
25558
25685
|
report_batch_item_failures=report_batch_item_failures,
|
|
25559
25686
|
retry_attempts=retry_attempts,
|
|
25560
25687
|
source_access_configurations=source_access_configurations,
|
|
@@ -25675,6 +25802,7 @@ class FunctionBase(
|
|
|
25675
25802
|
metrics_config: typing.Optional[typing.Union[MetricsConfig, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
25676
25803
|
on_failure: typing.Optional[IEventSourceDlq] = None,
|
|
25677
25804
|
parallelization_factor: typing.Optional[jsii.Number] = None,
|
|
25805
|
+
provisioned_poller_config: typing.Optional[typing.Union[ProvisionedPollerConfig, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
25678
25806
|
report_batch_item_failures: typing.Optional[builtins.bool] = None,
|
|
25679
25807
|
retry_attempts: typing.Optional[jsii.Number] = None,
|
|
25680
25808
|
source_access_configurations: typing.Optional[typing.Sequence[typing.Union[SourceAccessConfiguration, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
@@ -25701,6 +25829,7 @@ class FunctionBase(
|
|
|
25701
25829
|
:param metrics_config: Configuration for enhanced monitoring metrics collection When specified, enables collection of additional metrics for the stream event source. Default: - Enhanced monitoring is disabled
|
|
25702
25830
|
:param on_failure: An Amazon SQS queue or Amazon SNS topic destination for discarded records. Default: discarded records are ignored
|
|
25703
25831
|
:param parallelization_factor: The number of batches to process from each shard concurrently. Valid Range: - Minimum value of 1 - Maximum value of 10 Default: 1
|
|
25832
|
+
:param provisioned_poller_config: Configuration for provisioned pollers that read from the event source. When specified, allows control over the minimum and maximum number of pollers that can be provisioned to process events from the source. Default: - no provisioned pollers
|
|
25704
25833
|
:param report_batch_item_failures: Allow functions to return partially successful responses for a batch of records. Default: false
|
|
25705
25834
|
:param retry_attempts: The maximum number of times to retry when the function returns an error. Set to ``undefined`` if you want lambda to keep retrying infinitely or until the record expires. Valid Range: - Minimum value of 0 - Maximum value of 10000 Default: - infinite or until the record expires.
|
|
25706
25835
|
:param source_access_configurations: Specific settings like the authentication protocol or the VPC components to secure access to your event source. Default: - none
|
|
@@ -25728,6 +25857,7 @@ class FunctionBase(
|
|
|
25728
25857
|
metrics_config=metrics_config,
|
|
25729
25858
|
on_failure=on_failure,
|
|
25730
25859
|
parallelization_factor=parallelization_factor,
|
|
25860
|
+
provisioned_poller_config=provisioned_poller_config,
|
|
25731
25861
|
report_batch_item_failures=report_batch_item_failures,
|
|
25732
25862
|
retry_attempts=retry_attempts,
|
|
25733
25863
|
source_access_configurations=source_access_configurations,
|
|
@@ -28680,6 +28810,7 @@ __all__ = [
|
|
|
28680
28810
|
"ParamsAndSecretsOptions",
|
|
28681
28811
|
"ParamsAndSecretsVersions",
|
|
28682
28812
|
"Permission",
|
|
28813
|
+
"ProvisionedPollerConfig",
|
|
28683
28814
|
"QualifiedFunctionBase",
|
|
28684
28815
|
"RecursiveLoop",
|
|
28685
28816
|
"ResourceBindOptions",
|
|
@@ -30506,6 +30637,7 @@ def _typecheckingstub__7442d2bd60e56a826eab54e95fa6a6ebc8961285a26558c7189840a12
|
|
|
30506
30637
|
metrics_config: typing.Optional[typing.Union[MetricsConfig, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
30507
30638
|
on_failure: typing.Optional[IEventSourceDlq] = None,
|
|
30508
30639
|
parallelization_factor: typing.Optional[jsii.Number] = None,
|
|
30640
|
+
provisioned_poller_config: typing.Optional[typing.Union[ProvisionedPollerConfig, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
30509
30641
|
report_batch_item_failures: typing.Optional[builtins.bool] = None,
|
|
30510
30642
|
retry_attempts: typing.Optional[jsii.Number] = None,
|
|
30511
30643
|
source_access_configurations: typing.Optional[typing.Sequence[typing.Union[SourceAccessConfiguration, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
@@ -30534,6 +30666,7 @@ def _typecheckingstub__e74d0bc5516fc715f7302bdf199df23dddf769e98771f0bac2ff026a4
|
|
|
30534
30666
|
metrics_config: typing.Optional[typing.Union[MetricsConfig, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
30535
30667
|
on_failure: typing.Optional[IEventSourceDlq] = None,
|
|
30536
30668
|
parallelization_factor: typing.Optional[jsii.Number] = None,
|
|
30669
|
+
provisioned_poller_config: typing.Optional[typing.Union[ProvisionedPollerConfig, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
30537
30670
|
report_batch_item_failures: typing.Optional[builtins.bool] = None,
|
|
30538
30671
|
retry_attempts: typing.Optional[jsii.Number] = None,
|
|
30539
30672
|
source_access_configurations: typing.Optional[typing.Sequence[typing.Union[SourceAccessConfiguration, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
@@ -30816,6 +30949,7 @@ def _typecheckingstub__726375d512fd3c0da30be8d20d1c4016974ba77359e6bac8eb3569126
|
|
|
30816
30949
|
metrics_config: typing.Optional[typing.Union[MetricsConfig, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
30817
30950
|
on_failure: typing.Optional[IEventSourceDlq] = None,
|
|
30818
30951
|
parallelization_factor: typing.Optional[jsii.Number] = None,
|
|
30952
|
+
provisioned_poller_config: typing.Optional[typing.Union[ProvisionedPollerConfig, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
30819
30953
|
report_batch_item_failures: typing.Optional[builtins.bool] = None,
|
|
30820
30954
|
retry_attempts: typing.Optional[jsii.Number] = None,
|
|
30821
30955
|
source_access_configurations: typing.Optional[typing.Sequence[typing.Union[SourceAccessConfiguration, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
@@ -31122,6 +31256,14 @@ def _typecheckingstub__43f02634f6ed895ea88b35db6c7a6ba5a7da45fa4945d0f90bf36d079
|
|
|
31122
31256
|
"""Type checking stubs"""
|
|
31123
31257
|
pass
|
|
31124
31258
|
|
|
31259
|
+
def _typecheckingstub__7daeb3a0360a4da1ad9a12a6a656f2d6c53d84bbebb9ef1e2273e4ca2dde8be0(
|
|
31260
|
+
*,
|
|
31261
|
+
maximum_pollers: typing.Optional[jsii.Number] = None,
|
|
31262
|
+
minimum_pollers: typing.Optional[jsii.Number] = None,
|
|
31263
|
+
) -> None:
|
|
31264
|
+
"""Type checking stubs"""
|
|
31265
|
+
pass
|
|
31266
|
+
|
|
31125
31267
|
def _typecheckingstub__a86e9ed2e58c981c2eab632228ec05186303c19cdadd1b38e00879a61963bf36(
|
|
31126
31268
|
*,
|
|
31127
31269
|
resource_property: typing.Optional[builtins.str] = None,
|
|
@@ -31521,6 +31663,7 @@ def _typecheckingstub__b0460bc5250777612d2b42ec799737ce019fcdc03fe86c6540ab2ecec
|
|
|
31521
31663
|
metrics_config: typing.Optional[typing.Union[MetricsConfig, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
31522
31664
|
on_failure: typing.Optional[IEventSourceDlq] = None,
|
|
31523
31665
|
parallelization_factor: typing.Optional[jsii.Number] = None,
|
|
31666
|
+
provisioned_poller_config: typing.Optional[typing.Union[ProvisionedPollerConfig, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
31524
31667
|
report_batch_item_failures: typing.Optional[builtins.bool] = None,
|
|
31525
31668
|
retry_attempts: typing.Optional[jsii.Number] = None,
|
|
31526
31669
|
source_access_configurations: typing.Optional[typing.Sequence[typing.Union[SourceAccessConfiguration, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
@@ -31576,6 +31719,7 @@ def _typecheckingstub__bfc312bd9bc4e64c5ae8419715155a56676bb9fe40870f57ffa4f3030
|
|
|
31576
31719
|
metrics_config: typing.Optional[typing.Union[MetricsConfig, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
31577
31720
|
on_failure: typing.Optional[IEventSourceDlq] = None,
|
|
31578
31721
|
parallelization_factor: typing.Optional[jsii.Number] = None,
|
|
31722
|
+
provisioned_poller_config: typing.Optional[typing.Union[ProvisionedPollerConfig, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
31579
31723
|
report_batch_item_failures: typing.Optional[builtins.bool] = None,
|
|
31580
31724
|
retry_attempts: typing.Optional[jsii.Number] = None,
|
|
31581
31725
|
source_access_configurations: typing.Optional[typing.Sequence[typing.Union[SourceAccessConfiguration, typing.Dict[builtins.str, typing.Any]]]] = None,
|