aws-cdk-lib 2.201.0__py3-none-any.whl → 2.203.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 +70 -71
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.201.0.jsii.tgz → aws-cdk-lib@2.203.0.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_athena/__init__.py +12 -11
- 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 +92 -57
- aws_cdk/aws_cloudfront/experimental/__init__.py +42 -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 +150 -30
- 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 +321 -19
- aws_cdk/aws_ecr/__init__.py +3 -3
- aws_cdk/aws_ecs/__init__.py +48 -13
- aws_cdk/aws_efs/__init__.py +17 -6
- aws_cdk/aws_eks/__init__.py +180 -158
- 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_glue/__init__.py +58 -24
- aws_cdk/aws_iam/__init__.py +11 -11
- aws_cdk/aws_inspectorv2/__init__.py +442 -3
- aws_cdk/aws_kendra/__init__.py +10 -5
- aws_cdk/aws_kms/__init__.py +24 -12
- aws_cdk/aws_lambda/__init__.py +938 -36
- aws_cdk/aws_lambda_event_sources/__init__.py +638 -1
- 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_msk/__init__.py +21 -2
- aws_cdk/aws_mwaa/__init__.py +45 -2
- 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 +175 -42
- aws_cdk/aws_redshiftserverless/__init__.py +632 -0
- aws_cdk/aws_route53resolver/__init__.py +58 -10
- aws_cdk/aws_s3/__init__.py +19 -1
- aws_cdk/aws_s3tables/__init__.py +230 -0
- aws_cdk/aws_sagemaker/__init__.py +14 -10
- 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 +849 -18
- aws_cdk/aws_workspacesinstances/__init__.py +3243 -0
- aws_cdk/cloud_assembly_schema/__init__.py +200 -4
- aws_cdk/cx_api/__init__.py +29 -14
- aws_cdk/pipelines/__init__.py +178 -41
- aws_cdk/triggers/__init__.py +41 -4
- {aws_cdk_lib-2.201.0.dist-info → aws_cdk_lib-2.203.0.dist-info}/METADATA +3 -3
- {aws_cdk_lib-2.201.0.dist-info → aws_cdk_lib-2.203.0.dist-info}/RECORD +69 -66
- {aws_cdk_lib-2.201.0.dist-info → aws_cdk_lib-2.203.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.201.0.dist-info → aws_cdk_lib-2.203.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.201.0.dist-info → aws_cdk_lib-2.203.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.201.0.dist-info → aws_cdk_lib-2.203.0.dist-info}/top_level.txt +0 -0
|
@@ -1295,7 +1295,25 @@ When using a CloudFront PublicKey, only the `comment` field can be updated after
|
|
|
1295
1295
|
Resource handler returned message: "Invalid request provided: AWS::CloudFront::PublicKey"
|
|
1296
1296
|
```
|
|
1297
1297
|
|
|
1298
|
-
To update the `encodedKey`, you must change the
|
|
1298
|
+
To update the `encodedKey`, you must change the ID of the public key resource in your template. This causes CloudFormation to create a new `cloudfront.PublicKey` resource and delete the old one during the next deployment.
|
|
1299
|
+
|
|
1300
|
+
Example:
|
|
1301
|
+
|
|
1302
|
+
```python
|
|
1303
|
+
# Step 1: Original deployment
|
|
1304
|
+
original_key = cloudfront.PublicKey(self, "MyPublicKeyV1",
|
|
1305
|
+
encoded_key="..."
|
|
1306
|
+
)
|
|
1307
|
+
```
|
|
1308
|
+
|
|
1309
|
+
Regenerate a new key and change the construct id in the code:
|
|
1310
|
+
|
|
1311
|
+
```python
|
|
1312
|
+
# Step 2: In a subsequent deployment, create a new key with a different ID
|
|
1313
|
+
updated_key = cloudfront.PublicKey(self, "MyPublicKeyV2",
|
|
1314
|
+
encoded_key="..."
|
|
1315
|
+
)
|
|
1316
|
+
```
|
|
1299
1317
|
|
|
1300
1318
|
See:
|
|
1301
1319
|
|
|
@@ -6591,9 +6609,9 @@ class CfnDistribution(
|
|
|
6591
6609
|
:param origin_protocol_policy: Specifies the protocol (HTTP or HTTPS) that CloudFront uses to connect to the origin. Valid values are:. - ``http-only`` – CloudFront always uses HTTP to connect to the origin. - ``match-viewer`` – CloudFront connects to the origin using the same protocol that the viewer used to connect to CloudFront. - ``https-only`` – CloudFront always uses HTTPS to connect to the origin.
|
|
6592
6610
|
:param http_port: The HTTP port that CloudFront uses to connect to the origin. Specify the HTTP port that the origin listens on. Default: - 80
|
|
6593
6611
|
:param https_port: The HTTPS port that CloudFront uses to connect to the origin. Specify the HTTPS port that the origin listens on. Default: - 443
|
|
6594
|
-
:param origin_keepalive_timeout: Specifies how long, in seconds, CloudFront persists its connection to the origin. The minimum timeout is 1 second, the maximum is 60 seconds, and the default (if you don't specify otherwise) is 5 seconds. For more information, see `Keep-alive timeout (custom origins only) <https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/
|
|
6595
|
-
:param origin_read_timeout: Specifies how long, in seconds, CloudFront waits for a response from the origin. This is also known as the *origin response timeout* . The minimum timeout is 1 second, the maximum is 60 seconds, and the default (if you don't specify otherwise) is 30 seconds. For more information, see `Response timeout (custom origins only) <https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/
|
|
6596
|
-
:param origin_ssl_protocols: Specifies the minimum SSL/TLS protocol that CloudFront uses when connecting to your origin over HTTPS. Valid values include ``SSLv3`` , ``TLSv1`` , ``TLSv1.1`` , and ``TLSv1.2`` . For more information, see `Minimum Origin SSL Protocol <https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/
|
|
6612
|
+
:param origin_keepalive_timeout: Specifies how long, in seconds, CloudFront persists its connection to the origin. The minimum timeout is 1 second, the maximum is 60 seconds, and the default (if you don't specify otherwise) is 5 seconds. For more information, see `Keep-alive timeout (custom origins only) <https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/DownloadDistValuesOrigin.html#DownloadDistValuesOriginKeepaliveTimeout>`_ in the *Amazon CloudFront Developer Guide* . Default: - 5
|
|
6613
|
+
:param origin_read_timeout: Specifies how long, in seconds, CloudFront waits for a response from the origin. This is also known as the *origin response timeout* . The minimum timeout is 1 second, the maximum is 60 seconds, and the default (if you don't specify otherwise) is 30 seconds. For more information, see `Response timeout (custom origins only) <https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/DownloadDistValuesOrigin.html#DownloadDistValuesOriginResponseTimeout>`_ in the *Amazon CloudFront Developer Guide* . Default: - 30
|
|
6614
|
+
:param origin_ssl_protocols: Specifies the minimum SSL/TLS protocol that CloudFront uses when connecting to your origin over HTTPS. Valid values include ``SSLv3`` , ``TLSv1`` , ``TLSv1.1`` , and ``TLSv1.2`` . For more information, see `Minimum Origin SSL Protocol <https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/DownloadDistValuesOrigin.html#DownloadDistValuesOriginSSLProtocols>`_ in the *Amazon CloudFront Developer Guide* .
|
|
6597
6615
|
|
|
6598
6616
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-customoriginconfig.html
|
|
6599
6617
|
:exampleMetadata: fixture=_generated
|
|
@@ -6683,7 +6701,7 @@ class CfnDistribution(
|
|
|
6683
6701
|
|
|
6684
6702
|
The minimum timeout is 1 second, the maximum is 60 seconds, and the default (if you don't specify otherwise) is 5 seconds.
|
|
6685
6703
|
|
|
6686
|
-
For more information, see `Keep-alive timeout (custom origins only) <https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/
|
|
6704
|
+
For more information, see `Keep-alive timeout (custom origins only) <https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/DownloadDistValuesOrigin.html#DownloadDistValuesOriginKeepaliveTimeout>`_ in the *Amazon CloudFront Developer Guide* .
|
|
6687
6705
|
|
|
6688
6706
|
:default: - 5
|
|
6689
6707
|
|
|
@@ -6698,7 +6716,7 @@ class CfnDistribution(
|
|
|
6698
6716
|
|
|
6699
6717
|
This is also known as the *origin response timeout* . The minimum timeout is 1 second, the maximum is 60 seconds, and the default (if you don't specify otherwise) is 30 seconds.
|
|
6700
6718
|
|
|
6701
|
-
For more information, see `Response timeout (custom origins only) <https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/
|
|
6719
|
+
For more information, see `Response timeout (custom origins only) <https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/DownloadDistValuesOrigin.html#DownloadDistValuesOriginResponseTimeout>`_ in the *Amazon CloudFront Developer Guide* .
|
|
6702
6720
|
|
|
6703
6721
|
:default: - 30
|
|
6704
6722
|
|
|
@@ -6713,7 +6731,7 @@ class CfnDistribution(
|
|
|
6713
6731
|
|
|
6714
6732
|
Valid values include ``SSLv3`` , ``TLSv1`` , ``TLSv1.1`` , and ``TLSv1.2`` .
|
|
6715
6733
|
|
|
6716
|
-
For more information, see `Minimum Origin SSL Protocol <https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/
|
|
6734
|
+
For more information, see `Minimum Origin SSL Protocol <https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/DownloadDistValuesOrigin.html#DownloadDistValuesOriginSSLProtocols>`_ in the *Amazon CloudFront Developer Guide* .
|
|
6717
6735
|
|
|
6718
6736
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-customoriginconfig.html#cfn-cloudfront-distribution-customoriginconfig-originsslprotocols
|
|
6719
6737
|
'''
|
|
@@ -7555,8 +7573,10 @@ class CfnDistribution(
|
|
|
7555
7573
|
enabled=False,
|
|
7556
7574
|
origin_shield_region="originShieldRegion"
|
|
7557
7575
|
),
|
|
7576
|
+
response_completion_timeout=123,
|
|
7558
7577
|
s3_origin_config=cloudfront.CfnDistribution.S3OriginConfigProperty(
|
|
7559
|
-
origin_access_identity="originAccessIdentity"
|
|
7578
|
+
origin_access_identity="originAccessIdentity",
|
|
7579
|
+
origin_read_timeout=123
|
|
7560
7580
|
),
|
|
7561
7581
|
vpc_origin_config=cloudfront.CfnDistribution.VpcOriginConfigProperty(
|
|
7562
7582
|
vpc_origin_id="vpcOriginId",
|
|
@@ -9325,6 +9345,7 @@ class CfnDistribution(
|
|
|
9325
9345
|
"origin_custom_headers": "originCustomHeaders",
|
|
9326
9346
|
"origin_path": "originPath",
|
|
9327
9347
|
"origin_shield": "originShield",
|
|
9348
|
+
"response_completion_timeout": "responseCompletionTimeout",
|
|
9328
9349
|
"s3_origin_config": "s3OriginConfig",
|
|
9329
9350
|
"vpc_origin_config": "vpcOriginConfig",
|
|
9330
9351
|
},
|
|
@@ -9342,6 +9363,7 @@ class CfnDistribution(
|
|
|
9342
9363
|
origin_custom_headers: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnDistribution.OriginCustomHeaderProperty", typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
9343
9364
|
origin_path: typing.Optional[builtins.str] = None,
|
|
9344
9365
|
origin_shield: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnDistribution.OriginShieldProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
9366
|
+
response_completion_timeout: typing.Optional[jsii.Number] = None,
|
|
9345
9367
|
s3_origin_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnDistribution.S3OriginConfigProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
9346
9368
|
vpc_origin_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnDistribution.VpcOriginConfigProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
9347
9369
|
) -> None:
|
|
@@ -9369,6 +9391,7 @@ class CfnDistribution(
|
|
|
9369
9391
|
:param origin_custom_headers: A list of HTTP header names and values that CloudFront adds to the requests that it sends to the origin. For more information, see `Adding Custom Headers to Origin Requests <https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/add-origin-custom-headers.html>`_ in the *Amazon CloudFront Developer Guide* .
|
|
9370
9392
|
:param origin_path: An optional path that CloudFront appends to the origin domain name when CloudFront requests content from the origin. For more information, see `Origin Path <https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#DownloadDistValuesOriginPath>`_ in the *Amazon CloudFront Developer Guide* . Default: - ""
|
|
9371
9393
|
:param origin_shield: CloudFront Origin Shield. Using Origin Shield can help reduce the load on your origin. For more information, see `Using Origin Shield <https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/origin-shield.html>`_ in the *Amazon CloudFront Developer Guide* .
|
|
9394
|
+
:param response_completion_timeout:
|
|
9372
9395
|
:param s3_origin_config: Use this type to specify an origin that is an Amazon S3 bucket that is not configured with static website hosting. To specify any other type of origin, including an Amazon S3 bucket that is configured with static website hosting, use the ``CustomOriginConfig`` type instead.
|
|
9373
9396
|
:param vpc_origin_config: The VPC origin configuration.
|
|
9374
9397
|
|
|
@@ -9408,8 +9431,10 @@ class CfnDistribution(
|
|
|
9408
9431
|
enabled=False,
|
|
9409
9432
|
origin_shield_region="originShieldRegion"
|
|
9410
9433
|
),
|
|
9434
|
+
response_completion_timeout=123,
|
|
9411
9435
|
s3_origin_config=cloudfront.CfnDistribution.S3OriginConfigProperty(
|
|
9412
|
-
origin_access_identity="originAccessIdentity"
|
|
9436
|
+
origin_access_identity="originAccessIdentity",
|
|
9437
|
+
origin_read_timeout=123
|
|
9413
9438
|
),
|
|
9414
9439
|
vpc_origin_config=cloudfront.CfnDistribution.VpcOriginConfigProperty(
|
|
9415
9440
|
vpc_origin_id="vpcOriginId",
|
|
@@ -9431,6 +9456,7 @@ class CfnDistribution(
|
|
|
9431
9456
|
check_type(argname="argument origin_custom_headers", value=origin_custom_headers, expected_type=type_hints["origin_custom_headers"])
|
|
9432
9457
|
check_type(argname="argument origin_path", value=origin_path, expected_type=type_hints["origin_path"])
|
|
9433
9458
|
check_type(argname="argument origin_shield", value=origin_shield, expected_type=type_hints["origin_shield"])
|
|
9459
|
+
check_type(argname="argument response_completion_timeout", value=response_completion_timeout, expected_type=type_hints["response_completion_timeout"])
|
|
9434
9460
|
check_type(argname="argument s3_origin_config", value=s3_origin_config, expected_type=type_hints["s3_origin_config"])
|
|
9435
9461
|
check_type(argname="argument vpc_origin_config", value=vpc_origin_config, expected_type=type_hints["vpc_origin_config"])
|
|
9436
9462
|
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
@@ -9451,6 +9477,8 @@ class CfnDistribution(
|
|
|
9451
9477
|
self._values["origin_path"] = origin_path
|
|
9452
9478
|
if origin_shield is not None:
|
|
9453
9479
|
self._values["origin_shield"] = origin_shield
|
|
9480
|
+
if response_completion_timeout is not None:
|
|
9481
|
+
self._values["response_completion_timeout"] = response_completion_timeout
|
|
9454
9482
|
if s3_origin_config is not None:
|
|
9455
9483
|
self._values["s3_origin_config"] = s3_origin_config
|
|
9456
9484
|
if vpc_origin_config is not None:
|
|
@@ -9571,6 +9599,14 @@ class CfnDistribution(
|
|
|
9571
9599
|
result = self._values.get("origin_shield")
|
|
9572
9600
|
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnDistribution.OriginShieldProperty"]], result)
|
|
9573
9601
|
|
|
9602
|
+
@builtins.property
|
|
9603
|
+
def response_completion_timeout(self) -> typing.Optional[jsii.Number]:
|
|
9604
|
+
'''
|
|
9605
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origin.html#cfn-cloudfront-distribution-origin-responsecompletiontimeout
|
|
9606
|
+
'''
|
|
9607
|
+
result = self._values.get("response_completion_timeout")
|
|
9608
|
+
return typing.cast(typing.Optional[jsii.Number], result)
|
|
9609
|
+
|
|
9574
9610
|
@builtins.property
|
|
9575
9611
|
def s3_origin_config(
|
|
9576
9612
|
self,
|
|
@@ -9840,19 +9876,24 @@ class CfnDistribution(
|
|
|
9840
9876
|
@jsii.data_type(
|
|
9841
9877
|
jsii_type="aws-cdk-lib.aws_cloudfront.CfnDistribution.S3OriginConfigProperty",
|
|
9842
9878
|
jsii_struct_bases=[],
|
|
9843
|
-
name_mapping={
|
|
9879
|
+
name_mapping={
|
|
9880
|
+
"origin_access_identity": "originAccessIdentity",
|
|
9881
|
+
"origin_read_timeout": "originReadTimeout",
|
|
9882
|
+
},
|
|
9844
9883
|
)
|
|
9845
9884
|
class S3OriginConfigProperty:
|
|
9846
9885
|
def __init__(
|
|
9847
9886
|
self,
|
|
9848
9887
|
*,
|
|
9849
9888
|
origin_access_identity: typing.Optional[builtins.str] = None,
|
|
9889
|
+
origin_read_timeout: typing.Optional[jsii.Number] = None,
|
|
9850
9890
|
) -> None:
|
|
9851
9891
|
'''A complex type that contains information about the Amazon S3 origin.
|
|
9852
9892
|
|
|
9853
9893
|
If the origin is a custom origin or an S3 bucket that is configured as a website endpoint, use the ``CustomOriginConfig`` element instead.
|
|
9854
9894
|
|
|
9855
9895
|
:param origin_access_identity: .. epigraph:: If you're using origin access control (OAC) instead of origin access identity, specify an empty ``OriginAccessIdentity`` element. For more information, see `Restricting access to an AWS <https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-restricting-access-to-origin.html>`_ in the *Amazon CloudFront Developer Guide* . The CloudFront origin access identity to associate with the origin. Use an origin access identity to configure the origin so that viewers can *only* access objects in an Amazon S3 bucket through CloudFront. The format of the value is: ``origin-access-identity/cloudfront/ID-of-origin-access-identity`` The ``*ID-of-origin-access-identity*`` is the value that CloudFront returned in the ``ID`` element when you created the origin access identity. If you want viewers to be able to access objects using either the CloudFront URL or the Amazon S3 URL, specify an empty ``OriginAccessIdentity`` element. To delete the origin access identity from an existing distribution, update the distribution configuration and include an empty ``OriginAccessIdentity`` element. To replace the origin access identity, update the distribution configuration and specify the new origin access identity. For more information about the origin access identity, see `Serving Private Content through CloudFront <https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html>`_ in the *Amazon CloudFront Developer Guide* . Default: - ""
|
|
9896
|
+
:param origin_read_timeout: Default: - 30
|
|
9856
9897
|
|
|
9857
9898
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-s3originconfig.html
|
|
9858
9899
|
:exampleMetadata: fixture=_generated
|
|
@@ -9864,15 +9905,19 @@ class CfnDistribution(
|
|
|
9864
9905
|
from aws_cdk import aws_cloudfront as cloudfront
|
|
9865
9906
|
|
|
9866
9907
|
s3_origin_config_property = cloudfront.CfnDistribution.S3OriginConfigProperty(
|
|
9867
|
-
origin_access_identity="originAccessIdentity"
|
|
9908
|
+
origin_access_identity="originAccessIdentity",
|
|
9909
|
+
origin_read_timeout=123
|
|
9868
9910
|
)
|
|
9869
9911
|
'''
|
|
9870
9912
|
if __debug__:
|
|
9871
9913
|
type_hints = typing.get_type_hints(_typecheckingstub__8d9ff629693eb9bcb66704ce461d05e62e0755b651cbbc7ead2b89151325cad7)
|
|
9872
9914
|
check_type(argname="argument origin_access_identity", value=origin_access_identity, expected_type=type_hints["origin_access_identity"])
|
|
9915
|
+
check_type(argname="argument origin_read_timeout", value=origin_read_timeout, expected_type=type_hints["origin_read_timeout"])
|
|
9873
9916
|
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
9874
9917
|
if origin_access_identity is not None:
|
|
9875
9918
|
self._values["origin_access_identity"] = origin_access_identity
|
|
9919
|
+
if origin_read_timeout is not None:
|
|
9920
|
+
self._values["origin_read_timeout"] = origin_read_timeout
|
|
9876
9921
|
|
|
9877
9922
|
@builtins.property
|
|
9878
9923
|
def origin_access_identity(self) -> typing.Optional[builtins.str]:
|
|
@@ -9903,6 +9948,16 @@ class CfnDistribution(
|
|
|
9903
9948
|
result = self._values.get("origin_access_identity")
|
|
9904
9949
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
9905
9950
|
|
|
9951
|
+
@builtins.property
|
|
9952
|
+
def origin_read_timeout(self) -> typing.Optional[jsii.Number]:
|
|
9953
|
+
'''
|
|
9954
|
+
:default: - 30
|
|
9955
|
+
|
|
9956
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-s3originconfig.html#cfn-cloudfront-distribution-s3originconfig-originreadtimeout
|
|
9957
|
+
'''
|
|
9958
|
+
result = self._values.get("origin_read_timeout")
|
|
9959
|
+
return typing.cast(typing.Optional[jsii.Number], result)
|
|
9960
|
+
|
|
9906
9961
|
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
9907
9962
|
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
9908
9963
|
|
|
@@ -10344,8 +10399,8 @@ class CfnDistribution(
|
|
|
10344
10399
|
'''An Amazon CloudFront VPC origin configuration.
|
|
10345
10400
|
|
|
10346
10401
|
:param vpc_origin_id: The VPC origin ID.
|
|
10347
|
-
:param origin_keepalive_timeout: Specifies how long, in seconds, CloudFront persists its connection to the origin. The minimum timeout is 1 second, the maximum is 60 seconds, and the default (if you don't specify otherwise) is 5 seconds. For more information, see `Keep-alive timeout (custom origins only) <https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/
|
|
10348
|
-
:param origin_read_timeout: Specifies how long, in seconds, CloudFront waits for a response from the origin. This is also known as the *origin response timeout* . The minimum timeout is 1 second, the maximum is 60 seconds, and the default (if you don't specify otherwise) is 30 seconds. For more information, see `Response timeout (custom origins only) <https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/
|
|
10402
|
+
:param origin_keepalive_timeout: Specifies how long, in seconds, CloudFront persists its connection to the origin. The minimum timeout is 1 second, the maximum is 60 seconds, and the default (if you don't specify otherwise) is 5 seconds. For more information, see `Keep-alive timeout (custom origins only) <https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/DownloadDistValuesOrigin.html#DownloadDistValuesOriginKeepaliveTimeout>`_ in the *Amazon CloudFront Developer Guide* . Default: - 5
|
|
10403
|
+
:param origin_read_timeout: Specifies how long, in seconds, CloudFront waits for a response from the origin. This is also known as the *origin response timeout* . The minimum timeout is 1 second, the maximum is 60 seconds, and the default (if you don't specify otherwise) is 30 seconds. For more information, see `Response timeout (custom origins only) <https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/DownloadDistValuesOrigin.html#DownloadDistValuesOriginResponseTimeout>`_ in the *Amazon CloudFront Developer Guide* . Default: - 30
|
|
10349
10404
|
|
|
10350
10405
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-vpcoriginconfig.html
|
|
10351
10406
|
:exampleMetadata: fixture=_generated
|
|
@@ -10393,7 +10448,7 @@ class CfnDistribution(
|
|
|
10393
10448
|
|
|
10394
10449
|
The minimum timeout is 1 second, the maximum is 60 seconds, and the default (if you don't specify otherwise) is 5 seconds.
|
|
10395
10450
|
|
|
10396
|
-
For more information, see `Keep-alive timeout (custom origins only) <https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/
|
|
10451
|
+
For more information, see `Keep-alive timeout (custom origins only) <https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/DownloadDistValuesOrigin.html#DownloadDistValuesOriginKeepaliveTimeout>`_ in the *Amazon CloudFront Developer Guide* .
|
|
10397
10452
|
|
|
10398
10453
|
:default: - 5
|
|
10399
10454
|
|
|
@@ -10408,7 +10463,7 @@ class CfnDistribution(
|
|
|
10408
10463
|
|
|
10409
10464
|
This is also known as the *origin response timeout* . The minimum timeout is 1 second, the maximum is 60 seconds, and the default (if you don't specify otherwise) is 30 seconds.
|
|
10410
10465
|
|
|
10411
|
-
For more information, see `Response timeout (custom origins only) <https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/
|
|
10466
|
+
For more information, see `Response timeout (custom origins only) <https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/DownloadDistValuesOrigin.html#DownloadDistValuesOriginResponseTimeout>`_ in the *Amazon CloudFront Developer Guide* .
|
|
10412
10467
|
|
|
10413
10468
|
:default: - 30
|
|
10414
10469
|
|
|
@@ -10632,8 +10687,10 @@ class CfnDistributionProps:
|
|
|
10632
10687
|
enabled=False,
|
|
10633
10688
|
origin_shield_region="originShieldRegion"
|
|
10634
10689
|
),
|
|
10690
|
+
response_completion_timeout=123,
|
|
10635
10691
|
s3_origin_config=cloudfront.CfnDistribution.S3OriginConfigProperty(
|
|
10636
|
-
origin_access_identity="originAccessIdentity"
|
|
10692
|
+
origin_access_identity="originAccessIdentity",
|
|
10693
|
+
origin_read_timeout=123
|
|
10637
10694
|
),
|
|
10638
10695
|
vpc_origin_config=cloudfront.CfnDistribution.VpcOriginConfigProperty(
|
|
10639
10696
|
vpc_origin_id="vpcOriginId",
|
|
@@ -18018,7 +18075,7 @@ class CfnVpcOrigin(
|
|
|
18018
18075
|
:param http_port: The HTTP port for the CloudFront VPC origin endpoint configuration. The default value is ``80`` . Default: - 80
|
|
18019
18076
|
:param https_port: The HTTPS port of the CloudFront VPC origin endpoint configuration. The default value is ``443`` . Default: - 443
|
|
18020
18077
|
:param origin_protocol_policy: The origin protocol policy for the CloudFront VPC origin endpoint configuration. Default: - "match-viewer"
|
|
18021
|
-
:param origin_ssl_protocols: Specifies the minimum SSL/TLS protocol that CloudFront uses when connecting to your origin over HTTPS. Valid values include ``SSLv3`` , ``TLSv1`` , ``TLSv1.1`` , and ``TLSv1.2`` . For more information, see `Minimum Origin SSL Protocol <https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/
|
|
18078
|
+
:param origin_ssl_protocols: Specifies the minimum SSL/TLS protocol that CloudFront uses when connecting to your origin over HTTPS. Valid values include ``SSLv3`` , ``TLSv1`` , ``TLSv1.1`` , and ``TLSv1.2`` . For more information, see `Minimum Origin SSL Protocol <https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/DownloadDistValuesOrigin.html#DownloadDistValuesOriginSSLProtocols>`_ in the *Amazon CloudFront Developer Guide* .
|
|
18022
18079
|
|
|
18023
18080
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-vpcorigin-vpcoriginendpointconfig.html
|
|
18024
18081
|
:exampleMetadata: fixture=_generated
|
|
@@ -18124,7 +18181,7 @@ class CfnVpcOrigin(
|
|
|
18124
18181
|
|
|
18125
18182
|
Valid values include ``SSLv3`` , ``TLSv1`` , ``TLSv1.1`` , and ``TLSv1.2`` .
|
|
18126
18183
|
|
|
18127
|
-
For more information, see `Minimum Origin SSL Protocol <https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/
|
|
18184
|
+
For more information, see `Minimum Origin SSL Protocol <https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/DownloadDistValuesOrigin.html#DownloadDistValuesOriginSSLProtocols>`_ in the *Amazon CloudFront Developer Guide* .
|
|
18128
18185
|
|
|
18129
18186
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-vpcorigin-vpcoriginendpointconfig.html#cfn-cloudfront-vpcorigin-vpcoriginendpointconfig-originsslprotocols
|
|
18130
18187
|
'''
|
|
@@ -22238,8 +22295,10 @@ class OriginBindConfig:
|
|
|
22238
22295
|
enabled=False,
|
|
22239
22296
|
origin_shield_region="originShieldRegion"
|
|
22240
22297
|
),
|
|
22298
|
+
response_completion_timeout=123,
|
|
22241
22299
|
s3_origin_config=cloudfront.CfnDistribution.S3OriginConfigProperty(
|
|
22242
|
-
origin_access_identity="originAccessIdentity"
|
|
22300
|
+
origin_access_identity="originAccessIdentity",
|
|
22301
|
+
origin_read_timeout=123
|
|
22243
22302
|
),
|
|
22244
22303
|
vpc_origin_config=cloudfront.CfnDistribution.VpcOriginConfigProperty(
|
|
22245
22304
|
vpc_origin_id="vpcOriginId",
|
|
@@ -23425,27 +23484,14 @@ class PublicKey(
|
|
|
23425
23484
|
|
|
23426
23485
|
Example::
|
|
23427
23486
|
|
|
23428
|
-
#
|
|
23429
|
-
|
|
23430
|
-
|
|
23431
|
-
|
|
23432
|
-
|
|
23433
|
-
|
|
23434
|
-
encoded_key=public_key
|
|
23435
|
-
)
|
|
23436
|
-
|
|
23437
|
-
key_group = cloudfront.KeyGroup(self, "MyKeyGroup",
|
|
23438
|
-
items=[pub_key
|
|
23487
|
+
# Create a key group to use with CloudFront signed URLs and signed cookies.
|
|
23488
|
+
cloudfront.KeyGroup(self, "MyKeyGroup",
|
|
23489
|
+
items=[
|
|
23490
|
+
cloudfront.PublicKey(self, "MyPublicKey",
|
|
23491
|
+
encoded_key="..."
|
|
23492
|
+
)
|
|
23439
23493
|
]
|
|
23440
23494
|
)
|
|
23441
|
-
|
|
23442
|
-
cloudfront.Distribution(self, "Dist",
|
|
23443
|
-
default_behavior=cloudfront.BehaviorOptions(
|
|
23444
|
-
origin=origins.HttpOrigin("www.example.com"),
|
|
23445
|
-
trusted_key_groups=[key_group
|
|
23446
|
-
]
|
|
23447
|
-
)
|
|
23448
|
-
)
|
|
23449
23495
|
'''
|
|
23450
23496
|
|
|
23451
23497
|
def __init__(
|
|
@@ -23535,27 +23581,14 @@ class PublicKeyProps:
|
|
|
23535
23581
|
|
|
23536
23582
|
Example::
|
|
23537
23583
|
|
|
23538
|
-
#
|
|
23539
|
-
|
|
23540
|
-
|
|
23541
|
-
|
|
23542
|
-
|
|
23543
|
-
|
|
23544
|
-
encoded_key=public_key
|
|
23545
|
-
)
|
|
23546
|
-
|
|
23547
|
-
key_group = cloudfront.KeyGroup(self, "MyKeyGroup",
|
|
23548
|
-
items=[pub_key
|
|
23584
|
+
# Create a key group to use with CloudFront signed URLs and signed cookies.
|
|
23585
|
+
cloudfront.KeyGroup(self, "MyKeyGroup",
|
|
23586
|
+
items=[
|
|
23587
|
+
cloudfront.PublicKey(self, "MyPublicKey",
|
|
23588
|
+
encoded_key="..."
|
|
23589
|
+
)
|
|
23549
23590
|
]
|
|
23550
23591
|
)
|
|
23551
|
-
|
|
23552
|
-
cloudfront.Distribution(self, "Dist",
|
|
23553
|
-
default_behavior=cloudfront.BehaviorOptions(
|
|
23554
|
-
origin=origins.HttpOrigin("www.example.com"),
|
|
23555
|
-
trusted_key_groups=[key_group
|
|
23556
|
-
]
|
|
23557
|
-
)
|
|
23558
|
-
)
|
|
23559
23592
|
'''
|
|
23560
23593
|
if __debug__:
|
|
23561
23594
|
type_hints = typing.get_type_hints(_typecheckingstub__ab6d6a7ffe806c347a4fbac3b890074d407fcf2dd19c1ca56da8ddc83cb3ad61)
|
|
@@ -29820,6 +29853,7 @@ def _typecheckingstub__cb4237408749840dbecf9d9aed57975910052da22b994c7e13cc97c98
|
|
|
29820
29853
|
origin_custom_headers: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnDistribution.OriginCustomHeaderProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
29821
29854
|
origin_path: typing.Optional[builtins.str] = None,
|
|
29822
29855
|
origin_shield: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnDistribution.OriginShieldProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
29856
|
+
response_completion_timeout: typing.Optional[jsii.Number] = None,
|
|
29823
29857
|
s3_origin_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnDistribution.S3OriginConfigProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
29824
29858
|
vpc_origin_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnDistribution.VpcOriginConfigProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
29825
29859
|
) -> None:
|
|
@@ -29852,6 +29886,7 @@ def _typecheckingstub__4deb0a9215bd7c703383e0e2be801747efa09772f2b073423550aa963
|
|
|
29852
29886
|
def _typecheckingstub__8d9ff629693eb9bcb66704ce461d05e62e0755b651cbbc7ead2b89151325cad7(
|
|
29853
29887
|
*,
|
|
29854
29888
|
origin_access_identity: typing.Optional[builtins.str] = None,
|
|
29889
|
+
origin_read_timeout: typing.Optional[jsii.Number] = None,
|
|
29855
29890
|
) -> None:
|
|
29856
29891
|
"""Type checking stubs"""
|
|
29857
29892
|
pass
|
|
@@ -33,6 +33,7 @@ from ..._jsii import *
|
|
|
33
33
|
import constructs as _constructs_77d1e7e8
|
|
34
34
|
from ... import (
|
|
35
35
|
Duration as _Duration_4839e8c3,
|
|
36
|
+
RemovalPolicy as _RemovalPolicy_9f93c814,
|
|
36
37
|
Resource as _Resource_45bc6135,
|
|
37
38
|
Size as _Size_7b441c34,
|
|
38
39
|
)
|
|
@@ -79,6 +80,7 @@ from ...aws_lambda import (
|
|
|
79
80
|
IEventSourceDlq as _IEventSourceDlq_5e2c6ad9,
|
|
80
81
|
IFunction as _IFunction_6adb0ab8,
|
|
81
82
|
ILayerVersion as _ILayerVersion_5ac127c8,
|
|
83
|
+
ISchemaRegistry as _ISchemaRegistry_7e66a87f,
|
|
82
84
|
IVersion as _IVersion_faf7234e,
|
|
83
85
|
InvokeMode as _InvokeMode_e7b50559,
|
|
84
86
|
LambdaInsightsVersion as _LambdaInsightsVersion_9dfbfef9,
|
|
@@ -180,6 +182,7 @@ class EdgeFunction(
|
|
|
180
182
|
log_format: typing.Optional[builtins.str] = None,
|
|
181
183
|
logging_format: typing.Optional[_LoggingFormat_30be8e01] = None,
|
|
182
184
|
log_group: typing.Optional[_ILogGroup_3c4fa718] = None,
|
|
185
|
+
log_removal_policy: typing.Optional[_RemovalPolicy_9f93c814] = None,
|
|
183
186
|
log_retention: typing.Optional[_RetentionDays_070f99f0] = None,
|
|
184
187
|
log_retention_retry_options: typing.Optional[typing.Union[_LogRetentionRetryOptions_ad797a7a, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
185
188
|
log_retention_role: typing.Optional[_IRole_235f5d8e] = None,
|
|
@@ -237,7 +240,8 @@ class EdgeFunction(
|
|
|
237
240
|
:param log_format: (deprecated) Sets the logFormat for the function. Default: "Text"
|
|
238
241
|
:param logging_format: Sets the loggingFormat for the function. Default: LoggingFormat.TEXT
|
|
239
242
|
: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
|
|
240
|
-
:param
|
|
243
|
+
: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
|
|
244
|
+
: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
|
|
241
245
|
: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.
|
|
242
246
|
: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.
|
|
243
247
|
: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
|
|
@@ -296,6 +300,7 @@ class EdgeFunction(
|
|
|
296
300
|
log_format=log_format,
|
|
297
301
|
logging_format=logging_format,
|
|
298
302
|
log_group=log_group,
|
|
303
|
+
log_removal_policy=log_removal_policy,
|
|
299
304
|
log_retention=log_retention,
|
|
300
305
|
log_retention_retry_options=log_retention_retry_options,
|
|
301
306
|
log_retention_role=log_retention_role,
|
|
@@ -396,6 +401,7 @@ class EdgeFunction(
|
|
|
396
401
|
provisioned_poller_config: typing.Optional[typing.Union[_ProvisionedPollerConfig_1025e063, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
397
402
|
report_batch_item_failures: typing.Optional[builtins.bool] = None,
|
|
398
403
|
retry_attempts: typing.Optional[jsii.Number] = None,
|
|
404
|
+
schema_registry_config: typing.Optional[_ISchemaRegistry_7e66a87f] = None,
|
|
399
405
|
source_access_configurations: typing.Optional[typing.Sequence[typing.Union[_SourceAccessConfiguration_1926ff89, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
400
406
|
starting_position: typing.Optional[_StartingPosition_c0a4852c] = None,
|
|
401
407
|
starting_position_timestamp: typing.Optional[jsii.Number] = None,
|
|
@@ -423,6 +429,7 @@ class EdgeFunction(
|
|
|
423
429
|
:param provisioned_poller_config: Configuration for provisioned pollers that read from the event source. When specified, allows control over the minimum and maximum number of pollers that can be provisioned to process events from the source. Default: - no provisioned pollers
|
|
424
430
|
:param report_batch_item_failures: Allow functions to return partially successful responses for a batch of records. Default: false
|
|
425
431
|
:param retry_attempts: The maximum number of times to retry when the function returns an error. Set to ``undefined`` if you want lambda to keep retrying infinitely or until the record expires. Valid Range: - Minimum value of 0 - Maximum value of 10000 Default: - infinite or until the record expires.
|
|
432
|
+
:param schema_registry_config: Specific configuration settings for a Kafka schema registry. Default: - none
|
|
426
433
|
:param source_access_configurations: Specific settings like the authentication protocol or the VPC components to secure access to your event source. Default: - none
|
|
427
434
|
:param starting_position: The position in the DynamoDB, Kinesis or MSK stream where AWS Lambda should start reading. Default: - no starting position
|
|
428
435
|
:param starting_position_timestamp: The time from which to start reading, in Unix time seconds. Default: - no timestamp
|
|
@@ -451,6 +458,7 @@ class EdgeFunction(
|
|
|
451
458
|
provisioned_poller_config=provisioned_poller_config,
|
|
452
459
|
report_batch_item_failures=report_batch_item_failures,
|
|
453
460
|
retry_attempts=retry_attempts,
|
|
461
|
+
schema_registry_config=schema_registry_config,
|
|
454
462
|
source_access_configurations=source_access_configurations,
|
|
455
463
|
starting_position=starting_position,
|
|
456
464
|
starting_position_timestamp=starting_position_timestamp,
|
|
@@ -996,6 +1004,7 @@ class EdgeFunction(
|
|
|
996
1004
|
"log_format": "logFormat",
|
|
997
1005
|
"logging_format": "loggingFormat",
|
|
998
1006
|
"log_group": "logGroup",
|
|
1007
|
+
"log_removal_policy": "logRemovalPolicy",
|
|
999
1008
|
"log_retention": "logRetention",
|
|
1000
1009
|
"log_retention_retry_options": "logRetentionRetryOptions",
|
|
1001
1010
|
"log_retention_role": "logRetentionRole",
|
|
@@ -1055,6 +1064,7 @@ class EdgeFunctionProps(_FunctionProps_a308e854):
|
|
|
1055
1064
|
log_format: typing.Optional[builtins.str] = None,
|
|
1056
1065
|
logging_format: typing.Optional[_LoggingFormat_30be8e01] = None,
|
|
1057
1066
|
log_group: typing.Optional[_ILogGroup_3c4fa718] = None,
|
|
1067
|
+
log_removal_policy: typing.Optional[_RemovalPolicy_9f93c814] = None,
|
|
1058
1068
|
log_retention: typing.Optional[_RetentionDays_070f99f0] = None,
|
|
1059
1069
|
log_retention_retry_options: typing.Optional[typing.Union[_LogRetentionRetryOptions_ad797a7a, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
1060
1070
|
log_retention_role: typing.Optional[_IRole_235f5d8e] = None,
|
|
@@ -1111,7 +1121,8 @@ class EdgeFunctionProps(_FunctionProps_a308e854):
|
|
|
1111
1121
|
:param log_format: (deprecated) Sets the logFormat for the function. Default: "Text"
|
|
1112
1122
|
:param logging_format: Sets the loggingFormat for the function. Default: LoggingFormat.TEXT
|
|
1113
1123
|
: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
|
|
1114
|
-
:param
|
|
1124
|
+
: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
|
|
1125
|
+
: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
|
|
1115
1126
|
: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.
|
|
1116
1127
|
: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.
|
|
1117
1128
|
: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
|
|
@@ -1198,6 +1209,7 @@ class EdgeFunctionProps(_FunctionProps_a308e854):
|
|
|
1198
1209
|
check_type(argname="argument log_format", value=log_format, expected_type=type_hints["log_format"])
|
|
1199
1210
|
check_type(argname="argument logging_format", value=logging_format, expected_type=type_hints["logging_format"])
|
|
1200
1211
|
check_type(argname="argument log_group", value=log_group, expected_type=type_hints["log_group"])
|
|
1212
|
+
check_type(argname="argument log_removal_policy", value=log_removal_policy, expected_type=type_hints["log_removal_policy"])
|
|
1201
1213
|
check_type(argname="argument log_retention", value=log_retention, expected_type=type_hints["log_retention"])
|
|
1202
1214
|
check_type(argname="argument log_retention_retry_options", value=log_retention_retry_options, expected_type=type_hints["log_retention_retry_options"])
|
|
1203
1215
|
check_type(argname="argument log_retention_role", value=log_retention_role, expected_type=type_hints["log_retention_role"])
|
|
@@ -1286,6 +1298,8 @@ class EdgeFunctionProps(_FunctionProps_a308e854):
|
|
|
1286
1298
|
self._values["logging_format"] = logging_format
|
|
1287
1299
|
if log_group is not None:
|
|
1288
1300
|
self._values["log_group"] = log_group
|
|
1301
|
+
if log_removal_policy is not None:
|
|
1302
|
+
self._values["log_removal_policy"] = log_removal_policy
|
|
1289
1303
|
if log_retention is not None:
|
|
1290
1304
|
self._values["log_retention"] = log_retention
|
|
1291
1305
|
if log_retention_retry_options is not None:
|
|
@@ -1671,9 +1685,27 @@ class EdgeFunctionProps(_FunctionProps_a308e854):
|
|
|
1671
1685
|
result = self._values.get("log_group")
|
|
1672
1686
|
return typing.cast(typing.Optional[_ILogGroup_3c4fa718], result)
|
|
1673
1687
|
|
|
1688
|
+
@builtins.property
|
|
1689
|
+
def log_removal_policy(self) -> typing.Optional[_RemovalPolicy_9f93c814]:
|
|
1690
|
+
'''(deprecated) Determine the removal policy of the log group that is auto-created by this construct.
|
|
1691
|
+
|
|
1692
|
+
Normally you want to retain the log group so you can diagnose issues
|
|
1693
|
+
from logs even after a deployment that no longer includes the log group.
|
|
1694
|
+
In that case, use the normal date-based retention policy to age out your
|
|
1695
|
+
logs.
|
|
1696
|
+
|
|
1697
|
+
:default: RemovalPolicy.Retain
|
|
1698
|
+
|
|
1699
|
+
:deprecated: use ``logGroup`` instead
|
|
1700
|
+
|
|
1701
|
+
:stability: deprecated
|
|
1702
|
+
'''
|
|
1703
|
+
result = self._values.get("log_removal_policy")
|
|
1704
|
+
return typing.cast(typing.Optional[_RemovalPolicy_9f93c814], result)
|
|
1705
|
+
|
|
1674
1706
|
@builtins.property
|
|
1675
1707
|
def log_retention(self) -> typing.Optional[_RetentionDays_070f99f0]:
|
|
1676
|
-
'''The number of days log events are kept in CloudWatch Logs.
|
|
1708
|
+
'''(deprecated) The number of days log events are kept in CloudWatch Logs.
|
|
1677
1709
|
|
|
1678
1710
|
When updating
|
|
1679
1711
|
this property, unsetting it doesn't remove the log retention policy. To
|
|
@@ -1694,6 +1726,10 @@ class EdgeFunctionProps(_FunctionProps_a308e854):
|
|
|
1694
1726
|
my_log_group.log_group_name
|
|
1695
1727
|
|
|
1696
1728
|
:default: logs.RetentionDays.INFINITE
|
|
1729
|
+
|
|
1730
|
+
:deprecated: use ``logGroup`` instead
|
|
1731
|
+
|
|
1732
|
+
:stability: deprecated
|
|
1697
1733
|
'''
|
|
1698
1734
|
result = self._values.get("log_retention")
|
|
1699
1735
|
return typing.cast(typing.Optional[_RetentionDays_070f99f0], result)
|
|
@@ -2030,6 +2066,7 @@ def _typecheckingstub__b2f96e5632f259adb036f7aba2bbc7c19fd9840c647d67a10a8135cb3
|
|
|
2030
2066
|
log_format: typing.Optional[builtins.str] = None,
|
|
2031
2067
|
logging_format: typing.Optional[_LoggingFormat_30be8e01] = None,
|
|
2032
2068
|
log_group: typing.Optional[_ILogGroup_3c4fa718] = None,
|
|
2069
|
+
log_removal_policy: typing.Optional[_RemovalPolicy_9f93c814] = None,
|
|
2033
2070
|
log_retention: typing.Optional[_RetentionDays_070f99f0] = None,
|
|
2034
2071
|
log_retention_retry_options: typing.Optional[typing.Union[_LogRetentionRetryOptions_ad797a7a, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
2035
2072
|
log_retention_role: typing.Optional[_IRole_235f5d8e] = None,
|
|
@@ -2098,6 +2135,7 @@ def _typecheckingstub__e3a2f6769309cd3c52da869813738e2d4a94d233e574ada7ebba1654d
|
|
|
2098
2135
|
provisioned_poller_config: typing.Optional[typing.Union[_ProvisionedPollerConfig_1025e063, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
2099
2136
|
report_batch_item_failures: typing.Optional[builtins.bool] = None,
|
|
2100
2137
|
retry_attempts: typing.Optional[jsii.Number] = None,
|
|
2138
|
+
schema_registry_config: typing.Optional[_ISchemaRegistry_7e66a87f] = None,
|
|
2101
2139
|
source_access_configurations: typing.Optional[typing.Sequence[typing.Union[_SourceAccessConfiguration_1926ff89, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
2102
2140
|
starting_position: typing.Optional[_StartingPosition_c0a4852c] = None,
|
|
2103
2141
|
starting_position_timestamp: typing.Optional[jsii.Number] = None,
|
|
@@ -2208,6 +2246,7 @@ def _typecheckingstub__709cdcb05c7a5fc7f7bcd1d72557097c39c5c534076a00b6b8db807bd
|
|
|
2208
2246
|
log_format: typing.Optional[builtins.str] = None,
|
|
2209
2247
|
logging_format: typing.Optional[_LoggingFormat_30be8e01] = None,
|
|
2210
2248
|
log_group: typing.Optional[_ILogGroup_3c4fa718] = None,
|
|
2249
|
+
log_removal_policy: typing.Optional[_RemovalPolicy_9f93c814] = None,
|
|
2211
2250
|
log_retention: typing.Optional[_RetentionDays_070f99f0] = None,
|
|
2212
2251
|
log_retention_retry_options: typing.Optional[typing.Union[_LogRetentionRetryOptions_ad797a7a, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
2213
2252
|
log_retention_role: typing.Optional[_IRole_235f5d8e] = None,
|