aws-cdk.aws-lambda-python-alpha 2.277.0a0__py3-none-any.whl → 2.278.0a0__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.
- aws_cdk/aws_lambda_python_alpha/__init__.py +32 -0
- aws_cdk/aws_lambda_python_alpha/_jsii/__init__.py +2 -2
- aws_cdk/aws_lambda_python_alpha/_jsii/aws-lambda-python-alpha@2.278.0-alpha.0.jsii.tgz +0 -0
- {aws_cdk_aws_lambda_python_alpha-2.277.0a0.dist-info → aws_cdk_aws_lambda_python_alpha-2.278.0a0.dist-info}/METADATA +3 -3
- aws_cdk_aws_lambda_python_alpha-2.278.0a0.dist-info/RECORD +10 -0
- aws_cdk/aws_lambda_python_alpha/_jsii/aws-lambda-python-alpha@2.277.0-alpha.0.jsii.tgz +0 -0
- aws_cdk_aws_lambda_python_alpha-2.277.0a0.dist-info/RECORD +0 -10
- {aws_cdk_aws_lambda_python_alpha-2.277.0a0.dist-info → aws_cdk_aws_lambda_python_alpha-2.278.0a0.dist-info}/LICENSE +0 -0
- {aws_cdk_aws_lambda_python_alpha-2.277.0a0.dist-info → aws_cdk_aws_lambda_python_alpha-2.278.0a0.dist-info}/NOTICE +0 -0
- {aws_cdk_aws_lambda_python_alpha-2.277.0a0.dist-info → aws_cdk_aws_lambda_python_alpha-2.278.0a0.dist-info}/WHEEL +0 -0
- {aws_cdk_aws_lambda_python_alpha-2.277.0a0.dist-info → aws_cdk_aws_lambda_python_alpha-2.278.0a0.dist-info}/top_level.txt +0 -0
|
@@ -976,6 +976,7 @@ class PythonFunction(
|
|
|
976
976
|
bundling: typing.Optional[typing.Union["BundlingOptions", typing.Dict[builtins.str, typing.Any]]] = None,
|
|
977
977
|
handler: typing.Optional[builtins.str] = None,
|
|
978
978
|
index: typing.Optional[builtins.str] = None,
|
|
979
|
+
accelerator_config: typing.Optional[typing.Union["_aws_cdk_aws_lambda_ceddda9d.AcceleratorConfig", typing.Dict[builtins.str, typing.Any]]] = None,
|
|
979
980
|
adot_instrumentation: typing.Optional[typing.Union["_aws_cdk_aws_lambda_ceddda9d.AdotInstrumentationConfig", typing.Dict[builtins.str, typing.Any]]] = None,
|
|
980
981
|
allow_all_ipv6_outbound: typing.Optional[builtins.bool] = None,
|
|
981
982
|
allow_all_outbound: typing.Optional[builtins.bool] = None,
|
|
@@ -1037,6 +1038,7 @@ class PythonFunction(
|
|
|
1037
1038
|
:param bundling: (experimental) Bundling options to use for this function. Use this to specify custom bundling options like the bundling Docker image, asset hash type, custom hash, architecture, etc. Default: - Use the default bundling Docker image, with x86_64 architecture.
|
|
1038
1039
|
:param handler: (experimental) The name of the exported handler in the index file. Default: handler
|
|
1039
1040
|
:param index: (experimental) The path (relative to entry) to the index file containing the exported handler. Default: index.py
|
|
1041
|
+
:param accelerator_config: Accelerator configuration for the function. Configures the accelerator resource settings for the execution environment, including the amount of accelerator memory to allocate. The function must be attached to a capacity provider (``capacityProvider.addFunction(fn)``), use a container image (``Runtime.FROM_IMAGE``) on x86_64, and set ``memorySize`` to at least 2048 MiB. When set, ``ephemeralStorageSize`` may be up to 32 GiB. Default: - No accelerator configuration
|
|
1040
1042
|
:param adot_instrumentation: Specify the configuration of AWS Distro for OpenTelemetry (ADOT) instrumentation. Default: - No ADOT instrumentation
|
|
1041
1043
|
:param allow_all_ipv6_outbound: Whether to allow the Lambda to send all ipv6 network traffic. If set to true, there will only be a single egress rule which allows all outbound ipv6 traffic. If set to false, you must individually add traffic rules to allow the Lambda to connect to network targets using ipv6. Do not specify this property if the ``securityGroups`` or ``securityGroup`` property is set. Instead, configure ``allowAllIpv6Outbound`` directly on the security group. Default: false
|
|
1042
1044
|
:param allow_all_outbound: Whether to allow the Lambda to send all network traffic (except ipv6). If set to false, you must individually add traffic rules to allow the Lambda to connect to network targets. Do not specify this property if the ``securityGroups`` or ``securityGroup`` property is set. Instead, configure ``allowAllOutbound`` directly on the security group. Default: true
|
|
@@ -1102,6 +1104,7 @@ class PythonFunction(
|
|
|
1102
1104
|
bundling=bundling,
|
|
1103
1105
|
handler=handler,
|
|
1104
1106
|
index=index,
|
|
1107
|
+
accelerator_config=accelerator_config,
|
|
1105
1108
|
adot_instrumentation=adot_instrumentation,
|
|
1106
1109
|
allow_all_ipv6_outbound=allow_all_ipv6_outbound,
|
|
1107
1110
|
allow_all_outbound=allow_all_outbound,
|
|
@@ -1177,6 +1180,7 @@ class PythonFunction(
|
|
|
1177
1180
|
"on_failure": "onFailure",
|
|
1178
1181
|
"on_success": "onSuccess",
|
|
1179
1182
|
"retry_attempts": "retryAttempts",
|
|
1183
|
+
"accelerator_config": "acceleratorConfig",
|
|
1180
1184
|
"adot_instrumentation": "adotInstrumentation",
|
|
1181
1185
|
"allow_all_ipv6_outbound": "allowAllIpv6Outbound",
|
|
1182
1186
|
"allow_all_outbound": "allowAllOutbound",
|
|
@@ -1240,6 +1244,7 @@ class PythonFunctionProps(_aws_cdk_aws_lambda_ceddda9d.FunctionOptions):
|
|
|
1240
1244
|
on_failure: typing.Optional["_aws_cdk_aws_lambda_ceddda9d.IDestination"] = None,
|
|
1241
1245
|
on_success: typing.Optional["_aws_cdk_aws_lambda_ceddda9d.IDestination"] = None,
|
|
1242
1246
|
retry_attempts: typing.Optional[jsii.Number] = None,
|
|
1247
|
+
accelerator_config: typing.Optional[typing.Union["_aws_cdk_aws_lambda_ceddda9d.AcceleratorConfig", typing.Dict[builtins.str, typing.Any]]] = None,
|
|
1243
1248
|
adot_instrumentation: typing.Optional[typing.Union["_aws_cdk_aws_lambda_ceddda9d.AdotInstrumentationConfig", typing.Dict[builtins.str, typing.Any]]] = None,
|
|
1244
1249
|
allow_all_ipv6_outbound: typing.Optional[builtins.bool] = None,
|
|
1245
1250
|
allow_all_outbound: typing.Optional[builtins.bool] = None,
|
|
@@ -1300,6 +1305,7 @@ class PythonFunctionProps(_aws_cdk_aws_lambda_ceddda9d.FunctionOptions):
|
|
|
1300
1305
|
:param on_failure: The destination for failed invocations. Default: - no destination
|
|
1301
1306
|
:param on_success: The destination for successful invocations. Default: - no destination
|
|
1302
1307
|
:param retry_attempts: The maximum number of times to retry when the function returns an error. Minimum: 0 Maximum: 2 Default: 2
|
|
1308
|
+
:param accelerator_config: Accelerator configuration for the function. Configures the accelerator resource settings for the execution environment, including the amount of accelerator memory to allocate. The function must be attached to a capacity provider (``capacityProvider.addFunction(fn)``), use a container image (``Runtime.FROM_IMAGE``) on x86_64, and set ``memorySize`` to at least 2048 MiB. When set, ``ephemeralStorageSize`` may be up to 32 GiB. Default: - No accelerator configuration
|
|
1303
1309
|
:param adot_instrumentation: Specify the configuration of AWS Distro for OpenTelemetry (ADOT) instrumentation. Default: - No ADOT instrumentation
|
|
1304
1310
|
:param allow_all_ipv6_outbound: Whether to allow the Lambda to send all ipv6 network traffic. If set to true, there will only be a single egress rule which allows all outbound ipv6 traffic. If set to false, you must individually add traffic rules to allow the Lambda to connect to network targets using ipv6. Do not specify this property if the ``securityGroups`` or ``securityGroup`` property is set. Instead, configure ``allowAllIpv6Outbound`` directly on the security group. Default: false
|
|
1305
1311
|
:param allow_all_outbound: Whether to allow the Lambda to send all network traffic (except ipv6). If set to false, you must individually add traffic rules to allow the Lambda to connect to network targets. Do not specify this property if the ``securityGroups`` or ``securityGroup`` property is set. Instead, configure ``allowAllOutbound`` directly on the security group. Default: true
|
|
@@ -1370,6 +1376,8 @@ class PythonFunctionProps(_aws_cdk_aws_lambda_ceddda9d.FunctionOptions):
|
|
|
1370
1376
|
)
|
|
1371
1377
|
)
|
|
1372
1378
|
'''
|
|
1379
|
+
if isinstance(accelerator_config, dict):
|
|
1380
|
+
accelerator_config = _aws_cdk_aws_lambda_ceddda9d.AcceleratorConfig(**accelerator_config)
|
|
1373
1381
|
if isinstance(adot_instrumentation, dict):
|
|
1374
1382
|
adot_instrumentation = _aws_cdk_aws_lambda_ceddda9d.AdotInstrumentationConfig(**adot_instrumentation)
|
|
1375
1383
|
if isinstance(current_version_options, dict):
|
|
@@ -1388,6 +1396,7 @@ class PythonFunctionProps(_aws_cdk_aws_lambda_ceddda9d.FunctionOptions):
|
|
|
1388
1396
|
check_type(argname="argument on_failure", value=on_failure, expected_type=type_hints["on_failure"])
|
|
1389
1397
|
check_type(argname="argument on_success", value=on_success, expected_type=type_hints["on_success"])
|
|
1390
1398
|
check_type(argname="argument retry_attempts", value=retry_attempts, expected_type=type_hints["retry_attempts"])
|
|
1399
|
+
check_type(argname="argument accelerator_config", value=accelerator_config, expected_type=type_hints["accelerator_config"])
|
|
1391
1400
|
check_type(argname="argument adot_instrumentation", value=adot_instrumentation, expected_type=type_hints["adot_instrumentation"])
|
|
1392
1401
|
check_type(argname="argument allow_all_ipv6_outbound", value=allow_all_ipv6_outbound, expected_type=type_hints["allow_all_ipv6_outbound"])
|
|
1393
1402
|
check_type(argname="argument allow_all_outbound", value=allow_all_outbound, expected_type=type_hints["allow_all_outbound"])
|
|
@@ -1453,6 +1462,8 @@ class PythonFunctionProps(_aws_cdk_aws_lambda_ceddda9d.FunctionOptions):
|
|
|
1453
1462
|
self._values["on_success"] = on_success
|
|
1454
1463
|
if retry_attempts is not None:
|
|
1455
1464
|
self._values["retry_attempts"] = retry_attempts
|
|
1465
|
+
if accelerator_config is not None:
|
|
1466
|
+
self._values["accelerator_config"] = accelerator_config
|
|
1456
1467
|
if adot_instrumentation is not None:
|
|
1457
1468
|
self._values["adot_instrumentation"] = adot_instrumentation
|
|
1458
1469
|
if allow_all_ipv6_outbound is not None:
|
|
@@ -1602,6 +1613,25 @@ class PythonFunctionProps(_aws_cdk_aws_lambda_ceddda9d.FunctionOptions):
|
|
|
1602
1613
|
result = self._values.get("retry_attempts")
|
|
1603
1614
|
return typing.cast(typing.Optional[jsii.Number], result)
|
|
1604
1615
|
|
|
1616
|
+
@builtins.property
|
|
1617
|
+
def accelerator_config(
|
|
1618
|
+
self,
|
|
1619
|
+
) -> typing.Optional["_aws_cdk_aws_lambda_ceddda9d.AcceleratorConfig"]:
|
|
1620
|
+
'''Accelerator configuration for the function.
|
|
1621
|
+
|
|
1622
|
+
Configures the accelerator resource settings for the execution environment, including
|
|
1623
|
+
the amount of accelerator memory to allocate. The function must be attached to a
|
|
1624
|
+
capacity provider (``capacityProvider.addFunction(fn)``), use a container image
|
|
1625
|
+
(``Runtime.FROM_IMAGE``) on x86_64, and set ``memorySize`` to at least 2048 MiB.
|
|
1626
|
+
When set, ``ephemeralStorageSize`` may be up to 32 GiB.
|
|
1627
|
+
|
|
1628
|
+
:default: - No accelerator configuration
|
|
1629
|
+
|
|
1630
|
+
:see: https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/aws-properties-lambda-function-acceleratorconfig.html
|
|
1631
|
+
'''
|
|
1632
|
+
result = self._values.get("accelerator_config")
|
|
1633
|
+
return typing.cast(typing.Optional["_aws_cdk_aws_lambda_ceddda9d.AcceleratorConfig"], result)
|
|
1634
|
+
|
|
1605
1635
|
@builtins.property
|
|
1606
1636
|
def adot_instrumentation(
|
|
1607
1637
|
self,
|
|
@@ -2619,6 +2649,7 @@ def _typecheckingstub__5537a9d2877d6e8ff1275d2f45fdfd2900b726517ad0fa1c220fba47a
|
|
|
2619
2649
|
bundling: typing.Optional[typing.Union[BundlingOptions, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
2620
2650
|
handler: typing.Optional[builtins.str] = None,
|
|
2621
2651
|
index: typing.Optional[builtins.str] = None,
|
|
2652
|
+
accelerator_config: typing.Optional[typing.Union[_aws_cdk_aws_lambda_ceddda9d.AcceleratorConfig, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
2622
2653
|
adot_instrumentation: typing.Optional[typing.Union[_aws_cdk_aws_lambda_ceddda9d.AdotInstrumentationConfig, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
2623
2654
|
allow_all_ipv6_outbound: typing.Optional[builtins.bool] = None,
|
|
2624
2655
|
allow_all_outbound: typing.Optional[builtins.bool] = None,
|
|
@@ -2681,6 +2712,7 @@ def _typecheckingstub__637cd4e3d3f8768a5067bfaaca86ae334c7670354dabddcb67008214b
|
|
|
2681
2712
|
on_failure: typing.Optional[_aws_cdk_aws_lambda_ceddda9d.IDestination] = None,
|
|
2682
2713
|
on_success: typing.Optional[_aws_cdk_aws_lambda_ceddda9d.IDestination] = None,
|
|
2683
2714
|
retry_attempts: typing.Optional[jsii.Number] = None,
|
|
2715
|
+
accelerator_config: typing.Optional[typing.Union[_aws_cdk_aws_lambda_ceddda9d.AcceleratorConfig, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
2684
2716
|
adot_instrumentation: typing.Optional[typing.Union[_aws_cdk_aws_lambda_ceddda9d.AdotInstrumentationConfig, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
2685
2717
|
allow_all_ipv6_outbound: typing.Optional[builtins.bool] = None,
|
|
2686
2718
|
allow_all_outbound: typing.Optional[builtins.bool] = None,
|
|
@@ -19,9 +19,9 @@ import constructs._jsii
|
|
|
19
19
|
|
|
20
20
|
__jsii_assembly__ = jsii.JSIIAssembly.load(
|
|
21
21
|
"@aws-cdk/aws-lambda-python-alpha",
|
|
22
|
-
"2.
|
|
22
|
+
"2.278.0-alpha.0",
|
|
23
23
|
__name__[0:-6],
|
|
24
|
-
"aws-lambda-python-alpha@2.
|
|
24
|
+
"aws-lambda-python-alpha@2.278.0-alpha.0.jsii.tgz",
|
|
25
25
|
)
|
|
26
26
|
|
|
27
27
|
__all__ = [
|
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: aws-cdk.aws-lambda-python-alpha
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.278.0a0
|
|
4
4
|
Summary: The CDK Construct Library for AWS Lambda in Python
|
|
5
5
|
Home-page: https://github.com/aws/aws-cdk
|
|
6
6
|
Author: Amazon Web Services
|
|
@@ -24,9 +24,9 @@ Requires-Python: >=3.10
|
|
|
24
24
|
Description-Content-Type: text/markdown
|
|
25
25
|
License-File: LICENSE
|
|
26
26
|
License-File: NOTICE
|
|
27
|
-
Requires-Dist: aws-cdk-lib <3.0.0,>=2.
|
|
27
|
+
Requires-Dist: aws-cdk-lib <3.0.0,>=2.278.0
|
|
28
28
|
Requires-Dist: constructs <11.0.0,>=10.5.0
|
|
29
|
-
Requires-Dist: jsii <2.0.0,>=1.
|
|
29
|
+
Requires-Dist: jsii <2.0.0,>=1.143.0
|
|
30
30
|
Requires-Dist: publication >=0.0.3
|
|
31
31
|
|
|
32
32
|
# Amazon Lambda Python Library
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
aws_cdk/aws_lambda_python_alpha/__init__.py,sha256=vgN7bcXZTJv33qyR36st7fUcvHVzNrvG3K9h6TJA6xE,157780
|
|
2
|
+
aws_cdk/aws_lambda_python_alpha/py.typed,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
|
3
|
+
aws_cdk/aws_lambda_python_alpha/_jsii/__init__.py,sha256=fkVizpgEUM-NnJiszcsQy3RBKmI1Q8GCWF_MGYgTlLI,561
|
|
4
|
+
aws_cdk/aws_lambda_python_alpha/_jsii/aws-lambda-python-alpha@2.278.0-alpha.0.jsii.tgz,sha256=kk3bOAlkdfab68VOGOzcQ6oWhwo3j1Qf-pJeMM05p9Y,65100
|
|
5
|
+
aws_cdk_aws_lambda_python_alpha-2.278.0a0.dist-info/LICENSE,sha256=2i1dyWc6JoMBGYQf_po4g-uM8z4_AahKfcXHpaD71KI,11391
|
|
6
|
+
aws_cdk_aws_lambda_python_alpha-2.278.0a0.dist-info/METADATA,sha256=QzcDYH9sjvv_JoewhhFtCemXyoEZ2FrUgdcFzLDQS0k,13025
|
|
7
|
+
aws_cdk_aws_lambda_python_alpha-2.278.0a0.dist-info/NOTICE,sha256=Zzb2qGp704gVWCXjR1Tgak-U6oY8xINryUtPmiPK6J8,113
|
|
8
|
+
aws_cdk_aws_lambda_python_alpha-2.278.0a0.dist-info/WHEEL,sha256=BNRMDyzLkkcmlv0J8ppDQkk2VED33SesJDynr9ED1gc,91
|
|
9
|
+
aws_cdk_aws_lambda_python_alpha-2.278.0a0.dist-info/top_level.txt,sha256=1TALAKbuUGsMSrfKWEf268lySCmcqSEO6cDYe_XlLHM,8
|
|
10
|
+
aws_cdk_aws_lambda_python_alpha-2.278.0a0.dist-info/RECORD,,
|
|
Binary file
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
aws_cdk/aws_lambda_python_alpha/__init__.py,sha256=XgGFSaECCJl_rWmn_EyqjiyYnqCPYEmYq2QgEyHNPwQ,154684
|
|
2
|
-
aws_cdk/aws_lambda_python_alpha/py.typed,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
|
3
|
-
aws_cdk/aws_lambda_python_alpha/_jsii/__init__.py,sha256=NJn7n2NxMCfCsURk6T1Xt-_sLpVaSNKz4ks0jgyNa_c,561
|
|
4
|
-
aws_cdk/aws_lambda_python_alpha/_jsii/aws-lambda-python-alpha@2.277.0-alpha.0.jsii.tgz,sha256=AvvvzOSwz9RDKEAQ8JOvFDPuFQuGVPn5tX4HR_mDdZo,65321
|
|
5
|
-
aws_cdk_aws_lambda_python_alpha-2.277.0a0.dist-info/LICENSE,sha256=2i1dyWc6JoMBGYQf_po4g-uM8z4_AahKfcXHpaD71KI,11391
|
|
6
|
-
aws_cdk_aws_lambda_python_alpha-2.277.0a0.dist-info/METADATA,sha256=k0ZPwM6Yb4witCH0Q0CaFUXcouRodNF2dmQgYLMvzBs,13025
|
|
7
|
-
aws_cdk_aws_lambda_python_alpha-2.277.0a0.dist-info/NOTICE,sha256=Zzb2qGp704gVWCXjR1Tgak-U6oY8xINryUtPmiPK6J8,113
|
|
8
|
-
aws_cdk_aws_lambda_python_alpha-2.277.0a0.dist-info/WHEEL,sha256=BNRMDyzLkkcmlv0J8ppDQkk2VED33SesJDynr9ED1gc,91
|
|
9
|
-
aws_cdk_aws_lambda_python_alpha-2.277.0a0.dist-info/top_level.txt,sha256=1TALAKbuUGsMSrfKWEf268lySCmcqSEO6cDYe_XlLHM,8
|
|
10
|
-
aws_cdk_aws_lambda_python_alpha-2.277.0a0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|