aws-cdk-lib 2.175.1__py3-none-any.whl → 2.177.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 +26 -7
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.175.1.jsii.tgz → aws-cdk-lib@2.177.0.jsii.tgz} +0 -0
- aws_cdk/aws_apigatewayv2_integrations/__init__.py +161 -9
- aws_cdk/aws_appconfig/__init__.py +106 -24
- aws_cdk/aws_appsync/__init__.py +4 -3
- aws_cdk/aws_backup/__init__.py +18 -84
- aws_cdk/aws_batch/__init__.py +4 -2
- aws_cdk/aws_bedrock/__init__.py +5395 -2508
- aws_cdk/aws_cleanrooms/__init__.py +77 -34
- aws_cdk/aws_cloudformation/__init__.py +4 -2
- aws_cdk/aws_cloudfront/__init__.py +12 -2
- aws_cdk/aws_cloudfront/experimental/__init__.py +1 -1
- aws_cdk/aws_cloudfront_origins/__init__.py +33 -2
- aws_cdk/aws_cloudwatch/__init__.py +53 -49
- aws_cdk/aws_codebuild/__init__.py +36 -0
- aws_cdk/aws_codepipeline/__init__.py +35 -0
- aws_cdk/aws_cognito/__init__.py +285 -253
- aws_cdk/aws_customerprofiles/__init__.py +1060 -0
- aws_cdk/aws_datazone/__init__.py +195 -125
- aws_cdk/aws_docdb/__init__.py +29 -9
- aws_cdk/aws_dynamodb/__init__.py +77 -58
- aws_cdk/aws_ec2/__init__.py +16 -11
- aws_cdk/aws_ecs/__init__.py +127 -43
- aws_cdk/aws_efs/__init__.py +5 -5
- aws_cdk/aws_eks/__init__.py +24 -3
- aws_cdk/aws_elasticloadbalancingv2/__init__.py +41 -5
- aws_cdk/aws_emrserverless/__init__.py +86 -0
- aws_cdk/aws_fms/__init__.py +42 -0
- aws_cdk/aws_gamelift/__init__.py +8 -10
- aws_cdk/aws_healthlake/__init__.py +36 -40
- aws_cdk/aws_iam/__init__.py +8 -0
- aws_cdk/aws_imagebuilder/__init__.py +62 -48
- aws_cdk/aws_lambda/__init__.py +21 -8
- aws_cdk/aws_lambda_event_sources/__init__.py +9 -9
- aws_cdk/aws_lex/__init__.py +105 -0
- aws_cdk/aws_logs/__init__.py +59 -59
- aws_cdk/aws_mediaconvert/__init__.py +7 -3
- aws_cdk/aws_notifications/__init__.py +1390 -0
- aws_cdk/aws_notificationscontacts/__init__.py +593 -0
- aws_cdk/aws_organizations/__init__.py +5 -9
- aws_cdk/aws_rds/__init__.py +99 -30
- aws_cdk/aws_redshift/__init__.py +9 -5
- aws_cdk/aws_resiliencehub/__init__.py +41 -0
- aws_cdk/aws_route53/__init__.py +4 -4
- aws_cdk/aws_route53_targets/__init__.py +15 -15
- aws_cdk/aws_s3/__init__.py +794 -5
- aws_cdk/aws_s3_notifications/__init__.py +5 -5
- aws_cdk/aws_s3tables/__init__.py +2 -2
- aws_cdk/aws_ses/__init__.py +25 -4
- aws_cdk/aws_sns/__init__.py +39 -0
- aws_cdk/aws_ssm/__init__.py +14 -7
- aws_cdk/aws_ssmquicksetup/__init__.py +84 -84
- aws_cdk/aws_sso/__init__.py +9 -5
- aws_cdk/aws_synthetics/__init__.py +105 -32
- aws_cdk/cloud_assembly_schema/__init__.py +63 -4
- aws_cdk/cx_api/__init__.py +69 -8
- {aws_cdk_lib-2.175.1.dist-info → aws_cdk_lib-2.177.0.dist-info}/METADATA +3 -3
- {aws_cdk_lib-2.175.1.dist-info → aws_cdk_lib-2.177.0.dist-info}/RECORD +63 -62
- aws_cdk/aws_iot1click/__init__.py +0 -1193
- {aws_cdk_lib-2.175.1.dist-info → aws_cdk_lib-2.177.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.175.1.dist-info → aws_cdk_lib-2.177.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.175.1.dist-info → aws_cdk_lib-2.177.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.175.1.dist-info → aws_cdk_lib-2.177.0.dist-info}/top_level.txt +0 -0
aws_cdk/__init__.py
CHANGED
|
@@ -6252,7 +6252,7 @@ class CfnMacroProps:
|
|
|
6252
6252
|
:param function_name: The Amazon Resource Name (ARN) of the underlying Lambda function that you want CloudFormation to invoke when the macro is run.
|
|
6253
6253
|
:param name: The name of the macro. The name of the macro must be unique across all macros in the account.
|
|
6254
6254
|
:param description: A description of the macro.
|
|
6255
|
-
:param log_group_name: The CloudWatch Logs group to which CloudFormation sends error logging information when invoking the macro's underlying Lambda function.
|
|
6255
|
+
:param log_group_name: The CloudWatch Logs group to which CloudFormation sends error logging information when invoking the macro's underlying Lambda function. This will be an existing CloudWatch Logs LogGroup. Neither CloudFormation or Lambda will create the group.
|
|
6256
6256
|
:param log_role_arn: The ARN of the role CloudFormation should assume when sending log entries to CloudWatch Logs .
|
|
6257
6257
|
|
|
6258
6258
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudformation-macro.html
|
|
@@ -6327,6 +6327,8 @@ class CfnMacroProps:
|
|
|
6327
6327
|
def log_group_name(self) -> typing.Optional[builtins.str]:
|
|
6328
6328
|
'''The CloudWatch Logs group to which CloudFormation sends error logging information when invoking the macro's underlying Lambda function.
|
|
6329
6329
|
|
|
6330
|
+
This will be an existing CloudWatch Logs LogGroup. Neither CloudFormation or Lambda will create the group.
|
|
6331
|
+
|
|
6330
6332
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudformation-macro.html#cfn-cloudformation-macro-loggroupname
|
|
6331
6333
|
'''
|
|
6332
6334
|
result = self._values.get("log_group_name")
|
|
@@ -13282,6 +13284,7 @@ class Environment:
|
|
|
13282
13284
|
Example::
|
|
13283
13285
|
|
|
13284
13286
|
import aws_cdk as cdk
|
|
13287
|
+
import aws_cdk.aws_cloudwatch as cloudwatch
|
|
13285
13288
|
|
|
13286
13289
|
|
|
13287
13290
|
app = cdk.App()
|
|
@@ -13289,10 +13292,18 @@ class Environment:
|
|
|
13289
13292
|
|
|
13290
13293
|
global_table = dynamodb.TableV2(stack, "GlobalTable",
|
|
13291
13294
|
partition_key=dynamodb.Attribute(name="pk", type=dynamodb.AttributeType.STRING),
|
|
13292
|
-
replicas=[dynamodb.ReplicaTableProps(region="us-east-1")
|
|
13295
|
+
replicas=[dynamodb.ReplicaTableProps(region="us-east-1"), dynamodb.ReplicaTableProps(region="us-east-2")
|
|
13296
|
+
]
|
|
13293
13297
|
)
|
|
13294
13298
|
|
|
13295
|
-
|
|
13299
|
+
# metric is only for the table in us-west-2
|
|
13300
|
+
metric = global_table.metric_consumed_read_capacity_units()
|
|
13301
|
+
|
|
13302
|
+
cloudwatch.Alarm(self, "Alarm",
|
|
13303
|
+
metric=metric,
|
|
13304
|
+
evaluation_periods=1,
|
|
13305
|
+
threshold=1
|
|
13306
|
+
)
|
|
13296
13307
|
'''
|
|
13297
13308
|
if __debug__:
|
|
13298
13309
|
type_hints = typing.get_type_hints(_typecheckingstub__779551ef0a4b144070fd2c3e88ff076e32ad12d30facdc65a940b7a8791f27c6)
|
|
@@ -13349,7 +13360,7 @@ class Environment:
|
|
|
13349
13360
|
|
|
13350
13361
|
|
|
13351
13362
|
class Errors(metaclass=jsii.JSIIMeta, jsii_type="aws-cdk-lib.Errors"):
|
|
13352
|
-
'''Helper to check if an error is a
|
|
13363
|
+
'''Helper to check if an error is of a certain type.
|
|
13353
13364
|
|
|
13354
13365
|
:exampleMetadata: fixture=_generated
|
|
13355
13366
|
|
|
@@ -13370,6 +13381,9 @@ class Errors(metaclass=jsii.JSIIMeta, jsii_type="aws-cdk-lib.Errors"):
|
|
|
13370
13381
|
def is_construct_error(cls, x: typing.Any) -> builtins.bool:
|
|
13371
13382
|
'''Test whether the given errors is a ConstructionError.
|
|
13372
13383
|
|
|
13384
|
+
A ConstructionError is a generic error that will be thrown during the App construction or synthesis.
|
|
13385
|
+
To check for more specific errors, use the respective methods.
|
|
13386
|
+
|
|
13373
13387
|
:param x: -
|
|
13374
13388
|
'''
|
|
13375
13389
|
if __debug__:
|
|
@@ -13382,6 +13396,9 @@ class Errors(metaclass=jsii.JSIIMeta, jsii_type="aws-cdk-lib.Errors"):
|
|
|
13382
13396
|
def is_validation_error(cls, x: typing.Any) -> builtins.bool:
|
|
13383
13397
|
'''Test whether the given error is a ValidationError.
|
|
13384
13398
|
|
|
13399
|
+
A ValidationError is thrown when input props are failing to pass the rules of the construct.
|
|
13400
|
+
It usually means the underlying CloudFormation resource(s) would not deploy with a given configuration.
|
|
13401
|
+
|
|
13385
13402
|
:param x: -
|
|
13386
13403
|
'''
|
|
13387
13404
|
if __debug__:
|
|
@@ -30317,7 +30334,7 @@ class CfnMacro(CfnResource, metaclass=jsii.JSIIMeta, jsii_type="aws-cdk-lib.CfnM
|
|
|
30317
30334
|
:param function_name: The Amazon Resource Name (ARN) of the underlying Lambda function that you want CloudFormation to invoke when the macro is run.
|
|
30318
30335
|
:param name: The name of the macro. The name of the macro must be unique across all macros in the account.
|
|
30319
30336
|
:param description: A description of the macro.
|
|
30320
|
-
:param log_group_name: The CloudWatch Logs group to which CloudFormation sends error logging information when invoking the macro's underlying Lambda function.
|
|
30337
|
+
:param log_group_name: The CloudWatch Logs group to which CloudFormation sends error logging information when invoking the macro's underlying Lambda function. This will be an existing CloudWatch Logs LogGroup. Neither CloudFormation or Lambda will create the group.
|
|
30321
30338
|
:param log_role_arn: The ARN of the role CloudFormation should assume when sending log entries to CloudWatch Logs .
|
|
30322
30339
|
'''
|
|
30323
30340
|
if __debug__:
|
|
@@ -36347,7 +36364,6 @@ __all__ = [
|
|
|
36347
36364
|
"aws_internetmonitor",
|
|
36348
36365
|
"aws_invoicing",
|
|
36349
36366
|
"aws_iot",
|
|
36350
|
-
"aws_iot1click",
|
|
36351
36367
|
"aws_iotanalytics",
|
|
36352
36368
|
"aws_iotcoredeviceadvisor",
|
|
36353
36369
|
"aws_iotevents",
|
|
@@ -36401,6 +36417,8 @@ __all__ = [
|
|
|
36401
36417
|
"aws_networkfirewall",
|
|
36402
36418
|
"aws_networkmanager",
|
|
36403
36419
|
"aws_nimblestudio",
|
|
36420
|
+
"aws_notifications",
|
|
36421
|
+
"aws_notificationscontacts",
|
|
36404
36422
|
"aws_oam",
|
|
36405
36423
|
"aws_omics",
|
|
36406
36424
|
"aws_opensearchserverless",
|
|
@@ -36640,7 +36658,6 @@ from . import aws_inspectorv2
|
|
|
36640
36658
|
from . import aws_internetmonitor
|
|
36641
36659
|
from . import aws_invoicing
|
|
36642
36660
|
from . import aws_iot
|
|
36643
|
-
from . import aws_iot1click
|
|
36644
36661
|
from . import aws_iotanalytics
|
|
36645
36662
|
from . import aws_iotcoredeviceadvisor
|
|
36646
36663
|
from . import aws_iotevents
|
|
@@ -36694,6 +36711,8 @@ from . import aws_neptunegraph
|
|
|
36694
36711
|
from . import aws_networkfirewall
|
|
36695
36712
|
from . import aws_networkmanager
|
|
36696
36713
|
from . import aws_nimblestudio
|
|
36714
|
+
from . import aws_notifications
|
|
36715
|
+
from . import aws_notificationscontacts
|
|
36697
36716
|
from . import aws_oam
|
|
36698
36717
|
from . import aws_omics
|
|
36699
36718
|
from . import aws_opensearchserverless
|
aws_cdk/_jsii/__init__.py
CHANGED
|
@@ -35,7 +35,7 @@ import aws_cdk.cloud_assembly_schema._jsii
|
|
|
35
35
|
import constructs._jsii
|
|
36
36
|
|
|
37
37
|
__jsii_assembly__ = jsii.JSIIAssembly.load(
|
|
38
|
-
"aws-cdk-lib", "2.
|
|
38
|
+
"aws-cdk-lib", "2.177.0", __name__[0:-6], "aws-cdk-lib@2.177.0.jsii.tgz"
|
|
39
39
|
)
|
|
40
40
|
|
|
41
41
|
__all__ = [
|
|
Binary file
|
|
@@ -14,6 +14,7 @@ r'''
|
|
|
14
14
|
|
|
15
15
|
* [Lambda WebSocket Integration](#lambda-websocket-integration)
|
|
16
16
|
* [AWS WebSocket Integration](#aws-websocket-integration)
|
|
17
|
+
* [Mock WebSocket Integration](#mock-websocket-integration)
|
|
17
18
|
* [Import Issues](#import-issues)
|
|
18
19
|
|
|
19
20
|
* [DotNet Namespace](#dotnet-namespace)
|
|
@@ -322,6 +323,30 @@ web_socket_api.add_route("$connect",
|
|
|
322
323
|
You can also set additional properties to change the behavior of your integration, such as `contentHandling`.
|
|
323
324
|
See [Working with binary media types for WebSocket APIs](https://docs.aws.amazon.com/apigateway/latest/developerguide/websocket-api-develop-binary-media-types.html).
|
|
324
325
|
|
|
326
|
+
### Mock WebSocket Integration
|
|
327
|
+
|
|
328
|
+
API Gateway also allows the creation of mock integrations, allowing you to generate API responses without the need for an integration backend. These responses can range in complexity from a static message to a templated response with parameters extracted from the input request or the integration's context. See [Set up data mapping for WebSocket APIs in API Gateway](https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-websocket-api-mapping-template-reference.html) and [WebSocket API mapping template reference for API Gateway](https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-websocket-api-mapping-template-reference.html) for more information.
|
|
329
|
+
|
|
330
|
+
```python
|
|
331
|
+
from aws_cdk.aws_apigatewayv2_integrations import WebSocketMockIntegration
|
|
332
|
+
|
|
333
|
+
|
|
334
|
+
web_socket_api = apigwv2.WebSocketApi(self, "mywsapi")
|
|
335
|
+
apigwv2.WebSocketStage(self, "mystage",
|
|
336
|
+
web_socket_api=web_socket_api,
|
|
337
|
+
stage_name="dev",
|
|
338
|
+
auto_deploy=True
|
|
339
|
+
)
|
|
340
|
+
|
|
341
|
+
web_socket_api.add_route("sendMessage",
|
|
342
|
+
integration=WebSocketMockIntegration("DefaultIntegration",
|
|
343
|
+
request_templates={"application/json": JSON.stringify({"status_code": 200})},
|
|
344
|
+
template_selection_expression="\\$default"
|
|
345
|
+
),
|
|
346
|
+
return_response=True
|
|
347
|
+
)
|
|
348
|
+
```
|
|
349
|
+
|
|
325
350
|
## Import Issues
|
|
326
351
|
|
|
327
352
|
`jsiirc.json` file is missing during the stablization process of this module, which caused import issues for DotNet and Java users who attempt to use this module. Unfortunately, to guarantee backward compatibility, we cannot simply correct the namespace for DotNet or package for Java. The following outlines the workaround.
|
|
@@ -1060,9 +1085,9 @@ class HttpServiceDiscoveryIntegration(
|
|
|
1060
1085
|
:param route: The route to which this is being bound.
|
|
1061
1086
|
:param scope: The current scope in which the bind is occurring. If the ``HttpRouteIntegration`` being bound creates additional constructs, this will be used as their parent scope.
|
|
1062
1087
|
'''
|
|
1063
|
-
|
|
1088
|
+
options = _HttpRouteIntegrationBindOptions_f870a39e(route=route, scope=scope)
|
|
1064
1089
|
|
|
1065
|
-
return typing.cast(_HttpRouteIntegrationConfig_aafc4b76, jsii.invoke(self, "bind", [
|
|
1090
|
+
return typing.cast(_HttpRouteIntegrationConfig_aafc4b76, jsii.invoke(self, "bind", [options]))
|
|
1066
1091
|
|
|
1067
1092
|
@builtins.property
|
|
1068
1093
|
@jsii.member(jsii_name="connectionType")
|
|
@@ -2103,25 +2128,50 @@ class WebSocketMockIntegration(
|
|
|
2103
2128
|
):
|
|
2104
2129
|
'''Mock WebSocket Integration.
|
|
2105
2130
|
|
|
2106
|
-
:exampleMetadata:
|
|
2131
|
+
:exampleMetadata: infused
|
|
2107
2132
|
|
|
2108
2133
|
Example::
|
|
2109
2134
|
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2135
|
+
from aws_cdk.aws_apigatewayv2_integrations import WebSocketMockIntegration
|
|
2136
|
+
|
|
2137
|
+
|
|
2138
|
+
web_socket_api = apigwv2.WebSocketApi(self, "mywsapi")
|
|
2139
|
+
apigwv2.WebSocketStage(self, "mystage",
|
|
2140
|
+
web_socket_api=web_socket_api,
|
|
2141
|
+
stage_name="dev",
|
|
2142
|
+
auto_deploy=True
|
|
2143
|
+
)
|
|
2113
2144
|
|
|
2114
|
-
|
|
2145
|
+
web_socket_api.add_route("sendMessage",
|
|
2146
|
+
integration=WebSocketMockIntegration("DefaultIntegration",
|
|
2147
|
+
request_templates={"application/json": JSON.stringify({"status_code": 200})},
|
|
2148
|
+
template_selection_expression="\\$default"
|
|
2149
|
+
),
|
|
2150
|
+
return_response=True
|
|
2151
|
+
)
|
|
2115
2152
|
'''
|
|
2116
2153
|
|
|
2117
|
-
def __init__(
|
|
2154
|
+
def __init__(
|
|
2155
|
+
self,
|
|
2156
|
+
id: builtins.str,
|
|
2157
|
+
*,
|
|
2158
|
+
request_templates: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
2159
|
+
template_selection_expression: typing.Optional[builtins.str] = None,
|
|
2160
|
+
) -> None:
|
|
2118
2161
|
'''
|
|
2119
2162
|
:param id: id of the underlying integration construct.
|
|
2163
|
+
:param request_templates: A map of Apache Velocity templates that are applied on the request payload. Example:: { "application/json": "{ \\"statusCode\\": 200 }" } Default: - No request template provided to the integration.
|
|
2164
|
+
:param template_selection_expression: The template selection expression for the integration. Default: - No template selection expression provided.
|
|
2120
2165
|
'''
|
|
2121
2166
|
if __debug__:
|
|
2122
2167
|
type_hints = typing.get_type_hints(_typecheckingstub__0919a4fac21867e16e13ed094546c03cf261043724396e00ccd357f077081bad)
|
|
2123
2168
|
check_type(argname="argument id", value=id, expected_type=type_hints["id"])
|
|
2124
|
-
|
|
2169
|
+
props = WebSocketMockIntegrationProps(
|
|
2170
|
+
request_templates=request_templates,
|
|
2171
|
+
template_selection_expression=template_selection_expression,
|
|
2172
|
+
)
|
|
2173
|
+
|
|
2174
|
+
jsii.create(self.__class__, self, [id, props])
|
|
2125
2175
|
|
|
2126
2176
|
@jsii.member(jsii_name="bind")
|
|
2127
2177
|
def bind(
|
|
@@ -2142,6 +2192,96 @@ class WebSocketMockIntegration(
|
|
|
2142
2192
|
return typing.cast(_WebSocketRouteIntegrationConfig_7402c18a, jsii.invoke(self, "bind", [options]))
|
|
2143
2193
|
|
|
2144
2194
|
|
|
2195
|
+
@jsii.data_type(
|
|
2196
|
+
jsii_type="aws-cdk-lib.aws_apigatewayv2_integrations.WebSocketMockIntegrationProps",
|
|
2197
|
+
jsii_struct_bases=[],
|
|
2198
|
+
name_mapping={
|
|
2199
|
+
"request_templates": "requestTemplates",
|
|
2200
|
+
"template_selection_expression": "templateSelectionExpression",
|
|
2201
|
+
},
|
|
2202
|
+
)
|
|
2203
|
+
class WebSocketMockIntegrationProps:
|
|
2204
|
+
def __init__(
|
|
2205
|
+
self,
|
|
2206
|
+
*,
|
|
2207
|
+
request_templates: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
2208
|
+
template_selection_expression: typing.Optional[builtins.str] = None,
|
|
2209
|
+
) -> None:
|
|
2210
|
+
'''Props for Mock type integration for a WebSocket Api.
|
|
2211
|
+
|
|
2212
|
+
:param request_templates: A map of Apache Velocity templates that are applied on the request payload. Example:: { "application/json": "{ \\"statusCode\\": 200 }" } Default: - No request template provided to the integration.
|
|
2213
|
+
:param template_selection_expression: The template selection expression for the integration. Default: - No template selection expression provided.
|
|
2214
|
+
|
|
2215
|
+
:exampleMetadata: infused
|
|
2216
|
+
|
|
2217
|
+
Example::
|
|
2218
|
+
|
|
2219
|
+
from aws_cdk.aws_apigatewayv2_integrations import WebSocketMockIntegration
|
|
2220
|
+
|
|
2221
|
+
|
|
2222
|
+
web_socket_api = apigwv2.WebSocketApi(self, "mywsapi")
|
|
2223
|
+
apigwv2.WebSocketStage(self, "mystage",
|
|
2224
|
+
web_socket_api=web_socket_api,
|
|
2225
|
+
stage_name="dev",
|
|
2226
|
+
auto_deploy=True
|
|
2227
|
+
)
|
|
2228
|
+
|
|
2229
|
+
web_socket_api.add_route("sendMessage",
|
|
2230
|
+
integration=WebSocketMockIntegration("DefaultIntegration",
|
|
2231
|
+
request_templates={"application/json": JSON.stringify({"status_code": 200})},
|
|
2232
|
+
template_selection_expression="\\$default"
|
|
2233
|
+
),
|
|
2234
|
+
return_response=True
|
|
2235
|
+
)
|
|
2236
|
+
'''
|
|
2237
|
+
if __debug__:
|
|
2238
|
+
type_hints = typing.get_type_hints(_typecheckingstub__d6654c6762caad4ba2ce48d0dd2c9946c37d0961c47d7df1f0618055fb20fbf2)
|
|
2239
|
+
check_type(argname="argument request_templates", value=request_templates, expected_type=type_hints["request_templates"])
|
|
2240
|
+
check_type(argname="argument template_selection_expression", value=template_selection_expression, expected_type=type_hints["template_selection_expression"])
|
|
2241
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
2242
|
+
if request_templates is not None:
|
|
2243
|
+
self._values["request_templates"] = request_templates
|
|
2244
|
+
if template_selection_expression is not None:
|
|
2245
|
+
self._values["template_selection_expression"] = template_selection_expression
|
|
2246
|
+
|
|
2247
|
+
@builtins.property
|
|
2248
|
+
def request_templates(
|
|
2249
|
+
self,
|
|
2250
|
+
) -> typing.Optional[typing.Mapping[builtins.str, builtins.str]]:
|
|
2251
|
+
'''A map of Apache Velocity templates that are applied on the request payload.
|
|
2252
|
+
|
|
2253
|
+
Example::
|
|
2254
|
+
|
|
2255
|
+
{ "application/json": "{ \\"statusCode\\": 200 }" }
|
|
2256
|
+
|
|
2257
|
+
:default: - No request template provided to the integration.
|
|
2258
|
+
|
|
2259
|
+
:see: https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-websocket-api-mapping-template-reference.html
|
|
2260
|
+
'''
|
|
2261
|
+
result = self._values.get("request_templates")
|
|
2262
|
+
return typing.cast(typing.Optional[typing.Mapping[builtins.str, builtins.str]], result)
|
|
2263
|
+
|
|
2264
|
+
@builtins.property
|
|
2265
|
+
def template_selection_expression(self) -> typing.Optional[builtins.str]:
|
|
2266
|
+
'''The template selection expression for the integration.
|
|
2267
|
+
|
|
2268
|
+
:default: - No template selection expression provided.
|
|
2269
|
+
'''
|
|
2270
|
+
result = self._values.get("template_selection_expression")
|
|
2271
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
2272
|
+
|
|
2273
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
2274
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
2275
|
+
|
|
2276
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
2277
|
+
return not (rhs == self)
|
|
2278
|
+
|
|
2279
|
+
def __repr__(self) -> str:
|
|
2280
|
+
return "WebSocketMockIntegrationProps(%s)" % ", ".join(
|
|
2281
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
2282
|
+
)
|
|
2283
|
+
|
|
2284
|
+
|
|
2145
2285
|
@jsii.data_type(
|
|
2146
2286
|
jsii_type="aws-cdk-lib.aws_apigatewayv2_integrations.HttpAlbIntegrationProps",
|
|
2147
2287
|
jsii_struct_bases=[HttpPrivateIntegrationOptions],
|
|
@@ -2423,6 +2563,7 @@ __all__ = [
|
|
|
2423
2563
|
"WebSocketLambdaIntegration",
|
|
2424
2564
|
"WebSocketLambdaIntegrationProps",
|
|
2425
2565
|
"WebSocketMockIntegration",
|
|
2566
|
+
"WebSocketMockIntegrationProps",
|
|
2426
2567
|
]
|
|
2427
2568
|
|
|
2428
2569
|
publication.publish()
|
|
@@ -2670,6 +2811,17 @@ def _typecheckingstub__b3043b7d6bcd4be959d4924c0dbbe6ad490dc788f95ab7a014933e7e1
|
|
|
2670
2811
|
|
|
2671
2812
|
def _typecheckingstub__0919a4fac21867e16e13ed094546c03cf261043724396e00ccd357f077081bad(
|
|
2672
2813
|
id: builtins.str,
|
|
2814
|
+
*,
|
|
2815
|
+
request_templates: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
2816
|
+
template_selection_expression: typing.Optional[builtins.str] = None,
|
|
2817
|
+
) -> None:
|
|
2818
|
+
"""Type checking stubs"""
|
|
2819
|
+
pass
|
|
2820
|
+
|
|
2821
|
+
def _typecheckingstub__d6654c6762caad4ba2ce48d0dd2c9946c37d0961c47d7df1f0618055fb20fbf2(
|
|
2822
|
+
*,
|
|
2823
|
+
request_templates: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
2824
|
+
template_selection_expression: typing.Optional[builtins.str] = None,
|
|
2673
2825
|
) -> None:
|
|
2674
2826
|
"""Type checking stubs"""
|
|
2675
2827
|
pass
|