aws-cdk-lib 2.202.0__py3-none-any.whl → 2.203.1__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 +46 -47
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.202.0.jsii.tgz → aws-cdk-lib@2.203.1.jsii.tgz} +0 -0
- aws_cdk/aws_accessanalyzer/__init__.py +310 -4
- aws_cdk/aws_aiops/__init__.py +964 -0
- aws_cdk/aws_amplify/__init__.py +127 -0
- aws_cdk/aws_arczonalshift/__init__.py +8 -8
- aws_cdk/aws_b2bi/__init__.py +782 -3
- aws_cdk/aws_backup/__init__.py +22 -0
- aws_cdk/aws_batch/__init__.py +53 -1
- aws_cdk/aws_bedrock/__init__.py +123 -9
- aws_cdk/aws_cleanrooms/__init__.py +157 -154
- aws_cdk/aws_cloudformation/__init__.py +28 -28
- aws_cdk/aws_cloudfront/__init__.py +61 -18
- aws_cdk/aws_cloudfront/experimental/__init__.py +37 -3
- aws_cdk/aws_cloudwatch/__init__.py +228 -2
- aws_cdk/aws_connect/__init__.py +120 -8
- aws_cdk/aws_connectcampaignsv2/__init__.py +25 -4
- aws_cdk/aws_customerprofiles/__init__.py +140 -20
- aws_cdk/aws_datazone/__init__.py +23 -4
- aws_cdk/aws_deadline/__init__.py +4 -4
- aws_cdk/aws_dsql/__init__.py +148 -0
- aws_cdk/aws_ec2/__init__.py +159 -7
- aws_cdk/aws_ecr/__init__.py +3 -3
- aws_cdk/aws_ecs/__init__.py +48 -13
- aws_cdk/aws_elasticloadbalancingv2/__init__.py +4 -2
- aws_cdk/aws_emrserverless/__init__.py +118 -0
- aws_cdk/aws_fsx/__init__.py +891 -0
- aws_cdk/aws_iam/__init__.py +8 -8
- aws_cdk/aws_inspectorv2/__init__.py +442 -3
- aws_cdk/aws_kendra/__init__.py +10 -5
- aws_cdk/aws_kms/__init__.py +14 -8
- aws_cdk/aws_lambda/__init__.py +191 -24
- aws_cdk/aws_lambda_nodejs/__init__.py +37 -3
- aws_cdk/aws_lex/__init__.py +703 -0
- aws_cdk/aws_logs/__init__.py +144 -0
- aws_cdk/aws_mediatailor/__init__.py +399 -0
- aws_cdk/aws_mpa/__init__.py +1475 -0
- aws_cdk/aws_networkfirewall/__init__.py +4 -2
- aws_cdk/aws_networkmanager/__init__.py +51 -3
- aws_cdk/aws_opsworkscm/__init__.py +44 -2
- aws_cdk/aws_rds/__init__.py +171 -41
- aws_cdk/aws_redshiftserverless/__init__.py +632 -0
- aws_cdk/aws_route53resolver/__init__.py +58 -10
- aws_cdk/aws_s3/__init__.py +3 -1
- aws_cdk/aws_s3tables/__init__.py +230 -0
- aws_cdk/aws_sagemaker/__init__.py +6 -2
- aws_cdk/aws_securityhub/__init__.py +2887 -56
- aws_cdk/aws_synthetics/__init__.py +21 -0
- aws_cdk/aws_vpclattice/__init__.py +6 -4
- aws_cdk/aws_wafv2/__init__.py +156 -51
- aws_cdk/aws_workspacesinstances/__init__.py +3243 -0
- aws_cdk/cloud_assembly_schema/__init__.py +200 -4
- aws_cdk/cx_api/__init__.py +15 -14
- aws_cdk/pipelines/__init__.py +31 -3
- aws_cdk/triggers/__init__.py +41 -4
- {aws_cdk_lib-2.202.0.dist-info → aws_cdk_lib-2.203.1.dist-info}/METADATA +3 -3
- {aws_cdk_lib-2.202.0.dist-info → aws_cdk_lib-2.203.1.dist-info}/RECORD +62 -59
- {aws_cdk_lib-2.202.0.dist-info → aws_cdk_lib-2.203.1.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.202.0.dist-info → aws_cdk_lib-2.203.1.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.202.0.dist-info → aws_cdk_lib-2.203.1.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.202.0.dist-info → aws_cdk_lib-2.203.1.dist-info}/top_level.txt +0 -0
aws_cdk/aws_lambda/__init__.py
CHANGED
|
@@ -292,6 +292,23 @@ const fn = new lambda.Function(this, 'MyFunctionWithFFTrue', {
|
|
|
292
292
|
cdk.Tags.of(fn).add('env', 'dev'); // the tag is also added to the log group
|
|
293
293
|
```
|
|
294
294
|
|
|
295
|
+
### Log removal policy
|
|
296
|
+
|
|
297
|
+
When using the deprecated `logRetention` property for creating a LogGroup, you can configure log removal policy:
|
|
298
|
+
|
|
299
|
+
```python
|
|
300
|
+
import aws_cdk.aws_logs as logs
|
|
301
|
+
|
|
302
|
+
|
|
303
|
+
fn = lambda_.Function(self, "MyFunctionWithFFTrue",
|
|
304
|
+
runtime=lambda_.Runtime.NODEJS_LATEST,
|
|
305
|
+
handler="handler.main",
|
|
306
|
+
code=lambda_.Code.from_asset("lambda"),
|
|
307
|
+
log_retention=logs.RetentionDays.INFINITE,
|
|
308
|
+
log_removal_policy=RemovalPolicy.RETAIN
|
|
309
|
+
)
|
|
310
|
+
```
|
|
311
|
+
|
|
295
312
|
## Resource-based Policies
|
|
296
313
|
|
|
297
314
|
AWS Lambda supports resource-based policies for controlling access to Lambda
|
|
@@ -5480,7 +5497,7 @@ class CfnEventSourceMapping(
|
|
|
5480
5497
|
'''Specific configuration settings for an Amazon Managed Streaming for Apache Kafka (Amazon MSK) event source.
|
|
5481
5498
|
|
|
5482
5499
|
:param consumer_group_id: The identifier for the Kafka consumer group to join. The consumer group ID must be unique among all your Kafka event sources. After creating a Kafka event source mapping with the consumer group ID specified, you cannot update this value. For more information, see `Customizable consumer group ID <https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html#services-msk-consumer-group-id>`_ .
|
|
5483
|
-
:param schema_registry_config:
|
|
5500
|
+
:param schema_registry_config: Specific configuration settings for a Kafka schema registry.
|
|
5484
5501
|
|
|
5485
5502
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-amazonmanagedkafkaeventsourceconfig.html
|
|
5486
5503
|
:exampleMetadata: fixture=_generated
|
|
@@ -5531,7 +5548,8 @@ class CfnEventSourceMapping(
|
|
|
5531
5548
|
def schema_registry_config(
|
|
5532
5549
|
self,
|
|
5533
5550
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnEventSourceMapping.SchemaRegistryConfigProperty"]]:
|
|
5534
|
-
'''
|
|
5551
|
+
'''Specific configuration settings for a Kafka schema registry.
|
|
5552
|
+
|
|
5535
5553
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-amazonmanagedkafkaeventsourceconfig.html#cfn-lambda-eventsourcemapping-amazonmanagedkafkaeventsourceconfig-schemaregistryconfig
|
|
5536
5554
|
'''
|
|
5537
5555
|
result = self._values.get("schema_registry_config")
|
|
@@ -6131,7 +6149,12 @@ class CfnEventSourceMapping(
|
|
|
6131
6149
|
type: typing.Optional[builtins.str] = None,
|
|
6132
6150
|
uri: typing.Optional[builtins.str] = None,
|
|
6133
6151
|
) -> None:
|
|
6134
|
-
'''
|
|
6152
|
+
'''Specific access configuration settings that tell Lambda how to authenticate with your schema registry.
|
|
6153
|
+
|
|
6154
|
+
If you're working with an AWS Glue schema registry, don't provide authentication details in this object. Instead, ensure that your execution role has the required permissions for Lambda to access your cluster.
|
|
6155
|
+
|
|
6156
|
+
If you're working with a Confluent schema registry, choose the authentication method in the ``Type`` field, and provide the AWS Secrets Manager secret ARN in the ``URI`` field.
|
|
6157
|
+
|
|
6135
6158
|
:param type: The type of authentication Lambda uses to access your schema registry.
|
|
6136
6159
|
:param uri: The URI of the secret (Secrets Manager secret ARN) to authenticate with your schema registry.
|
|
6137
6160
|
|
|
@@ -6207,10 +6230,11 @@ class CfnEventSourceMapping(
|
|
|
6207
6230
|
schema_registry_uri: typing.Optional[builtins.str] = None,
|
|
6208
6231
|
schema_validation_configs: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnEventSourceMapping.SchemaValidationConfigProperty", typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
6209
6232
|
) -> None:
|
|
6210
|
-
'''
|
|
6233
|
+
'''Specific configuration settings for a Kafka schema registry.
|
|
6234
|
+
|
|
6211
6235
|
:param access_configs: An array of access configuration objects that tell Lambda how to authenticate with your schema registry.
|
|
6212
|
-
:param event_record_format: The record format that Lambda delivers to your function after schema validation.
|
|
6213
|
-
:param schema_registry_uri: The URI for your schema registry. The correct URI format depends on the type of schema registry you're using.
|
|
6236
|
+
:param event_record_format: The record format that Lambda delivers to your function after schema validation. - Choose ``JSON`` to have Lambda deliver the record to your function as a standard JSON object. - Choose ``SOURCE`` to have Lambda deliver the record to your function in its original source format. Lambda removes all schema metadata, such as the schema ID, before sending the record to your function.
|
|
6237
|
+
:param schema_registry_uri: The URI for your schema registry. The correct URI format depends on the type of schema registry you're using. - For AWS Glue schema registries, use the ARN of the registry. - For Confluent schema registries, use the URL of the registry.
|
|
6214
6238
|
:param schema_validation_configs: An array of schema validation configuration objects, which tell Lambda the message attributes you want to validate and filter using your schema registry.
|
|
6215
6239
|
|
|
6216
6240
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-schemaregistryconfig.html
|
|
@@ -6265,6 +6289,9 @@ class CfnEventSourceMapping(
|
|
|
6265
6289
|
def event_record_format(self) -> typing.Optional[builtins.str]:
|
|
6266
6290
|
'''The record format that Lambda delivers to your function after schema validation.
|
|
6267
6291
|
|
|
6292
|
+
- Choose ``JSON`` to have Lambda deliver the record to your function as a standard JSON object.
|
|
6293
|
+
- Choose ``SOURCE`` to have Lambda deliver the record to your function in its original source format. Lambda removes all schema metadata, such as the schema ID, before sending the record to your function.
|
|
6294
|
+
|
|
6268
6295
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-schemaregistryconfig.html#cfn-lambda-eventsourcemapping-schemaregistryconfig-eventrecordformat
|
|
6269
6296
|
'''
|
|
6270
6297
|
result = self._values.get("event_record_format")
|
|
@@ -6272,9 +6299,10 @@ class CfnEventSourceMapping(
|
|
|
6272
6299
|
|
|
6273
6300
|
@builtins.property
|
|
6274
6301
|
def schema_registry_uri(self) -> typing.Optional[builtins.str]:
|
|
6275
|
-
'''The URI for your schema registry.
|
|
6302
|
+
'''The URI for your schema registry. The correct URI format depends on the type of schema registry you're using.
|
|
6276
6303
|
|
|
6277
|
-
|
|
6304
|
+
- For AWS Glue schema registries, use the ARN of the registry.
|
|
6305
|
+
- For Confluent schema registries, use the URL of the registry.
|
|
6278
6306
|
|
|
6279
6307
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-schemaregistryconfig.html#cfn-lambda-eventsourcemapping-schemaregistryconfig-schemaregistryuri
|
|
6280
6308
|
'''
|
|
@@ -6310,8 +6338,9 @@ class CfnEventSourceMapping(
|
|
|
6310
6338
|
)
|
|
6311
6339
|
class SchemaValidationConfigProperty:
|
|
6312
6340
|
def __init__(self, *, attribute: typing.Optional[builtins.str] = None) -> None:
|
|
6313
|
-
'''
|
|
6314
|
-
|
|
6341
|
+
'''Specific schema validation configuration settings that tell Lambda the message attributes you want to validate and filter using your schema registry.
|
|
6342
|
+
|
|
6343
|
+
:param attribute: The attributes you want your schema registry to validate and filter for. If you selected ``JSON`` as the ``EventRecordFormat`` , Lambda also deserializes the selected message attributes.
|
|
6315
6344
|
|
|
6316
6345
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-schemavalidationconfig.html
|
|
6317
6346
|
:exampleMetadata: fixture=_generated
|
|
@@ -6335,7 +6364,9 @@ class CfnEventSourceMapping(
|
|
|
6335
6364
|
|
|
6336
6365
|
@builtins.property
|
|
6337
6366
|
def attribute(self) -> typing.Optional[builtins.str]:
|
|
6338
|
-
'''The
|
|
6367
|
+
'''The attributes you want your schema registry to validate and filter for.
|
|
6368
|
+
|
|
6369
|
+
If you selected ``JSON`` as the ``EventRecordFormat`` , Lambda also deserializes the selected message attributes.
|
|
6339
6370
|
|
|
6340
6371
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-schemavalidationconfig.html#cfn-lambda-eventsourcemapping-schemavalidationconfig-attribute
|
|
6341
6372
|
'''
|
|
@@ -6430,7 +6461,7 @@ class CfnEventSourceMapping(
|
|
|
6430
6461
|
'''Specific configuration settings for a self-managed Apache Kafka event source.
|
|
6431
6462
|
|
|
6432
6463
|
:param consumer_group_id: The identifier for the Kafka consumer group to join. The consumer group ID must be unique among all your Kafka event sources. After creating a Kafka event source mapping with the consumer group ID specified, you cannot update this value. For more information, see `Customizable consumer group ID <https://docs.aws.amazon.com/lambda/latest/dg/with-kafka-process.html#services-smaa-topic-add>`_ .
|
|
6433
|
-
:param schema_registry_config:
|
|
6464
|
+
:param schema_registry_config: Specific configuration settings for a Kafka schema registry.
|
|
6434
6465
|
|
|
6435
6466
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-selfmanagedkafkaeventsourceconfig.html
|
|
6436
6467
|
:exampleMetadata: fixture=_generated
|
|
@@ -6481,7 +6512,8 @@ class CfnEventSourceMapping(
|
|
|
6481
6512
|
def schema_registry_config(
|
|
6482
6513
|
self,
|
|
6483
6514
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnEventSourceMapping.SchemaRegistryConfigProperty"]]:
|
|
6484
|
-
'''
|
|
6515
|
+
'''Specific configuration settings for a Kafka schema registry.
|
|
6516
|
+
|
|
6485
6517
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-selfmanagedkafkaeventsourceconfig.html#cfn-lambda-eventsourcemapping-selfmanagedkafkaeventsourceconfig-schemaregistryconfig
|
|
6486
6518
|
'''
|
|
6487
6519
|
result = self._values.get("schema_registry_config")
|
|
@@ -11838,6 +11870,9 @@ class Code(metaclass=jsii.JSIIAbstractClass, jsii_type="aws-cdk-lib.aws_lambda.C
|
|
|
11838
11870
|
) -> "S3Code":
|
|
11839
11871
|
'''Lambda handler code as an S3 object.
|
|
11840
11872
|
|
|
11873
|
+
Note: If ``objectVersion`` is not defined, the lambda will not be updated automatically if the code in the bucket is updated.
|
|
11874
|
+
This is because CDK/Cloudformation does not track changes on the source S3 Bucket. It is recommended to either use S3Code.fromAsset() instead or set objectVersion.
|
|
11875
|
+
|
|
11841
11876
|
:param bucket: The S3 bucket.
|
|
11842
11877
|
:param key: The object key.
|
|
11843
11878
|
:param object_version: Optional S3 object version.
|
|
@@ -11861,6 +11896,9 @@ class Code(metaclass=jsii.JSIIAbstractClass, jsii_type="aws-cdk-lib.aws_lambda.C
|
|
|
11861
11896
|
) -> "S3CodeV2":
|
|
11862
11897
|
'''Lambda handler code as an S3 object.
|
|
11863
11898
|
|
|
11899
|
+
Note: If ``options.objectVersion`` is not defined, the lambda will not be updated automatically if the code in the bucket is updated.
|
|
11900
|
+
This is because CDK/Cloudformation does not track changes on the source S3 Bucket. It is recommended to either use S3Code.fromAsset() instead or set objectVersion.
|
|
11901
|
+
|
|
11864
11902
|
:param bucket: The S3 bucket.
|
|
11865
11903
|
:param key: The object key.
|
|
11866
11904
|
:param object_version: Optional S3 object version.
|
|
@@ -15595,6 +15633,7 @@ class FunctionAttributes:
|
|
|
15595
15633
|
"log_format": "logFormat",
|
|
15596
15634
|
"logging_format": "loggingFormat",
|
|
15597
15635
|
"log_group": "logGroup",
|
|
15636
|
+
"log_removal_policy": "logRemovalPolicy",
|
|
15598
15637
|
"log_retention": "logRetention",
|
|
15599
15638
|
"log_retention_retry_options": "logRetentionRetryOptions",
|
|
15600
15639
|
"log_retention_role": "logRetentionRole",
|
|
@@ -15650,6 +15689,7 @@ class FunctionOptions(EventInvokeConfigOptions):
|
|
|
15650
15689
|
log_format: typing.Optional[builtins.str] = None,
|
|
15651
15690
|
logging_format: typing.Optional["LoggingFormat"] = None,
|
|
15652
15691
|
log_group: typing.Optional[_ILogGroup_3c4fa718] = None,
|
|
15692
|
+
log_removal_policy: typing.Optional[_RemovalPolicy_9f93c814] = None,
|
|
15653
15693
|
log_retention: typing.Optional[_RetentionDays_070f99f0] = None,
|
|
15654
15694
|
log_retention_retry_options: typing.Optional[typing.Union["LogRetentionRetryOptions", typing.Dict[builtins.str, typing.Any]]] = None,
|
|
15655
15695
|
log_retention_role: typing.Optional[_IRole_235f5d8e] = None,
|
|
@@ -15702,7 +15742,8 @@ class FunctionOptions(EventInvokeConfigOptions):
|
|
|
15702
15742
|
:param log_format: (deprecated) Sets the logFormat for the function. Default: "Text"
|
|
15703
15743
|
:param logging_format: Sets the loggingFormat for the function. Default: LoggingFormat.TEXT
|
|
15704
15744
|
: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
|
|
15705
|
-
:param
|
|
15745
|
+
:param log_removal_policy: (deprecated) Determine the removal policy of the log group that is auto-created by this construct. Normally you want to retain the log group so you can diagnose issues from logs even after a deployment that no longer includes the log group. In that case, use the normal date-based retention policy to age out your logs. Default: RemovalPolicy.Retain
|
|
15746
|
+
:param log_retention: (deprecated) 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
|
|
15706
15747
|
: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.
|
|
15707
15748
|
:param log_retention_role: The IAM role for the Lambda function associated with the custom resource that sets the retention policy. 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: - A new role is created.
|
|
15708
15749
|
:param memory_size: The amount of memory, in MB, that is allocated to your Lambda function. Lambda uses this value to proportionally allocate the amount of CPU power. For more information, see Resource Model in the AWS Lambda Developer Guide. Default: 128
|
|
@@ -15803,6 +15844,7 @@ class FunctionOptions(EventInvokeConfigOptions):
|
|
|
15803
15844
|
log_format="logFormat",
|
|
15804
15845
|
logging_format=lambda_.LoggingFormat.TEXT,
|
|
15805
15846
|
log_group=log_group,
|
|
15847
|
+
log_removal_policy=cdk.RemovalPolicy.DESTROY,
|
|
15806
15848
|
log_retention=logs.RetentionDays.ONE_DAY,
|
|
15807
15849
|
log_retention_retry_options=lambda.LogRetentionRetryOptions(
|
|
15808
15850
|
base=cdk.Duration.minutes(30),
|
|
@@ -15878,6 +15920,7 @@ class FunctionOptions(EventInvokeConfigOptions):
|
|
|
15878
15920
|
check_type(argname="argument log_format", value=log_format, expected_type=type_hints["log_format"])
|
|
15879
15921
|
check_type(argname="argument logging_format", value=logging_format, expected_type=type_hints["logging_format"])
|
|
15880
15922
|
check_type(argname="argument log_group", value=log_group, expected_type=type_hints["log_group"])
|
|
15923
|
+
check_type(argname="argument log_removal_policy", value=log_removal_policy, expected_type=type_hints["log_removal_policy"])
|
|
15881
15924
|
check_type(argname="argument log_retention", value=log_retention, expected_type=type_hints["log_retention"])
|
|
15882
15925
|
check_type(argname="argument log_retention_retry_options", value=log_retention_retry_options, expected_type=type_hints["log_retention_retry_options"])
|
|
15883
15926
|
check_type(argname="argument log_retention_role", value=log_retention_role, expected_type=type_hints["log_retention_role"])
|
|
@@ -15958,6 +16001,8 @@ class FunctionOptions(EventInvokeConfigOptions):
|
|
|
15958
16001
|
self._values["logging_format"] = logging_format
|
|
15959
16002
|
if log_group is not None:
|
|
15960
16003
|
self._values["log_group"] = log_group
|
|
16004
|
+
if log_removal_policy is not None:
|
|
16005
|
+
self._values["log_removal_policy"] = log_removal_policy
|
|
15961
16006
|
if log_retention is not None:
|
|
15962
16007
|
self._values["log_retention"] = log_retention
|
|
15963
16008
|
if log_retention_retry_options is not None:
|
|
@@ -16337,9 +16382,27 @@ class FunctionOptions(EventInvokeConfigOptions):
|
|
|
16337
16382
|
result = self._values.get("log_group")
|
|
16338
16383
|
return typing.cast(typing.Optional[_ILogGroup_3c4fa718], result)
|
|
16339
16384
|
|
|
16385
|
+
@builtins.property
|
|
16386
|
+
def log_removal_policy(self) -> typing.Optional[_RemovalPolicy_9f93c814]:
|
|
16387
|
+
'''(deprecated) Determine the removal policy of the log group that is auto-created by this construct.
|
|
16388
|
+
|
|
16389
|
+
Normally you want to retain the log group so you can diagnose issues
|
|
16390
|
+
from logs even after a deployment that no longer includes the log group.
|
|
16391
|
+
In that case, use the normal date-based retention policy to age out your
|
|
16392
|
+
logs.
|
|
16393
|
+
|
|
16394
|
+
:default: RemovalPolicy.Retain
|
|
16395
|
+
|
|
16396
|
+
:deprecated: use ``logGroup`` instead
|
|
16397
|
+
|
|
16398
|
+
:stability: deprecated
|
|
16399
|
+
'''
|
|
16400
|
+
result = self._values.get("log_removal_policy")
|
|
16401
|
+
return typing.cast(typing.Optional[_RemovalPolicy_9f93c814], result)
|
|
16402
|
+
|
|
16340
16403
|
@builtins.property
|
|
16341
16404
|
def log_retention(self) -> typing.Optional[_RetentionDays_070f99f0]:
|
|
16342
|
-
'''The number of days log events are kept in CloudWatch Logs.
|
|
16405
|
+
'''(deprecated) The number of days log events are kept in CloudWatch Logs.
|
|
16343
16406
|
|
|
16344
16407
|
When updating
|
|
16345
16408
|
this property, unsetting it doesn't remove the log retention policy. To
|
|
@@ -16360,6 +16423,10 @@ class FunctionOptions(EventInvokeConfigOptions):
|
|
|
16360
16423
|
my_log_group.log_group_name
|
|
16361
16424
|
|
|
16362
16425
|
:default: logs.RetentionDays.INFINITE
|
|
16426
|
+
|
|
16427
|
+
:deprecated: use ``logGroup`` instead
|
|
16428
|
+
|
|
16429
|
+
:stability: deprecated
|
|
16363
16430
|
'''
|
|
16364
16431
|
result = self._values.get("log_retention")
|
|
16365
16432
|
return typing.cast(typing.Optional[_RetentionDays_070f99f0], result)
|
|
@@ -16633,6 +16700,7 @@ class FunctionOptions(EventInvokeConfigOptions):
|
|
|
16633
16700
|
"log_format": "logFormat",
|
|
16634
16701
|
"logging_format": "loggingFormat",
|
|
16635
16702
|
"log_group": "logGroup",
|
|
16703
|
+
"log_removal_policy": "logRemovalPolicy",
|
|
16636
16704
|
"log_retention": "logRetention",
|
|
16637
16705
|
"log_retention_retry_options": "logRetentionRetryOptions",
|
|
16638
16706
|
"log_retention_role": "logRetentionRole",
|
|
@@ -16691,6 +16759,7 @@ class FunctionProps(FunctionOptions):
|
|
|
16691
16759
|
log_format: typing.Optional[builtins.str] = None,
|
|
16692
16760
|
logging_format: typing.Optional["LoggingFormat"] = None,
|
|
16693
16761
|
log_group: typing.Optional[_ILogGroup_3c4fa718] = None,
|
|
16762
|
+
log_removal_policy: typing.Optional[_RemovalPolicy_9f93c814] = None,
|
|
16694
16763
|
log_retention: typing.Optional[_RetentionDays_070f99f0] = None,
|
|
16695
16764
|
log_retention_retry_options: typing.Optional[typing.Union["LogRetentionRetryOptions", typing.Dict[builtins.str, typing.Any]]] = None,
|
|
16696
16765
|
log_retention_role: typing.Optional[_IRole_235f5d8e] = None,
|
|
@@ -16745,7 +16814,8 @@ class FunctionProps(FunctionOptions):
|
|
|
16745
16814
|
:param log_format: (deprecated) Sets the logFormat for the function. Default: "Text"
|
|
16746
16815
|
:param logging_format: Sets the loggingFormat for the function. Default: LoggingFormat.TEXT
|
|
16747
16816
|
: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
|
|
16748
|
-
:param
|
|
16817
|
+
:param log_removal_policy: (deprecated) Determine the removal policy of the log group that is auto-created by this construct. Normally you want to retain the log group so you can diagnose issues from logs even after a deployment that no longer includes the log group. In that case, use the normal date-based retention policy to age out your logs. Default: RemovalPolicy.Retain
|
|
16818
|
+
:param log_retention: (deprecated) 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
|
|
16749
16819
|
: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.
|
|
16750
16820
|
:param log_retention_role: The IAM role for the Lambda function associated with the custom resource that sets the retention policy. 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: - A new role is created.
|
|
16751
16821
|
:param memory_size: The amount of memory, in MB, that is allocated to your Lambda function. Lambda uses this value to proportionally allocate the amount of CPU power. For more information, see Resource Model in the AWS Lambda Developer Guide. Default: 128
|
|
@@ -16835,6 +16905,7 @@ class FunctionProps(FunctionOptions):
|
|
|
16835
16905
|
check_type(argname="argument log_format", value=log_format, expected_type=type_hints["log_format"])
|
|
16836
16906
|
check_type(argname="argument logging_format", value=logging_format, expected_type=type_hints["logging_format"])
|
|
16837
16907
|
check_type(argname="argument log_group", value=log_group, expected_type=type_hints["log_group"])
|
|
16908
|
+
check_type(argname="argument log_removal_policy", value=log_removal_policy, expected_type=type_hints["log_removal_policy"])
|
|
16838
16909
|
check_type(argname="argument log_retention", value=log_retention, expected_type=type_hints["log_retention"])
|
|
16839
16910
|
check_type(argname="argument log_retention_retry_options", value=log_retention_retry_options, expected_type=type_hints["log_retention_retry_options"])
|
|
16840
16911
|
check_type(argname="argument log_retention_role", value=log_retention_role, expected_type=type_hints["log_retention_role"])
|
|
@@ -16922,6 +16993,8 @@ class FunctionProps(FunctionOptions):
|
|
|
16922
16993
|
self._values["logging_format"] = logging_format
|
|
16923
16994
|
if log_group is not None:
|
|
16924
16995
|
self._values["log_group"] = log_group
|
|
16996
|
+
if log_removal_policy is not None:
|
|
16997
|
+
self._values["log_removal_policy"] = log_removal_policy
|
|
16925
16998
|
if log_retention is not None:
|
|
16926
16999
|
self._values["log_retention"] = log_retention
|
|
16927
17000
|
if log_retention_retry_options is not None:
|
|
@@ -17301,9 +17374,27 @@ class FunctionProps(FunctionOptions):
|
|
|
17301
17374
|
result = self._values.get("log_group")
|
|
17302
17375
|
return typing.cast(typing.Optional[_ILogGroup_3c4fa718], result)
|
|
17303
17376
|
|
|
17377
|
+
@builtins.property
|
|
17378
|
+
def log_removal_policy(self) -> typing.Optional[_RemovalPolicy_9f93c814]:
|
|
17379
|
+
'''(deprecated) Determine the removal policy of the log group that is auto-created by this construct.
|
|
17380
|
+
|
|
17381
|
+
Normally you want to retain the log group so you can diagnose issues
|
|
17382
|
+
from logs even after a deployment that no longer includes the log group.
|
|
17383
|
+
In that case, use the normal date-based retention policy to age out your
|
|
17384
|
+
logs.
|
|
17385
|
+
|
|
17386
|
+
:default: RemovalPolicy.Retain
|
|
17387
|
+
|
|
17388
|
+
:deprecated: use ``logGroup`` instead
|
|
17389
|
+
|
|
17390
|
+
:stability: deprecated
|
|
17391
|
+
'''
|
|
17392
|
+
result = self._values.get("log_removal_policy")
|
|
17393
|
+
return typing.cast(typing.Optional[_RemovalPolicy_9f93c814], result)
|
|
17394
|
+
|
|
17304
17395
|
@builtins.property
|
|
17305
17396
|
def log_retention(self) -> typing.Optional[_RetentionDays_070f99f0]:
|
|
17306
|
-
'''The number of days log events are kept in CloudWatch Logs.
|
|
17397
|
+
'''(deprecated) The number of days log events are kept in CloudWatch Logs.
|
|
17307
17398
|
|
|
17308
17399
|
When updating
|
|
17309
17400
|
this property, unsetting it doesn't remove the log retention policy. To
|
|
@@ -17324,6 +17415,10 @@ class FunctionProps(FunctionOptions):
|
|
|
17324
17415
|
my_log_group.log_group_name
|
|
17325
17416
|
|
|
17326
17417
|
:default: logs.RetentionDays.INFINITE
|
|
17418
|
+
|
|
17419
|
+
:deprecated: use ``logGroup`` instead
|
|
17420
|
+
|
|
17421
|
+
:stability: deprecated
|
|
17327
17422
|
'''
|
|
17328
17423
|
result = self._values.get("log_retention")
|
|
17329
17424
|
return typing.cast(typing.Optional[_RetentionDays_070f99f0], result)
|
|
@@ -22994,6 +23089,7 @@ class SchemaRegistryProps:
|
|
|
22994
23089
|
"log_format": "logFormat",
|
|
22995
23090
|
"logging_format": "loggingFormat",
|
|
22996
23091
|
"log_group": "logGroup",
|
|
23092
|
+
"log_removal_policy": "logRemovalPolicy",
|
|
22997
23093
|
"log_retention": "logRetention",
|
|
22998
23094
|
"log_retention_retry_options": "logRetentionRetryOptions",
|
|
22999
23095
|
"log_retention_role": "logRetentionRole",
|
|
@@ -23054,6 +23150,7 @@ class SingletonFunctionProps(FunctionProps):
|
|
|
23054
23150
|
log_format: typing.Optional[builtins.str] = None,
|
|
23055
23151
|
logging_format: typing.Optional[LoggingFormat] = None,
|
|
23056
23152
|
log_group: typing.Optional[_ILogGroup_3c4fa718] = None,
|
|
23153
|
+
log_removal_policy: typing.Optional[_RemovalPolicy_9f93c814] = None,
|
|
23057
23154
|
log_retention: typing.Optional[_RetentionDays_070f99f0] = None,
|
|
23058
23155
|
log_retention_retry_options: typing.Optional[typing.Union[LogRetentionRetryOptions, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
23059
23156
|
log_retention_role: typing.Optional[_IRole_235f5d8e] = None,
|
|
@@ -23111,7 +23208,8 @@ class SingletonFunctionProps(FunctionProps):
|
|
|
23111
23208
|
:param log_format: (deprecated) Sets the logFormat for the function. Default: "Text"
|
|
23112
23209
|
:param logging_format: Sets the loggingFormat for the function. Default: LoggingFormat.TEXT
|
|
23113
23210
|
: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
|
|
23114
|
-
:param
|
|
23211
|
+
:param log_removal_policy: (deprecated) Determine the removal policy of the log group that is auto-created by this construct. Normally you want to retain the log group so you can diagnose issues from logs even after a deployment that no longer includes the log group. In that case, use the normal date-based retention policy to age out your logs. Default: RemovalPolicy.Retain
|
|
23212
|
+
:param log_retention: (deprecated) 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
|
|
23115
23213
|
: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.
|
|
23116
23214
|
:param log_retention_role: The IAM role for the Lambda function associated with the custom resource that sets the retention policy. 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: - A new role is created.
|
|
23117
23215
|
:param memory_size: The amount of memory, in MB, that is allocated to your Lambda function. Lambda uses this value to proportionally allocate the amount of CPU power. For more information, see Resource Model in the AWS Lambda Developer Guide. Default: 128
|
|
@@ -23186,6 +23284,7 @@ class SingletonFunctionProps(FunctionProps):
|
|
|
23186
23284
|
check_type(argname="argument log_format", value=log_format, expected_type=type_hints["log_format"])
|
|
23187
23285
|
check_type(argname="argument logging_format", value=logging_format, expected_type=type_hints["logging_format"])
|
|
23188
23286
|
check_type(argname="argument log_group", value=log_group, expected_type=type_hints["log_group"])
|
|
23287
|
+
check_type(argname="argument log_removal_policy", value=log_removal_policy, expected_type=type_hints["log_removal_policy"])
|
|
23189
23288
|
check_type(argname="argument log_retention", value=log_retention, expected_type=type_hints["log_retention"])
|
|
23190
23289
|
check_type(argname="argument log_retention_retry_options", value=log_retention_retry_options, expected_type=type_hints["log_retention_retry_options"])
|
|
23191
23290
|
check_type(argname="argument log_retention_role", value=log_retention_role, expected_type=type_hints["log_retention_role"])
|
|
@@ -23276,6 +23375,8 @@ class SingletonFunctionProps(FunctionProps):
|
|
|
23276
23375
|
self._values["logging_format"] = logging_format
|
|
23277
23376
|
if log_group is not None:
|
|
23278
23377
|
self._values["log_group"] = log_group
|
|
23378
|
+
if log_removal_policy is not None:
|
|
23379
|
+
self._values["log_removal_policy"] = log_removal_policy
|
|
23279
23380
|
if log_retention is not None:
|
|
23280
23381
|
self._values["log_retention"] = log_retention
|
|
23281
23382
|
if log_retention_retry_options is not None:
|
|
@@ -23657,9 +23758,27 @@ class SingletonFunctionProps(FunctionProps):
|
|
|
23657
23758
|
result = self._values.get("log_group")
|
|
23658
23759
|
return typing.cast(typing.Optional[_ILogGroup_3c4fa718], result)
|
|
23659
23760
|
|
|
23761
|
+
@builtins.property
|
|
23762
|
+
def log_removal_policy(self) -> typing.Optional[_RemovalPolicy_9f93c814]:
|
|
23763
|
+
'''(deprecated) Determine the removal policy of the log group that is auto-created by this construct.
|
|
23764
|
+
|
|
23765
|
+
Normally you want to retain the log group so you can diagnose issues
|
|
23766
|
+
from logs even after a deployment that no longer includes the log group.
|
|
23767
|
+
In that case, use the normal date-based retention policy to age out your
|
|
23768
|
+
logs.
|
|
23769
|
+
|
|
23770
|
+
:default: RemovalPolicy.Retain
|
|
23771
|
+
|
|
23772
|
+
:deprecated: use ``logGroup`` instead
|
|
23773
|
+
|
|
23774
|
+
:stability: deprecated
|
|
23775
|
+
'''
|
|
23776
|
+
result = self._values.get("log_removal_policy")
|
|
23777
|
+
return typing.cast(typing.Optional[_RemovalPolicy_9f93c814], result)
|
|
23778
|
+
|
|
23660
23779
|
@builtins.property
|
|
23661
23780
|
def log_retention(self) -> typing.Optional[_RetentionDays_070f99f0]:
|
|
23662
|
-
'''The number of days log events are kept in CloudWatch Logs.
|
|
23781
|
+
'''(deprecated) The number of days log events are kept in CloudWatch Logs.
|
|
23663
23782
|
|
|
23664
23783
|
When updating
|
|
23665
23784
|
this property, unsetting it doesn't remove the log retention policy. To
|
|
@@ -23680,6 +23799,10 @@ class SingletonFunctionProps(FunctionProps):
|
|
|
23680
23799
|
my_log_group.log_group_name
|
|
23681
23800
|
|
|
23682
23801
|
:default: logs.RetentionDays.INFINITE
|
|
23802
|
+
|
|
23803
|
+
:deprecated: use ``logGroup`` instead
|
|
23804
|
+
|
|
23805
|
+
:stability: deprecated
|
|
23683
23806
|
'''
|
|
23684
23807
|
result = self._values.get("log_retention")
|
|
23685
23808
|
return typing.cast(typing.Optional[_RetentionDays_070f99f0], result)
|
|
@@ -25985,6 +26108,7 @@ class CodeSigningConfig(
|
|
|
25985
26108
|
"log_format": "logFormat",
|
|
25986
26109
|
"logging_format": "loggingFormat",
|
|
25987
26110
|
"log_group": "logGroup",
|
|
26111
|
+
"log_removal_policy": "logRemovalPolicy",
|
|
25988
26112
|
"log_retention": "logRetention",
|
|
25989
26113
|
"log_retention_retry_options": "logRetentionRetryOptions",
|
|
25990
26114
|
"log_retention_role": "logRetentionRole",
|
|
@@ -26041,6 +26165,7 @@ class DockerImageFunctionProps(FunctionOptions):
|
|
|
26041
26165
|
log_format: typing.Optional[builtins.str] = None,
|
|
26042
26166
|
logging_format: typing.Optional[LoggingFormat] = None,
|
|
26043
26167
|
log_group: typing.Optional[_ILogGroup_3c4fa718] = None,
|
|
26168
|
+
log_removal_policy: typing.Optional[_RemovalPolicy_9f93c814] = None,
|
|
26044
26169
|
log_retention: typing.Optional[_RetentionDays_070f99f0] = None,
|
|
26045
26170
|
log_retention_retry_options: typing.Optional[typing.Union[LogRetentionRetryOptions, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
26046
26171
|
log_retention_role: typing.Optional[_IRole_235f5d8e] = None,
|
|
@@ -26094,7 +26219,8 @@ class DockerImageFunctionProps(FunctionOptions):
|
|
|
26094
26219
|
:param log_format: (deprecated) Sets the logFormat for the function. Default: "Text"
|
|
26095
26220
|
:param logging_format: Sets the loggingFormat for the function. Default: LoggingFormat.TEXT
|
|
26096
26221
|
: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
|
|
26097
|
-
:param
|
|
26222
|
+
:param log_removal_policy: (deprecated) Determine the removal policy of the log group that is auto-created by this construct. Normally you want to retain the log group so you can diagnose issues from logs even after a deployment that no longer includes the log group. In that case, use the normal date-based retention policy to age out your logs. Default: RemovalPolicy.Retain
|
|
26223
|
+
:param log_retention: (deprecated) 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
|
|
26098
26224
|
: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.
|
|
26099
26225
|
:param log_retention_role: The IAM role for the Lambda function associated with the custom resource that sets the retention policy. 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: - A new role is created.
|
|
26100
26226
|
:param memory_size: The amount of memory, in MB, that is allocated to your Lambda function. Lambda uses this value to proportionally allocate the amount of CPU power. For more information, see Resource Model in the AWS Lambda Developer Guide. Default: 128
|
|
@@ -26163,6 +26289,7 @@ class DockerImageFunctionProps(FunctionOptions):
|
|
|
26163
26289
|
check_type(argname="argument log_format", value=log_format, expected_type=type_hints["log_format"])
|
|
26164
26290
|
check_type(argname="argument logging_format", value=logging_format, expected_type=type_hints["logging_format"])
|
|
26165
26291
|
check_type(argname="argument log_group", value=log_group, expected_type=type_hints["log_group"])
|
|
26292
|
+
check_type(argname="argument log_removal_policy", value=log_removal_policy, expected_type=type_hints["log_removal_policy"])
|
|
26166
26293
|
check_type(argname="argument log_retention", value=log_retention, expected_type=type_hints["log_retention"])
|
|
26167
26294
|
check_type(argname="argument log_retention_retry_options", value=log_retention_retry_options, expected_type=type_hints["log_retention_retry_options"])
|
|
26168
26295
|
check_type(argname="argument log_retention_role", value=log_retention_role, expected_type=type_hints["log_retention_role"])
|
|
@@ -26246,6 +26373,8 @@ class DockerImageFunctionProps(FunctionOptions):
|
|
|
26246
26373
|
self._values["logging_format"] = logging_format
|
|
26247
26374
|
if log_group is not None:
|
|
26248
26375
|
self._values["log_group"] = log_group
|
|
26376
|
+
if log_removal_policy is not None:
|
|
26377
|
+
self._values["log_removal_policy"] = log_removal_policy
|
|
26249
26378
|
if log_retention is not None:
|
|
26250
26379
|
self._values["log_retention"] = log_retention
|
|
26251
26380
|
if log_retention_retry_options is not None:
|
|
@@ -26625,9 +26754,27 @@ class DockerImageFunctionProps(FunctionOptions):
|
|
|
26625
26754
|
result = self._values.get("log_group")
|
|
26626
26755
|
return typing.cast(typing.Optional[_ILogGroup_3c4fa718], result)
|
|
26627
26756
|
|
|
26757
|
+
@builtins.property
|
|
26758
|
+
def log_removal_policy(self) -> typing.Optional[_RemovalPolicy_9f93c814]:
|
|
26759
|
+
'''(deprecated) Determine the removal policy of the log group that is auto-created by this construct.
|
|
26760
|
+
|
|
26761
|
+
Normally you want to retain the log group so you can diagnose issues
|
|
26762
|
+
from logs even after a deployment that no longer includes the log group.
|
|
26763
|
+
In that case, use the normal date-based retention policy to age out your
|
|
26764
|
+
logs.
|
|
26765
|
+
|
|
26766
|
+
:default: RemovalPolicy.Retain
|
|
26767
|
+
|
|
26768
|
+
:deprecated: use ``logGroup`` instead
|
|
26769
|
+
|
|
26770
|
+
:stability: deprecated
|
|
26771
|
+
'''
|
|
26772
|
+
result = self._values.get("log_removal_policy")
|
|
26773
|
+
return typing.cast(typing.Optional[_RemovalPolicy_9f93c814], result)
|
|
26774
|
+
|
|
26628
26775
|
@builtins.property
|
|
26629
26776
|
def log_retention(self) -> typing.Optional[_RetentionDays_070f99f0]:
|
|
26630
|
-
'''The number of days log events are kept in CloudWatch Logs.
|
|
26777
|
+
'''(deprecated) The number of days log events are kept in CloudWatch Logs.
|
|
26631
26778
|
|
|
26632
26779
|
When updating
|
|
26633
26780
|
this property, unsetting it doesn't remove the log retention policy. To
|
|
@@ -26648,6 +26795,10 @@ class DockerImageFunctionProps(FunctionOptions):
|
|
|
26648
26795
|
my_log_group.log_group_name
|
|
26649
26796
|
|
|
26650
26797
|
:default: logs.RetentionDays.INFINITE
|
|
26798
|
+
|
|
26799
|
+
:deprecated: use ``logGroup`` instead
|
|
26800
|
+
|
|
26801
|
+
:stability: deprecated
|
|
26651
26802
|
'''
|
|
26652
26803
|
result = self._values.get("log_retention")
|
|
26653
26804
|
return typing.cast(typing.Optional[_RetentionDays_070f99f0], result)
|
|
@@ -28194,6 +28345,7 @@ class SingletonFunction(
|
|
|
28194
28345
|
log_format: typing.Optional[builtins.str] = None,
|
|
28195
28346
|
logging_format: typing.Optional[LoggingFormat] = None,
|
|
28196
28347
|
log_group: typing.Optional[_ILogGroup_3c4fa718] = None,
|
|
28348
|
+
log_removal_policy: typing.Optional[_RemovalPolicy_9f93c814] = None,
|
|
28197
28349
|
log_retention: typing.Optional[_RetentionDays_070f99f0] = None,
|
|
28198
28350
|
log_retention_retry_options: typing.Optional[typing.Union[LogRetentionRetryOptions, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
28199
28351
|
log_retention_role: typing.Optional[_IRole_235f5d8e] = None,
|
|
@@ -28252,7 +28404,8 @@ class SingletonFunction(
|
|
|
28252
28404
|
:param log_format: (deprecated) Sets the logFormat for the function. Default: "Text"
|
|
28253
28405
|
:param logging_format: Sets the loggingFormat for the function. Default: LoggingFormat.TEXT
|
|
28254
28406
|
: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
|
|
28255
|
-
:param
|
|
28407
|
+
:param log_removal_policy: (deprecated) Determine the removal policy of the log group that is auto-created by this construct. Normally you want to retain the log group so you can diagnose issues from logs even after a deployment that no longer includes the log group. In that case, use the normal date-based retention policy to age out your logs. Default: RemovalPolicy.Retain
|
|
28408
|
+
:param log_retention: (deprecated) 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
|
|
28256
28409
|
: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.
|
|
28257
28410
|
:param log_retention_role: The IAM role for the Lambda function associated with the custom resource that sets the retention policy. 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: - A new role is created.
|
|
28258
28411
|
:param memory_size: The amount of memory, in MB, that is allocated to your Lambda function. Lambda uses this value to proportionally allocate the amount of CPU power. For more information, see Resource Model in the AWS Lambda Developer Guide. Default: 128
|
|
@@ -28312,6 +28465,7 @@ class SingletonFunction(
|
|
|
28312
28465
|
log_format=log_format,
|
|
28313
28466
|
logging_format=logging_format,
|
|
28314
28467
|
log_group=log_group,
|
|
28468
|
+
log_removal_policy=log_removal_policy,
|
|
28315
28469
|
log_retention=log_retention,
|
|
28316
28470
|
log_retention_retry_options=log_retention_retry_options,
|
|
28317
28471
|
log_retention_role=log_retention_role,
|
|
@@ -29230,6 +29384,7 @@ class Function(
|
|
|
29230
29384
|
log_format: typing.Optional[builtins.str] = None,
|
|
29231
29385
|
logging_format: typing.Optional[LoggingFormat] = None,
|
|
29232
29386
|
log_group: typing.Optional[_ILogGroup_3c4fa718] = None,
|
|
29387
|
+
log_removal_policy: typing.Optional[_RemovalPolicy_9f93c814] = None,
|
|
29233
29388
|
log_retention: typing.Optional[_RetentionDays_070f99f0] = None,
|
|
29234
29389
|
log_retention_retry_options: typing.Optional[typing.Union[LogRetentionRetryOptions, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
29235
29390
|
log_retention_role: typing.Optional[_IRole_235f5d8e] = None,
|
|
@@ -29286,7 +29441,8 @@ class Function(
|
|
|
29286
29441
|
:param log_format: (deprecated) Sets the logFormat for the function. Default: "Text"
|
|
29287
29442
|
:param logging_format: Sets the loggingFormat for the function. Default: LoggingFormat.TEXT
|
|
29288
29443
|
: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
|
|
29289
|
-
:param
|
|
29444
|
+
:param log_removal_policy: (deprecated) Determine the removal policy of the log group that is auto-created by this construct. Normally you want to retain the log group so you can diagnose issues from logs even after a deployment that no longer includes the log group. In that case, use the normal date-based retention policy to age out your logs. Default: RemovalPolicy.Retain
|
|
29445
|
+
:param log_retention: (deprecated) 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
|
|
29290
29446
|
: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.
|
|
29291
29447
|
:param log_retention_role: The IAM role for the Lambda function associated with the custom resource that sets the retention policy. 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: - A new role is created.
|
|
29292
29448
|
:param memory_size: The amount of memory, in MB, that is allocated to your Lambda function. Lambda uses this value to proportionally allocate the amount of CPU power. For more information, see Resource Model in the AWS Lambda Developer Guide. Default: 128
|
|
@@ -29344,6 +29500,7 @@ class Function(
|
|
|
29344
29500
|
log_format=log_format,
|
|
29345
29501
|
logging_format=logging_format,
|
|
29346
29502
|
log_group=log_group,
|
|
29503
|
+
log_removal_policy=log_removal_policy,
|
|
29347
29504
|
log_retention=log_retention,
|
|
29348
29505
|
log_retention_retry_options=log_retention_retry_options,
|
|
29349
29506
|
log_retention_role=log_retention_role,
|
|
@@ -30076,6 +30233,7 @@ class DockerImageFunction(
|
|
|
30076
30233
|
log_format: typing.Optional[builtins.str] = None,
|
|
30077
30234
|
logging_format: typing.Optional[LoggingFormat] = None,
|
|
30078
30235
|
log_group: typing.Optional[_ILogGroup_3c4fa718] = None,
|
|
30236
|
+
log_removal_policy: typing.Optional[_RemovalPolicy_9f93c814] = None,
|
|
30079
30237
|
log_retention: typing.Optional[_RetentionDays_070f99f0] = None,
|
|
30080
30238
|
log_retention_retry_options: typing.Optional[typing.Union[LogRetentionRetryOptions, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
30081
30239
|
log_retention_role: typing.Optional[_IRole_235f5d8e] = None,
|
|
@@ -30130,7 +30288,8 @@ class DockerImageFunction(
|
|
|
30130
30288
|
:param log_format: (deprecated) Sets the logFormat for the function. Default: "Text"
|
|
30131
30289
|
:param logging_format: Sets the loggingFormat for the function. Default: LoggingFormat.TEXT
|
|
30132
30290
|
: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
|
|
30133
|
-
:param
|
|
30291
|
+
:param log_removal_policy: (deprecated) Determine the removal policy of the log group that is auto-created by this construct. Normally you want to retain the log group so you can diagnose issues from logs even after a deployment that no longer includes the log group. In that case, use the normal date-based retention policy to age out your logs. Default: RemovalPolicy.Retain
|
|
30292
|
+
:param log_retention: (deprecated) 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
|
|
30134
30293
|
: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.
|
|
30135
30294
|
:param log_retention_role: The IAM role for the Lambda function associated with the custom resource that sets the retention policy. 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: - A new role is created.
|
|
30136
30295
|
:param memory_size: The amount of memory, in MB, that is allocated to your Lambda function. Lambda uses this value to proportionally allocate the amount of CPU power. For more information, see Resource Model in the AWS Lambda Developer Guide. Default: 128
|
|
@@ -30186,6 +30345,7 @@ class DockerImageFunction(
|
|
|
30186
30345
|
log_format=log_format,
|
|
30187
30346
|
logging_format=logging_format,
|
|
30188
30347
|
log_group=log_group,
|
|
30348
|
+
log_removal_policy=log_removal_policy,
|
|
30189
30349
|
log_retention=log_retention,
|
|
30190
30350
|
log_retention_retry_options=log_retention_retry_options,
|
|
30191
30351
|
log_retention_role=log_retention_role,
|
|
@@ -32341,6 +32501,7 @@ def _typecheckingstub__59918bb957d892739733c7a5849db990615fe5329709ad7ba703e0ee4
|
|
|
32341
32501
|
log_format: typing.Optional[builtins.str] = None,
|
|
32342
32502
|
logging_format: typing.Optional[LoggingFormat] = None,
|
|
32343
32503
|
log_group: typing.Optional[_ILogGroup_3c4fa718] = None,
|
|
32504
|
+
log_removal_policy: typing.Optional[_RemovalPolicy_9f93c814] = None,
|
|
32344
32505
|
log_retention: typing.Optional[_RetentionDays_070f99f0] = None,
|
|
32345
32506
|
log_retention_retry_options: typing.Optional[typing.Union[LogRetentionRetryOptions, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
32346
32507
|
log_retention_role: typing.Optional[_IRole_235f5d8e] = None,
|
|
@@ -32396,6 +32557,7 @@ def _typecheckingstub__94e70d11aa3c53737d418dbb9983973dfc06dbdef5c8cc30613cc3c6d
|
|
|
32396
32557
|
log_format: typing.Optional[builtins.str] = None,
|
|
32397
32558
|
logging_format: typing.Optional[LoggingFormat] = None,
|
|
32398
32559
|
log_group: typing.Optional[_ILogGroup_3c4fa718] = None,
|
|
32560
|
+
log_removal_policy: typing.Optional[_RemovalPolicy_9f93c814] = None,
|
|
32399
32561
|
log_retention: typing.Optional[_RetentionDays_070f99f0] = None,
|
|
32400
32562
|
log_retention_retry_options: typing.Optional[typing.Union[LogRetentionRetryOptions, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
32401
32563
|
log_retention_role: typing.Optional[_IRole_235f5d8e] = None,
|
|
@@ -32983,6 +33145,7 @@ def _typecheckingstub__68a03ec9f866a29c77aabcf8328c63a49511790fa9714874f255b3292
|
|
|
32983
33145
|
log_format: typing.Optional[builtins.str] = None,
|
|
32984
33146
|
logging_format: typing.Optional[LoggingFormat] = None,
|
|
32985
33147
|
log_group: typing.Optional[_ILogGroup_3c4fa718] = None,
|
|
33148
|
+
log_removal_policy: typing.Optional[_RemovalPolicy_9f93c814] = None,
|
|
32986
33149
|
log_retention: typing.Optional[_RetentionDays_070f99f0] = None,
|
|
32987
33150
|
log_retention_retry_options: typing.Optional[typing.Union[LogRetentionRetryOptions, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
32988
33151
|
log_retention_role: typing.Optional[_IRole_235f5d8e] = None,
|
|
@@ -33239,6 +33402,7 @@ def _typecheckingstub__04dd97f4b18c00e7ee0981f2428664401ae0b75dbda6102ea3ef53d08
|
|
|
33239
33402
|
log_format: typing.Optional[builtins.str] = None,
|
|
33240
33403
|
logging_format: typing.Optional[LoggingFormat] = None,
|
|
33241
33404
|
log_group: typing.Optional[_ILogGroup_3c4fa718] = None,
|
|
33405
|
+
log_removal_policy: typing.Optional[_RemovalPolicy_9f93c814] = None,
|
|
33242
33406
|
log_retention: typing.Optional[_RetentionDays_070f99f0] = None,
|
|
33243
33407
|
log_retention_retry_options: typing.Optional[typing.Union[LogRetentionRetryOptions, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
33244
33408
|
log_retention_role: typing.Optional[_IRole_235f5d8e] = None,
|
|
@@ -33507,6 +33671,7 @@ def _typecheckingstub__e7b766bff13bb7266787cec9bebb600187e19c1672e530bb9cfa31649
|
|
|
33507
33671
|
log_format: typing.Optional[builtins.str] = None,
|
|
33508
33672
|
logging_format: typing.Optional[LoggingFormat] = None,
|
|
33509
33673
|
log_group: typing.Optional[_ILogGroup_3c4fa718] = None,
|
|
33674
|
+
log_removal_policy: typing.Optional[_RemovalPolicy_9f93c814] = None,
|
|
33510
33675
|
log_retention: typing.Optional[_RetentionDays_070f99f0] = None,
|
|
33511
33676
|
log_retention_retry_options: typing.Optional[typing.Union[LogRetentionRetryOptions, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
33512
33677
|
log_retention_role: typing.Optional[_IRole_235f5d8e] = None,
|
|
@@ -33729,6 +33894,7 @@ def _typecheckingstub__724895b6b59aaf2b678ef25f2beca19fb114fc04ff6b37edef28e12b3
|
|
|
33729
33894
|
log_format: typing.Optional[builtins.str] = None,
|
|
33730
33895
|
logging_format: typing.Optional[LoggingFormat] = None,
|
|
33731
33896
|
log_group: typing.Optional[_ILogGroup_3c4fa718] = None,
|
|
33897
|
+
log_removal_policy: typing.Optional[_RemovalPolicy_9f93c814] = None,
|
|
33732
33898
|
log_retention: typing.Optional[_RetentionDays_070f99f0] = None,
|
|
33733
33899
|
log_retention_retry_options: typing.Optional[typing.Union[LogRetentionRetryOptions, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
33734
33900
|
log_retention_role: typing.Optional[_IRole_235f5d8e] = None,
|
|
@@ -33876,6 +34042,7 @@ def _typecheckingstub__368a49fe1f866c7ea7986c57b6f8488d0fddea8f62bf05ec1ed7eb09b
|
|
|
33876
34042
|
log_format: typing.Optional[builtins.str] = None,
|
|
33877
34043
|
logging_format: typing.Optional[LoggingFormat] = None,
|
|
33878
34044
|
log_group: typing.Optional[_ILogGroup_3c4fa718] = None,
|
|
34045
|
+
log_removal_policy: typing.Optional[_RemovalPolicy_9f93c814] = None,
|
|
33879
34046
|
log_retention: typing.Optional[_RetentionDays_070f99f0] = None,
|
|
33880
34047
|
log_retention_retry_options: typing.Optional[typing.Union[LogRetentionRetryOptions, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
33881
34048
|
log_retention_role: typing.Optional[_IRole_235f5d8e] = None,
|