aws-cdk-lib 2.218.0__py3-none-any.whl → 2.220.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 +31 -36
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.218.0.jsii.tgz → aws-cdk-lib@2.220.0.jsii.tgz} +0 -0
- aws_cdk/aws_amazonmq/__init__.py +98 -87
- aws_cdk/aws_apigateway/__init__.py +39 -0
- aws_cdk/aws_applicationsignals/__init__.py +450 -2
- aws_cdk/aws_arcregionswitch/__init__.py +8 -0
- aws_cdk/aws_backup/__init__.py +29 -0
- aws_cdk/aws_batch/__init__.py +109 -7
- aws_cdk/aws_bcmdataexports/__init__.py +9 -0
- aws_cdk/aws_bedrock/__init__.py +384 -1
- aws_cdk/aws_bedrockagentcore/__init__.py +7862 -1568
- aws_cdk/aws_cloudfront/experimental/__init__.py +4 -0
- aws_cdk/aws_cloudfront_origins/__init__.py +87 -6
- aws_cdk/aws_cloudwatch/__init__.py +5 -5
- aws_cdk/aws_codebuild/__init__.py +339 -62
- aws_cdk/aws_cognito/__init__.py +6 -4
- aws_cdk/aws_connect/__init__.py +9 -9
- aws_cdk/aws_cur/__init__.py +5 -3
- aws_cdk/aws_datasync/__init__.py +44 -22
- aws_cdk/aws_datazone/__init__.py +35 -33
- aws_cdk/aws_dax/__init__.py +12 -3
- aws_cdk/aws_dms/__init__.py +3 -5
- aws_cdk/aws_ec2/__init__.py +2721 -30
- aws_cdk/aws_ecs/__init__.py +2900 -90
- aws_cdk/aws_eks/__init__.py +114 -9
- aws_cdk/aws_entityresolution/__init__.py +18 -0
- aws_cdk/aws_fsx/__init__.py +4 -4
- aws_cdk/aws_greengrassv2/__init__.py +29 -0
- aws_cdk/aws_imagebuilder/__init__.py +397 -0
- aws_cdk/aws_iotsitewise/__init__.py +136 -80
- aws_cdk/aws_kinesis/__init__.py +95 -4
- aws_cdk/aws_lambda/__init__.py +43 -0
- aws_cdk/aws_lightsail/__init__.py +584 -0
- aws_cdk/aws_logs/__init__.py +57 -0
- aws_cdk/aws_lookoutmetrics/__init__.py +14 -2
- aws_cdk/aws_m2/__init__.py +59 -13
- aws_cdk/aws_medialive/__init__.py +108 -0
- aws_cdk/aws_msk/__init__.py +4 -2
- aws_cdk/aws_mwaa/__init__.py +5 -5
- aws_cdk/aws_neptune/__init__.py +133 -70
- aws_cdk/aws_networkfirewall/__init__.py +6 -2
- aws_cdk/aws_networkmanager/__init__.py +29 -0
- aws_cdk/aws_observabilityadmin/__init__.py +1227 -83
- aws_cdk/aws_omics/__init__.py +7 -1
- aws_cdk/aws_opensearchservice/__init__.py +64 -0
- aws_cdk/aws_opsworkscm/__init__.py +0 -29
- aws_cdk/aws_pcs/__init__.py +224 -33
- aws_cdk/aws_pinpoint/__init__.py +58 -0
- aws_cdk/aws_quicksight/__init__.py +118 -0
- aws_cdk/aws_rds/__init__.py +62 -37
- aws_cdk/aws_refactorspaces/__init__.py +18 -6
- aws_cdk/aws_route53/__init__.py +138 -8
- aws_cdk/aws_s3/__init__.py +29 -2
- aws_cdk/aws_s3objectlambda/__init__.py +44 -12
- aws_cdk/aws_servicecatalog/__init__.py +103 -106
- aws_cdk/aws_smsvoice/__init__.py +319 -0
- aws_cdk/aws_ssmquicksetup/__init__.py +3 -3
- aws_cdk/aws_synthetics/__init__.py +21 -1
- {aws_cdk_lib-2.218.0.dist-info → aws_cdk_lib-2.220.0.dist-info}/METADATA +2 -2
- {aws_cdk_lib-2.218.0.dist-info → aws_cdk_lib-2.220.0.dist-info}/RECORD +65 -65
- {aws_cdk_lib-2.218.0.dist-info → aws_cdk_lib-2.220.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.218.0.dist-info → aws_cdk_lib-2.220.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.218.0.dist-info → aws_cdk_lib-2.220.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.218.0.dist-info → aws_cdk_lib-2.220.0.dist-info}/top_level.txt +0 -0
|
@@ -499,6 +499,7 @@ class EdgeFunction(
|
|
|
499
499
|
action: typing.Optional[builtins.str] = None,
|
|
500
500
|
event_source_token: typing.Optional[builtins.str] = None,
|
|
501
501
|
function_url_auth_type: typing.Optional[_FunctionUrlAuthType_9c7b2c86] = None,
|
|
502
|
+
invoked_via_function_url: typing.Optional[builtins.bool] = None,
|
|
502
503
|
organization_id: typing.Optional[builtins.str] = None,
|
|
503
504
|
scope: typing.Optional[_constructs_77d1e7e8.Construct] = None,
|
|
504
505
|
source_account: typing.Optional[builtins.str] = None,
|
|
@@ -511,6 +512,7 @@ class EdgeFunction(
|
|
|
511
512
|
:param action: The Lambda actions that you want to allow in this statement. For example, you can specify lambda:CreateFunction to specify a certain action, or use a wildcard (``lambda:*``) to grant permission to all Lambda actions. For a list of actions, see Actions and Condition Context Keys for AWS Lambda in the IAM User Guide. Default: 'lambda:InvokeFunction'
|
|
512
513
|
:param event_source_token: A unique token that must be supplied by the principal invoking the function. Default: - The caller would not need to present a token.
|
|
513
514
|
:param function_url_auth_type: The authType for the function URL that you are granting permissions for. Default: - No functionUrlAuthType
|
|
515
|
+
:param invoked_via_function_url: The condition key for limiting the scope of lambda:InvokeFunction action to Function URL only. When set to true, it restricts the principal in this policy to perform invokes for the resource only via Function URLs. Default: - false
|
|
514
516
|
:param organization_id: The organization you want to grant permissions to. Use this ONLY if you need to grant permissions to a subset of the organization. If you want to grant permissions to the entire organization, sending the organization principal through the ``principal`` property will suffice. You can use this property to ensure that all source principals are owned by a specific organization. Default: - No organizationId
|
|
515
517
|
:param scope: The scope to which the permission constructs be attached. The default is the Lambda function construct itself, but this would need to be different in cases such as cross-stack references where the Permissions would need to sit closer to the consumer of this permission (i.e., the caller). Default: - The instance of lambda.IFunction
|
|
516
518
|
:param source_account: The AWS account ID (without hyphens) of the source owner. For example, if you specify an S3 bucket in the SourceArn property, this value is the bucket owner's account ID. You can use this property to ensure that all source principals are owned by a specific account.
|
|
@@ -524,6 +526,7 @@ class EdgeFunction(
|
|
|
524
526
|
action=action,
|
|
525
527
|
event_source_token=event_source_token,
|
|
526
528
|
function_url_auth_type=function_url_auth_type,
|
|
529
|
+
invoked_via_function_url=invoked_via_function_url,
|
|
527
530
|
organization_id=organization_id,
|
|
528
531
|
scope=scope,
|
|
529
532
|
source_account=source_account,
|
|
@@ -2196,6 +2199,7 @@ def _typecheckingstub__2eb22d84593be3f12d95da9b201a03a4c5bc3b744aa1e4ce7f555d5cd
|
|
|
2196
2199
|
action: typing.Optional[builtins.str] = None,
|
|
2197
2200
|
event_source_token: typing.Optional[builtins.str] = None,
|
|
2198
2201
|
function_url_auth_type: typing.Optional[_FunctionUrlAuthType_9c7b2c86] = None,
|
|
2202
|
+
invoked_via_function_url: typing.Optional[builtins.bool] = None,
|
|
2199
2203
|
organization_id: typing.Optional[builtins.str] = None,
|
|
2200
2204
|
scope: typing.Optional[_constructs_77d1e7e8.Construct] = None,
|
|
2201
2205
|
source_account: typing.Optional[builtins.str] = None,
|
|
@@ -851,6 +851,41 @@ cloudfront.Distribution(self, "Distribution",
|
|
|
851
851
|
)
|
|
852
852
|
```
|
|
853
853
|
|
|
854
|
+
### Configuring IP Address Type
|
|
855
|
+
|
|
856
|
+
You can specify which IP protocol CloudFront uses when connecting to your Lambda Function URL origin. By default, CloudFront uses IPv4 only.
|
|
857
|
+
|
|
858
|
+
```python
|
|
859
|
+
import aws_cdk.aws_lambda as lambda_
|
|
860
|
+
from aws_cdk.aws_cloudfront import OriginIpAddressType
|
|
861
|
+
|
|
862
|
+
# fn: lambda.Function
|
|
863
|
+
|
|
864
|
+
fn_url = fn.add_function_url(auth_type=lambda_.FunctionUrlAuthType.NONE)
|
|
865
|
+
|
|
866
|
+
# Uses default IPv4 only
|
|
867
|
+
cloudfront.Distribution(self, "Distribution",
|
|
868
|
+
default_behavior=cloudfront.BehaviorOptions(
|
|
869
|
+
origin=origins.FunctionUrlOrigin(fn_url)
|
|
870
|
+
)
|
|
871
|
+
)
|
|
872
|
+
|
|
873
|
+
# Explicitly specify IP address type
|
|
874
|
+
cloudfront.Distribution(self, "Distribution",
|
|
875
|
+
default_behavior=cloudfront.BehaviorOptions(
|
|
876
|
+
origin=origins.FunctionUrlOrigin(fn_url,
|
|
877
|
+
ip_address_type=OriginIpAddressType.DUALSTACK
|
|
878
|
+
)
|
|
879
|
+
)
|
|
880
|
+
)
|
|
881
|
+
```
|
|
882
|
+
|
|
883
|
+
Supported values for `ipAddressType`:
|
|
884
|
+
|
|
885
|
+
* `OriginIpAddressType.IPV4` - CloudFront uses IPv4 only to connect to the origin (default)
|
|
886
|
+
* `OriginIpAddressType.IPV6` - CloudFront uses IPv6 only to connect to the origin
|
|
887
|
+
* `OriginIpAddressType.DUALSTACK` - CloudFront uses both IPv4 and IPv6 to connect to the origin
|
|
888
|
+
|
|
854
889
|
### Lambda Function URL with Origin Access Control (OAC)
|
|
855
890
|
|
|
856
891
|
You can configure the Lambda Function URL with Origin Access Control (OAC) for enhanced security. When using OAC with Signing SIGV4_ALWAYS, it is recommended to set the Lambda Function URL authType to AWS_IAM to ensure proper authorization.
|
|
@@ -972,16 +1007,18 @@ class FunctionUrlOrigin(
|
|
|
972
1007
|
Example::
|
|
973
1008
|
|
|
974
1009
|
import aws_cdk.aws_lambda as lambda_
|
|
1010
|
+
|
|
975
1011
|
# fn: lambda.Function
|
|
976
1012
|
|
|
1013
|
+
fn_url = fn.add_function_url(auth_type=lambda_.FunctionUrlAuthType.NONE)
|
|
977
1014
|
|
|
978
|
-
|
|
979
|
-
auth_type=lambda_.FunctionUrlAuthType.AWS_IAM
|
|
980
|
-
)
|
|
981
|
-
|
|
982
|
-
cloudfront.Distribution(self, "MyDistribution",
|
|
1015
|
+
cloudfront.Distribution(self, "Distribution",
|
|
983
1016
|
default_behavior=cloudfront.BehaviorOptions(
|
|
984
|
-
origin=origins.FunctionUrlOrigin
|
|
1017
|
+
origin=origins.FunctionUrlOrigin(fn_url,
|
|
1018
|
+
read_timeout=Duration.seconds(30),
|
|
1019
|
+
response_completion_timeout=Duration.seconds(90),
|
|
1020
|
+
keepalive_timeout=Duration.seconds(45)
|
|
1021
|
+
)
|
|
985
1022
|
)
|
|
986
1023
|
)
|
|
987
1024
|
'''
|
|
@@ -990,6 +1027,7 @@ class FunctionUrlOrigin(
|
|
|
990
1027
|
self,
|
|
991
1028
|
lambda_function_url: _IFunctionUrl_1a74cd94,
|
|
992
1029
|
*,
|
|
1030
|
+
ip_address_type: typing.Optional[_OriginIpAddressType_1c01e1a0] = None,
|
|
993
1031
|
keepalive_timeout: typing.Optional[_Duration_4839e8c3] = None,
|
|
994
1032
|
read_timeout: typing.Optional[_Duration_4839e8c3] = None,
|
|
995
1033
|
origin_path: typing.Optional[builtins.str] = None,
|
|
@@ -1004,6 +1042,7 @@ class FunctionUrlOrigin(
|
|
|
1004
1042
|
) -> None:
|
|
1005
1043
|
'''
|
|
1006
1044
|
:param lambda_function_url: -
|
|
1045
|
+
:param ip_address_type: Specifies which IP protocol CloudFront uses when connecting to your origin. If your origin uses both IPv4 and IPv6 protocols, you can choose dualstack to help optimize reliability. Default: OriginIpAddressType.IPV4
|
|
1007
1046
|
:param keepalive_timeout: Specifies how long, in seconds, CloudFront persists its connection to the origin. The valid range is from 1 to 180 seconds, inclusive. Note that values over 60 seconds are possible only after a limit increase request for the origin response timeout quota has been approved in the target account; otherwise, values over 60 seconds will produce an error at deploy time. Default: Duration.seconds(5)
|
|
1008
1047
|
:param read_timeout: Specifies how long, in seconds, CloudFront waits for a response from the origin. The valid range is from 1 to 180 seconds, inclusive. Note that values over 60 seconds are possible only after a limit increase request for the origin response timeout quota has been approved in the target account; otherwise, values over 60 seconds will produce an error at deploy time. Default: Duration.seconds(30)
|
|
1009
1048
|
:param origin_path: An optional path that CloudFront appends to the origin domain name when CloudFront requests content from the origin. Must begin, but not end, with '/' (e.g., '/production/images'). Default: '/'
|
|
@@ -1020,6 +1059,7 @@ class FunctionUrlOrigin(
|
|
|
1020
1059
|
type_hints = typing.get_type_hints(_typecheckingstub__fcda903697b26acfe2149a285d5a64619682b675affb52f4ae2d1aca46c8f1c3)
|
|
1021
1060
|
check_type(argname="argument lambda_function_url", value=lambda_function_url, expected_type=type_hints["lambda_function_url"])
|
|
1022
1061
|
props = FunctionUrlOriginProps(
|
|
1062
|
+
ip_address_type=ip_address_type,
|
|
1023
1063
|
keepalive_timeout=keepalive_timeout,
|
|
1024
1064
|
read_timeout=read_timeout,
|
|
1025
1065
|
origin_path=origin_path,
|
|
@@ -1042,6 +1082,7 @@ class FunctionUrlOrigin(
|
|
|
1042
1082
|
lambda_function_url: _IFunctionUrl_1a74cd94,
|
|
1043
1083
|
*,
|
|
1044
1084
|
origin_access_control: typing.Optional[_IOriginAccessControl_82a6fe5a] = None,
|
|
1085
|
+
ip_address_type: typing.Optional[_OriginIpAddressType_1c01e1a0] = None,
|
|
1045
1086
|
keepalive_timeout: typing.Optional[_Duration_4839e8c3] = None,
|
|
1046
1087
|
read_timeout: typing.Optional[_Duration_4839e8c3] = None,
|
|
1047
1088
|
origin_path: typing.Optional[builtins.str] = None,
|
|
@@ -1058,6 +1099,7 @@ class FunctionUrlOrigin(
|
|
|
1058
1099
|
|
|
1059
1100
|
:param lambda_function_url: -
|
|
1060
1101
|
:param origin_access_control: An optional Origin Access Control. Default: - an Origin Access Control will be created.
|
|
1102
|
+
:param ip_address_type: Specifies which IP protocol CloudFront uses when connecting to your origin. If your origin uses both IPv4 and IPv6 protocols, you can choose dualstack to help optimize reliability. Default: OriginIpAddressType.IPV4
|
|
1061
1103
|
:param keepalive_timeout: Specifies how long, in seconds, CloudFront persists its connection to the origin. The valid range is from 1 to 180 seconds, inclusive. Note that values over 60 seconds are possible only after a limit increase request for the origin response timeout quota has been approved in the target account; otherwise, values over 60 seconds will produce an error at deploy time. Default: Duration.seconds(5)
|
|
1062
1104
|
:param read_timeout: Specifies how long, in seconds, CloudFront waits for a response from the origin. The valid range is from 1 to 180 seconds, inclusive. Note that values over 60 seconds are possible only after a limit increase request for the origin response timeout quota has been approved in the target account; otherwise, values over 60 seconds will produce an error at deploy time. Default: Duration.seconds(30)
|
|
1063
1105
|
:param origin_path: An optional path that CloudFront appends to the origin domain name when CloudFront requests content from the origin. Must begin, but not end, with '/' (e.g., '/production/images'). Default: '/'
|
|
@@ -1075,6 +1117,7 @@ class FunctionUrlOrigin(
|
|
|
1075
1117
|
check_type(argname="argument lambda_function_url", value=lambda_function_url, expected_type=type_hints["lambda_function_url"])
|
|
1076
1118
|
props = FunctionUrlOriginWithOACProps(
|
|
1077
1119
|
origin_access_control=origin_access_control,
|
|
1120
|
+
ip_address_type=ip_address_type,
|
|
1078
1121
|
keepalive_timeout=keepalive_timeout,
|
|
1079
1122
|
read_timeout=read_timeout,
|
|
1080
1123
|
origin_path=origin_path,
|
|
@@ -1316,6 +1359,7 @@ class FunctionUrlOriginBaseProps(_OriginProps_0675928d):
|
|
|
1316
1359
|
"origin_shield_region": "originShieldRegion",
|
|
1317
1360
|
"response_completion_timeout": "responseCompletionTimeout",
|
|
1318
1361
|
"origin_path": "originPath",
|
|
1362
|
+
"ip_address_type": "ipAddressType",
|
|
1319
1363
|
"keepalive_timeout": "keepaliveTimeout",
|
|
1320
1364
|
"read_timeout": "readTimeout",
|
|
1321
1365
|
},
|
|
@@ -1333,6 +1377,7 @@ class FunctionUrlOriginProps(_OriginProps_0675928d):
|
|
|
1333
1377
|
origin_shield_region: typing.Optional[builtins.str] = None,
|
|
1334
1378
|
response_completion_timeout: typing.Optional[_Duration_4839e8c3] = None,
|
|
1335
1379
|
origin_path: typing.Optional[builtins.str] = None,
|
|
1380
|
+
ip_address_type: typing.Optional[_OriginIpAddressType_1c01e1a0] = None,
|
|
1336
1381
|
keepalive_timeout: typing.Optional[_Duration_4839e8c3] = None,
|
|
1337
1382
|
read_timeout: typing.Optional[_Duration_4839e8c3] = None,
|
|
1338
1383
|
) -> None:
|
|
@@ -1347,6 +1392,7 @@ class FunctionUrlOriginProps(_OriginProps_0675928d):
|
|
|
1347
1392
|
:param origin_shield_region: When you enable Origin Shield in the AWS Region that has the lowest latency to your origin, you can get better network performance. Default: - origin shield not enabled
|
|
1348
1393
|
:param response_completion_timeout: The time that a request from CloudFront to the origin can stay open and wait for a response. If the complete response isn't received from the origin by this time, CloudFront ends the connection. Valid values are 1-3600 seconds, inclusive. Default: undefined - AWS CloudFront default is not enforcing a maximum value
|
|
1349
1394
|
:param origin_path: An optional path that CloudFront appends to the origin domain name when CloudFront requests content from the origin. Must begin, but not end, with '/' (e.g., '/production/images'). Default: '/'
|
|
1395
|
+
:param ip_address_type: Specifies which IP protocol CloudFront uses when connecting to your origin. If your origin uses both IPv4 and IPv6 protocols, you can choose dualstack to help optimize reliability. Default: OriginIpAddressType.IPV4
|
|
1350
1396
|
:param keepalive_timeout: Specifies how long, in seconds, CloudFront persists its connection to the origin. The valid range is from 1 to 180 seconds, inclusive. Note that values over 60 seconds are possible only after a limit increase request for the origin response timeout quota has been approved in the target account; otherwise, values over 60 seconds will produce an error at deploy time. Default: Duration.seconds(5)
|
|
1351
1397
|
:param read_timeout: Specifies how long, in seconds, CloudFront waits for a response from the origin. The valid range is from 1 to 180 seconds, inclusive. Note that values over 60 seconds are possible only after a limit increase request for the origin response timeout quota has been approved in the target account; otherwise, values over 60 seconds will produce an error at deploy time. Default: Duration.seconds(30)
|
|
1352
1398
|
|
|
@@ -1381,6 +1427,7 @@ class FunctionUrlOriginProps(_OriginProps_0675928d):
|
|
|
1381
1427
|
check_type(argname="argument origin_shield_region", value=origin_shield_region, expected_type=type_hints["origin_shield_region"])
|
|
1382
1428
|
check_type(argname="argument response_completion_timeout", value=response_completion_timeout, expected_type=type_hints["response_completion_timeout"])
|
|
1383
1429
|
check_type(argname="argument origin_path", value=origin_path, expected_type=type_hints["origin_path"])
|
|
1430
|
+
check_type(argname="argument ip_address_type", value=ip_address_type, expected_type=type_hints["ip_address_type"])
|
|
1384
1431
|
check_type(argname="argument keepalive_timeout", value=keepalive_timeout, expected_type=type_hints["keepalive_timeout"])
|
|
1385
1432
|
check_type(argname="argument read_timeout", value=read_timeout, expected_type=type_hints["read_timeout"])
|
|
1386
1433
|
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
@@ -1402,6 +1449,8 @@ class FunctionUrlOriginProps(_OriginProps_0675928d):
|
|
|
1402
1449
|
self._values["response_completion_timeout"] = response_completion_timeout
|
|
1403
1450
|
if origin_path is not None:
|
|
1404
1451
|
self._values["origin_path"] = origin_path
|
|
1452
|
+
if ip_address_type is not None:
|
|
1453
|
+
self._values["ip_address_type"] = ip_address_type
|
|
1405
1454
|
if keepalive_timeout is not None:
|
|
1406
1455
|
self._values["keepalive_timeout"] = keepalive_timeout
|
|
1407
1456
|
if read_timeout is not None:
|
|
@@ -1506,6 +1555,17 @@ class FunctionUrlOriginProps(_OriginProps_0675928d):
|
|
|
1506
1555
|
result = self._values.get("origin_path")
|
|
1507
1556
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
1508
1557
|
|
|
1558
|
+
@builtins.property
|
|
1559
|
+
def ip_address_type(self) -> typing.Optional[_OriginIpAddressType_1c01e1a0]:
|
|
1560
|
+
'''Specifies which IP protocol CloudFront uses when connecting to your origin.
|
|
1561
|
+
|
|
1562
|
+
If your origin uses both IPv4 and IPv6 protocols, you can choose dualstack to help optimize reliability.
|
|
1563
|
+
|
|
1564
|
+
:default: OriginIpAddressType.IPV4
|
|
1565
|
+
'''
|
|
1566
|
+
result = self._values.get("ip_address_type")
|
|
1567
|
+
return typing.cast(typing.Optional[_OriginIpAddressType_1c01e1a0], result)
|
|
1568
|
+
|
|
1509
1569
|
@builtins.property
|
|
1510
1570
|
def keepalive_timeout(self) -> typing.Optional[_Duration_4839e8c3]:
|
|
1511
1571
|
'''Specifies how long, in seconds, CloudFront persists its connection to the origin.
|
|
@@ -1559,6 +1619,7 @@ class FunctionUrlOriginProps(_OriginProps_0675928d):
|
|
|
1559
1619
|
"origin_shield_region": "originShieldRegion",
|
|
1560
1620
|
"response_completion_timeout": "responseCompletionTimeout",
|
|
1561
1621
|
"origin_path": "originPath",
|
|
1622
|
+
"ip_address_type": "ipAddressType",
|
|
1562
1623
|
"keepalive_timeout": "keepaliveTimeout",
|
|
1563
1624
|
"read_timeout": "readTimeout",
|
|
1564
1625
|
"origin_access_control": "originAccessControl",
|
|
@@ -1577,6 +1638,7 @@ class FunctionUrlOriginWithOACProps(FunctionUrlOriginProps):
|
|
|
1577
1638
|
origin_shield_region: typing.Optional[builtins.str] = None,
|
|
1578
1639
|
response_completion_timeout: typing.Optional[_Duration_4839e8c3] = None,
|
|
1579
1640
|
origin_path: typing.Optional[builtins.str] = None,
|
|
1641
|
+
ip_address_type: typing.Optional[_OriginIpAddressType_1c01e1a0] = None,
|
|
1580
1642
|
keepalive_timeout: typing.Optional[_Duration_4839e8c3] = None,
|
|
1581
1643
|
read_timeout: typing.Optional[_Duration_4839e8c3] = None,
|
|
1582
1644
|
origin_access_control: typing.Optional[_IOriginAccessControl_82a6fe5a] = None,
|
|
@@ -1592,6 +1654,7 @@ class FunctionUrlOriginWithOACProps(FunctionUrlOriginProps):
|
|
|
1592
1654
|
:param origin_shield_region: When you enable Origin Shield in the AWS Region that has the lowest latency to your origin, you can get better network performance. Default: - origin shield not enabled
|
|
1593
1655
|
:param response_completion_timeout: The time that a request from CloudFront to the origin can stay open and wait for a response. If the complete response isn't received from the origin by this time, CloudFront ends the connection. Valid values are 1-3600 seconds, inclusive. Default: undefined - AWS CloudFront default is not enforcing a maximum value
|
|
1594
1656
|
:param origin_path: An optional path that CloudFront appends to the origin domain name when CloudFront requests content from the origin. Must begin, but not end, with '/' (e.g., '/production/images'). Default: '/'
|
|
1657
|
+
:param ip_address_type: Specifies which IP protocol CloudFront uses when connecting to your origin. If your origin uses both IPv4 and IPv6 protocols, you can choose dualstack to help optimize reliability. Default: OriginIpAddressType.IPV4
|
|
1595
1658
|
:param keepalive_timeout: Specifies how long, in seconds, CloudFront persists its connection to the origin. The valid range is from 1 to 180 seconds, inclusive. Note that values over 60 seconds are possible only after a limit increase request for the origin response timeout quota has been approved in the target account; otherwise, values over 60 seconds will produce an error at deploy time. Default: Duration.seconds(5)
|
|
1596
1659
|
:param read_timeout: Specifies how long, in seconds, CloudFront waits for a response from the origin. The valid range is from 1 to 180 seconds, inclusive. Note that values over 60 seconds are possible only after a limit increase request for the origin response timeout quota has been approved in the target account; otherwise, values over 60 seconds will produce an error at deploy time. Default: Duration.seconds(30)
|
|
1597
1660
|
:param origin_access_control: An optional Origin Access Control. Default: - an Origin Access Control will be created.
|
|
@@ -1634,6 +1697,7 @@ class FunctionUrlOriginWithOACProps(FunctionUrlOriginProps):
|
|
|
1634
1697
|
check_type(argname="argument origin_shield_region", value=origin_shield_region, expected_type=type_hints["origin_shield_region"])
|
|
1635
1698
|
check_type(argname="argument response_completion_timeout", value=response_completion_timeout, expected_type=type_hints["response_completion_timeout"])
|
|
1636
1699
|
check_type(argname="argument origin_path", value=origin_path, expected_type=type_hints["origin_path"])
|
|
1700
|
+
check_type(argname="argument ip_address_type", value=ip_address_type, expected_type=type_hints["ip_address_type"])
|
|
1637
1701
|
check_type(argname="argument keepalive_timeout", value=keepalive_timeout, expected_type=type_hints["keepalive_timeout"])
|
|
1638
1702
|
check_type(argname="argument read_timeout", value=read_timeout, expected_type=type_hints["read_timeout"])
|
|
1639
1703
|
check_type(argname="argument origin_access_control", value=origin_access_control, expected_type=type_hints["origin_access_control"])
|
|
@@ -1656,6 +1720,8 @@ class FunctionUrlOriginWithOACProps(FunctionUrlOriginProps):
|
|
|
1656
1720
|
self._values["response_completion_timeout"] = response_completion_timeout
|
|
1657
1721
|
if origin_path is not None:
|
|
1658
1722
|
self._values["origin_path"] = origin_path
|
|
1723
|
+
if ip_address_type is not None:
|
|
1724
|
+
self._values["ip_address_type"] = ip_address_type
|
|
1659
1725
|
if keepalive_timeout is not None:
|
|
1660
1726
|
self._values["keepalive_timeout"] = keepalive_timeout
|
|
1661
1727
|
if read_timeout is not None:
|
|
@@ -1762,6 +1828,17 @@ class FunctionUrlOriginWithOACProps(FunctionUrlOriginProps):
|
|
|
1762
1828
|
result = self._values.get("origin_path")
|
|
1763
1829
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
1764
1830
|
|
|
1831
|
+
@builtins.property
|
|
1832
|
+
def ip_address_type(self) -> typing.Optional[_OriginIpAddressType_1c01e1a0]:
|
|
1833
|
+
'''Specifies which IP protocol CloudFront uses when connecting to your origin.
|
|
1834
|
+
|
|
1835
|
+
If your origin uses both IPv4 and IPv6 protocols, you can choose dualstack to help optimize reliability.
|
|
1836
|
+
|
|
1837
|
+
:default: OriginIpAddressType.IPV4
|
|
1838
|
+
'''
|
|
1839
|
+
result = self._values.get("ip_address_type")
|
|
1840
|
+
return typing.cast(typing.Optional[_OriginIpAddressType_1c01e1a0], result)
|
|
1841
|
+
|
|
1765
1842
|
@builtins.property
|
|
1766
1843
|
def keepalive_timeout(self) -> typing.Optional[_Duration_4839e8c3]:
|
|
1767
1844
|
'''Specifies how long, in seconds, CloudFront persists its connection to the origin.
|
|
@@ -5770,6 +5847,7 @@ publication.publish()
|
|
|
5770
5847
|
def _typecheckingstub__fcda903697b26acfe2149a285d5a64619682b675affb52f4ae2d1aca46c8f1c3(
|
|
5771
5848
|
lambda_function_url: _IFunctionUrl_1a74cd94,
|
|
5772
5849
|
*,
|
|
5850
|
+
ip_address_type: typing.Optional[_OriginIpAddressType_1c01e1a0] = None,
|
|
5773
5851
|
keepalive_timeout: typing.Optional[_Duration_4839e8c3] = None,
|
|
5774
5852
|
read_timeout: typing.Optional[_Duration_4839e8c3] = None,
|
|
5775
5853
|
origin_path: typing.Optional[builtins.str] = None,
|
|
@@ -5789,6 +5867,7 @@ def _typecheckingstub__b4d59b7721f41be7903dbcffeddd34d596392d2c8d2a4110f31a4dacd
|
|
|
5789
5867
|
lambda_function_url: _IFunctionUrl_1a74cd94,
|
|
5790
5868
|
*,
|
|
5791
5869
|
origin_access_control: typing.Optional[_IOriginAccessControl_82a6fe5a] = None,
|
|
5870
|
+
ip_address_type: typing.Optional[_OriginIpAddressType_1c01e1a0] = None,
|
|
5792
5871
|
keepalive_timeout: typing.Optional[_Duration_4839e8c3] = None,
|
|
5793
5872
|
read_timeout: typing.Optional[_Duration_4839e8c3] = None,
|
|
5794
5873
|
origin_path: typing.Optional[builtins.str] = None,
|
|
@@ -5830,6 +5909,7 @@ def _typecheckingstub__56d340a9ac5dd93c6aa22cb98bcbc860fb23f8d247b53c2cd1a51ecd8
|
|
|
5830
5909
|
origin_shield_region: typing.Optional[builtins.str] = None,
|
|
5831
5910
|
response_completion_timeout: typing.Optional[_Duration_4839e8c3] = None,
|
|
5832
5911
|
origin_path: typing.Optional[builtins.str] = None,
|
|
5912
|
+
ip_address_type: typing.Optional[_OriginIpAddressType_1c01e1a0] = None,
|
|
5833
5913
|
keepalive_timeout: typing.Optional[_Duration_4839e8c3] = None,
|
|
5834
5914
|
read_timeout: typing.Optional[_Duration_4839e8c3] = None,
|
|
5835
5915
|
) -> None:
|
|
@@ -5847,6 +5927,7 @@ def _typecheckingstub__56968af993436ccfcac0aa6a57169f1a033078c10740d435d086816ad
|
|
|
5847
5927
|
origin_shield_region: typing.Optional[builtins.str] = None,
|
|
5848
5928
|
response_completion_timeout: typing.Optional[_Duration_4839e8c3] = None,
|
|
5849
5929
|
origin_path: typing.Optional[builtins.str] = None,
|
|
5930
|
+
ip_address_type: typing.Optional[_OriginIpAddressType_1c01e1a0] = None,
|
|
5850
5931
|
keepalive_timeout: typing.Optional[_Duration_4839e8c3] = None,
|
|
5851
5932
|
read_timeout: typing.Optional[_Duration_4839e8c3] = None,
|
|
5852
5933
|
origin_access_control: typing.Optional[_IOriginAccessControl_82a6fe5a] = None,
|
|
@@ -486,7 +486,7 @@ metric = cloudwatch.Metric(
|
|
|
486
486
|
namespace="AWS/EC2",
|
|
487
487
|
metric_name="CPUUtilization",
|
|
488
488
|
statistic="Average",
|
|
489
|
-
period=Duration.
|
|
489
|
+
period=Duration.hours(1)
|
|
490
490
|
)
|
|
491
491
|
|
|
492
492
|
# Create an anomaly detection alarm
|
|
@@ -1635,7 +1635,7 @@ class AnomalyDetectionAlarmProps:
|
|
|
1635
1635
|
namespace="AWS/EC2",
|
|
1636
1636
|
metric_name="CPUUtilization",
|
|
1637
1637
|
statistic="Average",
|
|
1638
|
-
period=Duration.
|
|
1638
|
+
period=Duration.hours(1)
|
|
1639
1639
|
)
|
|
1640
1640
|
|
|
1641
1641
|
# Create an anomaly detection alarm
|
|
@@ -6616,7 +6616,7 @@ class Metric(metaclass=jsii.JSIIMeta, jsii_type="aws-cdk-lib.aws_cloudwatch.Metr
|
|
|
6616
6616
|
namespace="AWS/EC2",
|
|
6617
6617
|
metric_name="CPUUtilization",
|
|
6618
6618
|
statistic="Average",
|
|
6619
|
-
period=Duration.
|
|
6619
|
+
period=Duration.hours(1)
|
|
6620
6620
|
)
|
|
6621
6621
|
|
|
6622
6622
|
# Create an anomaly detection alarm
|
|
@@ -7578,7 +7578,7 @@ class MetricProps(CommonMetricOptions):
|
|
|
7578
7578
|
namespace="AWS/EC2",
|
|
7579
7579
|
metric_name="CPUUtilization",
|
|
7580
7580
|
statistic="Average",
|
|
7581
|
-
period=Duration.
|
|
7581
|
+
period=Duration.hours(1)
|
|
7582
7582
|
)
|
|
7583
7583
|
|
|
7584
7584
|
# Create an anomaly detection alarm
|
|
@@ -17444,7 +17444,7 @@ class AnomalyDetectionAlarm(
|
|
|
17444
17444
|
namespace="AWS/EC2",
|
|
17445
17445
|
metric_name="CPUUtilization",
|
|
17446
17446
|
statistic="Average",
|
|
17447
|
-
period=Duration.
|
|
17447
|
+
period=Duration.hours(1)
|
|
17448
17448
|
)
|
|
17449
17449
|
|
|
17450
17450
|
# Create an anomaly detection alarm
|