aws-cdk-lib 2.143.0__py3-none-any.whl → 2.144.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of aws-cdk-lib might be problematic. Click here for more details.
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.143.0.jsii.tgz → aws-cdk-lib@2.144.0.jsii.tgz} +0 -0
- aws_cdk/aws_apigatewayv2_integrations/__init__.py +1 -0
- aws_cdk/aws_appconfig/__init__.py +132 -1
- aws_cdk/aws_bedrock/__init__.py +48 -0
- aws_cdk/aws_chatbot/__init__.py +111 -2
- aws_cdk/aws_cloudfront/experimental/__init__.py +65 -9
- aws_cdk/aws_codebuild/__init__.py +226 -0
- aws_cdk/aws_dynamodb/__init__.py +309 -3
- aws_cdk/aws_ec2/__init__.py +70 -28
- aws_cdk/aws_ecs_patterns/__init__.py +89 -7
- aws_cdk/aws_fsx/__init__.py +4 -4
- aws_cdk/aws_glue/__init__.py +39 -0
- aws_cdk/aws_lambda/__init__.py +593 -42
- aws_cdk/aws_lambda_nodejs/__init__.py +160 -13
- aws_cdk/aws_medialive/__init__.py +20 -2
- aws_cdk/aws_rds/__init__.py +27 -19
- aws_cdk/aws_s3/__init__.py +21 -0
- aws_cdk/aws_s3_deployment/__init__.py +3 -2
- aws_cdk/aws_stepfunctions/__init__.py +53 -24
- aws_cdk/aws_stepfunctions_tasks/__init__.py +763 -16
- aws_cdk/triggers/__init__.py +65 -9
- {aws_cdk_lib-2.143.0.dist-info → aws_cdk_lib-2.144.0.dist-info}/METADATA +1 -1
- {aws_cdk_lib-2.143.0.dist-info → aws_cdk_lib-2.144.0.dist-info}/RECORD +28 -28
- {aws_cdk_lib-2.143.0.dist-info → aws_cdk_lib-2.144.0.dist-info}/WHEEL +1 -1
- {aws_cdk_lib-2.143.0.dist-info → aws_cdk_lib-2.144.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.143.0.dist-info → aws_cdk_lib-2.144.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.143.0.dist-info → aws_cdk_lib-2.144.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
|
|
|
@@ -2191,8 +2195,8 @@ class ApplicationLogLevel(enum.Enum):
|
|
|
2191
2195
|
handler="index.handler",
|
|
2192
2196
|
runtime=lambda_.Runtime.NODEJS_18_X,
|
|
2193
2197
|
logging_format=lambda_.LoggingFormat.JSON,
|
|
2194
|
-
|
|
2195
|
-
|
|
2198
|
+
system_log_level_v2=lambda_.SystemLogLevel.INFO,
|
|
2199
|
+
application_log_level_v2=lambda_.ApplicationLogLevel.INFO,
|
|
2196
2200
|
log_group=log_group
|
|
2197
2201
|
)
|
|
2198
2202
|
'''
|
|
@@ -10627,6 +10631,55 @@ class Code(metaclass=jsii.JSIIAbstractClass, jsii_type="aws-cdk-lib.aws_lambda.C
|
|
|
10627
10631
|
|
|
10628
10632
|
return typing.cast("CfnParametersCode", jsii.sinvoke(cls, "fromCfnParameters", [props]))
|
|
10629
10633
|
|
|
10634
|
+
@jsii.member(jsii_name="fromCustomCommand")
|
|
10635
|
+
@builtins.classmethod
|
|
10636
|
+
def from_custom_command(
|
|
10637
|
+
cls,
|
|
10638
|
+
output: builtins.str,
|
|
10639
|
+
command: typing.Sequence[builtins.str],
|
|
10640
|
+
*,
|
|
10641
|
+
command_options: typing.Optional[typing.Mapping[builtins.str, typing.Any]] = None,
|
|
10642
|
+
deploy_time: typing.Optional[builtins.bool] = None,
|
|
10643
|
+
readers: typing.Optional[typing.Sequence[_IGrantable_71c4f5de]] = None,
|
|
10644
|
+
asset_hash: typing.Optional[builtins.str] = None,
|
|
10645
|
+
asset_hash_type: typing.Optional[_AssetHashType_05b67f2d] = None,
|
|
10646
|
+
bundling: typing.Optional[typing.Union[_BundlingOptions_588cc936, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
10647
|
+
exclude: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
10648
|
+
follow_symlinks: typing.Optional[_SymlinkFollowMode_047ec1f6] = None,
|
|
10649
|
+
ignore_mode: typing.Optional[_IgnoreMode_655a98e8] = None,
|
|
10650
|
+
) -> "AssetCode":
|
|
10651
|
+
'''Runs a command to build the code asset that will be used.
|
|
10652
|
+
|
|
10653
|
+
: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``.
|
|
10654
|
+
:param command: The command which will be executed to generate the output, for example, [ 'node', 'bundle_code.js' ].
|
|
10655
|
+
: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).
|
|
10656
|
+
: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
|
|
10657
|
+
: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.
|
|
10658
|
+
: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``
|
|
10659
|
+
: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``.
|
|
10660
|
+
: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
|
|
10661
|
+
: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
|
|
10662
|
+
:param follow_symlinks: A strategy for how to handle symlinks. Default: SymlinkFollowMode.NEVER
|
|
10663
|
+
:param ignore_mode: The ignore behavior to use for ``exclude`` patterns. Default: IgnoreMode.GLOB
|
|
10664
|
+
'''
|
|
10665
|
+
if __debug__:
|
|
10666
|
+
type_hints = typing.get_type_hints(_typecheckingstub__f107aedaa96b9385600e34088d5cda9d8035f15776c846b0f0b4fbbe35d118df)
|
|
10667
|
+
check_type(argname="argument output", value=output, expected_type=type_hints["output"])
|
|
10668
|
+
check_type(argname="argument command", value=command, expected_type=type_hints["command"])
|
|
10669
|
+
options = CustomCommandOptions(
|
|
10670
|
+
command_options=command_options,
|
|
10671
|
+
deploy_time=deploy_time,
|
|
10672
|
+
readers=readers,
|
|
10673
|
+
asset_hash=asset_hash,
|
|
10674
|
+
asset_hash_type=asset_hash_type,
|
|
10675
|
+
bundling=bundling,
|
|
10676
|
+
exclude=exclude,
|
|
10677
|
+
follow_symlinks=follow_symlinks,
|
|
10678
|
+
ignore_mode=ignore_mode,
|
|
10679
|
+
)
|
|
10680
|
+
|
|
10681
|
+
return typing.cast("AssetCode", jsii.sinvoke(cls, "fromCustomCommand", [output, command, options]))
|
|
10682
|
+
|
|
10630
10683
|
@jsii.member(jsii_name="fromDockerBuild")
|
|
10631
10684
|
@builtins.classmethod
|
|
10632
10685
|
def from_docker_build(
|
|
@@ -11098,6 +11151,269 @@ class CodeSigningConfigProps:
|
|
|
11098
11151
|
)
|
|
11099
11152
|
|
|
11100
11153
|
|
|
11154
|
+
@jsii.data_type(
|
|
11155
|
+
jsii_type="aws-cdk-lib.aws_lambda.CustomCommandOptions",
|
|
11156
|
+
jsii_struct_bases=[_AssetOptions_2aa69621],
|
|
11157
|
+
name_mapping={
|
|
11158
|
+
"asset_hash": "assetHash",
|
|
11159
|
+
"asset_hash_type": "assetHashType",
|
|
11160
|
+
"bundling": "bundling",
|
|
11161
|
+
"exclude": "exclude",
|
|
11162
|
+
"follow_symlinks": "followSymlinks",
|
|
11163
|
+
"ignore_mode": "ignoreMode",
|
|
11164
|
+
"deploy_time": "deployTime",
|
|
11165
|
+
"readers": "readers",
|
|
11166
|
+
"command_options": "commandOptions",
|
|
11167
|
+
},
|
|
11168
|
+
)
|
|
11169
|
+
class CustomCommandOptions(_AssetOptions_2aa69621):
|
|
11170
|
+
def __init__(
|
|
11171
|
+
self,
|
|
11172
|
+
*,
|
|
11173
|
+
asset_hash: typing.Optional[builtins.str] = None,
|
|
11174
|
+
asset_hash_type: typing.Optional[_AssetHashType_05b67f2d] = None,
|
|
11175
|
+
bundling: typing.Optional[typing.Union[_BundlingOptions_588cc936, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
11176
|
+
exclude: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
11177
|
+
follow_symlinks: typing.Optional[_SymlinkFollowMode_047ec1f6] = None,
|
|
11178
|
+
ignore_mode: typing.Optional[_IgnoreMode_655a98e8] = None,
|
|
11179
|
+
deploy_time: typing.Optional[builtins.bool] = None,
|
|
11180
|
+
readers: typing.Optional[typing.Sequence[_IGrantable_71c4f5de]] = None,
|
|
11181
|
+
command_options: typing.Optional[typing.Mapping[builtins.str, typing.Any]] = None,
|
|
11182
|
+
) -> None:
|
|
11183
|
+
'''Options for creating ``AssetCode`` with a custom command, such as running a buildfile.
|
|
11184
|
+
|
|
11185
|
+
: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``
|
|
11186
|
+
: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``.
|
|
11187
|
+
: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
|
|
11188
|
+
: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
|
|
11189
|
+
:param follow_symlinks: A strategy for how to handle symlinks. Default: SymlinkFollowMode.NEVER
|
|
11190
|
+
:param ignore_mode: The ignore behavior to use for ``exclude`` patterns. Default: IgnoreMode.GLOB
|
|
11191
|
+
: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
|
|
11192
|
+
: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.
|
|
11193
|
+
: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).
|
|
11194
|
+
|
|
11195
|
+
:exampleMetadata: fixture=_generated
|
|
11196
|
+
|
|
11197
|
+
Example::
|
|
11198
|
+
|
|
11199
|
+
# The code below shows an example of how to instantiate this type.
|
|
11200
|
+
# The values are placeholders you should change.
|
|
11201
|
+
import aws_cdk as cdk
|
|
11202
|
+
from aws_cdk import aws_iam as iam
|
|
11203
|
+
from aws_cdk import aws_lambda as lambda_
|
|
11204
|
+
|
|
11205
|
+
# command_options: Any
|
|
11206
|
+
# docker_image: cdk.DockerImage
|
|
11207
|
+
# grantable: iam.IGrantable
|
|
11208
|
+
# local_bundling: cdk.ILocalBundling
|
|
11209
|
+
|
|
11210
|
+
custom_command_options = lambda.CustomCommandOptions(
|
|
11211
|
+
asset_hash="assetHash",
|
|
11212
|
+
asset_hash_type=cdk.AssetHashType.SOURCE,
|
|
11213
|
+
bundling=cdk.BundlingOptions(
|
|
11214
|
+
image=docker_image,
|
|
11215
|
+
|
|
11216
|
+
# the properties below are optional
|
|
11217
|
+
bundling_file_access=cdk.BundlingFileAccess.VOLUME_COPY,
|
|
11218
|
+
command=["command"],
|
|
11219
|
+
entrypoint=["entrypoint"],
|
|
11220
|
+
environment={
|
|
11221
|
+
"environment_key": "environment"
|
|
11222
|
+
},
|
|
11223
|
+
local=local_bundling,
|
|
11224
|
+
network="network",
|
|
11225
|
+
output_type=cdk.BundlingOutput.ARCHIVED,
|
|
11226
|
+
platform="platform",
|
|
11227
|
+
security_opt="securityOpt",
|
|
11228
|
+
user="user",
|
|
11229
|
+
volumes=[cdk.DockerVolume(
|
|
11230
|
+
container_path="containerPath",
|
|
11231
|
+
host_path="hostPath",
|
|
11232
|
+
|
|
11233
|
+
# the properties below are optional
|
|
11234
|
+
consistency=cdk.DockerVolumeConsistency.CONSISTENT
|
|
11235
|
+
)],
|
|
11236
|
+
volumes_from=["volumesFrom"],
|
|
11237
|
+
working_directory="workingDirectory"
|
|
11238
|
+
),
|
|
11239
|
+
command_options={
|
|
11240
|
+
"command_options_key": command_options
|
|
11241
|
+
},
|
|
11242
|
+
deploy_time=False,
|
|
11243
|
+
exclude=["exclude"],
|
|
11244
|
+
follow_symlinks=cdk.SymlinkFollowMode.NEVER,
|
|
11245
|
+
ignore_mode=cdk.IgnoreMode.GLOB,
|
|
11246
|
+
readers=[grantable]
|
|
11247
|
+
)
|
|
11248
|
+
'''
|
|
11249
|
+
if isinstance(bundling, dict):
|
|
11250
|
+
bundling = _BundlingOptions_588cc936(**bundling)
|
|
11251
|
+
if __debug__:
|
|
11252
|
+
type_hints = typing.get_type_hints(_typecheckingstub__69255a578358e8a47662200dda7ce2e0b1f2ee573c1469268f14060b00a7863a)
|
|
11253
|
+
check_type(argname="argument asset_hash", value=asset_hash, expected_type=type_hints["asset_hash"])
|
|
11254
|
+
check_type(argname="argument asset_hash_type", value=asset_hash_type, expected_type=type_hints["asset_hash_type"])
|
|
11255
|
+
check_type(argname="argument bundling", value=bundling, expected_type=type_hints["bundling"])
|
|
11256
|
+
check_type(argname="argument exclude", value=exclude, expected_type=type_hints["exclude"])
|
|
11257
|
+
check_type(argname="argument follow_symlinks", value=follow_symlinks, expected_type=type_hints["follow_symlinks"])
|
|
11258
|
+
check_type(argname="argument ignore_mode", value=ignore_mode, expected_type=type_hints["ignore_mode"])
|
|
11259
|
+
check_type(argname="argument deploy_time", value=deploy_time, expected_type=type_hints["deploy_time"])
|
|
11260
|
+
check_type(argname="argument readers", value=readers, expected_type=type_hints["readers"])
|
|
11261
|
+
check_type(argname="argument command_options", value=command_options, expected_type=type_hints["command_options"])
|
|
11262
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
11263
|
+
if asset_hash is not None:
|
|
11264
|
+
self._values["asset_hash"] = asset_hash
|
|
11265
|
+
if asset_hash_type is not None:
|
|
11266
|
+
self._values["asset_hash_type"] = asset_hash_type
|
|
11267
|
+
if bundling is not None:
|
|
11268
|
+
self._values["bundling"] = bundling
|
|
11269
|
+
if exclude is not None:
|
|
11270
|
+
self._values["exclude"] = exclude
|
|
11271
|
+
if follow_symlinks is not None:
|
|
11272
|
+
self._values["follow_symlinks"] = follow_symlinks
|
|
11273
|
+
if ignore_mode is not None:
|
|
11274
|
+
self._values["ignore_mode"] = ignore_mode
|
|
11275
|
+
if deploy_time is not None:
|
|
11276
|
+
self._values["deploy_time"] = deploy_time
|
|
11277
|
+
if readers is not None:
|
|
11278
|
+
self._values["readers"] = readers
|
|
11279
|
+
if command_options is not None:
|
|
11280
|
+
self._values["command_options"] = command_options
|
|
11281
|
+
|
|
11282
|
+
@builtins.property
|
|
11283
|
+
def asset_hash(self) -> typing.Optional[builtins.str]:
|
|
11284
|
+
'''Specify a custom hash for this asset.
|
|
11285
|
+
|
|
11286
|
+
If ``assetHashType`` is set it must
|
|
11287
|
+
be set to ``AssetHashType.CUSTOM``. For consistency, this custom hash will
|
|
11288
|
+
be SHA256 hashed and encoded as hex. The resulting hash will be the asset
|
|
11289
|
+
hash.
|
|
11290
|
+
|
|
11291
|
+
NOTE: the hash is used in order to identify a specific revision of the asset, and
|
|
11292
|
+
used for optimizing and caching deployment activities related to this asset such as
|
|
11293
|
+
packaging, uploading to Amazon S3, etc. If you chose to customize the hash, you will
|
|
11294
|
+
need to make sure it is updated every time the asset changes, or otherwise it is
|
|
11295
|
+
possible that some deployments will not be invalidated.
|
|
11296
|
+
|
|
11297
|
+
:default: - based on ``assetHashType``
|
|
11298
|
+
'''
|
|
11299
|
+
result = self._values.get("asset_hash")
|
|
11300
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
11301
|
+
|
|
11302
|
+
@builtins.property
|
|
11303
|
+
def asset_hash_type(self) -> typing.Optional[_AssetHashType_05b67f2d]:
|
|
11304
|
+
'''Specifies the type of hash to calculate for this asset.
|
|
11305
|
+
|
|
11306
|
+
If ``assetHash`` is configured, this option must be ``undefined`` or
|
|
11307
|
+
``AssetHashType.CUSTOM``.
|
|
11308
|
+
|
|
11309
|
+
:default:
|
|
11310
|
+
|
|
11311
|
+
- the default is ``AssetHashType.SOURCE``, but if ``assetHash`` is
|
|
11312
|
+
explicitly specified this value defaults to ``AssetHashType.CUSTOM``.
|
|
11313
|
+
'''
|
|
11314
|
+
result = self._values.get("asset_hash_type")
|
|
11315
|
+
return typing.cast(typing.Optional[_AssetHashType_05b67f2d], result)
|
|
11316
|
+
|
|
11317
|
+
@builtins.property
|
|
11318
|
+
def bundling(self) -> typing.Optional[_BundlingOptions_588cc936]:
|
|
11319
|
+
'''Bundle the asset by executing a command in a Docker container or a custom bundling provider.
|
|
11320
|
+
|
|
11321
|
+
The asset path will be mounted at ``/asset-input``. The Docker
|
|
11322
|
+
container is responsible for putting content at ``/asset-output``.
|
|
11323
|
+
The content at ``/asset-output`` will be zipped and used as the
|
|
11324
|
+
final asset.
|
|
11325
|
+
|
|
11326
|
+
:default:
|
|
11327
|
+
|
|
11328
|
+
- uploaded as-is to S3 if the asset is a regular file or a .zip file,
|
|
11329
|
+
archived into a .zip file and uploaded to S3 otherwise
|
|
11330
|
+
'''
|
|
11331
|
+
result = self._values.get("bundling")
|
|
11332
|
+
return typing.cast(typing.Optional[_BundlingOptions_588cc936], result)
|
|
11333
|
+
|
|
11334
|
+
@builtins.property
|
|
11335
|
+
def exclude(self) -> typing.Optional[typing.List[builtins.str]]:
|
|
11336
|
+
'''File paths matching the patterns will be excluded.
|
|
11337
|
+
|
|
11338
|
+
See ``ignoreMode`` to set the matching behavior.
|
|
11339
|
+
Has no effect on Assets bundled using the ``bundling`` property.
|
|
11340
|
+
|
|
11341
|
+
:default: - nothing is excluded
|
|
11342
|
+
'''
|
|
11343
|
+
result = self._values.get("exclude")
|
|
11344
|
+
return typing.cast(typing.Optional[typing.List[builtins.str]], result)
|
|
11345
|
+
|
|
11346
|
+
@builtins.property
|
|
11347
|
+
def follow_symlinks(self) -> typing.Optional[_SymlinkFollowMode_047ec1f6]:
|
|
11348
|
+
'''A strategy for how to handle symlinks.
|
|
11349
|
+
|
|
11350
|
+
:default: SymlinkFollowMode.NEVER
|
|
11351
|
+
'''
|
|
11352
|
+
result = self._values.get("follow_symlinks")
|
|
11353
|
+
return typing.cast(typing.Optional[_SymlinkFollowMode_047ec1f6], result)
|
|
11354
|
+
|
|
11355
|
+
@builtins.property
|
|
11356
|
+
def ignore_mode(self) -> typing.Optional[_IgnoreMode_655a98e8]:
|
|
11357
|
+
'''The ignore behavior to use for ``exclude`` patterns.
|
|
11358
|
+
|
|
11359
|
+
:default: IgnoreMode.GLOB
|
|
11360
|
+
'''
|
|
11361
|
+
result = self._values.get("ignore_mode")
|
|
11362
|
+
return typing.cast(typing.Optional[_IgnoreMode_655a98e8], result)
|
|
11363
|
+
|
|
11364
|
+
@builtins.property
|
|
11365
|
+
def deploy_time(self) -> typing.Optional[builtins.bool]:
|
|
11366
|
+
'''Whether or not the asset needs to exist beyond deployment time;
|
|
11367
|
+
|
|
11368
|
+
i.e.
|
|
11369
|
+
are copied over to a different location and not needed afterwards.
|
|
11370
|
+
Setting this property to true has an impact on the lifecycle of the asset,
|
|
11371
|
+
because we will assume that it is safe to delete after the CloudFormation
|
|
11372
|
+
deployment succeeds.
|
|
11373
|
+
|
|
11374
|
+
For example, Lambda Function assets are copied over to Lambda during
|
|
11375
|
+
deployment. Therefore, it is not necessary to store the asset in S3, so
|
|
11376
|
+
we consider those deployTime assets.
|
|
11377
|
+
|
|
11378
|
+
:default: false
|
|
11379
|
+
'''
|
|
11380
|
+
result = self._values.get("deploy_time")
|
|
11381
|
+
return typing.cast(typing.Optional[builtins.bool], result)
|
|
11382
|
+
|
|
11383
|
+
@builtins.property
|
|
11384
|
+
def readers(self) -> typing.Optional[typing.List[_IGrantable_71c4f5de]]:
|
|
11385
|
+
'''A list of principals that should be able to read this asset from S3.
|
|
11386
|
+
|
|
11387
|
+
You can use ``asset.grantRead(principal)`` to grant read permissions later.
|
|
11388
|
+
|
|
11389
|
+
:default: - No principals that can read file asset.
|
|
11390
|
+
'''
|
|
11391
|
+
result = self._values.get("readers")
|
|
11392
|
+
return typing.cast(typing.Optional[typing.List[_IGrantable_71c4f5de]], result)
|
|
11393
|
+
|
|
11394
|
+
@builtins.property
|
|
11395
|
+
def command_options(
|
|
11396
|
+
self,
|
|
11397
|
+
) -> typing.Optional[typing.Mapping[builtins.str, typing.Any]]:
|
|
11398
|
+
'''options that are passed to the spawned process, which determine the characteristics of the spawned process.
|
|
11399
|
+
|
|
11400
|
+
:default: : see ``child_process.SpawnSyncOptions`` (https://nodejs.org/api/child_process.html#child_processspawnsynccommand-args-options).
|
|
11401
|
+
'''
|
|
11402
|
+
result = self._values.get("command_options")
|
|
11403
|
+
return typing.cast(typing.Optional[typing.Mapping[builtins.str, typing.Any]], result)
|
|
11404
|
+
|
|
11405
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
11406
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
11407
|
+
|
|
11408
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
11409
|
+
return not (rhs == self)
|
|
11410
|
+
|
|
11411
|
+
def __repr__(self) -> str:
|
|
11412
|
+
return "CustomCommandOptions(%s)" % ", ".join(
|
|
11413
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
11414
|
+
)
|
|
11415
|
+
|
|
11416
|
+
|
|
11101
11417
|
@jsii.data_type(
|
|
11102
11418
|
jsii_type="aws-cdk-lib.aws_lambda.DestinationConfig",
|
|
11103
11419
|
jsii_struct_bases=[],
|
|
@@ -13662,6 +13978,7 @@ class FunctionAttributes:
|
|
|
13662
13978
|
"allow_all_outbound": "allowAllOutbound",
|
|
13663
13979
|
"allow_public_subnet": "allowPublicSubnet",
|
|
13664
13980
|
"application_log_level": "applicationLogLevel",
|
|
13981
|
+
"application_log_level_v2": "applicationLogLevelV2",
|
|
13665
13982
|
"architecture": "architecture",
|
|
13666
13983
|
"code_signing_config": "codeSigningConfig",
|
|
13667
13984
|
"current_version_options": "currentVersionOptions",
|
|
@@ -13695,6 +14012,7 @@ class FunctionAttributes:
|
|
|
13695
14012
|
"security_groups": "securityGroups",
|
|
13696
14013
|
"snap_start": "snapStart",
|
|
13697
14014
|
"system_log_level": "systemLogLevel",
|
|
14015
|
+
"system_log_level_v2": "systemLogLevelV2",
|
|
13698
14016
|
"timeout": "timeout",
|
|
13699
14017
|
"tracing": "tracing",
|
|
13700
14018
|
"vpc": "vpc",
|
|
@@ -13713,6 +14031,7 @@ class FunctionOptions(EventInvokeConfigOptions):
|
|
|
13713
14031
|
allow_all_outbound: typing.Optional[builtins.bool] = None,
|
|
13714
14032
|
allow_public_subnet: typing.Optional[builtins.bool] = None,
|
|
13715
14033
|
application_log_level: typing.Optional[builtins.str] = None,
|
|
14034
|
+
application_log_level_v2: typing.Optional[ApplicationLogLevel] = None,
|
|
13716
14035
|
architecture: typing.Optional[Architecture] = None,
|
|
13717
14036
|
code_signing_config: typing.Optional["ICodeSigningConfig"] = None,
|
|
13718
14037
|
current_version_options: typing.Optional[typing.Union["VersionOptions", typing.Dict[builtins.str, typing.Any]]] = None,
|
|
@@ -13746,6 +14065,7 @@ class FunctionOptions(EventInvokeConfigOptions):
|
|
|
13746
14065
|
security_groups: typing.Optional[typing.Sequence[_ISecurityGroup_acf8a799]] = None,
|
|
13747
14066
|
snap_start: typing.Optional["SnapStartConf"] = None,
|
|
13748
14067
|
system_log_level: typing.Optional[builtins.str] = None,
|
|
14068
|
+
system_log_level_v2: typing.Optional["SystemLogLevel"] = None,
|
|
13749
14069
|
timeout: typing.Optional[_Duration_4839e8c3] = None,
|
|
13750
14070
|
tracing: typing.Optional["Tracing"] = None,
|
|
13751
14071
|
vpc: typing.Optional[_IVpc_f30d5663] = None,
|
|
@@ -13760,7 +14080,8 @@ class FunctionOptions(EventInvokeConfigOptions):
|
|
|
13760
14080
|
:param adot_instrumentation: Specify the configuration of AWS Distro for OpenTelemetry (ADOT) instrumentation. Default: - No ADOT instrumentation
|
|
13761
14081
|
: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
14082
|
: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"
|
|
14083
|
+
:param application_log_level: (deprecated) Sets the application log level for the function. Default: "INFO"
|
|
14084
|
+
:param application_log_level_v2: Sets the application log level for the function. Default: ApplicationLogLevel.INFO
|
|
13764
14085
|
:param architecture: The system architectures compatible with this lambda function. Default: Architecture.X86_64
|
|
13765
14086
|
:param code_signing_config: Code signing config associated with this function. Default: - Not Sign the Code
|
|
13766
14087
|
: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 +14099,7 @@ class FunctionOptions(EventInvokeConfigOptions):
|
|
|
13778
14099
|
:param insights_version: Specify the version of CloudWatch Lambda insights to use for monitoring. Default: - No Lambda Insights
|
|
13779
14100
|
: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
14101
|
: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"
|
|
14102
|
+
:param log_format: (deprecated) Sets the logFormat for the function. Default: "Text"
|
|
13782
14103
|
:param logging_format: Sets the loggingFormat for the function. Default: LoggingFormat.TEXT
|
|
13783
14104
|
: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
14105
|
: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 +14114,8 @@ class FunctionOptions(EventInvokeConfigOptions):
|
|
|
13793
14114
|
:param runtime_management_mode: Sets the runtime management configuration for a function's version. Default: Auto
|
|
13794
14115
|
: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
14116
|
: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"
|
|
14117
|
+
:param system_log_level: (deprecated) Sets the system log level for the function. Default: "INFO"
|
|
14118
|
+
:param system_log_level_v2: Sets the system log level for the function. Default: SystemLogLevel.INFO
|
|
13797
14119
|
: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
14120
|
:param tracing: Enable AWS X-Ray Tracing for Lambda Function. Default: Tracing.Disabled
|
|
13799
14121
|
: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 +14169,7 @@ class FunctionOptions(EventInvokeConfigOptions):
|
|
|
13847
14169
|
allow_all_outbound=False,
|
|
13848
14170
|
allow_public_subnet=False,
|
|
13849
14171
|
application_log_level="applicationLogLevel",
|
|
14172
|
+
application_log_level_v2=lambda_.ApplicationLogLevel.INFO,
|
|
13850
14173
|
architecture=architecture,
|
|
13851
14174
|
code_signing_config=code_signing_config,
|
|
13852
14175
|
current_version_options=lambda.VersionOptions(
|
|
@@ -13898,6 +14221,7 @@ class FunctionOptions(EventInvokeConfigOptions):
|
|
|
13898
14221
|
security_groups=[security_group],
|
|
13899
14222
|
snap_start=snap_start_conf,
|
|
13900
14223
|
system_log_level="systemLogLevel",
|
|
14224
|
+
system_log_level_v2=lambda_.SystemLogLevel.INFO,
|
|
13901
14225
|
timeout=cdk.Duration.minutes(30),
|
|
13902
14226
|
tracing=lambda_.Tracing.ACTIVE,
|
|
13903
14227
|
vpc=vpc,
|
|
@@ -13929,6 +14253,7 @@ class FunctionOptions(EventInvokeConfigOptions):
|
|
|
13929
14253
|
check_type(argname="argument allow_all_outbound", value=allow_all_outbound, expected_type=type_hints["allow_all_outbound"])
|
|
13930
14254
|
check_type(argname="argument allow_public_subnet", value=allow_public_subnet, expected_type=type_hints["allow_public_subnet"])
|
|
13931
14255
|
check_type(argname="argument application_log_level", value=application_log_level, expected_type=type_hints["application_log_level"])
|
|
14256
|
+
check_type(argname="argument application_log_level_v2", value=application_log_level_v2, expected_type=type_hints["application_log_level_v2"])
|
|
13932
14257
|
check_type(argname="argument architecture", value=architecture, expected_type=type_hints["architecture"])
|
|
13933
14258
|
check_type(argname="argument code_signing_config", value=code_signing_config, expected_type=type_hints["code_signing_config"])
|
|
13934
14259
|
check_type(argname="argument current_version_options", value=current_version_options, expected_type=type_hints["current_version_options"])
|
|
@@ -13962,6 +14287,7 @@ class FunctionOptions(EventInvokeConfigOptions):
|
|
|
13962
14287
|
check_type(argname="argument security_groups", value=security_groups, expected_type=type_hints["security_groups"])
|
|
13963
14288
|
check_type(argname="argument snap_start", value=snap_start, expected_type=type_hints["snap_start"])
|
|
13964
14289
|
check_type(argname="argument system_log_level", value=system_log_level, expected_type=type_hints["system_log_level"])
|
|
14290
|
+
check_type(argname="argument system_log_level_v2", value=system_log_level_v2, expected_type=type_hints["system_log_level_v2"])
|
|
13965
14291
|
check_type(argname="argument timeout", value=timeout, expected_type=type_hints["timeout"])
|
|
13966
14292
|
check_type(argname="argument tracing", value=tracing, expected_type=type_hints["tracing"])
|
|
13967
14293
|
check_type(argname="argument vpc", value=vpc, expected_type=type_hints["vpc"])
|
|
@@ -13983,6 +14309,8 @@ class FunctionOptions(EventInvokeConfigOptions):
|
|
|
13983
14309
|
self._values["allow_public_subnet"] = allow_public_subnet
|
|
13984
14310
|
if application_log_level is not None:
|
|
13985
14311
|
self._values["application_log_level"] = application_log_level
|
|
14312
|
+
if application_log_level_v2 is not None:
|
|
14313
|
+
self._values["application_log_level_v2"] = application_log_level_v2
|
|
13986
14314
|
if architecture is not None:
|
|
13987
14315
|
self._values["architecture"] = architecture
|
|
13988
14316
|
if code_signing_config is not None:
|
|
@@ -14049,6 +14377,8 @@ class FunctionOptions(EventInvokeConfigOptions):
|
|
|
14049
14377
|
self._values["snap_start"] = snap_start
|
|
14050
14378
|
if system_log_level is not None:
|
|
14051
14379
|
self._values["system_log_level"] = system_log_level
|
|
14380
|
+
if system_log_level_v2 is not None:
|
|
14381
|
+
self._values["system_log_level_v2"] = system_log_level_v2
|
|
14052
14382
|
if timeout is not None:
|
|
14053
14383
|
self._values["timeout"] = timeout
|
|
14054
14384
|
if tracing is not None:
|
|
@@ -14141,13 +14471,26 @@ class FunctionOptions(EventInvokeConfigOptions):
|
|
|
14141
14471
|
|
|
14142
14472
|
@builtins.property
|
|
14143
14473
|
def application_log_level(self) -> typing.Optional[builtins.str]:
|
|
14144
|
-
'''Sets the application log level for the function.
|
|
14474
|
+
'''(deprecated) Sets the application log level for the function.
|
|
14145
14475
|
|
|
14146
14476
|
:default: "INFO"
|
|
14477
|
+
|
|
14478
|
+
:deprecated: Use ``applicationLogLevelV2`` as a property instead.
|
|
14479
|
+
|
|
14480
|
+
:stability: deprecated
|
|
14147
14481
|
'''
|
|
14148
14482
|
result = self._values.get("application_log_level")
|
|
14149
14483
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
14150
14484
|
|
|
14485
|
+
@builtins.property
|
|
14486
|
+
def application_log_level_v2(self) -> typing.Optional[ApplicationLogLevel]:
|
|
14487
|
+
'''Sets the application log level for the function.
|
|
14488
|
+
|
|
14489
|
+
:default: ApplicationLogLevel.INFO
|
|
14490
|
+
'''
|
|
14491
|
+
result = self._values.get("application_log_level_v2")
|
|
14492
|
+
return typing.cast(typing.Optional[ApplicationLogLevel], result)
|
|
14493
|
+
|
|
14151
14494
|
@builtins.property
|
|
14152
14495
|
def architecture(self) -> typing.Optional[Architecture]:
|
|
14153
14496
|
'''The system architectures compatible with this lambda function.
|
|
@@ -14332,9 +14675,13 @@ class FunctionOptions(EventInvokeConfigOptions):
|
|
|
14332
14675
|
|
|
14333
14676
|
@builtins.property
|
|
14334
14677
|
def log_format(self) -> typing.Optional[builtins.str]:
|
|
14335
|
-
'''Sets the logFormat for the function.
|
|
14678
|
+
'''(deprecated) Sets the logFormat for the function.
|
|
14336
14679
|
|
|
14337
14680
|
:default: "Text"
|
|
14681
|
+
|
|
14682
|
+
:deprecated: Use ``loggingFormat`` as a property instead.
|
|
14683
|
+
|
|
14684
|
+
:stability: deprecated
|
|
14338
14685
|
'''
|
|
14339
14686
|
result = self._values.get("log_format")
|
|
14340
14687
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
@@ -14536,13 +14883,26 @@ class FunctionOptions(EventInvokeConfigOptions):
|
|
|
14536
14883
|
|
|
14537
14884
|
@builtins.property
|
|
14538
14885
|
def system_log_level(self) -> typing.Optional[builtins.str]:
|
|
14539
|
-
'''Sets the system log level for the function.
|
|
14886
|
+
'''(deprecated) Sets the system log level for the function.
|
|
14540
14887
|
|
|
14541
14888
|
:default: "INFO"
|
|
14889
|
+
|
|
14890
|
+
:deprecated: Use ``systemLogLevelV2`` as a property instead.
|
|
14891
|
+
|
|
14892
|
+
:stability: deprecated
|
|
14542
14893
|
'''
|
|
14543
14894
|
result = self._values.get("system_log_level")
|
|
14544
14895
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
14545
14896
|
|
|
14897
|
+
@builtins.property
|
|
14898
|
+
def system_log_level_v2(self) -> typing.Optional["SystemLogLevel"]:
|
|
14899
|
+
'''Sets the system log level for the function.
|
|
14900
|
+
|
|
14901
|
+
:default: SystemLogLevel.INFO
|
|
14902
|
+
'''
|
|
14903
|
+
result = self._values.get("system_log_level_v2")
|
|
14904
|
+
return typing.cast(typing.Optional["SystemLogLevel"], result)
|
|
14905
|
+
|
|
14546
14906
|
@builtins.property
|
|
14547
14907
|
def timeout(self) -> typing.Optional[_Duration_4839e8c3]:
|
|
14548
14908
|
'''The function execution time (in seconds) after which Lambda terminates the function.
|
|
@@ -14615,6 +14975,7 @@ class FunctionOptions(EventInvokeConfigOptions):
|
|
|
14615
14975
|
"allow_all_outbound": "allowAllOutbound",
|
|
14616
14976
|
"allow_public_subnet": "allowPublicSubnet",
|
|
14617
14977
|
"application_log_level": "applicationLogLevel",
|
|
14978
|
+
"application_log_level_v2": "applicationLogLevelV2",
|
|
14618
14979
|
"architecture": "architecture",
|
|
14619
14980
|
"code_signing_config": "codeSigningConfig",
|
|
14620
14981
|
"current_version_options": "currentVersionOptions",
|
|
@@ -14648,6 +15009,7 @@ class FunctionOptions(EventInvokeConfigOptions):
|
|
|
14648
15009
|
"security_groups": "securityGroups",
|
|
14649
15010
|
"snap_start": "snapStart",
|
|
14650
15011
|
"system_log_level": "systemLogLevel",
|
|
15012
|
+
"system_log_level_v2": "systemLogLevelV2",
|
|
14651
15013
|
"timeout": "timeout",
|
|
14652
15014
|
"tracing": "tracing",
|
|
14653
15015
|
"vpc": "vpc",
|
|
@@ -14669,6 +15031,7 @@ class FunctionProps(FunctionOptions):
|
|
|
14669
15031
|
allow_all_outbound: typing.Optional[builtins.bool] = None,
|
|
14670
15032
|
allow_public_subnet: typing.Optional[builtins.bool] = None,
|
|
14671
15033
|
application_log_level: typing.Optional[builtins.str] = None,
|
|
15034
|
+
application_log_level_v2: typing.Optional[ApplicationLogLevel] = None,
|
|
14672
15035
|
architecture: typing.Optional[Architecture] = None,
|
|
14673
15036
|
code_signing_config: typing.Optional["ICodeSigningConfig"] = None,
|
|
14674
15037
|
current_version_options: typing.Optional[typing.Union["VersionOptions", typing.Dict[builtins.str, typing.Any]]] = None,
|
|
@@ -14702,6 +15065,7 @@ class FunctionProps(FunctionOptions):
|
|
|
14702
15065
|
security_groups: typing.Optional[typing.Sequence[_ISecurityGroup_acf8a799]] = None,
|
|
14703
15066
|
snap_start: typing.Optional["SnapStartConf"] = None,
|
|
14704
15067
|
system_log_level: typing.Optional[builtins.str] = None,
|
|
15068
|
+
system_log_level_v2: typing.Optional["SystemLogLevel"] = None,
|
|
14705
15069
|
timeout: typing.Optional[_Duration_4839e8c3] = None,
|
|
14706
15070
|
tracing: typing.Optional["Tracing"] = None,
|
|
14707
15071
|
vpc: typing.Optional[_IVpc_f30d5663] = None,
|
|
@@ -14718,7 +15082,8 @@ class FunctionProps(FunctionOptions):
|
|
|
14718
15082
|
:param adot_instrumentation: Specify the configuration of AWS Distro for OpenTelemetry (ADOT) instrumentation. Default: - No ADOT instrumentation
|
|
14719
15083
|
: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
15084
|
: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"
|
|
15085
|
+
:param application_log_level: (deprecated) Sets the application log level for the function. Default: "INFO"
|
|
15086
|
+
:param application_log_level_v2: Sets the application log level for the function. Default: ApplicationLogLevel.INFO
|
|
14722
15087
|
:param architecture: The system architectures compatible with this lambda function. Default: Architecture.X86_64
|
|
14723
15088
|
:param code_signing_config: Code signing config associated with this function. Default: - Not Sign the Code
|
|
14724
15089
|
: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 +15101,7 @@ class FunctionProps(FunctionOptions):
|
|
|
14736
15101
|
:param insights_version: Specify the version of CloudWatch Lambda insights to use for monitoring. Default: - No Lambda Insights
|
|
14737
15102
|
: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
15103
|
: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"
|
|
15104
|
+
:param log_format: (deprecated) Sets the logFormat for the function. Default: "Text"
|
|
14740
15105
|
:param logging_format: Sets the loggingFormat for the function. Default: LoggingFormat.TEXT
|
|
14741
15106
|
: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
15107
|
: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 +15116,8 @@ class FunctionProps(FunctionOptions):
|
|
|
14751
15116
|
:param runtime_management_mode: Sets the runtime management configuration for a function's version. Default: Auto
|
|
14752
15117
|
: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
15118
|
: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"
|
|
15119
|
+
:param system_log_level: (deprecated) Sets the system log level for the function. Default: "INFO"
|
|
15120
|
+
:param system_log_level_v2: Sets the system log level for the function. Default: SystemLogLevel.INFO
|
|
14755
15121
|
: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
15122
|
:param tracing: Enable AWS X-Ray Tracing for Lambda Function. Default: Tracing.Disabled
|
|
14757
15123
|
: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 +15171,7 @@ class FunctionProps(FunctionOptions):
|
|
|
14805
15171
|
check_type(argname="argument allow_all_outbound", value=allow_all_outbound, expected_type=type_hints["allow_all_outbound"])
|
|
14806
15172
|
check_type(argname="argument allow_public_subnet", value=allow_public_subnet, expected_type=type_hints["allow_public_subnet"])
|
|
14807
15173
|
check_type(argname="argument application_log_level", value=application_log_level, expected_type=type_hints["application_log_level"])
|
|
15174
|
+
check_type(argname="argument application_log_level_v2", value=application_log_level_v2, expected_type=type_hints["application_log_level_v2"])
|
|
14808
15175
|
check_type(argname="argument architecture", value=architecture, expected_type=type_hints["architecture"])
|
|
14809
15176
|
check_type(argname="argument code_signing_config", value=code_signing_config, expected_type=type_hints["code_signing_config"])
|
|
14810
15177
|
check_type(argname="argument current_version_options", value=current_version_options, expected_type=type_hints["current_version_options"])
|
|
@@ -14838,6 +15205,7 @@ class FunctionProps(FunctionOptions):
|
|
|
14838
15205
|
check_type(argname="argument security_groups", value=security_groups, expected_type=type_hints["security_groups"])
|
|
14839
15206
|
check_type(argname="argument snap_start", value=snap_start, expected_type=type_hints["snap_start"])
|
|
14840
15207
|
check_type(argname="argument system_log_level", value=system_log_level, expected_type=type_hints["system_log_level"])
|
|
15208
|
+
check_type(argname="argument system_log_level_v2", value=system_log_level_v2, expected_type=type_hints["system_log_level_v2"])
|
|
14841
15209
|
check_type(argname="argument timeout", value=timeout, expected_type=type_hints["timeout"])
|
|
14842
15210
|
check_type(argname="argument tracing", value=tracing, expected_type=type_hints["tracing"])
|
|
14843
15211
|
check_type(argname="argument vpc", value=vpc, expected_type=type_hints["vpc"])
|
|
@@ -14866,6 +15234,8 @@ class FunctionProps(FunctionOptions):
|
|
|
14866
15234
|
self._values["allow_public_subnet"] = allow_public_subnet
|
|
14867
15235
|
if application_log_level is not None:
|
|
14868
15236
|
self._values["application_log_level"] = application_log_level
|
|
15237
|
+
if application_log_level_v2 is not None:
|
|
15238
|
+
self._values["application_log_level_v2"] = application_log_level_v2
|
|
14869
15239
|
if architecture is not None:
|
|
14870
15240
|
self._values["architecture"] = architecture
|
|
14871
15241
|
if code_signing_config is not None:
|
|
@@ -14932,6 +15302,8 @@ class FunctionProps(FunctionOptions):
|
|
|
14932
15302
|
self._values["snap_start"] = snap_start
|
|
14933
15303
|
if system_log_level is not None:
|
|
14934
15304
|
self._values["system_log_level"] = system_log_level
|
|
15305
|
+
if system_log_level_v2 is not None:
|
|
15306
|
+
self._values["system_log_level_v2"] = system_log_level_v2
|
|
14935
15307
|
if timeout is not None:
|
|
14936
15308
|
self._values["timeout"] = timeout
|
|
14937
15309
|
if tracing is not None:
|
|
@@ -15024,13 +15396,26 @@ class FunctionProps(FunctionOptions):
|
|
|
15024
15396
|
|
|
15025
15397
|
@builtins.property
|
|
15026
15398
|
def application_log_level(self) -> typing.Optional[builtins.str]:
|
|
15027
|
-
'''Sets the application log level for the function.
|
|
15399
|
+
'''(deprecated) Sets the application log level for the function.
|
|
15028
15400
|
|
|
15029
15401
|
:default: "INFO"
|
|
15402
|
+
|
|
15403
|
+
:deprecated: Use ``applicationLogLevelV2`` as a property instead.
|
|
15404
|
+
|
|
15405
|
+
:stability: deprecated
|
|
15030
15406
|
'''
|
|
15031
15407
|
result = self._values.get("application_log_level")
|
|
15032
15408
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
15033
15409
|
|
|
15410
|
+
@builtins.property
|
|
15411
|
+
def application_log_level_v2(self) -> typing.Optional[ApplicationLogLevel]:
|
|
15412
|
+
'''Sets the application log level for the function.
|
|
15413
|
+
|
|
15414
|
+
:default: ApplicationLogLevel.INFO
|
|
15415
|
+
'''
|
|
15416
|
+
result = self._values.get("application_log_level_v2")
|
|
15417
|
+
return typing.cast(typing.Optional[ApplicationLogLevel], result)
|
|
15418
|
+
|
|
15034
15419
|
@builtins.property
|
|
15035
15420
|
def architecture(self) -> typing.Optional[Architecture]:
|
|
15036
15421
|
'''The system architectures compatible with this lambda function.
|
|
@@ -15215,9 +15600,13 @@ class FunctionProps(FunctionOptions):
|
|
|
15215
15600
|
|
|
15216
15601
|
@builtins.property
|
|
15217
15602
|
def log_format(self) -> typing.Optional[builtins.str]:
|
|
15218
|
-
'''Sets the logFormat for the function.
|
|
15603
|
+
'''(deprecated) Sets the logFormat for the function.
|
|
15219
15604
|
|
|
15220
15605
|
:default: "Text"
|
|
15606
|
+
|
|
15607
|
+
:deprecated: Use ``loggingFormat`` as a property instead.
|
|
15608
|
+
|
|
15609
|
+
:stability: deprecated
|
|
15221
15610
|
'''
|
|
15222
15611
|
result = self._values.get("log_format")
|
|
15223
15612
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
@@ -15419,13 +15808,26 @@ class FunctionProps(FunctionOptions):
|
|
|
15419
15808
|
|
|
15420
15809
|
@builtins.property
|
|
15421
15810
|
def system_log_level(self) -> typing.Optional[builtins.str]:
|
|
15422
|
-
'''Sets the system log level for the function.
|
|
15811
|
+
'''(deprecated) Sets the system log level for the function.
|
|
15423
15812
|
|
|
15424
15813
|
:default: "INFO"
|
|
15814
|
+
|
|
15815
|
+
:deprecated: Use ``systemLogLevelV2`` as a property instead.
|
|
15816
|
+
|
|
15817
|
+
:stability: deprecated
|
|
15425
15818
|
'''
|
|
15426
15819
|
result = self._values.get("system_log_level")
|
|
15427
15820
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
15428
15821
|
|
|
15822
|
+
@builtins.property
|
|
15823
|
+
def system_log_level_v2(self) -> typing.Optional["SystemLogLevel"]:
|
|
15824
|
+
'''Sets the system log level for the function.
|
|
15825
|
+
|
|
15826
|
+
:default: SystemLogLevel.INFO
|
|
15827
|
+
'''
|
|
15828
|
+
result = self._values.get("system_log_level_v2")
|
|
15829
|
+
return typing.cast(typing.Optional["SystemLogLevel"], result)
|
|
15830
|
+
|
|
15429
15831
|
@builtins.property
|
|
15430
15832
|
def timeout(self) -> typing.Optional[_Duration_4839e8c3]:
|
|
15431
15833
|
'''The function execution time (in seconds) after which Lambda terminates the function.
|
|
@@ -18549,8 +18951,8 @@ class LoggingFormat(enum.Enum):
|
|
|
18549
18951
|
handler="index.handler",
|
|
18550
18952
|
runtime=lambda_.Runtime.NODEJS_18_X,
|
|
18551
18953
|
logging_format=lambda_.LoggingFormat.JSON,
|
|
18552
|
-
|
|
18553
|
-
|
|
18954
|
+
system_log_level_v2=lambda_.SystemLogLevel.INFO,
|
|
18955
|
+
application_log_level_v2=lambda_.ApplicationLogLevel.INFO,
|
|
18554
18956
|
log_group=log_group
|
|
18555
18957
|
)
|
|
18556
18958
|
'''
|
|
@@ -19898,6 +20300,7 @@ class S3Code(Code, metaclass=jsii.JSIIMeta, jsii_type="aws-cdk-lib.aws_lambda.S3
|
|
|
19898
20300
|
"allow_all_outbound": "allowAllOutbound",
|
|
19899
20301
|
"allow_public_subnet": "allowPublicSubnet",
|
|
19900
20302
|
"application_log_level": "applicationLogLevel",
|
|
20303
|
+
"application_log_level_v2": "applicationLogLevelV2",
|
|
19901
20304
|
"architecture": "architecture",
|
|
19902
20305
|
"code_signing_config": "codeSigningConfig",
|
|
19903
20306
|
"current_version_options": "currentVersionOptions",
|
|
@@ -19931,6 +20334,7 @@ class S3Code(Code, metaclass=jsii.JSIIMeta, jsii_type="aws-cdk-lib.aws_lambda.S3
|
|
|
19931
20334
|
"security_groups": "securityGroups",
|
|
19932
20335
|
"snap_start": "snapStart",
|
|
19933
20336
|
"system_log_level": "systemLogLevel",
|
|
20337
|
+
"system_log_level_v2": "systemLogLevelV2",
|
|
19934
20338
|
"timeout": "timeout",
|
|
19935
20339
|
"tracing": "tracing",
|
|
19936
20340
|
"vpc": "vpc",
|
|
@@ -19954,6 +20358,7 @@ class SingletonFunctionProps(FunctionProps):
|
|
|
19954
20358
|
allow_all_outbound: typing.Optional[builtins.bool] = None,
|
|
19955
20359
|
allow_public_subnet: typing.Optional[builtins.bool] = None,
|
|
19956
20360
|
application_log_level: typing.Optional[builtins.str] = None,
|
|
20361
|
+
application_log_level_v2: typing.Optional[ApplicationLogLevel] = None,
|
|
19957
20362
|
architecture: typing.Optional[Architecture] = None,
|
|
19958
20363
|
code_signing_config: typing.Optional[ICodeSigningConfig] = None,
|
|
19959
20364
|
current_version_options: typing.Optional[typing.Union["VersionOptions", typing.Dict[builtins.str, typing.Any]]] = None,
|
|
@@ -19987,6 +20392,7 @@ class SingletonFunctionProps(FunctionProps):
|
|
|
19987
20392
|
security_groups: typing.Optional[typing.Sequence[_ISecurityGroup_acf8a799]] = None,
|
|
19988
20393
|
snap_start: typing.Optional["SnapStartConf"] = None,
|
|
19989
20394
|
system_log_level: typing.Optional[builtins.str] = None,
|
|
20395
|
+
system_log_level_v2: typing.Optional["SystemLogLevel"] = None,
|
|
19990
20396
|
timeout: typing.Optional[_Duration_4839e8c3] = None,
|
|
19991
20397
|
tracing: typing.Optional["Tracing"] = None,
|
|
19992
20398
|
vpc: typing.Optional[_IVpc_f30d5663] = None,
|
|
@@ -20006,7 +20412,8 @@ class SingletonFunctionProps(FunctionProps):
|
|
|
20006
20412
|
:param adot_instrumentation: Specify the configuration of AWS Distro for OpenTelemetry (ADOT) instrumentation. Default: - No ADOT instrumentation
|
|
20007
20413
|
: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
20414
|
: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"
|
|
20415
|
+
:param application_log_level: (deprecated) Sets the application log level for the function. Default: "INFO"
|
|
20416
|
+
:param application_log_level_v2: Sets the application log level for the function. Default: ApplicationLogLevel.INFO
|
|
20010
20417
|
:param architecture: The system architectures compatible with this lambda function. Default: Architecture.X86_64
|
|
20011
20418
|
:param code_signing_config: Code signing config associated with this function. Default: - Not Sign the Code
|
|
20012
20419
|
: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 +20431,7 @@ class SingletonFunctionProps(FunctionProps):
|
|
|
20024
20431
|
:param insights_version: Specify the version of CloudWatch Lambda insights to use for monitoring. Default: - No Lambda Insights
|
|
20025
20432
|
: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
20433
|
: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"
|
|
20434
|
+
:param log_format: (deprecated) Sets the logFormat for the function. Default: "Text"
|
|
20028
20435
|
:param logging_format: Sets the loggingFormat for the function. Default: LoggingFormat.TEXT
|
|
20029
20436
|
: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
20437
|
: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 +20446,8 @@ class SingletonFunctionProps(FunctionProps):
|
|
|
20039
20446
|
:param runtime_management_mode: Sets the runtime management configuration for a function's version. Default: Auto
|
|
20040
20447
|
: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
20448
|
: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"
|
|
20449
|
+
:param system_log_level: (deprecated) Sets the system log level for the function. Default: "INFO"
|
|
20450
|
+
:param system_log_level_v2: Sets the system log level for the function. Default: SystemLogLevel.INFO
|
|
20043
20451
|
: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
20452
|
:param tracing: Enable AWS X-Ray Tracing for Lambda Function. Default: Tracing.Disabled
|
|
20045
20453
|
: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 +20486,7 @@ class SingletonFunctionProps(FunctionProps):
|
|
|
20078
20486
|
check_type(argname="argument allow_all_outbound", value=allow_all_outbound, expected_type=type_hints["allow_all_outbound"])
|
|
20079
20487
|
check_type(argname="argument allow_public_subnet", value=allow_public_subnet, expected_type=type_hints["allow_public_subnet"])
|
|
20080
20488
|
check_type(argname="argument application_log_level", value=application_log_level, expected_type=type_hints["application_log_level"])
|
|
20489
|
+
check_type(argname="argument application_log_level_v2", value=application_log_level_v2, expected_type=type_hints["application_log_level_v2"])
|
|
20081
20490
|
check_type(argname="argument architecture", value=architecture, expected_type=type_hints["architecture"])
|
|
20082
20491
|
check_type(argname="argument code_signing_config", value=code_signing_config, expected_type=type_hints["code_signing_config"])
|
|
20083
20492
|
check_type(argname="argument current_version_options", value=current_version_options, expected_type=type_hints["current_version_options"])
|
|
@@ -20111,6 +20520,7 @@ class SingletonFunctionProps(FunctionProps):
|
|
|
20111
20520
|
check_type(argname="argument security_groups", value=security_groups, expected_type=type_hints["security_groups"])
|
|
20112
20521
|
check_type(argname="argument snap_start", value=snap_start, expected_type=type_hints["snap_start"])
|
|
20113
20522
|
check_type(argname="argument system_log_level", value=system_log_level, expected_type=type_hints["system_log_level"])
|
|
20523
|
+
check_type(argname="argument system_log_level_v2", value=system_log_level_v2, expected_type=type_hints["system_log_level_v2"])
|
|
20114
20524
|
check_type(argname="argument timeout", value=timeout, expected_type=type_hints["timeout"])
|
|
20115
20525
|
check_type(argname="argument tracing", value=tracing, expected_type=type_hints["tracing"])
|
|
20116
20526
|
check_type(argname="argument vpc", value=vpc, expected_type=type_hints["vpc"])
|
|
@@ -20142,6 +20552,8 @@ class SingletonFunctionProps(FunctionProps):
|
|
|
20142
20552
|
self._values["allow_public_subnet"] = allow_public_subnet
|
|
20143
20553
|
if application_log_level is not None:
|
|
20144
20554
|
self._values["application_log_level"] = application_log_level
|
|
20555
|
+
if application_log_level_v2 is not None:
|
|
20556
|
+
self._values["application_log_level_v2"] = application_log_level_v2
|
|
20145
20557
|
if architecture is not None:
|
|
20146
20558
|
self._values["architecture"] = architecture
|
|
20147
20559
|
if code_signing_config is not None:
|
|
@@ -20208,6 +20620,8 @@ class SingletonFunctionProps(FunctionProps):
|
|
|
20208
20620
|
self._values["snap_start"] = snap_start
|
|
20209
20621
|
if system_log_level is not None:
|
|
20210
20622
|
self._values["system_log_level"] = system_log_level
|
|
20623
|
+
if system_log_level_v2 is not None:
|
|
20624
|
+
self._values["system_log_level_v2"] = system_log_level_v2
|
|
20211
20625
|
if timeout is not None:
|
|
20212
20626
|
self._values["timeout"] = timeout
|
|
20213
20627
|
if tracing is not None:
|
|
@@ -20302,13 +20716,26 @@ class SingletonFunctionProps(FunctionProps):
|
|
|
20302
20716
|
|
|
20303
20717
|
@builtins.property
|
|
20304
20718
|
def application_log_level(self) -> typing.Optional[builtins.str]:
|
|
20305
|
-
'''Sets the application log level for the function.
|
|
20719
|
+
'''(deprecated) Sets the application log level for the function.
|
|
20306
20720
|
|
|
20307
20721
|
:default: "INFO"
|
|
20722
|
+
|
|
20723
|
+
:deprecated: Use ``applicationLogLevelV2`` as a property instead.
|
|
20724
|
+
|
|
20725
|
+
:stability: deprecated
|
|
20308
20726
|
'''
|
|
20309
20727
|
result = self._values.get("application_log_level")
|
|
20310
20728
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
20311
20729
|
|
|
20730
|
+
@builtins.property
|
|
20731
|
+
def application_log_level_v2(self) -> typing.Optional[ApplicationLogLevel]:
|
|
20732
|
+
'''Sets the application log level for the function.
|
|
20733
|
+
|
|
20734
|
+
:default: ApplicationLogLevel.INFO
|
|
20735
|
+
'''
|
|
20736
|
+
result = self._values.get("application_log_level_v2")
|
|
20737
|
+
return typing.cast(typing.Optional[ApplicationLogLevel], result)
|
|
20738
|
+
|
|
20312
20739
|
@builtins.property
|
|
20313
20740
|
def architecture(self) -> typing.Optional[Architecture]:
|
|
20314
20741
|
'''The system architectures compatible with this lambda function.
|
|
@@ -20493,9 +20920,13 @@ class SingletonFunctionProps(FunctionProps):
|
|
|
20493
20920
|
|
|
20494
20921
|
@builtins.property
|
|
20495
20922
|
def log_format(self) -> typing.Optional[builtins.str]:
|
|
20496
|
-
'''Sets the logFormat for the function.
|
|
20923
|
+
'''(deprecated) Sets the logFormat for the function.
|
|
20497
20924
|
|
|
20498
20925
|
:default: "Text"
|
|
20926
|
+
|
|
20927
|
+
:deprecated: Use ``loggingFormat`` as a property instead.
|
|
20928
|
+
|
|
20929
|
+
:stability: deprecated
|
|
20499
20930
|
'''
|
|
20500
20931
|
result = self._values.get("log_format")
|
|
20501
20932
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
@@ -20695,13 +21126,26 @@ class SingletonFunctionProps(FunctionProps):
|
|
|
20695
21126
|
|
|
20696
21127
|
@builtins.property
|
|
20697
21128
|
def system_log_level(self) -> typing.Optional[builtins.str]:
|
|
20698
|
-
'''Sets the system log level for the function.
|
|
21129
|
+
'''(deprecated) Sets the system log level for the function.
|
|
20699
21130
|
|
|
20700
21131
|
:default: "INFO"
|
|
21132
|
+
|
|
21133
|
+
:deprecated: Use ``systemLogLevelV2`` as a property instead.
|
|
21134
|
+
|
|
21135
|
+
:stability: deprecated
|
|
20701
21136
|
'''
|
|
20702
21137
|
result = self._values.get("system_log_level")
|
|
20703
21138
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
20704
21139
|
|
|
21140
|
+
@builtins.property
|
|
21141
|
+
def system_log_level_v2(self) -> typing.Optional["SystemLogLevel"]:
|
|
21142
|
+
'''Sets the system log level for the function.
|
|
21143
|
+
|
|
21144
|
+
:default: SystemLogLevel.INFO
|
|
21145
|
+
'''
|
|
21146
|
+
result = self._values.get("system_log_level_v2")
|
|
21147
|
+
return typing.cast(typing.Optional["SystemLogLevel"], result)
|
|
21148
|
+
|
|
20705
21149
|
@builtins.property
|
|
20706
21150
|
def timeout(self) -> typing.Optional[_Duration_4839e8c3]:
|
|
20707
21151
|
'''The function execution time (in seconds) after which Lambda terminates the function.
|
|
@@ -21087,8 +21531,8 @@ class SystemLogLevel(enum.Enum):
|
|
|
21087
21531
|
handler="index.handler",
|
|
21088
21532
|
runtime=lambda_.Runtime.NODEJS_18_X,
|
|
21089
21533
|
logging_format=lambda_.LoggingFormat.JSON,
|
|
21090
|
-
|
|
21091
|
-
|
|
21534
|
+
system_log_level_v2=lambda_.SystemLogLevel.INFO,
|
|
21535
|
+
application_log_level_v2=lambda_.ApplicationLogLevel.INFO,
|
|
21092
21536
|
log_group=log_group
|
|
21093
21537
|
)
|
|
21094
21538
|
'''
|
|
@@ -22776,6 +23220,7 @@ class CodeSigningConfig(
|
|
|
22776
23220
|
"allow_all_outbound": "allowAllOutbound",
|
|
22777
23221
|
"allow_public_subnet": "allowPublicSubnet",
|
|
22778
23222
|
"application_log_level": "applicationLogLevel",
|
|
23223
|
+
"application_log_level_v2": "applicationLogLevelV2",
|
|
22779
23224
|
"architecture": "architecture",
|
|
22780
23225
|
"code_signing_config": "codeSigningConfig",
|
|
22781
23226
|
"current_version_options": "currentVersionOptions",
|
|
@@ -22809,6 +23254,7 @@ class CodeSigningConfig(
|
|
|
22809
23254
|
"security_groups": "securityGroups",
|
|
22810
23255
|
"snap_start": "snapStart",
|
|
22811
23256
|
"system_log_level": "systemLogLevel",
|
|
23257
|
+
"system_log_level_v2": "systemLogLevelV2",
|
|
22812
23258
|
"timeout": "timeout",
|
|
22813
23259
|
"tracing": "tracing",
|
|
22814
23260
|
"vpc": "vpc",
|
|
@@ -22828,6 +23274,7 @@ class DockerImageFunctionProps(FunctionOptions):
|
|
|
22828
23274
|
allow_all_outbound: typing.Optional[builtins.bool] = None,
|
|
22829
23275
|
allow_public_subnet: typing.Optional[builtins.bool] = None,
|
|
22830
23276
|
application_log_level: typing.Optional[builtins.str] = None,
|
|
23277
|
+
application_log_level_v2: typing.Optional[ApplicationLogLevel] = None,
|
|
22831
23278
|
architecture: typing.Optional[Architecture] = None,
|
|
22832
23279
|
code_signing_config: typing.Optional[ICodeSigningConfig] = None,
|
|
22833
23280
|
current_version_options: typing.Optional[typing.Union[VersionOptions, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
@@ -22861,6 +23308,7 @@ class DockerImageFunctionProps(FunctionOptions):
|
|
|
22861
23308
|
security_groups: typing.Optional[typing.Sequence[_ISecurityGroup_acf8a799]] = None,
|
|
22862
23309
|
snap_start: typing.Optional[SnapStartConf] = None,
|
|
22863
23310
|
system_log_level: typing.Optional[builtins.str] = None,
|
|
23311
|
+
system_log_level_v2: typing.Optional[SystemLogLevel] = None,
|
|
22864
23312
|
timeout: typing.Optional[_Duration_4839e8c3] = None,
|
|
22865
23313
|
tracing: typing.Optional[Tracing] = None,
|
|
22866
23314
|
vpc: typing.Optional[_IVpc_f30d5663] = None,
|
|
@@ -22876,7 +23324,8 @@ class DockerImageFunctionProps(FunctionOptions):
|
|
|
22876
23324
|
:param adot_instrumentation: Specify the configuration of AWS Distro for OpenTelemetry (ADOT) instrumentation. Default: - No ADOT instrumentation
|
|
22877
23325
|
: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
23326
|
: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"
|
|
23327
|
+
:param application_log_level: (deprecated) Sets the application log level for the function. Default: "INFO"
|
|
23328
|
+
:param application_log_level_v2: Sets the application log level for the function. Default: ApplicationLogLevel.INFO
|
|
22880
23329
|
:param architecture: The system architectures compatible with this lambda function. Default: Architecture.X86_64
|
|
22881
23330
|
:param code_signing_config: Code signing config associated with this function. Default: - Not Sign the Code
|
|
22882
23331
|
: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 +23343,7 @@ class DockerImageFunctionProps(FunctionOptions):
|
|
|
22894
23343
|
:param insights_version: Specify the version of CloudWatch Lambda insights to use for monitoring. Default: - No Lambda Insights
|
|
22895
23344
|
: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
23345
|
: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"
|
|
23346
|
+
:param log_format: (deprecated) Sets the logFormat for the function. Default: "Text"
|
|
22898
23347
|
:param logging_format: Sets the loggingFormat for the function. Default: LoggingFormat.TEXT
|
|
22899
23348
|
: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
23349
|
: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 +23358,8 @@ class DockerImageFunctionProps(FunctionOptions):
|
|
|
22909
23358
|
:param runtime_management_mode: Sets the runtime management configuration for a function's version. Default: Auto
|
|
22910
23359
|
: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
23360
|
: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"
|
|
23361
|
+
:param system_log_level: (deprecated) Sets the system log level for the function. Default: "INFO"
|
|
23362
|
+
:param system_log_level_v2: Sets the system log level for the function. Default: SystemLogLevel.INFO
|
|
22913
23363
|
: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
23364
|
:param tracing: Enable AWS X-Ray Tracing for Lambda Function. Default: Tracing.Disabled
|
|
22915
23365
|
: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 +23392,7 @@ class DockerImageFunctionProps(FunctionOptions):
|
|
|
22942
23392
|
check_type(argname="argument allow_all_outbound", value=allow_all_outbound, expected_type=type_hints["allow_all_outbound"])
|
|
22943
23393
|
check_type(argname="argument allow_public_subnet", value=allow_public_subnet, expected_type=type_hints["allow_public_subnet"])
|
|
22944
23394
|
check_type(argname="argument application_log_level", value=application_log_level, expected_type=type_hints["application_log_level"])
|
|
23395
|
+
check_type(argname="argument application_log_level_v2", value=application_log_level_v2, expected_type=type_hints["application_log_level_v2"])
|
|
22945
23396
|
check_type(argname="argument architecture", value=architecture, expected_type=type_hints["architecture"])
|
|
22946
23397
|
check_type(argname="argument code_signing_config", value=code_signing_config, expected_type=type_hints["code_signing_config"])
|
|
22947
23398
|
check_type(argname="argument current_version_options", value=current_version_options, expected_type=type_hints["current_version_options"])
|
|
@@ -22975,6 +23426,7 @@ class DockerImageFunctionProps(FunctionOptions):
|
|
|
22975
23426
|
check_type(argname="argument security_groups", value=security_groups, expected_type=type_hints["security_groups"])
|
|
22976
23427
|
check_type(argname="argument snap_start", value=snap_start, expected_type=type_hints["snap_start"])
|
|
22977
23428
|
check_type(argname="argument system_log_level", value=system_log_level, expected_type=type_hints["system_log_level"])
|
|
23429
|
+
check_type(argname="argument system_log_level_v2", value=system_log_level_v2, expected_type=type_hints["system_log_level_v2"])
|
|
22978
23430
|
check_type(argname="argument timeout", value=timeout, expected_type=type_hints["timeout"])
|
|
22979
23431
|
check_type(argname="argument tracing", value=tracing, expected_type=type_hints["tracing"])
|
|
22980
23432
|
check_type(argname="argument vpc", value=vpc, expected_type=type_hints["vpc"])
|
|
@@ -22999,6 +23451,8 @@ class DockerImageFunctionProps(FunctionOptions):
|
|
|
22999
23451
|
self._values["allow_public_subnet"] = allow_public_subnet
|
|
23000
23452
|
if application_log_level is not None:
|
|
23001
23453
|
self._values["application_log_level"] = application_log_level
|
|
23454
|
+
if application_log_level_v2 is not None:
|
|
23455
|
+
self._values["application_log_level_v2"] = application_log_level_v2
|
|
23002
23456
|
if architecture is not None:
|
|
23003
23457
|
self._values["architecture"] = architecture
|
|
23004
23458
|
if code_signing_config is not None:
|
|
@@ -23065,6 +23519,8 @@ class DockerImageFunctionProps(FunctionOptions):
|
|
|
23065
23519
|
self._values["snap_start"] = snap_start
|
|
23066
23520
|
if system_log_level is not None:
|
|
23067
23521
|
self._values["system_log_level"] = system_log_level
|
|
23522
|
+
if system_log_level_v2 is not None:
|
|
23523
|
+
self._values["system_log_level_v2"] = system_log_level_v2
|
|
23068
23524
|
if timeout is not None:
|
|
23069
23525
|
self._values["timeout"] = timeout
|
|
23070
23526
|
if tracing is not None:
|
|
@@ -23157,13 +23613,26 @@ class DockerImageFunctionProps(FunctionOptions):
|
|
|
23157
23613
|
|
|
23158
23614
|
@builtins.property
|
|
23159
23615
|
def application_log_level(self) -> typing.Optional[builtins.str]:
|
|
23160
|
-
'''Sets the application log level for the function.
|
|
23616
|
+
'''(deprecated) Sets the application log level for the function.
|
|
23161
23617
|
|
|
23162
23618
|
:default: "INFO"
|
|
23619
|
+
|
|
23620
|
+
:deprecated: Use ``applicationLogLevelV2`` as a property instead.
|
|
23621
|
+
|
|
23622
|
+
:stability: deprecated
|
|
23163
23623
|
'''
|
|
23164
23624
|
result = self._values.get("application_log_level")
|
|
23165
23625
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
23166
23626
|
|
|
23627
|
+
@builtins.property
|
|
23628
|
+
def application_log_level_v2(self) -> typing.Optional[ApplicationLogLevel]:
|
|
23629
|
+
'''Sets the application log level for the function.
|
|
23630
|
+
|
|
23631
|
+
:default: ApplicationLogLevel.INFO
|
|
23632
|
+
'''
|
|
23633
|
+
result = self._values.get("application_log_level_v2")
|
|
23634
|
+
return typing.cast(typing.Optional[ApplicationLogLevel], result)
|
|
23635
|
+
|
|
23167
23636
|
@builtins.property
|
|
23168
23637
|
def architecture(self) -> typing.Optional[Architecture]:
|
|
23169
23638
|
'''The system architectures compatible with this lambda function.
|
|
@@ -23348,9 +23817,13 @@ class DockerImageFunctionProps(FunctionOptions):
|
|
|
23348
23817
|
|
|
23349
23818
|
@builtins.property
|
|
23350
23819
|
def log_format(self) -> typing.Optional[builtins.str]:
|
|
23351
|
-
'''Sets the logFormat for the function.
|
|
23820
|
+
'''(deprecated) Sets the logFormat for the function.
|
|
23352
23821
|
|
|
23353
23822
|
:default: "Text"
|
|
23823
|
+
|
|
23824
|
+
:deprecated: Use ``loggingFormat`` as a property instead.
|
|
23825
|
+
|
|
23826
|
+
:stability: deprecated
|
|
23354
23827
|
'''
|
|
23355
23828
|
result = self._values.get("log_format")
|
|
23356
23829
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
@@ -23550,13 +24023,26 @@ class DockerImageFunctionProps(FunctionOptions):
|
|
|
23550
24023
|
|
|
23551
24024
|
@builtins.property
|
|
23552
24025
|
def system_log_level(self) -> typing.Optional[builtins.str]:
|
|
23553
|
-
'''Sets the system log level for the function.
|
|
24026
|
+
'''(deprecated) Sets the system log level for the function.
|
|
23554
24027
|
|
|
23555
24028
|
:default: "INFO"
|
|
24029
|
+
|
|
24030
|
+
:deprecated: Use ``systemLogLevelV2`` as a property instead.
|
|
24031
|
+
|
|
24032
|
+
:stability: deprecated
|
|
23556
24033
|
'''
|
|
23557
24034
|
result = self._values.get("system_log_level")
|
|
23558
24035
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
23559
24036
|
|
|
24037
|
+
@builtins.property
|
|
24038
|
+
def system_log_level_v2(self) -> typing.Optional[SystemLogLevel]:
|
|
24039
|
+
'''Sets the system log level for the function.
|
|
24040
|
+
|
|
24041
|
+
:default: SystemLogLevel.INFO
|
|
24042
|
+
'''
|
|
24043
|
+
result = self._values.get("system_log_level_v2")
|
|
24044
|
+
return typing.cast(typing.Optional[SystemLogLevel], result)
|
|
24045
|
+
|
|
23560
24046
|
@builtins.property
|
|
23561
24047
|
def timeout(self) -> typing.Optional[_Duration_4839e8c3]:
|
|
23562
24048
|
'''The function execution time (in seconds) after which Lambda terminates the function.
|
|
@@ -24787,6 +25273,7 @@ class SingletonFunction(
|
|
|
24787
25273
|
allow_all_outbound: typing.Optional[builtins.bool] = None,
|
|
24788
25274
|
allow_public_subnet: typing.Optional[builtins.bool] = None,
|
|
24789
25275
|
application_log_level: typing.Optional[builtins.str] = None,
|
|
25276
|
+
application_log_level_v2: typing.Optional[ApplicationLogLevel] = None,
|
|
24790
25277
|
architecture: typing.Optional[Architecture] = None,
|
|
24791
25278
|
code_signing_config: typing.Optional[ICodeSigningConfig] = None,
|
|
24792
25279
|
current_version_options: typing.Optional[typing.Union[VersionOptions, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
@@ -24820,6 +25307,7 @@ class SingletonFunction(
|
|
|
24820
25307
|
security_groups: typing.Optional[typing.Sequence[_ISecurityGroup_acf8a799]] = None,
|
|
24821
25308
|
snap_start: typing.Optional[SnapStartConf] = None,
|
|
24822
25309
|
system_log_level: typing.Optional[builtins.str] = None,
|
|
25310
|
+
system_log_level_v2: typing.Optional[SystemLogLevel] = None,
|
|
24823
25311
|
timeout: typing.Optional[_Duration_4839e8c3] = None,
|
|
24824
25312
|
tracing: typing.Optional[Tracing] = None,
|
|
24825
25313
|
vpc: typing.Optional[_IVpc_f30d5663] = None,
|
|
@@ -24840,7 +25328,8 @@ class SingletonFunction(
|
|
|
24840
25328
|
:param adot_instrumentation: Specify the configuration of AWS Distro for OpenTelemetry (ADOT) instrumentation. Default: - No ADOT instrumentation
|
|
24841
25329
|
: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
25330
|
: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"
|
|
25331
|
+
:param application_log_level: (deprecated) Sets the application log level for the function. Default: "INFO"
|
|
25332
|
+
:param application_log_level_v2: Sets the application log level for the function. Default: ApplicationLogLevel.INFO
|
|
24844
25333
|
:param architecture: The system architectures compatible with this lambda function. Default: Architecture.X86_64
|
|
24845
25334
|
:param code_signing_config: Code signing config associated with this function. Default: - Not Sign the Code
|
|
24846
25335
|
: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 +25347,7 @@ class SingletonFunction(
|
|
|
24858
25347
|
:param insights_version: Specify the version of CloudWatch Lambda insights to use for monitoring. Default: - No Lambda Insights
|
|
24859
25348
|
: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
25349
|
: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"
|
|
25350
|
+
:param log_format: (deprecated) Sets the logFormat for the function. Default: "Text"
|
|
24862
25351
|
:param logging_format: Sets the loggingFormat for the function. Default: LoggingFormat.TEXT
|
|
24863
25352
|
: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
25353
|
: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 +25362,8 @@ class SingletonFunction(
|
|
|
24873
25362
|
:param runtime_management_mode: Sets the runtime management configuration for a function's version. Default: Auto
|
|
24874
25363
|
: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
25364
|
: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"
|
|
25365
|
+
:param system_log_level: (deprecated) Sets the system log level for the function. Default: "INFO"
|
|
25366
|
+
:param system_log_level_v2: Sets the system log level for the function. Default: SystemLogLevel.INFO
|
|
24877
25367
|
: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
25368
|
:param tracing: Enable AWS X-Ray Tracing for Lambda Function. Default: Tracing.Disabled
|
|
24879
25369
|
: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 +25387,7 @@ class SingletonFunction(
|
|
|
24897
25387
|
allow_all_outbound=allow_all_outbound,
|
|
24898
25388
|
allow_public_subnet=allow_public_subnet,
|
|
24899
25389
|
application_log_level=application_log_level,
|
|
25390
|
+
application_log_level_v2=application_log_level_v2,
|
|
24900
25391
|
architecture=architecture,
|
|
24901
25392
|
code_signing_config=code_signing_config,
|
|
24902
25393
|
current_version_options=current_version_options,
|
|
@@ -24930,6 +25421,7 @@ class SingletonFunction(
|
|
|
24930
25421
|
security_groups=security_groups,
|
|
24931
25422
|
snap_start=snap_start,
|
|
24932
25423
|
system_log_level=system_log_level,
|
|
25424
|
+
system_log_level_v2=system_log_level_v2,
|
|
24933
25425
|
timeout=timeout,
|
|
24934
25426
|
tracing=tracing,
|
|
24935
25427
|
vpc=vpc,
|
|
@@ -25739,6 +26231,7 @@ class Function(
|
|
|
25739
26231
|
allow_all_outbound: typing.Optional[builtins.bool] = None,
|
|
25740
26232
|
allow_public_subnet: typing.Optional[builtins.bool] = None,
|
|
25741
26233
|
application_log_level: typing.Optional[builtins.str] = None,
|
|
26234
|
+
application_log_level_v2: typing.Optional[ApplicationLogLevel] = None,
|
|
25742
26235
|
architecture: typing.Optional[Architecture] = None,
|
|
25743
26236
|
code_signing_config: typing.Optional[ICodeSigningConfig] = None,
|
|
25744
26237
|
current_version_options: typing.Optional[typing.Union[VersionOptions, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
@@ -25772,6 +26265,7 @@ class Function(
|
|
|
25772
26265
|
security_groups: typing.Optional[typing.Sequence[_ISecurityGroup_acf8a799]] = None,
|
|
25773
26266
|
snap_start: typing.Optional[SnapStartConf] = None,
|
|
25774
26267
|
system_log_level: typing.Optional[builtins.str] = None,
|
|
26268
|
+
system_log_level_v2: typing.Optional[SystemLogLevel] = None,
|
|
25775
26269
|
timeout: typing.Optional[_Duration_4839e8c3] = None,
|
|
25776
26270
|
tracing: typing.Optional[Tracing] = None,
|
|
25777
26271
|
vpc: typing.Optional[_IVpc_f30d5663] = None,
|
|
@@ -25790,7 +26284,8 @@ class Function(
|
|
|
25790
26284
|
:param adot_instrumentation: Specify the configuration of AWS Distro for OpenTelemetry (ADOT) instrumentation. Default: - No ADOT instrumentation
|
|
25791
26285
|
: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
26286
|
: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"
|
|
26287
|
+
:param application_log_level: (deprecated) Sets the application log level for the function. Default: "INFO"
|
|
26288
|
+
:param application_log_level_v2: Sets the application log level for the function. Default: ApplicationLogLevel.INFO
|
|
25794
26289
|
:param architecture: The system architectures compatible with this lambda function. Default: Architecture.X86_64
|
|
25795
26290
|
:param code_signing_config: Code signing config associated with this function. Default: - Not Sign the Code
|
|
25796
26291
|
: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 +26303,7 @@ class Function(
|
|
|
25808
26303
|
:param insights_version: Specify the version of CloudWatch Lambda insights to use for monitoring. Default: - No Lambda Insights
|
|
25809
26304
|
: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
26305
|
: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"
|
|
26306
|
+
:param log_format: (deprecated) Sets the logFormat for the function. Default: "Text"
|
|
25812
26307
|
:param logging_format: Sets the loggingFormat for the function. Default: LoggingFormat.TEXT
|
|
25813
26308
|
: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
26309
|
: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 +26318,8 @@ class Function(
|
|
|
25823
26318
|
:param runtime_management_mode: Sets the runtime management configuration for a function's version. Default: Auto
|
|
25824
26319
|
: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
26320
|
: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"
|
|
26321
|
+
:param system_log_level: (deprecated) Sets the system log level for the function. Default: "INFO"
|
|
26322
|
+
:param system_log_level_v2: Sets the system log level for the function. Default: SystemLogLevel.INFO
|
|
25827
26323
|
: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
26324
|
:param tracing: Enable AWS X-Ray Tracing for Lambda Function. Default: Tracing.Disabled
|
|
25829
26325
|
: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 +26341,7 @@ class Function(
|
|
|
25845
26341
|
allow_all_outbound=allow_all_outbound,
|
|
25846
26342
|
allow_public_subnet=allow_public_subnet,
|
|
25847
26343
|
application_log_level=application_log_level,
|
|
26344
|
+
application_log_level_v2=application_log_level_v2,
|
|
25848
26345
|
architecture=architecture,
|
|
25849
26346
|
code_signing_config=code_signing_config,
|
|
25850
26347
|
current_version_options=current_version_options,
|
|
@@ -25878,6 +26375,7 @@ class Function(
|
|
|
25878
26375
|
security_groups=security_groups,
|
|
25879
26376
|
snap_start=snap_start,
|
|
25880
26377
|
system_log_level=system_log_level,
|
|
26378
|
+
system_log_level_v2=system_log_level_v2,
|
|
25881
26379
|
timeout=timeout,
|
|
25882
26380
|
tracing=tracing,
|
|
25883
26381
|
vpc=vpc,
|
|
@@ -26525,6 +27023,7 @@ class DockerImageFunction(
|
|
|
26525
27023
|
allow_all_outbound: typing.Optional[builtins.bool] = None,
|
|
26526
27024
|
allow_public_subnet: typing.Optional[builtins.bool] = None,
|
|
26527
27025
|
application_log_level: typing.Optional[builtins.str] = None,
|
|
27026
|
+
application_log_level_v2: typing.Optional[ApplicationLogLevel] = None,
|
|
26528
27027
|
architecture: typing.Optional[Architecture] = None,
|
|
26529
27028
|
code_signing_config: typing.Optional[ICodeSigningConfig] = None,
|
|
26530
27029
|
current_version_options: typing.Optional[typing.Union[VersionOptions, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
@@ -26558,6 +27057,7 @@ class DockerImageFunction(
|
|
|
26558
27057
|
security_groups: typing.Optional[typing.Sequence[_ISecurityGroup_acf8a799]] = None,
|
|
26559
27058
|
snap_start: typing.Optional[SnapStartConf] = None,
|
|
26560
27059
|
system_log_level: typing.Optional[builtins.str] = None,
|
|
27060
|
+
system_log_level_v2: typing.Optional[SystemLogLevel] = None,
|
|
26561
27061
|
timeout: typing.Optional[_Duration_4839e8c3] = None,
|
|
26562
27062
|
tracing: typing.Optional[Tracing] = None,
|
|
26563
27063
|
vpc: typing.Optional[_IVpc_f30d5663] = None,
|
|
@@ -26574,7 +27074,8 @@ class DockerImageFunction(
|
|
|
26574
27074
|
:param adot_instrumentation: Specify the configuration of AWS Distro for OpenTelemetry (ADOT) instrumentation. Default: - No ADOT instrumentation
|
|
26575
27075
|
: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
27076
|
: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"
|
|
27077
|
+
:param application_log_level: (deprecated) Sets the application log level for the function. Default: "INFO"
|
|
27078
|
+
:param application_log_level_v2: Sets the application log level for the function. Default: ApplicationLogLevel.INFO
|
|
26578
27079
|
:param architecture: The system architectures compatible with this lambda function. Default: Architecture.X86_64
|
|
26579
27080
|
:param code_signing_config: Code signing config associated with this function. Default: - Not Sign the Code
|
|
26580
27081
|
: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 +27093,7 @@ class DockerImageFunction(
|
|
|
26592
27093
|
:param insights_version: Specify the version of CloudWatch Lambda insights to use for monitoring. Default: - No Lambda Insights
|
|
26593
27094
|
: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
27095
|
: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"
|
|
27096
|
+
:param log_format: (deprecated) Sets the logFormat for the function. Default: "Text"
|
|
26596
27097
|
:param logging_format: Sets the loggingFormat for the function. Default: LoggingFormat.TEXT
|
|
26597
27098
|
: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
27099
|
: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 +27108,8 @@ class DockerImageFunction(
|
|
|
26607
27108
|
:param runtime_management_mode: Sets the runtime management configuration for a function's version. Default: Auto
|
|
26608
27109
|
: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
27110
|
: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"
|
|
27111
|
+
:param system_log_level: (deprecated) Sets the system log level for the function. Default: "INFO"
|
|
27112
|
+
:param system_log_level_v2: Sets the system log level for the function. Default: SystemLogLevel.INFO
|
|
26611
27113
|
: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
27114
|
:param tracing: Enable AWS X-Ray Tracing for Lambda Function. Default: Tracing.Disabled
|
|
26613
27115
|
: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 +27129,7 @@ class DockerImageFunction(
|
|
|
26627
27129
|
allow_all_outbound=allow_all_outbound,
|
|
26628
27130
|
allow_public_subnet=allow_public_subnet,
|
|
26629
27131
|
application_log_level=application_log_level,
|
|
27132
|
+
application_log_level_v2=application_log_level_v2,
|
|
26630
27133
|
architecture=architecture,
|
|
26631
27134
|
code_signing_config=code_signing_config,
|
|
26632
27135
|
current_version_options=current_version_options,
|
|
@@ -26660,6 +27163,7 @@ class DockerImageFunction(
|
|
|
26660
27163
|
security_groups=security_groups,
|
|
26661
27164
|
snap_start=snap_start,
|
|
26662
27165
|
system_log_level=system_log_level,
|
|
27166
|
+
system_log_level_v2=system_log_level_v2,
|
|
26663
27167
|
timeout=timeout,
|
|
26664
27168
|
tracing=tracing,
|
|
26665
27169
|
vpc=vpc,
|
|
@@ -26719,6 +27223,7 @@ __all__ = [
|
|
|
26719
27223
|
"CodeImageConfig",
|
|
26720
27224
|
"CodeSigningConfig",
|
|
26721
27225
|
"CodeSigningConfigProps",
|
|
27226
|
+
"CustomCommandOptions",
|
|
26722
27227
|
"DestinationConfig",
|
|
26723
27228
|
"DestinationOptions",
|
|
26724
27229
|
"DestinationType",
|
|
@@ -28246,6 +28751,23 @@ def _typecheckingstub__cf2f362d90d470e1ea550c48af2d201151dbe9e28567f1f024ec091a2
|
|
|
28246
28751
|
"""Type checking stubs"""
|
|
28247
28752
|
pass
|
|
28248
28753
|
|
|
28754
|
+
def _typecheckingstub__f107aedaa96b9385600e34088d5cda9d8035f15776c846b0f0b4fbbe35d118df(
|
|
28755
|
+
output: builtins.str,
|
|
28756
|
+
command: typing.Sequence[builtins.str],
|
|
28757
|
+
*,
|
|
28758
|
+
command_options: typing.Optional[typing.Mapping[builtins.str, typing.Any]] = None,
|
|
28759
|
+
deploy_time: typing.Optional[builtins.bool] = None,
|
|
28760
|
+
readers: typing.Optional[typing.Sequence[_IGrantable_71c4f5de]] = None,
|
|
28761
|
+
asset_hash: typing.Optional[builtins.str] = None,
|
|
28762
|
+
asset_hash_type: typing.Optional[_AssetHashType_05b67f2d] = None,
|
|
28763
|
+
bundling: typing.Optional[typing.Union[_BundlingOptions_588cc936, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
28764
|
+
exclude: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
28765
|
+
follow_symlinks: typing.Optional[_SymlinkFollowMode_047ec1f6] = None,
|
|
28766
|
+
ignore_mode: typing.Optional[_IgnoreMode_655a98e8] = None,
|
|
28767
|
+
) -> None:
|
|
28768
|
+
"""Type checking stubs"""
|
|
28769
|
+
pass
|
|
28770
|
+
|
|
28249
28771
|
def _typecheckingstub__5d398ddff6fb1e58c2dafd59b4cd46de157e95f7c1faf544bd0e4cee3a6c9765(
|
|
28250
28772
|
path: builtins.str,
|
|
28251
28773
|
*,
|
|
@@ -28322,6 +28844,21 @@ def _typecheckingstub__aefe636ff4357a418ff1336047558f42e531611ca56525b6b5997177b
|
|
|
28322
28844
|
"""Type checking stubs"""
|
|
28323
28845
|
pass
|
|
28324
28846
|
|
|
28847
|
+
def _typecheckingstub__69255a578358e8a47662200dda7ce2e0b1f2ee573c1469268f14060b00a7863a(
|
|
28848
|
+
*,
|
|
28849
|
+
asset_hash: typing.Optional[builtins.str] = None,
|
|
28850
|
+
asset_hash_type: typing.Optional[_AssetHashType_05b67f2d] = None,
|
|
28851
|
+
bundling: typing.Optional[typing.Union[_BundlingOptions_588cc936, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
28852
|
+
exclude: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
28853
|
+
follow_symlinks: typing.Optional[_SymlinkFollowMode_047ec1f6] = None,
|
|
28854
|
+
ignore_mode: typing.Optional[_IgnoreMode_655a98e8] = None,
|
|
28855
|
+
deploy_time: typing.Optional[builtins.bool] = None,
|
|
28856
|
+
readers: typing.Optional[typing.Sequence[_IGrantable_71c4f5de]] = None,
|
|
28857
|
+
command_options: typing.Optional[typing.Mapping[builtins.str, typing.Any]] = None,
|
|
28858
|
+
) -> None:
|
|
28859
|
+
"""Type checking stubs"""
|
|
28860
|
+
pass
|
|
28861
|
+
|
|
28325
28862
|
def _typecheckingstub__7b17dd9a780787e4acd806a7d2f2738f8873c3cee8af497862be683cbad3bd8a(
|
|
28326
28863
|
*,
|
|
28327
28864
|
destination: builtins.str,
|
|
@@ -28599,6 +29136,7 @@ def _typecheckingstub__59918bb957d892739733c7a5849db990615fe5329709ad7ba703e0ee4
|
|
|
28599
29136
|
allow_all_outbound: typing.Optional[builtins.bool] = None,
|
|
28600
29137
|
allow_public_subnet: typing.Optional[builtins.bool] = None,
|
|
28601
29138
|
application_log_level: typing.Optional[builtins.str] = None,
|
|
29139
|
+
application_log_level_v2: typing.Optional[ApplicationLogLevel] = None,
|
|
28602
29140
|
architecture: typing.Optional[Architecture] = None,
|
|
28603
29141
|
code_signing_config: typing.Optional[ICodeSigningConfig] = None,
|
|
28604
29142
|
current_version_options: typing.Optional[typing.Union[VersionOptions, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
@@ -28632,6 +29170,7 @@ def _typecheckingstub__59918bb957d892739733c7a5849db990615fe5329709ad7ba703e0ee4
|
|
|
28632
29170
|
security_groups: typing.Optional[typing.Sequence[_ISecurityGroup_acf8a799]] = None,
|
|
28633
29171
|
snap_start: typing.Optional[SnapStartConf] = None,
|
|
28634
29172
|
system_log_level: typing.Optional[builtins.str] = None,
|
|
29173
|
+
system_log_level_v2: typing.Optional[SystemLogLevel] = None,
|
|
28635
29174
|
timeout: typing.Optional[_Duration_4839e8c3] = None,
|
|
28636
29175
|
tracing: typing.Optional[Tracing] = None,
|
|
28637
29176
|
vpc: typing.Optional[_IVpc_f30d5663] = None,
|
|
@@ -28650,6 +29189,7 @@ def _typecheckingstub__94e70d11aa3c53737d418dbb9983973dfc06dbdef5c8cc30613cc3c6d
|
|
|
28650
29189
|
allow_all_outbound: typing.Optional[builtins.bool] = None,
|
|
28651
29190
|
allow_public_subnet: typing.Optional[builtins.bool] = None,
|
|
28652
29191
|
application_log_level: typing.Optional[builtins.str] = None,
|
|
29192
|
+
application_log_level_v2: typing.Optional[ApplicationLogLevel] = None,
|
|
28653
29193
|
architecture: typing.Optional[Architecture] = None,
|
|
28654
29194
|
code_signing_config: typing.Optional[ICodeSigningConfig] = None,
|
|
28655
29195
|
current_version_options: typing.Optional[typing.Union[VersionOptions, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
@@ -28683,6 +29223,7 @@ def _typecheckingstub__94e70d11aa3c53737d418dbb9983973dfc06dbdef5c8cc30613cc3c6d
|
|
|
28683
29223
|
security_groups: typing.Optional[typing.Sequence[_ISecurityGroup_acf8a799]] = None,
|
|
28684
29224
|
snap_start: typing.Optional[SnapStartConf] = None,
|
|
28685
29225
|
system_log_level: typing.Optional[builtins.str] = None,
|
|
29226
|
+
system_log_level_v2: typing.Optional[SystemLogLevel] = None,
|
|
28686
29227
|
timeout: typing.Optional[_Duration_4839e8c3] = None,
|
|
28687
29228
|
tracing: typing.Optional[Tracing] = None,
|
|
28688
29229
|
vpc: typing.Optional[_IVpc_f30d5663] = None,
|
|
@@ -29131,6 +29672,7 @@ def _typecheckingstub__68a03ec9f866a29c77aabcf8328c63a49511790fa9714874f255b3292
|
|
|
29131
29672
|
allow_all_outbound: typing.Optional[builtins.bool] = None,
|
|
29132
29673
|
allow_public_subnet: typing.Optional[builtins.bool] = None,
|
|
29133
29674
|
application_log_level: typing.Optional[builtins.str] = None,
|
|
29675
|
+
application_log_level_v2: typing.Optional[ApplicationLogLevel] = None,
|
|
29134
29676
|
architecture: typing.Optional[Architecture] = None,
|
|
29135
29677
|
code_signing_config: typing.Optional[ICodeSigningConfig] = None,
|
|
29136
29678
|
current_version_options: typing.Optional[typing.Union[VersionOptions, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
@@ -29164,6 +29706,7 @@ def _typecheckingstub__68a03ec9f866a29c77aabcf8328c63a49511790fa9714874f255b3292
|
|
|
29164
29706
|
security_groups: typing.Optional[typing.Sequence[_ISecurityGroup_acf8a799]] = None,
|
|
29165
29707
|
snap_start: typing.Optional[SnapStartConf] = None,
|
|
29166
29708
|
system_log_level: typing.Optional[builtins.str] = None,
|
|
29709
|
+
system_log_level_v2: typing.Optional[SystemLogLevel] = None,
|
|
29167
29710
|
timeout: typing.Optional[_Duration_4839e8c3] = None,
|
|
29168
29711
|
tracing: typing.Optional[Tracing] = None,
|
|
29169
29712
|
vpc: typing.Optional[_IVpc_f30d5663] = None,
|
|
@@ -29380,6 +29923,7 @@ def _typecheckingstub__04dd97f4b18c00e7ee0981f2428664401ae0b75dbda6102ea3ef53d08
|
|
|
29380
29923
|
allow_all_outbound: typing.Optional[builtins.bool] = None,
|
|
29381
29924
|
allow_public_subnet: typing.Optional[builtins.bool] = None,
|
|
29382
29925
|
application_log_level: typing.Optional[builtins.str] = None,
|
|
29926
|
+
application_log_level_v2: typing.Optional[ApplicationLogLevel] = None,
|
|
29383
29927
|
architecture: typing.Optional[Architecture] = None,
|
|
29384
29928
|
code_signing_config: typing.Optional[ICodeSigningConfig] = None,
|
|
29385
29929
|
current_version_options: typing.Optional[typing.Union[VersionOptions, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
@@ -29413,6 +29957,7 @@ def _typecheckingstub__04dd97f4b18c00e7ee0981f2428664401ae0b75dbda6102ea3ef53d08
|
|
|
29413
29957
|
security_groups: typing.Optional[typing.Sequence[_ISecurityGroup_acf8a799]] = None,
|
|
29414
29958
|
snap_start: typing.Optional[SnapStartConf] = None,
|
|
29415
29959
|
system_log_level: typing.Optional[builtins.str] = None,
|
|
29960
|
+
system_log_level_v2: typing.Optional[SystemLogLevel] = None,
|
|
29416
29961
|
timeout: typing.Optional[_Duration_4839e8c3] = None,
|
|
29417
29962
|
tracing: typing.Optional[Tracing] = None,
|
|
29418
29963
|
vpc: typing.Optional[_IVpc_f30d5663] = None,
|
|
@@ -29621,6 +30166,7 @@ def _typecheckingstub__e7b766bff13bb7266787cec9bebb600187e19c1672e530bb9cfa31649
|
|
|
29621
30166
|
allow_all_outbound: typing.Optional[builtins.bool] = None,
|
|
29622
30167
|
allow_public_subnet: typing.Optional[builtins.bool] = None,
|
|
29623
30168
|
application_log_level: typing.Optional[builtins.str] = None,
|
|
30169
|
+
application_log_level_v2: typing.Optional[ApplicationLogLevel] = None,
|
|
29624
30170
|
architecture: typing.Optional[Architecture] = None,
|
|
29625
30171
|
code_signing_config: typing.Optional[ICodeSigningConfig] = None,
|
|
29626
30172
|
current_version_options: typing.Optional[typing.Union[VersionOptions, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
@@ -29654,6 +30200,7 @@ def _typecheckingstub__e7b766bff13bb7266787cec9bebb600187e19c1672e530bb9cfa31649
|
|
|
29654
30200
|
security_groups: typing.Optional[typing.Sequence[_ISecurityGroup_acf8a799]] = None,
|
|
29655
30201
|
snap_start: typing.Optional[SnapStartConf] = None,
|
|
29656
30202
|
system_log_level: typing.Optional[builtins.str] = None,
|
|
30203
|
+
system_log_level_v2: typing.Optional[SystemLogLevel] = None,
|
|
29657
30204
|
timeout: typing.Optional[_Duration_4839e8c3] = None,
|
|
29658
30205
|
tracing: typing.Optional[Tracing] = None,
|
|
29659
30206
|
vpc: typing.Optional[_IVpc_f30d5663] = None,
|
|
@@ -29825,6 +30372,7 @@ def _typecheckingstub__724895b6b59aaf2b678ef25f2beca19fb114fc04ff6b37edef28e12b3
|
|
|
29825
30372
|
allow_all_outbound: typing.Optional[builtins.bool] = None,
|
|
29826
30373
|
allow_public_subnet: typing.Optional[builtins.bool] = None,
|
|
29827
30374
|
application_log_level: typing.Optional[builtins.str] = None,
|
|
30375
|
+
application_log_level_v2: typing.Optional[ApplicationLogLevel] = None,
|
|
29828
30376
|
architecture: typing.Optional[Architecture] = None,
|
|
29829
30377
|
code_signing_config: typing.Optional[ICodeSigningConfig] = None,
|
|
29830
30378
|
current_version_options: typing.Optional[typing.Union[VersionOptions, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
@@ -29858,6 +30406,7 @@ def _typecheckingstub__724895b6b59aaf2b678ef25f2beca19fb114fc04ff6b37edef28e12b3
|
|
|
29858
30406
|
security_groups: typing.Optional[typing.Sequence[_ISecurityGroup_acf8a799]] = None,
|
|
29859
30407
|
snap_start: typing.Optional[SnapStartConf] = None,
|
|
29860
30408
|
system_log_level: typing.Optional[builtins.str] = None,
|
|
30409
|
+
system_log_level_v2: typing.Optional[SystemLogLevel] = None,
|
|
29861
30410
|
timeout: typing.Optional[_Duration_4839e8c3] = None,
|
|
29862
30411
|
tracing: typing.Optional[Tracing] = None,
|
|
29863
30412
|
vpc: typing.Optional[_IVpc_f30d5663] = None,
|
|
@@ -29966,6 +30515,7 @@ def _typecheckingstub__368a49fe1f866c7ea7986c57b6f8488d0fddea8f62bf05ec1ed7eb09b
|
|
|
29966
30515
|
allow_all_outbound: typing.Optional[builtins.bool] = None,
|
|
29967
30516
|
allow_public_subnet: typing.Optional[builtins.bool] = None,
|
|
29968
30517
|
application_log_level: typing.Optional[builtins.str] = None,
|
|
30518
|
+
application_log_level_v2: typing.Optional[ApplicationLogLevel] = None,
|
|
29969
30519
|
architecture: typing.Optional[Architecture] = None,
|
|
29970
30520
|
code_signing_config: typing.Optional[ICodeSigningConfig] = None,
|
|
29971
30521
|
current_version_options: typing.Optional[typing.Union[VersionOptions, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
@@ -29999,6 +30549,7 @@ def _typecheckingstub__368a49fe1f866c7ea7986c57b6f8488d0fddea8f62bf05ec1ed7eb09b
|
|
|
29999
30549
|
security_groups: typing.Optional[typing.Sequence[_ISecurityGroup_acf8a799]] = None,
|
|
30000
30550
|
snap_start: typing.Optional[SnapStartConf] = None,
|
|
30001
30551
|
system_log_level: typing.Optional[builtins.str] = None,
|
|
30552
|
+
system_log_level_v2: typing.Optional[SystemLogLevel] = None,
|
|
30002
30553
|
timeout: typing.Optional[_Duration_4839e8c3] = None,
|
|
30003
30554
|
tracing: typing.Optional[Tracing] = None,
|
|
30004
30555
|
vpc: typing.Optional[_IVpc_f30d5663] = None,
|