aws-cdk-lib 2.125.0__py3-none-any.whl → 2.127.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of aws-cdk-lib might be problematic. Click here for more details.
- aws_cdk/__init__.py +0 -2
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.125.0.jsii.tgz → aws-cdk-lib@2.127.0.jsii.tgz} +0 -0
- aws_cdk/aws_acmpca/__init__.py +18 -6
- aws_cdk/aws_amazonmq/__init__.py +3 -2
- aws_cdk/aws_amplifyuibuilder/__init__.py +1212 -666
- aws_cdk/aws_apigateway/__init__.py +7 -3
- aws_cdk/aws_appconfig/__init__.py +108 -19
- aws_cdk/aws_appsync/__init__.py +43 -0
- aws_cdk/aws_autoscaling/__init__.py +37 -14
- aws_cdk/aws_cassandra/__init__.py +810 -4
- aws_cdk/aws_cloudfront/__init__.py +35 -37
- aws_cdk/aws_cloudfront/experimental/__init__.py +21 -0
- aws_cdk/aws_codebuild/__init__.py +43 -3
- aws_cdk/aws_codecommit/__init__.py +1 -0
- aws_cdk/aws_codepipeline/__init__.py +7 -3
- aws_cdk/aws_codepipeline_actions/__init__.py +11 -1
- aws_cdk/aws_codestarnotifications/__init__.py +24 -15
- aws_cdk/aws_cognito/__init__.py +180 -116
- aws_cdk/aws_datasync/__init__.py +8 -4
- aws_cdk/aws_dynamodb/__init__.py +80 -11
- aws_cdk/aws_ec2/__init__.py +207 -45
- aws_cdk/aws_ecs/__init__.py +171 -78
- aws_cdk/aws_ecs_patterns/__init__.py +24 -0
- aws_cdk/aws_efs/__init__.py +64 -8
- aws_cdk/aws_eks/__init__.py +52 -41
- aws_cdk/aws_elasticloadbalancingv2/__init__.py +12 -9
- aws_cdk/aws_fis/__init__.py +32 -12
- aws_cdk/aws_fsx/__init__.py +61 -43
- aws_cdk/aws_glue/__init__.py +449 -0
- aws_cdk/aws_guardduty/__init__.py +0 -8
- aws_cdk/aws_iam/__init__.py +3 -3
- aws_cdk/aws_inspectorv2/__init__.py +989 -0
- aws_cdk/aws_internetmonitor/__init__.py +10 -12
- aws_cdk/aws_iot/__init__.py +112 -0
- aws_cdk/aws_iotwireless/__init__.py +32 -19
- aws_cdk/aws_lambda/__init__.py +129 -32
- aws_cdk/aws_lambda_event_sources/__init__.py +95 -4
- aws_cdk/aws_lambda_nodejs/__init__.py +21 -0
- aws_cdk/aws_location/__init__.py +8 -2
- aws_cdk/aws_logs/__init__.py +7 -3
- aws_cdk/aws_networkmanager/__init__.py +1 -1
- aws_cdk/aws_opensearchserverless/__init__.py +4 -4
- aws_cdk/aws_osis/__init__.py +13 -13
- aws_cdk/aws_personalize/__init__.py +1 -1
- aws_cdk/aws_pinpoint/__init__.py +5 -5
- aws_cdk/aws_pipes/__init__.py +7 -10
- aws_cdk/aws_rds/__init__.py +449 -8
- aws_cdk/aws_redshiftserverless/__init__.py +282 -0
- aws_cdk/aws_rolesanywhere/__init__.py +53 -41
- aws_cdk/aws_route53/__init__.py +282 -0
- aws_cdk/aws_s3/__init__.py +11 -6
- aws_cdk/aws_sagemaker/__init__.py +1398 -39
- aws_cdk/aws_sns/__init__.py +56 -13
- aws_cdk/aws_sqs/__init__.py +13 -10
- aws_cdk/aws_stepfunctions/__init__.py +3612 -1395
- aws_cdk/aws_stepfunctions_tasks/__init__.py +267 -181
- aws_cdk/aws_transfer/__init__.py +1 -1
- aws_cdk/aws_verifiedpermissions/__init__.py +55 -55
- aws_cdk/aws_workspacesweb/__init__.py +6 -3
- aws_cdk/cx_api/__init__.py +17 -0
- aws_cdk/triggers/__init__.py +21 -0
- {aws_cdk_lib-2.125.0.dist-info → aws_cdk_lib-2.127.0.dist-info}/METADATA +1 -1
- {aws_cdk_lib-2.125.0.dist-info → aws_cdk_lib-2.127.0.dist-info}/RECORD +68 -69
- aws_cdk/aws_ssmguiconnect/__init__.py +0 -540
- {aws_cdk_lib-2.125.0.dist-info → aws_cdk_lib-2.127.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.125.0.dist-info → aws_cdk_lib-2.127.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.125.0.dist-info → aws_cdk_lib-2.127.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.125.0.dist-info → aws_cdk_lib-2.127.0.dist-info}/top_level.txt +0 -0
aws_cdk/aws_lambda/__init__.py
CHANGED
|
@@ -174,14 +174,14 @@ lambda_.Function(self, "Lambda",
|
|
|
174
174
|
code=lambda_.InlineCode("foo"),
|
|
175
175
|
handler="index.handler",
|
|
176
176
|
runtime=lambda_.Runtime.NODEJS_18_X,
|
|
177
|
-
|
|
177
|
+
logging_format=lambda_.LoggingFormat.JSON,
|
|
178
178
|
system_log_level=lambda_.SystemLogLevel.INFO,
|
|
179
179
|
application_log_level=lambda_.ApplicationLogLevel.INFO,
|
|
180
180
|
log_group=log_group
|
|
181
181
|
)
|
|
182
182
|
```
|
|
183
183
|
|
|
184
|
-
To use `applicationLogLevel` and/or `systemLogLevel` you must set `
|
|
184
|
+
To use `applicationLogLevel` and/or `systemLogLevel` you must set `loggingFormat` to `LoggingFormat.JSON`.
|
|
185
185
|
|
|
186
186
|
## Resource-based Policies
|
|
187
187
|
|
|
@@ -2145,7 +2145,7 @@ class ApplicationLogLevel(enum.Enum):
|
|
|
2145
2145
|
code=lambda_.InlineCode("foo"),
|
|
2146
2146
|
handler="index.handler",
|
|
2147
2147
|
runtime=lambda_.Runtime.NODEJS_18_X,
|
|
2148
|
-
|
|
2148
|
+
logging_format=lambda_.LoggingFormat.JSON,
|
|
2149
2149
|
system_log_level=lambda_.SystemLogLevel.INFO,
|
|
2150
2150
|
application_log_level=lambda_.ApplicationLogLevel.INFO,
|
|
2151
2151
|
log_group=log_group
|
|
@@ -3967,7 +3967,7 @@ class CfnEventInvokeConfig(
|
|
|
3967
3967
|
def __init__(self, *, destination: builtins.str) -> None:
|
|
3968
3968
|
'''A destination for events that failed processing.
|
|
3969
3969
|
|
|
3970
|
-
:param destination: The Amazon Resource Name (ARN) of the destination resource. To retain records of `asynchronous invocations <https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#invocation-async-destinations>`_ , you can configure an Amazon SNS topic, Amazon SQS queue, Lambda function, or Amazon EventBridge event bus as the destination. To retain records of failed invocations from `Kinesis and DynamoDB event sources <https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventsourcemapping.html#event-source-mapping-destinations>`_ , you can configure an Amazon SNS topic or Amazon SQS queue as the destination. To retain records of failed invocations from `self-managed Kafka <https://docs.aws.amazon.com/lambda/latest/dg/with-kafka.html#services-smaa-onfailure-destination>`_ or `Amazon MSK <https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html#services-msk-onfailure-destination>`_ , you can configure an Amazon SNS topic
|
|
3970
|
+
:param destination: The Amazon Resource Name (ARN) of the destination resource. To retain records of `asynchronous invocations <https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#invocation-async-destinations>`_ , you can configure an Amazon SNS topic, Amazon SQS queue, Lambda function, or Amazon EventBridge event bus as the destination. To retain records of failed invocations from `Kinesis and DynamoDB event sources <https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventsourcemapping.html#event-source-mapping-destinations>`_ , you can configure an Amazon SNS topic or Amazon SQS queue as the destination. To retain records of failed invocations from `self-managed Kafka <https://docs.aws.amazon.com/lambda/latest/dg/with-kafka.html#services-smaa-onfailure-destination>`_ or `Amazon MSK <https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html#services-msk-onfailure-destination>`_ , you can configure an Amazon SNS topic, Amazon SQS queue, or Amazon S3 bucket as the destination.
|
|
3971
3971
|
|
|
3972
3972
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventinvokeconfig-onfailure.html
|
|
3973
3973
|
:exampleMetadata: fixture=_generated
|
|
@@ -3997,7 +3997,7 @@ class CfnEventInvokeConfig(
|
|
|
3997
3997
|
|
|
3998
3998
|
To retain records of failed invocations from `Kinesis and DynamoDB event sources <https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventsourcemapping.html#event-source-mapping-destinations>`_ , you can configure an Amazon SNS topic or Amazon SQS queue as the destination.
|
|
3999
3999
|
|
|
4000
|
-
To retain records of failed invocations from `self-managed Kafka <https://docs.aws.amazon.com/lambda/latest/dg/with-kafka.html#services-smaa-onfailure-destination>`_ or `Amazon MSK <https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html#services-msk-onfailure-destination>`_ , you can configure an Amazon SNS topic
|
|
4000
|
+
To retain records of failed invocations from `self-managed Kafka <https://docs.aws.amazon.com/lambda/latest/dg/with-kafka.html#services-smaa-onfailure-destination>`_ or `Amazon MSK <https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html#services-msk-onfailure-destination>`_ , you can configure an Amazon SNS topic, Amazon SQS queue, or Amazon S3 bucket as the destination.
|
|
4001
4001
|
|
|
4002
4002
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventinvokeconfig-onfailure.html#cfn-lambda-eventinvokeconfig-onfailure-destination
|
|
4003
4003
|
'''
|
|
@@ -4339,7 +4339,7 @@ class CfnEventSourceMapping(
|
|
|
4339
4339
|
:param amazon_managed_kafka_event_source_config: Specific configuration settings for an Amazon Managed Streaming for Apache Kafka (Amazon MSK) event source.
|
|
4340
4340
|
:param batch_size: The maximum number of records in each batch that Lambda pulls from your stream or queue and sends to your function. Lambda passes all of the records in the batch to the function in a single call, up to the payload limit for synchronous invocation (6 MB). - *Amazon Kinesis* – Default 100. Max 10,000. - *Amazon DynamoDB Streams* – Default 100. Max 10,000. - *Amazon Simple Queue Service* – Default 10. For standard queues the max is 10,000. For FIFO queues the max is 10. - *Amazon Managed Streaming for Apache Kafka* – Default 100. Max 10,000. - *Self-managed Apache Kafka* – Default 100. Max 10,000. - *Amazon MQ (ActiveMQ and RabbitMQ)* – Default 100. Max 10,000. - *DocumentDB* – Default 100. Max 10,000.
|
|
4341
4341
|
:param bisect_batch_on_function_error: (Kinesis and DynamoDB Streams only) If the function returns an error, split the batch in two and retry. The default value is false.
|
|
4342
|
-
:param destination_config: (Kinesis
|
|
4342
|
+
:param destination_config: (Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka event sources only) A configuration object that specifies the destination of an event after Lambda processes it.
|
|
4343
4343
|
:param document_db_event_source_config: Specific configuration settings for a DocumentDB event source.
|
|
4344
4344
|
:param enabled: When true, the event source mapping is active. When false, Lambda pauses polling and invocation. Default: True
|
|
4345
4345
|
:param event_source_arn: The Amazon Resource Name (ARN) of the event source. - *Amazon Kinesis* – The ARN of the data stream or a stream consumer. - *Amazon DynamoDB Streams* – The ARN of the stream. - *Amazon Simple Queue Service* – The ARN of the queue. - *Amazon Managed Streaming for Apache Kafka* – The ARN of the cluster or the ARN of the VPC connection (for `cross-account event source mappings <https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html#msk-multi-vpc>`_ ). - *Amazon MQ* – The ARN of the broker. - *Amazon DocumentDB* – The ARN of the DocumentDB change stream.
|
|
@@ -4502,7 +4502,7 @@ class CfnEventSourceMapping(
|
|
|
4502
4502
|
def destination_config(
|
|
4503
4503
|
self,
|
|
4504
4504
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnEventSourceMapping.DestinationConfigProperty"]]:
|
|
4505
|
-
'''(Kinesis
|
|
4505
|
+
'''(Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka event sources only) A configuration object that specifies the destination of an event after Lambda processes it.'''
|
|
4506
4506
|
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnEventSourceMapping.DestinationConfigProperty"]], jsii.get(self, "destinationConfig"))
|
|
4507
4507
|
|
|
4508
4508
|
@destination_config.setter
|
|
@@ -5188,7 +5188,7 @@ class CfnEventSourceMapping(
|
|
|
5188
5188
|
) -> None:
|
|
5189
5189
|
'''A destination for events that failed processing.
|
|
5190
5190
|
|
|
5191
|
-
:param destination: The Amazon Resource Name (ARN) of the destination resource. To retain records of `asynchronous invocations <https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#invocation-async-destinations>`_ , you can configure an Amazon SNS topic, Amazon SQS queue, Lambda function, or Amazon EventBridge event bus as the destination. To retain records of failed invocations from `Kinesis and DynamoDB event sources <https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventsourcemapping.html#event-source-mapping-destinations>`_ , you can configure an Amazon SNS topic or Amazon SQS queue as the destination. To retain records of failed invocations from `self-managed Kafka <https://docs.aws.amazon.com/lambda/latest/dg/with-kafka.html#services-smaa-onfailure-destination>`_ or `Amazon MSK <https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html#services-msk-onfailure-destination>`_ , you can configure an Amazon SNS topic
|
|
5191
|
+
:param destination: The Amazon Resource Name (ARN) of the destination resource. To retain records of `asynchronous invocations <https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#invocation-async-destinations>`_ , you can configure an Amazon SNS topic, Amazon SQS queue, Lambda function, or Amazon EventBridge event bus as the destination. To retain records of failed invocations from `Kinesis and DynamoDB event sources <https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventsourcemapping.html#event-source-mapping-destinations>`_ , you can configure an Amazon SNS topic or Amazon SQS queue as the destination. To retain records of failed invocations from `self-managed Kafka <https://docs.aws.amazon.com/lambda/latest/dg/with-kafka.html#services-smaa-onfailure-destination>`_ or `Amazon MSK <https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html#services-msk-onfailure-destination>`_ , you can configure an Amazon SNS topic, Amazon SQS queue, or Amazon S3 bucket as the destination.
|
|
5192
5192
|
|
|
5193
5193
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-onfailure.html
|
|
5194
5194
|
:exampleMetadata: fixture=_generated
|
|
@@ -5218,7 +5218,7 @@ class CfnEventSourceMapping(
|
|
|
5218
5218
|
|
|
5219
5219
|
To retain records of failed invocations from `Kinesis and DynamoDB event sources <https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventsourcemapping.html#event-source-mapping-destinations>`_ , you can configure an Amazon SNS topic or Amazon SQS queue as the destination.
|
|
5220
5220
|
|
|
5221
|
-
To retain records of failed invocations from `self-managed Kafka <https://docs.aws.amazon.com/lambda/latest/dg/with-kafka.html#services-smaa-onfailure-destination>`_ or `Amazon MSK <https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html#services-msk-onfailure-destination>`_ , you can configure an Amazon SNS topic
|
|
5221
|
+
To retain records of failed invocations from `self-managed Kafka <https://docs.aws.amazon.com/lambda/latest/dg/with-kafka.html#services-smaa-onfailure-destination>`_ or `Amazon MSK <https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html#services-msk-onfailure-destination>`_ , you can configure an Amazon SNS topic, Amazon SQS queue, or Amazon S3 bucket as the destination.
|
|
5222
5222
|
|
|
5223
5223
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-onfailure.html#cfn-lambda-eventsourcemapping-onfailure-destination
|
|
5224
5224
|
'''
|
|
@@ -5555,7 +5555,7 @@ class CfnEventSourceMappingProps:
|
|
|
5555
5555
|
:param amazon_managed_kafka_event_source_config: Specific configuration settings for an Amazon Managed Streaming for Apache Kafka (Amazon MSK) event source.
|
|
5556
5556
|
:param batch_size: The maximum number of records in each batch that Lambda pulls from your stream or queue and sends to your function. Lambda passes all of the records in the batch to the function in a single call, up to the payload limit for synchronous invocation (6 MB). - *Amazon Kinesis* – Default 100. Max 10,000. - *Amazon DynamoDB Streams* – Default 100. Max 10,000. - *Amazon Simple Queue Service* – Default 10. For standard queues the max is 10,000. For FIFO queues the max is 10. - *Amazon Managed Streaming for Apache Kafka* – Default 100. Max 10,000. - *Self-managed Apache Kafka* – Default 100. Max 10,000. - *Amazon MQ (ActiveMQ and RabbitMQ)* – Default 100. Max 10,000. - *DocumentDB* – Default 100. Max 10,000.
|
|
5557
5557
|
:param bisect_batch_on_function_error: (Kinesis and DynamoDB Streams only) If the function returns an error, split the batch in two and retry. The default value is false.
|
|
5558
|
-
:param destination_config: (Kinesis
|
|
5558
|
+
:param destination_config: (Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka event sources only) A configuration object that specifies the destination of an event after Lambda processes it.
|
|
5559
5559
|
:param document_db_event_source_config: Specific configuration settings for a DocumentDB event source.
|
|
5560
5560
|
:param enabled: When true, the event source mapping is active. When false, Lambda pauses polling and invocation. Default: True
|
|
5561
5561
|
:param event_source_arn: The Amazon Resource Name (ARN) of the event source. - *Amazon Kinesis* – The ARN of the data stream or a stream consumer. - *Amazon DynamoDB Streams* – The ARN of the stream. - *Amazon Simple Queue Service* – The ARN of the queue. - *Amazon Managed Streaming for Apache Kafka* – The ARN of the cluster or the ARN of the VPC connection (for `cross-account event source mappings <https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html#msk-multi-vpc>`_ ). - *Amazon MQ* – The ARN of the broker. - *Amazon DocumentDB* – The ARN of the DocumentDB change stream.
|
|
@@ -5775,7 +5775,7 @@ class CfnEventSourceMappingProps:
|
|
|
5775
5775
|
def destination_config(
|
|
5776
5776
|
self,
|
|
5777
5777
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, CfnEventSourceMapping.DestinationConfigProperty]]:
|
|
5778
|
-
'''(Kinesis
|
|
5778
|
+
'''(Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka event sources only) A configuration object that specifies the destination of an event after Lambda processes it.
|
|
5779
5779
|
|
|
5780
5780
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-destinationconfig
|
|
5781
5781
|
'''
|
|
@@ -13600,6 +13600,7 @@ class FunctionAttributes:
|
|
|
13600
13600
|
"insights_version": "insightsVersion",
|
|
13601
13601
|
"layers": "layers",
|
|
13602
13602
|
"log_format": "logFormat",
|
|
13603
|
+
"logging_format": "loggingFormat",
|
|
13603
13604
|
"log_group": "logGroup",
|
|
13604
13605
|
"log_retention": "logRetention",
|
|
13605
13606
|
"log_retention_retry_options": "logRetentionRetryOptions",
|
|
@@ -13649,6 +13650,7 @@ class FunctionOptions(EventInvokeConfigOptions):
|
|
|
13649
13650
|
insights_version: typing.Optional["LambdaInsightsVersion"] = None,
|
|
13650
13651
|
layers: typing.Optional[typing.Sequence["ILayerVersion"]] = None,
|
|
13651
13652
|
log_format: typing.Optional[builtins.str] = None,
|
|
13653
|
+
logging_format: typing.Optional["LoggingFormat"] = None,
|
|
13652
13654
|
log_group: typing.Optional[_ILogGroup_3c4fa718] = None,
|
|
13653
13655
|
log_retention: typing.Optional[_RetentionDays_070f99f0] = None,
|
|
13654
13656
|
log_retention_retry_options: typing.Optional[typing.Union["LogRetentionRetryOptions", typing.Dict[builtins.str, typing.Any]]] = None,
|
|
@@ -13695,6 +13697,7 @@ class FunctionOptions(EventInvokeConfigOptions):
|
|
|
13695
13697
|
:param insights_version: Specify the version of CloudWatch Lambda insights to use for monitoring. Default: - No Lambda Insights
|
|
13696
13698
|
: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.
|
|
13697
13699
|
:param log_format: Sets the logFormat for the function. Default: "Text"
|
|
13700
|
+
:param logging_format: Sets the loggingFormat for the function. Default: LoggingFormat.TEXT
|
|
13698
13701
|
: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
|
|
13699
13702
|
: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
|
|
13700
13703
|
:param log_retention_retry_options: When log retention is specified, a custom resource attempts to create the CloudWatch log group. These options control the retry policy when interacting with CloudWatch APIs. This is a legacy API and we strongly recommend you migrate to ``logGroup`` if you can. ``logGroup`` allows you to create a fully customizable log group and instruct the Lambda function to send logs to it. Default: - Default AWS SDK retry options.
|
|
@@ -13790,6 +13793,7 @@ class FunctionOptions(EventInvokeConfigOptions):
|
|
|
13790
13793
|
insights_version=lambda_insights_version,
|
|
13791
13794
|
layers=[layer_version],
|
|
13792
13795
|
log_format="logFormat",
|
|
13796
|
+
logging_format=lambda_.LoggingFormat.TEXT,
|
|
13793
13797
|
log_group=log_group,
|
|
13794
13798
|
log_retention=logs.RetentionDays.ONE_DAY,
|
|
13795
13799
|
log_retention_retry_options=lambda.LogRetentionRetryOptions(
|
|
@@ -13859,6 +13863,7 @@ class FunctionOptions(EventInvokeConfigOptions):
|
|
|
13859
13863
|
check_type(argname="argument insights_version", value=insights_version, expected_type=type_hints["insights_version"])
|
|
13860
13864
|
check_type(argname="argument layers", value=layers, expected_type=type_hints["layers"])
|
|
13861
13865
|
check_type(argname="argument log_format", value=log_format, expected_type=type_hints["log_format"])
|
|
13866
|
+
check_type(argname="argument logging_format", value=logging_format, expected_type=type_hints["logging_format"])
|
|
13862
13867
|
check_type(argname="argument log_group", value=log_group, expected_type=type_hints["log_group"])
|
|
13863
13868
|
check_type(argname="argument log_retention", value=log_retention, expected_type=type_hints["log_retention"])
|
|
13864
13869
|
check_type(argname="argument log_retention_retry_options", value=log_retention_retry_options, expected_type=type_hints["log_retention_retry_options"])
|
|
@@ -13928,6 +13933,8 @@ class FunctionOptions(EventInvokeConfigOptions):
|
|
|
13928
13933
|
self._values["layers"] = layers
|
|
13929
13934
|
if log_format is not None:
|
|
13930
13935
|
self._values["log_format"] = log_format
|
|
13936
|
+
if logging_format is not None:
|
|
13937
|
+
self._values["logging_format"] = logging_format
|
|
13931
13938
|
if log_group is not None:
|
|
13932
13939
|
self._values["log_group"] = log_group
|
|
13933
13940
|
if log_retention is not None:
|
|
@@ -14235,6 +14242,15 @@ class FunctionOptions(EventInvokeConfigOptions):
|
|
|
14235
14242
|
result = self._values.get("log_format")
|
|
14236
14243
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
14237
14244
|
|
|
14245
|
+
@builtins.property
|
|
14246
|
+
def logging_format(self) -> typing.Optional["LoggingFormat"]:
|
|
14247
|
+
'''Sets the loggingFormat for the function.
|
|
14248
|
+
|
|
14249
|
+
:default: LoggingFormat.TEXT
|
|
14250
|
+
'''
|
|
14251
|
+
result = self._values.get("logging_format")
|
|
14252
|
+
return typing.cast(typing.Optional["LoggingFormat"], result)
|
|
14253
|
+
|
|
14238
14254
|
@builtins.property
|
|
14239
14255
|
def log_group(self) -> typing.Optional[_ILogGroup_3c4fa718]:
|
|
14240
14256
|
'''The log group the function sends logs to.
|
|
@@ -14519,6 +14535,7 @@ class FunctionOptions(EventInvokeConfigOptions):
|
|
|
14519
14535
|
"insights_version": "insightsVersion",
|
|
14520
14536
|
"layers": "layers",
|
|
14521
14537
|
"log_format": "logFormat",
|
|
14538
|
+
"logging_format": "loggingFormat",
|
|
14522
14539
|
"log_group": "logGroup",
|
|
14523
14540
|
"log_retention": "logRetention",
|
|
14524
14541
|
"log_retention_retry_options": "logRetentionRetryOptions",
|
|
@@ -14571,6 +14588,7 @@ class FunctionProps(FunctionOptions):
|
|
|
14571
14588
|
insights_version: typing.Optional["LambdaInsightsVersion"] = None,
|
|
14572
14589
|
layers: typing.Optional[typing.Sequence["ILayerVersion"]] = None,
|
|
14573
14590
|
log_format: typing.Optional[builtins.str] = None,
|
|
14591
|
+
logging_format: typing.Optional["LoggingFormat"] = None,
|
|
14574
14592
|
log_group: typing.Optional[_ILogGroup_3c4fa718] = None,
|
|
14575
14593
|
log_retention: typing.Optional[_RetentionDays_070f99f0] = None,
|
|
14576
14594
|
log_retention_retry_options: typing.Optional[typing.Union["LogRetentionRetryOptions", typing.Dict[builtins.str, typing.Any]]] = None,
|
|
@@ -14619,6 +14637,7 @@ class FunctionProps(FunctionOptions):
|
|
|
14619
14637
|
:param insights_version: Specify the version of CloudWatch Lambda insights to use for monitoring. Default: - No Lambda Insights
|
|
14620
14638
|
: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.
|
|
14621
14639
|
:param log_format: Sets the logFormat for the function. Default: "Text"
|
|
14640
|
+
:param logging_format: Sets the loggingFormat for the function. Default: LoggingFormat.TEXT
|
|
14622
14641
|
: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
|
|
14623
14642
|
: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
|
|
14624
14643
|
:param log_retention_retry_options: When log retention is specified, a custom resource attempts to create the CloudWatch log group. These options control the retry policy when interacting with CloudWatch APIs. This is a legacy API and we strongly recommend you migrate to ``logGroup`` if you can. ``logGroup`` allows you to create a fully customizable log group and instruct the Lambda function to send logs to it. Default: - Default AWS SDK retry options.
|
|
@@ -14703,6 +14722,7 @@ class FunctionProps(FunctionOptions):
|
|
|
14703
14722
|
check_type(argname="argument insights_version", value=insights_version, expected_type=type_hints["insights_version"])
|
|
14704
14723
|
check_type(argname="argument layers", value=layers, expected_type=type_hints["layers"])
|
|
14705
14724
|
check_type(argname="argument log_format", value=log_format, expected_type=type_hints["log_format"])
|
|
14725
|
+
check_type(argname="argument logging_format", value=logging_format, expected_type=type_hints["logging_format"])
|
|
14706
14726
|
check_type(argname="argument log_group", value=log_group, expected_type=type_hints["log_group"])
|
|
14707
14727
|
check_type(argname="argument log_retention", value=log_retention, expected_type=type_hints["log_retention"])
|
|
14708
14728
|
check_type(argname="argument log_retention_retry_options", value=log_retention_retry_options, expected_type=type_hints["log_retention_retry_options"])
|
|
@@ -14779,6 +14799,8 @@ class FunctionProps(FunctionOptions):
|
|
|
14779
14799
|
self._values["layers"] = layers
|
|
14780
14800
|
if log_format is not None:
|
|
14781
14801
|
self._values["log_format"] = log_format
|
|
14802
|
+
if logging_format is not None:
|
|
14803
|
+
self._values["logging_format"] = logging_format
|
|
14782
14804
|
if log_group is not None:
|
|
14783
14805
|
self._values["log_group"] = log_group
|
|
14784
14806
|
if log_retention is not None:
|
|
@@ -15086,6 +15108,15 @@ class FunctionProps(FunctionOptions):
|
|
|
15086
15108
|
result = self._values.get("log_format")
|
|
15087
15109
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
15088
15110
|
|
|
15111
|
+
@builtins.property
|
|
15112
|
+
def logging_format(self) -> typing.Optional["LoggingFormat"]:
|
|
15113
|
+
'''Sets the loggingFormat for the function.
|
|
15114
|
+
|
|
15115
|
+
:default: LoggingFormat.TEXT
|
|
15116
|
+
'''
|
|
15117
|
+
result = self._values.get("logging_format")
|
|
15118
|
+
return typing.cast(typing.Optional["LoggingFormat"], result)
|
|
15119
|
+
|
|
15089
15120
|
@builtins.property
|
|
15090
15121
|
def log_group(self) -> typing.Optional[_ILogGroup_3c4fa718]:
|
|
15091
15122
|
'''The log group the function sends logs to.
|
|
@@ -18284,25 +18315,6 @@ class LogFormat(enum.Enum):
|
|
|
18284
18315
|
Lambda will print the logs as Structured JSON Logs, with the corresponding timestamp and log level
|
|
18285
18316
|
of each event. Selecting ‘JSON’ format will only allow customer’s to have different log level
|
|
18286
18317
|
Application log level and the System log level.
|
|
18287
|
-
|
|
18288
|
-
:exampleMetadata: infused
|
|
18289
|
-
|
|
18290
|
-
Example::
|
|
18291
|
-
|
|
18292
|
-
from aws_cdk.aws_logs import ILogGroup
|
|
18293
|
-
|
|
18294
|
-
# log_group: ILogGroup
|
|
18295
|
-
|
|
18296
|
-
|
|
18297
|
-
lambda_.Function(self, "Lambda",
|
|
18298
|
-
code=lambda_.InlineCode("foo"),
|
|
18299
|
-
handler="index.handler",
|
|
18300
|
-
runtime=lambda_.Runtime.NODEJS_18_X,
|
|
18301
|
-
log_format=lambda_.LogFormat.JSON,
|
|
18302
|
-
system_log_level=lambda_.SystemLogLevel.INFO,
|
|
18303
|
-
application_log_level=lambda_.ApplicationLogLevel.INFO,
|
|
18304
|
-
log_group=log_group
|
|
18305
|
-
)
|
|
18306
18318
|
'''
|
|
18307
18319
|
|
|
18308
18320
|
TEXT = "TEXT"
|
|
@@ -18386,6 +18398,42 @@ class LogRetentionRetryOptions(_LogRetentionRetryOptions_62d80a14):
|
|
|
18386
18398
|
)
|
|
18387
18399
|
|
|
18388
18400
|
|
|
18401
|
+
@jsii.enum(jsii_type="aws-cdk-lib.aws_lambda.LoggingFormat")
|
|
18402
|
+
class LoggingFormat(enum.Enum):
|
|
18403
|
+
'''This field takes in 2 values either Text or JSON.
|
|
18404
|
+
|
|
18405
|
+
By setting this value to Text,
|
|
18406
|
+
will result in the current structure of logs format, whereas, by setting this value to JSON,
|
|
18407
|
+
Lambda will print the logs as Structured JSON Logs, with the corresponding timestamp and log level
|
|
18408
|
+
of each event. Selecting ‘JSON’ format will only allow customer’s to have different log level
|
|
18409
|
+
Application log level and the System log level.
|
|
18410
|
+
|
|
18411
|
+
:exampleMetadata: infused
|
|
18412
|
+
|
|
18413
|
+
Example::
|
|
18414
|
+
|
|
18415
|
+
from aws_cdk.aws_logs import ILogGroup
|
|
18416
|
+
|
|
18417
|
+
# log_group: ILogGroup
|
|
18418
|
+
|
|
18419
|
+
|
|
18420
|
+
lambda_.Function(self, "Lambda",
|
|
18421
|
+
code=lambda_.InlineCode("foo"),
|
|
18422
|
+
handler="index.handler",
|
|
18423
|
+
runtime=lambda_.Runtime.NODEJS_18_X,
|
|
18424
|
+
logging_format=lambda_.LoggingFormat.JSON,
|
|
18425
|
+
system_log_level=lambda_.SystemLogLevel.INFO,
|
|
18426
|
+
application_log_level=lambda_.ApplicationLogLevel.INFO,
|
|
18427
|
+
log_group=log_group
|
|
18428
|
+
)
|
|
18429
|
+
'''
|
|
18430
|
+
|
|
18431
|
+
TEXT = "TEXT"
|
|
18432
|
+
'''Lambda Logs text format.'''
|
|
18433
|
+
JSON = "JSON"
|
|
18434
|
+
'''Lambda structured logging in Json format.'''
|
|
18435
|
+
|
|
18436
|
+
|
|
18389
18437
|
class ParamsAndSecretsLayerVersion(
|
|
18390
18438
|
metaclass=jsii.JSIIAbstractClass,
|
|
18391
18439
|
jsii_type="aws-cdk-lib.aws_lambda.ParamsAndSecretsLayerVersion",
|
|
@@ -19713,6 +19761,7 @@ class S3Code(Code, metaclass=jsii.JSIIMeta, jsii_type="aws-cdk-lib.aws_lambda.S3
|
|
|
19713
19761
|
"insights_version": "insightsVersion",
|
|
19714
19762
|
"layers": "layers",
|
|
19715
19763
|
"log_format": "logFormat",
|
|
19764
|
+
"logging_format": "loggingFormat",
|
|
19716
19765
|
"log_group": "logGroup",
|
|
19717
19766
|
"log_retention": "logRetention",
|
|
19718
19767
|
"log_retention_retry_options": "logRetentionRetryOptions",
|
|
@@ -19767,6 +19816,7 @@ class SingletonFunctionProps(FunctionProps):
|
|
|
19767
19816
|
insights_version: typing.Optional[LambdaInsightsVersion] = None,
|
|
19768
19817
|
layers: typing.Optional[typing.Sequence[ILayerVersion]] = None,
|
|
19769
19818
|
log_format: typing.Optional[builtins.str] = None,
|
|
19819
|
+
logging_format: typing.Optional[LoggingFormat] = None,
|
|
19770
19820
|
log_group: typing.Optional[_ILogGroup_3c4fa718] = None,
|
|
19771
19821
|
log_retention: typing.Optional[_RetentionDays_070f99f0] = None,
|
|
19772
19822
|
log_retention_retry_options: typing.Optional[typing.Union[LogRetentionRetryOptions, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
@@ -19818,6 +19868,7 @@ class SingletonFunctionProps(FunctionProps):
|
|
|
19818
19868
|
:param insights_version: Specify the version of CloudWatch Lambda insights to use for monitoring. Default: - No Lambda Insights
|
|
19819
19869
|
: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.
|
|
19820
19870
|
:param log_format: Sets the logFormat for the function. Default: "Text"
|
|
19871
|
+
:param logging_format: Sets the loggingFormat for the function. Default: LoggingFormat.TEXT
|
|
19821
19872
|
: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
|
|
19822
19873
|
: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
|
|
19823
19874
|
:param log_retention_retry_options: When log retention is specified, a custom resource attempts to create the CloudWatch log group. These options control the retry policy when interacting with CloudWatch APIs. This is a legacy API and we strongly recommend you migrate to ``logGroup`` if you can. ``logGroup`` allows you to create a fully customizable log group and instruct the Lambda function to send logs to it. Default: - Default AWS SDK retry options.
|
|
@@ -19887,6 +19938,7 @@ class SingletonFunctionProps(FunctionProps):
|
|
|
19887
19938
|
check_type(argname="argument insights_version", value=insights_version, expected_type=type_hints["insights_version"])
|
|
19888
19939
|
check_type(argname="argument layers", value=layers, expected_type=type_hints["layers"])
|
|
19889
19940
|
check_type(argname="argument log_format", value=log_format, expected_type=type_hints["log_format"])
|
|
19941
|
+
check_type(argname="argument logging_format", value=logging_format, expected_type=type_hints["logging_format"])
|
|
19890
19942
|
check_type(argname="argument log_group", value=log_group, expected_type=type_hints["log_group"])
|
|
19891
19943
|
check_type(argname="argument log_retention", value=log_retention, expected_type=type_hints["log_retention"])
|
|
19892
19944
|
check_type(argname="argument log_retention_retry_options", value=log_retention_retry_options, expected_type=type_hints["log_retention_retry_options"])
|
|
@@ -19966,6 +20018,8 @@ class SingletonFunctionProps(FunctionProps):
|
|
|
19966
20018
|
self._values["layers"] = layers
|
|
19967
20019
|
if log_format is not None:
|
|
19968
20020
|
self._values["log_format"] = log_format
|
|
20021
|
+
if logging_format is not None:
|
|
20022
|
+
self._values["logging_format"] = logging_format
|
|
19969
20023
|
if log_group is not None:
|
|
19970
20024
|
self._values["log_group"] = log_group
|
|
19971
20025
|
if log_retention is not None:
|
|
@@ -20275,6 +20329,15 @@ class SingletonFunctionProps(FunctionProps):
|
|
|
20275
20329
|
result = self._values.get("log_format")
|
|
20276
20330
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
20277
20331
|
|
|
20332
|
+
@builtins.property
|
|
20333
|
+
def logging_format(self) -> typing.Optional[LoggingFormat]:
|
|
20334
|
+
'''Sets the loggingFormat for the function.
|
|
20335
|
+
|
|
20336
|
+
:default: LoggingFormat.TEXT
|
|
20337
|
+
'''
|
|
20338
|
+
result = self._values.get("logging_format")
|
|
20339
|
+
return typing.cast(typing.Optional[LoggingFormat], result)
|
|
20340
|
+
|
|
20278
20341
|
@builtins.property
|
|
20279
20342
|
def log_group(self) -> typing.Optional[_ILogGroup_3c4fa718]:
|
|
20280
20343
|
'''The log group the function sends logs to.
|
|
@@ -20852,7 +20915,7 @@ class SystemLogLevel(enum.Enum):
|
|
|
20852
20915
|
code=lambda_.InlineCode("foo"),
|
|
20853
20916
|
handler="index.handler",
|
|
20854
20917
|
runtime=lambda_.Runtime.NODEJS_18_X,
|
|
20855
|
-
|
|
20918
|
+
logging_format=lambda_.LoggingFormat.JSON,
|
|
20856
20919
|
system_log_level=lambda_.SystemLogLevel.INFO,
|
|
20857
20920
|
application_log_level=lambda_.ApplicationLogLevel.INFO,
|
|
20858
20921
|
log_group=log_group
|
|
@@ -22252,7 +22315,9 @@ class CfnParametersCode(
|
|
|
22252
22315
|
# other resources that your Lambda needs, added to the lambdaStack...
|
|
22253
22316
|
|
|
22254
22317
|
pipeline_stack = cdk.Stack(app, "PipelineStack")
|
|
22255
|
-
pipeline = codepipeline.Pipeline(pipeline_stack, "Pipeline"
|
|
22318
|
+
pipeline = codepipeline.Pipeline(pipeline_stack, "Pipeline",
|
|
22319
|
+
cross_account_keys=True
|
|
22320
|
+
)
|
|
22256
22321
|
|
|
22257
22322
|
# add the source code repository containing this code to your Pipeline,
|
|
22258
22323
|
# and the source code of the Lambda Function, if they're separate
|
|
@@ -22557,6 +22622,7 @@ class CodeSigningConfig(
|
|
|
22557
22622
|
"insights_version": "insightsVersion",
|
|
22558
22623
|
"layers": "layers",
|
|
22559
22624
|
"log_format": "logFormat",
|
|
22625
|
+
"logging_format": "loggingFormat",
|
|
22560
22626
|
"log_group": "logGroup",
|
|
22561
22627
|
"log_retention": "logRetention",
|
|
22562
22628
|
"log_retention_retry_options": "logRetentionRetryOptions",
|
|
@@ -22607,6 +22673,7 @@ class DockerImageFunctionProps(FunctionOptions):
|
|
|
22607
22673
|
insights_version: typing.Optional[LambdaInsightsVersion] = None,
|
|
22608
22674
|
layers: typing.Optional[typing.Sequence[ILayerVersion]] = None,
|
|
22609
22675
|
log_format: typing.Optional[builtins.str] = None,
|
|
22676
|
+
logging_format: typing.Optional[LoggingFormat] = None,
|
|
22610
22677
|
log_group: typing.Optional[_ILogGroup_3c4fa718] = None,
|
|
22611
22678
|
log_retention: typing.Optional[_RetentionDays_070f99f0] = None,
|
|
22612
22679
|
log_retention_retry_options: typing.Optional[typing.Union[LogRetentionRetryOptions, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
@@ -22654,6 +22721,7 @@ class DockerImageFunctionProps(FunctionOptions):
|
|
|
22654
22721
|
:param insights_version: Specify the version of CloudWatch Lambda insights to use for monitoring. Default: - No Lambda Insights
|
|
22655
22722
|
: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.
|
|
22656
22723
|
:param log_format: Sets the logFormat for the function. Default: "Text"
|
|
22724
|
+
:param logging_format: Sets the loggingFormat for the function. Default: LoggingFormat.TEXT
|
|
22657
22725
|
: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
|
|
22658
22726
|
: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
|
|
22659
22727
|
:param log_retention_retry_options: When log retention is specified, a custom resource attempts to create the CloudWatch log group. These options control the retry policy when interacting with CloudWatch APIs. This is a legacy API and we strongly recommend you migrate to ``logGroup`` if you can. ``logGroup`` allows you to create a fully customizable log group and instruct the Lambda function to send logs to it. Default: - Default AWS SDK retry options.
|
|
@@ -22717,6 +22785,7 @@ class DockerImageFunctionProps(FunctionOptions):
|
|
|
22717
22785
|
check_type(argname="argument insights_version", value=insights_version, expected_type=type_hints["insights_version"])
|
|
22718
22786
|
check_type(argname="argument layers", value=layers, expected_type=type_hints["layers"])
|
|
22719
22787
|
check_type(argname="argument log_format", value=log_format, expected_type=type_hints["log_format"])
|
|
22788
|
+
check_type(argname="argument logging_format", value=logging_format, expected_type=type_hints["logging_format"])
|
|
22720
22789
|
check_type(argname="argument log_group", value=log_group, expected_type=type_hints["log_group"])
|
|
22721
22790
|
check_type(argname="argument log_retention", value=log_retention, expected_type=type_hints["log_retention"])
|
|
22722
22791
|
check_type(argname="argument log_retention_retry_options", value=log_retention_retry_options, expected_type=type_hints["log_retention_retry_options"])
|
|
@@ -22789,6 +22858,8 @@ class DockerImageFunctionProps(FunctionOptions):
|
|
|
22789
22858
|
self._values["layers"] = layers
|
|
22790
22859
|
if log_format is not None:
|
|
22791
22860
|
self._values["log_format"] = log_format
|
|
22861
|
+
if logging_format is not None:
|
|
22862
|
+
self._values["logging_format"] = logging_format
|
|
22792
22863
|
if log_group is not None:
|
|
22793
22864
|
self._values["log_group"] = log_group
|
|
22794
22865
|
if log_retention is not None:
|
|
@@ -23096,6 +23167,15 @@ class DockerImageFunctionProps(FunctionOptions):
|
|
|
23096
23167
|
result = self._values.get("log_format")
|
|
23097
23168
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
23098
23169
|
|
|
23170
|
+
@builtins.property
|
|
23171
|
+
def logging_format(self) -> typing.Optional[LoggingFormat]:
|
|
23172
|
+
'''Sets the loggingFormat for the function.
|
|
23173
|
+
|
|
23174
|
+
:default: LoggingFormat.TEXT
|
|
23175
|
+
'''
|
|
23176
|
+
result = self._values.get("logging_format")
|
|
23177
|
+
return typing.cast(typing.Optional[LoggingFormat], result)
|
|
23178
|
+
|
|
23099
23179
|
@builtins.property
|
|
23100
23180
|
def log_group(self) -> typing.Optional[_ILogGroup_3c4fa718]:
|
|
23101
23181
|
'''The log group the function sends logs to.
|
|
@@ -24531,6 +24611,7 @@ class SingletonFunction(
|
|
|
24531
24611
|
insights_version: typing.Optional[LambdaInsightsVersion] = None,
|
|
24532
24612
|
layers: typing.Optional[typing.Sequence[ILayerVersion]] = None,
|
|
24533
24613
|
log_format: typing.Optional[builtins.str] = None,
|
|
24614
|
+
logging_format: typing.Optional[LoggingFormat] = None,
|
|
24534
24615
|
log_group: typing.Optional[_ILogGroup_3c4fa718] = None,
|
|
24535
24616
|
log_retention: typing.Optional[_RetentionDays_070f99f0] = None,
|
|
24536
24617
|
log_retention_retry_options: typing.Optional[typing.Union[LogRetentionRetryOptions, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
@@ -24583,6 +24664,7 @@ class SingletonFunction(
|
|
|
24583
24664
|
:param insights_version: Specify the version of CloudWatch Lambda insights to use for monitoring. Default: - No Lambda Insights
|
|
24584
24665
|
: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.
|
|
24585
24666
|
:param log_format: Sets the logFormat for the function. Default: "Text"
|
|
24667
|
+
:param logging_format: Sets the loggingFormat for the function. Default: LoggingFormat.TEXT
|
|
24586
24668
|
: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
|
|
24587
24669
|
: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
|
|
24588
24670
|
:param log_retention_retry_options: When log retention is specified, a custom resource attempts to create the CloudWatch log group. These options control the retry policy when interacting with CloudWatch APIs. This is a legacy API and we strongly recommend you migrate to ``logGroup`` if you can. ``logGroup`` allows you to create a fully customizable log group and instruct the Lambda function to send logs to it. Default: - Default AWS SDK retry options.
|
|
@@ -24637,6 +24719,7 @@ class SingletonFunction(
|
|
|
24637
24719
|
insights_version=insights_version,
|
|
24638
24720
|
layers=layers,
|
|
24639
24721
|
log_format=log_format,
|
|
24722
|
+
logging_format=logging_format,
|
|
24640
24723
|
log_group=log_group,
|
|
24641
24724
|
log_retention=log_retention,
|
|
24642
24725
|
log_retention_retry_options=log_retention_retry_options,
|
|
@@ -25477,6 +25560,7 @@ class Function(
|
|
|
25477
25560
|
insights_version: typing.Optional[LambdaInsightsVersion] = None,
|
|
25478
25561
|
layers: typing.Optional[typing.Sequence[ILayerVersion]] = None,
|
|
25479
25562
|
log_format: typing.Optional[builtins.str] = None,
|
|
25563
|
+
logging_format: typing.Optional[LoggingFormat] = None,
|
|
25480
25564
|
log_group: typing.Optional[_ILogGroup_3c4fa718] = None,
|
|
25481
25565
|
log_retention: typing.Optional[_RetentionDays_070f99f0] = None,
|
|
25482
25566
|
log_retention_retry_options: typing.Optional[typing.Union[LogRetentionRetryOptions, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
@@ -25527,6 +25611,7 @@ class Function(
|
|
|
25527
25611
|
:param insights_version: Specify the version of CloudWatch Lambda insights to use for monitoring. Default: - No Lambda Insights
|
|
25528
25612
|
: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.
|
|
25529
25613
|
:param log_format: Sets the logFormat for the function. Default: "Text"
|
|
25614
|
+
:param logging_format: Sets the loggingFormat for the function. Default: LoggingFormat.TEXT
|
|
25530
25615
|
: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
|
|
25531
25616
|
: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
|
|
25532
25617
|
:param log_retention_retry_options: When log retention is specified, a custom resource attempts to create the CloudWatch log group. These options control the retry policy when interacting with CloudWatch APIs. This is a legacy API and we strongly recommend you migrate to ``logGroup`` if you can. ``logGroup`` allows you to create a fully customizable log group and instruct the Lambda function to send logs to it. Default: - Default AWS SDK retry options.
|
|
@@ -25579,6 +25664,7 @@ class Function(
|
|
|
25579
25664
|
insights_version=insights_version,
|
|
25580
25665
|
layers=layers,
|
|
25581
25666
|
log_format=log_format,
|
|
25667
|
+
logging_format=logging_format,
|
|
25582
25668
|
log_group=log_group,
|
|
25583
25669
|
log_retention=log_retention,
|
|
25584
25670
|
log_retention_retry_options=log_retention_retry_options,
|
|
@@ -26257,6 +26343,7 @@ class DockerImageFunction(
|
|
|
26257
26343
|
insights_version: typing.Optional[LambdaInsightsVersion] = None,
|
|
26258
26344
|
layers: typing.Optional[typing.Sequence[ILayerVersion]] = None,
|
|
26259
26345
|
log_format: typing.Optional[builtins.str] = None,
|
|
26346
|
+
logging_format: typing.Optional[LoggingFormat] = None,
|
|
26260
26347
|
log_group: typing.Optional[_ILogGroup_3c4fa718] = None,
|
|
26261
26348
|
log_retention: typing.Optional[_RetentionDays_070f99f0] = None,
|
|
26262
26349
|
log_retention_retry_options: typing.Optional[typing.Union[LogRetentionRetryOptions, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
@@ -26305,6 +26392,7 @@ class DockerImageFunction(
|
|
|
26305
26392
|
:param insights_version: Specify the version of CloudWatch Lambda insights to use for monitoring. Default: - No Lambda Insights
|
|
26306
26393
|
: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.
|
|
26307
26394
|
:param log_format: Sets the logFormat for the function. Default: "Text"
|
|
26395
|
+
:param logging_format: Sets the loggingFormat for the function. Default: LoggingFormat.TEXT
|
|
26308
26396
|
: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
|
|
26309
26397
|
: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
|
|
26310
26398
|
:param log_retention_retry_options: When log retention is specified, a custom resource attempts to create the CloudWatch log group. These options control the retry policy when interacting with CloudWatch APIs. This is a legacy API and we strongly recommend you migrate to ``logGroup`` if you can. ``logGroup`` allows you to create a fully customizable log group and instruct the Lambda function to send logs to it. Default: - Default AWS SDK retry options.
|
|
@@ -26355,6 +26443,7 @@ class DockerImageFunction(
|
|
|
26355
26443
|
insights_version=insights_version,
|
|
26356
26444
|
layers=layers,
|
|
26357
26445
|
log_format=log_format,
|
|
26446
|
+
logging_format=logging_format,
|
|
26358
26447
|
log_group=log_group,
|
|
26359
26448
|
log_retention=log_retention,
|
|
26360
26449
|
log_retention_retry_options=log_retention_retry_options,
|
|
@@ -26484,6 +26573,7 @@ __all__ = [
|
|
|
26484
26573
|
"LayerVersionProps",
|
|
26485
26574
|
"LogFormat",
|
|
26486
26575
|
"LogRetentionRetryOptions",
|
|
26576
|
+
"LoggingFormat",
|
|
26487
26577
|
"ParamsAndSecretsLayerVersion",
|
|
26488
26578
|
"ParamsAndSecretsLogLevel",
|
|
26489
26579
|
"ParamsAndSecretsOptions",
|
|
@@ -28316,6 +28406,7 @@ def _typecheckingstub__59918bb957d892739733c7a5849db990615fe5329709ad7ba703e0ee4
|
|
|
28316
28406
|
insights_version: typing.Optional[LambdaInsightsVersion] = None,
|
|
28317
28407
|
layers: typing.Optional[typing.Sequence[ILayerVersion]] = None,
|
|
28318
28408
|
log_format: typing.Optional[builtins.str] = None,
|
|
28409
|
+
logging_format: typing.Optional[LoggingFormat] = None,
|
|
28319
28410
|
log_group: typing.Optional[_ILogGroup_3c4fa718] = None,
|
|
28320
28411
|
log_retention: typing.Optional[_RetentionDays_070f99f0] = None,
|
|
28321
28412
|
log_retention_retry_options: typing.Optional[typing.Union[LogRetentionRetryOptions, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
@@ -28365,6 +28456,7 @@ def _typecheckingstub__94e70d11aa3c53737d418dbb9983973dfc06dbdef5c8cc30613cc3c6d
|
|
|
28365
28456
|
insights_version: typing.Optional[LambdaInsightsVersion] = None,
|
|
28366
28457
|
layers: typing.Optional[typing.Sequence[ILayerVersion]] = None,
|
|
28367
28458
|
log_format: typing.Optional[builtins.str] = None,
|
|
28459
|
+
logging_format: typing.Optional[LoggingFormat] = None,
|
|
28368
28460
|
log_group: typing.Optional[_ILogGroup_3c4fa718] = None,
|
|
28369
28461
|
log_retention: typing.Optional[_RetentionDays_070f99f0] = None,
|
|
28370
28462
|
log_retention_retry_options: typing.Optional[typing.Union[LogRetentionRetryOptions, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
@@ -28843,6 +28935,7 @@ def _typecheckingstub__68a03ec9f866a29c77aabcf8328c63a49511790fa9714874f255b3292
|
|
|
28843
28935
|
insights_version: typing.Optional[LambdaInsightsVersion] = None,
|
|
28844
28936
|
layers: typing.Optional[typing.Sequence[ILayerVersion]] = None,
|
|
28845
28937
|
log_format: typing.Optional[builtins.str] = None,
|
|
28938
|
+
logging_format: typing.Optional[LoggingFormat] = None,
|
|
28846
28939
|
log_group: typing.Optional[_ILogGroup_3c4fa718] = None,
|
|
28847
28940
|
log_retention: typing.Optional[_RetentionDays_070f99f0] = None,
|
|
28848
28941
|
log_retention_retry_options: typing.Optional[typing.Union[LogRetentionRetryOptions, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
@@ -29090,6 +29183,7 @@ def _typecheckingstub__04dd97f4b18c00e7ee0981f2428664401ae0b75dbda6102ea3ef53d08
|
|
|
29090
29183
|
insights_version: typing.Optional[LambdaInsightsVersion] = None,
|
|
29091
29184
|
layers: typing.Optional[typing.Sequence[ILayerVersion]] = None,
|
|
29092
29185
|
log_format: typing.Optional[builtins.str] = None,
|
|
29186
|
+
logging_format: typing.Optional[LoggingFormat] = None,
|
|
29093
29187
|
log_group: typing.Optional[_ILogGroup_3c4fa718] = None,
|
|
29094
29188
|
log_retention: typing.Optional[_RetentionDays_070f99f0] = None,
|
|
29095
29189
|
log_retention_retry_options: typing.Optional[typing.Union[LogRetentionRetryOptions, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
@@ -29329,6 +29423,7 @@ def _typecheckingstub__e7b766bff13bb7266787cec9bebb600187e19c1672e530bb9cfa31649
|
|
|
29329
29423
|
insights_version: typing.Optional[LambdaInsightsVersion] = None,
|
|
29330
29424
|
layers: typing.Optional[typing.Sequence[ILayerVersion]] = None,
|
|
29331
29425
|
log_format: typing.Optional[builtins.str] = None,
|
|
29426
|
+
logging_format: typing.Optional[LoggingFormat] = None,
|
|
29332
29427
|
log_group: typing.Optional[_ILogGroup_3c4fa718] = None,
|
|
29333
29428
|
log_retention: typing.Optional[_RetentionDays_070f99f0] = None,
|
|
29334
29429
|
log_retention_retry_options: typing.Optional[typing.Union[LogRetentionRetryOptions, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
@@ -29531,6 +29626,7 @@ def _typecheckingstub__724895b6b59aaf2b678ef25f2beca19fb114fc04ff6b37edef28e12b3
|
|
|
29531
29626
|
insights_version: typing.Optional[LambdaInsightsVersion] = None,
|
|
29532
29627
|
layers: typing.Optional[typing.Sequence[ILayerVersion]] = None,
|
|
29533
29628
|
log_format: typing.Optional[builtins.str] = None,
|
|
29629
|
+
logging_format: typing.Optional[LoggingFormat] = None,
|
|
29534
29630
|
log_group: typing.Optional[_ILogGroup_3c4fa718] = None,
|
|
29535
29631
|
log_retention: typing.Optional[_RetentionDays_070f99f0] = None,
|
|
29536
29632
|
log_retention_retry_options: typing.Optional[typing.Union[LogRetentionRetryOptions, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
@@ -29670,6 +29766,7 @@ def _typecheckingstub__368a49fe1f866c7ea7986c57b6f8488d0fddea8f62bf05ec1ed7eb09b
|
|
|
29670
29766
|
insights_version: typing.Optional[LambdaInsightsVersion] = None,
|
|
29671
29767
|
layers: typing.Optional[typing.Sequence[ILayerVersion]] = None,
|
|
29672
29768
|
log_format: typing.Optional[builtins.str] = None,
|
|
29769
|
+
logging_format: typing.Optional[LoggingFormat] = None,
|
|
29673
29770
|
log_group: typing.Optional[_ILogGroup_3c4fa718] = None,
|
|
29674
29771
|
log_retention: typing.Optional[_RetentionDays_070f99f0] = None,
|
|
29675
29772
|
log_retention_retry_options: typing.Optional[typing.Union[LogRetentionRetryOptions, typing.Dict[builtins.str, typing.Any]]] = None,
|