aws-cdk-lib 2.215.0__py3-none-any.whl → 2.216.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 +30 -30
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.215.0.jsii.tgz → aws-cdk-lib@2.216.0.jsii.tgz} +0 -0
- aws_cdk/aws_apigatewayv2/__init__.py +30 -19
- aws_cdk/aws_bedrock/__init__.py +30 -0
- aws_cdk/aws_cloudfront/__init__.py +79 -2
- aws_cdk/aws_cloudfront_origins/__init__.py +422 -47
- aws_cdk/aws_ecr/__init__.py +4 -0
- aws_cdk/aws_elasticloadbalancingv2/__init__.py +227 -0
- aws_cdk/aws_events/__init__.py +187 -0
- aws_cdk/aws_kinesisanalytics/__init__.py +315 -125
- aws_cdk/aws_lambda/__init__.py +16 -8
- aws_cdk/aws_route53/__init__.py +5926 -4376
- aws_cdk/aws_stepfunctions_tasks/__init__.py +669 -81
- {aws_cdk_lib-2.215.0.dist-info → aws_cdk_lib-2.216.0.dist-info}/METADATA +1 -1
- {aws_cdk_lib-2.215.0.dist-info → aws_cdk_lib-2.216.0.dist-info}/RECORD +20 -20
- {aws_cdk_lib-2.215.0.dist-info → aws_cdk_lib-2.216.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.215.0.dist-info → aws_cdk_lib-2.216.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.215.0.dist-info → aws_cdk_lib-2.216.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.215.0.dist-info → aws_cdk_lib-2.216.0.dist-info}/top_level.txt +0 -0
aws_cdk/__init__.py
CHANGED
|
@@ -13718,19 +13718,19 @@ class Duration(metaclass=jsii.JSIIMeta, jsii_type="aws-cdk-lib.Duration"):
|
|
|
13718
13718
|
|
|
13719
13719
|
Example::
|
|
13720
13720
|
|
|
13721
|
-
|
|
13721
|
+
import aws_cdk.aws_lambda as lambda_
|
|
13722
13722
|
|
|
13723
|
-
|
|
13724
|
-
|
|
13725
|
-
|
|
13726
|
-
|
|
13727
|
-
|
|
13728
|
-
|
|
13729
|
-
|
|
13730
|
-
|
|
13731
|
-
|
|
13732
|
-
|
|
13733
|
-
|
|
13723
|
+
# fn: lambda.Function
|
|
13724
|
+
|
|
13725
|
+
fn_url = fn.add_function_url(auth_type=lambda_.FunctionUrlAuthType.NONE)
|
|
13726
|
+
|
|
13727
|
+
cloudfront.Distribution(self, "Distribution",
|
|
13728
|
+
default_behavior=cloudfront.BehaviorOptions(
|
|
13729
|
+
origin=origins.FunctionUrlOrigin(fn_url,
|
|
13730
|
+
read_timeout=Duration.seconds(30),
|
|
13731
|
+
response_completion_timeout=Duration.seconds(90),
|
|
13732
|
+
keepalive_timeout=Duration.seconds(45)
|
|
13733
|
+
)
|
|
13734
13734
|
)
|
|
13735
13735
|
)
|
|
13736
13736
|
'''
|
|
@@ -23286,24 +23286,24 @@ class Size(metaclass=jsii.JSIIMeta, jsii_type="aws-cdk-lib.Size"):
|
|
|
23286
23286
|
|
|
23287
23287
|
Example::
|
|
23288
23288
|
|
|
23289
|
-
#
|
|
23290
|
-
#
|
|
23291
|
-
|
|
23292
|
-
|
|
23293
|
-
|
|
23294
|
-
|
|
23295
|
-
|
|
23296
|
-
|
|
23297
|
-
|
|
23298
|
-
|
|
23299
|
-
|
|
23300
|
-
|
|
23301
|
-
|
|
23302
|
-
|
|
23303
|
-
|
|
23304
|
-
|
|
23305
|
-
|
|
23306
|
-
|
|
23289
|
+
# my_file_system: efs.IFileSystem
|
|
23290
|
+
# my_job_role: iam.Role
|
|
23291
|
+
|
|
23292
|
+
my_file_system.grant_read(my_job_role)
|
|
23293
|
+
|
|
23294
|
+
job_defn = batch.EcsJobDefinition(self, "JobDefn",
|
|
23295
|
+
container=batch.EcsEc2ContainerDefinition(self, "containerDefn",
|
|
23296
|
+
image=ecs.ContainerImage.from_registry("public.ecr.aws/amazonlinux/amazonlinux:latest"),
|
|
23297
|
+
memory=cdk.Size.mebibytes(2048),
|
|
23298
|
+
cpu=256,
|
|
23299
|
+
volumes=[batch.EcsVolume.efs(
|
|
23300
|
+
name="myVolume",
|
|
23301
|
+
file_system=my_file_system,
|
|
23302
|
+
container_path="/Volumes/myVolume",
|
|
23303
|
+
use_job_role=True
|
|
23304
|
+
)],
|
|
23305
|
+
job_role=my_job_role
|
|
23306
|
+
)
|
|
23307
23307
|
)
|
|
23308
23308
|
'''
|
|
23309
23309
|
|
aws_cdk/_jsii/__init__.py
CHANGED
|
@@ -34,7 +34,7 @@ import aws_cdk.cloud_assembly_schema._jsii
|
|
|
34
34
|
import constructs._jsii
|
|
35
35
|
|
|
36
36
|
__jsii_assembly__ = jsii.JSIIAssembly.load(
|
|
37
|
-
"aws-cdk-lib", "2.
|
|
37
|
+
"aws-cdk-lib", "2.216.0", __name__[0:-6], "aws-cdk-lib@2.216.0.jsii.tgz"
|
|
38
38
|
)
|
|
39
39
|
|
|
40
40
|
__all__ = [
|
|
Binary file
|
|
@@ -538,6 +538,14 @@ arn = api.arn_for_execute_api_v2("$connect", "dev")
|
|
|
538
538
|
|
|
539
539
|
For a detailed explanation of this function, including usage and examples, please refer to the [Generating ARN for Execute API](#generating-arn-for-execute-api) section under HTTP API.
|
|
540
540
|
|
|
541
|
+
To disable schema validation, set `disableSchemaValidation` to true.
|
|
542
|
+
|
|
543
|
+
```python
|
|
544
|
+
apigwv2.WebSocketApi(self, "api",
|
|
545
|
+
disable_schema_validation=True
|
|
546
|
+
)
|
|
547
|
+
```
|
|
548
|
+
|
|
541
549
|
You can configure IP address type for the API endpoint using `ipAddressType` property.
|
|
542
550
|
Valid values are `IPV4` (default) and `DUAL_STACK`.
|
|
543
551
|
|
|
@@ -11722,6 +11730,7 @@ class WebSocketApi(
|
|
|
11722
11730
|
connect_route_options: typing.Optional[typing.Union["WebSocketRouteOptions", typing.Dict[builtins.str, typing.Any]]] = None,
|
|
11723
11731
|
default_route_options: typing.Optional[typing.Union["WebSocketRouteOptions", typing.Dict[builtins.str, typing.Any]]] = None,
|
|
11724
11732
|
description: typing.Optional[builtins.str] = None,
|
|
11733
|
+
disable_schema_validation: typing.Optional[builtins.bool] = None,
|
|
11725
11734
|
disconnect_route_options: typing.Optional[typing.Union["WebSocketRouteOptions", typing.Dict[builtins.str, typing.Any]]] = None,
|
|
11726
11735
|
ip_address_type: typing.Optional[IpAddressType] = None,
|
|
11727
11736
|
route_selection_expression: typing.Optional[builtins.str] = None,
|
|
@@ -11734,6 +11743,7 @@ class WebSocketApi(
|
|
|
11734
11743
|
:param connect_route_options: Options to configure a '$connect' route. Default: - no '$connect' route configured
|
|
11735
11744
|
:param default_route_options: Options to configure a '$default' route. Default: - no '$default' route configured
|
|
11736
11745
|
:param description: The description of the API. Default: - none
|
|
11746
|
+
:param disable_schema_validation: Avoid validating models when creating a deployment. Default: false
|
|
11737
11747
|
:param disconnect_route_options: Options to configure a '$disconnect' route. Default: - no '$disconnect' route configured
|
|
11738
11748
|
:param ip_address_type: The IP address types that can invoke the API. Default: undefined - AWS default is IPV4
|
|
11739
11749
|
:param route_selection_expression: The route selection expression for the API. Default: '$request.body.action'
|
|
@@ -11748,6 +11758,7 @@ class WebSocketApi(
|
|
|
11748
11758
|
connect_route_options=connect_route_options,
|
|
11749
11759
|
default_route_options=default_route_options,
|
|
11750
11760
|
description=description,
|
|
11761
|
+
disable_schema_validation=disable_schema_validation,
|
|
11751
11762
|
disconnect_route_options=disconnect_route_options,
|
|
11752
11763
|
ip_address_type=ip_address_type,
|
|
11753
11764
|
route_selection_expression=route_selection_expression,
|
|
@@ -12069,6 +12080,7 @@ class WebSocketApiKeySelectionExpression(
|
|
|
12069
12080
|
"connect_route_options": "connectRouteOptions",
|
|
12070
12081
|
"default_route_options": "defaultRouteOptions",
|
|
12071
12082
|
"description": "description",
|
|
12083
|
+
"disable_schema_validation": "disableSchemaValidation",
|
|
12072
12084
|
"disconnect_route_options": "disconnectRouteOptions",
|
|
12073
12085
|
"ip_address_type": "ipAddressType",
|
|
12074
12086
|
"route_selection_expression": "routeSelectionExpression",
|
|
@@ -12083,6 +12095,7 @@ class WebSocketApiProps:
|
|
|
12083
12095
|
connect_route_options: typing.Optional[typing.Union["WebSocketRouteOptions", typing.Dict[builtins.str, typing.Any]]] = None,
|
|
12084
12096
|
default_route_options: typing.Optional[typing.Union["WebSocketRouteOptions", typing.Dict[builtins.str, typing.Any]]] = None,
|
|
12085
12097
|
description: typing.Optional[builtins.str] = None,
|
|
12098
|
+
disable_schema_validation: typing.Optional[builtins.bool] = None,
|
|
12086
12099
|
disconnect_route_options: typing.Optional[typing.Union["WebSocketRouteOptions", typing.Dict[builtins.str, typing.Any]]] = None,
|
|
12087
12100
|
ip_address_type: typing.Optional[IpAddressType] = None,
|
|
12088
12101
|
route_selection_expression: typing.Optional[builtins.str] = None,
|
|
@@ -12094,6 +12107,7 @@ class WebSocketApiProps:
|
|
|
12094
12107
|
:param connect_route_options: Options to configure a '$connect' route. Default: - no '$connect' route configured
|
|
12095
12108
|
:param default_route_options: Options to configure a '$default' route. Default: - no '$default' route configured
|
|
12096
12109
|
:param description: The description of the API. Default: - none
|
|
12110
|
+
:param disable_schema_validation: Avoid validating models when creating a deployment. Default: false
|
|
12097
12111
|
:param disconnect_route_options: Options to configure a '$disconnect' route. Default: - no '$disconnect' route configured
|
|
12098
12112
|
:param ip_address_type: The IP address types that can invoke the API. Default: undefined - AWS default is IPV4
|
|
12099
12113
|
:param route_selection_expression: The route selection expression for the API. Default: '$request.body.action'
|
|
@@ -12102,25 +12116,8 @@ class WebSocketApiProps:
|
|
|
12102
12116
|
|
|
12103
12117
|
Example::
|
|
12104
12118
|
|
|
12105
|
-
|
|
12106
|
-
|
|
12107
|
-
|
|
12108
|
-
# This function handles your auth logic
|
|
12109
|
-
# auth_handler: lambda.Function
|
|
12110
|
-
|
|
12111
|
-
# This function handles your WebSocket requests
|
|
12112
|
-
# handler: lambda.Function
|
|
12113
|
-
|
|
12114
|
-
|
|
12115
|
-
authorizer = WebSocketLambdaAuthorizer("Authorizer", auth_handler)
|
|
12116
|
-
|
|
12117
|
-
integration = WebSocketLambdaIntegration("Integration", handler)
|
|
12118
|
-
|
|
12119
|
-
apigwv2.WebSocketApi(self, "WebSocketApi",
|
|
12120
|
-
connect_route_options=apigwv2.WebSocketRouteOptions(
|
|
12121
|
-
integration=integration,
|
|
12122
|
-
authorizer=authorizer
|
|
12123
|
-
)
|
|
12119
|
+
web_socket_api = apigwv2.WebSocketApi(self, "mywsapi",
|
|
12120
|
+
api_key_selection_expression=apigwv2.WebSocketApiKeySelectionExpression.HEADER_X_API_KEY
|
|
12124
12121
|
)
|
|
12125
12122
|
'''
|
|
12126
12123
|
if isinstance(connect_route_options, dict):
|
|
@@ -12136,6 +12133,7 @@ class WebSocketApiProps:
|
|
|
12136
12133
|
check_type(argname="argument connect_route_options", value=connect_route_options, expected_type=type_hints["connect_route_options"])
|
|
12137
12134
|
check_type(argname="argument default_route_options", value=default_route_options, expected_type=type_hints["default_route_options"])
|
|
12138
12135
|
check_type(argname="argument description", value=description, expected_type=type_hints["description"])
|
|
12136
|
+
check_type(argname="argument disable_schema_validation", value=disable_schema_validation, expected_type=type_hints["disable_schema_validation"])
|
|
12139
12137
|
check_type(argname="argument disconnect_route_options", value=disconnect_route_options, expected_type=type_hints["disconnect_route_options"])
|
|
12140
12138
|
check_type(argname="argument ip_address_type", value=ip_address_type, expected_type=type_hints["ip_address_type"])
|
|
12141
12139
|
check_type(argname="argument route_selection_expression", value=route_selection_expression, expected_type=type_hints["route_selection_expression"])
|
|
@@ -12150,6 +12148,8 @@ class WebSocketApiProps:
|
|
|
12150
12148
|
self._values["default_route_options"] = default_route_options
|
|
12151
12149
|
if description is not None:
|
|
12152
12150
|
self._values["description"] = description
|
|
12151
|
+
if disable_schema_validation is not None:
|
|
12152
|
+
self._values["disable_schema_validation"] = disable_schema_validation
|
|
12153
12153
|
if disconnect_route_options is not None:
|
|
12154
12154
|
self._values["disconnect_route_options"] = disconnect_route_options
|
|
12155
12155
|
if ip_address_type is not None:
|
|
@@ -12206,6 +12206,15 @@ class WebSocketApiProps:
|
|
|
12206
12206
|
result = self._values.get("description")
|
|
12207
12207
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
12208
12208
|
|
|
12209
|
+
@builtins.property
|
|
12210
|
+
def disable_schema_validation(self) -> typing.Optional[builtins.bool]:
|
|
12211
|
+
'''Avoid validating models when creating a deployment.
|
|
12212
|
+
|
|
12213
|
+
:default: false
|
|
12214
|
+
'''
|
|
12215
|
+
result = self._values.get("disable_schema_validation")
|
|
12216
|
+
return typing.cast(typing.Optional[builtins.bool], result)
|
|
12217
|
+
|
|
12209
12218
|
@builtins.property
|
|
12210
12219
|
def disconnect_route_options(self) -> typing.Optional["WebSocketRouteOptions"]:
|
|
12211
12220
|
'''Options to configure a '$disconnect' route.
|
|
@@ -24573,6 +24582,7 @@ def _typecheckingstub__8f37be20ee015faaaf9283fe203dc28d2dcc56800f6007ae9105e3ad4
|
|
|
24573
24582
|
connect_route_options: typing.Optional[typing.Union[WebSocketRouteOptions, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
24574
24583
|
default_route_options: typing.Optional[typing.Union[WebSocketRouteOptions, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
24575
24584
|
description: typing.Optional[builtins.str] = None,
|
|
24585
|
+
disable_schema_validation: typing.Optional[builtins.bool] = None,
|
|
24576
24586
|
disconnect_route_options: typing.Optional[typing.Union[WebSocketRouteOptions, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
24577
24587
|
ip_address_type: typing.Optional[IpAddressType] = None,
|
|
24578
24588
|
route_selection_expression: typing.Optional[builtins.str] = None,
|
|
@@ -24661,6 +24671,7 @@ def _typecheckingstub__c8895a8e636238eeb0c7336ab16a74480a8a8620f13eb92f05d4074fb
|
|
|
24661
24671
|
connect_route_options: typing.Optional[typing.Union[WebSocketRouteOptions, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
24662
24672
|
default_route_options: typing.Optional[typing.Union[WebSocketRouteOptions, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
24663
24673
|
description: typing.Optional[builtins.str] = None,
|
|
24674
|
+
disable_schema_validation: typing.Optional[builtins.bool] = None,
|
|
24664
24675
|
disconnect_route_options: typing.Optional[typing.Union[WebSocketRouteOptions, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
24665
24676
|
ip_address_type: typing.Optional[IpAddressType] = None,
|
|
24666
24677
|
route_selection_expression: typing.Optional[builtins.str] = None,
|
aws_cdk/aws_bedrock/__init__.py
CHANGED
|
@@ -4940,6 +4940,12 @@ class FoundationModelIdentifier(
|
|
|
4940
4940
|
'''Base model "deepseek.r1-v1:0".'''
|
|
4941
4941
|
return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "DEEP_SEEK_R1_V1_0"))
|
|
4942
4942
|
|
|
4943
|
+
@jsii.python.classproperty
|
|
4944
|
+
@jsii.member(jsii_name="DEEP_SEEK_V3_V1_0")
|
|
4945
|
+
def DEEP_SEEK_V3_V1_0(cls) -> "FoundationModelIdentifier":
|
|
4946
|
+
'''Base model "deepseek.v3-v1:0".'''
|
|
4947
|
+
return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "DEEP_SEEK_V3_V1_0"))
|
|
4948
|
+
|
|
4943
4949
|
@jsii.python.classproperty
|
|
4944
4950
|
@jsii.member(jsii_name="LUMA_RAY_V2_0")
|
|
4945
4951
|
def LUMA_RAY_V2_0(cls) -> "FoundationModelIdentifier":
|
|
@@ -5166,6 +5172,30 @@ class FoundationModelIdentifier(
|
|
|
5166
5172
|
'''Base model "openai.gpt-oss-20b-1:0".'''
|
|
5167
5173
|
return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "OPENAI_GPT_OSS_20B_1"))
|
|
5168
5174
|
|
|
5175
|
+
@jsii.python.classproperty
|
|
5176
|
+
@jsii.member(jsii_name="QWEN_QWEN3_235B_A22B_2507_V1_0")
|
|
5177
|
+
def QWEN_QWEN3_235_B_A22_B_2507_V1_0(cls) -> "FoundationModelIdentifier":
|
|
5178
|
+
'''Base Model "qwen.qwen3-235b-a22b-2507-v1:0".'''
|
|
5179
|
+
return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "QWEN_QWEN3_235B_A22B_2507_V1_0"))
|
|
5180
|
+
|
|
5181
|
+
@jsii.python.classproperty
|
|
5182
|
+
@jsii.member(jsii_name="QWEN_QWEN3_32B_V1_0")
|
|
5183
|
+
def QWEN_QWEN3_32_B_V1_0(cls) -> "FoundationModelIdentifier":
|
|
5184
|
+
'''Base Model "qwen.qwen3-32b-v1:0".'''
|
|
5185
|
+
return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "QWEN_QWEN3_32B_V1_0"))
|
|
5186
|
+
|
|
5187
|
+
@jsii.python.classproperty
|
|
5188
|
+
@jsii.member(jsii_name="QWEN_QWEN3_CODER_30B_A3B_V1_0")
|
|
5189
|
+
def QWEN_QWEN3_CODER_30_B_A3_B_V1_0(cls) -> "FoundationModelIdentifier":
|
|
5190
|
+
'''Base Model "qwen.qwen3-coder-30b-a3b-v1:0".'''
|
|
5191
|
+
return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "QWEN_QWEN3_CODER_30B_A3B_V1_0"))
|
|
5192
|
+
|
|
5193
|
+
@jsii.python.classproperty
|
|
5194
|
+
@jsii.member(jsii_name="QWEN_QWEN3_CODER_480B_A35B_V1_0")
|
|
5195
|
+
def QWEN_QWEN3_CODER_480_B_A35_B_V1_0(cls) -> "FoundationModelIdentifier":
|
|
5196
|
+
'''Base Model "qwen.qwen3-coder-480b-a35b-v1:0".'''
|
|
5197
|
+
return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "QWEN_QWEN3_CODER_480B_A35B_V1_0"))
|
|
5198
|
+
|
|
5169
5199
|
@jsii.python.classproperty
|
|
5170
5200
|
@jsii.member(jsii_name="STABILITY_SD3_5_LARGE_V1_0")
|
|
5171
5201
|
def STABILITY_SD3_5_LARGE_V1_0(cls) -> "FoundationModelIdentifier":
|
|
@@ -9903,6 +9903,7 @@ class OriginBase(
|
|
|
9903
9903
|
origin_id: typing.Optional[builtins.str] = None,
|
|
9904
9904
|
origin_shield_enabled: typing.Optional[builtins.bool] = None,
|
|
9905
9905
|
origin_shield_region: typing.Optional[builtins.str] = None,
|
|
9906
|
+
response_completion_timeout: typing.Optional[_Duration_4839e8c3] = None,
|
|
9906
9907
|
) -> None:
|
|
9907
9908
|
'''
|
|
9908
9909
|
:param domain_name: -
|
|
@@ -9914,6 +9915,7 @@ class OriginBase(
|
|
|
9914
9915
|
:param origin_id: A unique identifier for the origin. This value must be unique within the distribution. Default: - an originid will be generated for you
|
|
9915
9916
|
:param origin_shield_enabled: Origin Shield is enabled by setting originShieldRegion to a valid region, after this to disable Origin Shield again you must set this flag to false. Default: - true
|
|
9916
9917
|
: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
|
|
9918
|
+
: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
|
|
9917
9919
|
'''
|
|
9918
9920
|
if __debug__:
|
|
9919
9921
|
type_hints = typing.get_type_hints(_typecheckingstub__5b13f814bf47a5f3949ffc4b53034b4702a02836213167c9ba4c6a8d6e8f623e)
|
|
@@ -9927,6 +9929,7 @@ class OriginBase(
|
|
|
9927
9929
|
origin_id=origin_id,
|
|
9928
9930
|
origin_shield_enabled=origin_shield_enabled,
|
|
9929
9931
|
origin_shield_region=origin_shield_region,
|
|
9932
|
+
response_completion_timeout=response_completion_timeout,
|
|
9930
9933
|
)
|
|
9931
9934
|
|
|
9932
9935
|
jsii.create(self.__class__, self, [domain_name, props])
|
|
@@ -9974,6 +9977,25 @@ class OriginBase(
|
|
|
9974
9977
|
) -> typing.Optional["CfnDistribution.VpcOriginConfigProperty"]:
|
|
9975
9978
|
return typing.cast(typing.Optional["CfnDistribution.VpcOriginConfigProperty"], jsii.invoke(self, "renderVpcOriginConfig", []))
|
|
9976
9979
|
|
|
9980
|
+
@jsii.member(jsii_name="validateResponseCompletionTimeoutWithReadTimeout")
|
|
9981
|
+
def _validate_response_completion_timeout_with_read_timeout(
|
|
9982
|
+
self,
|
|
9983
|
+
response_completion_timeout: typing.Optional[_Duration_4839e8c3] = None,
|
|
9984
|
+
read_timeout: typing.Optional[_Duration_4839e8c3] = None,
|
|
9985
|
+
) -> None:
|
|
9986
|
+
'''Validates that responseCompletionTimeout is greater than or equal to readTimeout when both are specified.
|
|
9987
|
+
|
|
9988
|
+
This method should be called by subclasses that support readTimeout.
|
|
9989
|
+
|
|
9990
|
+
:param response_completion_timeout: -
|
|
9991
|
+
:param read_timeout: -
|
|
9992
|
+
'''
|
|
9993
|
+
if __debug__:
|
|
9994
|
+
type_hints = typing.get_type_hints(_typecheckingstub__2a6162e2b8ea3b5399119fc8b631f66d8bac30203424ac043fac74ad6d5bf84d)
|
|
9995
|
+
check_type(argname="argument response_completion_timeout", value=response_completion_timeout, expected_type=type_hints["response_completion_timeout"])
|
|
9996
|
+
check_type(argname="argument read_timeout", value=read_timeout, expected_type=type_hints["read_timeout"])
|
|
9997
|
+
return typing.cast(None, jsii.invoke(self, "validateResponseCompletionTimeoutWithReadTimeout", [response_completion_timeout, read_timeout]))
|
|
9998
|
+
|
|
9977
9999
|
|
|
9978
10000
|
class _OriginBaseProxy(OriginBase):
|
|
9979
10001
|
pass
|
|
@@ -10279,6 +10301,7 @@ class OriginFailoverConfig:
|
|
|
10279
10301
|
"origin_id": "originId",
|
|
10280
10302
|
"origin_shield_enabled": "originShieldEnabled",
|
|
10281
10303
|
"origin_shield_region": "originShieldRegion",
|
|
10304
|
+
"response_completion_timeout": "responseCompletionTimeout",
|
|
10282
10305
|
},
|
|
10283
10306
|
)
|
|
10284
10307
|
class OriginOptions:
|
|
@@ -10292,6 +10315,7 @@ class OriginOptions:
|
|
|
10292
10315
|
origin_id: typing.Optional[builtins.str] = None,
|
|
10293
10316
|
origin_shield_enabled: typing.Optional[builtins.bool] = None,
|
|
10294
10317
|
origin_shield_region: typing.Optional[builtins.str] = None,
|
|
10318
|
+
response_completion_timeout: typing.Optional[_Duration_4839e8c3] = None,
|
|
10295
10319
|
) -> None:
|
|
10296
10320
|
'''Options to define an Origin.
|
|
10297
10321
|
|
|
@@ -10302,6 +10326,7 @@ class OriginOptions:
|
|
|
10302
10326
|
:param origin_id: A unique identifier for the origin. This value must be unique within the distribution. Default: - an originid will be generated for you
|
|
10303
10327
|
:param origin_shield_enabled: Origin Shield is enabled by setting originShieldRegion to a valid region, after this to disable Origin Shield again you must set this flag to false. Default: - true
|
|
10304
10328
|
: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
|
|
10329
|
+
: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
|
|
10305
10330
|
|
|
10306
10331
|
:exampleMetadata: fixture=_generated
|
|
10307
10332
|
|
|
@@ -10321,7 +10346,8 @@ class OriginOptions:
|
|
|
10321
10346
|
origin_access_control_id="originAccessControlId",
|
|
10322
10347
|
origin_id="originId",
|
|
10323
10348
|
origin_shield_enabled=False,
|
|
10324
|
-
origin_shield_region="originShieldRegion"
|
|
10349
|
+
origin_shield_region="originShieldRegion",
|
|
10350
|
+
response_completion_timeout=cdk.Duration.minutes(30)
|
|
10325
10351
|
)
|
|
10326
10352
|
'''
|
|
10327
10353
|
if __debug__:
|
|
@@ -10333,6 +10359,7 @@ class OriginOptions:
|
|
|
10333
10359
|
check_type(argname="argument origin_id", value=origin_id, expected_type=type_hints["origin_id"])
|
|
10334
10360
|
check_type(argname="argument origin_shield_enabled", value=origin_shield_enabled, expected_type=type_hints["origin_shield_enabled"])
|
|
10335
10361
|
check_type(argname="argument origin_shield_region", value=origin_shield_region, expected_type=type_hints["origin_shield_region"])
|
|
10362
|
+
check_type(argname="argument response_completion_timeout", value=response_completion_timeout, expected_type=type_hints["response_completion_timeout"])
|
|
10336
10363
|
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
10337
10364
|
if connection_attempts is not None:
|
|
10338
10365
|
self._values["connection_attempts"] = connection_attempts
|
|
@@ -10348,6 +10375,8 @@ class OriginOptions:
|
|
|
10348
10375
|
self._values["origin_shield_enabled"] = origin_shield_enabled
|
|
10349
10376
|
if origin_shield_region is not None:
|
|
10350
10377
|
self._values["origin_shield_region"] = origin_shield_region
|
|
10378
|
+
if response_completion_timeout is not None:
|
|
10379
|
+
self._values["response_completion_timeout"] = response_completion_timeout
|
|
10351
10380
|
|
|
10352
10381
|
@builtins.property
|
|
10353
10382
|
def connection_attempts(self) -> typing.Optional[jsii.Number]:
|
|
@@ -10422,6 +10451,21 @@ class OriginOptions:
|
|
|
10422
10451
|
result = self._values.get("origin_shield_region")
|
|
10423
10452
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
10424
10453
|
|
|
10454
|
+
@builtins.property
|
|
10455
|
+
def response_completion_timeout(self) -> typing.Optional[_Duration_4839e8c3]:
|
|
10456
|
+
'''The time that a request from CloudFront to the origin can stay open and wait for a response.
|
|
10457
|
+
|
|
10458
|
+
If the complete response isn't received from the origin by this time, CloudFront ends the connection.
|
|
10459
|
+
|
|
10460
|
+
Valid values are 1-3600 seconds, inclusive.
|
|
10461
|
+
|
|
10462
|
+
:default: undefined - AWS CloudFront default is not enforcing a maximum value
|
|
10463
|
+
|
|
10464
|
+
:see: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/DownloadDistValuesOrigin.html#response-completion-timeout
|
|
10465
|
+
'''
|
|
10466
|
+
result = self._values.get("response_completion_timeout")
|
|
10467
|
+
return typing.cast(typing.Optional[_Duration_4839e8c3], result)
|
|
10468
|
+
|
|
10425
10469
|
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
10426
10470
|
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
10427
10471
|
|
|
@@ -10445,6 +10489,7 @@ class OriginOptions:
|
|
|
10445
10489
|
"origin_id": "originId",
|
|
10446
10490
|
"origin_shield_enabled": "originShieldEnabled",
|
|
10447
10491
|
"origin_shield_region": "originShieldRegion",
|
|
10492
|
+
"response_completion_timeout": "responseCompletionTimeout",
|
|
10448
10493
|
"origin_path": "originPath",
|
|
10449
10494
|
},
|
|
10450
10495
|
)
|
|
@@ -10459,6 +10504,7 @@ class OriginProps(OriginOptions):
|
|
|
10459
10504
|
origin_id: typing.Optional[builtins.str] = None,
|
|
10460
10505
|
origin_shield_enabled: typing.Optional[builtins.bool] = None,
|
|
10461
10506
|
origin_shield_region: typing.Optional[builtins.str] = None,
|
|
10507
|
+
response_completion_timeout: typing.Optional[_Duration_4839e8c3] = None,
|
|
10462
10508
|
origin_path: typing.Optional[builtins.str] = None,
|
|
10463
10509
|
) -> None:
|
|
10464
10510
|
'''Properties to define an Origin.
|
|
@@ -10470,6 +10516,7 @@ class OriginProps(OriginOptions):
|
|
|
10470
10516
|
:param origin_id: A unique identifier for the origin. This value must be unique within the distribution. Default: - an originid will be generated for you
|
|
10471
10517
|
:param origin_shield_enabled: Origin Shield is enabled by setting originShieldRegion to a valid region, after this to disable Origin Shield again you must set this flag to false. Default: - true
|
|
10472
10518
|
: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
|
|
10519
|
+
: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
|
|
10473
10520
|
: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: '/'
|
|
10474
10521
|
|
|
10475
10522
|
:exampleMetadata: fixture=_generated
|
|
@@ -10491,7 +10538,8 @@ class OriginProps(OriginOptions):
|
|
|
10491
10538
|
origin_id="originId",
|
|
10492
10539
|
origin_path="originPath",
|
|
10493
10540
|
origin_shield_enabled=False,
|
|
10494
|
-
origin_shield_region="originShieldRegion"
|
|
10541
|
+
origin_shield_region="originShieldRegion",
|
|
10542
|
+
response_completion_timeout=cdk.Duration.minutes(30)
|
|
10495
10543
|
)
|
|
10496
10544
|
'''
|
|
10497
10545
|
if __debug__:
|
|
@@ -10503,6 +10551,7 @@ class OriginProps(OriginOptions):
|
|
|
10503
10551
|
check_type(argname="argument origin_id", value=origin_id, expected_type=type_hints["origin_id"])
|
|
10504
10552
|
check_type(argname="argument origin_shield_enabled", value=origin_shield_enabled, expected_type=type_hints["origin_shield_enabled"])
|
|
10505
10553
|
check_type(argname="argument origin_shield_region", value=origin_shield_region, expected_type=type_hints["origin_shield_region"])
|
|
10554
|
+
check_type(argname="argument response_completion_timeout", value=response_completion_timeout, expected_type=type_hints["response_completion_timeout"])
|
|
10506
10555
|
check_type(argname="argument origin_path", value=origin_path, expected_type=type_hints["origin_path"])
|
|
10507
10556
|
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
10508
10557
|
if connection_attempts is not None:
|
|
@@ -10519,6 +10568,8 @@ class OriginProps(OriginOptions):
|
|
|
10519
10568
|
self._values["origin_shield_enabled"] = origin_shield_enabled
|
|
10520
10569
|
if origin_shield_region is not None:
|
|
10521
10570
|
self._values["origin_shield_region"] = origin_shield_region
|
|
10571
|
+
if response_completion_timeout is not None:
|
|
10572
|
+
self._values["response_completion_timeout"] = response_completion_timeout
|
|
10522
10573
|
if origin_path is not None:
|
|
10523
10574
|
self._values["origin_path"] = origin_path
|
|
10524
10575
|
|
|
@@ -10595,6 +10646,21 @@ class OriginProps(OriginOptions):
|
|
|
10595
10646
|
result = self._values.get("origin_shield_region")
|
|
10596
10647
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
10597
10648
|
|
|
10649
|
+
@builtins.property
|
|
10650
|
+
def response_completion_timeout(self) -> typing.Optional[_Duration_4839e8c3]:
|
|
10651
|
+
'''The time that a request from CloudFront to the origin can stay open and wait for a response.
|
|
10652
|
+
|
|
10653
|
+
If the complete response isn't received from the origin by this time, CloudFront ends the connection.
|
|
10654
|
+
|
|
10655
|
+
Valid values are 1-3600 seconds, inclusive.
|
|
10656
|
+
|
|
10657
|
+
:default: undefined - AWS CloudFront default is not enforcing a maximum value
|
|
10658
|
+
|
|
10659
|
+
:see: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/DownloadDistValuesOrigin.html#response-completion-timeout
|
|
10660
|
+
'''
|
|
10661
|
+
result = self._values.get("response_completion_timeout")
|
|
10662
|
+
return typing.cast(typing.Optional[_Duration_4839e8c3], result)
|
|
10663
|
+
|
|
10598
10664
|
@builtins.property
|
|
10599
10665
|
def origin_path(self) -> typing.Optional[builtins.str]:
|
|
10600
10666
|
'''An optional path that CloudFront appends to the origin domain name when CloudFront requests content from the origin.
|
|
@@ -10632,6 +10698,7 @@ class OriginProtocolPolicy(enum.Enum):
|
|
|
10632
10698
|
connection_attempts=3,
|
|
10633
10699
|
connection_timeout=Duration.seconds(5),
|
|
10634
10700
|
read_timeout=Duration.seconds(45),
|
|
10701
|
+
response_completion_timeout=Duration.seconds(120),
|
|
10635
10702
|
keepalive_timeout=Duration.seconds(45),
|
|
10636
10703
|
protocol_policy=cloudfront.OriginProtocolPolicy.MATCH_VIEWER
|
|
10637
10704
|
)
|
|
@@ -32539,6 +32606,7 @@ def _typecheckingstub__5b13f814bf47a5f3949ffc4b53034b4702a02836213167c9ba4c6a8d6
|
|
|
32539
32606
|
origin_id: typing.Optional[builtins.str] = None,
|
|
32540
32607
|
origin_shield_enabled: typing.Optional[builtins.bool] = None,
|
|
32541
32608
|
origin_shield_region: typing.Optional[builtins.str] = None,
|
|
32609
|
+
response_completion_timeout: typing.Optional[_Duration_4839e8c3] = None,
|
|
32542
32610
|
) -> None:
|
|
32543
32611
|
"""Type checking stubs"""
|
|
32544
32612
|
pass
|
|
@@ -32552,6 +32620,13 @@ def _typecheckingstub__8428dfc90e69bdd5363e69afd9c590a4ed2f1363b22242197295117dc
|
|
|
32552
32620
|
"""Type checking stubs"""
|
|
32553
32621
|
pass
|
|
32554
32622
|
|
|
32623
|
+
def _typecheckingstub__2a6162e2b8ea3b5399119fc8b631f66d8bac30203424ac043fac74ad6d5bf84d(
|
|
32624
|
+
response_completion_timeout: typing.Optional[_Duration_4839e8c3] = None,
|
|
32625
|
+
read_timeout: typing.Optional[_Duration_4839e8c3] = None,
|
|
32626
|
+
) -> None:
|
|
32627
|
+
"""Type checking stubs"""
|
|
32628
|
+
pass
|
|
32629
|
+
|
|
32555
32630
|
def _typecheckingstub__d3e6a8992dd905a0c0d851cfed62aa0f881803068317a0b59eb84571249e84f1(
|
|
32556
32631
|
*,
|
|
32557
32632
|
failover_config: typing.Optional[typing.Union[OriginFailoverConfig, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
@@ -32586,6 +32661,7 @@ def _typecheckingstub__554f93c57439378c8175676cc442eaea5c8ec961a156b1f26e60df9cd
|
|
|
32586
32661
|
origin_id: typing.Optional[builtins.str] = None,
|
|
32587
32662
|
origin_shield_enabled: typing.Optional[builtins.bool] = None,
|
|
32588
32663
|
origin_shield_region: typing.Optional[builtins.str] = None,
|
|
32664
|
+
response_completion_timeout: typing.Optional[_Duration_4839e8c3] = None,
|
|
32589
32665
|
) -> None:
|
|
32590
32666
|
"""Type checking stubs"""
|
|
32591
32667
|
pass
|
|
@@ -32599,6 +32675,7 @@ def _typecheckingstub__e1f5da480c426bb32e14bbbeb482146cc90bcd3678f902c46f0f2f739
|
|
|
32599
32675
|
origin_id: typing.Optional[builtins.str] = None,
|
|
32600
32676
|
origin_shield_enabled: typing.Optional[builtins.bool] = None,
|
|
32601
32677
|
origin_shield_region: typing.Optional[builtins.str] = None,
|
|
32678
|
+
response_completion_timeout: typing.Optional[_Duration_4839e8c3] = None,
|
|
32602
32679
|
origin_path: typing.Optional[builtins.str] = None,
|
|
32603
32680
|
) -> None:
|
|
32604
32681
|
"""Type checking stubs"""
|