aws-cdk-lib 2.157.0__py3-none-any.whl → 2.159.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 +52 -20
- aws_cdk/_jsii/__init__.py +17 -2
- aws_cdk/_jsii/{aws-cdk-lib@2.157.0.jsii.tgz → aws-cdk-lib@2.159.0.jsii.tgz} +0 -0
- aws_cdk/alexa_ask/__init__.py +16 -1
- aws_cdk/assertions/__init__.py +16 -1
- aws_cdk/aws_accessanalyzer/__init__.py +16 -1
- aws_cdk/aws_acmpca/__init__.py +16 -1
- aws_cdk/aws_amazonmq/__init__.py +16 -1
- aws_cdk/aws_amplify/__init__.py +38 -9
- aws_cdk/aws_amplifyuibuilder/__init__.py +16 -1
- aws_cdk/aws_apigateway/__init__.py +16 -1
- aws_cdk/aws_apigatewayv2/__init__.py +46 -1
- aws_cdk/aws_apigatewayv2_authorizers/__init__.py +16 -1
- aws_cdk/aws_apigatewayv2_integrations/__init__.py +16 -1
- aws_cdk/aws_appconfig/__init__.py +19 -4
- aws_cdk/aws_appflow/__init__.py +16 -1
- aws_cdk/aws_appintegrations/__init__.py +16 -1
- aws_cdk/aws_applicationautoscaling/__init__.py +16 -1
- aws_cdk/aws_applicationinsights/__init__.py +560 -5
- aws_cdk/aws_applicationsignals/__init__.py +186 -143
- aws_cdk/aws_appmesh/__init__.py +16 -1
- aws_cdk/aws_apprunner/__init__.py +16 -1
- aws_cdk/aws_appstream/__init__.py +16 -1
- aws_cdk/aws_appsync/__init__.py +16 -1
- aws_cdk/aws_apptest/__init__.py +16 -1
- aws_cdk/aws_aps/__init__.py +16 -1
- aws_cdk/aws_arczonalshift/__init__.py +16 -1
- aws_cdk/aws_athena/__init__.py +31 -16
- aws_cdk/aws_auditmanager/__init__.py +21 -6
- aws_cdk/aws_autoscaling/__init__.py +16 -1
- aws_cdk/aws_autoscaling_common/__init__.py +16 -1
- aws_cdk/aws_autoscaling_hooktargets/__init__.py +16 -1
- aws_cdk/aws_autoscalingplans/__init__.py +16 -1
- aws_cdk/aws_b2bi/__init__.py +16 -1
- aws_cdk/aws_backup/__init__.py +16 -1
- aws_cdk/aws_backupgateway/__init__.py +16 -1
- aws_cdk/aws_batch/__init__.py +16 -1
- aws_cdk/aws_bcmdataexports/__init__.py +16 -1
- aws_cdk/aws_bedrock/__init__.py +23 -8
- aws_cdk/aws_billingconductor/__init__.py +16 -1
- aws_cdk/aws_budgets/__init__.py +16 -1
- aws_cdk/aws_cassandra/__init__.py +16 -1
- aws_cdk/aws_ce/__init__.py +16 -1
- aws_cdk/aws_certificatemanager/__init__.py +16 -1
- aws_cdk/aws_chatbot/__init__.py +16 -1
- aws_cdk/aws_cleanrooms/__init__.py +16 -1
- aws_cdk/aws_cleanroomsml/__init__.py +16 -1
- aws_cdk/aws_cloud9/__init__.py +16 -1
- aws_cdk/aws_cloudformation/__init__.py +16 -1
- aws_cdk/aws_cloudfront/__init__.py +16 -1
- aws_cdk/aws_cloudfront/experimental/__init__.py +16 -1
- aws_cdk/aws_cloudfront_origins/__init__.py +16 -1
- aws_cdk/aws_cloudtrail/__init__.py +16 -1
- aws_cdk/aws_cloudwatch/__init__.py +16 -1
- aws_cdk/aws_cloudwatch_actions/__init__.py +16 -1
- aws_cdk/aws_codeartifact/__init__.py +16 -1
- aws_cdk/aws_codebuild/__init__.py +55 -19
- aws_cdk/aws_codecommit/__init__.py +16 -1
- aws_cdk/aws_codeconnections/__init__.py +17 -2
- aws_cdk/aws_codedeploy/__init__.py +16 -1
- aws_cdk/aws_codeguruprofiler/__init__.py +16 -1
- aws_cdk/aws_codegurureviewer/__init__.py +16 -1
- aws_cdk/aws_codepipeline/__init__.py +16 -1
- aws_cdk/aws_codepipeline_actions/__init__.py +16 -1
- aws_cdk/aws_codestar/__init__.py +16 -1
- aws_cdk/aws_codestarconnections/__init__.py +16 -1
- aws_cdk/aws_codestarnotifications/__init__.py +16 -1
- aws_cdk/aws_cognito/__init__.py +406 -204
- aws_cdk/aws_comprehend/__init__.py +16 -1
- aws_cdk/aws_config/__init__.py +16 -1
- aws_cdk/aws_connect/__init__.py +1695 -153
- aws_cdk/aws_connectcampaigns/__init__.py +16 -1
- aws_cdk/aws_controltower/__init__.py +16 -1
- aws_cdk/aws_cur/__init__.py +16 -1
- aws_cdk/aws_customerprofiles/__init__.py +16 -1
- aws_cdk/aws_databrew/__init__.py +16 -1
- aws_cdk/aws_datapipeline/__init__.py +16 -1
- aws_cdk/aws_datasync/__init__.py +16 -1
- aws_cdk/aws_datazone/__init__.py +681 -41
- aws_cdk/aws_dax/__init__.py +16 -1
- aws_cdk/aws_deadline/__init__.py +16 -1
- aws_cdk/aws_detective/__init__.py +16 -1
- aws_cdk/aws_devicefarm/__init__.py +16 -1
- aws_cdk/aws_devopsguru/__init__.py +16 -1
- aws_cdk/aws_directoryservice/__init__.py +16 -1
- aws_cdk/aws_dlm/__init__.py +16 -1
- aws_cdk/aws_dms/__init__.py +16 -1
- aws_cdk/aws_docdb/__init__.py +22 -2
- aws_cdk/aws_docdbelastic/__init__.py +16 -1
- aws_cdk/aws_dynamodb/__init__.py +21 -6
- aws_cdk/aws_ec2/__init__.py +137 -37
- aws_cdk/aws_ecr/__init__.py +30 -7
- aws_cdk/aws_ecr_assets/__init__.py +16 -1
- aws_cdk/aws_ecs/__init__.py +36 -21
- aws_cdk/aws_ecs_patterns/__init__.py +16 -1
- aws_cdk/aws_efs/__init__.py +16 -1
- aws_cdk/aws_eks/__init__.py +16 -1
- aws_cdk/aws_elasticache/__init__.py +16 -1
- aws_cdk/aws_elasticbeanstalk/__init__.py +16 -1
- aws_cdk/aws_elasticloadbalancing/__init__.py +16 -1
- aws_cdk/aws_elasticloadbalancingv2/__init__.py +183 -21
- aws_cdk/aws_elasticloadbalancingv2_actions/__init__.py +16 -1
- aws_cdk/aws_elasticloadbalancingv2_targets/__init__.py +16 -1
- aws_cdk/aws_elasticsearch/__init__.py +16 -1
- aws_cdk/aws_emr/__init__.py +24 -9
- aws_cdk/aws_emrcontainers/__init__.py +16 -1
- aws_cdk/aws_emrserverless/__init__.py +16 -1
- aws_cdk/aws_entityresolution/__init__.py +16 -1
- aws_cdk/aws_events/__init__.py +35 -18
- aws_cdk/aws_events_targets/__init__.py +181 -86
- aws_cdk/aws_eventschemas/__init__.py +16 -1
- aws_cdk/aws_evidently/__init__.py +16 -1
- aws_cdk/aws_finspace/__init__.py +16 -1
- aws_cdk/aws_fis/__init__.py +16 -1
- aws_cdk/aws_fms/__init__.py +75 -1
- aws_cdk/aws_forecast/__init__.py +16 -1
- aws_cdk/aws_frauddetector/__init__.py +16 -1
- aws_cdk/aws_fsx/__init__.py +19 -4
- aws_cdk/aws_gamelift/__init__.py +56 -53
- aws_cdk/aws_globalaccelerator/__init__.py +38 -30
- aws_cdk/aws_globalaccelerator_endpoints/__init__.py +16 -1
- aws_cdk/aws_glue/__init__.py +16 -1
- aws_cdk/aws_grafana/__init__.py +16 -1
- aws_cdk/aws_greengrass/__init__.py +16 -1
- aws_cdk/aws_greengrassv2/__init__.py +16 -1
- aws_cdk/aws_groundstation/__init__.py +16 -1
- aws_cdk/aws_guardduty/__init__.py +16 -1
- aws_cdk/aws_healthimaging/__init__.py +16 -1
- aws_cdk/aws_healthlake/__init__.py +16 -1
- aws_cdk/aws_iam/__init__.py +38 -21
- aws_cdk/aws_identitystore/__init__.py +16 -1
- aws_cdk/aws_imagebuilder/__init__.py +16 -1
- aws_cdk/aws_inspector/__init__.py +16 -1
- aws_cdk/aws_inspectorv2/__init__.py +16 -1
- aws_cdk/aws_internetmonitor/__init__.py +16 -1
- aws_cdk/aws_iot/__init__.py +16 -1
- aws_cdk/aws_iot1click/__init__.py +16 -1
- aws_cdk/aws_iotanalytics/__init__.py +16 -1
- aws_cdk/aws_iotcoredeviceadvisor/__init__.py +16 -1
- aws_cdk/aws_iotevents/__init__.py +16 -1
- aws_cdk/aws_iotfleethub/__init__.py +16 -1
- aws_cdk/aws_iotfleetwise/__init__.py +435 -1
- aws_cdk/aws_iotsitewise/__init__.py +106 -2
- aws_cdk/aws_iotthingsgraph/__init__.py +16 -1
- aws_cdk/aws_iottwinmaker/__init__.py +16 -1
- aws_cdk/aws_iotwireless/__init__.py +221 -1
- aws_cdk/aws_ivs/__init__.py +16 -1
- aws_cdk/aws_ivschat/__init__.py +16 -1
- aws_cdk/aws_kafkaconnect/__init__.py +16 -1
- aws_cdk/aws_kendra/__init__.py +16 -1
- aws_cdk/aws_kendraranking/__init__.py +16 -1
- aws_cdk/aws_kinesis/__init__.py +16 -1
- aws_cdk/aws_kinesisanalytics/__init__.py +16 -1
- aws_cdk/aws_kinesisanalyticsv2/__init__.py +16 -1
- aws_cdk/aws_kinesisfirehose/__init__.py +16 -1
- aws_cdk/aws_kinesisvideo/__init__.py +16 -1
- aws_cdk/aws_kms/__init__.py +16 -1
- aws_cdk/aws_lakeformation/__init__.py +16 -1
- aws_cdk/aws_lambda/__init__.py +145 -17
- aws_cdk/aws_lambda_destinations/__init__.py +16 -1
- aws_cdk/aws_lambda_event_sources/__init__.py +16 -1
- aws_cdk/aws_lambda_nodejs/__init__.py +16 -1
- aws_cdk/aws_launchwizard/__init__.py +16 -1
- aws_cdk/aws_lex/__init__.py +31 -2
- aws_cdk/aws_licensemanager/__init__.py +16 -1
- aws_cdk/aws_lightsail/__init__.py +16 -1
- aws_cdk/aws_location/__init__.py +16 -1
- aws_cdk/aws_logs/__init__.py +17 -2
- aws_cdk/aws_logs_destinations/__init__.py +16 -1
- aws_cdk/aws_lookoutequipment/__init__.py +16 -1
- aws_cdk/aws_lookoutmetrics/__init__.py +16 -1
- aws_cdk/aws_lookoutvision/__init__.py +16 -1
- aws_cdk/aws_m2/__init__.py +16 -1
- aws_cdk/aws_macie/__init__.py +16 -1
- aws_cdk/aws_managedblockchain/__init__.py +16 -1
- aws_cdk/aws_mediaconnect/__init__.py +127 -1
- aws_cdk/aws_mediaconvert/__init__.py +16 -1
- aws_cdk/aws_medialive/__init__.py +8004 -3263
- aws_cdk/aws_mediapackage/__init__.py +16 -1
- aws_cdk/aws_mediapackagev2/__init__.py +16 -1
- aws_cdk/aws_mediastore/__init__.py +16 -1
- aws_cdk/aws_mediatailor/__init__.py +16 -1
- aws_cdk/aws_memorydb/__init__.py +16 -1
- aws_cdk/aws_msk/__init__.py +303 -480
- aws_cdk/aws_mwaa/__init__.py +16 -1
- aws_cdk/aws_neptune/__init__.py +16 -1
- aws_cdk/aws_neptunegraph/__init__.py +16 -1
- aws_cdk/aws_networkfirewall/__init__.py +16 -1
- aws_cdk/aws_networkmanager/__init__.py +16 -1
- aws_cdk/aws_nimblestudio/__init__.py +16 -1
- aws_cdk/aws_oam/__init__.py +16 -1
- aws_cdk/aws_omics/__init__.py +16 -1
- aws_cdk/aws_opensearchserverless/__init__.py +16 -1
- aws_cdk/aws_opensearchservice/__init__.py +22 -1
- aws_cdk/aws_opsworks/__init__.py +16 -1
- aws_cdk/aws_opsworkscm/__init__.py +16 -1
- aws_cdk/aws_organizations/__init__.py +16 -1
- aws_cdk/aws_osis/__init__.py +16 -1
- aws_cdk/aws_panorama/__init__.py +16 -1
- aws_cdk/aws_paymentcryptography/__init__.py +16 -1
- aws_cdk/aws_pcaconnectorad/__init__.py +16 -1
- aws_cdk/aws_pcaconnectorscep/__init__.py +85 -31
- aws_cdk/aws_personalize/__init__.py +16 -1
- aws_cdk/aws_pinpoint/__init__.py +16 -1
- aws_cdk/aws_pinpointemail/__init__.py +16 -1
- aws_cdk/aws_pipes/__init__.py +65 -1
- aws_cdk/aws_proton/__init__.py +16 -1
- aws_cdk/aws_qbusiness/__init__.py +27 -15
- aws_cdk/aws_qldb/__init__.py +16 -1
- aws_cdk/aws_quicksight/__init__.py +654 -100
- aws_cdk/aws_ram/__init__.py +16 -1
- aws_cdk/aws_rds/__init__.py +78 -32
- aws_cdk/aws_redshift/__init__.py +16 -1
- aws_cdk/aws_redshiftserverless/__init__.py +16 -1
- aws_cdk/aws_refactorspaces/__init__.py +16 -1
- aws_cdk/aws_rekognition/__init__.py +16 -1
- aws_cdk/aws_resiliencehub/__init__.py +16 -1
- aws_cdk/aws_resourceexplorer2/__init__.py +16 -1
- aws_cdk/aws_resourcegroups/__init__.py +16 -1
- aws_cdk/aws_robomaker/__init__.py +16 -1
- aws_cdk/aws_rolesanywhere/__init__.py +16 -1
- aws_cdk/aws_route53/__init__.py +16 -1
- aws_cdk/aws_route53_patterns/__init__.py +16 -1
- aws_cdk/aws_route53_targets/__init__.py +16 -1
- aws_cdk/aws_route53profiles/__init__.py +16 -1
- aws_cdk/aws_route53recoverycontrol/__init__.py +16 -1
- aws_cdk/aws_route53recoveryreadiness/__init__.py +16 -1
- aws_cdk/aws_route53resolver/__init__.py +16 -1
- aws_cdk/aws_rum/__init__.py +16 -1
- aws_cdk/aws_s3/__init__.py +231 -34
- aws_cdk/aws_s3_assets/__init__.py +16 -1
- aws_cdk/aws_s3_deployment/__init__.py +16 -1
- aws_cdk/aws_s3_notifications/__init__.py +16 -1
- aws_cdk/aws_s3express/__init__.py +16 -1
- aws_cdk/aws_s3objectlambda/__init__.py +18 -3
- aws_cdk/aws_s3outposts/__init__.py +16 -1
- aws_cdk/aws_sagemaker/__init__.py +888 -59
- aws_cdk/aws_sam/__init__.py +16 -1
- aws_cdk/aws_scheduler/__init__.py +16 -1
- aws_cdk/aws_sdb/__init__.py +16 -1
- aws_cdk/aws_secretsmanager/__init__.py +38 -9
- aws_cdk/aws_securityhub/__init__.py +277 -20
- aws_cdk/aws_securitylake/__init__.py +343 -8
- aws_cdk/aws_servicecatalog/__init__.py +16 -1
- aws_cdk/aws_servicecatalogappregistry/__init__.py +16 -1
- aws_cdk/aws_servicediscovery/__init__.py +21 -6
- aws_cdk/aws_ses/__init__.py +16 -1
- aws_cdk/aws_ses_actions/__init__.py +16 -1
- aws_cdk/aws_shield/__init__.py +16 -1
- aws_cdk/aws_signer/__init__.py +16 -1
- aws_cdk/aws_simspaceweaver/__init__.py +16 -1
- aws_cdk/aws_sns/__init__.py +16 -9
- aws_cdk/aws_sns_subscriptions/__init__.py +16 -1
- aws_cdk/aws_sqs/__init__.py +16 -1
- aws_cdk/aws_ssm/__init__.py +36 -13
- aws_cdk/aws_ssmcontacts/__init__.py +16 -1
- aws_cdk/aws_ssmincidents/__init__.py +16 -1
- aws_cdk/aws_ssmquicksetup/__init__.py +16 -1
- aws_cdk/aws_sso/__init__.py +16 -1
- aws_cdk/aws_stepfunctions/__init__.py +16 -1
- aws_cdk/aws_stepfunctions_tasks/__init__.py +52 -1
- aws_cdk/aws_supportapp/__init__.py +16 -1
- aws_cdk/aws_synthetics/__init__.py +16 -1
- aws_cdk/aws_systemsmanagersap/__init__.py +16 -1
- aws_cdk/aws_timestream/__init__.py +16 -1
- aws_cdk/aws_transfer/__init__.py +16 -1
- aws_cdk/aws_verifiedpermissions/__init__.py +16 -1
- aws_cdk/aws_voiceid/__init__.py +16 -1
- aws_cdk/aws_vpclattice/__init__.py +16 -1
- aws_cdk/aws_waf/__init__.py +16 -1
- aws_cdk/aws_wafregional/__init__.py +16 -1
- aws_cdk/aws_wafv2/__init__.py +16 -1
- aws_cdk/aws_wisdom/__init__.py +16 -1
- aws_cdk/aws_workspaces/__init__.py +16 -1
- aws_cdk/aws_workspacesthinclient/__init__.py +16 -1
- aws_cdk/aws_workspacesweb/__init__.py +16 -1
- aws_cdk/aws_xray/__init__.py +16 -1
- aws_cdk/cloud_assembly_schema/__init__.py +16 -1
- aws_cdk/cloudformation_include/__init__.py +16 -1
- aws_cdk/custom_resources/__init__.py +16 -1
- aws_cdk/cx_api/__init__.py +35 -1
- aws_cdk/lambda_layer_awscli/__init__.py +16 -1
- aws_cdk/lambda_layer_kubectl/__init__.py +16 -1
- aws_cdk/lambda_layer_node_proxy_agent/__init__.py +16 -1
- aws_cdk/pipelines/__init__.py +16 -1
- aws_cdk/region_info/__init__.py +16 -1
- aws_cdk/triggers/__init__.py +16 -1
- {aws_cdk_lib-2.157.0.dist-info → aws_cdk_lib-2.159.0.dist-info}/METADATA +5 -5
- {aws_cdk_lib-2.157.0.dist-info → aws_cdk_lib-2.159.0.dist-info}/NOTICE +27 -8
- aws_cdk_lib-2.159.0.dist-info/RECORD +294 -0
- aws_cdk_lib-2.157.0.dist-info/RECORD +0 -294
- {aws_cdk_lib-2.157.0.dist-info → aws_cdk_lib-2.159.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.157.0.dist-info → aws_cdk_lib-2.159.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.157.0.dist-info → aws_cdk_lib-2.159.0.dist-info}/top_level.txt +0 -0
aws_cdk/aws_events/__init__.py
CHANGED
|
@@ -269,7 +269,22 @@ import jsii
|
|
|
269
269
|
import publication
|
|
270
270
|
import typing_extensions
|
|
271
271
|
|
|
272
|
-
|
|
272
|
+
import typeguard
|
|
273
|
+
from importlib.metadata import version as _metadata_package_version
|
|
274
|
+
TYPEGUARD_MAJOR_VERSION = int(_metadata_package_version('typeguard').split('.')[0])
|
|
275
|
+
|
|
276
|
+
def check_type(argname: str, value: object, expected_type: typing.Any) -> typing.Any:
|
|
277
|
+
if TYPEGUARD_MAJOR_VERSION <= 2:
|
|
278
|
+
return typeguard.check_type(argname=argname, value=value, expected_type=expected_type) # type:ignore
|
|
279
|
+
else:
|
|
280
|
+
if isinstance(value, jsii._reference_map.InterfaceDynamicProxy): # pyright: ignore [reportAttributeAccessIssue]
|
|
281
|
+
pass
|
|
282
|
+
else:
|
|
283
|
+
if TYPEGUARD_MAJOR_VERSION == 3:
|
|
284
|
+
typeguard.config.collection_check_strategy = typeguard.CollectionCheckStrategy.ALL_ITEMS # type:ignore
|
|
285
|
+
typeguard.check_type(value=value, expected_type=expected_type) # type:ignore
|
|
286
|
+
else:
|
|
287
|
+
typeguard.check_type(value=value, expected_type=expected_type, collection_check_strategy=typeguard.CollectionCheckStrategy.ALL_ITEMS) # type:ignore
|
|
273
288
|
|
|
274
289
|
from .._jsii import *
|
|
275
290
|
|
|
@@ -1505,8 +1520,6 @@ class CfnConnection(
|
|
|
1505
1520
|
|
|
1506
1521
|
cfn_connection = events.CfnConnection(self, "MyCfnConnection",
|
|
1507
1522
|
authorization_type="authorizationType",
|
|
1508
|
-
|
|
1509
|
-
# the properties below are optional
|
|
1510
1523
|
auth_parameters=events.CfnConnection.AuthParametersProperty(
|
|
1511
1524
|
api_key_auth_parameters=events.CfnConnection.ApiKeyAuthParametersProperty(
|
|
1512
1525
|
api_key_name="apiKeyName",
|
|
@@ -1573,6 +1586,8 @@ class CfnConnection(
|
|
|
1573
1586
|
)
|
|
1574
1587
|
)
|
|
1575
1588
|
),
|
|
1589
|
+
|
|
1590
|
+
# the properties below are optional
|
|
1576
1591
|
description="description",
|
|
1577
1592
|
name="name"
|
|
1578
1593
|
)
|
|
@@ -1584,7 +1599,7 @@ class CfnConnection(
|
|
|
1584
1599
|
id: builtins.str,
|
|
1585
1600
|
*,
|
|
1586
1601
|
authorization_type: builtins.str,
|
|
1587
|
-
auth_parameters: typing.
|
|
1602
|
+
auth_parameters: typing.Union[_IResolvable_da3f097b, typing.Union["CfnConnection.AuthParametersProperty", typing.Dict[builtins.str, typing.Any]]],
|
|
1588
1603
|
description: typing.Optional[builtins.str] = None,
|
|
1589
1604
|
name: typing.Optional[builtins.str] = None,
|
|
1590
1605
|
) -> None:
|
|
@@ -1679,14 +1694,14 @@ class CfnConnection(
|
|
|
1679
1694
|
@jsii.member(jsii_name="authParameters")
|
|
1680
1695
|
def auth_parameters(
|
|
1681
1696
|
self,
|
|
1682
|
-
) -> typing.
|
|
1697
|
+
) -> typing.Union[_IResolvable_da3f097b, "CfnConnection.AuthParametersProperty"]:
|
|
1683
1698
|
'''A ``CreateConnectionAuthRequestParameters`` object that contains the authorization parameters to use to authorize with the endpoint.'''
|
|
1684
|
-
return typing.cast(typing.
|
|
1699
|
+
return typing.cast(typing.Union[_IResolvable_da3f097b, "CfnConnection.AuthParametersProperty"], jsii.get(self, "authParameters"))
|
|
1685
1700
|
|
|
1686
1701
|
@auth_parameters.setter
|
|
1687
1702
|
def auth_parameters(
|
|
1688
1703
|
self,
|
|
1689
|
-
value: typing.
|
|
1704
|
+
value: typing.Union[_IResolvable_da3f097b, "CfnConnection.AuthParametersProperty"],
|
|
1690
1705
|
) -> None:
|
|
1691
1706
|
if __debug__:
|
|
1692
1707
|
type_hints = typing.get_type_hints(_typecheckingstub__57b3dc84742623dcc9dcc433aac0b117093002aa9686131e642748038958b67c)
|
|
@@ -2373,7 +2388,7 @@ class CfnConnection(
|
|
|
2373
2388
|
|
|
2374
2389
|
:param key: The key for a query string parameter.
|
|
2375
2390
|
:param value: The value associated with the key for the query string parameter.
|
|
2376
|
-
:param is_value_secret: Specifies whether the value is secret.
|
|
2391
|
+
:param is_value_secret: Specifies whether the value is secret. Default: - true
|
|
2377
2392
|
|
|
2378
2393
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-events-connection-parameter.html
|
|
2379
2394
|
:exampleMetadata: fixture=_generated
|
|
@@ -2430,6 +2445,8 @@ class CfnConnection(
|
|
|
2430
2445
|
) -> typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]]:
|
|
2431
2446
|
'''Specifies whether the value is secret.
|
|
2432
2447
|
|
|
2448
|
+
:default: - true
|
|
2449
|
+
|
|
2433
2450
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-events-connection-parameter.html#cfn-events-connection-parameter-isvaluesecret
|
|
2434
2451
|
'''
|
|
2435
2452
|
result = self._values.get("is_value_secret")
|
|
@@ -2462,7 +2479,7 @@ class CfnConnectionProps:
|
|
|
2462
2479
|
self,
|
|
2463
2480
|
*,
|
|
2464
2481
|
authorization_type: builtins.str,
|
|
2465
|
-
auth_parameters: typing.
|
|
2482
|
+
auth_parameters: typing.Union[_IResolvable_da3f097b, typing.Union[CfnConnection.AuthParametersProperty, typing.Dict[builtins.str, typing.Any]]],
|
|
2466
2483
|
description: typing.Optional[builtins.str] = None,
|
|
2467
2484
|
name: typing.Optional[builtins.str] = None,
|
|
2468
2485
|
) -> None:
|
|
@@ -2484,8 +2501,6 @@ class CfnConnectionProps:
|
|
|
2484
2501
|
|
|
2485
2502
|
cfn_connection_props = events.CfnConnectionProps(
|
|
2486
2503
|
authorization_type="authorizationType",
|
|
2487
|
-
|
|
2488
|
-
# the properties below are optional
|
|
2489
2504
|
auth_parameters=events.CfnConnection.AuthParametersProperty(
|
|
2490
2505
|
api_key_auth_parameters=events.CfnConnection.ApiKeyAuthParametersProperty(
|
|
2491
2506
|
api_key_name="apiKeyName",
|
|
@@ -2552,6 +2567,8 @@ class CfnConnectionProps:
|
|
|
2552
2567
|
)
|
|
2553
2568
|
)
|
|
2554
2569
|
),
|
|
2570
|
+
|
|
2571
|
+
# the properties below are optional
|
|
2555
2572
|
description="description",
|
|
2556
2573
|
name="name"
|
|
2557
2574
|
)
|
|
@@ -2564,9 +2581,8 @@ class CfnConnectionProps:
|
|
|
2564
2581
|
check_type(argname="argument name", value=name, expected_type=type_hints["name"])
|
|
2565
2582
|
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
2566
2583
|
"authorization_type": authorization_type,
|
|
2584
|
+
"auth_parameters": auth_parameters,
|
|
2567
2585
|
}
|
|
2568
|
-
if auth_parameters is not None:
|
|
2569
|
-
self._values["auth_parameters"] = auth_parameters
|
|
2570
2586
|
if description is not None:
|
|
2571
2587
|
self._values["description"] = description
|
|
2572
2588
|
if name is not None:
|
|
@@ -2589,13 +2605,14 @@ class CfnConnectionProps:
|
|
|
2589
2605
|
@builtins.property
|
|
2590
2606
|
def auth_parameters(
|
|
2591
2607
|
self,
|
|
2592
|
-
) -> typing.
|
|
2608
|
+
) -> typing.Union[_IResolvable_da3f097b, CfnConnection.AuthParametersProperty]:
|
|
2593
2609
|
'''A ``CreateConnectionAuthRequestParameters`` object that contains the authorization parameters to use to authorize with the endpoint.
|
|
2594
2610
|
|
|
2595
2611
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-events-connection.html#cfn-events-connection-authparameters
|
|
2596
2612
|
'''
|
|
2597
2613
|
result = self._values.get("auth_parameters")
|
|
2598
|
-
|
|
2614
|
+
assert result is not None, "Required property 'auth_parameters' is missing"
|
|
2615
|
+
return typing.cast(typing.Union[_IResolvable_da3f097b, CfnConnection.AuthParametersProperty], result)
|
|
2599
2616
|
|
|
2600
2617
|
@builtins.property
|
|
2601
2618
|
def description(self) -> typing.Optional[builtins.str]:
|
|
@@ -11883,7 +11900,7 @@ def _typecheckingstub__65bde9b35de094b905dd335652d04503af85c50ac027a006a1d7ec926
|
|
|
11883
11900
|
id: builtins.str,
|
|
11884
11901
|
*,
|
|
11885
11902
|
authorization_type: builtins.str,
|
|
11886
|
-
auth_parameters: typing.
|
|
11903
|
+
auth_parameters: typing.Union[_IResolvable_da3f097b, typing.Union[CfnConnection.AuthParametersProperty, typing.Dict[builtins.str, typing.Any]]],
|
|
11887
11904
|
description: typing.Optional[builtins.str] = None,
|
|
11888
11905
|
name: typing.Optional[builtins.str] = None,
|
|
11889
11906
|
) -> None:
|
|
@@ -11909,7 +11926,7 @@ def _typecheckingstub__4f51f33cc16a16fcb52edb95bbc7ef5dd0bb5f97e31dd1f331adaf42e
|
|
|
11909
11926
|
pass
|
|
11910
11927
|
|
|
11911
11928
|
def _typecheckingstub__57b3dc84742623dcc9dcc433aac0b117093002aa9686131e642748038958b67c(
|
|
11912
|
-
value: typing.
|
|
11929
|
+
value: typing.Union[_IResolvable_da3f097b, CfnConnection.AuthParametersProperty],
|
|
11913
11930
|
) -> None:
|
|
11914
11931
|
"""Type checking stubs"""
|
|
11915
11932
|
pass
|
|
@@ -11991,7 +12008,7 @@ def _typecheckingstub__8ef124487a6c31dc58a802230e7bf50f962f08be9cde1fb39c45b429d
|
|
|
11991
12008
|
def _typecheckingstub__2b32e6c6e8c1c2772bb604474216b07683c108c349058e240d272750b95ff394(
|
|
11992
12009
|
*,
|
|
11993
12010
|
authorization_type: builtins.str,
|
|
11994
|
-
auth_parameters: typing.
|
|
12011
|
+
auth_parameters: typing.Union[_IResolvable_da3f097b, typing.Union[CfnConnection.AuthParametersProperty, typing.Dict[builtins.str, typing.Any]]],
|
|
11995
12012
|
description: typing.Optional[builtins.str] = None,
|
|
11996
12013
|
name: typing.Optional[builtins.str] = None,
|
|
11997
12014
|
) -> None:
|
|
@@ -33,7 +33,7 @@ EventBridge.
|
|
|
33
33
|
|
|
34
34
|
## Event retry policy and using dead-letter queues
|
|
35
35
|
|
|
36
|
-
The Codebuild, CodePipeline, Lambda, StepFunctions, LogGroup, SQSQueue, SNSTopic and ECSTask targets support attaching a [dead letter queue and setting retry policies](https://docs.aws.amazon.com/eventbridge/latest/userguide/rule-dlq.html). See the [lambda example](#invoke-a-lambda-function).
|
|
36
|
+
The Codebuild, CodePipeline, Lambda, Kinesis Data Streams, StepFunctions, LogGroup, SQSQueue, SNSTopic and ECSTask targets support attaching a [dead letter queue and setting retry policies](https://docs.aws.amazon.com/eventbridge/latest/userguide/rule-dlq.html). See the [lambda example](#invoke-a-lambda-function).
|
|
37
37
|
Use [escape hatches](https://docs.aws.amazon.com/cdk/latest/guide/cfn_layer.html) for the other target types.
|
|
38
38
|
|
|
39
39
|
## Invoke a Lambda function
|
|
@@ -596,7 +596,22 @@ import jsii
|
|
|
596
596
|
import publication
|
|
597
597
|
import typing_extensions
|
|
598
598
|
|
|
599
|
-
|
|
599
|
+
import typeguard
|
|
600
|
+
from importlib.metadata import version as _metadata_package_version
|
|
601
|
+
TYPEGUARD_MAJOR_VERSION = int(_metadata_package_version('typeguard').split('.')[0])
|
|
602
|
+
|
|
603
|
+
def check_type(argname: str, value: object, expected_type: typing.Any) -> typing.Any:
|
|
604
|
+
if TYPEGUARD_MAJOR_VERSION <= 2:
|
|
605
|
+
return typeguard.check_type(argname=argname, value=value, expected_type=expected_type) # type:ignore
|
|
606
|
+
else:
|
|
607
|
+
if isinstance(value, jsii._reference_map.InterfaceDynamicProxy): # pyright: ignore [reportAttributeAccessIssue]
|
|
608
|
+
pass
|
|
609
|
+
else:
|
|
610
|
+
if TYPEGUARD_MAJOR_VERSION == 3:
|
|
611
|
+
typeguard.config.collection_check_strategy = typeguard.CollectionCheckStrategy.ALL_ITEMS # type:ignore
|
|
612
|
+
typeguard.check_type(value=value, expected_type=expected_type) # type:ignore
|
|
613
|
+
else:
|
|
614
|
+
typeguard.check_type(value=value, expected_type=expected_type, collection_check_strategy=typeguard.CollectionCheckStrategy.ALL_ITEMS) # type:ignore
|
|
600
615
|
|
|
601
616
|
from .._jsii import *
|
|
602
617
|
|
|
@@ -2315,17 +2330,27 @@ class KinesisStream(
|
|
|
2315
2330
|
*,
|
|
2316
2331
|
message: typing.Optional[_RuleTargetInput_6beca786] = None,
|
|
2317
2332
|
partition_key_path: typing.Optional[builtins.str] = None,
|
|
2333
|
+
dead_letter_queue: typing.Optional[_IQueue_7ed6f679] = None,
|
|
2334
|
+
max_event_age: typing.Optional[_Duration_4839e8c3] = None,
|
|
2335
|
+
retry_attempts: typing.Optional[jsii.Number] = None,
|
|
2318
2336
|
) -> None:
|
|
2319
2337
|
'''
|
|
2320
2338
|
:param stream: -
|
|
2321
2339
|
:param message: The message to send to the stream. Must be a valid JSON text passed to the target stream. Default: - the entire CloudWatch event
|
|
2322
2340
|
:param partition_key_path: Partition Key Path for records sent to this stream. Default: - eventId as the partition key
|
|
2341
|
+
:param dead_letter_queue: The SQS queue to be used as deadLetterQueue. Check out the `considerations for using a dead-letter queue <https://docs.aws.amazon.com/eventbridge/latest/userguide/rule-dlq.html#dlq-considerations>`_. The events not successfully delivered are automatically retried for a specified period of time, depending on the retry policy of the target. If an event is not delivered before all retry attempts are exhausted, it will be sent to the dead letter queue. Default: - no dead-letter queue
|
|
2342
|
+
:param max_event_age: The maximum age of a request that Lambda sends to a function for processing. Minimum value of 60. Maximum value of 86400. Default: Duration.hours(24)
|
|
2343
|
+
:param retry_attempts: The maximum number of times to retry when the function returns an error. Minimum value of 0. Maximum value of 185. Default: 185
|
|
2323
2344
|
'''
|
|
2324
2345
|
if __debug__:
|
|
2325
2346
|
type_hints = typing.get_type_hints(_typecheckingstub__47a9d917a1971c5aa11b68bf823d9f34a57a7b1e7653b0f82809c06309cac1a6)
|
|
2326
2347
|
check_type(argname="argument stream", value=stream, expected_type=type_hints["stream"])
|
|
2327
2348
|
props = KinesisStreamProps(
|
|
2328
|
-
message=message,
|
|
2349
|
+
message=message,
|
|
2350
|
+
partition_key_path=partition_key_path,
|
|
2351
|
+
dead_letter_queue=dead_letter_queue,
|
|
2352
|
+
max_event_age=max_event_age,
|
|
2353
|
+
retry_attempts=retry_attempts,
|
|
2329
2354
|
)
|
|
2330
2355
|
|
|
2331
2356
|
jsii.create(self.__class__, self, [stream, props])
|
|
@@ -2348,81 +2373,6 @@ class KinesisStream(
|
|
|
2348
2373
|
return typing.cast(_RuleTargetConfig_4e70fe03, jsii.invoke(self, "bind", [_rule, _id]))
|
|
2349
2374
|
|
|
2350
2375
|
|
|
2351
|
-
@jsii.data_type(
|
|
2352
|
-
jsii_type="aws-cdk-lib.aws_events_targets.KinesisStreamProps",
|
|
2353
|
-
jsii_struct_bases=[],
|
|
2354
|
-
name_mapping={"message": "message", "partition_key_path": "partitionKeyPath"},
|
|
2355
|
-
)
|
|
2356
|
-
class KinesisStreamProps:
|
|
2357
|
-
def __init__(
|
|
2358
|
-
self,
|
|
2359
|
-
*,
|
|
2360
|
-
message: typing.Optional[_RuleTargetInput_6beca786] = None,
|
|
2361
|
-
partition_key_path: typing.Optional[builtins.str] = None,
|
|
2362
|
-
) -> None:
|
|
2363
|
-
'''Customize the Kinesis Stream Event Target.
|
|
2364
|
-
|
|
2365
|
-
:param message: The message to send to the stream. Must be a valid JSON text passed to the target stream. Default: - the entire CloudWatch event
|
|
2366
|
-
:param partition_key_path: Partition Key Path for records sent to this stream. Default: - eventId as the partition key
|
|
2367
|
-
|
|
2368
|
-
:exampleMetadata: fixture=_generated
|
|
2369
|
-
|
|
2370
|
-
Example::
|
|
2371
|
-
|
|
2372
|
-
# The code below shows an example of how to instantiate this type.
|
|
2373
|
-
# The values are placeholders you should change.
|
|
2374
|
-
from aws_cdk import aws_events as events
|
|
2375
|
-
from aws_cdk import aws_events_targets as events_targets
|
|
2376
|
-
|
|
2377
|
-
# rule_target_input: events.RuleTargetInput
|
|
2378
|
-
|
|
2379
|
-
kinesis_stream_props = events_targets.KinesisStreamProps(
|
|
2380
|
-
message=rule_target_input,
|
|
2381
|
-
partition_key_path="partitionKeyPath"
|
|
2382
|
-
)
|
|
2383
|
-
'''
|
|
2384
|
-
if __debug__:
|
|
2385
|
-
type_hints = typing.get_type_hints(_typecheckingstub__971b6fc6dc302be6b6401547a0731521d858936fe589a0d096ef25e81e707b46)
|
|
2386
|
-
check_type(argname="argument message", value=message, expected_type=type_hints["message"])
|
|
2387
|
-
check_type(argname="argument partition_key_path", value=partition_key_path, expected_type=type_hints["partition_key_path"])
|
|
2388
|
-
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
2389
|
-
if message is not None:
|
|
2390
|
-
self._values["message"] = message
|
|
2391
|
-
if partition_key_path is not None:
|
|
2392
|
-
self._values["partition_key_path"] = partition_key_path
|
|
2393
|
-
|
|
2394
|
-
@builtins.property
|
|
2395
|
-
def message(self) -> typing.Optional[_RuleTargetInput_6beca786]:
|
|
2396
|
-
'''The message to send to the stream.
|
|
2397
|
-
|
|
2398
|
-
Must be a valid JSON text passed to the target stream.
|
|
2399
|
-
|
|
2400
|
-
:default: - the entire CloudWatch event
|
|
2401
|
-
'''
|
|
2402
|
-
result = self._values.get("message")
|
|
2403
|
-
return typing.cast(typing.Optional[_RuleTargetInput_6beca786], result)
|
|
2404
|
-
|
|
2405
|
-
@builtins.property
|
|
2406
|
-
def partition_key_path(self) -> typing.Optional[builtins.str]:
|
|
2407
|
-
'''Partition Key Path for records sent to this stream.
|
|
2408
|
-
|
|
2409
|
-
:default: - eventId as the partition key
|
|
2410
|
-
'''
|
|
2411
|
-
result = self._values.get("partition_key_path")
|
|
2412
|
-
return typing.cast(typing.Optional[builtins.str], result)
|
|
2413
|
-
|
|
2414
|
-
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
2415
|
-
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
2416
|
-
|
|
2417
|
-
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
2418
|
-
return not (rhs == self)
|
|
2419
|
-
|
|
2420
|
-
def __repr__(self) -> str:
|
|
2421
|
-
return "KinesisStreamProps(%s)" % ", ".join(
|
|
2422
|
-
k + "=" + repr(v) for k, v in self._values.items()
|
|
2423
|
-
)
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
2376
|
@jsii.implements(_IRuleTarget_7a91f454)
|
|
2427
2377
|
class LambdaFunction(
|
|
2428
2378
|
metaclass=jsii.JSIIMeta,
|
|
@@ -4802,6 +4752,145 @@ class EcsTaskProps(TargetBaseProps):
|
|
|
4802
4752
|
)
|
|
4803
4753
|
|
|
4804
4754
|
|
|
4755
|
+
@jsii.data_type(
|
|
4756
|
+
jsii_type="aws-cdk-lib.aws_events_targets.KinesisStreamProps",
|
|
4757
|
+
jsii_struct_bases=[TargetBaseProps],
|
|
4758
|
+
name_mapping={
|
|
4759
|
+
"dead_letter_queue": "deadLetterQueue",
|
|
4760
|
+
"max_event_age": "maxEventAge",
|
|
4761
|
+
"retry_attempts": "retryAttempts",
|
|
4762
|
+
"message": "message",
|
|
4763
|
+
"partition_key_path": "partitionKeyPath",
|
|
4764
|
+
},
|
|
4765
|
+
)
|
|
4766
|
+
class KinesisStreamProps(TargetBaseProps):
|
|
4767
|
+
def __init__(
|
|
4768
|
+
self,
|
|
4769
|
+
*,
|
|
4770
|
+
dead_letter_queue: typing.Optional[_IQueue_7ed6f679] = None,
|
|
4771
|
+
max_event_age: typing.Optional[_Duration_4839e8c3] = None,
|
|
4772
|
+
retry_attempts: typing.Optional[jsii.Number] = None,
|
|
4773
|
+
message: typing.Optional[_RuleTargetInput_6beca786] = None,
|
|
4774
|
+
partition_key_path: typing.Optional[builtins.str] = None,
|
|
4775
|
+
) -> None:
|
|
4776
|
+
'''Customize the Kinesis Stream Event Target.
|
|
4777
|
+
|
|
4778
|
+
:param dead_letter_queue: The SQS queue to be used as deadLetterQueue. Check out the `considerations for using a dead-letter queue <https://docs.aws.amazon.com/eventbridge/latest/userguide/rule-dlq.html#dlq-considerations>`_. The events not successfully delivered are automatically retried for a specified period of time, depending on the retry policy of the target. If an event is not delivered before all retry attempts are exhausted, it will be sent to the dead letter queue. Default: - no dead-letter queue
|
|
4779
|
+
:param max_event_age: The maximum age of a request that Lambda sends to a function for processing. Minimum value of 60. Maximum value of 86400. Default: Duration.hours(24)
|
|
4780
|
+
:param retry_attempts: The maximum number of times to retry when the function returns an error. Minimum value of 0. Maximum value of 185. Default: 185
|
|
4781
|
+
:param message: The message to send to the stream. Must be a valid JSON text passed to the target stream. Default: - the entire CloudWatch event
|
|
4782
|
+
:param partition_key_path: Partition Key Path for records sent to this stream. Default: - eventId as the partition key
|
|
4783
|
+
|
|
4784
|
+
:exampleMetadata: fixture=_generated
|
|
4785
|
+
|
|
4786
|
+
Example::
|
|
4787
|
+
|
|
4788
|
+
# The code below shows an example of how to instantiate this type.
|
|
4789
|
+
# The values are placeholders you should change.
|
|
4790
|
+
import aws_cdk as cdk
|
|
4791
|
+
from aws_cdk import aws_events as events
|
|
4792
|
+
from aws_cdk import aws_events_targets as events_targets
|
|
4793
|
+
from aws_cdk import aws_sqs as sqs
|
|
4794
|
+
|
|
4795
|
+
# queue: sqs.Queue
|
|
4796
|
+
# rule_target_input: events.RuleTargetInput
|
|
4797
|
+
|
|
4798
|
+
kinesis_stream_props = events_targets.KinesisStreamProps(
|
|
4799
|
+
dead_letter_queue=queue,
|
|
4800
|
+
max_event_age=cdk.Duration.minutes(30),
|
|
4801
|
+
message=rule_target_input,
|
|
4802
|
+
partition_key_path="partitionKeyPath",
|
|
4803
|
+
retry_attempts=123
|
|
4804
|
+
)
|
|
4805
|
+
'''
|
|
4806
|
+
if __debug__:
|
|
4807
|
+
type_hints = typing.get_type_hints(_typecheckingstub__971b6fc6dc302be6b6401547a0731521d858936fe589a0d096ef25e81e707b46)
|
|
4808
|
+
check_type(argname="argument dead_letter_queue", value=dead_letter_queue, expected_type=type_hints["dead_letter_queue"])
|
|
4809
|
+
check_type(argname="argument max_event_age", value=max_event_age, expected_type=type_hints["max_event_age"])
|
|
4810
|
+
check_type(argname="argument retry_attempts", value=retry_attempts, expected_type=type_hints["retry_attempts"])
|
|
4811
|
+
check_type(argname="argument message", value=message, expected_type=type_hints["message"])
|
|
4812
|
+
check_type(argname="argument partition_key_path", value=partition_key_path, expected_type=type_hints["partition_key_path"])
|
|
4813
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
4814
|
+
if dead_letter_queue is not None:
|
|
4815
|
+
self._values["dead_letter_queue"] = dead_letter_queue
|
|
4816
|
+
if max_event_age is not None:
|
|
4817
|
+
self._values["max_event_age"] = max_event_age
|
|
4818
|
+
if retry_attempts is not None:
|
|
4819
|
+
self._values["retry_attempts"] = retry_attempts
|
|
4820
|
+
if message is not None:
|
|
4821
|
+
self._values["message"] = message
|
|
4822
|
+
if partition_key_path is not None:
|
|
4823
|
+
self._values["partition_key_path"] = partition_key_path
|
|
4824
|
+
|
|
4825
|
+
@builtins.property
|
|
4826
|
+
def dead_letter_queue(self) -> typing.Optional[_IQueue_7ed6f679]:
|
|
4827
|
+
'''The SQS queue to be used as deadLetterQueue. Check out the `considerations for using a dead-letter queue <https://docs.aws.amazon.com/eventbridge/latest/userguide/rule-dlq.html#dlq-considerations>`_.
|
|
4828
|
+
|
|
4829
|
+
The events not successfully delivered are automatically retried for a specified period of time,
|
|
4830
|
+
depending on the retry policy of the target.
|
|
4831
|
+
If an event is not delivered before all retry attempts are exhausted, it will be sent to the dead letter queue.
|
|
4832
|
+
|
|
4833
|
+
:default: - no dead-letter queue
|
|
4834
|
+
'''
|
|
4835
|
+
result = self._values.get("dead_letter_queue")
|
|
4836
|
+
return typing.cast(typing.Optional[_IQueue_7ed6f679], result)
|
|
4837
|
+
|
|
4838
|
+
@builtins.property
|
|
4839
|
+
def max_event_age(self) -> typing.Optional[_Duration_4839e8c3]:
|
|
4840
|
+
'''The maximum age of a request that Lambda sends to a function for processing.
|
|
4841
|
+
|
|
4842
|
+
Minimum value of 60.
|
|
4843
|
+
Maximum value of 86400.
|
|
4844
|
+
|
|
4845
|
+
:default: Duration.hours(24)
|
|
4846
|
+
'''
|
|
4847
|
+
result = self._values.get("max_event_age")
|
|
4848
|
+
return typing.cast(typing.Optional[_Duration_4839e8c3], result)
|
|
4849
|
+
|
|
4850
|
+
@builtins.property
|
|
4851
|
+
def retry_attempts(self) -> typing.Optional[jsii.Number]:
|
|
4852
|
+
'''The maximum number of times to retry when the function returns an error.
|
|
4853
|
+
|
|
4854
|
+
Minimum value of 0.
|
|
4855
|
+
Maximum value of 185.
|
|
4856
|
+
|
|
4857
|
+
:default: 185
|
|
4858
|
+
'''
|
|
4859
|
+
result = self._values.get("retry_attempts")
|
|
4860
|
+
return typing.cast(typing.Optional[jsii.Number], result)
|
|
4861
|
+
|
|
4862
|
+
@builtins.property
|
|
4863
|
+
def message(self) -> typing.Optional[_RuleTargetInput_6beca786]:
|
|
4864
|
+
'''The message to send to the stream.
|
|
4865
|
+
|
|
4866
|
+
Must be a valid JSON text passed to the target stream.
|
|
4867
|
+
|
|
4868
|
+
:default: - the entire CloudWatch event
|
|
4869
|
+
'''
|
|
4870
|
+
result = self._values.get("message")
|
|
4871
|
+
return typing.cast(typing.Optional[_RuleTargetInput_6beca786], result)
|
|
4872
|
+
|
|
4873
|
+
@builtins.property
|
|
4874
|
+
def partition_key_path(self) -> typing.Optional[builtins.str]:
|
|
4875
|
+
'''Partition Key Path for records sent to this stream.
|
|
4876
|
+
|
|
4877
|
+
:default: - eventId as the partition key
|
|
4878
|
+
'''
|
|
4879
|
+
result = self._values.get("partition_key_path")
|
|
4880
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
4881
|
+
|
|
4882
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
4883
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
4884
|
+
|
|
4885
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
4886
|
+
return not (rhs == self)
|
|
4887
|
+
|
|
4888
|
+
def __repr__(self) -> str:
|
|
4889
|
+
return "KinesisStreamProps(%s)" % ", ".join(
|
|
4890
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
4891
|
+
)
|
|
4892
|
+
|
|
4893
|
+
|
|
4805
4894
|
@jsii.data_type(
|
|
4806
4895
|
jsii_type="aws-cdk-lib.aws_events_targets.LambdaFunctionProps",
|
|
4807
4896
|
jsii_struct_bases=[TargetBaseProps],
|
|
@@ -5792,6 +5881,9 @@ def _typecheckingstub__47a9d917a1971c5aa11b68bf823d9f34a57a7b1e7653b0f82809c0630
|
|
|
5792
5881
|
*,
|
|
5793
5882
|
message: typing.Optional[_RuleTargetInput_6beca786] = None,
|
|
5794
5883
|
partition_key_path: typing.Optional[builtins.str] = None,
|
|
5884
|
+
dead_letter_queue: typing.Optional[_IQueue_7ed6f679] = None,
|
|
5885
|
+
max_event_age: typing.Optional[_Duration_4839e8c3] = None,
|
|
5886
|
+
retry_attempts: typing.Optional[jsii.Number] = None,
|
|
5795
5887
|
) -> None:
|
|
5796
5888
|
"""Type checking stubs"""
|
|
5797
5889
|
pass
|
|
@@ -5803,14 +5895,6 @@ def _typecheckingstub__ae222f596f043d31f56819c2cb64c58ef12e8e3d35bce41fa6f0cd929
|
|
|
5803
5895
|
"""Type checking stubs"""
|
|
5804
5896
|
pass
|
|
5805
5897
|
|
|
5806
|
-
def _typecheckingstub__971b6fc6dc302be6b6401547a0731521d858936fe589a0d096ef25e81e707b46(
|
|
5807
|
-
*,
|
|
5808
|
-
message: typing.Optional[_RuleTargetInput_6beca786] = None,
|
|
5809
|
-
partition_key_path: typing.Optional[builtins.str] = None,
|
|
5810
|
-
) -> None:
|
|
5811
|
-
"""Type checking stubs"""
|
|
5812
|
-
pass
|
|
5813
|
-
|
|
5814
5898
|
def _typecheckingstub__1ed39c6222adc3f41ac8913ef4f7e22134443e2aa19c19114f6650e1d987c3c4(
|
|
5815
5899
|
handler: _IFunction_6adb0ab8,
|
|
5816
5900
|
*,
|
|
@@ -6061,6 +6145,17 @@ def _typecheckingstub__3624031da4f9372e2ccdb3e422123cc459d01922cc36bab5b96caa98f
|
|
|
6061
6145
|
"""Type checking stubs"""
|
|
6062
6146
|
pass
|
|
6063
6147
|
|
|
6148
|
+
def _typecheckingstub__971b6fc6dc302be6b6401547a0731521d858936fe589a0d096ef25e81e707b46(
|
|
6149
|
+
*,
|
|
6150
|
+
dead_letter_queue: typing.Optional[_IQueue_7ed6f679] = None,
|
|
6151
|
+
max_event_age: typing.Optional[_Duration_4839e8c3] = None,
|
|
6152
|
+
retry_attempts: typing.Optional[jsii.Number] = None,
|
|
6153
|
+
message: typing.Optional[_RuleTargetInput_6beca786] = None,
|
|
6154
|
+
partition_key_path: typing.Optional[builtins.str] = None,
|
|
6155
|
+
) -> None:
|
|
6156
|
+
"""Type checking stubs"""
|
|
6157
|
+
pass
|
|
6158
|
+
|
|
6064
6159
|
def _typecheckingstub__7e34dd9ce66add58b9a28d19d7823e686db2c0d099525e77c896c992c0318854(
|
|
6065
6160
|
*,
|
|
6066
6161
|
dead_letter_queue: typing.Optional[_IQueue_7ed6f679] = None,
|
|
@@ -38,7 +38,22 @@ import jsii
|
|
|
38
38
|
import publication
|
|
39
39
|
import typing_extensions
|
|
40
40
|
|
|
41
|
-
|
|
41
|
+
import typeguard
|
|
42
|
+
from importlib.metadata import version as _metadata_package_version
|
|
43
|
+
TYPEGUARD_MAJOR_VERSION = int(_metadata_package_version('typeguard').split('.')[0])
|
|
44
|
+
|
|
45
|
+
def check_type(argname: str, value: object, expected_type: typing.Any) -> typing.Any:
|
|
46
|
+
if TYPEGUARD_MAJOR_VERSION <= 2:
|
|
47
|
+
return typeguard.check_type(argname=argname, value=value, expected_type=expected_type) # type:ignore
|
|
48
|
+
else:
|
|
49
|
+
if isinstance(value, jsii._reference_map.InterfaceDynamicProxy): # pyright: ignore [reportAttributeAccessIssue]
|
|
50
|
+
pass
|
|
51
|
+
else:
|
|
52
|
+
if TYPEGUARD_MAJOR_VERSION == 3:
|
|
53
|
+
typeguard.config.collection_check_strategy = typeguard.CollectionCheckStrategy.ALL_ITEMS # type:ignore
|
|
54
|
+
typeguard.check_type(value=value, expected_type=expected_type) # type:ignore
|
|
55
|
+
else:
|
|
56
|
+
typeguard.check_type(value=value, expected_type=expected_type, collection_check_strategy=typeguard.CollectionCheckStrategy.ALL_ITEMS) # type:ignore
|
|
42
57
|
|
|
43
58
|
from .._jsii import *
|
|
44
59
|
|
|
@@ -38,7 +38,22 @@ import jsii
|
|
|
38
38
|
import publication
|
|
39
39
|
import typing_extensions
|
|
40
40
|
|
|
41
|
-
|
|
41
|
+
import typeguard
|
|
42
|
+
from importlib.metadata import version as _metadata_package_version
|
|
43
|
+
TYPEGUARD_MAJOR_VERSION = int(_metadata_package_version('typeguard').split('.')[0])
|
|
44
|
+
|
|
45
|
+
def check_type(argname: str, value: object, expected_type: typing.Any) -> typing.Any:
|
|
46
|
+
if TYPEGUARD_MAJOR_VERSION <= 2:
|
|
47
|
+
return typeguard.check_type(argname=argname, value=value, expected_type=expected_type) # type:ignore
|
|
48
|
+
else:
|
|
49
|
+
if isinstance(value, jsii._reference_map.InterfaceDynamicProxy): # pyright: ignore [reportAttributeAccessIssue]
|
|
50
|
+
pass
|
|
51
|
+
else:
|
|
52
|
+
if TYPEGUARD_MAJOR_VERSION == 3:
|
|
53
|
+
typeguard.config.collection_check_strategy = typeguard.CollectionCheckStrategy.ALL_ITEMS # type:ignore
|
|
54
|
+
typeguard.check_type(value=value, expected_type=expected_type) # type:ignore
|
|
55
|
+
else:
|
|
56
|
+
typeguard.check_type(value=value, expected_type=expected_type, collection_check_strategy=typeguard.CollectionCheckStrategy.ALL_ITEMS) # type:ignore
|
|
42
57
|
|
|
43
58
|
from .._jsii import *
|
|
44
59
|
|
aws_cdk/aws_finspace/__init__.py
CHANGED
|
@@ -38,7 +38,22 @@ import jsii
|
|
|
38
38
|
import publication
|
|
39
39
|
import typing_extensions
|
|
40
40
|
|
|
41
|
-
|
|
41
|
+
import typeguard
|
|
42
|
+
from importlib.metadata import version as _metadata_package_version
|
|
43
|
+
TYPEGUARD_MAJOR_VERSION = int(_metadata_package_version('typeguard').split('.')[0])
|
|
44
|
+
|
|
45
|
+
def check_type(argname: str, value: object, expected_type: typing.Any) -> typing.Any:
|
|
46
|
+
if TYPEGUARD_MAJOR_VERSION <= 2:
|
|
47
|
+
return typeguard.check_type(argname=argname, value=value, expected_type=expected_type) # type:ignore
|
|
48
|
+
else:
|
|
49
|
+
if isinstance(value, jsii._reference_map.InterfaceDynamicProxy): # pyright: ignore [reportAttributeAccessIssue]
|
|
50
|
+
pass
|
|
51
|
+
else:
|
|
52
|
+
if TYPEGUARD_MAJOR_VERSION == 3:
|
|
53
|
+
typeguard.config.collection_check_strategy = typeguard.CollectionCheckStrategy.ALL_ITEMS # type:ignore
|
|
54
|
+
typeguard.check_type(value=value, expected_type=expected_type) # type:ignore
|
|
55
|
+
else:
|
|
56
|
+
typeguard.check_type(value=value, expected_type=expected_type, collection_check_strategy=typeguard.CollectionCheckStrategy.ALL_ITEMS) # type:ignore
|
|
42
57
|
|
|
43
58
|
from .._jsii import *
|
|
44
59
|
|
aws_cdk/aws_fis/__init__.py
CHANGED
|
@@ -38,7 +38,22 @@ import jsii
|
|
|
38
38
|
import publication
|
|
39
39
|
import typing_extensions
|
|
40
40
|
|
|
41
|
-
|
|
41
|
+
import typeguard
|
|
42
|
+
from importlib.metadata import version as _metadata_package_version
|
|
43
|
+
TYPEGUARD_MAJOR_VERSION = int(_metadata_package_version('typeguard').split('.')[0])
|
|
44
|
+
|
|
45
|
+
def check_type(argname: str, value: object, expected_type: typing.Any) -> typing.Any:
|
|
46
|
+
if TYPEGUARD_MAJOR_VERSION <= 2:
|
|
47
|
+
return typeguard.check_type(argname=argname, value=value, expected_type=expected_type) # type:ignore
|
|
48
|
+
else:
|
|
49
|
+
if isinstance(value, jsii._reference_map.InterfaceDynamicProxy): # pyright: ignore [reportAttributeAccessIssue]
|
|
50
|
+
pass
|
|
51
|
+
else:
|
|
52
|
+
if TYPEGUARD_MAJOR_VERSION == 3:
|
|
53
|
+
typeguard.config.collection_check_strategy = typeguard.CollectionCheckStrategy.ALL_ITEMS # type:ignore
|
|
54
|
+
typeguard.check_type(value=value, expected_type=expected_type) # type:ignore
|
|
55
|
+
else:
|
|
56
|
+
typeguard.check_type(value=value, expected_type=expected_type, collection_check_strategy=typeguard.CollectionCheckStrategy.ALL_ITEMS) # type:ignore
|
|
42
57
|
|
|
43
58
|
from .._jsii import *
|
|
44
59
|
|