aws-cdk-lib 2.143.1__py3-none-any.whl → 2.145.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/__init__.py +1 -1
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.143.1.jsii.tgz → aws-cdk-lib@2.145.0.jsii.tgz} +0 -0
- aws_cdk/aws_apigatewayv2_authorizers/__init__.py +27 -0
- aws_cdk/aws_apigatewayv2_integrations/__init__.py +28 -0
- aws_cdk/aws_appconfig/__init__.py +132 -1
- aws_cdk/aws_autoscaling/__init__.py +4 -4
- aws_cdk/aws_bedrock/__init__.py +48 -0
- aws_cdk/aws_chatbot/__init__.py +149 -2
- aws_cdk/aws_cloudfront/experimental/__init__.py +65 -9
- aws_cdk/aws_codebuild/__init__.py +801 -16
- aws_cdk/aws_config/__init__.py +1305 -45
- aws_cdk/aws_dynamodb/__init__.py +309 -3
- aws_cdk/aws_ec2/__init__.py +112 -31
- aws_cdk/aws_ecs_patterns/__init__.py +89 -7
- aws_cdk/aws_eks/__init__.py +185 -41
- aws_cdk/aws_fsx/__init__.py +4 -4
- aws_cdk/aws_glue/__init__.py +39 -0
- aws_cdk/aws_iam/__init__.py +3 -3
- aws_cdk/aws_lambda/__init__.py +605 -42
- aws_cdk/aws_lambda_nodejs/__init__.py +160 -13
- aws_cdk/aws_logs/__init__.py +114 -8
- aws_cdk/aws_logs_destinations/__init__.py +11 -9
- aws_cdk/aws_mediaconnect/__init__.py +2 -6
- aws_cdk/aws_medialive/__init__.py +20 -2
- aws_cdk/aws_mediapackagev2/__init__.py +476 -0
- aws_cdk/aws_rds/__init__.py +27 -19
- aws_cdk/aws_route53/__init__.py +3 -3
- aws_cdk/aws_s3/__init__.py +21 -0
- aws_cdk/aws_s3_deployment/__init__.py +3 -2
- aws_cdk/aws_securityhub/__init__.py +2415 -374
- aws_cdk/aws_securitylake/__init__.py +179 -314
- aws_cdk/aws_sqs/__init__.py +2 -2
- aws_cdk/aws_stepfunctions/__init__.py +53 -24
- aws_cdk/aws_stepfunctions_tasks/__init__.py +763 -16
- aws_cdk/pipelines/__init__.py +2 -0
- aws_cdk/triggers/__init__.py +65 -9
- {aws_cdk_lib-2.143.1.dist-info → aws_cdk_lib-2.145.0.dist-info}/METADATA +1 -1
- {aws_cdk_lib-2.143.1.dist-info → aws_cdk_lib-2.145.0.dist-info}/RECORD +43 -43
- {aws_cdk_lib-2.143.1.dist-info → aws_cdk_lib-2.145.0.dist-info}/WHEEL +1 -1
- {aws_cdk_lib-2.143.1.dist-info → aws_cdk_lib-2.145.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.143.1.dist-info → aws_cdk_lib-2.145.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.143.1.dist-info → aws_cdk_lib-2.145.0.dist-info}/top_level.txt +0 -0
aws_cdk/aws_lambda/__init__.py
CHANGED
|
@@ -26,6 +26,10 @@ runtime code.
|
|
|
26
26
|
* `lambda.Code.fromDockerBuild(path, options)` - use the result of a Docker
|
|
27
27
|
build as code. The runtime code is expected to be located at `/asset` in the
|
|
28
28
|
image and will be zipped and uploaded to S3 as an asset.
|
|
29
|
+
* `lambda.Code.fromCustomCommand(output, command, customCommandOptions)` -
|
|
30
|
+
supply a command that is invoked during cdk synth. That command is meant to direct
|
|
31
|
+
the generated code to output (a zip file or a directory), which is then used as the
|
|
32
|
+
code for the created AWS Lambda.
|
|
29
33
|
|
|
30
34
|
The following example shows how to define a Python function and deploy the code
|
|
31
35
|
from the local directory `my-lambda-handler` to it:
|
|
@@ -175,13 +179,13 @@ lambda_.Function(self, "Lambda",
|
|
|
175
179
|
handler="index.handler",
|
|
176
180
|
runtime=lambda_.Runtime.NODEJS_18_X,
|
|
177
181
|
logging_format=lambda_.LoggingFormat.JSON,
|
|
178
|
-
|
|
179
|
-
|
|
182
|
+
system_log_level_v2=lambda_.SystemLogLevel.INFO,
|
|
183
|
+
application_log_level_v2=lambda_.ApplicationLogLevel.INFO,
|
|
180
184
|
log_group=log_group
|
|
181
185
|
)
|
|
182
186
|
```
|
|
183
187
|
|
|
184
|
-
To use `
|
|
188
|
+
To use `applicationLogLevelV2` and/or `systemLogLevelV2` you must set `loggingFormat` to `LoggingFormat.JSON`.
|
|
185
189
|
|
|
186
190
|
## Resource-based Policies
|
|
187
191
|
|
|
@@ -1643,6 +1647,12 @@ class AdotLambdaLayerGenericVersion(
|
|
|
1643
1647
|
'''Version 0.90.1.'''
|
|
1644
1648
|
return typing.cast("AdotLambdaLayerGenericVersion", jsii.sget(cls, "V0_90_1"))
|
|
1645
1649
|
|
|
1650
|
+
@jsii.python.classproperty
|
|
1651
|
+
@jsii.member(jsii_name="V0_98_0")
|
|
1652
|
+
def V0_98_0(cls) -> "AdotLambdaLayerGenericVersion":
|
|
1653
|
+
'''Version 0.98.0.'''
|
|
1654
|
+
return typing.cast("AdotLambdaLayerGenericVersion", jsii.sget(cls, "V0_98_0"))
|
|
1655
|
+
|
|
1646
1656
|
@builtins.property
|
|
1647
1657
|
@jsii.member(jsii_name="layerVersion")
|
|
1648
1658
|
def _layer_version(self) -> builtins.str:
|
|
@@ -1998,6 +2008,12 @@ class AdotLambdaLayerPythonSdkVersion(
|
|
|
1998
2008
|
'''Version 1.21.0.'''
|
|
1999
2009
|
return typing.cast("AdotLambdaLayerPythonSdkVersion", jsii.sget(cls, "V1_21_0"))
|
|
2000
2010
|
|
|
2011
|
+
@jsii.python.classproperty
|
|
2012
|
+
@jsii.member(jsii_name="V1_24_0")
|
|
2013
|
+
def V1_24_0(cls) -> "AdotLambdaLayerPythonSdkVersion":
|
|
2014
|
+
'''Version 1.24.0.'''
|
|
2015
|
+
return typing.cast("AdotLambdaLayerPythonSdkVersion", jsii.sget(cls, "V1_24_0"))
|
|
2016
|
+
|
|
2001
2017
|
@builtins.property
|
|
2002
2018
|
@jsii.member(jsii_name="layerVersion")
|
|
2003
2019
|
def _layer_version(self) -> builtins.str:
|
|
@@ -2191,8 +2207,8 @@ class ApplicationLogLevel(enum.Enum):
|
|
|
2191
2207
|
handler="index.handler",
|
|
2192
2208
|
runtime=lambda_.Runtime.NODEJS_18_X,
|
|
2193
2209
|
logging_format=lambda_.LoggingFormat.JSON,
|
|
2194
|
-
|
|
2195
|
-
|
|
2210
|
+
system_log_level_v2=lambda_.SystemLogLevel.INFO,
|
|
2211
|
+
application_log_level_v2=lambda_.ApplicationLogLevel.INFO,
|
|
2196
2212
|
log_group=log_group
|
|
2197
2213
|
)
|
|
2198
2214
|
'''
|
|
@@ -10627,6 +10643,55 @@ class Code(metaclass=jsii.JSIIAbstractClass, jsii_type="aws-cdk-lib.aws_lambda.C
|
|
|
10627
10643
|
|
|
10628
10644
|
return typing.cast("CfnParametersCode", jsii.sinvoke(cls, "fromCfnParameters", [props]))
|
|
10629
10645
|
|
|
10646
|
+
@jsii.member(jsii_name="fromCustomCommand")
|
|
10647
|
+
@builtins.classmethod
|
|
10648
|
+
def from_custom_command(
|
|
10649
|
+
cls,
|
|
10650
|
+
output: builtins.str,
|
|
10651
|
+
command: typing.Sequence[builtins.str],
|
|
10652
|
+
*,
|
|
10653
|
+
command_options: typing.Optional[typing.Mapping[builtins.str, typing.Any]] = None,
|
|
10654
|
+
deploy_time: typing.Optional[builtins.bool] = None,
|
|
10655
|
+
readers: typing.Optional[typing.Sequence[_IGrantable_71c4f5de]] = None,
|
|
10656
|
+
asset_hash: typing.Optional[builtins.str] = None,
|
|
10657
|
+
asset_hash_type: typing.Optional[_AssetHashType_05b67f2d] = None,
|
|
10658
|
+
bundling: typing.Optional[typing.Union[_BundlingOptions_588cc936, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
10659
|
+
exclude: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
10660
|
+
follow_symlinks: typing.Optional[_SymlinkFollowMode_047ec1f6] = None,
|
|
10661
|
+
ignore_mode: typing.Optional[_IgnoreMode_655a98e8] = None,
|
|
10662
|
+
) -> "AssetCode":
|
|
10663
|
+
'''Runs a command to build the code asset that will be used.
|
|
10664
|
+
|
|
10665
|
+
:param output: Where the output of the command will be directed, either a directory or a .zip file with the output Lambda code bundle * For example, if you use the command to run a build script (e.g., [ 'node', 'bundle_code.js' ]), and the build script generates a directory ``/my/lambda/code`` containing code that should be ran in a Lambda function, then output should be set to ``/my/lambda/code``.
|
|
10666
|
+
:param command: The command which will be executed to generate the output, for example, [ 'node', 'bundle_code.js' ].
|
|
10667
|
+
:param command_options: options that are passed to the spawned process, which determine the characteristics of the spawned process. Default: : see ``child_process.SpawnSyncOptions`` (https://nodejs.org/api/child_process.html#child_processspawnsynccommand-args-options).
|
|
10668
|
+
:param deploy_time: Whether or not the asset needs to exist beyond deployment time; i.e. are copied over to a different location and not needed afterwards. Setting this property to true has an impact on the lifecycle of the asset, because we will assume that it is safe to delete after the CloudFormation deployment succeeds. For example, Lambda Function assets are copied over to Lambda during deployment. Therefore, it is not necessary to store the asset in S3, so we consider those deployTime assets. Default: false
|
|
10669
|
+
:param readers: A list of principals that should be able to read this asset from S3. You can use ``asset.grantRead(principal)`` to grant read permissions later. Default: - No principals that can read file asset.
|
|
10670
|
+
:param asset_hash: Specify a custom hash for this asset. If ``assetHashType`` is set it must be set to ``AssetHashType.CUSTOM``. For consistency, this custom hash will be SHA256 hashed and encoded as hex. The resulting hash will be the asset hash. NOTE: the hash is used in order to identify a specific revision of the asset, and used for optimizing and caching deployment activities related to this asset such as packaging, uploading to Amazon S3, etc. If you chose to customize the hash, you will need to make sure it is updated every time the asset changes, or otherwise it is possible that some deployments will not be invalidated. Default: - based on ``assetHashType``
|
|
10671
|
+
:param asset_hash_type: Specifies the type of hash to calculate for this asset. If ``assetHash`` is configured, this option must be ``undefined`` or ``AssetHashType.CUSTOM``. Default: - the default is ``AssetHashType.SOURCE``, but if ``assetHash`` is explicitly specified this value defaults to ``AssetHashType.CUSTOM``.
|
|
10672
|
+
:param bundling: Bundle the asset by executing a command in a Docker container or a custom bundling provider. The asset path will be mounted at ``/asset-input``. The Docker container is responsible for putting content at ``/asset-output``. The content at ``/asset-output`` will be zipped and used as the final asset. Default: - uploaded as-is to S3 if the asset is a regular file or a .zip file, archived into a .zip file and uploaded to S3 otherwise
|
|
10673
|
+
:param exclude: File paths matching the patterns will be excluded. See ``ignoreMode`` to set the matching behavior. Has no effect on Assets bundled using the ``bundling`` property. Default: - nothing is excluded
|
|
10674
|
+
:param follow_symlinks: A strategy for how to handle symlinks. Default: SymlinkFollowMode.NEVER
|
|
10675
|
+
:param ignore_mode: The ignore behavior to use for ``exclude`` patterns. Default: IgnoreMode.GLOB
|
|
10676
|
+
'''
|
|
10677
|
+
if __debug__:
|
|
10678
|
+
type_hints = typing.get_type_hints(_typecheckingstub__f107aedaa96b9385600e34088d5cda9d8035f15776c846b0f0b4fbbe35d118df)
|
|
10679
|
+
check_type(argname="argument output", value=output, expected_type=type_hints["output"])
|
|
10680
|
+
check_type(argname="argument command", value=command, expected_type=type_hints["command"])
|
|
10681
|
+
options = CustomCommandOptions(
|
|
10682
|
+
command_options=command_options,
|
|
10683
|
+
deploy_time=deploy_time,
|
|
10684
|
+
readers=readers,
|
|
10685
|
+
asset_hash=asset_hash,
|
|
10686
|
+
asset_hash_type=asset_hash_type,
|
|
10687
|
+
bundling=bundling,
|
|
10688
|
+
exclude=exclude,
|
|
10689
|
+
follow_symlinks=follow_symlinks,
|
|
10690
|
+
ignore_mode=ignore_mode,
|
|
10691
|
+
)
|
|
10692
|
+
|
|
10693
|
+
return typing.cast("AssetCode", jsii.sinvoke(cls, "fromCustomCommand", [output, command, options]))
|
|
10694
|
+
|
|
10630
10695
|
@jsii.member(jsii_name="fromDockerBuild")
|
|
10631
10696
|
@builtins.classmethod
|
|
10632
10697
|
def from_docker_build(
|
|
@@ -11098,6 +11163,269 @@ class CodeSigningConfigProps:
|
|
|
11098
11163
|
)
|
|
11099
11164
|
|
|
11100
11165
|
|
|
11166
|
+
@jsii.data_type(
|
|
11167
|
+
jsii_type="aws-cdk-lib.aws_lambda.CustomCommandOptions",
|
|
11168
|
+
jsii_struct_bases=[_AssetOptions_2aa69621],
|
|
11169
|
+
name_mapping={
|
|
11170
|
+
"asset_hash": "assetHash",
|
|
11171
|
+
"asset_hash_type": "assetHashType",
|
|
11172
|
+
"bundling": "bundling",
|
|
11173
|
+
"exclude": "exclude",
|
|
11174
|
+
"follow_symlinks": "followSymlinks",
|
|
11175
|
+
"ignore_mode": "ignoreMode",
|
|
11176
|
+
"deploy_time": "deployTime",
|
|
11177
|
+
"readers": "readers",
|
|
11178
|
+
"command_options": "commandOptions",
|
|
11179
|
+
},
|
|
11180
|
+
)
|
|
11181
|
+
class CustomCommandOptions(_AssetOptions_2aa69621):
|
|
11182
|
+
def __init__(
|
|
11183
|
+
self,
|
|
11184
|
+
*,
|
|
11185
|
+
asset_hash: typing.Optional[builtins.str] = None,
|
|
11186
|
+
asset_hash_type: typing.Optional[_AssetHashType_05b67f2d] = None,
|
|
11187
|
+
bundling: typing.Optional[typing.Union[_BundlingOptions_588cc936, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
11188
|
+
exclude: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
11189
|
+
follow_symlinks: typing.Optional[_SymlinkFollowMode_047ec1f6] = None,
|
|
11190
|
+
ignore_mode: typing.Optional[_IgnoreMode_655a98e8] = None,
|
|
11191
|
+
deploy_time: typing.Optional[builtins.bool] = None,
|
|
11192
|
+
readers: typing.Optional[typing.Sequence[_IGrantable_71c4f5de]] = None,
|
|
11193
|
+
command_options: typing.Optional[typing.Mapping[builtins.str, typing.Any]] = None,
|
|
11194
|
+
) -> None:
|
|
11195
|
+
'''Options for creating ``AssetCode`` with a custom command, such as running a buildfile.
|
|
11196
|
+
|
|
11197
|
+
:param asset_hash: Specify a custom hash for this asset. If ``assetHashType`` is set it must be set to ``AssetHashType.CUSTOM``. For consistency, this custom hash will be SHA256 hashed and encoded as hex. The resulting hash will be the asset hash. NOTE: the hash is used in order to identify a specific revision of the asset, and used for optimizing and caching deployment activities related to this asset such as packaging, uploading to Amazon S3, etc. If you chose to customize the hash, you will need to make sure it is updated every time the asset changes, or otherwise it is possible that some deployments will not be invalidated. Default: - based on ``assetHashType``
|
|
11198
|
+
:param asset_hash_type: Specifies the type of hash to calculate for this asset. If ``assetHash`` is configured, this option must be ``undefined`` or ``AssetHashType.CUSTOM``. Default: - the default is ``AssetHashType.SOURCE``, but if ``assetHash`` is explicitly specified this value defaults to ``AssetHashType.CUSTOM``.
|
|
11199
|
+
:param bundling: Bundle the asset by executing a command in a Docker container or a custom bundling provider. The asset path will be mounted at ``/asset-input``. The Docker container is responsible for putting content at ``/asset-output``. The content at ``/asset-output`` will be zipped and used as the final asset. Default: - uploaded as-is to S3 if the asset is a regular file or a .zip file, archived into a .zip file and uploaded to S3 otherwise
|
|
11200
|
+
:param exclude: File paths matching the patterns will be excluded. See ``ignoreMode`` to set the matching behavior. Has no effect on Assets bundled using the ``bundling`` property. Default: - nothing is excluded
|
|
11201
|
+
:param follow_symlinks: A strategy for how to handle symlinks. Default: SymlinkFollowMode.NEVER
|
|
11202
|
+
:param ignore_mode: The ignore behavior to use for ``exclude`` patterns. Default: IgnoreMode.GLOB
|
|
11203
|
+
:param deploy_time: Whether or not the asset needs to exist beyond deployment time; i.e. are copied over to a different location and not needed afterwards. Setting this property to true has an impact on the lifecycle of the asset, because we will assume that it is safe to delete after the CloudFormation deployment succeeds. For example, Lambda Function assets are copied over to Lambda during deployment. Therefore, it is not necessary to store the asset in S3, so we consider those deployTime assets. Default: false
|
|
11204
|
+
:param readers: A list of principals that should be able to read this asset from S3. You can use ``asset.grantRead(principal)`` to grant read permissions later. Default: - No principals that can read file asset.
|
|
11205
|
+
:param command_options: options that are passed to the spawned process, which determine the characteristics of the spawned process. Default: : see ``child_process.SpawnSyncOptions`` (https://nodejs.org/api/child_process.html#child_processspawnsynccommand-args-options).
|
|
11206
|
+
|
|
11207
|
+
:exampleMetadata: fixture=_generated
|
|
11208
|
+
|
|
11209
|
+
Example::
|
|
11210
|
+
|
|
11211
|
+
# The code below shows an example of how to instantiate this type.
|
|
11212
|
+
# The values are placeholders you should change.
|
|
11213
|
+
import aws_cdk as cdk
|
|
11214
|
+
from aws_cdk import aws_iam as iam
|
|
11215
|
+
from aws_cdk import aws_lambda as lambda_
|
|
11216
|
+
|
|
11217
|
+
# command_options: Any
|
|
11218
|
+
# docker_image: cdk.DockerImage
|
|
11219
|
+
# grantable: iam.IGrantable
|
|
11220
|
+
# local_bundling: cdk.ILocalBundling
|
|
11221
|
+
|
|
11222
|
+
custom_command_options = lambda.CustomCommandOptions(
|
|
11223
|
+
asset_hash="assetHash",
|
|
11224
|
+
asset_hash_type=cdk.AssetHashType.SOURCE,
|
|
11225
|
+
bundling=cdk.BundlingOptions(
|
|
11226
|
+
image=docker_image,
|
|
11227
|
+
|
|
11228
|
+
# the properties below are optional
|
|
11229
|
+
bundling_file_access=cdk.BundlingFileAccess.VOLUME_COPY,
|
|
11230
|
+
command=["command"],
|
|
11231
|
+
entrypoint=["entrypoint"],
|
|
11232
|
+
environment={
|
|
11233
|
+
"environment_key": "environment"
|
|
11234
|
+
},
|
|
11235
|
+
local=local_bundling,
|
|
11236
|
+
network="network",
|
|
11237
|
+
output_type=cdk.BundlingOutput.ARCHIVED,
|
|
11238
|
+
platform="platform",
|
|
11239
|
+
security_opt="securityOpt",
|
|
11240
|
+
user="user",
|
|
11241
|
+
volumes=[cdk.DockerVolume(
|
|
11242
|
+
container_path="containerPath",
|
|
11243
|
+
host_path="hostPath",
|
|
11244
|
+
|
|
11245
|
+
# the properties below are optional
|
|
11246
|
+
consistency=cdk.DockerVolumeConsistency.CONSISTENT
|
|
11247
|
+
)],
|
|
11248
|
+
volumes_from=["volumesFrom"],
|
|
11249
|
+
working_directory="workingDirectory"
|
|
11250
|
+
),
|
|
11251
|
+
command_options={
|
|
11252
|
+
"command_options_key": command_options
|
|
11253
|
+
},
|
|
11254
|
+
deploy_time=False,
|
|
11255
|
+
exclude=["exclude"],
|
|
11256
|
+
follow_symlinks=cdk.SymlinkFollowMode.NEVER,
|
|
11257
|
+
ignore_mode=cdk.IgnoreMode.GLOB,
|
|
11258
|
+
readers=[grantable]
|
|
11259
|
+
)
|
|
11260
|
+
'''
|
|
11261
|
+
if isinstance(bundling, dict):
|
|
11262
|
+
bundling = _BundlingOptions_588cc936(**bundling)
|
|
11263
|
+
if __debug__:
|
|
11264
|
+
type_hints = typing.get_type_hints(_typecheckingstub__69255a578358e8a47662200dda7ce2e0b1f2ee573c1469268f14060b00a7863a)
|
|
11265
|
+
check_type(argname="argument asset_hash", value=asset_hash, expected_type=type_hints["asset_hash"])
|
|
11266
|
+
check_type(argname="argument asset_hash_type", value=asset_hash_type, expected_type=type_hints["asset_hash_type"])
|
|
11267
|
+
check_type(argname="argument bundling", value=bundling, expected_type=type_hints["bundling"])
|
|
11268
|
+
check_type(argname="argument exclude", value=exclude, expected_type=type_hints["exclude"])
|
|
11269
|
+
check_type(argname="argument follow_symlinks", value=follow_symlinks, expected_type=type_hints["follow_symlinks"])
|
|
11270
|
+
check_type(argname="argument ignore_mode", value=ignore_mode, expected_type=type_hints["ignore_mode"])
|
|
11271
|
+
check_type(argname="argument deploy_time", value=deploy_time, expected_type=type_hints["deploy_time"])
|
|
11272
|
+
check_type(argname="argument readers", value=readers, expected_type=type_hints["readers"])
|
|
11273
|
+
check_type(argname="argument command_options", value=command_options, expected_type=type_hints["command_options"])
|
|
11274
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
11275
|
+
if asset_hash is not None:
|
|
11276
|
+
self._values["asset_hash"] = asset_hash
|
|
11277
|
+
if asset_hash_type is not None:
|
|
11278
|
+
self._values["asset_hash_type"] = asset_hash_type
|
|
11279
|
+
if bundling is not None:
|
|
11280
|
+
self._values["bundling"] = bundling
|
|
11281
|
+
if exclude is not None:
|
|
11282
|
+
self._values["exclude"] = exclude
|
|
11283
|
+
if follow_symlinks is not None:
|
|
11284
|
+
self._values["follow_symlinks"] = follow_symlinks
|
|
11285
|
+
if ignore_mode is not None:
|
|
11286
|
+
self._values["ignore_mode"] = ignore_mode
|
|
11287
|
+
if deploy_time is not None:
|
|
11288
|
+
self._values["deploy_time"] = deploy_time
|
|
11289
|
+
if readers is not None:
|
|
11290
|
+
self._values["readers"] = readers
|
|
11291
|
+
if command_options is not None:
|
|
11292
|
+
self._values["command_options"] = command_options
|
|
11293
|
+
|
|
11294
|
+
@builtins.property
|
|
11295
|
+
def asset_hash(self) -> typing.Optional[builtins.str]:
|
|
11296
|
+
'''Specify a custom hash for this asset.
|
|
11297
|
+
|
|
11298
|
+
If ``assetHashType`` is set it must
|
|
11299
|
+
be set to ``AssetHashType.CUSTOM``. For consistency, this custom hash will
|
|
11300
|
+
be SHA256 hashed and encoded as hex. The resulting hash will be the asset
|
|
11301
|
+
hash.
|
|
11302
|
+
|
|
11303
|
+
NOTE: the hash is used in order to identify a specific revision of the asset, and
|
|
11304
|
+
used for optimizing and caching deployment activities related to this asset such as
|
|
11305
|
+
packaging, uploading to Amazon S3, etc. If you chose to customize the hash, you will
|
|
11306
|
+
need to make sure it is updated every time the asset changes, or otherwise it is
|
|
11307
|
+
possible that some deployments will not be invalidated.
|
|
11308
|
+
|
|
11309
|
+
:default: - based on ``assetHashType``
|
|
11310
|
+
'''
|
|
11311
|
+
result = self._values.get("asset_hash")
|
|
11312
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
11313
|
+
|
|
11314
|
+
@builtins.property
|
|
11315
|
+
def asset_hash_type(self) -> typing.Optional[_AssetHashType_05b67f2d]:
|
|
11316
|
+
'''Specifies the type of hash to calculate for this asset.
|
|
11317
|
+
|
|
11318
|
+
If ``assetHash`` is configured, this option must be ``undefined`` or
|
|
11319
|
+
``AssetHashType.CUSTOM``.
|
|
11320
|
+
|
|
11321
|
+
:default:
|
|
11322
|
+
|
|
11323
|
+
- the default is ``AssetHashType.SOURCE``, but if ``assetHash`` is
|
|
11324
|
+
explicitly specified this value defaults to ``AssetHashType.CUSTOM``.
|
|
11325
|
+
'''
|
|
11326
|
+
result = self._values.get("asset_hash_type")
|
|
11327
|
+
return typing.cast(typing.Optional[_AssetHashType_05b67f2d], result)
|
|
11328
|
+
|
|
11329
|
+
@builtins.property
|
|
11330
|
+
def bundling(self) -> typing.Optional[_BundlingOptions_588cc936]:
|
|
11331
|
+
'''Bundle the asset by executing a command in a Docker container or a custom bundling provider.
|
|
11332
|
+
|
|
11333
|
+
The asset path will be mounted at ``/asset-input``. The Docker
|
|
11334
|
+
container is responsible for putting content at ``/asset-output``.
|
|
11335
|
+
The content at ``/asset-output`` will be zipped and used as the
|
|
11336
|
+
final asset.
|
|
11337
|
+
|
|
11338
|
+
:default:
|
|
11339
|
+
|
|
11340
|
+
- uploaded as-is to S3 if the asset is a regular file or a .zip file,
|
|
11341
|
+
archived into a .zip file and uploaded to S3 otherwise
|
|
11342
|
+
'''
|
|
11343
|
+
result = self._values.get("bundling")
|
|
11344
|
+
return typing.cast(typing.Optional[_BundlingOptions_588cc936], result)
|
|
11345
|
+
|
|
11346
|
+
@builtins.property
|
|
11347
|
+
def exclude(self) -> typing.Optional[typing.List[builtins.str]]:
|
|
11348
|
+
'''File paths matching the patterns will be excluded.
|
|
11349
|
+
|
|
11350
|
+
See ``ignoreMode`` to set the matching behavior.
|
|
11351
|
+
Has no effect on Assets bundled using the ``bundling`` property.
|
|
11352
|
+
|
|
11353
|
+
:default: - nothing is excluded
|
|
11354
|
+
'''
|
|
11355
|
+
result = self._values.get("exclude")
|
|
11356
|
+
return typing.cast(typing.Optional[typing.List[builtins.str]], result)
|
|
11357
|
+
|
|
11358
|
+
@builtins.property
|
|
11359
|
+
def follow_symlinks(self) -> typing.Optional[_SymlinkFollowMode_047ec1f6]:
|
|
11360
|
+
'''A strategy for how to handle symlinks.
|
|
11361
|
+
|
|
11362
|
+
:default: SymlinkFollowMode.NEVER
|
|
11363
|
+
'''
|
|
11364
|
+
result = self._values.get("follow_symlinks")
|
|
11365
|
+
return typing.cast(typing.Optional[_SymlinkFollowMode_047ec1f6], result)
|
|
11366
|
+
|
|
11367
|
+
@builtins.property
|
|
11368
|
+
def ignore_mode(self) -> typing.Optional[_IgnoreMode_655a98e8]:
|
|
11369
|
+
'''The ignore behavior to use for ``exclude`` patterns.
|
|
11370
|
+
|
|
11371
|
+
:default: IgnoreMode.GLOB
|
|
11372
|
+
'''
|
|
11373
|
+
result = self._values.get("ignore_mode")
|
|
11374
|
+
return typing.cast(typing.Optional[_IgnoreMode_655a98e8], result)
|
|
11375
|
+
|
|
11376
|
+
@builtins.property
|
|
11377
|
+
def deploy_time(self) -> typing.Optional[builtins.bool]:
|
|
11378
|
+
'''Whether or not the asset needs to exist beyond deployment time;
|
|
11379
|
+
|
|
11380
|
+
i.e.
|
|
11381
|
+
are copied over to a different location and not needed afterwards.
|
|
11382
|
+
Setting this property to true has an impact on the lifecycle of the asset,
|
|
11383
|
+
because we will assume that it is safe to delete after the CloudFormation
|
|
11384
|
+
deployment succeeds.
|
|
11385
|
+
|
|
11386
|
+
For example, Lambda Function assets are copied over to Lambda during
|
|
11387
|
+
deployment. Therefore, it is not necessary to store the asset in S3, so
|
|
11388
|
+
we consider those deployTime assets.
|
|
11389
|
+
|
|
11390
|
+
:default: false
|
|
11391
|
+
'''
|
|
11392
|
+
result = self._values.get("deploy_time")
|
|
11393
|
+
return typing.cast(typing.Optional[builtins.bool], result)
|
|
11394
|
+
|
|
11395
|
+
@builtins.property
|
|
11396
|
+
def readers(self) -> typing.Optional[typing.List[_IGrantable_71c4f5de]]:
|
|
11397
|
+
'''A list of principals that should be able to read this asset from S3.
|
|
11398
|
+
|
|
11399
|
+
You can use ``asset.grantRead(principal)`` to grant read permissions later.
|
|
11400
|
+
|
|
11401
|
+
:default: - No principals that can read file asset.
|
|
11402
|
+
'''
|
|
11403
|
+
result = self._values.get("readers")
|
|
11404
|
+
return typing.cast(typing.Optional[typing.List[_IGrantable_71c4f5de]], result)
|
|
11405
|
+
|
|
11406
|
+
@builtins.property
|
|
11407
|
+
def command_options(
|
|
11408
|
+
self,
|
|
11409
|
+
) -> typing.Optional[typing.Mapping[builtins.str, typing.Any]]:
|
|
11410
|
+
'''options that are passed to the spawned process, which determine the characteristics of the spawned process.
|
|
11411
|
+
|
|
11412
|
+
:default: : see ``child_process.SpawnSyncOptions`` (https://nodejs.org/api/child_process.html#child_processspawnsynccommand-args-options).
|
|
11413
|
+
'''
|
|
11414
|
+
result = self._values.get("command_options")
|
|
11415
|
+
return typing.cast(typing.Optional[typing.Mapping[builtins.str, typing.Any]], result)
|
|
11416
|
+
|
|
11417
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
11418
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
11419
|
+
|
|
11420
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
11421
|
+
return not (rhs == self)
|
|
11422
|
+
|
|
11423
|
+
def __repr__(self) -> str:
|
|
11424
|
+
return "CustomCommandOptions(%s)" % ", ".join(
|
|
11425
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
11426
|
+
)
|
|
11427
|
+
|
|
11428
|
+
|
|
11101
11429
|
@jsii.data_type(
|
|
11102
11430
|
jsii_type="aws-cdk-lib.aws_lambda.DestinationConfig",
|
|
11103
11431
|
jsii_struct_bases=[],
|
|
@@ -13662,6 +13990,7 @@ class FunctionAttributes:
|
|
|
13662
13990
|
"allow_all_outbound": "allowAllOutbound",
|
|
13663
13991
|
"allow_public_subnet": "allowPublicSubnet",
|
|
13664
13992
|
"application_log_level": "applicationLogLevel",
|
|
13993
|
+
"application_log_level_v2": "applicationLogLevelV2",
|
|
13665
13994
|
"architecture": "architecture",
|
|
13666
13995
|
"code_signing_config": "codeSigningConfig",
|
|
13667
13996
|
"current_version_options": "currentVersionOptions",
|
|
@@ -13695,6 +14024,7 @@ class FunctionAttributes:
|
|
|
13695
14024
|
"security_groups": "securityGroups",
|
|
13696
14025
|
"snap_start": "snapStart",
|
|
13697
14026
|
"system_log_level": "systemLogLevel",
|
|
14027
|
+
"system_log_level_v2": "systemLogLevelV2",
|
|
13698
14028
|
"timeout": "timeout",
|
|
13699
14029
|
"tracing": "tracing",
|
|
13700
14030
|
"vpc": "vpc",
|
|
@@ -13713,6 +14043,7 @@ class FunctionOptions(EventInvokeConfigOptions):
|
|
|
13713
14043
|
allow_all_outbound: typing.Optional[builtins.bool] = None,
|
|
13714
14044
|
allow_public_subnet: typing.Optional[builtins.bool] = None,
|
|
13715
14045
|
application_log_level: typing.Optional[builtins.str] = None,
|
|
14046
|
+
application_log_level_v2: typing.Optional[ApplicationLogLevel] = None,
|
|
13716
14047
|
architecture: typing.Optional[Architecture] = None,
|
|
13717
14048
|
code_signing_config: typing.Optional["ICodeSigningConfig"] = None,
|
|
13718
14049
|
current_version_options: typing.Optional[typing.Union["VersionOptions", typing.Dict[builtins.str, typing.Any]]] = None,
|
|
@@ -13746,6 +14077,7 @@ class FunctionOptions(EventInvokeConfigOptions):
|
|
|
13746
14077
|
security_groups: typing.Optional[typing.Sequence[_ISecurityGroup_acf8a799]] = None,
|
|
13747
14078
|
snap_start: typing.Optional["SnapStartConf"] = None,
|
|
13748
14079
|
system_log_level: typing.Optional[builtins.str] = None,
|
|
14080
|
+
system_log_level_v2: typing.Optional["SystemLogLevel"] = None,
|
|
13749
14081
|
timeout: typing.Optional[_Duration_4839e8c3] = None,
|
|
13750
14082
|
tracing: typing.Optional["Tracing"] = None,
|
|
13751
14083
|
vpc: typing.Optional[_IVpc_f30d5663] = None,
|
|
@@ -13760,7 +14092,8 @@ class FunctionOptions(EventInvokeConfigOptions):
|
|
|
13760
14092
|
:param adot_instrumentation: Specify the configuration of AWS Distro for OpenTelemetry (ADOT) instrumentation. Default: - No ADOT instrumentation
|
|
13761
14093
|
:param allow_all_outbound: Whether to allow the Lambda to send all network traffic. 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
|
|
13762
14094
|
:param allow_public_subnet: Lambda Functions in a public subnet can NOT access the internet. Use this property to acknowledge this limitation and still place the function in a public subnet. Default: false
|
|
13763
|
-
:param application_log_level: Sets the application log level for the function. Default: "INFO"
|
|
14095
|
+
:param application_log_level: (deprecated) Sets the application log level for the function. Default: "INFO"
|
|
14096
|
+
:param application_log_level_v2: Sets the application log level for the function. Default: ApplicationLogLevel.INFO
|
|
13764
14097
|
:param architecture: The system architectures compatible with this lambda function. Default: Architecture.X86_64
|
|
13765
14098
|
:param code_signing_config: Code signing config associated with this function. Default: - Not Sign the Code
|
|
13766
14099
|
:param current_version_options: Options for the ``lambda.Version`` resource automatically created by the ``fn.currentVersion`` method. Default: - default options as described in ``VersionOptions``
|
|
@@ -13778,7 +14111,7 @@ class FunctionOptions(EventInvokeConfigOptions):
|
|
|
13778
14111
|
:param insights_version: Specify the version of CloudWatch Lambda insights to use for monitoring. Default: - No Lambda Insights
|
|
13779
14112
|
:param ipv6_allowed_for_dual_stack: Allows outbound IPv6 traffic on VPC functions that are connected to dual-stack subnets. Only used if 'vpc' is supplied. Default: false
|
|
13780
14113
|
:param layers: A list of layers to add to the function's execution environment. You can configure your Lambda function to pull in additional code during initialization in the form of layers. Layers are packages of libraries or other dependencies that can be used by multiple functions. Default: - No layers.
|
|
13781
|
-
:param log_format: Sets the logFormat for the function. Default: "Text"
|
|
14114
|
+
:param log_format: (deprecated) Sets the logFormat for the function. Default: "Text"
|
|
13782
14115
|
:param logging_format: Sets the loggingFormat for the function. Default: LoggingFormat.TEXT
|
|
13783
14116
|
:param log_group: The log group the function sends logs to. By default, Lambda functions send logs to an automatically created default log group named /aws/lambda/<function name>. However you cannot change the properties of this auto-created log group using the AWS CDK, e.g. you cannot set a different log retention. Use the ``logGroup`` property to create a fully customizable LogGroup ahead of time, and instruct the Lambda function to send logs to it. Providing a user-controlled log group was rolled out to commercial regions on 2023-11-16. If you are deploying to another type of region, please check regional availability first. Default: ``/aws/lambda/${this.functionName}`` - default log group created by Lambda
|
|
13784
14117
|
:param log_retention: The number of days log events are kept in CloudWatch Logs. When updating this property, unsetting it doesn't remove the log retention policy. To remove the retention policy, set the value to ``INFINITE``. This is a legacy API and we strongly recommend you move away from it if you can. Instead create a fully customizable log group with ``logs.LogGroup`` and use the ``logGroup`` property to instruct the Lambda function to send logs to it. Migrating from ``logRetention`` to ``logGroup`` will cause the name of the log group to change. Users and code and referencing the name verbatim will have to adjust. In AWS CDK code, you can access the log group name directly from the LogGroup construct:: import * as logs from 'aws-cdk-lib/aws-logs'; declare const myLogGroup: logs.LogGroup; myLogGroup.logGroupName; Default: logs.RetentionDays.INFINITE
|
|
@@ -13793,7 +14126,8 @@ class FunctionOptions(EventInvokeConfigOptions):
|
|
|
13793
14126
|
:param runtime_management_mode: Sets the runtime management configuration for a function's version. Default: Auto
|
|
13794
14127
|
:param security_groups: The list of security groups to associate with the Lambda's network interfaces. Only used if 'vpc' is supplied. Default: - If the function is placed within a VPC and a security group is not specified, either by this or securityGroup prop, a dedicated security group will be created for this function.
|
|
13795
14128
|
:param snap_start: Enable SnapStart for Lambda Function. SnapStart is currently supported only for Java 11, 17 runtime Default: - No snapstart
|
|
13796
|
-
:param system_log_level: Sets the system log level for the function. Default: "INFO"
|
|
14129
|
+
:param system_log_level: (deprecated) Sets the system log level for the function. Default: "INFO"
|
|
14130
|
+
:param system_log_level_v2: Sets the system log level for the function. Default: SystemLogLevel.INFO
|
|
13797
14131
|
:param timeout: The function execution time (in seconds) after which Lambda terminates the function. Because the execution time affects cost, set this value based on the function's expected execution time. Default: Duration.seconds(3)
|
|
13798
14132
|
:param tracing: Enable AWS X-Ray Tracing for Lambda Function. Default: Tracing.Disabled
|
|
13799
14133
|
:param vpc: VPC network to place Lambda network interfaces. Specify this if the Lambda function needs to access resources in a VPC. This is required when ``vpcSubnets`` is specified. Default: - Function is not placed within a VPC.
|
|
@@ -13847,6 +14181,7 @@ class FunctionOptions(EventInvokeConfigOptions):
|
|
|
13847
14181
|
allow_all_outbound=False,
|
|
13848
14182
|
allow_public_subnet=False,
|
|
13849
14183
|
application_log_level="applicationLogLevel",
|
|
14184
|
+
application_log_level_v2=lambda_.ApplicationLogLevel.INFO,
|
|
13850
14185
|
architecture=architecture,
|
|
13851
14186
|
code_signing_config=code_signing_config,
|
|
13852
14187
|
current_version_options=lambda.VersionOptions(
|
|
@@ -13898,6 +14233,7 @@ class FunctionOptions(EventInvokeConfigOptions):
|
|
|
13898
14233
|
security_groups=[security_group],
|
|
13899
14234
|
snap_start=snap_start_conf,
|
|
13900
14235
|
system_log_level="systemLogLevel",
|
|
14236
|
+
system_log_level_v2=lambda_.SystemLogLevel.INFO,
|
|
13901
14237
|
timeout=cdk.Duration.minutes(30),
|
|
13902
14238
|
tracing=lambda_.Tracing.ACTIVE,
|
|
13903
14239
|
vpc=vpc,
|
|
@@ -13929,6 +14265,7 @@ class FunctionOptions(EventInvokeConfigOptions):
|
|
|
13929
14265
|
check_type(argname="argument allow_all_outbound", value=allow_all_outbound, expected_type=type_hints["allow_all_outbound"])
|
|
13930
14266
|
check_type(argname="argument allow_public_subnet", value=allow_public_subnet, expected_type=type_hints["allow_public_subnet"])
|
|
13931
14267
|
check_type(argname="argument application_log_level", value=application_log_level, expected_type=type_hints["application_log_level"])
|
|
14268
|
+
check_type(argname="argument application_log_level_v2", value=application_log_level_v2, expected_type=type_hints["application_log_level_v2"])
|
|
13932
14269
|
check_type(argname="argument architecture", value=architecture, expected_type=type_hints["architecture"])
|
|
13933
14270
|
check_type(argname="argument code_signing_config", value=code_signing_config, expected_type=type_hints["code_signing_config"])
|
|
13934
14271
|
check_type(argname="argument current_version_options", value=current_version_options, expected_type=type_hints["current_version_options"])
|
|
@@ -13962,6 +14299,7 @@ class FunctionOptions(EventInvokeConfigOptions):
|
|
|
13962
14299
|
check_type(argname="argument security_groups", value=security_groups, expected_type=type_hints["security_groups"])
|
|
13963
14300
|
check_type(argname="argument snap_start", value=snap_start, expected_type=type_hints["snap_start"])
|
|
13964
14301
|
check_type(argname="argument system_log_level", value=system_log_level, expected_type=type_hints["system_log_level"])
|
|
14302
|
+
check_type(argname="argument system_log_level_v2", value=system_log_level_v2, expected_type=type_hints["system_log_level_v2"])
|
|
13965
14303
|
check_type(argname="argument timeout", value=timeout, expected_type=type_hints["timeout"])
|
|
13966
14304
|
check_type(argname="argument tracing", value=tracing, expected_type=type_hints["tracing"])
|
|
13967
14305
|
check_type(argname="argument vpc", value=vpc, expected_type=type_hints["vpc"])
|
|
@@ -13983,6 +14321,8 @@ class FunctionOptions(EventInvokeConfigOptions):
|
|
|
13983
14321
|
self._values["allow_public_subnet"] = allow_public_subnet
|
|
13984
14322
|
if application_log_level is not None:
|
|
13985
14323
|
self._values["application_log_level"] = application_log_level
|
|
14324
|
+
if application_log_level_v2 is not None:
|
|
14325
|
+
self._values["application_log_level_v2"] = application_log_level_v2
|
|
13986
14326
|
if architecture is not None:
|
|
13987
14327
|
self._values["architecture"] = architecture
|
|
13988
14328
|
if code_signing_config is not None:
|
|
@@ -14049,6 +14389,8 @@ class FunctionOptions(EventInvokeConfigOptions):
|
|
|
14049
14389
|
self._values["snap_start"] = snap_start
|
|
14050
14390
|
if system_log_level is not None:
|
|
14051
14391
|
self._values["system_log_level"] = system_log_level
|
|
14392
|
+
if system_log_level_v2 is not None:
|
|
14393
|
+
self._values["system_log_level_v2"] = system_log_level_v2
|
|
14052
14394
|
if timeout is not None:
|
|
14053
14395
|
self._values["timeout"] = timeout
|
|
14054
14396
|
if tracing is not None:
|
|
@@ -14141,13 +14483,26 @@ class FunctionOptions(EventInvokeConfigOptions):
|
|
|
14141
14483
|
|
|
14142
14484
|
@builtins.property
|
|
14143
14485
|
def application_log_level(self) -> typing.Optional[builtins.str]:
|
|
14144
|
-
'''Sets the application log level for the function.
|
|
14486
|
+
'''(deprecated) Sets the application log level for the function.
|
|
14145
14487
|
|
|
14146
14488
|
:default: "INFO"
|
|
14489
|
+
|
|
14490
|
+
:deprecated: Use ``applicationLogLevelV2`` as a property instead.
|
|
14491
|
+
|
|
14492
|
+
:stability: deprecated
|
|
14147
14493
|
'''
|
|
14148
14494
|
result = self._values.get("application_log_level")
|
|
14149
14495
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
14150
14496
|
|
|
14497
|
+
@builtins.property
|
|
14498
|
+
def application_log_level_v2(self) -> typing.Optional[ApplicationLogLevel]:
|
|
14499
|
+
'''Sets the application log level for the function.
|
|
14500
|
+
|
|
14501
|
+
:default: ApplicationLogLevel.INFO
|
|
14502
|
+
'''
|
|
14503
|
+
result = self._values.get("application_log_level_v2")
|
|
14504
|
+
return typing.cast(typing.Optional[ApplicationLogLevel], result)
|
|
14505
|
+
|
|
14151
14506
|
@builtins.property
|
|
14152
14507
|
def architecture(self) -> typing.Optional[Architecture]:
|
|
14153
14508
|
'''The system architectures compatible with this lambda function.
|
|
@@ -14332,9 +14687,13 @@ class FunctionOptions(EventInvokeConfigOptions):
|
|
|
14332
14687
|
|
|
14333
14688
|
@builtins.property
|
|
14334
14689
|
def log_format(self) -> typing.Optional[builtins.str]:
|
|
14335
|
-
'''Sets the logFormat for the function.
|
|
14690
|
+
'''(deprecated) Sets the logFormat for the function.
|
|
14336
14691
|
|
|
14337
14692
|
:default: "Text"
|
|
14693
|
+
|
|
14694
|
+
:deprecated: Use ``loggingFormat`` as a property instead.
|
|
14695
|
+
|
|
14696
|
+
:stability: deprecated
|
|
14338
14697
|
'''
|
|
14339
14698
|
result = self._values.get("log_format")
|
|
14340
14699
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
@@ -14536,13 +14895,26 @@ class FunctionOptions(EventInvokeConfigOptions):
|
|
|
14536
14895
|
|
|
14537
14896
|
@builtins.property
|
|
14538
14897
|
def system_log_level(self) -> typing.Optional[builtins.str]:
|
|
14539
|
-
'''Sets the system log level for the function.
|
|
14898
|
+
'''(deprecated) Sets the system log level for the function.
|
|
14540
14899
|
|
|
14541
14900
|
:default: "INFO"
|
|
14901
|
+
|
|
14902
|
+
:deprecated: Use ``systemLogLevelV2`` as a property instead.
|
|
14903
|
+
|
|
14904
|
+
:stability: deprecated
|
|
14542
14905
|
'''
|
|
14543
14906
|
result = self._values.get("system_log_level")
|
|
14544
14907
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
14545
14908
|
|
|
14909
|
+
@builtins.property
|
|
14910
|
+
def system_log_level_v2(self) -> typing.Optional["SystemLogLevel"]:
|
|
14911
|
+
'''Sets the system log level for the function.
|
|
14912
|
+
|
|
14913
|
+
:default: SystemLogLevel.INFO
|
|
14914
|
+
'''
|
|
14915
|
+
result = self._values.get("system_log_level_v2")
|
|
14916
|
+
return typing.cast(typing.Optional["SystemLogLevel"], result)
|
|
14917
|
+
|
|
14546
14918
|
@builtins.property
|
|
14547
14919
|
def timeout(self) -> typing.Optional[_Duration_4839e8c3]:
|
|
14548
14920
|
'''The function execution time (in seconds) after which Lambda terminates the function.
|
|
@@ -14615,6 +14987,7 @@ class FunctionOptions(EventInvokeConfigOptions):
|
|
|
14615
14987
|
"allow_all_outbound": "allowAllOutbound",
|
|
14616
14988
|
"allow_public_subnet": "allowPublicSubnet",
|
|
14617
14989
|
"application_log_level": "applicationLogLevel",
|
|
14990
|
+
"application_log_level_v2": "applicationLogLevelV2",
|
|
14618
14991
|
"architecture": "architecture",
|
|
14619
14992
|
"code_signing_config": "codeSigningConfig",
|
|
14620
14993
|
"current_version_options": "currentVersionOptions",
|
|
@@ -14648,6 +15021,7 @@ class FunctionOptions(EventInvokeConfigOptions):
|
|
|
14648
15021
|
"security_groups": "securityGroups",
|
|
14649
15022
|
"snap_start": "snapStart",
|
|
14650
15023
|
"system_log_level": "systemLogLevel",
|
|
15024
|
+
"system_log_level_v2": "systemLogLevelV2",
|
|
14651
15025
|
"timeout": "timeout",
|
|
14652
15026
|
"tracing": "tracing",
|
|
14653
15027
|
"vpc": "vpc",
|
|
@@ -14669,6 +15043,7 @@ class FunctionProps(FunctionOptions):
|
|
|
14669
15043
|
allow_all_outbound: typing.Optional[builtins.bool] = None,
|
|
14670
15044
|
allow_public_subnet: typing.Optional[builtins.bool] = None,
|
|
14671
15045
|
application_log_level: typing.Optional[builtins.str] = None,
|
|
15046
|
+
application_log_level_v2: typing.Optional[ApplicationLogLevel] = None,
|
|
14672
15047
|
architecture: typing.Optional[Architecture] = None,
|
|
14673
15048
|
code_signing_config: typing.Optional["ICodeSigningConfig"] = None,
|
|
14674
15049
|
current_version_options: typing.Optional[typing.Union["VersionOptions", typing.Dict[builtins.str, typing.Any]]] = None,
|
|
@@ -14702,6 +15077,7 @@ class FunctionProps(FunctionOptions):
|
|
|
14702
15077
|
security_groups: typing.Optional[typing.Sequence[_ISecurityGroup_acf8a799]] = None,
|
|
14703
15078
|
snap_start: typing.Optional["SnapStartConf"] = None,
|
|
14704
15079
|
system_log_level: typing.Optional[builtins.str] = None,
|
|
15080
|
+
system_log_level_v2: typing.Optional["SystemLogLevel"] = None,
|
|
14705
15081
|
timeout: typing.Optional[_Duration_4839e8c3] = None,
|
|
14706
15082
|
tracing: typing.Optional["Tracing"] = None,
|
|
14707
15083
|
vpc: typing.Optional[_IVpc_f30d5663] = None,
|
|
@@ -14718,7 +15094,8 @@ class FunctionProps(FunctionOptions):
|
|
|
14718
15094
|
:param adot_instrumentation: Specify the configuration of AWS Distro for OpenTelemetry (ADOT) instrumentation. Default: - No ADOT instrumentation
|
|
14719
15095
|
:param allow_all_outbound: Whether to allow the Lambda to send all network traffic. 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
|
|
14720
15096
|
:param allow_public_subnet: Lambda Functions in a public subnet can NOT access the internet. Use this property to acknowledge this limitation and still place the function in a public subnet. Default: false
|
|
14721
|
-
:param application_log_level: Sets the application log level for the function. Default: "INFO"
|
|
15097
|
+
:param application_log_level: (deprecated) Sets the application log level for the function. Default: "INFO"
|
|
15098
|
+
:param application_log_level_v2: Sets the application log level for the function. Default: ApplicationLogLevel.INFO
|
|
14722
15099
|
:param architecture: The system architectures compatible with this lambda function. Default: Architecture.X86_64
|
|
14723
15100
|
:param code_signing_config: Code signing config associated with this function. Default: - Not Sign the Code
|
|
14724
15101
|
:param current_version_options: Options for the ``lambda.Version`` resource automatically created by the ``fn.currentVersion`` method. Default: - default options as described in ``VersionOptions``
|
|
@@ -14736,7 +15113,7 @@ class FunctionProps(FunctionOptions):
|
|
|
14736
15113
|
:param insights_version: Specify the version of CloudWatch Lambda insights to use for monitoring. Default: - No Lambda Insights
|
|
14737
15114
|
:param ipv6_allowed_for_dual_stack: Allows outbound IPv6 traffic on VPC functions that are connected to dual-stack subnets. Only used if 'vpc' is supplied. Default: false
|
|
14738
15115
|
:param layers: A list of layers to add to the function's execution environment. You can configure your Lambda function to pull in additional code during initialization in the form of layers. Layers are packages of libraries or other dependencies that can be used by multiple functions. Default: - No layers.
|
|
14739
|
-
:param log_format: Sets the logFormat for the function. Default: "Text"
|
|
15116
|
+
:param log_format: (deprecated) Sets the logFormat for the function. Default: "Text"
|
|
14740
15117
|
:param logging_format: Sets the loggingFormat for the function. Default: LoggingFormat.TEXT
|
|
14741
15118
|
:param log_group: The log group the function sends logs to. By default, Lambda functions send logs to an automatically created default log group named /aws/lambda/<function name>. However you cannot change the properties of this auto-created log group using the AWS CDK, e.g. you cannot set a different log retention. Use the ``logGroup`` property to create a fully customizable LogGroup ahead of time, and instruct the Lambda function to send logs to it. Providing a user-controlled log group was rolled out to commercial regions on 2023-11-16. If you are deploying to another type of region, please check regional availability first. Default: ``/aws/lambda/${this.functionName}`` - default log group created by Lambda
|
|
14742
15119
|
:param log_retention: The number of days log events are kept in CloudWatch Logs. When updating this property, unsetting it doesn't remove the log retention policy. To remove the retention policy, set the value to ``INFINITE``. This is a legacy API and we strongly recommend you move away from it if you can. Instead create a fully customizable log group with ``logs.LogGroup`` and use the ``logGroup`` property to instruct the Lambda function to send logs to it. Migrating from ``logRetention`` to ``logGroup`` will cause the name of the log group to change. Users and code and referencing the name verbatim will have to adjust. In AWS CDK code, you can access the log group name directly from the LogGroup construct:: import * as logs from 'aws-cdk-lib/aws-logs'; declare const myLogGroup: logs.LogGroup; myLogGroup.logGroupName; Default: logs.RetentionDays.INFINITE
|
|
@@ -14751,7 +15128,8 @@ class FunctionProps(FunctionOptions):
|
|
|
14751
15128
|
:param runtime_management_mode: Sets the runtime management configuration for a function's version. Default: Auto
|
|
14752
15129
|
:param security_groups: The list of security groups to associate with the Lambda's network interfaces. Only used if 'vpc' is supplied. Default: - If the function is placed within a VPC and a security group is not specified, either by this or securityGroup prop, a dedicated security group will be created for this function.
|
|
14753
15130
|
:param snap_start: Enable SnapStart for Lambda Function. SnapStart is currently supported only for Java 11, 17 runtime Default: - No snapstart
|
|
14754
|
-
:param system_log_level: Sets the system log level for the function. Default: "INFO"
|
|
15131
|
+
:param system_log_level: (deprecated) Sets the system log level for the function. Default: "INFO"
|
|
15132
|
+
:param system_log_level_v2: Sets the system log level for the function. Default: SystemLogLevel.INFO
|
|
14755
15133
|
:param timeout: The function execution time (in seconds) after which Lambda terminates the function. Because the execution time affects cost, set this value based on the function's expected execution time. Default: Duration.seconds(3)
|
|
14756
15134
|
:param tracing: Enable AWS X-Ray Tracing for Lambda Function. Default: Tracing.Disabled
|
|
14757
15135
|
:param vpc: VPC network to place Lambda network interfaces. Specify this if the Lambda function needs to access resources in a VPC. This is required when ``vpcSubnets`` is specified. Default: - Function is not placed within a VPC.
|
|
@@ -14805,6 +15183,7 @@ class FunctionProps(FunctionOptions):
|
|
|
14805
15183
|
check_type(argname="argument allow_all_outbound", value=allow_all_outbound, expected_type=type_hints["allow_all_outbound"])
|
|
14806
15184
|
check_type(argname="argument allow_public_subnet", value=allow_public_subnet, expected_type=type_hints["allow_public_subnet"])
|
|
14807
15185
|
check_type(argname="argument application_log_level", value=application_log_level, expected_type=type_hints["application_log_level"])
|
|
15186
|
+
check_type(argname="argument application_log_level_v2", value=application_log_level_v2, expected_type=type_hints["application_log_level_v2"])
|
|
14808
15187
|
check_type(argname="argument architecture", value=architecture, expected_type=type_hints["architecture"])
|
|
14809
15188
|
check_type(argname="argument code_signing_config", value=code_signing_config, expected_type=type_hints["code_signing_config"])
|
|
14810
15189
|
check_type(argname="argument current_version_options", value=current_version_options, expected_type=type_hints["current_version_options"])
|
|
@@ -14838,6 +15217,7 @@ class FunctionProps(FunctionOptions):
|
|
|
14838
15217
|
check_type(argname="argument security_groups", value=security_groups, expected_type=type_hints["security_groups"])
|
|
14839
15218
|
check_type(argname="argument snap_start", value=snap_start, expected_type=type_hints["snap_start"])
|
|
14840
15219
|
check_type(argname="argument system_log_level", value=system_log_level, expected_type=type_hints["system_log_level"])
|
|
15220
|
+
check_type(argname="argument system_log_level_v2", value=system_log_level_v2, expected_type=type_hints["system_log_level_v2"])
|
|
14841
15221
|
check_type(argname="argument timeout", value=timeout, expected_type=type_hints["timeout"])
|
|
14842
15222
|
check_type(argname="argument tracing", value=tracing, expected_type=type_hints["tracing"])
|
|
14843
15223
|
check_type(argname="argument vpc", value=vpc, expected_type=type_hints["vpc"])
|
|
@@ -14866,6 +15246,8 @@ class FunctionProps(FunctionOptions):
|
|
|
14866
15246
|
self._values["allow_public_subnet"] = allow_public_subnet
|
|
14867
15247
|
if application_log_level is not None:
|
|
14868
15248
|
self._values["application_log_level"] = application_log_level
|
|
15249
|
+
if application_log_level_v2 is not None:
|
|
15250
|
+
self._values["application_log_level_v2"] = application_log_level_v2
|
|
14869
15251
|
if architecture is not None:
|
|
14870
15252
|
self._values["architecture"] = architecture
|
|
14871
15253
|
if code_signing_config is not None:
|
|
@@ -14932,6 +15314,8 @@ class FunctionProps(FunctionOptions):
|
|
|
14932
15314
|
self._values["snap_start"] = snap_start
|
|
14933
15315
|
if system_log_level is not None:
|
|
14934
15316
|
self._values["system_log_level"] = system_log_level
|
|
15317
|
+
if system_log_level_v2 is not None:
|
|
15318
|
+
self._values["system_log_level_v2"] = system_log_level_v2
|
|
14935
15319
|
if timeout is not None:
|
|
14936
15320
|
self._values["timeout"] = timeout
|
|
14937
15321
|
if tracing is not None:
|
|
@@ -15024,13 +15408,26 @@ class FunctionProps(FunctionOptions):
|
|
|
15024
15408
|
|
|
15025
15409
|
@builtins.property
|
|
15026
15410
|
def application_log_level(self) -> typing.Optional[builtins.str]:
|
|
15027
|
-
'''Sets the application log level for the function.
|
|
15411
|
+
'''(deprecated) Sets the application log level for the function.
|
|
15028
15412
|
|
|
15029
15413
|
:default: "INFO"
|
|
15414
|
+
|
|
15415
|
+
:deprecated: Use ``applicationLogLevelV2`` as a property instead.
|
|
15416
|
+
|
|
15417
|
+
:stability: deprecated
|
|
15030
15418
|
'''
|
|
15031
15419
|
result = self._values.get("application_log_level")
|
|
15032
15420
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
15033
15421
|
|
|
15422
|
+
@builtins.property
|
|
15423
|
+
def application_log_level_v2(self) -> typing.Optional[ApplicationLogLevel]:
|
|
15424
|
+
'''Sets the application log level for the function.
|
|
15425
|
+
|
|
15426
|
+
:default: ApplicationLogLevel.INFO
|
|
15427
|
+
'''
|
|
15428
|
+
result = self._values.get("application_log_level_v2")
|
|
15429
|
+
return typing.cast(typing.Optional[ApplicationLogLevel], result)
|
|
15430
|
+
|
|
15034
15431
|
@builtins.property
|
|
15035
15432
|
def architecture(self) -> typing.Optional[Architecture]:
|
|
15036
15433
|
'''The system architectures compatible with this lambda function.
|
|
@@ -15215,9 +15612,13 @@ class FunctionProps(FunctionOptions):
|
|
|
15215
15612
|
|
|
15216
15613
|
@builtins.property
|
|
15217
15614
|
def log_format(self) -> typing.Optional[builtins.str]:
|
|
15218
|
-
'''Sets the logFormat for the function.
|
|
15615
|
+
'''(deprecated) Sets the logFormat for the function.
|
|
15219
15616
|
|
|
15220
15617
|
:default: "Text"
|
|
15618
|
+
|
|
15619
|
+
:deprecated: Use ``loggingFormat`` as a property instead.
|
|
15620
|
+
|
|
15621
|
+
:stability: deprecated
|
|
15221
15622
|
'''
|
|
15222
15623
|
result = self._values.get("log_format")
|
|
15223
15624
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
@@ -15419,13 +15820,26 @@ class FunctionProps(FunctionOptions):
|
|
|
15419
15820
|
|
|
15420
15821
|
@builtins.property
|
|
15421
15822
|
def system_log_level(self) -> typing.Optional[builtins.str]:
|
|
15422
|
-
'''Sets the system log level for the function.
|
|
15823
|
+
'''(deprecated) Sets the system log level for the function.
|
|
15423
15824
|
|
|
15424
15825
|
:default: "INFO"
|
|
15826
|
+
|
|
15827
|
+
:deprecated: Use ``systemLogLevelV2`` as a property instead.
|
|
15828
|
+
|
|
15829
|
+
:stability: deprecated
|
|
15425
15830
|
'''
|
|
15426
15831
|
result = self._values.get("system_log_level")
|
|
15427
15832
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
15428
15833
|
|
|
15834
|
+
@builtins.property
|
|
15835
|
+
def system_log_level_v2(self) -> typing.Optional["SystemLogLevel"]:
|
|
15836
|
+
'''Sets the system log level for the function.
|
|
15837
|
+
|
|
15838
|
+
:default: SystemLogLevel.INFO
|
|
15839
|
+
'''
|
|
15840
|
+
result = self._values.get("system_log_level_v2")
|
|
15841
|
+
return typing.cast(typing.Optional["SystemLogLevel"], result)
|
|
15842
|
+
|
|
15429
15843
|
@builtins.property
|
|
15430
15844
|
def timeout(self) -> typing.Optional[_Duration_4839e8c3]:
|
|
15431
15845
|
'''The function execution time (in seconds) after which Lambda terminates the function.
|
|
@@ -18549,8 +18963,8 @@ class LoggingFormat(enum.Enum):
|
|
|
18549
18963
|
handler="index.handler",
|
|
18550
18964
|
runtime=lambda_.Runtime.NODEJS_18_X,
|
|
18551
18965
|
logging_format=lambda_.LoggingFormat.JSON,
|
|
18552
|
-
|
|
18553
|
-
|
|
18966
|
+
system_log_level_v2=lambda_.SystemLogLevel.INFO,
|
|
18967
|
+
application_log_level_v2=lambda_.ApplicationLogLevel.INFO,
|
|
18554
18968
|
log_group=log_group
|
|
18555
18969
|
)
|
|
18556
18970
|
'''
|
|
@@ -19898,6 +20312,7 @@ class S3Code(Code, metaclass=jsii.JSIIMeta, jsii_type="aws-cdk-lib.aws_lambda.S3
|
|
|
19898
20312
|
"allow_all_outbound": "allowAllOutbound",
|
|
19899
20313
|
"allow_public_subnet": "allowPublicSubnet",
|
|
19900
20314
|
"application_log_level": "applicationLogLevel",
|
|
20315
|
+
"application_log_level_v2": "applicationLogLevelV2",
|
|
19901
20316
|
"architecture": "architecture",
|
|
19902
20317
|
"code_signing_config": "codeSigningConfig",
|
|
19903
20318
|
"current_version_options": "currentVersionOptions",
|
|
@@ -19931,6 +20346,7 @@ class S3Code(Code, metaclass=jsii.JSIIMeta, jsii_type="aws-cdk-lib.aws_lambda.S3
|
|
|
19931
20346
|
"security_groups": "securityGroups",
|
|
19932
20347
|
"snap_start": "snapStart",
|
|
19933
20348
|
"system_log_level": "systemLogLevel",
|
|
20349
|
+
"system_log_level_v2": "systemLogLevelV2",
|
|
19934
20350
|
"timeout": "timeout",
|
|
19935
20351
|
"tracing": "tracing",
|
|
19936
20352
|
"vpc": "vpc",
|
|
@@ -19954,6 +20370,7 @@ class SingletonFunctionProps(FunctionProps):
|
|
|
19954
20370
|
allow_all_outbound: typing.Optional[builtins.bool] = None,
|
|
19955
20371
|
allow_public_subnet: typing.Optional[builtins.bool] = None,
|
|
19956
20372
|
application_log_level: typing.Optional[builtins.str] = None,
|
|
20373
|
+
application_log_level_v2: typing.Optional[ApplicationLogLevel] = None,
|
|
19957
20374
|
architecture: typing.Optional[Architecture] = None,
|
|
19958
20375
|
code_signing_config: typing.Optional[ICodeSigningConfig] = None,
|
|
19959
20376
|
current_version_options: typing.Optional[typing.Union["VersionOptions", typing.Dict[builtins.str, typing.Any]]] = None,
|
|
@@ -19987,6 +20404,7 @@ class SingletonFunctionProps(FunctionProps):
|
|
|
19987
20404
|
security_groups: typing.Optional[typing.Sequence[_ISecurityGroup_acf8a799]] = None,
|
|
19988
20405
|
snap_start: typing.Optional["SnapStartConf"] = None,
|
|
19989
20406
|
system_log_level: typing.Optional[builtins.str] = None,
|
|
20407
|
+
system_log_level_v2: typing.Optional["SystemLogLevel"] = None,
|
|
19990
20408
|
timeout: typing.Optional[_Duration_4839e8c3] = None,
|
|
19991
20409
|
tracing: typing.Optional["Tracing"] = None,
|
|
19992
20410
|
vpc: typing.Optional[_IVpc_f30d5663] = None,
|
|
@@ -20006,7 +20424,8 @@ class SingletonFunctionProps(FunctionProps):
|
|
|
20006
20424
|
:param adot_instrumentation: Specify the configuration of AWS Distro for OpenTelemetry (ADOT) instrumentation. Default: - No ADOT instrumentation
|
|
20007
20425
|
:param allow_all_outbound: Whether to allow the Lambda to send all network traffic. 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
|
|
20008
20426
|
:param allow_public_subnet: Lambda Functions in a public subnet can NOT access the internet. Use this property to acknowledge this limitation and still place the function in a public subnet. Default: false
|
|
20009
|
-
:param application_log_level: Sets the application log level for the function. Default: "INFO"
|
|
20427
|
+
:param application_log_level: (deprecated) Sets the application log level for the function. Default: "INFO"
|
|
20428
|
+
:param application_log_level_v2: Sets the application log level for the function. Default: ApplicationLogLevel.INFO
|
|
20010
20429
|
:param architecture: The system architectures compatible with this lambda function. Default: Architecture.X86_64
|
|
20011
20430
|
:param code_signing_config: Code signing config associated with this function. Default: - Not Sign the Code
|
|
20012
20431
|
:param current_version_options: Options for the ``lambda.Version`` resource automatically created by the ``fn.currentVersion`` method. Default: - default options as described in ``VersionOptions``
|
|
@@ -20024,7 +20443,7 @@ class SingletonFunctionProps(FunctionProps):
|
|
|
20024
20443
|
:param insights_version: Specify the version of CloudWatch Lambda insights to use for monitoring. Default: - No Lambda Insights
|
|
20025
20444
|
:param ipv6_allowed_for_dual_stack: Allows outbound IPv6 traffic on VPC functions that are connected to dual-stack subnets. Only used if 'vpc' is supplied. Default: false
|
|
20026
20445
|
:param layers: A list of layers to add to the function's execution environment. You can configure your Lambda function to pull in additional code during initialization in the form of layers. Layers are packages of libraries or other dependencies that can be used by multiple functions. Default: - No layers.
|
|
20027
|
-
:param log_format: Sets the logFormat for the function. Default: "Text"
|
|
20446
|
+
:param log_format: (deprecated) Sets the logFormat for the function. Default: "Text"
|
|
20028
20447
|
:param logging_format: Sets the loggingFormat for the function. Default: LoggingFormat.TEXT
|
|
20029
20448
|
:param log_group: The log group the function sends logs to. By default, Lambda functions send logs to an automatically created default log group named /aws/lambda/<function name>. However you cannot change the properties of this auto-created log group using the AWS CDK, e.g. you cannot set a different log retention. Use the ``logGroup`` property to create a fully customizable LogGroup ahead of time, and instruct the Lambda function to send logs to it. Providing a user-controlled log group was rolled out to commercial regions on 2023-11-16. If you are deploying to another type of region, please check regional availability first. Default: ``/aws/lambda/${this.functionName}`` - default log group created by Lambda
|
|
20030
20449
|
:param log_retention: The number of days log events are kept in CloudWatch Logs. When updating this property, unsetting it doesn't remove the log retention policy. To remove the retention policy, set the value to ``INFINITE``. This is a legacy API and we strongly recommend you move away from it if you can. Instead create a fully customizable log group with ``logs.LogGroup`` and use the ``logGroup`` property to instruct the Lambda function to send logs to it. Migrating from ``logRetention`` to ``logGroup`` will cause the name of the log group to change. Users and code and referencing the name verbatim will have to adjust. In AWS CDK code, you can access the log group name directly from the LogGroup construct:: import * as logs from 'aws-cdk-lib/aws-logs'; declare const myLogGroup: logs.LogGroup; myLogGroup.logGroupName; Default: logs.RetentionDays.INFINITE
|
|
@@ -20039,7 +20458,8 @@ class SingletonFunctionProps(FunctionProps):
|
|
|
20039
20458
|
:param runtime_management_mode: Sets the runtime management configuration for a function's version. Default: Auto
|
|
20040
20459
|
:param security_groups: The list of security groups to associate with the Lambda's network interfaces. Only used if 'vpc' is supplied. Default: - If the function is placed within a VPC and a security group is not specified, either by this or securityGroup prop, a dedicated security group will be created for this function.
|
|
20041
20460
|
:param snap_start: Enable SnapStart for Lambda Function. SnapStart is currently supported only for Java 11, 17 runtime Default: - No snapstart
|
|
20042
|
-
:param system_log_level: Sets the system log level for the function. Default: "INFO"
|
|
20461
|
+
:param system_log_level: (deprecated) Sets the system log level for the function. Default: "INFO"
|
|
20462
|
+
:param system_log_level_v2: Sets the system log level for the function. Default: SystemLogLevel.INFO
|
|
20043
20463
|
:param timeout: The function execution time (in seconds) after which Lambda terminates the function. Because the execution time affects cost, set this value based on the function's expected execution time. Default: Duration.seconds(3)
|
|
20044
20464
|
:param tracing: Enable AWS X-Ray Tracing for Lambda Function. Default: Tracing.Disabled
|
|
20045
20465
|
:param vpc: VPC network to place Lambda network interfaces. Specify this if the Lambda function needs to access resources in a VPC. This is required when ``vpcSubnets`` is specified. Default: - Function is not placed within a VPC.
|
|
@@ -20078,6 +20498,7 @@ class SingletonFunctionProps(FunctionProps):
|
|
|
20078
20498
|
check_type(argname="argument allow_all_outbound", value=allow_all_outbound, expected_type=type_hints["allow_all_outbound"])
|
|
20079
20499
|
check_type(argname="argument allow_public_subnet", value=allow_public_subnet, expected_type=type_hints["allow_public_subnet"])
|
|
20080
20500
|
check_type(argname="argument application_log_level", value=application_log_level, expected_type=type_hints["application_log_level"])
|
|
20501
|
+
check_type(argname="argument application_log_level_v2", value=application_log_level_v2, expected_type=type_hints["application_log_level_v2"])
|
|
20081
20502
|
check_type(argname="argument architecture", value=architecture, expected_type=type_hints["architecture"])
|
|
20082
20503
|
check_type(argname="argument code_signing_config", value=code_signing_config, expected_type=type_hints["code_signing_config"])
|
|
20083
20504
|
check_type(argname="argument current_version_options", value=current_version_options, expected_type=type_hints["current_version_options"])
|
|
@@ -20111,6 +20532,7 @@ class SingletonFunctionProps(FunctionProps):
|
|
|
20111
20532
|
check_type(argname="argument security_groups", value=security_groups, expected_type=type_hints["security_groups"])
|
|
20112
20533
|
check_type(argname="argument snap_start", value=snap_start, expected_type=type_hints["snap_start"])
|
|
20113
20534
|
check_type(argname="argument system_log_level", value=system_log_level, expected_type=type_hints["system_log_level"])
|
|
20535
|
+
check_type(argname="argument system_log_level_v2", value=system_log_level_v2, expected_type=type_hints["system_log_level_v2"])
|
|
20114
20536
|
check_type(argname="argument timeout", value=timeout, expected_type=type_hints["timeout"])
|
|
20115
20537
|
check_type(argname="argument tracing", value=tracing, expected_type=type_hints["tracing"])
|
|
20116
20538
|
check_type(argname="argument vpc", value=vpc, expected_type=type_hints["vpc"])
|
|
@@ -20142,6 +20564,8 @@ class SingletonFunctionProps(FunctionProps):
|
|
|
20142
20564
|
self._values["allow_public_subnet"] = allow_public_subnet
|
|
20143
20565
|
if application_log_level is not None:
|
|
20144
20566
|
self._values["application_log_level"] = application_log_level
|
|
20567
|
+
if application_log_level_v2 is not None:
|
|
20568
|
+
self._values["application_log_level_v2"] = application_log_level_v2
|
|
20145
20569
|
if architecture is not None:
|
|
20146
20570
|
self._values["architecture"] = architecture
|
|
20147
20571
|
if code_signing_config is not None:
|
|
@@ -20208,6 +20632,8 @@ class SingletonFunctionProps(FunctionProps):
|
|
|
20208
20632
|
self._values["snap_start"] = snap_start
|
|
20209
20633
|
if system_log_level is not None:
|
|
20210
20634
|
self._values["system_log_level"] = system_log_level
|
|
20635
|
+
if system_log_level_v2 is not None:
|
|
20636
|
+
self._values["system_log_level_v2"] = system_log_level_v2
|
|
20211
20637
|
if timeout is not None:
|
|
20212
20638
|
self._values["timeout"] = timeout
|
|
20213
20639
|
if tracing is not None:
|
|
@@ -20302,13 +20728,26 @@ class SingletonFunctionProps(FunctionProps):
|
|
|
20302
20728
|
|
|
20303
20729
|
@builtins.property
|
|
20304
20730
|
def application_log_level(self) -> typing.Optional[builtins.str]:
|
|
20305
|
-
'''Sets the application log level for the function.
|
|
20731
|
+
'''(deprecated) Sets the application log level for the function.
|
|
20306
20732
|
|
|
20307
20733
|
:default: "INFO"
|
|
20734
|
+
|
|
20735
|
+
:deprecated: Use ``applicationLogLevelV2`` as a property instead.
|
|
20736
|
+
|
|
20737
|
+
:stability: deprecated
|
|
20308
20738
|
'''
|
|
20309
20739
|
result = self._values.get("application_log_level")
|
|
20310
20740
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
20311
20741
|
|
|
20742
|
+
@builtins.property
|
|
20743
|
+
def application_log_level_v2(self) -> typing.Optional[ApplicationLogLevel]:
|
|
20744
|
+
'''Sets the application log level for the function.
|
|
20745
|
+
|
|
20746
|
+
:default: ApplicationLogLevel.INFO
|
|
20747
|
+
'''
|
|
20748
|
+
result = self._values.get("application_log_level_v2")
|
|
20749
|
+
return typing.cast(typing.Optional[ApplicationLogLevel], result)
|
|
20750
|
+
|
|
20312
20751
|
@builtins.property
|
|
20313
20752
|
def architecture(self) -> typing.Optional[Architecture]:
|
|
20314
20753
|
'''The system architectures compatible with this lambda function.
|
|
@@ -20493,9 +20932,13 @@ class SingletonFunctionProps(FunctionProps):
|
|
|
20493
20932
|
|
|
20494
20933
|
@builtins.property
|
|
20495
20934
|
def log_format(self) -> typing.Optional[builtins.str]:
|
|
20496
|
-
'''Sets the logFormat for the function.
|
|
20935
|
+
'''(deprecated) Sets the logFormat for the function.
|
|
20497
20936
|
|
|
20498
20937
|
:default: "Text"
|
|
20938
|
+
|
|
20939
|
+
:deprecated: Use ``loggingFormat`` as a property instead.
|
|
20940
|
+
|
|
20941
|
+
:stability: deprecated
|
|
20499
20942
|
'''
|
|
20500
20943
|
result = self._values.get("log_format")
|
|
20501
20944
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
@@ -20695,13 +21138,26 @@ class SingletonFunctionProps(FunctionProps):
|
|
|
20695
21138
|
|
|
20696
21139
|
@builtins.property
|
|
20697
21140
|
def system_log_level(self) -> typing.Optional[builtins.str]:
|
|
20698
|
-
'''Sets the system log level for the function.
|
|
21141
|
+
'''(deprecated) Sets the system log level for the function.
|
|
20699
21142
|
|
|
20700
21143
|
:default: "INFO"
|
|
21144
|
+
|
|
21145
|
+
:deprecated: Use ``systemLogLevelV2`` as a property instead.
|
|
21146
|
+
|
|
21147
|
+
:stability: deprecated
|
|
20701
21148
|
'''
|
|
20702
21149
|
result = self._values.get("system_log_level")
|
|
20703
21150
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
20704
21151
|
|
|
21152
|
+
@builtins.property
|
|
21153
|
+
def system_log_level_v2(self) -> typing.Optional["SystemLogLevel"]:
|
|
21154
|
+
'''Sets the system log level for the function.
|
|
21155
|
+
|
|
21156
|
+
:default: SystemLogLevel.INFO
|
|
21157
|
+
'''
|
|
21158
|
+
result = self._values.get("system_log_level_v2")
|
|
21159
|
+
return typing.cast(typing.Optional["SystemLogLevel"], result)
|
|
21160
|
+
|
|
20705
21161
|
@builtins.property
|
|
20706
21162
|
def timeout(self) -> typing.Optional[_Duration_4839e8c3]:
|
|
20707
21163
|
'''The function execution time (in seconds) after which Lambda terminates the function.
|
|
@@ -21087,8 +21543,8 @@ class SystemLogLevel(enum.Enum):
|
|
|
21087
21543
|
handler="index.handler",
|
|
21088
21544
|
runtime=lambda_.Runtime.NODEJS_18_X,
|
|
21089
21545
|
logging_format=lambda_.LoggingFormat.JSON,
|
|
21090
|
-
|
|
21091
|
-
|
|
21546
|
+
system_log_level_v2=lambda_.SystemLogLevel.INFO,
|
|
21547
|
+
application_log_level_v2=lambda_.ApplicationLogLevel.INFO,
|
|
21092
21548
|
log_group=log_group
|
|
21093
21549
|
)
|
|
21094
21550
|
'''
|
|
@@ -22776,6 +23232,7 @@ class CodeSigningConfig(
|
|
|
22776
23232
|
"allow_all_outbound": "allowAllOutbound",
|
|
22777
23233
|
"allow_public_subnet": "allowPublicSubnet",
|
|
22778
23234
|
"application_log_level": "applicationLogLevel",
|
|
23235
|
+
"application_log_level_v2": "applicationLogLevelV2",
|
|
22779
23236
|
"architecture": "architecture",
|
|
22780
23237
|
"code_signing_config": "codeSigningConfig",
|
|
22781
23238
|
"current_version_options": "currentVersionOptions",
|
|
@@ -22809,6 +23266,7 @@ class CodeSigningConfig(
|
|
|
22809
23266
|
"security_groups": "securityGroups",
|
|
22810
23267
|
"snap_start": "snapStart",
|
|
22811
23268
|
"system_log_level": "systemLogLevel",
|
|
23269
|
+
"system_log_level_v2": "systemLogLevelV2",
|
|
22812
23270
|
"timeout": "timeout",
|
|
22813
23271
|
"tracing": "tracing",
|
|
22814
23272
|
"vpc": "vpc",
|
|
@@ -22828,6 +23286,7 @@ class DockerImageFunctionProps(FunctionOptions):
|
|
|
22828
23286
|
allow_all_outbound: typing.Optional[builtins.bool] = None,
|
|
22829
23287
|
allow_public_subnet: typing.Optional[builtins.bool] = None,
|
|
22830
23288
|
application_log_level: typing.Optional[builtins.str] = None,
|
|
23289
|
+
application_log_level_v2: typing.Optional[ApplicationLogLevel] = None,
|
|
22831
23290
|
architecture: typing.Optional[Architecture] = None,
|
|
22832
23291
|
code_signing_config: typing.Optional[ICodeSigningConfig] = None,
|
|
22833
23292
|
current_version_options: typing.Optional[typing.Union[VersionOptions, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
@@ -22861,6 +23320,7 @@ class DockerImageFunctionProps(FunctionOptions):
|
|
|
22861
23320
|
security_groups: typing.Optional[typing.Sequence[_ISecurityGroup_acf8a799]] = None,
|
|
22862
23321
|
snap_start: typing.Optional[SnapStartConf] = None,
|
|
22863
23322
|
system_log_level: typing.Optional[builtins.str] = None,
|
|
23323
|
+
system_log_level_v2: typing.Optional[SystemLogLevel] = None,
|
|
22864
23324
|
timeout: typing.Optional[_Duration_4839e8c3] = None,
|
|
22865
23325
|
tracing: typing.Optional[Tracing] = None,
|
|
22866
23326
|
vpc: typing.Optional[_IVpc_f30d5663] = None,
|
|
@@ -22876,7 +23336,8 @@ class DockerImageFunctionProps(FunctionOptions):
|
|
|
22876
23336
|
:param adot_instrumentation: Specify the configuration of AWS Distro for OpenTelemetry (ADOT) instrumentation. Default: - No ADOT instrumentation
|
|
22877
23337
|
:param allow_all_outbound: Whether to allow the Lambda to send all network traffic. 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
|
|
22878
23338
|
:param allow_public_subnet: Lambda Functions in a public subnet can NOT access the internet. Use this property to acknowledge this limitation and still place the function in a public subnet. Default: false
|
|
22879
|
-
:param application_log_level: Sets the application log level for the function. Default: "INFO"
|
|
23339
|
+
:param application_log_level: (deprecated) Sets the application log level for the function. Default: "INFO"
|
|
23340
|
+
:param application_log_level_v2: Sets the application log level for the function. Default: ApplicationLogLevel.INFO
|
|
22880
23341
|
:param architecture: The system architectures compatible with this lambda function. Default: Architecture.X86_64
|
|
22881
23342
|
:param code_signing_config: Code signing config associated with this function. Default: - Not Sign the Code
|
|
22882
23343
|
:param current_version_options: Options for the ``lambda.Version`` resource automatically created by the ``fn.currentVersion`` method. Default: - default options as described in ``VersionOptions``
|
|
@@ -22894,7 +23355,7 @@ class DockerImageFunctionProps(FunctionOptions):
|
|
|
22894
23355
|
:param insights_version: Specify the version of CloudWatch Lambda insights to use for monitoring. Default: - No Lambda Insights
|
|
22895
23356
|
:param ipv6_allowed_for_dual_stack: Allows outbound IPv6 traffic on VPC functions that are connected to dual-stack subnets. Only used if 'vpc' is supplied. Default: false
|
|
22896
23357
|
:param layers: A list of layers to add to the function's execution environment. You can configure your Lambda function to pull in additional code during initialization in the form of layers. Layers are packages of libraries or other dependencies that can be used by multiple functions. Default: - No layers.
|
|
22897
|
-
:param log_format: Sets the logFormat for the function. Default: "Text"
|
|
23358
|
+
:param log_format: (deprecated) Sets the logFormat for the function. Default: "Text"
|
|
22898
23359
|
:param logging_format: Sets the loggingFormat for the function. Default: LoggingFormat.TEXT
|
|
22899
23360
|
:param log_group: The log group the function sends logs to. By default, Lambda functions send logs to an automatically created default log group named /aws/lambda/<function name>. However you cannot change the properties of this auto-created log group using the AWS CDK, e.g. you cannot set a different log retention. Use the ``logGroup`` property to create a fully customizable LogGroup ahead of time, and instruct the Lambda function to send logs to it. Providing a user-controlled log group was rolled out to commercial regions on 2023-11-16. If you are deploying to another type of region, please check regional availability first. Default: ``/aws/lambda/${this.functionName}`` - default log group created by Lambda
|
|
22900
23361
|
:param log_retention: The number of days log events are kept in CloudWatch Logs. When updating this property, unsetting it doesn't remove the log retention policy. To remove the retention policy, set the value to ``INFINITE``. This is a legacy API and we strongly recommend you move away from it if you can. Instead create a fully customizable log group with ``logs.LogGroup`` and use the ``logGroup`` property to instruct the Lambda function to send logs to it. Migrating from ``logRetention`` to ``logGroup`` will cause the name of the log group to change. Users and code and referencing the name verbatim will have to adjust. In AWS CDK code, you can access the log group name directly from the LogGroup construct:: import * as logs from 'aws-cdk-lib/aws-logs'; declare const myLogGroup: logs.LogGroup; myLogGroup.logGroupName; Default: logs.RetentionDays.INFINITE
|
|
@@ -22909,7 +23370,8 @@ class DockerImageFunctionProps(FunctionOptions):
|
|
|
22909
23370
|
:param runtime_management_mode: Sets the runtime management configuration for a function's version. Default: Auto
|
|
22910
23371
|
:param security_groups: The list of security groups to associate with the Lambda's network interfaces. Only used if 'vpc' is supplied. Default: - If the function is placed within a VPC and a security group is not specified, either by this or securityGroup prop, a dedicated security group will be created for this function.
|
|
22911
23372
|
:param snap_start: Enable SnapStart for Lambda Function. SnapStart is currently supported only for Java 11, 17 runtime Default: - No snapstart
|
|
22912
|
-
:param system_log_level: Sets the system log level for the function. Default: "INFO"
|
|
23373
|
+
:param system_log_level: (deprecated) Sets the system log level for the function. Default: "INFO"
|
|
23374
|
+
:param system_log_level_v2: Sets the system log level for the function. Default: SystemLogLevel.INFO
|
|
22913
23375
|
:param timeout: The function execution time (in seconds) after which Lambda terminates the function. Because the execution time affects cost, set this value based on the function's expected execution time. Default: Duration.seconds(3)
|
|
22914
23376
|
:param tracing: Enable AWS X-Ray Tracing for Lambda Function. Default: Tracing.Disabled
|
|
22915
23377
|
:param vpc: VPC network to place Lambda network interfaces. Specify this if the Lambda function needs to access resources in a VPC. This is required when ``vpcSubnets`` is specified. Default: - Function is not placed within a VPC.
|
|
@@ -22942,6 +23404,7 @@ class DockerImageFunctionProps(FunctionOptions):
|
|
|
22942
23404
|
check_type(argname="argument allow_all_outbound", value=allow_all_outbound, expected_type=type_hints["allow_all_outbound"])
|
|
22943
23405
|
check_type(argname="argument allow_public_subnet", value=allow_public_subnet, expected_type=type_hints["allow_public_subnet"])
|
|
22944
23406
|
check_type(argname="argument application_log_level", value=application_log_level, expected_type=type_hints["application_log_level"])
|
|
23407
|
+
check_type(argname="argument application_log_level_v2", value=application_log_level_v2, expected_type=type_hints["application_log_level_v2"])
|
|
22945
23408
|
check_type(argname="argument architecture", value=architecture, expected_type=type_hints["architecture"])
|
|
22946
23409
|
check_type(argname="argument code_signing_config", value=code_signing_config, expected_type=type_hints["code_signing_config"])
|
|
22947
23410
|
check_type(argname="argument current_version_options", value=current_version_options, expected_type=type_hints["current_version_options"])
|
|
@@ -22975,6 +23438,7 @@ class DockerImageFunctionProps(FunctionOptions):
|
|
|
22975
23438
|
check_type(argname="argument security_groups", value=security_groups, expected_type=type_hints["security_groups"])
|
|
22976
23439
|
check_type(argname="argument snap_start", value=snap_start, expected_type=type_hints["snap_start"])
|
|
22977
23440
|
check_type(argname="argument system_log_level", value=system_log_level, expected_type=type_hints["system_log_level"])
|
|
23441
|
+
check_type(argname="argument system_log_level_v2", value=system_log_level_v2, expected_type=type_hints["system_log_level_v2"])
|
|
22978
23442
|
check_type(argname="argument timeout", value=timeout, expected_type=type_hints["timeout"])
|
|
22979
23443
|
check_type(argname="argument tracing", value=tracing, expected_type=type_hints["tracing"])
|
|
22980
23444
|
check_type(argname="argument vpc", value=vpc, expected_type=type_hints["vpc"])
|
|
@@ -22999,6 +23463,8 @@ class DockerImageFunctionProps(FunctionOptions):
|
|
|
22999
23463
|
self._values["allow_public_subnet"] = allow_public_subnet
|
|
23000
23464
|
if application_log_level is not None:
|
|
23001
23465
|
self._values["application_log_level"] = application_log_level
|
|
23466
|
+
if application_log_level_v2 is not None:
|
|
23467
|
+
self._values["application_log_level_v2"] = application_log_level_v2
|
|
23002
23468
|
if architecture is not None:
|
|
23003
23469
|
self._values["architecture"] = architecture
|
|
23004
23470
|
if code_signing_config is not None:
|
|
@@ -23065,6 +23531,8 @@ class DockerImageFunctionProps(FunctionOptions):
|
|
|
23065
23531
|
self._values["snap_start"] = snap_start
|
|
23066
23532
|
if system_log_level is not None:
|
|
23067
23533
|
self._values["system_log_level"] = system_log_level
|
|
23534
|
+
if system_log_level_v2 is not None:
|
|
23535
|
+
self._values["system_log_level_v2"] = system_log_level_v2
|
|
23068
23536
|
if timeout is not None:
|
|
23069
23537
|
self._values["timeout"] = timeout
|
|
23070
23538
|
if tracing is not None:
|
|
@@ -23157,13 +23625,26 @@ class DockerImageFunctionProps(FunctionOptions):
|
|
|
23157
23625
|
|
|
23158
23626
|
@builtins.property
|
|
23159
23627
|
def application_log_level(self) -> typing.Optional[builtins.str]:
|
|
23160
|
-
'''Sets the application log level for the function.
|
|
23628
|
+
'''(deprecated) Sets the application log level for the function.
|
|
23161
23629
|
|
|
23162
23630
|
:default: "INFO"
|
|
23631
|
+
|
|
23632
|
+
:deprecated: Use ``applicationLogLevelV2`` as a property instead.
|
|
23633
|
+
|
|
23634
|
+
:stability: deprecated
|
|
23163
23635
|
'''
|
|
23164
23636
|
result = self._values.get("application_log_level")
|
|
23165
23637
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
23166
23638
|
|
|
23639
|
+
@builtins.property
|
|
23640
|
+
def application_log_level_v2(self) -> typing.Optional[ApplicationLogLevel]:
|
|
23641
|
+
'''Sets the application log level for the function.
|
|
23642
|
+
|
|
23643
|
+
:default: ApplicationLogLevel.INFO
|
|
23644
|
+
'''
|
|
23645
|
+
result = self._values.get("application_log_level_v2")
|
|
23646
|
+
return typing.cast(typing.Optional[ApplicationLogLevel], result)
|
|
23647
|
+
|
|
23167
23648
|
@builtins.property
|
|
23168
23649
|
def architecture(self) -> typing.Optional[Architecture]:
|
|
23169
23650
|
'''The system architectures compatible with this lambda function.
|
|
@@ -23348,9 +23829,13 @@ class DockerImageFunctionProps(FunctionOptions):
|
|
|
23348
23829
|
|
|
23349
23830
|
@builtins.property
|
|
23350
23831
|
def log_format(self) -> typing.Optional[builtins.str]:
|
|
23351
|
-
'''Sets the logFormat for the function.
|
|
23832
|
+
'''(deprecated) Sets the logFormat for the function.
|
|
23352
23833
|
|
|
23353
23834
|
:default: "Text"
|
|
23835
|
+
|
|
23836
|
+
:deprecated: Use ``loggingFormat`` as a property instead.
|
|
23837
|
+
|
|
23838
|
+
:stability: deprecated
|
|
23354
23839
|
'''
|
|
23355
23840
|
result = self._values.get("log_format")
|
|
23356
23841
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
@@ -23550,13 +24035,26 @@ class DockerImageFunctionProps(FunctionOptions):
|
|
|
23550
24035
|
|
|
23551
24036
|
@builtins.property
|
|
23552
24037
|
def system_log_level(self) -> typing.Optional[builtins.str]:
|
|
23553
|
-
'''Sets the system log level for the function.
|
|
24038
|
+
'''(deprecated) Sets the system log level for the function.
|
|
23554
24039
|
|
|
23555
24040
|
:default: "INFO"
|
|
24041
|
+
|
|
24042
|
+
:deprecated: Use ``systemLogLevelV2`` as a property instead.
|
|
24043
|
+
|
|
24044
|
+
:stability: deprecated
|
|
23556
24045
|
'''
|
|
23557
24046
|
result = self._values.get("system_log_level")
|
|
23558
24047
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
23559
24048
|
|
|
24049
|
+
@builtins.property
|
|
24050
|
+
def system_log_level_v2(self) -> typing.Optional[SystemLogLevel]:
|
|
24051
|
+
'''Sets the system log level for the function.
|
|
24052
|
+
|
|
24053
|
+
:default: SystemLogLevel.INFO
|
|
24054
|
+
'''
|
|
24055
|
+
result = self._values.get("system_log_level_v2")
|
|
24056
|
+
return typing.cast(typing.Optional[SystemLogLevel], result)
|
|
24057
|
+
|
|
23560
24058
|
@builtins.property
|
|
23561
24059
|
def timeout(self) -> typing.Optional[_Duration_4839e8c3]:
|
|
23562
24060
|
'''The function execution time (in seconds) after which Lambda terminates the function.
|
|
@@ -24787,6 +25285,7 @@ class SingletonFunction(
|
|
|
24787
25285
|
allow_all_outbound: typing.Optional[builtins.bool] = None,
|
|
24788
25286
|
allow_public_subnet: typing.Optional[builtins.bool] = None,
|
|
24789
25287
|
application_log_level: typing.Optional[builtins.str] = None,
|
|
25288
|
+
application_log_level_v2: typing.Optional[ApplicationLogLevel] = None,
|
|
24790
25289
|
architecture: typing.Optional[Architecture] = None,
|
|
24791
25290
|
code_signing_config: typing.Optional[ICodeSigningConfig] = None,
|
|
24792
25291
|
current_version_options: typing.Optional[typing.Union[VersionOptions, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
@@ -24820,6 +25319,7 @@ class SingletonFunction(
|
|
|
24820
25319
|
security_groups: typing.Optional[typing.Sequence[_ISecurityGroup_acf8a799]] = None,
|
|
24821
25320
|
snap_start: typing.Optional[SnapStartConf] = None,
|
|
24822
25321
|
system_log_level: typing.Optional[builtins.str] = None,
|
|
25322
|
+
system_log_level_v2: typing.Optional[SystemLogLevel] = None,
|
|
24823
25323
|
timeout: typing.Optional[_Duration_4839e8c3] = None,
|
|
24824
25324
|
tracing: typing.Optional[Tracing] = None,
|
|
24825
25325
|
vpc: typing.Optional[_IVpc_f30d5663] = None,
|
|
@@ -24840,7 +25340,8 @@ class SingletonFunction(
|
|
|
24840
25340
|
:param adot_instrumentation: Specify the configuration of AWS Distro for OpenTelemetry (ADOT) instrumentation. Default: - No ADOT instrumentation
|
|
24841
25341
|
:param allow_all_outbound: Whether to allow the Lambda to send all network traffic. 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
|
|
24842
25342
|
:param allow_public_subnet: Lambda Functions in a public subnet can NOT access the internet. Use this property to acknowledge this limitation and still place the function in a public subnet. Default: false
|
|
24843
|
-
:param application_log_level: Sets the application log level for the function. Default: "INFO"
|
|
25343
|
+
:param application_log_level: (deprecated) Sets the application log level for the function. Default: "INFO"
|
|
25344
|
+
:param application_log_level_v2: Sets the application log level for the function. Default: ApplicationLogLevel.INFO
|
|
24844
25345
|
:param architecture: The system architectures compatible with this lambda function. Default: Architecture.X86_64
|
|
24845
25346
|
:param code_signing_config: Code signing config associated with this function. Default: - Not Sign the Code
|
|
24846
25347
|
:param current_version_options: Options for the ``lambda.Version`` resource automatically created by the ``fn.currentVersion`` method. Default: - default options as described in ``VersionOptions``
|
|
@@ -24858,7 +25359,7 @@ class SingletonFunction(
|
|
|
24858
25359
|
:param insights_version: Specify the version of CloudWatch Lambda insights to use for monitoring. Default: - No Lambda Insights
|
|
24859
25360
|
:param ipv6_allowed_for_dual_stack: Allows outbound IPv6 traffic on VPC functions that are connected to dual-stack subnets. Only used if 'vpc' is supplied. Default: false
|
|
24860
25361
|
:param layers: A list of layers to add to the function's execution environment. You can configure your Lambda function to pull in additional code during initialization in the form of layers. Layers are packages of libraries or other dependencies that can be used by multiple functions. Default: - No layers.
|
|
24861
|
-
:param log_format: Sets the logFormat for the function. Default: "Text"
|
|
25362
|
+
:param log_format: (deprecated) Sets the logFormat for the function. Default: "Text"
|
|
24862
25363
|
:param logging_format: Sets the loggingFormat for the function. Default: LoggingFormat.TEXT
|
|
24863
25364
|
:param log_group: The log group the function sends logs to. By default, Lambda functions send logs to an automatically created default log group named /aws/lambda/<function name>. However you cannot change the properties of this auto-created log group using the AWS CDK, e.g. you cannot set a different log retention. Use the ``logGroup`` property to create a fully customizable LogGroup ahead of time, and instruct the Lambda function to send logs to it. Providing a user-controlled log group was rolled out to commercial regions on 2023-11-16. If you are deploying to another type of region, please check regional availability first. Default: ``/aws/lambda/${this.functionName}`` - default log group created by Lambda
|
|
24864
25365
|
:param log_retention: The number of days log events are kept in CloudWatch Logs. When updating this property, unsetting it doesn't remove the log retention policy. To remove the retention policy, set the value to ``INFINITE``. This is a legacy API and we strongly recommend you move away from it if you can. Instead create a fully customizable log group with ``logs.LogGroup`` and use the ``logGroup`` property to instruct the Lambda function to send logs to it. Migrating from ``logRetention`` to ``logGroup`` will cause the name of the log group to change. Users and code and referencing the name verbatim will have to adjust. In AWS CDK code, you can access the log group name directly from the LogGroup construct:: import * as logs from 'aws-cdk-lib/aws-logs'; declare const myLogGroup: logs.LogGroup; myLogGroup.logGroupName; Default: logs.RetentionDays.INFINITE
|
|
@@ -24873,7 +25374,8 @@ class SingletonFunction(
|
|
|
24873
25374
|
:param runtime_management_mode: Sets the runtime management configuration for a function's version. Default: Auto
|
|
24874
25375
|
:param security_groups: The list of security groups to associate with the Lambda's network interfaces. Only used if 'vpc' is supplied. Default: - If the function is placed within a VPC and a security group is not specified, either by this or securityGroup prop, a dedicated security group will be created for this function.
|
|
24875
25376
|
:param snap_start: Enable SnapStart for Lambda Function. SnapStart is currently supported only for Java 11, 17 runtime Default: - No snapstart
|
|
24876
|
-
:param system_log_level: Sets the system log level for the function. Default: "INFO"
|
|
25377
|
+
:param system_log_level: (deprecated) Sets the system log level for the function. Default: "INFO"
|
|
25378
|
+
:param system_log_level_v2: Sets the system log level for the function. Default: SystemLogLevel.INFO
|
|
24877
25379
|
:param timeout: The function execution time (in seconds) after which Lambda terminates the function. Because the execution time affects cost, set this value based on the function's expected execution time. Default: Duration.seconds(3)
|
|
24878
25380
|
:param tracing: Enable AWS X-Ray Tracing for Lambda Function. Default: Tracing.Disabled
|
|
24879
25381
|
:param vpc: VPC network to place Lambda network interfaces. Specify this if the Lambda function needs to access resources in a VPC. This is required when ``vpcSubnets`` is specified. Default: - Function is not placed within a VPC.
|
|
@@ -24897,6 +25399,7 @@ class SingletonFunction(
|
|
|
24897
25399
|
allow_all_outbound=allow_all_outbound,
|
|
24898
25400
|
allow_public_subnet=allow_public_subnet,
|
|
24899
25401
|
application_log_level=application_log_level,
|
|
25402
|
+
application_log_level_v2=application_log_level_v2,
|
|
24900
25403
|
architecture=architecture,
|
|
24901
25404
|
code_signing_config=code_signing_config,
|
|
24902
25405
|
current_version_options=current_version_options,
|
|
@@ -24930,6 +25433,7 @@ class SingletonFunction(
|
|
|
24930
25433
|
security_groups=security_groups,
|
|
24931
25434
|
snap_start=snap_start,
|
|
24932
25435
|
system_log_level=system_log_level,
|
|
25436
|
+
system_log_level_v2=system_log_level_v2,
|
|
24933
25437
|
timeout=timeout,
|
|
24934
25438
|
tracing=tracing,
|
|
24935
25439
|
vpc=vpc,
|
|
@@ -25739,6 +26243,7 @@ class Function(
|
|
|
25739
26243
|
allow_all_outbound: typing.Optional[builtins.bool] = None,
|
|
25740
26244
|
allow_public_subnet: typing.Optional[builtins.bool] = None,
|
|
25741
26245
|
application_log_level: typing.Optional[builtins.str] = None,
|
|
26246
|
+
application_log_level_v2: typing.Optional[ApplicationLogLevel] = None,
|
|
25742
26247
|
architecture: typing.Optional[Architecture] = None,
|
|
25743
26248
|
code_signing_config: typing.Optional[ICodeSigningConfig] = None,
|
|
25744
26249
|
current_version_options: typing.Optional[typing.Union[VersionOptions, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
@@ -25772,6 +26277,7 @@ class Function(
|
|
|
25772
26277
|
security_groups: typing.Optional[typing.Sequence[_ISecurityGroup_acf8a799]] = None,
|
|
25773
26278
|
snap_start: typing.Optional[SnapStartConf] = None,
|
|
25774
26279
|
system_log_level: typing.Optional[builtins.str] = None,
|
|
26280
|
+
system_log_level_v2: typing.Optional[SystemLogLevel] = None,
|
|
25775
26281
|
timeout: typing.Optional[_Duration_4839e8c3] = None,
|
|
25776
26282
|
tracing: typing.Optional[Tracing] = None,
|
|
25777
26283
|
vpc: typing.Optional[_IVpc_f30d5663] = None,
|
|
@@ -25790,7 +26296,8 @@ class Function(
|
|
|
25790
26296
|
:param adot_instrumentation: Specify the configuration of AWS Distro for OpenTelemetry (ADOT) instrumentation. Default: - No ADOT instrumentation
|
|
25791
26297
|
:param allow_all_outbound: Whether to allow the Lambda to send all network traffic. 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
|
|
25792
26298
|
:param allow_public_subnet: Lambda Functions in a public subnet can NOT access the internet. Use this property to acknowledge this limitation and still place the function in a public subnet. Default: false
|
|
25793
|
-
:param application_log_level: Sets the application log level for the function. Default: "INFO"
|
|
26299
|
+
:param application_log_level: (deprecated) Sets the application log level for the function. Default: "INFO"
|
|
26300
|
+
:param application_log_level_v2: Sets the application log level for the function. Default: ApplicationLogLevel.INFO
|
|
25794
26301
|
:param architecture: The system architectures compatible with this lambda function. Default: Architecture.X86_64
|
|
25795
26302
|
:param code_signing_config: Code signing config associated with this function. Default: - Not Sign the Code
|
|
25796
26303
|
:param current_version_options: Options for the ``lambda.Version`` resource automatically created by the ``fn.currentVersion`` method. Default: - default options as described in ``VersionOptions``
|
|
@@ -25808,7 +26315,7 @@ class Function(
|
|
|
25808
26315
|
:param insights_version: Specify the version of CloudWatch Lambda insights to use for monitoring. Default: - No Lambda Insights
|
|
25809
26316
|
:param ipv6_allowed_for_dual_stack: Allows outbound IPv6 traffic on VPC functions that are connected to dual-stack subnets. Only used if 'vpc' is supplied. Default: false
|
|
25810
26317
|
:param layers: A list of layers to add to the function's execution environment. You can configure your Lambda function to pull in additional code during initialization in the form of layers. Layers are packages of libraries or other dependencies that can be used by multiple functions. Default: - No layers.
|
|
25811
|
-
:param log_format: Sets the logFormat for the function. Default: "Text"
|
|
26318
|
+
:param log_format: (deprecated) Sets the logFormat for the function. Default: "Text"
|
|
25812
26319
|
:param logging_format: Sets the loggingFormat for the function. Default: LoggingFormat.TEXT
|
|
25813
26320
|
:param log_group: The log group the function sends logs to. By default, Lambda functions send logs to an automatically created default log group named /aws/lambda/<function name>. However you cannot change the properties of this auto-created log group using the AWS CDK, e.g. you cannot set a different log retention. Use the ``logGroup`` property to create a fully customizable LogGroup ahead of time, and instruct the Lambda function to send logs to it. Providing a user-controlled log group was rolled out to commercial regions on 2023-11-16. If you are deploying to another type of region, please check regional availability first. Default: ``/aws/lambda/${this.functionName}`` - default log group created by Lambda
|
|
25814
26321
|
:param log_retention: The number of days log events are kept in CloudWatch Logs. When updating this property, unsetting it doesn't remove the log retention policy. To remove the retention policy, set the value to ``INFINITE``. This is a legacy API and we strongly recommend you move away from it if you can. Instead create a fully customizable log group with ``logs.LogGroup`` and use the ``logGroup`` property to instruct the Lambda function to send logs to it. Migrating from ``logRetention`` to ``logGroup`` will cause the name of the log group to change. Users and code and referencing the name verbatim will have to adjust. In AWS CDK code, you can access the log group name directly from the LogGroup construct:: import * as logs from 'aws-cdk-lib/aws-logs'; declare const myLogGroup: logs.LogGroup; myLogGroup.logGroupName; Default: logs.RetentionDays.INFINITE
|
|
@@ -25823,7 +26330,8 @@ class Function(
|
|
|
25823
26330
|
:param runtime_management_mode: Sets the runtime management configuration for a function's version. Default: Auto
|
|
25824
26331
|
:param security_groups: The list of security groups to associate with the Lambda's network interfaces. Only used if 'vpc' is supplied. Default: - If the function is placed within a VPC and a security group is not specified, either by this or securityGroup prop, a dedicated security group will be created for this function.
|
|
25825
26332
|
:param snap_start: Enable SnapStart for Lambda Function. SnapStart is currently supported only for Java 11, 17 runtime Default: - No snapstart
|
|
25826
|
-
:param system_log_level: Sets the system log level for the function. Default: "INFO"
|
|
26333
|
+
:param system_log_level: (deprecated) Sets the system log level for the function. Default: "INFO"
|
|
26334
|
+
:param system_log_level_v2: Sets the system log level for the function. Default: SystemLogLevel.INFO
|
|
25827
26335
|
:param timeout: The function execution time (in seconds) after which Lambda terminates the function. Because the execution time affects cost, set this value based on the function's expected execution time. Default: Duration.seconds(3)
|
|
25828
26336
|
:param tracing: Enable AWS X-Ray Tracing for Lambda Function. Default: Tracing.Disabled
|
|
25829
26337
|
:param vpc: VPC network to place Lambda network interfaces. Specify this if the Lambda function needs to access resources in a VPC. This is required when ``vpcSubnets`` is specified. Default: - Function is not placed within a VPC.
|
|
@@ -25845,6 +26353,7 @@ class Function(
|
|
|
25845
26353
|
allow_all_outbound=allow_all_outbound,
|
|
25846
26354
|
allow_public_subnet=allow_public_subnet,
|
|
25847
26355
|
application_log_level=application_log_level,
|
|
26356
|
+
application_log_level_v2=application_log_level_v2,
|
|
25848
26357
|
architecture=architecture,
|
|
25849
26358
|
code_signing_config=code_signing_config,
|
|
25850
26359
|
current_version_options=current_version_options,
|
|
@@ -25878,6 +26387,7 @@ class Function(
|
|
|
25878
26387
|
security_groups=security_groups,
|
|
25879
26388
|
snap_start=snap_start,
|
|
25880
26389
|
system_log_level=system_log_level,
|
|
26390
|
+
system_log_level_v2=system_log_level_v2,
|
|
25881
26391
|
timeout=timeout,
|
|
25882
26392
|
tracing=tracing,
|
|
25883
26393
|
vpc=vpc,
|
|
@@ -26525,6 +27035,7 @@ class DockerImageFunction(
|
|
|
26525
27035
|
allow_all_outbound: typing.Optional[builtins.bool] = None,
|
|
26526
27036
|
allow_public_subnet: typing.Optional[builtins.bool] = None,
|
|
26527
27037
|
application_log_level: typing.Optional[builtins.str] = None,
|
|
27038
|
+
application_log_level_v2: typing.Optional[ApplicationLogLevel] = None,
|
|
26528
27039
|
architecture: typing.Optional[Architecture] = None,
|
|
26529
27040
|
code_signing_config: typing.Optional[ICodeSigningConfig] = None,
|
|
26530
27041
|
current_version_options: typing.Optional[typing.Union[VersionOptions, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
@@ -26558,6 +27069,7 @@ class DockerImageFunction(
|
|
|
26558
27069
|
security_groups: typing.Optional[typing.Sequence[_ISecurityGroup_acf8a799]] = None,
|
|
26559
27070
|
snap_start: typing.Optional[SnapStartConf] = None,
|
|
26560
27071
|
system_log_level: typing.Optional[builtins.str] = None,
|
|
27072
|
+
system_log_level_v2: typing.Optional[SystemLogLevel] = None,
|
|
26561
27073
|
timeout: typing.Optional[_Duration_4839e8c3] = None,
|
|
26562
27074
|
tracing: typing.Optional[Tracing] = None,
|
|
26563
27075
|
vpc: typing.Optional[_IVpc_f30d5663] = None,
|
|
@@ -26574,7 +27086,8 @@ class DockerImageFunction(
|
|
|
26574
27086
|
:param adot_instrumentation: Specify the configuration of AWS Distro for OpenTelemetry (ADOT) instrumentation. Default: - No ADOT instrumentation
|
|
26575
27087
|
:param allow_all_outbound: Whether to allow the Lambda to send all network traffic. 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
|
|
26576
27088
|
:param allow_public_subnet: Lambda Functions in a public subnet can NOT access the internet. Use this property to acknowledge this limitation and still place the function in a public subnet. Default: false
|
|
26577
|
-
:param application_log_level: Sets the application log level for the function. Default: "INFO"
|
|
27089
|
+
:param application_log_level: (deprecated) Sets the application log level for the function. Default: "INFO"
|
|
27090
|
+
:param application_log_level_v2: Sets the application log level for the function. Default: ApplicationLogLevel.INFO
|
|
26578
27091
|
:param architecture: The system architectures compatible with this lambda function. Default: Architecture.X86_64
|
|
26579
27092
|
:param code_signing_config: Code signing config associated with this function. Default: - Not Sign the Code
|
|
26580
27093
|
:param current_version_options: Options for the ``lambda.Version`` resource automatically created by the ``fn.currentVersion`` method. Default: - default options as described in ``VersionOptions``
|
|
@@ -26592,7 +27105,7 @@ class DockerImageFunction(
|
|
|
26592
27105
|
:param insights_version: Specify the version of CloudWatch Lambda insights to use for monitoring. Default: - No Lambda Insights
|
|
26593
27106
|
:param ipv6_allowed_for_dual_stack: Allows outbound IPv6 traffic on VPC functions that are connected to dual-stack subnets. Only used if 'vpc' is supplied. Default: false
|
|
26594
27107
|
:param layers: A list of layers to add to the function's execution environment. You can configure your Lambda function to pull in additional code during initialization in the form of layers. Layers are packages of libraries or other dependencies that can be used by multiple functions. Default: - No layers.
|
|
26595
|
-
:param log_format: Sets the logFormat for the function. Default: "Text"
|
|
27108
|
+
:param log_format: (deprecated) Sets the logFormat for the function. Default: "Text"
|
|
26596
27109
|
:param logging_format: Sets the loggingFormat for the function. Default: LoggingFormat.TEXT
|
|
26597
27110
|
:param log_group: The log group the function sends logs to. By default, Lambda functions send logs to an automatically created default log group named /aws/lambda/<function name>. However you cannot change the properties of this auto-created log group using the AWS CDK, e.g. you cannot set a different log retention. Use the ``logGroup`` property to create a fully customizable LogGroup ahead of time, and instruct the Lambda function to send logs to it. Providing a user-controlled log group was rolled out to commercial regions on 2023-11-16. If you are deploying to another type of region, please check regional availability first. Default: ``/aws/lambda/${this.functionName}`` - default log group created by Lambda
|
|
26598
27111
|
:param log_retention: The number of days log events are kept in CloudWatch Logs. When updating this property, unsetting it doesn't remove the log retention policy. To remove the retention policy, set the value to ``INFINITE``. This is a legacy API and we strongly recommend you move away from it if you can. Instead create a fully customizable log group with ``logs.LogGroup`` and use the ``logGroup`` property to instruct the Lambda function to send logs to it. Migrating from ``logRetention`` to ``logGroup`` will cause the name of the log group to change. Users and code and referencing the name verbatim will have to adjust. In AWS CDK code, you can access the log group name directly from the LogGroup construct:: import * as logs from 'aws-cdk-lib/aws-logs'; declare const myLogGroup: logs.LogGroup; myLogGroup.logGroupName; Default: logs.RetentionDays.INFINITE
|
|
@@ -26607,7 +27120,8 @@ class DockerImageFunction(
|
|
|
26607
27120
|
:param runtime_management_mode: Sets the runtime management configuration for a function's version. Default: Auto
|
|
26608
27121
|
:param security_groups: The list of security groups to associate with the Lambda's network interfaces. Only used if 'vpc' is supplied. Default: - If the function is placed within a VPC and a security group is not specified, either by this or securityGroup prop, a dedicated security group will be created for this function.
|
|
26609
27122
|
:param snap_start: Enable SnapStart for Lambda Function. SnapStart is currently supported only for Java 11, 17 runtime Default: - No snapstart
|
|
26610
|
-
:param system_log_level: Sets the system log level for the function. Default: "INFO"
|
|
27123
|
+
:param system_log_level: (deprecated) Sets the system log level for the function. Default: "INFO"
|
|
27124
|
+
:param system_log_level_v2: Sets the system log level for the function. Default: SystemLogLevel.INFO
|
|
26611
27125
|
:param timeout: The function execution time (in seconds) after which Lambda terminates the function. Because the execution time affects cost, set this value based on the function's expected execution time. Default: Duration.seconds(3)
|
|
26612
27126
|
:param tracing: Enable AWS X-Ray Tracing for Lambda Function. Default: Tracing.Disabled
|
|
26613
27127
|
:param vpc: VPC network to place Lambda network interfaces. Specify this if the Lambda function needs to access resources in a VPC. This is required when ``vpcSubnets`` is specified. Default: - Function is not placed within a VPC.
|
|
@@ -26627,6 +27141,7 @@ class DockerImageFunction(
|
|
|
26627
27141
|
allow_all_outbound=allow_all_outbound,
|
|
26628
27142
|
allow_public_subnet=allow_public_subnet,
|
|
26629
27143
|
application_log_level=application_log_level,
|
|
27144
|
+
application_log_level_v2=application_log_level_v2,
|
|
26630
27145
|
architecture=architecture,
|
|
26631
27146
|
code_signing_config=code_signing_config,
|
|
26632
27147
|
current_version_options=current_version_options,
|
|
@@ -26660,6 +27175,7 @@ class DockerImageFunction(
|
|
|
26660
27175
|
security_groups=security_groups,
|
|
26661
27176
|
snap_start=snap_start,
|
|
26662
27177
|
system_log_level=system_log_level,
|
|
27178
|
+
system_log_level_v2=system_log_level_v2,
|
|
26663
27179
|
timeout=timeout,
|
|
26664
27180
|
tracing=tracing,
|
|
26665
27181
|
vpc=vpc,
|
|
@@ -26719,6 +27235,7 @@ __all__ = [
|
|
|
26719
27235
|
"CodeImageConfig",
|
|
26720
27236
|
"CodeSigningConfig",
|
|
26721
27237
|
"CodeSigningConfigProps",
|
|
27238
|
+
"CustomCommandOptions",
|
|
26722
27239
|
"DestinationConfig",
|
|
26723
27240
|
"DestinationOptions",
|
|
26724
27241
|
"DestinationType",
|
|
@@ -28246,6 +28763,23 @@ def _typecheckingstub__cf2f362d90d470e1ea550c48af2d201151dbe9e28567f1f024ec091a2
|
|
|
28246
28763
|
"""Type checking stubs"""
|
|
28247
28764
|
pass
|
|
28248
28765
|
|
|
28766
|
+
def _typecheckingstub__f107aedaa96b9385600e34088d5cda9d8035f15776c846b0f0b4fbbe35d118df(
|
|
28767
|
+
output: builtins.str,
|
|
28768
|
+
command: typing.Sequence[builtins.str],
|
|
28769
|
+
*,
|
|
28770
|
+
command_options: typing.Optional[typing.Mapping[builtins.str, typing.Any]] = None,
|
|
28771
|
+
deploy_time: typing.Optional[builtins.bool] = None,
|
|
28772
|
+
readers: typing.Optional[typing.Sequence[_IGrantable_71c4f5de]] = None,
|
|
28773
|
+
asset_hash: typing.Optional[builtins.str] = None,
|
|
28774
|
+
asset_hash_type: typing.Optional[_AssetHashType_05b67f2d] = None,
|
|
28775
|
+
bundling: typing.Optional[typing.Union[_BundlingOptions_588cc936, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
28776
|
+
exclude: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
28777
|
+
follow_symlinks: typing.Optional[_SymlinkFollowMode_047ec1f6] = None,
|
|
28778
|
+
ignore_mode: typing.Optional[_IgnoreMode_655a98e8] = None,
|
|
28779
|
+
) -> None:
|
|
28780
|
+
"""Type checking stubs"""
|
|
28781
|
+
pass
|
|
28782
|
+
|
|
28249
28783
|
def _typecheckingstub__5d398ddff6fb1e58c2dafd59b4cd46de157e95f7c1faf544bd0e4cee3a6c9765(
|
|
28250
28784
|
path: builtins.str,
|
|
28251
28785
|
*,
|
|
@@ -28322,6 +28856,21 @@ def _typecheckingstub__aefe636ff4357a418ff1336047558f42e531611ca56525b6b5997177b
|
|
|
28322
28856
|
"""Type checking stubs"""
|
|
28323
28857
|
pass
|
|
28324
28858
|
|
|
28859
|
+
def _typecheckingstub__69255a578358e8a47662200dda7ce2e0b1f2ee573c1469268f14060b00a7863a(
|
|
28860
|
+
*,
|
|
28861
|
+
asset_hash: typing.Optional[builtins.str] = None,
|
|
28862
|
+
asset_hash_type: typing.Optional[_AssetHashType_05b67f2d] = None,
|
|
28863
|
+
bundling: typing.Optional[typing.Union[_BundlingOptions_588cc936, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
28864
|
+
exclude: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
28865
|
+
follow_symlinks: typing.Optional[_SymlinkFollowMode_047ec1f6] = None,
|
|
28866
|
+
ignore_mode: typing.Optional[_IgnoreMode_655a98e8] = None,
|
|
28867
|
+
deploy_time: typing.Optional[builtins.bool] = None,
|
|
28868
|
+
readers: typing.Optional[typing.Sequence[_IGrantable_71c4f5de]] = None,
|
|
28869
|
+
command_options: typing.Optional[typing.Mapping[builtins.str, typing.Any]] = None,
|
|
28870
|
+
) -> None:
|
|
28871
|
+
"""Type checking stubs"""
|
|
28872
|
+
pass
|
|
28873
|
+
|
|
28325
28874
|
def _typecheckingstub__7b17dd9a780787e4acd806a7d2f2738f8873c3cee8af497862be683cbad3bd8a(
|
|
28326
28875
|
*,
|
|
28327
28876
|
destination: builtins.str,
|
|
@@ -28599,6 +29148,7 @@ def _typecheckingstub__59918bb957d892739733c7a5849db990615fe5329709ad7ba703e0ee4
|
|
|
28599
29148
|
allow_all_outbound: typing.Optional[builtins.bool] = None,
|
|
28600
29149
|
allow_public_subnet: typing.Optional[builtins.bool] = None,
|
|
28601
29150
|
application_log_level: typing.Optional[builtins.str] = None,
|
|
29151
|
+
application_log_level_v2: typing.Optional[ApplicationLogLevel] = None,
|
|
28602
29152
|
architecture: typing.Optional[Architecture] = None,
|
|
28603
29153
|
code_signing_config: typing.Optional[ICodeSigningConfig] = None,
|
|
28604
29154
|
current_version_options: typing.Optional[typing.Union[VersionOptions, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
@@ -28632,6 +29182,7 @@ def _typecheckingstub__59918bb957d892739733c7a5849db990615fe5329709ad7ba703e0ee4
|
|
|
28632
29182
|
security_groups: typing.Optional[typing.Sequence[_ISecurityGroup_acf8a799]] = None,
|
|
28633
29183
|
snap_start: typing.Optional[SnapStartConf] = None,
|
|
28634
29184
|
system_log_level: typing.Optional[builtins.str] = None,
|
|
29185
|
+
system_log_level_v2: typing.Optional[SystemLogLevel] = None,
|
|
28635
29186
|
timeout: typing.Optional[_Duration_4839e8c3] = None,
|
|
28636
29187
|
tracing: typing.Optional[Tracing] = None,
|
|
28637
29188
|
vpc: typing.Optional[_IVpc_f30d5663] = None,
|
|
@@ -28650,6 +29201,7 @@ def _typecheckingstub__94e70d11aa3c53737d418dbb9983973dfc06dbdef5c8cc30613cc3c6d
|
|
|
28650
29201
|
allow_all_outbound: typing.Optional[builtins.bool] = None,
|
|
28651
29202
|
allow_public_subnet: typing.Optional[builtins.bool] = None,
|
|
28652
29203
|
application_log_level: typing.Optional[builtins.str] = None,
|
|
29204
|
+
application_log_level_v2: typing.Optional[ApplicationLogLevel] = None,
|
|
28653
29205
|
architecture: typing.Optional[Architecture] = None,
|
|
28654
29206
|
code_signing_config: typing.Optional[ICodeSigningConfig] = None,
|
|
28655
29207
|
current_version_options: typing.Optional[typing.Union[VersionOptions, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
@@ -28683,6 +29235,7 @@ def _typecheckingstub__94e70d11aa3c53737d418dbb9983973dfc06dbdef5c8cc30613cc3c6d
|
|
|
28683
29235
|
security_groups: typing.Optional[typing.Sequence[_ISecurityGroup_acf8a799]] = None,
|
|
28684
29236
|
snap_start: typing.Optional[SnapStartConf] = None,
|
|
28685
29237
|
system_log_level: typing.Optional[builtins.str] = None,
|
|
29238
|
+
system_log_level_v2: typing.Optional[SystemLogLevel] = None,
|
|
28686
29239
|
timeout: typing.Optional[_Duration_4839e8c3] = None,
|
|
28687
29240
|
tracing: typing.Optional[Tracing] = None,
|
|
28688
29241
|
vpc: typing.Optional[_IVpc_f30d5663] = None,
|
|
@@ -29131,6 +29684,7 @@ def _typecheckingstub__68a03ec9f866a29c77aabcf8328c63a49511790fa9714874f255b3292
|
|
|
29131
29684
|
allow_all_outbound: typing.Optional[builtins.bool] = None,
|
|
29132
29685
|
allow_public_subnet: typing.Optional[builtins.bool] = None,
|
|
29133
29686
|
application_log_level: typing.Optional[builtins.str] = None,
|
|
29687
|
+
application_log_level_v2: typing.Optional[ApplicationLogLevel] = None,
|
|
29134
29688
|
architecture: typing.Optional[Architecture] = None,
|
|
29135
29689
|
code_signing_config: typing.Optional[ICodeSigningConfig] = None,
|
|
29136
29690
|
current_version_options: typing.Optional[typing.Union[VersionOptions, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
@@ -29164,6 +29718,7 @@ def _typecheckingstub__68a03ec9f866a29c77aabcf8328c63a49511790fa9714874f255b3292
|
|
|
29164
29718
|
security_groups: typing.Optional[typing.Sequence[_ISecurityGroup_acf8a799]] = None,
|
|
29165
29719
|
snap_start: typing.Optional[SnapStartConf] = None,
|
|
29166
29720
|
system_log_level: typing.Optional[builtins.str] = None,
|
|
29721
|
+
system_log_level_v2: typing.Optional[SystemLogLevel] = None,
|
|
29167
29722
|
timeout: typing.Optional[_Duration_4839e8c3] = None,
|
|
29168
29723
|
tracing: typing.Optional[Tracing] = None,
|
|
29169
29724
|
vpc: typing.Optional[_IVpc_f30d5663] = None,
|
|
@@ -29380,6 +29935,7 @@ def _typecheckingstub__04dd97f4b18c00e7ee0981f2428664401ae0b75dbda6102ea3ef53d08
|
|
|
29380
29935
|
allow_all_outbound: typing.Optional[builtins.bool] = None,
|
|
29381
29936
|
allow_public_subnet: typing.Optional[builtins.bool] = None,
|
|
29382
29937
|
application_log_level: typing.Optional[builtins.str] = None,
|
|
29938
|
+
application_log_level_v2: typing.Optional[ApplicationLogLevel] = None,
|
|
29383
29939
|
architecture: typing.Optional[Architecture] = None,
|
|
29384
29940
|
code_signing_config: typing.Optional[ICodeSigningConfig] = None,
|
|
29385
29941
|
current_version_options: typing.Optional[typing.Union[VersionOptions, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
@@ -29413,6 +29969,7 @@ def _typecheckingstub__04dd97f4b18c00e7ee0981f2428664401ae0b75dbda6102ea3ef53d08
|
|
|
29413
29969
|
security_groups: typing.Optional[typing.Sequence[_ISecurityGroup_acf8a799]] = None,
|
|
29414
29970
|
snap_start: typing.Optional[SnapStartConf] = None,
|
|
29415
29971
|
system_log_level: typing.Optional[builtins.str] = None,
|
|
29972
|
+
system_log_level_v2: typing.Optional[SystemLogLevel] = None,
|
|
29416
29973
|
timeout: typing.Optional[_Duration_4839e8c3] = None,
|
|
29417
29974
|
tracing: typing.Optional[Tracing] = None,
|
|
29418
29975
|
vpc: typing.Optional[_IVpc_f30d5663] = None,
|
|
@@ -29621,6 +30178,7 @@ def _typecheckingstub__e7b766bff13bb7266787cec9bebb600187e19c1672e530bb9cfa31649
|
|
|
29621
30178
|
allow_all_outbound: typing.Optional[builtins.bool] = None,
|
|
29622
30179
|
allow_public_subnet: typing.Optional[builtins.bool] = None,
|
|
29623
30180
|
application_log_level: typing.Optional[builtins.str] = None,
|
|
30181
|
+
application_log_level_v2: typing.Optional[ApplicationLogLevel] = None,
|
|
29624
30182
|
architecture: typing.Optional[Architecture] = None,
|
|
29625
30183
|
code_signing_config: typing.Optional[ICodeSigningConfig] = None,
|
|
29626
30184
|
current_version_options: typing.Optional[typing.Union[VersionOptions, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
@@ -29654,6 +30212,7 @@ def _typecheckingstub__e7b766bff13bb7266787cec9bebb600187e19c1672e530bb9cfa31649
|
|
|
29654
30212
|
security_groups: typing.Optional[typing.Sequence[_ISecurityGroup_acf8a799]] = None,
|
|
29655
30213
|
snap_start: typing.Optional[SnapStartConf] = None,
|
|
29656
30214
|
system_log_level: typing.Optional[builtins.str] = None,
|
|
30215
|
+
system_log_level_v2: typing.Optional[SystemLogLevel] = None,
|
|
29657
30216
|
timeout: typing.Optional[_Duration_4839e8c3] = None,
|
|
29658
30217
|
tracing: typing.Optional[Tracing] = None,
|
|
29659
30218
|
vpc: typing.Optional[_IVpc_f30d5663] = None,
|
|
@@ -29825,6 +30384,7 @@ def _typecheckingstub__724895b6b59aaf2b678ef25f2beca19fb114fc04ff6b37edef28e12b3
|
|
|
29825
30384
|
allow_all_outbound: typing.Optional[builtins.bool] = None,
|
|
29826
30385
|
allow_public_subnet: typing.Optional[builtins.bool] = None,
|
|
29827
30386
|
application_log_level: typing.Optional[builtins.str] = None,
|
|
30387
|
+
application_log_level_v2: typing.Optional[ApplicationLogLevel] = None,
|
|
29828
30388
|
architecture: typing.Optional[Architecture] = None,
|
|
29829
30389
|
code_signing_config: typing.Optional[ICodeSigningConfig] = None,
|
|
29830
30390
|
current_version_options: typing.Optional[typing.Union[VersionOptions, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
@@ -29858,6 +30418,7 @@ def _typecheckingstub__724895b6b59aaf2b678ef25f2beca19fb114fc04ff6b37edef28e12b3
|
|
|
29858
30418
|
security_groups: typing.Optional[typing.Sequence[_ISecurityGroup_acf8a799]] = None,
|
|
29859
30419
|
snap_start: typing.Optional[SnapStartConf] = None,
|
|
29860
30420
|
system_log_level: typing.Optional[builtins.str] = None,
|
|
30421
|
+
system_log_level_v2: typing.Optional[SystemLogLevel] = None,
|
|
29861
30422
|
timeout: typing.Optional[_Duration_4839e8c3] = None,
|
|
29862
30423
|
tracing: typing.Optional[Tracing] = None,
|
|
29863
30424
|
vpc: typing.Optional[_IVpc_f30d5663] = None,
|
|
@@ -29966,6 +30527,7 @@ def _typecheckingstub__368a49fe1f866c7ea7986c57b6f8488d0fddea8f62bf05ec1ed7eb09b
|
|
|
29966
30527
|
allow_all_outbound: typing.Optional[builtins.bool] = None,
|
|
29967
30528
|
allow_public_subnet: typing.Optional[builtins.bool] = None,
|
|
29968
30529
|
application_log_level: typing.Optional[builtins.str] = None,
|
|
30530
|
+
application_log_level_v2: typing.Optional[ApplicationLogLevel] = None,
|
|
29969
30531
|
architecture: typing.Optional[Architecture] = None,
|
|
29970
30532
|
code_signing_config: typing.Optional[ICodeSigningConfig] = None,
|
|
29971
30533
|
current_version_options: typing.Optional[typing.Union[VersionOptions, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
@@ -29999,6 +30561,7 @@ def _typecheckingstub__368a49fe1f866c7ea7986c57b6f8488d0fddea8f62bf05ec1ed7eb09b
|
|
|
29999
30561
|
security_groups: typing.Optional[typing.Sequence[_ISecurityGroup_acf8a799]] = None,
|
|
30000
30562
|
snap_start: typing.Optional[SnapStartConf] = None,
|
|
30001
30563
|
system_log_level: typing.Optional[builtins.str] = None,
|
|
30564
|
+
system_log_level_v2: typing.Optional[SystemLogLevel] = None,
|
|
30002
30565
|
timeout: typing.Optional[_Duration_4839e8c3] = None,
|
|
30003
30566
|
tracing: typing.Optional[Tracing] = None,
|
|
30004
30567
|
vpc: typing.Optional[_IVpc_f30d5663] = None,
|