aws-cdk-lib 2.133.0__py3-none-any.whl → 2.135.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.
- aws_cdk/__init__.py +14 -1
- aws_cdk/_jsii/__init__.py +4 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.133.0.jsii.tgz → aws-cdk-lib@2.135.0.jsii.tgz} +0 -0
- aws_cdk/alexa_ask/__init__.py +3 -0
- aws_cdk/assertions/__init__.py +3 -0
- aws_cdk/aws_accessanalyzer/__init__.py +3 -0
- aws_cdk/aws_acmpca/__init__.py +3 -0
- aws_cdk/aws_amazonmq/__init__.py +3 -0
- aws_cdk/aws_amplify/__init__.py +3 -0
- aws_cdk/aws_amplifyuibuilder/__init__.py +3 -0
- aws_cdk/aws_apigateway/__init__.py +3 -0
- aws_cdk/aws_apigatewayv2/__init__.py +108 -3
- aws_cdk/aws_apigatewayv2_authorizers/__init__.py +3 -0
- aws_cdk/aws_apigatewayv2_integrations/__init__.py +158 -3
- aws_cdk/aws_appconfig/__init__.py +189 -8
- aws_cdk/aws_appflow/__init__.py +3 -0
- aws_cdk/aws_appintegrations/__init__.py +560 -0
- aws_cdk/aws_applicationautoscaling/__init__.py +4 -1
- aws_cdk/aws_applicationinsights/__init__.py +3 -0
- aws_cdk/aws_appmesh/__init__.py +4 -1
- aws_cdk/aws_apprunner/__init__.py +3 -0
- aws_cdk/aws_appstream/__init__.py +3 -0
- aws_cdk/aws_appsync/__init__.py +74 -0
- aws_cdk/aws_aps/__init__.py +805 -1
- aws_cdk/aws_arczonalshift/__init__.py +3 -0
- aws_cdk/aws_athena/__init__.py +3 -0
- aws_cdk/aws_auditmanager/__init__.py +3 -0
- aws_cdk/aws_autoscaling/__init__.py +9 -4
- aws_cdk/aws_autoscaling_common/__init__.py +3 -0
- aws_cdk/aws_autoscaling_hooktargets/__init__.py +3 -0
- aws_cdk/aws_autoscalingplans/__init__.py +3 -0
- aws_cdk/aws_b2bi/__init__.py +3 -0
- aws_cdk/aws_backup/__init__.py +26 -12
- aws_cdk/aws_backupgateway/__init__.py +3 -0
- aws_cdk/aws_batch/__init__.py +426 -73
- aws_cdk/aws_bedrock/__init__.py +200 -2
- aws_cdk/aws_billingconductor/__init__.py +3 -0
- aws_cdk/aws_budgets/__init__.py +3 -0
- aws_cdk/aws_cassandra/__init__.py +3 -0
- aws_cdk/aws_ce/__init__.py +3 -0
- aws_cdk/aws_certificatemanager/__init__.py +3 -0
- aws_cdk/aws_chatbot/__init__.py +3 -0
- aws_cdk/aws_cleanrooms/__init__.py +183 -6
- aws_cdk/aws_cloud9/__init__.py +3 -0
- aws_cdk/aws_cloudformation/__init__.py +4 -1
- aws_cdk/aws_cloudfront/__init__.py +5 -2
- aws_cdk/aws_cloudfront/experimental/__init__.py +3 -0
- aws_cdk/aws_cloudfront_origins/__init__.py +3 -0
- aws_cdk/aws_cloudtrail/__init__.py +47 -14
- aws_cdk/aws_cloudwatch/__init__.py +21 -0
- aws_cdk/aws_cloudwatch_actions/__init__.py +3 -0
- aws_cdk/aws_codeartifact/__init__.py +815 -2
- aws_cdk/aws_codebuild/__init__.py +38 -16
- aws_cdk/aws_codecommit/__init__.py +3 -0
- aws_cdk/aws_codedeploy/__init__.py +3 -0
- aws_cdk/aws_codeguruprofiler/__init__.py +3 -0
- aws_cdk/aws_codegurureviewer/__init__.py +3 -0
- aws_cdk/aws_codepipeline/__init__.py +27 -8
- aws_cdk/aws_codepipeline_actions/__init__.py +3 -0
- aws_cdk/aws_codestar/__init__.py +3 -0
- aws_cdk/aws_codestarconnections/__init__.py +91 -2
- aws_cdk/aws_codestarnotifications/__init__.py +3 -0
- aws_cdk/aws_cognito/__init__.py +44 -40
- aws_cdk/aws_comprehend/__init__.py +3 -0
- aws_cdk/aws_config/__init__.py +3 -0
- aws_cdk/aws_connect/__init__.py +277 -0
- aws_cdk/aws_connectcampaigns/__init__.py +3 -0
- aws_cdk/aws_controltower/__init__.py +3 -0
- aws_cdk/aws_cur/__init__.py +3 -0
- aws_cdk/aws_customerprofiles/__init__.py +3 -0
- aws_cdk/aws_databrew/__init__.py +3 -0
- aws_cdk/aws_datapipeline/__init__.py +3 -0
- aws_cdk/aws_datasync/__init__.py +396 -13
- aws_cdk/aws_datazone/__init__.py +3 -0
- aws_cdk/aws_dax/__init__.py +3 -0
- aws_cdk/aws_detective/__init__.py +3 -0
- aws_cdk/aws_devicefarm/__init__.py +3 -0
- aws_cdk/aws_devopsguru/__init__.py +3 -0
- aws_cdk/aws_directoryservice/__init__.py +3 -0
- aws_cdk/aws_dlm/__init__.py +5 -2
- aws_cdk/aws_dms/__init__.py +30 -9
- aws_cdk/aws_docdb/__init__.py +3 -0
- aws_cdk/aws_docdbelastic/__init__.py +128 -0
- aws_cdk/aws_dynamodb/__init__.py +419 -5
- aws_cdk/aws_ec2/__init__.py +3530 -504
- aws_cdk/aws_ecr/__init__.py +3 -0
- aws_cdk/aws_ecr_assets/__init__.py +3 -0
- aws_cdk/aws_ecs/__init__.py +12 -4
- aws_cdk/aws_ecs_patterns/__init__.py +3 -0
- aws_cdk/aws_efs/__init__.py +3 -0
- aws_cdk/aws_eks/__init__.py +69 -47
- aws_cdk/aws_elasticache/__init__.py +3 -0
- aws_cdk/aws_elasticbeanstalk/__init__.py +3 -0
- aws_cdk/aws_elasticloadbalancing/__init__.py +3 -0
- aws_cdk/aws_elasticloadbalancingv2/__init__.py +431 -72
- aws_cdk/aws_elasticloadbalancingv2_actions/__init__.py +3 -0
- aws_cdk/aws_elasticloadbalancingv2_targets/__init__.py +3 -0
- aws_cdk/aws_elasticsearch/__init__.py +3 -0
- aws_cdk/aws_emr/__init__.py +3 -0
- aws_cdk/aws_emrcontainers/__init__.py +3 -0
- aws_cdk/aws_emrserverless/__init__.py +3 -0
- aws_cdk/aws_entityresolution/__init__.py +96 -66
- aws_cdk/aws_events/__init__.py +3 -0
- aws_cdk/aws_events_targets/__init__.py +3 -0
- aws_cdk/aws_eventschemas/__init__.py +3 -0
- aws_cdk/aws_evidently/__init__.py +3 -0
- aws_cdk/aws_finspace/__init__.py +3 -0
- aws_cdk/aws_fis/__init__.py +3 -0
- aws_cdk/aws_fms/__init__.py +3 -0
- aws_cdk/aws_forecast/__init__.py +3 -0
- aws_cdk/aws_frauddetector/__init__.py +3 -0
- aws_cdk/aws_fsx/__init__.py +3 -0
- aws_cdk/aws_gamelift/__init__.py +3 -0
- aws_cdk/aws_globalaccelerator/__init__.py +5 -2
- aws_cdk/aws_globalaccelerator_endpoints/__init__.py +3 -0
- aws_cdk/aws_glue/__init__.py +147 -3
- aws_cdk/aws_grafana/__init__.py +3 -0
- aws_cdk/aws_greengrass/__init__.py +3 -0
- aws_cdk/aws_greengrassv2/__init__.py +3 -0
- aws_cdk/aws_groundstation/__init__.py +3 -0
- aws_cdk/aws_guardduty/__init__.py +3 -0
- aws_cdk/aws_healthimaging/__init__.py +3 -0
- aws_cdk/aws_healthlake/__init__.py +3 -0
- aws_cdk/aws_iam/__init__.py +12 -10
- aws_cdk/aws_identitystore/__init__.py +3 -0
- aws_cdk/aws_imagebuilder/__init__.py +3 -0
- aws_cdk/aws_inspector/__init__.py +3 -0
- aws_cdk/aws_inspectorv2/__init__.py +3 -0
- aws_cdk/aws_internetmonitor/__init__.py +88 -0
- aws_cdk/aws_iot/__init__.py +3 -0
- aws_cdk/aws_iot1click/__init__.py +3 -0
- aws_cdk/aws_iotanalytics/__init__.py +3 -0
- aws_cdk/aws_iotcoredeviceadvisor/__init__.py +3 -0
- aws_cdk/aws_iotevents/__init__.py +3 -0
- aws_cdk/aws_iotfleethub/__init__.py +3 -0
- aws_cdk/aws_iotfleetwise/__init__.py +3 -0
- aws_cdk/aws_iotsitewise/__init__.py +138 -55
- aws_cdk/aws_iotthingsgraph/__init__.py +3 -0
- aws_cdk/aws_iottwinmaker/__init__.py +3 -0
- aws_cdk/aws_iotwireless/__init__.py +3 -0
- aws_cdk/aws_ivs/__init__.py +3 -0
- aws_cdk/aws_ivschat/__init__.py +3 -0
- aws_cdk/aws_kafkaconnect/__init__.py +1239 -161
- aws_cdk/aws_kendra/__init__.py +56 -39
- aws_cdk/aws_kendraranking/__init__.py +3 -0
- aws_cdk/aws_kinesis/__init__.py +3 -0
- aws_cdk/aws_kinesisanalytics/__init__.py +40 -37
- aws_cdk/aws_kinesisanalyticsv2/__init__.py +40 -37
- aws_cdk/aws_kinesisfirehose/__init__.py +14 -3
- aws_cdk/aws_kinesisvideo/__init__.py +3 -0
- aws_cdk/aws_kms/__init__.py +3 -0
- aws_cdk/aws_lakeformation/__init__.py +3 -0
- aws_cdk/aws_lambda/__init__.py +9 -0
- aws_cdk/aws_lambda_destinations/__init__.py +3 -0
- aws_cdk/aws_lambda_event_sources/__init__.py +45 -18
- aws_cdk/aws_lambda_nodejs/__init__.py +3 -0
- aws_cdk/aws_lex/__init__.py +3 -0
- aws_cdk/aws_licensemanager/__init__.py +3 -0
- aws_cdk/aws_lightsail/__init__.py +3 -0
- aws_cdk/aws_location/__init__.py +3 -0
- aws_cdk/aws_logs/__init__.py +3 -0
- aws_cdk/aws_logs_destinations/__init__.py +3 -0
- aws_cdk/aws_lookoutequipment/__init__.py +3 -0
- aws_cdk/aws_lookoutmetrics/__init__.py +3 -0
- aws_cdk/aws_lookoutvision/__init__.py +3 -0
- aws_cdk/aws_m2/__init__.py +3 -0
- aws_cdk/aws_macie/__init__.py +3 -0
- aws_cdk/aws_managedblockchain/__init__.py +5 -3
- aws_cdk/aws_mediaconnect/__init__.py +3 -0
- aws_cdk/aws_mediaconvert/__init__.py +3 -0
- aws_cdk/aws_medialive/__init__.py +3 -0
- aws_cdk/aws_mediapackage/__init__.py +3 -0
- aws_cdk/aws_mediapackagev2/__init__.py +3 -0
- aws_cdk/aws_mediastore/__init__.py +3 -0
- aws_cdk/aws_mediatailor/__init__.py +3 -0
- aws_cdk/aws_memorydb/__init__.py +3 -0
- aws_cdk/aws_msk/__init__.py +91 -0
- aws_cdk/aws_mwaa/__init__.py +3 -0
- aws_cdk/aws_neptune/__init__.py +3 -0
- aws_cdk/aws_neptunegraph/__init__.py +3 -0
- aws_cdk/aws_networkfirewall/__init__.py +3 -0
- aws_cdk/aws_networkmanager/__init__.py +3 -0
- aws_cdk/aws_nimblestudio/__init__.py +3 -0
- aws_cdk/aws_oam/__init__.py +6 -3
- aws_cdk/aws_omics/__init__.py +3 -0
- aws_cdk/aws_opensearchserverless/__init__.py +3 -0
- aws_cdk/aws_opensearchservice/__init__.py +26 -18
- aws_cdk/aws_opsworks/__init__.py +3 -0
- aws_cdk/aws_opsworkscm/__init__.py +3 -0
- aws_cdk/aws_organizations/__init__.py +3 -0
- aws_cdk/aws_osis/__init__.py +3 -0
- aws_cdk/aws_panorama/__init__.py +3 -0
- aws_cdk/aws_pcaconnectorad/__init__.py +3 -0
- aws_cdk/aws_personalize/__init__.py +3 -0
- aws_cdk/aws_pinpoint/__init__.py +45 -0
- aws_cdk/aws_pinpointemail/__init__.py +3 -0
- aws_cdk/aws_pipes/__init__.py +3 -0
- aws_cdk/aws_proton/__init__.py +3 -0
- aws_cdk/aws_qldb/__init__.py +3 -0
- aws_cdk/aws_quicksight/__init__.py +3 -0
- aws_cdk/aws_ram/__init__.py +3 -0
- aws_cdk/aws_rds/__init__.py +150 -27
- aws_cdk/aws_redshift/__init__.py +3 -0
- aws_cdk/aws_redshiftserverless/__init__.py +3 -0
- aws_cdk/aws_refactorspaces/__init__.py +3 -0
- aws_cdk/aws_rekognition/__init__.py +3 -0
- aws_cdk/aws_resiliencehub/__init__.py +3 -0
- aws_cdk/aws_resourceexplorer2/__init__.py +3 -0
- aws_cdk/aws_resourcegroups/__init__.py +3 -0
- aws_cdk/aws_robomaker/__init__.py +3 -0
- aws_cdk/aws_rolesanywhere/__init__.py +3 -0
- aws_cdk/aws_route53/__init__.py +52 -0
- aws_cdk/aws_route53_patterns/__init__.py +3 -0
- aws_cdk/aws_route53_targets/__init__.py +3 -0
- aws_cdk/aws_route53recoverycontrol/__init__.py +3 -0
- aws_cdk/aws_route53recoveryreadiness/__init__.py +3 -0
- aws_cdk/aws_route53resolver/__init__.py +3 -0
- aws_cdk/aws_rum/__init__.py +3 -0
- aws_cdk/aws_s3/__init__.py +3 -0
- aws_cdk/aws_s3_assets/__init__.py +3 -0
- aws_cdk/aws_s3_deployment/__init__.py +3 -0
- aws_cdk/aws_s3_notifications/__init__.py +3 -0
- aws_cdk/aws_s3express/__init__.py +3 -0
- aws_cdk/aws_s3objectlambda/__init__.py +3 -0
- aws_cdk/aws_s3outposts/__init__.py +3 -0
- aws_cdk/aws_sagemaker/__init__.py +5 -2
- aws_cdk/aws_sam/__init__.py +3 -0
- aws_cdk/aws_scheduler/__init__.py +3 -0
- aws_cdk/aws_sdb/__init__.py +3 -0
- aws_cdk/aws_secretsmanager/__init__.py +3 -0
- aws_cdk/aws_securityhub/__init__.py +59 -14
- aws_cdk/aws_securitylake/__init__.py +859 -0
- aws_cdk/aws_servicecatalog/__init__.py +3 -0
- aws_cdk/aws_servicecatalogappregistry/__init__.py +3 -0
- aws_cdk/aws_servicediscovery/__init__.py +3 -0
- aws_cdk/aws_ses/__init__.py +3 -0
- aws_cdk/aws_ses_actions/__init__.py +3 -0
- aws_cdk/aws_shield/__init__.py +3 -0
- aws_cdk/aws_signer/__init__.py +3 -0
- aws_cdk/aws_simspaceweaver/__init__.py +3 -0
- aws_cdk/aws_sns/__init__.py +48 -13
- aws_cdk/aws_sns_subscriptions/__init__.py +3 -0
- aws_cdk/aws_sqs/__init__.py +3 -0
- aws_cdk/aws_ssm/__init__.py +6 -3
- aws_cdk/aws_ssmcontacts/__init__.py +3 -0
- aws_cdk/aws_ssmincidents/__init__.py +3 -0
- aws_cdk/aws_sso/__init__.py +3 -0
- aws_cdk/aws_stepfunctions/__init__.py +3 -0
- aws_cdk/aws_stepfunctions_tasks/__init__.py +26 -0
- aws_cdk/aws_supportapp/__init__.py +3 -0
- aws_cdk/aws_synthetics/__init__.py +77 -14
- aws_cdk/aws_systemsmanagersap/__init__.py +3 -0
- aws_cdk/aws_timestream/__init__.py +3 -0
- aws_cdk/aws_transfer/__init__.py +7 -3
- aws_cdk/aws_verifiedpermissions/__init__.py +3 -0
- aws_cdk/aws_voiceid/__init__.py +3 -0
- aws_cdk/aws_vpclattice/__init__.py +3 -0
- aws_cdk/aws_waf/__init__.py +3 -0
- aws_cdk/aws_wafregional/__init__.py +3 -0
- aws_cdk/aws_wafv2/__init__.py +99 -46
- aws_cdk/aws_wisdom/__init__.py +3 -0
- aws_cdk/aws_workspaces/__init__.py +3 -0
- aws_cdk/aws_workspacesthinclient/__init__.py +3 -0
- aws_cdk/aws_workspacesweb/__init__.py +3 -0
- aws_cdk/aws_xray/__init__.py +3 -0
- aws_cdk/cloud_assembly_schema/__init__.py +3 -0
- aws_cdk/cloudformation_include/__init__.py +3 -0
- aws_cdk/custom_resources/__init__.py +7 -4
- aws_cdk/cx_api/__init__.py +20 -0
- aws_cdk/lambda_layer_awscli/__init__.py +3 -0
- aws_cdk/lambda_layer_kubectl/__init__.py +3 -0
- aws_cdk/lambda_layer_node_proxy_agent/__init__.py +3 -0
- aws_cdk/pipelines/__init__.py +3 -0
- aws_cdk/region_info/__init__.py +3 -0
- aws_cdk/triggers/__init__.py +3 -0
- {aws_cdk_lib-2.133.0.dist-info → aws_cdk_lib-2.135.0.dist-info}/METADATA +2 -2
- aws_cdk_lib-2.135.0.dist-info/RECORD +282 -0
- aws_cdk_lib-2.133.0.dist-info/RECORD +0 -281
- {aws_cdk_lib-2.133.0.dist-info → aws_cdk_lib-2.135.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.133.0.dist-info → aws_cdk_lib-2.135.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.133.0.dist-info → aws_cdk_lib-2.135.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.133.0.dist-info → aws_cdk_lib-2.135.0.dist-info}/top_level.txt +0 -0
|
@@ -313,7 +313,13 @@ web_socket_api.add_route("$connect",
|
|
|
313
313
|
)
|
|
314
314
|
)
|
|
315
315
|
```
|
|
316
|
+
|
|
317
|
+
You can also set additional properties to change the behavior of your integration, such as `contentHandling`.
|
|
318
|
+
See [Working with binary media types for WebSocket APIs](https://docs.aws.amazon.com/apigateway/latest/developerguide/websocket-api-develop-binary-media-types.html).
|
|
316
319
|
'''
|
|
320
|
+
from pkgutil import extend_path
|
|
321
|
+
__path__ = extend_path(__path__, __name__)
|
|
322
|
+
|
|
317
323
|
import abc
|
|
318
324
|
import builtins
|
|
319
325
|
import datetime
|
|
@@ -329,7 +335,9 @@ from typeguard import check_type
|
|
|
329
335
|
from .._jsii import *
|
|
330
336
|
|
|
331
337
|
import constructs as _constructs_77d1e7e8
|
|
338
|
+
from .. import Duration as _Duration_4839e8c3
|
|
332
339
|
from ..aws_apigatewayv2 import (
|
|
340
|
+
ContentHandling as _ContentHandling_1512a7da,
|
|
333
341
|
HttpConnectionType as _HttpConnectionType_02a8b6fb,
|
|
334
342
|
HttpIntegrationSubtype as _HttpIntegrationSubtype_beb63b59,
|
|
335
343
|
HttpIntegrationType as _HttpIntegrationType_aee0d440,
|
|
@@ -1536,21 +1544,25 @@ class WebSocketAwsIntegration(
|
|
|
1536
1544
|
*,
|
|
1537
1545
|
integration_method: builtins.str,
|
|
1538
1546
|
integration_uri: builtins.str,
|
|
1547
|
+
content_handling: typing.Optional[_ContentHandling_1512a7da] = None,
|
|
1539
1548
|
credentials_role: typing.Optional[_IRole_235f5d8e] = None,
|
|
1540
1549
|
passthrough_behavior: typing.Optional[_PassthroughBehavior_379b8a9e] = None,
|
|
1541
1550
|
request_parameters: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
1542
1551
|
request_templates: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
1543
1552
|
template_selection_expression: typing.Optional[builtins.str] = None,
|
|
1553
|
+
timeout: typing.Optional[_Duration_4839e8c3] = None,
|
|
1544
1554
|
) -> None:
|
|
1545
1555
|
'''
|
|
1546
1556
|
:param id: id of the underlying integration construct.
|
|
1547
1557
|
:param integration_method: Specifies the integration's HTTP method type.
|
|
1548
1558
|
:param integration_uri: Integration URI.
|
|
1559
|
+
:param content_handling: Specifies how to handle response payload content type conversions. Default: - The response payload will be passed through from the integration response to the route response or method response without modification.
|
|
1549
1560
|
:param credentials_role: Specifies the credentials role required for the integration. Default: - No credential role provided.
|
|
1550
1561
|
:param passthrough_behavior: Specifies the pass-through behavior for incoming requests based on the Content-Type header in the request, and the available mapping templates specified as the requestTemplates property on the Integration resource. There are three valid values: WHEN_NO_MATCH, WHEN_NO_TEMPLATES, and NEVER. Default: - No passthrough behavior required.
|
|
1551
1562
|
:param request_parameters: The request parameters that API Gateway sends with the backend request. Specify request parameters as key-value pairs (string-to-string mappings), with a destination as the key and a source as the value. Default: - No request parameter provided to the integration.
|
|
1552
1563
|
: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.
|
|
1553
1564
|
:param template_selection_expression: The template selection expression for the integration. Default: - No template selection expression provided.
|
|
1565
|
+
:param timeout: The maximum amount of time an integration will run before it returns without a response. Must be between 50 milliseconds and 29 seconds. Default: Duration.seconds(29)
|
|
1554
1566
|
'''
|
|
1555
1567
|
if __debug__:
|
|
1556
1568
|
type_hints = typing.get_type_hints(_typecheckingstub__9bba00d2a284a155db9e940bdf51118b0715f0312e8109e916f7848b20023815)
|
|
@@ -1558,11 +1570,13 @@ class WebSocketAwsIntegration(
|
|
|
1558
1570
|
props = WebSocketAwsIntegrationProps(
|
|
1559
1571
|
integration_method=integration_method,
|
|
1560
1572
|
integration_uri=integration_uri,
|
|
1573
|
+
content_handling=content_handling,
|
|
1561
1574
|
credentials_role=credentials_role,
|
|
1562
1575
|
passthrough_behavior=passthrough_behavior,
|
|
1563
1576
|
request_parameters=request_parameters,
|
|
1564
1577
|
request_templates=request_templates,
|
|
1565
1578
|
template_selection_expression=template_selection_expression,
|
|
1579
|
+
timeout=timeout,
|
|
1566
1580
|
)
|
|
1567
1581
|
|
|
1568
1582
|
jsii.create(self.__class__, self, [id, props])
|
|
@@ -1592,11 +1606,13 @@ class WebSocketAwsIntegration(
|
|
|
1592
1606
|
name_mapping={
|
|
1593
1607
|
"integration_method": "integrationMethod",
|
|
1594
1608
|
"integration_uri": "integrationUri",
|
|
1609
|
+
"content_handling": "contentHandling",
|
|
1595
1610
|
"credentials_role": "credentialsRole",
|
|
1596
1611
|
"passthrough_behavior": "passthroughBehavior",
|
|
1597
1612
|
"request_parameters": "requestParameters",
|
|
1598
1613
|
"request_templates": "requestTemplates",
|
|
1599
1614
|
"template_selection_expression": "templateSelectionExpression",
|
|
1615
|
+
"timeout": "timeout",
|
|
1600
1616
|
},
|
|
1601
1617
|
)
|
|
1602
1618
|
class WebSocketAwsIntegrationProps:
|
|
@@ -1605,21 +1621,25 @@ class WebSocketAwsIntegrationProps:
|
|
|
1605
1621
|
*,
|
|
1606
1622
|
integration_method: builtins.str,
|
|
1607
1623
|
integration_uri: builtins.str,
|
|
1624
|
+
content_handling: typing.Optional[_ContentHandling_1512a7da] = None,
|
|
1608
1625
|
credentials_role: typing.Optional[_IRole_235f5d8e] = None,
|
|
1609
1626
|
passthrough_behavior: typing.Optional[_PassthroughBehavior_379b8a9e] = None,
|
|
1610
1627
|
request_parameters: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
1611
1628
|
request_templates: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
1612
1629
|
template_selection_expression: typing.Optional[builtins.str] = None,
|
|
1630
|
+
timeout: typing.Optional[_Duration_4839e8c3] = None,
|
|
1613
1631
|
) -> None:
|
|
1614
|
-
'''Props for AWS type integration for
|
|
1632
|
+
'''Props for AWS type integration for a WebSocket Api.
|
|
1615
1633
|
|
|
1616
1634
|
:param integration_method: Specifies the integration's HTTP method type.
|
|
1617
1635
|
:param integration_uri: Integration URI.
|
|
1636
|
+
:param content_handling: Specifies how to handle response payload content type conversions. Default: - The response payload will be passed through from the integration response to the route response or method response without modification.
|
|
1618
1637
|
:param credentials_role: Specifies the credentials role required for the integration. Default: - No credential role provided.
|
|
1619
1638
|
:param passthrough_behavior: Specifies the pass-through behavior for incoming requests based on the Content-Type header in the request, and the available mapping templates specified as the requestTemplates property on the Integration resource. There are three valid values: WHEN_NO_MATCH, WHEN_NO_TEMPLATES, and NEVER. Default: - No passthrough behavior required.
|
|
1620
1639
|
:param request_parameters: The request parameters that API Gateway sends with the backend request. Specify request parameters as key-value pairs (string-to-string mappings), with a destination as the key and a source as the value. Default: - No request parameter provided to the integration.
|
|
1621
1640
|
: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.
|
|
1622
1641
|
:param template_selection_expression: The template selection expression for the integration. Default: - No template selection expression provided.
|
|
1642
|
+
:param timeout: The maximum amount of time an integration will run before it returns without a response. Must be between 50 milliseconds and 29 seconds. Default: Duration.seconds(29)
|
|
1623
1643
|
|
|
1624
1644
|
:exampleMetadata: infused
|
|
1625
1645
|
|
|
@@ -1661,15 +1681,19 @@ class WebSocketAwsIntegrationProps:
|
|
|
1661
1681
|
type_hints = typing.get_type_hints(_typecheckingstub__aa585be6945644a75e60414b518cacf76637190e70170ea912e9826651e3e5ea)
|
|
1662
1682
|
check_type(argname="argument integration_method", value=integration_method, expected_type=type_hints["integration_method"])
|
|
1663
1683
|
check_type(argname="argument integration_uri", value=integration_uri, expected_type=type_hints["integration_uri"])
|
|
1684
|
+
check_type(argname="argument content_handling", value=content_handling, expected_type=type_hints["content_handling"])
|
|
1664
1685
|
check_type(argname="argument credentials_role", value=credentials_role, expected_type=type_hints["credentials_role"])
|
|
1665
1686
|
check_type(argname="argument passthrough_behavior", value=passthrough_behavior, expected_type=type_hints["passthrough_behavior"])
|
|
1666
1687
|
check_type(argname="argument request_parameters", value=request_parameters, expected_type=type_hints["request_parameters"])
|
|
1667
1688
|
check_type(argname="argument request_templates", value=request_templates, expected_type=type_hints["request_templates"])
|
|
1668
1689
|
check_type(argname="argument template_selection_expression", value=template_selection_expression, expected_type=type_hints["template_selection_expression"])
|
|
1690
|
+
check_type(argname="argument timeout", value=timeout, expected_type=type_hints["timeout"])
|
|
1669
1691
|
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
1670
1692
|
"integration_method": integration_method,
|
|
1671
1693
|
"integration_uri": integration_uri,
|
|
1672
1694
|
}
|
|
1695
|
+
if content_handling is not None:
|
|
1696
|
+
self._values["content_handling"] = content_handling
|
|
1673
1697
|
if credentials_role is not None:
|
|
1674
1698
|
self._values["credentials_role"] = credentials_role
|
|
1675
1699
|
if passthrough_behavior is not None:
|
|
@@ -1680,6 +1704,8 @@ class WebSocketAwsIntegrationProps:
|
|
|
1680
1704
|
self._values["request_templates"] = request_templates
|
|
1681
1705
|
if template_selection_expression is not None:
|
|
1682
1706
|
self._values["template_selection_expression"] = template_selection_expression
|
|
1707
|
+
if timeout is not None:
|
|
1708
|
+
self._values["timeout"] = timeout
|
|
1683
1709
|
|
|
1684
1710
|
@builtins.property
|
|
1685
1711
|
def integration_method(self) -> builtins.str:
|
|
@@ -1695,6 +1721,18 @@ class WebSocketAwsIntegrationProps:
|
|
|
1695
1721
|
assert result is not None, "Required property 'integration_uri' is missing"
|
|
1696
1722
|
return typing.cast(builtins.str, result)
|
|
1697
1723
|
|
|
1724
|
+
@builtins.property
|
|
1725
|
+
def content_handling(self) -> typing.Optional[_ContentHandling_1512a7da]:
|
|
1726
|
+
'''Specifies how to handle response payload content type conversions.
|
|
1727
|
+
|
|
1728
|
+
:default:
|
|
1729
|
+
|
|
1730
|
+
- The response payload will be passed through from the integration response to
|
|
1731
|
+
the route response or method response without modification.
|
|
1732
|
+
'''
|
|
1733
|
+
result = self._values.get("content_handling")
|
|
1734
|
+
return typing.cast(typing.Optional[_ContentHandling_1512a7da], result)
|
|
1735
|
+
|
|
1698
1736
|
@builtins.property
|
|
1699
1737
|
def credentials_role(self) -> typing.Optional[_IRole_235f5d8e]:
|
|
1700
1738
|
'''Specifies the credentials role required for the integration.
|
|
@@ -1754,6 +1792,17 @@ class WebSocketAwsIntegrationProps:
|
|
|
1754
1792
|
result = self._values.get("template_selection_expression")
|
|
1755
1793
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
1756
1794
|
|
|
1795
|
+
@builtins.property
|
|
1796
|
+
def timeout(self) -> typing.Optional[_Duration_4839e8c3]:
|
|
1797
|
+
'''The maximum amount of time an integration will run before it returns without a response.
|
|
1798
|
+
|
|
1799
|
+
Must be between 50 milliseconds and 29 seconds.
|
|
1800
|
+
|
|
1801
|
+
:default: Duration.seconds(29)
|
|
1802
|
+
'''
|
|
1803
|
+
result = self._values.get("timeout")
|
|
1804
|
+
return typing.cast(typing.Optional[_Duration_4839e8c3], result)
|
|
1805
|
+
|
|
1757
1806
|
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
1758
1807
|
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
1759
1808
|
|
|
@@ -1793,16 +1842,29 @@ class WebSocketLambdaIntegration(
|
|
|
1793
1842
|
)
|
|
1794
1843
|
'''
|
|
1795
1844
|
|
|
1796
|
-
def __init__(
|
|
1845
|
+
def __init__(
|
|
1846
|
+
self,
|
|
1847
|
+
id: builtins.str,
|
|
1848
|
+
handler: _IFunction_6adb0ab8,
|
|
1849
|
+
*,
|
|
1850
|
+
content_handling: typing.Optional[_ContentHandling_1512a7da] = None,
|
|
1851
|
+
timeout: typing.Optional[_Duration_4839e8c3] = None,
|
|
1852
|
+
) -> None:
|
|
1797
1853
|
'''
|
|
1798
1854
|
:param id: id of the underlying integration construct.
|
|
1799
1855
|
:param handler: the Lambda function handler.
|
|
1856
|
+
:param content_handling: Specifies how to handle response payload content type conversions. Default: - The response payload will be passed through from the integration response to the route response or method response without modification.
|
|
1857
|
+
:param timeout: The maximum amount of time an integration will run before it returns without a response. Must be between 50 milliseconds and 29 seconds. Default: Duration.seconds(29)
|
|
1800
1858
|
'''
|
|
1801
1859
|
if __debug__:
|
|
1802
1860
|
type_hints = typing.get_type_hints(_typecheckingstub__990acb5e6eea396fa4e1595408a45c01b4b03ad6d7085d83c680a56888ae6a6a)
|
|
1803
1861
|
check_type(argname="argument id", value=id, expected_type=type_hints["id"])
|
|
1804
1862
|
check_type(argname="argument handler", value=handler, expected_type=type_hints["handler"])
|
|
1805
|
-
|
|
1863
|
+
props = WebSocketLambdaIntegrationProps(
|
|
1864
|
+
content_handling=content_handling, timeout=timeout
|
|
1865
|
+
)
|
|
1866
|
+
|
|
1867
|
+
jsii.create(self.__class__, self, [id, handler, props])
|
|
1806
1868
|
|
|
1807
1869
|
@jsii.member(jsii_name="bind")
|
|
1808
1870
|
def bind(
|
|
@@ -1823,6 +1885,83 @@ class WebSocketLambdaIntegration(
|
|
|
1823
1885
|
return typing.cast(_WebSocketRouteIntegrationConfig_7402c18a, jsii.invoke(self, "bind", [options]))
|
|
1824
1886
|
|
|
1825
1887
|
|
|
1888
|
+
@jsii.data_type(
|
|
1889
|
+
jsii_type="aws-cdk-lib.aws_apigatewayv2_integrations.WebSocketLambdaIntegrationProps",
|
|
1890
|
+
jsii_struct_bases=[],
|
|
1891
|
+
name_mapping={"content_handling": "contentHandling", "timeout": "timeout"},
|
|
1892
|
+
)
|
|
1893
|
+
class WebSocketLambdaIntegrationProps:
|
|
1894
|
+
def __init__(
|
|
1895
|
+
self,
|
|
1896
|
+
*,
|
|
1897
|
+
content_handling: typing.Optional[_ContentHandling_1512a7da] = None,
|
|
1898
|
+
timeout: typing.Optional[_Duration_4839e8c3] = None,
|
|
1899
|
+
) -> None:
|
|
1900
|
+
'''Props for Lambda type integration for a WebSocket Api.
|
|
1901
|
+
|
|
1902
|
+
:param content_handling: Specifies how to handle response payload content type conversions. Default: - The response payload will be passed through from the integration response to the route response or method response without modification.
|
|
1903
|
+
:param timeout: The maximum amount of time an integration will run before it returns without a response. Must be between 50 milliseconds and 29 seconds. Default: Duration.seconds(29)
|
|
1904
|
+
|
|
1905
|
+
:exampleMetadata: fixture=_generated
|
|
1906
|
+
|
|
1907
|
+
Example::
|
|
1908
|
+
|
|
1909
|
+
# The code below shows an example of how to instantiate this type.
|
|
1910
|
+
# The values are placeholders you should change.
|
|
1911
|
+
import aws_cdk as cdk
|
|
1912
|
+
from aws_cdk import aws_apigatewayv2 as apigatewayv2
|
|
1913
|
+
from aws_cdk import aws_apigatewayv2_integrations as apigatewayv2_integrations
|
|
1914
|
+
|
|
1915
|
+
web_socket_lambda_integration_props = apigatewayv2_integrations.WebSocketLambdaIntegrationProps(
|
|
1916
|
+
content_handling=apigatewayv2.ContentHandling.CONVERT_TO_BINARY,
|
|
1917
|
+
timeout=cdk.Duration.minutes(30)
|
|
1918
|
+
)
|
|
1919
|
+
'''
|
|
1920
|
+
if __debug__:
|
|
1921
|
+
type_hints = typing.get_type_hints(_typecheckingstub__b3043b7d6bcd4be959d4924c0dbbe6ad490dc788f95ab7a014933e7e1b2fefff)
|
|
1922
|
+
check_type(argname="argument content_handling", value=content_handling, expected_type=type_hints["content_handling"])
|
|
1923
|
+
check_type(argname="argument timeout", value=timeout, expected_type=type_hints["timeout"])
|
|
1924
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
1925
|
+
if content_handling is not None:
|
|
1926
|
+
self._values["content_handling"] = content_handling
|
|
1927
|
+
if timeout is not None:
|
|
1928
|
+
self._values["timeout"] = timeout
|
|
1929
|
+
|
|
1930
|
+
@builtins.property
|
|
1931
|
+
def content_handling(self) -> typing.Optional[_ContentHandling_1512a7da]:
|
|
1932
|
+
'''Specifies how to handle response payload content type conversions.
|
|
1933
|
+
|
|
1934
|
+
:default:
|
|
1935
|
+
|
|
1936
|
+
- The response payload will be passed through from the integration response to
|
|
1937
|
+
the route response or method response without modification.
|
|
1938
|
+
'''
|
|
1939
|
+
result = self._values.get("content_handling")
|
|
1940
|
+
return typing.cast(typing.Optional[_ContentHandling_1512a7da], result)
|
|
1941
|
+
|
|
1942
|
+
@builtins.property
|
|
1943
|
+
def timeout(self) -> typing.Optional[_Duration_4839e8c3]:
|
|
1944
|
+
'''The maximum amount of time an integration will run before it returns without a response.
|
|
1945
|
+
|
|
1946
|
+
Must be between 50 milliseconds and 29 seconds.
|
|
1947
|
+
|
|
1948
|
+
:default: Duration.seconds(29)
|
|
1949
|
+
'''
|
|
1950
|
+
result = self._values.get("timeout")
|
|
1951
|
+
return typing.cast(typing.Optional[_Duration_4839e8c3], result)
|
|
1952
|
+
|
|
1953
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
1954
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
1955
|
+
|
|
1956
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
1957
|
+
return not (rhs == self)
|
|
1958
|
+
|
|
1959
|
+
def __repr__(self) -> str:
|
|
1960
|
+
return "WebSocketLambdaIntegrationProps(%s)" % ", ".join(
|
|
1961
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
1962
|
+
)
|
|
1963
|
+
|
|
1964
|
+
|
|
1826
1965
|
class WebSocketMockIntegration(
|
|
1827
1966
|
_WebSocketRouteIntegration_bb950e43,
|
|
1828
1967
|
metaclass=jsii.JSIIMeta,
|
|
@@ -2112,6 +2251,7 @@ __all__ = [
|
|
|
2112
2251
|
"WebSocketAwsIntegration",
|
|
2113
2252
|
"WebSocketAwsIntegrationProps",
|
|
2114
2253
|
"WebSocketLambdaIntegration",
|
|
2254
|
+
"WebSocketLambdaIntegrationProps",
|
|
2115
2255
|
"WebSocketMockIntegration",
|
|
2116
2256
|
]
|
|
2117
2257
|
|
|
@@ -2305,11 +2445,13 @@ def _typecheckingstub__9bba00d2a284a155db9e940bdf51118b0715f0312e8109e916f7848b2
|
|
|
2305
2445
|
*,
|
|
2306
2446
|
integration_method: builtins.str,
|
|
2307
2447
|
integration_uri: builtins.str,
|
|
2448
|
+
content_handling: typing.Optional[_ContentHandling_1512a7da] = None,
|
|
2308
2449
|
credentials_role: typing.Optional[_IRole_235f5d8e] = None,
|
|
2309
2450
|
passthrough_behavior: typing.Optional[_PassthroughBehavior_379b8a9e] = None,
|
|
2310
2451
|
request_parameters: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
2311
2452
|
request_templates: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
2312
2453
|
template_selection_expression: typing.Optional[builtins.str] = None,
|
|
2454
|
+
timeout: typing.Optional[_Duration_4839e8c3] = None,
|
|
2313
2455
|
) -> None:
|
|
2314
2456
|
"""Type checking stubs"""
|
|
2315
2457
|
pass
|
|
@@ -2318,11 +2460,13 @@ def _typecheckingstub__aa585be6945644a75e60414b518cacf76637190e70170ea912e982665
|
|
|
2318
2460
|
*,
|
|
2319
2461
|
integration_method: builtins.str,
|
|
2320
2462
|
integration_uri: builtins.str,
|
|
2463
|
+
content_handling: typing.Optional[_ContentHandling_1512a7da] = None,
|
|
2321
2464
|
credentials_role: typing.Optional[_IRole_235f5d8e] = None,
|
|
2322
2465
|
passthrough_behavior: typing.Optional[_PassthroughBehavior_379b8a9e] = None,
|
|
2323
2466
|
request_parameters: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
2324
2467
|
request_templates: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
2325
2468
|
template_selection_expression: typing.Optional[builtins.str] = None,
|
|
2469
|
+
timeout: typing.Optional[_Duration_4839e8c3] = None,
|
|
2326
2470
|
) -> None:
|
|
2327
2471
|
"""Type checking stubs"""
|
|
2328
2472
|
pass
|
|
@@ -2330,6 +2474,17 @@ def _typecheckingstub__aa585be6945644a75e60414b518cacf76637190e70170ea912e982665
|
|
|
2330
2474
|
def _typecheckingstub__990acb5e6eea396fa4e1595408a45c01b4b03ad6d7085d83c680a56888ae6a6a(
|
|
2331
2475
|
id: builtins.str,
|
|
2332
2476
|
handler: _IFunction_6adb0ab8,
|
|
2477
|
+
*,
|
|
2478
|
+
content_handling: typing.Optional[_ContentHandling_1512a7da] = None,
|
|
2479
|
+
timeout: typing.Optional[_Duration_4839e8c3] = None,
|
|
2480
|
+
) -> None:
|
|
2481
|
+
"""Type checking stubs"""
|
|
2482
|
+
pass
|
|
2483
|
+
|
|
2484
|
+
def _typecheckingstub__b3043b7d6bcd4be959d4924c0dbbe6ad490dc788f95ab7a014933e7e1b2fefff(
|
|
2485
|
+
*,
|
|
2486
|
+
content_handling: typing.Optional[_ContentHandling_1512a7da] = None,
|
|
2487
|
+
timeout: typing.Optional[_Duration_4839e8c3] = None,
|
|
2333
2488
|
) -> None:
|
|
2334
2489
|
"""Type checking stubs"""
|
|
2335
2490
|
pass
|