aws-cdk-lib 2.188.0__py3-none-any.whl → 2.189.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 +2 -0
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.188.0.jsii.tgz → aws-cdk-lib@2.189.0.jsii.tgz} +0 -0
- aws_cdk/aws_apigateway/__init__.py +2 -0
- aws_cdk/aws_apigatewayv2/__init__.py +82 -0
- aws_cdk/aws_batch/__init__.py +2 -0
- aws_cdk/aws_bedrock/__init__.py +24 -22
- aws_cdk/aws_dsql/__init__.py +366 -0
- aws_cdk/aws_dynamodb/__init__.py +4 -4
- aws_cdk/aws_ec2/__init__.py +129 -100
- aws_cdk/aws_fsx/__init__.py +2 -8
- aws_cdk/aws_gamelift/__init__.py +135 -9
- aws_cdk/aws_groundstation/__init__.py +4 -2
- aws_cdk/aws_paymentcryptography/__init__.py +6 -2
- aws_cdk/aws_redshiftserverless/__init__.py +166 -0
- aws_cdk/pipelines/__init__.py +39 -1
- {aws_cdk_lib-2.188.0.dist-info → aws_cdk_lib-2.189.0.dist-info}/METADATA +1 -1
- {aws_cdk_lib-2.188.0.dist-info → aws_cdk_lib-2.189.0.dist-info}/RECORD +22 -21
- {aws_cdk_lib-2.188.0.dist-info → aws_cdk_lib-2.189.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.188.0.dist-info → aws_cdk_lib-2.189.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.188.0.dist-info → aws_cdk_lib-2.189.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.188.0.dist-info → aws_cdk_lib-2.189.0.dist-info}/top_level.txt +0 -0
aws_cdk/__init__.py
CHANGED
|
@@ -37318,6 +37318,7 @@ __all__ = [
|
|
|
37318
37318
|
"aws_dms",
|
|
37319
37319
|
"aws_docdb",
|
|
37320
37320
|
"aws_docdbelastic",
|
|
37321
|
+
"aws_dsql",
|
|
37321
37322
|
"aws_dynamodb",
|
|
37322
37323
|
"aws_ec2",
|
|
37323
37324
|
"aws_ecr",
|
|
@@ -37614,6 +37615,7 @@ from . import aws_dlm
|
|
|
37614
37615
|
from . import aws_dms
|
|
37615
37616
|
from . import aws_docdb
|
|
37616
37617
|
from . import aws_docdbelastic
|
|
37618
|
+
from . import aws_dsql
|
|
37617
37619
|
from . import aws_dynamodb
|
|
37618
37620
|
from . import aws_ec2
|
|
37619
37621
|
from . import aws_ecr
|
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.189.0", __name__[0:-6], "aws-cdk-lib@2.189.0.jsii.tgz"
|
|
38
38
|
)
|
|
39
39
|
|
|
40
40
|
__all__ = [
|
|
Binary file
|
|
@@ -7693,6 +7693,8 @@ class CfnDomainName(
|
|
|
7693
7693
|
):
|
|
7694
7694
|
'''The ``AWS::ApiGateway::DomainName`` resource specifies a public custom domain name for your API in API Gateway.
|
|
7695
7695
|
|
|
7696
|
+
To create a custom domain name for private APIs, use `AWS::ApiGateway::DomainV2 <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-domainnamev2.html>`_ .
|
|
7697
|
+
|
|
7696
7698
|
You can use a custom domain name to provide a URL that's more intuitive and easier to recall. For more information about using custom domain names, see `Set up Custom Domain Name for an API in API Gateway <https://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-custom-domains.html>`_ in the *API Gateway Developer Guide* .
|
|
7697
7699
|
|
|
7698
7700
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-domainname.html
|
|
@@ -106,6 +106,15 @@ apigwv2.HttpApi(self, "HttpProxyApi",
|
|
|
106
106
|
)
|
|
107
107
|
```
|
|
108
108
|
|
|
109
|
+
You can configure IP address type for the API endpoint using `ipAddressType` property.
|
|
110
|
+
Valid values are `IPV4` (default) and `DUAL_STACK`.
|
|
111
|
+
|
|
112
|
+
```python
|
|
113
|
+
apigwv2.HttpApi(self, "HttpApi",
|
|
114
|
+
ip_address_type=apigwv2.IpAddressType.DUAL_STACK
|
|
115
|
+
)
|
|
116
|
+
```
|
|
117
|
+
|
|
109
118
|
### Cross Origin Resource Sharing (CORS)
|
|
110
119
|
|
|
111
120
|
[Cross-origin resource sharing (CORS)](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) is a browser security
|
|
@@ -450,6 +459,15 @@ arn = api.arn_for_execute_api_v2("$connect", "dev")
|
|
|
450
459
|
|
|
451
460
|
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.
|
|
452
461
|
|
|
462
|
+
You can configure IP address type for the API endpoint using `ipAddressType` property.
|
|
463
|
+
Valid values are `IPV4` (default) and `DUAL_STACK`.
|
|
464
|
+
|
|
465
|
+
```python
|
|
466
|
+
apigwv2.WebSocketApi(self, "WebSocketApi",
|
|
467
|
+
ip_address_type=apigwv2.IpAddressType.DUAL_STACK
|
|
468
|
+
)
|
|
469
|
+
```
|
|
470
|
+
|
|
453
471
|
### Manage Connections Permission
|
|
454
472
|
|
|
455
473
|
Grant permission to use API Gateway Management API of a WebSocket API by calling the `grantManageConnections` API.
|
|
@@ -9033,6 +9051,7 @@ class HttpApiAttributes:
|
|
|
9033
9051
|
"default_integration": "defaultIntegration",
|
|
9034
9052
|
"description": "description",
|
|
9035
9053
|
"disable_execute_api_endpoint": "disableExecuteApiEndpoint",
|
|
9054
|
+
"ip_address_type": "ipAddressType",
|
|
9036
9055
|
"route_selection_expression": "routeSelectionExpression",
|
|
9037
9056
|
},
|
|
9038
9057
|
)
|
|
@@ -9049,6 +9068,7 @@ class HttpApiProps:
|
|
|
9049
9068
|
default_integration: typing.Optional["HttpRouteIntegration"] = None,
|
|
9050
9069
|
description: typing.Optional[builtins.str] = None,
|
|
9051
9070
|
disable_execute_api_endpoint: typing.Optional[builtins.bool] = None,
|
|
9071
|
+
ip_address_type: typing.Optional["IpAddressType"] = None,
|
|
9052
9072
|
route_selection_expression: typing.Optional[builtins.bool] = None,
|
|
9053
9073
|
) -> None:
|
|
9054
9074
|
'''Properties to initialize an instance of ``HttpApi``.
|
|
@@ -9062,6 +9082,7 @@ class HttpApiProps:
|
|
|
9062
9082
|
:param default_integration: An integration that will be configured on the catch-all route ($default). Default: - none
|
|
9063
9083
|
:param description: The description of the API. Default: - none
|
|
9064
9084
|
:param disable_execute_api_endpoint: Specifies whether clients can invoke your API using the default endpoint. By default, clients can invoke your API with the default ``https://{api_id}.execute-api.{region}.amazonaws.com`` endpoint. Set this to true if you would like clients to use your custom domain name. Default: false execute-api endpoint enabled.
|
|
9085
|
+
:param ip_address_type: The IP address types that can invoke the API. Default: undefined - AWS default is IPV4
|
|
9065
9086
|
:param route_selection_expression: Whether to set the default route selection expression for the API. When enabled, "${request.method} ${request.path}" is set as the default route selection expression. Default: false
|
|
9066
9087
|
|
|
9067
9088
|
:exampleMetadata: infused
|
|
@@ -9098,6 +9119,7 @@ class HttpApiProps:
|
|
|
9098
9119
|
check_type(argname="argument default_integration", value=default_integration, expected_type=type_hints["default_integration"])
|
|
9099
9120
|
check_type(argname="argument description", value=description, expected_type=type_hints["description"])
|
|
9100
9121
|
check_type(argname="argument disable_execute_api_endpoint", value=disable_execute_api_endpoint, expected_type=type_hints["disable_execute_api_endpoint"])
|
|
9122
|
+
check_type(argname="argument ip_address_type", value=ip_address_type, expected_type=type_hints["ip_address_type"])
|
|
9101
9123
|
check_type(argname="argument route_selection_expression", value=route_selection_expression, expected_type=type_hints["route_selection_expression"])
|
|
9102
9124
|
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
9103
9125
|
if api_name is not None:
|
|
@@ -9118,6 +9140,8 @@ class HttpApiProps:
|
|
|
9118
9140
|
self._values["description"] = description
|
|
9119
9141
|
if disable_execute_api_endpoint is not None:
|
|
9120
9142
|
self._values["disable_execute_api_endpoint"] = disable_execute_api_endpoint
|
|
9143
|
+
if ip_address_type is not None:
|
|
9144
|
+
self._values["ip_address_type"] = ip_address_type
|
|
9121
9145
|
if route_selection_expression is not None:
|
|
9122
9146
|
self._values["route_selection_expression"] = route_selection_expression
|
|
9123
9147
|
|
|
@@ -9212,6 +9236,17 @@ class HttpApiProps:
|
|
|
9212
9236
|
result = self._values.get("disable_execute_api_endpoint")
|
|
9213
9237
|
return typing.cast(typing.Optional[builtins.bool], result)
|
|
9214
9238
|
|
|
9239
|
+
@builtins.property
|
|
9240
|
+
def ip_address_type(self) -> typing.Optional["IpAddressType"]:
|
|
9241
|
+
'''The IP address types that can invoke the API.
|
|
9242
|
+
|
|
9243
|
+
:default: undefined - AWS default is IPV4
|
|
9244
|
+
|
|
9245
|
+
:see: https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-ip-address-type.html
|
|
9246
|
+
'''
|
|
9247
|
+
result = self._values.get("ip_address_type")
|
|
9248
|
+
return typing.cast(typing.Optional["IpAddressType"], result)
|
|
9249
|
+
|
|
9215
9250
|
@builtins.property
|
|
9216
9251
|
def route_selection_expression(self) -> typing.Optional[builtins.bool]:
|
|
9217
9252
|
'''Whether to set the default route selection expression for the API.
|
|
@@ -12254,6 +12289,25 @@ class _IntegrationCredentialsProxy(IntegrationCredentials):
|
|
|
12254
12289
|
typing.cast(typing.Any, IntegrationCredentials).__jsii_proxy_class__ = lambda : _IntegrationCredentialsProxy
|
|
12255
12290
|
|
|
12256
12291
|
|
|
12292
|
+
@jsii.enum(jsii_type="aws-cdk-lib.aws_apigatewayv2.IpAddressType")
|
|
12293
|
+
class IpAddressType(enum.Enum):
|
|
12294
|
+
'''Supported IP Address Types.
|
|
12295
|
+
|
|
12296
|
+
:exampleMetadata: infused
|
|
12297
|
+
|
|
12298
|
+
Example::
|
|
12299
|
+
|
|
12300
|
+
apigwv2.HttpApi(self, "HttpApi",
|
|
12301
|
+
ip_address_type=apigwv2.IpAddressType.DUAL_STACK
|
|
12302
|
+
)
|
|
12303
|
+
'''
|
|
12304
|
+
|
|
12305
|
+
IPV4 = "IPV4"
|
|
12306
|
+
'''IPv4 address type.'''
|
|
12307
|
+
DUAL_STACK = "DUAL_STACK"
|
|
12308
|
+
'''IPv4 and IPv6 address type.'''
|
|
12309
|
+
|
|
12310
|
+
|
|
12257
12311
|
@jsii.data_type(
|
|
12258
12312
|
jsii_type="aws-cdk-lib.aws_apigatewayv2.MTLSConfig",
|
|
12259
12313
|
jsii_struct_bases=[],
|
|
@@ -13308,6 +13362,7 @@ class WebSocketApi(
|
|
|
13308
13362
|
default_route_options: typing.Optional[typing.Union["WebSocketRouteOptions", typing.Dict[builtins.str, typing.Any]]] = None,
|
|
13309
13363
|
description: typing.Optional[builtins.str] = None,
|
|
13310
13364
|
disconnect_route_options: typing.Optional[typing.Union["WebSocketRouteOptions", typing.Dict[builtins.str, typing.Any]]] = None,
|
|
13365
|
+
ip_address_type: typing.Optional[IpAddressType] = None,
|
|
13311
13366
|
route_selection_expression: typing.Optional[builtins.str] = None,
|
|
13312
13367
|
) -> None:
|
|
13313
13368
|
'''
|
|
@@ -13319,6 +13374,7 @@ class WebSocketApi(
|
|
|
13319
13374
|
:param default_route_options: Options to configure a '$default' route. Default: - no '$default' route configured
|
|
13320
13375
|
:param description: The description of the API. Default: - none
|
|
13321
13376
|
:param disconnect_route_options: Options to configure a '$disconnect' route. Default: - no '$disconnect' route configured
|
|
13377
|
+
:param ip_address_type: The IP address types that can invoke the API. Default: undefined - AWS default is IPV4
|
|
13322
13378
|
:param route_selection_expression: The route selection expression for the API. Default: '$request.body.action'
|
|
13323
13379
|
'''
|
|
13324
13380
|
if __debug__:
|
|
@@ -13332,6 +13388,7 @@ class WebSocketApi(
|
|
|
13332
13388
|
default_route_options=default_route_options,
|
|
13333
13389
|
description=description,
|
|
13334
13390
|
disconnect_route_options=disconnect_route_options,
|
|
13391
|
+
ip_address_type=ip_address_type,
|
|
13335
13392
|
route_selection_expression=route_selection_expression,
|
|
13336
13393
|
)
|
|
13337
13394
|
|
|
@@ -13640,6 +13697,7 @@ class WebSocketApiKeySelectionExpression(
|
|
|
13640
13697
|
"default_route_options": "defaultRouteOptions",
|
|
13641
13698
|
"description": "description",
|
|
13642
13699
|
"disconnect_route_options": "disconnectRouteOptions",
|
|
13700
|
+
"ip_address_type": "ipAddressType",
|
|
13643
13701
|
"route_selection_expression": "routeSelectionExpression",
|
|
13644
13702
|
},
|
|
13645
13703
|
)
|
|
@@ -13653,6 +13711,7 @@ class WebSocketApiProps:
|
|
|
13653
13711
|
default_route_options: typing.Optional[typing.Union["WebSocketRouteOptions", typing.Dict[builtins.str, typing.Any]]] = None,
|
|
13654
13712
|
description: typing.Optional[builtins.str] = None,
|
|
13655
13713
|
disconnect_route_options: typing.Optional[typing.Union["WebSocketRouteOptions", typing.Dict[builtins.str, typing.Any]]] = None,
|
|
13714
|
+
ip_address_type: typing.Optional[IpAddressType] = None,
|
|
13656
13715
|
route_selection_expression: typing.Optional[builtins.str] = None,
|
|
13657
13716
|
) -> None:
|
|
13658
13717
|
'''Props for WebSocket API.
|
|
@@ -13663,6 +13722,7 @@ class WebSocketApiProps:
|
|
|
13663
13722
|
:param default_route_options: Options to configure a '$default' route. Default: - no '$default' route configured
|
|
13664
13723
|
:param description: The description of the API. Default: - none
|
|
13665
13724
|
:param disconnect_route_options: Options to configure a '$disconnect' route. Default: - no '$disconnect' route configured
|
|
13725
|
+
:param ip_address_type: The IP address types that can invoke the API. Default: undefined - AWS default is IPV4
|
|
13666
13726
|
:param route_selection_expression: The route selection expression for the API. Default: '$request.body.action'
|
|
13667
13727
|
|
|
13668
13728
|
:exampleMetadata: infused
|
|
@@ -13704,6 +13764,7 @@ class WebSocketApiProps:
|
|
|
13704
13764
|
check_type(argname="argument default_route_options", value=default_route_options, expected_type=type_hints["default_route_options"])
|
|
13705
13765
|
check_type(argname="argument description", value=description, expected_type=type_hints["description"])
|
|
13706
13766
|
check_type(argname="argument disconnect_route_options", value=disconnect_route_options, expected_type=type_hints["disconnect_route_options"])
|
|
13767
|
+
check_type(argname="argument ip_address_type", value=ip_address_type, expected_type=type_hints["ip_address_type"])
|
|
13707
13768
|
check_type(argname="argument route_selection_expression", value=route_selection_expression, expected_type=type_hints["route_selection_expression"])
|
|
13708
13769
|
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
13709
13770
|
if api_key_selection_expression is not None:
|
|
@@ -13718,6 +13779,8 @@ class WebSocketApiProps:
|
|
|
13718
13779
|
self._values["description"] = description
|
|
13719
13780
|
if disconnect_route_options is not None:
|
|
13720
13781
|
self._values["disconnect_route_options"] = disconnect_route_options
|
|
13782
|
+
if ip_address_type is not None:
|
|
13783
|
+
self._values["ip_address_type"] = ip_address_type
|
|
13721
13784
|
if route_selection_expression is not None:
|
|
13722
13785
|
self._values["route_selection_expression"] = route_selection_expression
|
|
13723
13786
|
|
|
@@ -13779,6 +13842,17 @@ class WebSocketApiProps:
|
|
|
13779
13842
|
result = self._values.get("disconnect_route_options")
|
|
13780
13843
|
return typing.cast(typing.Optional["WebSocketRouteOptions"], result)
|
|
13781
13844
|
|
|
13845
|
+
@builtins.property
|
|
13846
|
+
def ip_address_type(self) -> typing.Optional[IpAddressType]:
|
|
13847
|
+
'''The IP address types that can invoke the API.
|
|
13848
|
+
|
|
13849
|
+
:default: undefined - AWS default is IPV4
|
|
13850
|
+
|
|
13851
|
+
:see: https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-ip-address-type.html
|
|
13852
|
+
'''
|
|
13853
|
+
result = self._values.get("ip_address_type")
|
|
13854
|
+
return typing.cast(typing.Optional[IpAddressType], result)
|
|
13855
|
+
|
|
13782
13856
|
@builtins.property
|
|
13783
13857
|
def route_selection_expression(self) -> typing.Optional[builtins.str]:
|
|
13784
13858
|
'''The route selection expression for the API.
|
|
@@ -16334,6 +16408,7 @@ class HttpApi(
|
|
|
16334
16408
|
default_integration: typing.Optional[HttpRouteIntegration] = None,
|
|
16335
16409
|
description: typing.Optional[builtins.str] = None,
|
|
16336
16410
|
disable_execute_api_endpoint: typing.Optional[builtins.bool] = None,
|
|
16411
|
+
ip_address_type: typing.Optional[IpAddressType] = None,
|
|
16337
16412
|
route_selection_expression: typing.Optional[builtins.bool] = None,
|
|
16338
16413
|
) -> None:
|
|
16339
16414
|
'''
|
|
@@ -16348,6 +16423,7 @@ class HttpApi(
|
|
|
16348
16423
|
:param default_integration: An integration that will be configured on the catch-all route ($default). Default: - none
|
|
16349
16424
|
:param description: The description of the API. Default: - none
|
|
16350
16425
|
:param disable_execute_api_endpoint: Specifies whether clients can invoke your API using the default endpoint. By default, clients can invoke your API with the default ``https://{api_id}.execute-api.{region}.amazonaws.com`` endpoint. Set this to true if you would like clients to use your custom domain name. Default: false execute-api endpoint enabled.
|
|
16426
|
+
:param ip_address_type: The IP address types that can invoke the API. Default: undefined - AWS default is IPV4
|
|
16351
16427
|
:param route_selection_expression: Whether to set the default route selection expression for the API. When enabled, "${request.method} ${request.path}" is set as the default route selection expression. Default: false
|
|
16352
16428
|
'''
|
|
16353
16429
|
if __debug__:
|
|
@@ -16364,6 +16440,7 @@ class HttpApi(
|
|
|
16364
16440
|
default_integration=default_integration,
|
|
16365
16441
|
description=description,
|
|
16366
16442
|
disable_execute_api_endpoint=disable_execute_api_endpoint,
|
|
16443
|
+
ip_address_type=ip_address_type,
|
|
16367
16444
|
route_selection_expression=route_selection_expression,
|
|
16368
16445
|
)
|
|
16369
16446
|
|
|
@@ -18814,6 +18891,7 @@ __all__ = [
|
|
|
18814
18891
|
"IWebSocketRouteAuthorizer",
|
|
18815
18892
|
"IWebSocketStage",
|
|
18816
18893
|
"IntegrationCredentials",
|
|
18894
|
+
"IpAddressType",
|
|
18817
18895
|
"MTLSConfig",
|
|
18818
18896
|
"MappingValue",
|
|
18819
18897
|
"ParameterMapping",
|
|
@@ -20309,6 +20387,7 @@ def _typecheckingstub__cae61f98d904e8d8d184da1dff09df331c70ac82ebd0d24c6d28a445a
|
|
|
20309
20387
|
default_integration: typing.Optional[HttpRouteIntegration] = None,
|
|
20310
20388
|
description: typing.Optional[builtins.str] = None,
|
|
20311
20389
|
disable_execute_api_endpoint: typing.Optional[builtins.bool] = None,
|
|
20390
|
+
ip_address_type: typing.Optional[IpAddressType] = None,
|
|
20312
20391
|
route_selection_expression: typing.Optional[builtins.bool] = None,
|
|
20313
20392
|
) -> None:
|
|
20314
20393
|
"""Type checking stubs"""
|
|
@@ -20680,6 +20759,7 @@ def _typecheckingstub__8f37be20ee015faaaf9283fe203dc28d2dcc56800f6007ae9105e3ad4
|
|
|
20680
20759
|
default_route_options: typing.Optional[typing.Union[WebSocketRouteOptions, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
20681
20760
|
description: typing.Optional[builtins.str] = None,
|
|
20682
20761
|
disconnect_route_options: typing.Optional[typing.Union[WebSocketRouteOptions, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
20762
|
+
ip_address_type: typing.Optional[IpAddressType] = None,
|
|
20683
20763
|
route_selection_expression: typing.Optional[builtins.str] = None,
|
|
20684
20764
|
) -> None:
|
|
20685
20765
|
"""Type checking stubs"""
|
|
@@ -20765,6 +20845,7 @@ def _typecheckingstub__c8895a8e636238eeb0c7336ab16a74480a8a8620f13eb92f05d4074fb
|
|
|
20765
20845
|
default_route_options: typing.Optional[typing.Union[WebSocketRouteOptions, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
20766
20846
|
description: typing.Optional[builtins.str] = None,
|
|
20767
20847
|
disconnect_route_options: typing.Optional[typing.Union[WebSocketRouteOptions, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
20848
|
+
ip_address_type: typing.Optional[IpAddressType] = None,
|
|
20768
20849
|
route_selection_expression: typing.Optional[builtins.str] = None,
|
|
20769
20850
|
) -> None:
|
|
20770
20851
|
"""Type checking stubs"""
|
|
@@ -21082,6 +21163,7 @@ def _typecheckingstub__2805f7eeb5fa5bd355806013fdce32506e639134d31910f71d0b86917
|
|
|
21082
21163
|
default_integration: typing.Optional[HttpRouteIntegration] = None,
|
|
21083
21164
|
description: typing.Optional[builtins.str] = None,
|
|
21084
21165
|
disable_execute_api_endpoint: typing.Optional[builtins.bool] = None,
|
|
21166
|
+
ip_address_type: typing.Optional[IpAddressType] = None,
|
|
21085
21167
|
route_selection_expression: typing.Optional[builtins.bool] = None,
|
|
21086
21168
|
) -> None:
|
|
21087
21169
|
"""Type checking stubs"""
|
aws_cdk/aws_batch/__init__.py
CHANGED
|
@@ -51,6 +51,8 @@ and only applies to `ManagedEc2EcsComputeEnvironment`s.
|
|
|
51
51
|
The following code configures a Compute Environment to only use spot instances that
|
|
52
52
|
are at most 20% the price of the on-demand instance price:
|
|
53
53
|
|
|
54
|
+
*Note*: For `FargateComputeEnvironment`, while the `FargateComputeEnvironmentProps` interface includes properties like `replaceComputeEnvironment`, `terminateOnUpdate`, `updateTimeout`, and `updateToLatestImageVersion`, these specific properties are **not applicable** when configuring AWS Batch Fargate compute environments. They primarily apply to EC2-based compute environments. Please refer to the official [AWS Batch UpdateComputeEnvironment API documentation](https://docs.aws.amazon.com/batch/latest/APIReference/API_UpdateComputeEnvironment.html) and [User Guide](https://docs.aws.amazon.com/batch/latest/userguide/updating-compute-environments.html) for details on updating Fargate compute environments.
|
|
55
|
+
|
|
54
56
|
```python
|
|
55
57
|
vpc = ec2.Vpc(self, "VPC")
|
|
56
58
|
batch.ManagedEc2EcsComputeEnvironment(self, "myEc2ComputeEnv",
|
aws_cdk/aws_bedrock/__init__.py
CHANGED
|
@@ -25405,11 +25405,9 @@ class CfnPrompt(
|
|
|
25405
25405
|
)
|
|
25406
25406
|
class CachePointBlockProperty:
|
|
25407
25407
|
def __init__(self, *, type: builtins.str) -> None:
|
|
25408
|
-
'''
|
|
25408
|
+
'''Defines a section of content to be cached for reuse in subsequent API calls.
|
|
25409
25409
|
|
|
25410
|
-
|
|
25411
|
-
|
|
25412
|
-
:param type: Indicates that the CachePointBlock is of the default type.
|
|
25410
|
+
:param type: Specifies the type of cache point within the CachePointBlock.
|
|
25413
25411
|
|
|
25414
25412
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-cachepointblock.html
|
|
25415
25413
|
:exampleMetadata: fixture=_generated
|
|
@@ -25433,7 +25431,7 @@ class CfnPrompt(
|
|
|
25433
25431
|
|
|
25434
25432
|
@builtins.property
|
|
25435
25433
|
def type(self) -> builtins.str:
|
|
25436
|
-
'''
|
|
25434
|
+
'''Specifies the type of cache point within the CachePointBlock.
|
|
25437
25435
|
|
|
25438
25436
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-cachepointblock.html#cfn-bedrock-prompt-cachepointblock-type
|
|
25439
25437
|
'''
|
|
@@ -25627,7 +25625,7 @@ class CfnPrompt(
|
|
|
25627
25625
|
) -> None:
|
|
25628
25626
|
'''A block of content for a message that you pass to, or receive from, a model with the `Converse <https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_Converse.html>`_ or `ConverseStream <https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_ConverseStream.html>`_ API operations.
|
|
25629
25627
|
|
|
25630
|
-
:param cache_point:
|
|
25628
|
+
:param cache_point: CachePoint to include in the message.
|
|
25631
25629
|
:param text: Text to include in the message.
|
|
25632
25630
|
|
|
25633
25631
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-contentblock.html
|
|
@@ -25660,7 +25658,7 @@ class CfnPrompt(
|
|
|
25660
25658
|
def cache_point(
|
|
25661
25659
|
self,
|
|
25662
25660
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnPrompt.CachePointBlockProperty"]]:
|
|
25663
|
-
'''
|
|
25661
|
+
'''CachePoint to include in the message.
|
|
25664
25662
|
|
|
25665
25663
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-contentblock.html#cfn-bedrock-prompt-contentblock-cachepoint
|
|
25666
25664
|
'''
|
|
@@ -26656,7 +26654,7 @@ class CfnPrompt(
|
|
|
26656
26654
|
|
|
26657
26655
|
To learn more, see `Using the Converse API <https://docs.aws.amazon.com/bedrock/latest/userguide/conversation-inference-call.html>`_ .
|
|
26658
26656
|
|
|
26659
|
-
:param cache_point:
|
|
26657
|
+
:param cache_point: CachePoint to include in the system prompt.
|
|
26660
26658
|
:param text: A system prompt for the model.
|
|
26661
26659
|
|
|
26662
26660
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-systemcontentblock.html
|
|
@@ -26689,7 +26687,7 @@ class CfnPrompt(
|
|
|
26689
26687
|
def cache_point(
|
|
26690
26688
|
self,
|
|
26691
26689
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnPrompt.CachePointBlockProperty"]]:
|
|
26692
|
-
'''
|
|
26690
|
+
'''CachePoint to include in the system prompt.
|
|
26693
26691
|
|
|
26694
26692
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-systemcontentblock.html#cfn-bedrock-prompt-systemcontentblock-cachepoint
|
|
26695
26693
|
'''
|
|
@@ -27201,7 +27199,7 @@ class CfnPrompt(
|
|
|
27201
27199
|
|
|
27202
27200
|
For more information, see `Call a tool with the Converse API <https://docs.aws.amazon.com/bedrock/latest/userguide/tool-use.html>`_ in the Amazon Bedrock User Guide.
|
|
27203
27201
|
|
|
27204
|
-
:param cache_point:
|
|
27202
|
+
:param cache_point: CachePoint to include in the tool configuration.
|
|
27205
27203
|
:param tool_spec: The specfication for the tool.
|
|
27206
27204
|
|
|
27207
27205
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-tool.html
|
|
@@ -27244,7 +27242,7 @@ class CfnPrompt(
|
|
|
27244
27242
|
def cache_point(
|
|
27245
27243
|
self,
|
|
27246
27244
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnPrompt.CachePointBlockProperty"]]:
|
|
27247
|
-
'''
|
|
27245
|
+
'''CachePoint to include in the tool configuration.
|
|
27248
27246
|
|
|
27249
27247
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-tool.html#cfn-bedrock-prompt-tool-cachepoint
|
|
27250
27248
|
'''
|
|
@@ -27848,11 +27846,9 @@ class CfnPromptVersion(
|
|
|
27848
27846
|
)
|
|
27849
27847
|
class CachePointBlockProperty:
|
|
27850
27848
|
def __init__(self, *, type: builtins.str) -> None:
|
|
27851
|
-
'''
|
|
27852
|
-
|
|
27853
|
-
All information before this checkpoint is cached to be accessed on subsequent requests.
|
|
27849
|
+
'''Defines a section of content to be cached for reuse in subsequent API calls.
|
|
27854
27850
|
|
|
27855
|
-
:param type:
|
|
27851
|
+
:param type: Specifies the type of cache point within the CachePointBlock.
|
|
27856
27852
|
|
|
27857
27853
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-cachepointblock.html
|
|
27858
27854
|
:exampleMetadata: fixture=_generated
|
|
@@ -27876,7 +27872,7 @@ class CfnPromptVersion(
|
|
|
27876
27872
|
|
|
27877
27873
|
@builtins.property
|
|
27878
27874
|
def type(self) -> builtins.str:
|
|
27879
|
-
'''
|
|
27875
|
+
'''Specifies the type of cache point within the CachePointBlock.
|
|
27880
27876
|
|
|
27881
27877
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-cachepointblock.html#cfn-bedrock-promptversion-cachepointblock-type
|
|
27882
27878
|
'''
|
|
@@ -28070,7 +28066,7 @@ class CfnPromptVersion(
|
|
|
28070
28066
|
) -> None:
|
|
28071
28067
|
'''A block of content for a message that you pass to, or receive from, a model with the `Converse <https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_Converse.html>`_ or `ConverseStream <https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_ConverseStream.html>`_ API operations.
|
|
28072
28068
|
|
|
28073
|
-
:param cache_point:
|
|
28069
|
+
:param cache_point: CachePoint to include in the message.
|
|
28074
28070
|
:param text: Text to include in the message.
|
|
28075
28071
|
|
|
28076
28072
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-contentblock.html
|
|
@@ -28103,7 +28099,7 @@ class CfnPromptVersion(
|
|
|
28103
28099
|
def cache_point(
|
|
28104
28100
|
self,
|
|
28105
28101
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnPromptVersion.CachePointBlockProperty"]]:
|
|
28106
|
-
'''
|
|
28102
|
+
'''CachePoint to include in the message.
|
|
28107
28103
|
|
|
28108
28104
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-contentblock.html#cfn-bedrock-promptversion-contentblock-cachepoint
|
|
28109
28105
|
'''
|
|
@@ -29089,7 +29085,7 @@ class CfnPromptVersion(
|
|
|
29089
29085
|
|
|
29090
29086
|
To learn more, see `Using the Converse API <https://docs.aws.amazon.com/bedrock/latest/userguide/conversation-inference-call.html>`_ .
|
|
29091
29087
|
|
|
29092
|
-
:param cache_point:
|
|
29088
|
+
:param cache_point: CachePoint to include in the system prompt.
|
|
29093
29089
|
:param text: A system prompt for the model.
|
|
29094
29090
|
|
|
29095
29091
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-systemcontentblock.html
|
|
@@ -29122,7 +29118,7 @@ class CfnPromptVersion(
|
|
|
29122
29118
|
def cache_point(
|
|
29123
29119
|
self,
|
|
29124
29120
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnPromptVersion.CachePointBlockProperty"]]:
|
|
29125
|
-
'''
|
|
29121
|
+
'''CachePoint to include in the system prompt.
|
|
29126
29122
|
|
|
29127
29123
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-systemcontentblock.html#cfn-bedrock-promptversion-systemcontentblock-cachepoint
|
|
29128
29124
|
'''
|
|
@@ -29525,7 +29521,7 @@ class CfnPromptVersion(
|
|
|
29525
29521
|
|
|
29526
29522
|
For more information, see `Call a tool with the Converse API <https://docs.aws.amazon.com/bedrock/latest/userguide/tool-use.html>`_ in the Amazon Bedrock User Guide.
|
|
29527
29523
|
|
|
29528
|
-
:param cache_point:
|
|
29524
|
+
:param cache_point: CachePoint to include in the tool configuration.
|
|
29529
29525
|
:param tool_spec: The specfication for the tool.
|
|
29530
29526
|
|
|
29531
29527
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-tool.html
|
|
@@ -29568,7 +29564,7 @@ class CfnPromptVersion(
|
|
|
29568
29564
|
def cache_point(
|
|
29569
29565
|
self,
|
|
29570
29566
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnPromptVersion.CachePointBlockProperty"]]:
|
|
29571
|
-
'''
|
|
29567
|
+
'''CachePoint to include in the tool configuration.
|
|
29572
29568
|
|
|
29573
29569
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-tool.html#cfn-bedrock-promptversion-tool-cachepoint
|
|
29574
29570
|
'''
|
|
@@ -29969,6 +29965,12 @@ class FoundationModelIdentifier(
|
|
|
29969
29965
|
'''Base model "amazon.nova-reel-v1:0".'''
|
|
29970
29966
|
return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "AMAZON_NOVA_REEL_V1_0"))
|
|
29971
29967
|
|
|
29968
|
+
@jsii.python.classproperty
|
|
29969
|
+
@jsii.member(jsii_name="AMAZON_NOVA_REEL_V1_1")
|
|
29970
|
+
def AMAZON_NOVA_REEL_V1_1(cls) -> "FoundationModelIdentifier":
|
|
29971
|
+
'''Base model "amazon.nova-reel-v1:1".'''
|
|
29972
|
+
return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "AMAZON_NOVA_REEL_V1_1"))
|
|
29973
|
+
|
|
29972
29974
|
@jsii.python.classproperty
|
|
29973
29975
|
@jsii.member(jsii_name="AMAZON_RERANK_V1")
|
|
29974
29976
|
def AMAZON_RERANK_V1(cls) -> "FoundationModelIdentifier":
|