aws-cdk-lib 2.200.2__py3-none-any.whl → 2.224.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 +1349 -373
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.200.2.jsii.tgz → aws-cdk-lib@2.224.0.jsii.tgz} +0 -0
- aws_cdk/alexa_ask/__init__.py +12 -2
- aws_cdk/aws_accessanalyzer/__init__.py +323 -6
- aws_cdk/aws_acmpca/__init__.py +53 -10
- aws_cdk/aws_aiops/__init__.py +1019 -0
- aws_cdk/aws_amazonmq/__init__.py +357 -313
- aws_cdk/aws_amplify/__init__.py +173 -17
- aws_cdk/aws_amplifyuibuilder/__init__.py +35 -6
- aws_cdk/aws_apigateway/__init__.py +1017 -155
- aws_cdk/aws_apigatewayv2/__init__.py +2796 -379
- aws_cdk/aws_apigatewayv2_integrations/__init__.py +94 -16
- aws_cdk/aws_appconfig/__init__.py +298 -43
- aws_cdk/aws_appflow/__init__.py +151 -6
- aws_cdk/aws_appintegrations/__init__.py +546 -6
- aws_cdk/aws_applicationautoscaling/__init__.py +29 -6
- aws_cdk/aws_applicationinsights/__init__.py +13 -2
- aws_cdk/aws_applicationsignals/__init__.py +374 -6
- aws_cdk/aws_appmesh/__init__.py +94 -26
- aws_cdk/aws_apprunner/__init__.py +66 -18
- aws_cdk/aws_appstream/__init__.py +309 -55
- aws_cdk/aws_appsync/__init__.py +227 -53
- aws_cdk/aws_apptest/__init__.py +71 -2
- aws_cdk/aws_aps/__init__.py +1875 -132
- aws_cdk/aws_arcregionswitch/__init__.py +5095 -0
- aws_cdk/aws_arczonalshift/__init__.py +39 -12
- aws_cdk/aws_athena/__init__.py +365 -29
- aws_cdk/aws_auditmanager/__init__.py +71 -2
- aws_cdk/aws_autoscaling/__init__.py +135 -55
- aws_cdk/aws_autoscaling_common/__init__.py +3 -0
- aws_cdk/aws_autoscalingplans/__init__.py +13 -2
- aws_cdk/aws_b2bi/__init__.py +1819 -99
- aws_cdk/aws_backup/__init__.py +317 -28
- aws_cdk/aws_backupgateway/__init__.py +13 -2
- aws_cdk/aws_batch/__init__.py +1405 -178
- aws_cdk/aws_bcmdataexports/__init__.py +21 -2
- aws_cdk/aws_bedrock/__init__.py +6747 -627
- aws_cdk/aws_bedrockagentcore/__init__.py +10425 -0
- aws_cdk/aws_billingconductor/__init__.py +197 -11
- aws_cdk/aws_budgets/__init__.py +42 -4
- aws_cdk/aws_cassandra/__init__.py +247 -6
- aws_cdk/aws_ce/__init__.py +35 -6
- aws_cdk/aws_certificatemanager/__init__.py +237 -32
- aws_cdk/aws_chatbot/__init__.py +70 -6
- aws_cdk/aws_cleanrooms/__init__.py +709 -206
- aws_cdk/aws_cleanroomsml/__init__.py +13 -2
- aws_cdk/aws_cloud9/__init__.py +13 -2
- aws_cdk/aws_cloudformation/__init__.py +345 -166
- aws_cdk/aws_cloudfront/__init__.py +2101 -680
- aws_cdk/aws_cloudfront/experimental/__init__.py +108 -16
- aws_cdk/aws_cloudfront_origins/__init__.py +614 -73
- aws_cdk/aws_cloudtrail/__init__.py +301 -17
- aws_cdk/aws_cloudwatch/__init__.py +1414 -153
- aws_cdk/aws_codeartifact/__init__.py +35 -6
- aws_cdk/aws_codebuild/__init__.py +1103 -118
- aws_cdk/aws_codecommit/__init__.py +23 -9
- aws_cdk/aws_codeconnections/__init__.py +13 -2
- aws_cdk/aws_codedeploy/__init__.py +67 -6
- aws_cdk/aws_codeguruprofiler/__init__.py +74 -2
- aws_cdk/aws_codegurureviewer/__init__.py +13 -2
- aws_cdk/aws_codepipeline/__init__.py +127 -64
- aws_cdk/aws_codepipeline_actions/__init__.py +749 -0
- aws_cdk/aws_codestar/__init__.py +13 -2
- aws_cdk/aws_codestarconnections/__init__.py +35 -6
- aws_cdk/aws_codestarnotifications/__init__.py +16 -2
- aws_cdk/aws_cognito/__init__.py +814 -80
- aws_cdk/aws_cognito_identitypool/__init__.py +17 -12
- aws_cdk/aws_comprehend/__init__.py +24 -4
- aws_cdk/aws_config/__init__.py +191 -30
- aws_cdk/aws_connect/__init__.py +2736 -191
- aws_cdk/aws_connectcampaigns/__init__.py +13 -2
- aws_cdk/aws_connectcampaignsv2/__init__.py +268 -6
- aws_cdk/aws_controltower/__init__.py +35 -6
- aws_cdk/aws_cur/__init__.py +100 -4
- aws_cdk/aws_customerprofiles/__init__.py +617 -27
- aws_cdk/aws_databrew/__init__.py +68 -12
- aws_cdk/aws_datapipeline/__init__.py +42 -2
- aws_cdk/aws_datasync/__init__.py +723 -203
- aws_cdk/aws_datazone/__init__.py +4425 -608
- aws_cdk/aws_dax/__init__.py +83 -6
- aws_cdk/aws_deadline/__init__.py +321 -32
- aws_cdk/aws_detective/__init__.py +35 -6
- aws_cdk/aws_devicefarm/__init__.py +68 -12
- aws_cdk/aws_devopsguru/__init__.py +37 -6
- aws_cdk/aws_directoryservice/__init__.py +53 -4
- aws_cdk/aws_dlm/__init__.py +13 -2
- aws_cdk/aws_dms/__init__.py +184 -27
- aws_cdk/aws_docdb/__init__.py +323 -46
- aws_cdk/aws_docdbelastic/__init__.py +13 -2
- aws_cdk/aws_dsql/__init__.py +340 -12
- aws_cdk/aws_dynamodb/__init__.py +1463 -166
- aws_cdk/aws_ec2/__init__.py +9636 -1120
- aws_cdk/aws_ecr/__init__.py +631 -43
- aws_cdk/aws_ecr_assets/__init__.py +4 -0
- aws_cdk/aws_ecs/__init__.py +6524 -497
- aws_cdk/aws_ecs_patterns/__init__.py +2 -0
- aws_cdk/aws_efs/__init__.py +264 -24
- aws_cdk/aws_eks/__init__.py +1050 -218
- aws_cdk/aws_elasticache/__init__.py +373 -20
- aws_cdk/aws_elasticbeanstalk/__init__.py +75 -8
- aws_cdk/aws_elasticloadbalancing/__init__.py +16 -2
- aws_cdk/aws_elasticloadbalancingv2/__init__.py +1670 -106
- aws_cdk/aws_elasticsearch/__init__.py +282 -9
- aws_cdk/aws_emr/__init__.py +187 -20
- aws_cdk/aws_emrcontainers/__init__.py +71 -2
- aws_cdk/aws_emrserverless/__init__.py +188 -3
- aws_cdk/aws_entityresolution/__init__.py +585 -58
- aws_cdk/aws_events/__init__.py +969 -124
- aws_cdk/aws_events_targets/__init__.py +310 -54
- aws_cdk/aws_eventschemas/__init__.py +46 -8
- aws_cdk/aws_evidently/__init__.py +57 -10
- aws_cdk/aws_evs/__init__.py +2244 -0
- aws_cdk/aws_finspace/__init__.py +71 -2
- aws_cdk/aws_fis/__init__.py +26 -4
- aws_cdk/aws_fms/__init__.py +35 -6
- aws_cdk/aws_forecast/__init__.py +24 -4
- aws_cdk/aws_frauddetector/__init__.py +79 -14
- aws_cdk/aws_fsx/__init__.py +1236 -142
- aws_cdk/aws_gamelift/__init__.py +653 -78
- aws_cdk/aws_gameliftstreams/__init__.py +38 -16
- aws_cdk/aws_globalaccelerator/__init__.py +55 -14
- aws_cdk/aws_glue/__init__.py +1368 -320
- aws_cdk/aws_grafana/__init__.py +13 -2
- aws_cdk/aws_greengrass/__init__.py +654 -32
- aws_cdk/aws_greengrassv2/__init__.py +53 -4
- aws_cdk/aws_groundstation/__init__.py +122 -6
- aws_cdk/aws_guardduty/__init__.py +1613 -123
- aws_cdk/aws_healthimaging/__init__.py +71 -2
- aws_cdk/aws_healthlake/__init__.py +42 -2
- aws_cdk/aws_iam/__init__.py +480 -140
- aws_cdk/aws_identitystore/__init__.py +24 -4
- aws_cdk/aws_imagebuilder/__init__.py +1433 -183
- aws_cdk/aws_inspector/__init__.py +38 -6
- aws_cdk/aws_inspectorv2/__init__.py +2285 -243
- aws_cdk/aws_internetmonitor/__init__.py +71 -2
- aws_cdk/aws_invoicing/__init__.py +13 -2
- aws_cdk/aws_iot/__init__.py +1730 -86
- aws_cdk/aws_iotanalytics/__init__.py +162 -8
- aws_cdk/aws_iotcoredeviceadvisor/__init__.py +106 -40
- aws_cdk/aws_iotevents/__init__.py +122 -6
- aws_cdk/aws_iotfleethub/__init__.py +71 -2
- aws_cdk/aws_iotfleetwise/__init__.py +195 -14
- aws_cdk/aws_iotsitewise/__init__.py +1837 -89
- aws_cdk/aws_iotthingsgraph/__init__.py +13 -2
- aws_cdk/aws_iottwinmaker/__init__.py +115 -10
- aws_cdk/aws_iotwireless/__init__.py +649 -22
- aws_cdk/aws_ivs/__init__.py +561 -57
- aws_cdk/aws_ivschat/__init__.py +24 -4
- aws_cdk/aws_kafkaconnect/__init__.py +35 -6
- aws_cdk/aws_kendra/__init__.py +120 -28
- aws_cdk/aws_kendraranking/__init__.py +13 -2
- aws_cdk/aws_kinesis/__init__.py +622 -22
- aws_cdk/aws_kinesisanalytics/__init__.py +467 -94
- aws_cdk/aws_kinesisanalyticsv2/__init__.py +201 -11
- aws_cdk/aws_kinesisfirehose/__init__.py +3077 -295
- aws_cdk/aws_kinesisvideo/__init__.py +24 -4
- aws_cdk/aws_kms/__init__.py +188 -41
- aws_cdk/aws_lakeformation/__init__.py +80 -15
- aws_cdk/aws_lambda/__init__.py +2101 -252
- aws_cdk/aws_lambda_event_sources/__init__.py +638 -1
- aws_cdk/aws_lambda_nodejs/__init__.py +63 -24
- aws_cdk/aws_launchwizard/__init__.py +13 -2
- aws_cdk/aws_lex/__init__.py +871 -8
- aws_cdk/aws_licensemanager/__init__.py +24 -4
- aws_cdk/aws_lightsail/__init__.py +2159 -975
- aws_cdk/aws_location/__init__.py +618 -14
- aws_cdk/aws_logs/__init__.py +5904 -956
- aws_cdk/aws_lookoutequipment/__init__.py +13 -2
- aws_cdk/aws_lookoutmetrics/__init__.py +38 -6
- aws_cdk/aws_lookoutvision/__init__.py +71 -2
- aws_cdk/aws_m2/__init__.py +94 -19
- aws_cdk/aws_macie/__init__.py +49 -11
- aws_cdk/aws_managedblockchain/__init__.py +180 -6
- aws_cdk/aws_mediaconnect/__init__.py +101 -18
- aws_cdk/aws_mediaconvert/__init__.py +35 -6
- aws_cdk/aws_medialive/__init__.py +1239 -35
- aws_cdk/aws_mediapackage/__init__.py +59 -12
- aws_cdk/aws_mediapackagev2/__init__.py +1607 -225
- aws_cdk/aws_mediastore/__init__.py +13 -2
- aws_cdk/aws_mediatailor/__init__.py +583 -12
- aws_cdk/aws_memorydb/__init__.py +271 -12
- aws_cdk/aws_mpa/__init__.py +1495 -0
- aws_cdk/aws_msk/__init__.py +104 -18
- aws_cdk/aws_mwaa/__init__.py +121 -9
- aws_cdk/aws_neptune/__init__.py +290 -78
- aws_cdk/aws_neptunegraph/__init__.py +24 -4
- aws_cdk/aws_networkfirewall/__init__.py +1289 -273
- aws_cdk/aws_networkmanager/__init__.py +349 -33
- aws_cdk/aws_nimblestudio/__init__.py +75 -8
- aws_cdk/aws_notifications/__init__.py +317 -12
- aws_cdk/aws_notificationscontacts/__init__.py +13 -2
- aws_cdk/aws_oam/__init__.py +24 -4
- aws_cdk/aws_observabilityadmin/__init__.py +2561 -0
- aws_cdk/aws_odb/__init__.py +5872 -0
- aws_cdk/aws_omics/__init__.py +2495 -529
- aws_cdk/aws_opensearchserverless/__init__.py +312 -37
- aws_cdk/aws_opensearchservice/__init__.py +495 -19
- aws_cdk/aws_opsworks/__init__.py +235 -139
- aws_cdk/aws_opsworkscm/__init__.py +16 -52
- aws_cdk/aws_organizations/__init__.py +70 -10
- aws_cdk/aws_osis/__init__.py +167 -2
- aws_cdk/aws_panorama/__init__.py +151 -6
- aws_cdk/aws_paymentcryptography/__init__.py +24 -4
- aws_cdk/aws_pcaconnectorad/__init__.py +59 -10
- aws_cdk/aws_pcaconnectorscep/__init__.py +24 -4
- aws_cdk/aws_pcs/__init__.py +387 -68
- aws_cdk/aws_personalize/__init__.py +46 -8
- aws_cdk/aws_pinpoint/__init__.py +329 -38
- aws_cdk/aws_pinpointemail/__init__.py +48 -8
- aws_cdk/aws_pipes/__init__.py +12 -2
- aws_cdk/aws_proton/__init__.py +37 -6
- aws_cdk/aws_qbusiness/__init__.py +635 -34
- aws_cdk/aws_qldb/__init__.py +24 -4
- aws_cdk/aws_quicksight/__init__.py +7900 -1160
- aws_cdk/aws_ram/__init__.py +24 -4
- aws_cdk/aws_rbin/__init__.py +12 -2
- aws_cdk/aws_rds/__init__.py +3345 -512
- aws_cdk/aws_redshift/__init__.py +143 -20
- aws_cdk/aws_redshiftserverless/__init__.py +692 -4
- aws_cdk/aws_refactorspaces/__init__.py +64 -14
- aws_cdk/aws_rekognition/__init__.py +93 -6
- aws_cdk/aws_resiliencehub/__init__.py +24 -4
- aws_cdk/aws_resourceexplorer2/__init__.py +35 -6
- aws_cdk/aws_resourcegroups/__init__.py +82 -4
- aws_cdk/aws_robomaker/__init__.py +72 -12
- aws_cdk/aws_rolesanywhere/__init__.py +180 -6
- aws_cdk/aws_route53/__init__.py +3273 -1442
- aws_cdk/aws_route53_targets/__init__.py +3 -0
- aws_cdk/aws_route53profiles/__init__.py +37 -6
- aws_cdk/aws_route53recoverycontrol/__init__.py +46 -8
- aws_cdk/aws_route53recoveryreadiness/__init__.py +104 -8
- aws_cdk/aws_route53resolver/__init__.py +226 -36
- aws_cdk/aws_rtbfabric/__init__.py +3498 -0
- aws_cdk/aws_rum/__init__.py +13 -2
- aws_cdk/aws_s3/__init__.py +1291 -158
- aws_cdk/aws_s3_assets/__init__.py +11 -11
- aws_cdk/aws_s3_deployment/__init__.py +147 -11
- aws_cdk/aws_s3_notifications/__init__.py +7 -7
- aws_cdk/aws_s3express/__init__.py +266 -8
- aws_cdk/aws_s3objectlambda/__init__.py +68 -16
- aws_cdk/aws_s3outposts/__init__.py +46 -8
- aws_cdk/aws_s3tables/__init__.py +2000 -323
- aws_cdk/aws_s3vectors/__init__.py +1378 -0
- aws_cdk/aws_sagemaker/__init__.py +6617 -363
- aws_cdk/aws_sam/__init__.py +79 -14
- aws_cdk/aws_scheduler/__init__.py +237 -4
- aws_cdk/aws_sdb/__init__.py +12 -2
- aws_cdk/aws_secretsmanager/__init__.py +170 -14
- aws_cdk/aws_securityhub/__init__.py +3121 -176
- aws_cdk/aws_securitylake/__init__.py +46 -8
- aws_cdk/aws_servicecatalog/__init__.py +405 -246
- aws_cdk/aws_servicecatalogappregistry/__init__.py +164 -8
- aws_cdk/aws_servicediscovery/__init__.py +140 -47
- aws_cdk/aws_ses/__init__.py +1231 -140
- aws_cdk/aws_shield/__init__.py +46 -8
- aws_cdk/aws_signer/__init__.py +27 -4
- aws_cdk/aws_simspaceweaver/__init__.py +42 -2
- aws_cdk/aws_smsvoice/__init__.py +4716 -0
- aws_cdk/aws_sns/__init__.py +245 -29
- aws_cdk/aws_sns_subscriptions/__init__.py +3 -1
- aws_cdk/aws_sqs/__init__.py +211 -14
- aws_cdk/aws_ssm/__init__.py +401 -58
- aws_cdk/aws_ssmcontacts/__init__.py +46 -8
- aws_cdk/aws_ssmguiconnect/__init__.py +13 -2
- aws_cdk/aws_ssmincidents/__init__.py +24 -4
- aws_cdk/aws_ssmquicksetup/__init__.py +383 -6
- aws_cdk/aws_sso/__init__.py +70 -12
- aws_cdk/aws_stepfunctions/__init__.py +615 -70
- aws_cdk/aws_stepfunctions_tasks/__init__.py +781 -144
- aws_cdk/aws_supportapp/__init__.py +39 -6
- aws_cdk/aws_synthetics/__init__.py +861 -75
- aws_cdk/aws_systemsmanagersap/__init__.py +13 -2
- aws_cdk/aws_timestream/__init__.py +104 -8
- aws_cdk/aws_transfer/__init__.py +784 -87
- aws_cdk/aws_verifiedpermissions/__init__.py +145 -17
- aws_cdk/aws_voiceid/__init__.py +41 -2
- aws_cdk/aws_vpclattice/__init__.py +376 -30
- aws_cdk/aws_waf/__init__.py +79 -14
- aws_cdk/aws_wafregional/__init__.py +123 -22
- aws_cdk/aws_wafv2/__init__.py +1179 -60
- aws_cdk/aws_wisdom/__init__.py +1401 -90
- aws_cdk/aws_workspaces/__init__.py +93 -6
- aws_cdk/aws_workspacesinstances/__init__.py +3940 -0
- aws_cdk/aws_workspacesthinclient/__init__.py +79 -10
- aws_cdk/aws_workspacesweb/__init__.py +1057 -141
- aws_cdk/aws_xray/__init__.py +48 -8
- aws_cdk/cloud_assembly_schema/__init__.py +231 -6
- aws_cdk/custom_resources/__init__.py +40 -12
- aws_cdk/cx_api/__init__.py +85 -14
- aws_cdk/interfaces/__init__.py +739 -0
- aws_cdk/interfaces/alexa_ask/__init__.py +146 -0
- aws_cdk/interfaces/aws_accessanalyzer/__init__.py +146 -0
- aws_cdk/interfaces/aws_acmpca/__init__.py +501 -0
- aws_cdk/interfaces/aws_aiops/__init__.py +146 -0
- aws_cdk/interfaces/aws_amazonmq/__init__.py +386 -0
- aws_cdk/interfaces/aws_amplify/__init__.py +352 -0
- aws_cdk/interfaces/aws_amplifyuibuilder/__init__.py +454 -0
- aws_cdk/interfaces/aws_apigateway/__init__.py +2486 -0
- aws_cdk/interfaces/aws_apigatewayv2/__init__.py +1651 -0
- aws_cdk/interfaces/aws_appconfig/__init__.py +1020 -0
- aws_cdk/interfaces/aws_appflow/__init__.py +404 -0
- aws_cdk/interfaces/aws_appintegrations/__init__.py +396 -0
- aws_cdk/interfaces/aws_applicationautoscaling/__init__.py +307 -0
- aws_cdk/interfaces/aws_applicationinsights/__init__.py +148 -0
- aws_cdk/interfaces/aws_applicationsignals/__init__.py +358 -0
- aws_cdk/interfaces/aws_appmesh/__init__.py +888 -0
- aws_cdk/interfaces/aws_apprunner/__init__.py +564 -0
- aws_cdk/interfaces/aws_appstream/__init__.py +1482 -0
- aws_cdk/interfaces/aws_appsync/__init__.py +1326 -0
- aws_cdk/interfaces/aws_apptest/__init__.py +163 -0
- aws_cdk/interfaces/aws_aps/__init__.py +558 -0
- aws_cdk/interfaces/aws_arcregionswitch/__init__.py +146 -0
- aws_cdk/interfaces/aws_arczonalshift/__init__.py +273 -0
- aws_cdk/interfaces/aws_athena/__init__.py +575 -0
- aws_cdk/interfaces/aws_auditmanager/__init__.py +163 -0
- aws_cdk/interfaces/aws_autoscaling/__init__.py +705 -0
- aws_cdk/interfaces/aws_autoscalingplans/__init__.py +148 -0
- aws_cdk/interfaces/aws_b2bi/__init__.py +524 -0
- aws_cdk/interfaces/aws_backup/__init__.py +955 -0
- aws_cdk/interfaces/aws_backupgateway/__init__.py +146 -0
- aws_cdk/interfaces/aws_batch/__init__.py +681 -0
- aws_cdk/interfaces/aws_bcmdataexports/__init__.py +146 -0
- aws_cdk/interfaces/aws_bedrock/__init__.py +1942 -0
- aws_cdk/interfaces/aws_bedrockagentcore/__init__.py +934 -0
- aws_cdk/interfaces/aws_billing/__init__.py +146 -0
- aws_cdk/interfaces/aws_billingconductor/__init__.py +463 -0
- aws_cdk/interfaces/aws_budgets/__init__.py +261 -0
- aws_cdk/interfaces/aws_cassandra/__init__.py +381 -0
- aws_cdk/interfaces/aws_ce/__init__.py +352 -0
- aws_cdk/interfaces/aws_certificatemanager/__init__.py +251 -0
- aws_cdk/interfaces/aws_chatbot/__init__.py +366 -0
- aws_cdk/interfaces/aws_cleanrooms/__init__.py +1103 -0
- aws_cdk/interfaces/aws_cleanroomsml/__init__.py +148 -0
- aws_cdk/interfaces/aws_cloud9/__init__.py +166 -0
- aws_cdk/interfaces/aws_cloudformation/__init__.py +1919 -0
- aws_cdk/interfaces/aws_cloudfront/__init__.py +1998 -0
- aws_cdk/interfaces/aws_cloudtrail/__init__.py +570 -0
- aws_cdk/interfaces/aws_cloudwatch/__init__.py +733 -0
- aws_cdk/interfaces/aws_codeartifact/__init__.py +352 -0
- aws_cdk/interfaces/aws_codebuild/__init__.py +487 -0
- aws_cdk/interfaces/aws_codecommit/__init__.py +163 -0
- aws_cdk/interfaces/aws_codeconnections/__init__.py +146 -0
- aws_cdk/interfaces/aws_codedeploy/__init__.py +352 -0
- aws_cdk/interfaces/aws_codeguruprofiler/__init__.py +168 -0
- aws_cdk/interfaces/aws_codegurureviewer/__init__.py +148 -0
- aws_cdk/interfaces/aws_codepipeline/__init__.py +388 -0
- aws_cdk/interfaces/aws_codestar/__init__.py +146 -0
- aws_cdk/interfaces/aws_codestarconnections/__init__.py +370 -0
- aws_cdk/interfaces/aws_codestarnotifications/__init__.py +148 -0
- aws_cdk/interfaces/aws_cognito/__init__.py +1929 -0
- aws_cdk/interfaces/aws_comprehend/__init__.py +251 -0
- aws_cdk/interfaces/aws_config/__init__.py +1165 -0
- aws_cdk/interfaces/aws_connect/__init__.py +2949 -0
- aws_cdk/interfaces/aws_connectcampaigns/__init__.py +146 -0
- aws_cdk/interfaces/aws_connectcampaignsv2/__init__.py +146 -0
- aws_cdk/interfaces/aws_controltower/__init__.py +394 -0
- aws_cdk/interfaces/aws_cur/__init__.py +146 -0
- aws_cdk/interfaces/aws_customerprofiles/__init__.py +915 -0
- aws_cdk/interfaces/aws_databrew/__init__.py +661 -0
- aws_cdk/interfaces/aws_datapipeline/__init__.py +146 -0
- aws_cdk/interfaces/aws_datasync/__init__.py +1384 -0
- aws_cdk/interfaces/aws_datazone/__init__.py +2238 -0
- aws_cdk/interfaces/aws_dax/__init__.py +364 -0
- aws_cdk/interfaces/aws_deadline/__init__.py +1303 -0
- aws_cdk/interfaces/aws_detective/__init__.py +364 -0
- aws_cdk/interfaces/aws_devicefarm/__init__.py +663 -0
- aws_cdk/interfaces/aws_devopsguru/__init__.py +362 -0
- aws_cdk/interfaces/aws_directoryservice/__init__.py +251 -0
- aws_cdk/interfaces/aws_dlm/__init__.py +166 -0
- aws_cdk/interfaces/aws_dms/__init__.py +1176 -0
- aws_cdk/interfaces/aws_docdb/__init__.py +560 -0
- aws_cdk/interfaces/aws_docdbelastic/__init__.py +146 -0
- aws_cdk/interfaces/aws_dsql/__init__.py +146 -0
- aws_cdk/interfaces/aws_dynamodb/__init__.py +278 -0
- aws_cdk/interfaces/aws_ec2/__init__.py +11963 -0
- aws_cdk/interfaces/aws_ecr/__init__.py +814 -0
- aws_cdk/interfaces/aws_ecs/__init__.py +845 -0
- aws_cdk/interfaces/aws_efs/__init__.py +392 -0
- aws_cdk/interfaces/aws_eks/__init__.py +948 -0
- aws_cdk/interfaces/aws_elasticache/__init__.py +1108 -0
- aws_cdk/interfaces/aws_elasticbeanstalk/__init__.py +503 -0
- aws_cdk/interfaces/aws_elasticloadbalancing/__init__.py +148 -0
- aws_cdk/interfaces/aws_elasticloadbalancingv2/__init__.py +795 -0
- aws_cdk/interfaces/aws_elasticsearch/__init__.py +158 -0
- aws_cdk/interfaces/aws_emr/__init__.py +913 -0
- aws_cdk/interfaces/aws_emrcontainers/__init__.py +168 -0
- aws_cdk/interfaces/aws_emrserverless/__init__.py +166 -0
- aws_cdk/interfaces/aws_entityresolution/__init__.py +608 -0
- aws_cdk/interfaces/aws_events/__init__.py +872 -0
- aws_cdk/interfaces/aws_eventschemas/__init__.py +455 -0
- aws_cdk/interfaces/aws_evidently/__init__.py +558 -0
- aws_cdk/interfaces/aws_evs/__init__.py +166 -0
- aws_cdk/interfaces/aws_finspace/__init__.py +166 -0
- aws_cdk/interfaces/aws_fis/__init__.py +271 -0
- aws_cdk/interfaces/aws_fms/__init__.py +364 -0
- aws_cdk/interfaces/aws_forecast/__init__.py +249 -0
- aws_cdk/interfaces/aws_frauddetector/__init__.py +764 -0
- aws_cdk/interfaces/aws_fsx/__init__.py +663 -0
- aws_cdk/interfaces/aws_gamelift/__init__.py +1325 -0
- aws_cdk/interfaces/aws_gameliftstreams/__init__.py +249 -0
- aws_cdk/interfaces/aws_globalaccelerator/__init__.py +461 -0
- aws_cdk/interfaces/aws_glue/__init__.py +2377 -0
- aws_cdk/interfaces/aws_grafana/__init__.py +146 -0
- aws_cdk/interfaces/aws_greengrass/__init__.py +1871 -0
- aws_cdk/interfaces/aws_greengrassv2/__init__.py +251 -0
- aws_cdk/interfaces/aws_groundstation/__init__.py +396 -0
- aws_cdk/interfaces/aws_guardduty/__init__.py +1225 -0
- aws_cdk/interfaces/aws_healthimaging/__init__.py +163 -0
- aws_cdk/interfaces/aws_healthlake/__init__.py +146 -0
- aws_cdk/interfaces/aws_iam/__init__.py +1803 -0
- aws_cdk/interfaces/aws_identitystore/__init__.py +288 -0
- aws_cdk/interfaces/aws_imagebuilder/__init__.py +984 -0
- aws_cdk/interfaces/aws_inspector/__init__.py +354 -0
- aws_cdk/interfaces/aws_inspectorv2/__init__.py +467 -0
- aws_cdk/interfaces/aws_internetmonitor/__init__.py +163 -0
- aws_cdk/interfaces/aws_invoicing/__init__.py +146 -0
- aws_cdk/interfaces/aws_iot/__init__.py +3483 -0
- aws_cdk/interfaces/aws_iotanalytics/__init__.py +455 -0
- aws_cdk/interfaces/aws_iotcoredeviceadvisor/__init__.py +168 -0
- aws_cdk/interfaces/aws_iotevents/__init__.py +352 -0
- aws_cdk/interfaces/aws_iotfleethub/__init__.py +166 -0
- aws_cdk/interfaces/aws_iotfleetwise/__init__.py +892 -0
- aws_cdk/interfaces/aws_iotsitewise/__init__.py +1097 -0
- aws_cdk/interfaces/aws_iotthingsgraph/__init__.py +146 -0
- aws_cdk/interfaces/aws_iottwinmaker/__init__.py +711 -0
- aws_cdk/interfaces/aws_iotwireless/__init__.py +1401 -0
- aws_cdk/interfaces/aws_ivs/__init__.py +1075 -0
- aws_cdk/interfaces/aws_ivschat/__init__.py +251 -0
- aws_cdk/interfaces/aws_kafkaconnect/__init__.py +354 -0
- aws_cdk/interfaces/aws_kendra/__init__.py +428 -0
- aws_cdk/interfaces/aws_kendraranking/__init__.py +166 -0
- aws_cdk/interfaces/aws_kinesis/__init__.py +364 -0
- aws_cdk/interfaces/aws_kinesisanalytics/__init__.py +364 -0
- aws_cdk/interfaces/aws_kinesisanalyticsv2/__init__.py +479 -0
- aws_cdk/interfaces/aws_kinesisfirehose/__init__.py +168 -0
- aws_cdk/interfaces/aws_kinesisvideo/__init__.py +283 -0
- aws_cdk/interfaces/aws_kms/__init__.py +376 -0
- aws_cdk/interfaces/aws_lakeformation/__init__.py +860 -0
- aws_cdk/interfaces/aws_lambda/__init__.py +1141 -0
- aws_cdk/interfaces/aws_launchwizard/__init__.py +146 -0
- aws_cdk/interfaces/aws_lex/__init__.py +513 -0
- aws_cdk/interfaces/aws_licensemanager/__init__.py +249 -0
- aws_cdk/interfaces/aws_lightsail/__init__.py +1744 -0
- aws_cdk/interfaces/aws_location/__init__.py +879 -0
- aws_cdk/interfaces/aws_logs/__init__.py +1667 -0
- aws_cdk/interfaces/aws_lookoutequipment/__init__.py +168 -0
- aws_cdk/interfaces/aws_lookoutmetrics/__init__.py +251 -0
- aws_cdk/interfaces/aws_lookoutvision/__init__.py +163 -0
- aws_cdk/interfaces/aws_m2/__init__.py +352 -0
- aws_cdk/interfaces/aws_macie/__init__.py +512 -0
- aws_cdk/interfaces/aws_managedblockchain/__init__.py +381 -0
- aws_cdk/interfaces/aws_mediaconnect/__init__.py +1028 -0
- aws_cdk/interfaces/aws_mediaconvert/__init__.py +396 -0
- aws_cdk/interfaces/aws_medialive/__init__.py +1755 -0
- aws_cdk/interfaces/aws_mediapackage/__init__.py +644 -0
- aws_cdk/interfaces/aws_mediapackagev2/__init__.py +618 -0
- aws_cdk/interfaces/aws_mediastore/__init__.py +146 -0
- aws_cdk/interfaces/aws_mediatailor/__init__.py +788 -0
- aws_cdk/interfaces/aws_memorydb/__init__.py +685 -0
- aws_cdk/interfaces/aws_mpa/__init__.py +249 -0
- aws_cdk/interfaces/aws_msk/__init__.py +764 -0
- aws_cdk/interfaces/aws_mwaa/__init__.py +166 -0
- aws_cdk/interfaces/aws_neptune/__init__.py +663 -0
- aws_cdk/interfaces/aws_neptunegraph/__init__.py +265 -0
- aws_cdk/interfaces/aws_networkfirewall/__init__.py +669 -0
- aws_cdk/interfaces/aws_networkmanager/__init__.py +1832 -0
- aws_cdk/interfaces/aws_nimblestudio/__init__.py +388 -0
- aws_cdk/interfaces/aws_notifications/__init__.py +868 -0
- aws_cdk/interfaces/aws_notificationscontacts/__init__.py +148 -0
- aws_cdk/interfaces/aws_oam/__init__.py +249 -0
- aws_cdk/interfaces/aws_observabilityadmin/__init__.py +362 -0
- aws_cdk/interfaces/aws_odb/__init__.py +562 -0
- aws_cdk/interfaces/aws_omics/__init__.py +838 -0
- aws_cdk/interfaces/aws_opensearchserverless/__init__.py +859 -0
- aws_cdk/interfaces/aws_opensearchservice/__init__.py +283 -0
- aws_cdk/interfaces/aws_opsworks/__init__.py +772 -0
- aws_cdk/interfaces/aws_opsworkscm/__init__.py +146 -0
- aws_cdk/interfaces/aws_organizations/__init__.py +646 -0
- aws_cdk/interfaces/aws_osis/__init__.py +146 -0
- aws_cdk/interfaces/aws_panorama/__init__.py +420 -0
- aws_cdk/interfaces/aws_paymentcryptography/__init__.py +249 -0
- aws_cdk/interfaces/aws_pcaconnectorad/__init__.py +608 -0
- aws_cdk/interfaces/aws_pcaconnectorscep/__init__.py +249 -0
- aws_cdk/interfaces/aws_pcs/__init__.py +352 -0
- aws_cdk/interfaces/aws_personalize/__init__.py +455 -0
- aws_cdk/interfaces/aws_pinpoint/__init__.py +2125 -0
- aws_cdk/interfaces/aws_pinpointemail/__init__.py +467 -0
- aws_cdk/interfaces/aws_pipes/__init__.py +158 -0
- aws_cdk/interfaces/aws_proton/__init__.py +360 -0
- aws_cdk/interfaces/aws_qbusiness/__init__.py +1122 -0
- aws_cdk/interfaces/aws_qldb/__init__.py +283 -0
- aws_cdk/interfaces/aws_quicksight/__init__.py +1566 -0
- aws_cdk/interfaces/aws_ram/__init__.py +249 -0
- aws_cdk/interfaces/aws_rbin/__init__.py +146 -0
- aws_cdk/interfaces/aws_rds/__init__.py +1780 -0
- aws_cdk/interfaces/aws_redshift/__init__.py +1104 -0
- aws_cdk/interfaces/aws_redshiftserverless/__init__.py +356 -0
- aws_cdk/interfaces/aws_refactorspaces/__init__.py +605 -0
- aws_cdk/interfaces/aws_rekognition/__init__.py +406 -0
- aws_cdk/interfaces/aws_resiliencehub/__init__.py +251 -0
- aws_cdk/interfaces/aws_resourceexplorer2/__init__.py +354 -0
- aws_cdk/interfaces/aws_resourcegroups/__init__.py +261 -0
- aws_cdk/interfaces/aws_robomaker/__init__.py +673 -0
- aws_cdk/interfaces/aws_rolesanywhere/__init__.py +384 -0
- aws_cdk/interfaces/aws_route53/__init__.py +804 -0
- aws_cdk/interfaces/aws_route53profiles/__init__.py +368 -0
- aws_cdk/interfaces/aws_route53recoverycontrol/__init__.py +463 -0
- aws_cdk/interfaces/aws_route53recoveryreadiness/__init__.py +535 -0
- aws_cdk/interfaces/aws_route53resolver/__init__.py +1356 -0
- aws_cdk/interfaces/aws_rtbfabric/__init__.py +352 -0
- aws_cdk/interfaces/aws_rum/__init__.py +146 -0
- aws_cdk/interfaces/aws_s3/__init__.py +1171 -0
- aws_cdk/interfaces/aws_s3express/__init__.py +392 -0
- aws_cdk/interfaces/aws_s3objectlambda/__init__.py +271 -0
- aws_cdk/interfaces/aws_s3outposts/__init__.py +455 -0
- aws_cdk/interfaces/aws_s3tables/__init__.py +575 -0
- aws_cdk/interfaces/aws_s3vectors/__init__.py +354 -0
- aws_cdk/interfaces/aws_sagemaker/__init__.py +3797 -0
- aws_cdk/interfaces/aws_sam/__init__.py +603 -0
- aws_cdk/interfaces/aws_scheduler/__init__.py +286 -0
- aws_cdk/interfaces/aws_sdb/__init__.py +146 -0
- aws_cdk/interfaces/aws_secretsmanager/__init__.py +461 -0
- aws_cdk/interfaces/aws_securityhub/__init__.py +1499 -0
- aws_cdk/interfaces/aws_securitylake/__init__.py +474 -0
- aws_cdk/interfaces/aws_servicecatalog/__init__.py +1829 -0
- aws_cdk/interfaces/aws_servicecatalogappregistry/__init__.py +557 -0
- aws_cdk/interfaces/aws_servicediscovery/__init__.py +636 -0
- aws_cdk/interfaces/aws_ses/__init__.py +2018 -0
- aws_cdk/interfaces/aws_shield/__init__.py +455 -0
- aws_cdk/interfaces/aws_signer/__init__.py +266 -0
- aws_cdk/interfaces/aws_simspaceweaver/__init__.py +146 -0
- aws_cdk/interfaces/aws_smsvoice/__init__.py +892 -0
- aws_cdk/interfaces/aws_sns/__init__.py +455 -0
- aws_cdk/interfaces/aws_sqs/__init__.py +364 -0
- aws_cdk/interfaces/aws_ssm/__init__.py +982 -0
- aws_cdk/interfaces/aws_ssmcontacts/__init__.py +455 -0
- aws_cdk/interfaces/aws_ssmguiconnect/__init__.py +146 -0
- aws_cdk/interfaces/aws_ssmincidents/__init__.py +249 -0
- aws_cdk/interfaces/aws_ssmquicksetup/__init__.py +253 -0
- aws_cdk/interfaces/aws_sso/__init__.py +797 -0
- aws_cdk/interfaces/aws_stepfunctions/__init__.py +459 -0
- aws_cdk/interfaces/aws_supportapp/__init__.py +372 -0
- aws_cdk/interfaces/aws_synthetics/__init__.py +249 -0
- aws_cdk/interfaces/aws_systemsmanagersap/__init__.py +148 -0
- aws_cdk/interfaces/aws_timestream/__init__.py +526 -0
- aws_cdk/interfaces/aws_transfer/__init__.py +967 -0
- aws_cdk/interfaces/aws_verifiedpermissions/__init__.py +538 -0
- aws_cdk/interfaces/aws_voiceid/__init__.py +146 -0
- aws_cdk/interfaces/aws_vpclattice/__init__.py +1418 -0
- aws_cdk/interfaces/aws_waf/__init__.py +764 -0
- aws_cdk/interfaces/aws_wafregional/__init__.py +1182 -0
- aws_cdk/interfaces/aws_wafv2/__init__.py +870 -0
- aws_cdk/interfaces/aws_wisdom/__init__.py +1556 -0
- aws_cdk/interfaces/aws_workspaces/__init__.py +352 -0
- aws_cdk/interfaces/aws_workspacesinstances/__init__.py +390 -0
- aws_cdk/interfaces/aws_workspacesthinclient/__init__.py +168 -0
- aws_cdk/interfaces/aws_workspacesweb/__init__.py +1085 -0
- aws_cdk/interfaces/aws_xray/__init__.py +457 -0
- aws_cdk/pipelines/__init__.py +192 -42
- aws_cdk/region_info/__init__.py +3 -0
- aws_cdk/triggers/__init__.py +60 -18
- {aws_cdk_lib-2.200.2.dist-info → aws_cdk_lib-2.224.0.dist-info}/METADATA +338 -16
- aws_cdk_lib-2.224.0.dist-info/RECORD +584 -0
- aws_cdk_lib-2.200.2.dist-info/RECORD +0 -304
- {aws_cdk_lib-2.200.2.dist-info → aws_cdk_lib-2.224.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.200.2.dist-info → aws_cdk_lib-2.224.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.200.2.dist-info → aws_cdk_lib-2.224.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.200.2.dist-info → aws_cdk_lib-2.224.0.dist-info}/top_level.txt +0 -0
|
@@ -458,6 +458,76 @@ my_function.add_event_source(ManagedKafkaEventSource(
|
|
|
458
458
|
))
|
|
459
459
|
```
|
|
460
460
|
|
|
461
|
+
Set a confluent or self-managed schema registry to de-serialize events from the event source. Note, this will similarly work for `SelfManagedKafkaEventSource` but the example only shows setup for `ManagedKafkaEventSource`.
|
|
462
|
+
|
|
463
|
+
```python
|
|
464
|
+
from aws_cdk.aws_lambda_event_sources import ManagedKafkaEventSource, ConfluentSchemaRegistry
|
|
465
|
+
from aws_cdk.aws_secretsmanager import Secret
|
|
466
|
+
|
|
467
|
+
# Your MSK cluster arn
|
|
468
|
+
# cluster_arn: str
|
|
469
|
+
|
|
470
|
+
# my_function: lambda.Function
|
|
471
|
+
|
|
472
|
+
|
|
473
|
+
# The Kafka topic you want to subscribe to
|
|
474
|
+
topic = "some-cool-topic"
|
|
475
|
+
|
|
476
|
+
secret = Secret(self, "Secret", secret_name="AmazonMSK_KafkaSecret")
|
|
477
|
+
my_function.add_event_source(ManagedKafkaEventSource(
|
|
478
|
+
cluster_arn=cluster_arn,
|
|
479
|
+
topic=topic,
|
|
480
|
+
starting_position=lambda_.StartingPosition.TRIM_HORIZON,
|
|
481
|
+
provisioned_poller_config=ProvisionedPollerConfig(
|
|
482
|
+
minimum_pollers=1,
|
|
483
|
+
maximum_pollers=3
|
|
484
|
+
),
|
|
485
|
+
schema_registry_config=ConfluentSchemaRegistry(
|
|
486
|
+
schema_registry_uri="https://example.com",
|
|
487
|
+
event_record_format=lambda_.EventRecordFormat.JSON,
|
|
488
|
+
authentication_type=lambda_.KafkaSchemaRegistryAccessConfigType.BASIC_AUTH,
|
|
489
|
+
secret=secret,
|
|
490
|
+
schema_validation_configs=[lambda.KafkaSchemaValidationConfig(attribute=lambda_.KafkaSchemaValidationAttribute.KEY)]
|
|
491
|
+
)
|
|
492
|
+
))
|
|
493
|
+
```
|
|
494
|
+
|
|
495
|
+
Set Glue schema registry to de-serialize events from the event source. Note, this will similarly work for `SelfManagedKafkaEventSource` but the example only shows setup for `ManagedKafkaEventSource`.
|
|
496
|
+
|
|
497
|
+
```python
|
|
498
|
+
from aws_cdk.aws_glue import CfnRegistry
|
|
499
|
+
from aws_cdk.aws_lambda_event_sources import ManagedKafkaEventSource, GlueSchemaRegistry
|
|
500
|
+
|
|
501
|
+
# Your MSK cluster arn
|
|
502
|
+
# cluster_arn: str
|
|
503
|
+
|
|
504
|
+
# my_function: lambda.Function
|
|
505
|
+
|
|
506
|
+
|
|
507
|
+
# The Kafka topic you want to subscribe to
|
|
508
|
+
topic = "some-cool-topic"
|
|
509
|
+
|
|
510
|
+
# Your Glue Schema Registry
|
|
511
|
+
glue_registry = CfnRegistry(self, "Registry",
|
|
512
|
+
name="schema-registry",
|
|
513
|
+
description="Schema registry for event source"
|
|
514
|
+
)
|
|
515
|
+
my_function.add_event_source(ManagedKafkaEventSource(
|
|
516
|
+
cluster_arn=cluster_arn,
|
|
517
|
+
topic=topic,
|
|
518
|
+
starting_position=lambda_.StartingPosition.TRIM_HORIZON,
|
|
519
|
+
provisioned_poller_config=ProvisionedPollerConfig(
|
|
520
|
+
minimum_pollers=1,
|
|
521
|
+
maximum_pollers=3
|
|
522
|
+
),
|
|
523
|
+
schema_registry_config=GlueSchemaRegistry(
|
|
524
|
+
schema_registry=glue_registry,
|
|
525
|
+
event_record_format=lambda_.EventRecordFormat.JSON,
|
|
526
|
+
schema_validation_configs=[lambda.KafkaSchemaValidationConfig(attribute=lambda_.KafkaSchemaValidationAttribute.KEY)]
|
|
527
|
+
)
|
|
528
|
+
))
|
|
529
|
+
```
|
|
530
|
+
|
|
461
531
|
## Roadmap
|
|
462
532
|
|
|
463
533
|
Eventually, this module will support all the event sources described under
|
|
@@ -513,19 +583,26 @@ from ..aws_ec2 import (
|
|
|
513
583
|
IVpc as _IVpc_f30d5663,
|
|
514
584
|
SubnetSelection as _SubnetSelection_e57d76df,
|
|
515
585
|
)
|
|
586
|
+
from ..aws_glue import CfnRegistry as _CfnRegistry_23d07cb1
|
|
516
587
|
from ..aws_kinesis import (
|
|
517
588
|
IStream as _IStream_4e2457d2, IStreamConsumer as _IStreamConsumer_019d062e
|
|
518
589
|
)
|
|
519
590
|
from ..aws_kms import IKey as _IKey_5f11635f
|
|
520
591
|
from ..aws_lambda import (
|
|
521
592
|
DlqDestinationConfig as _DlqDestinationConfig_5fe54cfa,
|
|
593
|
+
EventRecordFormat as _EventRecordFormat_5b272ecb,
|
|
522
594
|
EventSourceMappingOptions as _EventSourceMappingOptions_b3f2bb85,
|
|
523
595
|
IEventSource as _IEventSource_3686b3f8,
|
|
524
596
|
IEventSourceDlq as _IEventSourceDlq_5e2c6ad9,
|
|
525
597
|
IEventSourceMapping as _IEventSourceMapping_e216064e,
|
|
526
598
|
IFunction as _IFunction_6adb0ab8,
|
|
599
|
+
ISchemaRegistry as _ISchemaRegistry_7e66a87f,
|
|
600
|
+
KafkaSchemaRegistryAccessConfigType as _KafkaSchemaRegistryAccessConfigType_54686f72,
|
|
601
|
+
KafkaSchemaRegistryConfig as _KafkaSchemaRegistryConfig_6ad4a035,
|
|
602
|
+
KafkaSchemaValidationConfig as _KafkaSchemaValidationConfig_7eaaa8d2,
|
|
527
603
|
MetricsConfig as _MetricsConfig_48ab59c4,
|
|
528
604
|
ProvisionedPollerConfig as _ProvisionedPollerConfig_1025e063,
|
|
605
|
+
SchemaRegistryProps as _SchemaRegistryProps_5853aecb,
|
|
529
606
|
SourceAccessConfiguration as _SourceAccessConfiguration_1926ff89,
|
|
530
607
|
StartingPosition as _StartingPosition_c0a4852c,
|
|
531
608
|
)
|
|
@@ -819,6 +896,456 @@ class BaseStreamEventSourceProps:
|
|
|
819
896
|
)
|
|
820
897
|
|
|
821
898
|
|
|
899
|
+
@jsii.implements(_ISchemaRegistry_7e66a87f)
|
|
900
|
+
class ConfluentSchemaRegistry(
|
|
901
|
+
metaclass=jsii.JSIIMeta,
|
|
902
|
+
jsii_type="aws-cdk-lib.aws_lambda_event_sources.ConfluentSchemaRegistry",
|
|
903
|
+
):
|
|
904
|
+
'''Confluent schema registry configuration for a Lambda event source.
|
|
905
|
+
|
|
906
|
+
:exampleMetadata: infused
|
|
907
|
+
|
|
908
|
+
Example::
|
|
909
|
+
|
|
910
|
+
from aws_cdk.aws_lambda_event_sources import ManagedKafkaEventSource, ConfluentSchemaRegistry
|
|
911
|
+
from aws_cdk.aws_secretsmanager import Secret
|
|
912
|
+
|
|
913
|
+
# Your MSK cluster arn
|
|
914
|
+
# cluster_arn: str
|
|
915
|
+
|
|
916
|
+
# my_function: lambda.Function
|
|
917
|
+
|
|
918
|
+
|
|
919
|
+
# The Kafka topic you want to subscribe to
|
|
920
|
+
topic = "some-cool-topic"
|
|
921
|
+
|
|
922
|
+
secret = Secret(self, "Secret", secret_name="AmazonMSK_KafkaSecret")
|
|
923
|
+
my_function.add_event_source(ManagedKafkaEventSource(
|
|
924
|
+
cluster_arn=cluster_arn,
|
|
925
|
+
topic=topic,
|
|
926
|
+
starting_position=lambda_.StartingPosition.TRIM_HORIZON,
|
|
927
|
+
provisioned_poller_config=ProvisionedPollerConfig(
|
|
928
|
+
minimum_pollers=1,
|
|
929
|
+
maximum_pollers=3
|
|
930
|
+
),
|
|
931
|
+
schema_registry_config=ConfluentSchemaRegistry(
|
|
932
|
+
schema_registry_uri="https://example.com",
|
|
933
|
+
event_record_format=lambda_.EventRecordFormat.JSON,
|
|
934
|
+
authentication_type=lambda_.KafkaSchemaRegistryAccessConfigType.BASIC_AUTH,
|
|
935
|
+
secret=secret,
|
|
936
|
+
schema_validation_configs=[lambda.KafkaSchemaValidationConfig(attribute=lambda_.KafkaSchemaValidationAttribute.KEY)]
|
|
937
|
+
)
|
|
938
|
+
))
|
|
939
|
+
'''
|
|
940
|
+
|
|
941
|
+
def __init__(
|
|
942
|
+
self,
|
|
943
|
+
*,
|
|
944
|
+
authentication_type: _KafkaSchemaRegistryAccessConfigType_54686f72,
|
|
945
|
+
schema_registry_uri: builtins.str,
|
|
946
|
+
secret: _ISecret_6e020e6a,
|
|
947
|
+
event_record_format: _EventRecordFormat_5b272ecb,
|
|
948
|
+
schema_validation_configs: typing.Sequence[typing.Union[_KafkaSchemaValidationConfig_7eaaa8d2, typing.Dict[builtins.str, typing.Any]]],
|
|
949
|
+
) -> None:
|
|
950
|
+
'''
|
|
951
|
+
:param authentication_type: The type of authentication for schema registry credentials. Default: none
|
|
952
|
+
:param schema_registry_uri: The URI for your schema registry. Default: - none
|
|
953
|
+
:param secret: The secret with the schema registry credentials. Default: none
|
|
954
|
+
:param event_record_format: The record format that Lambda delivers to your function after schema validation. - Choose JSON to have Lambda deliver the record to your function as a standard JSON object. - Choose SOURCE to have Lambda deliver the record to your function in its original source format. Lambda removes all schema metadata, such as the schema ID, before sending the record to your function. Default: - none
|
|
955
|
+
:param schema_validation_configs: An array of schema validation configuration objects, which tell Lambda the message attributes you want to validate and filter using your schema registry. Default: - none
|
|
956
|
+
'''
|
|
957
|
+
props = ConfluentSchemaRegistryProps(
|
|
958
|
+
authentication_type=authentication_type,
|
|
959
|
+
schema_registry_uri=schema_registry_uri,
|
|
960
|
+
secret=secret,
|
|
961
|
+
event_record_format=event_record_format,
|
|
962
|
+
schema_validation_configs=schema_validation_configs,
|
|
963
|
+
)
|
|
964
|
+
|
|
965
|
+
jsii.create(self.__class__, self, [props])
|
|
966
|
+
|
|
967
|
+
@jsii.member(jsii_name="bind")
|
|
968
|
+
def bind(
|
|
969
|
+
self,
|
|
970
|
+
_target: _IEventSourceMapping_e216064e,
|
|
971
|
+
target_handler: _IFunction_6adb0ab8,
|
|
972
|
+
) -> _KafkaSchemaRegistryConfig_6ad4a035:
|
|
973
|
+
'''Returns a schema registry configuration.
|
|
974
|
+
|
|
975
|
+
:param _target: -
|
|
976
|
+
:param target_handler: -
|
|
977
|
+
'''
|
|
978
|
+
if __debug__:
|
|
979
|
+
type_hints = typing.get_type_hints(_typecheckingstub__8d5348f9a76f1dae8737185acaa12cdb48a690a1caca1d80c53f519d99022ff3)
|
|
980
|
+
check_type(argname="argument _target", value=_target, expected_type=type_hints["_target"])
|
|
981
|
+
check_type(argname="argument target_handler", value=target_handler, expected_type=type_hints["target_handler"])
|
|
982
|
+
return typing.cast(_KafkaSchemaRegistryConfig_6ad4a035, jsii.invoke(self, "bind", [_target, target_handler]))
|
|
983
|
+
|
|
984
|
+
|
|
985
|
+
@jsii.data_type(
|
|
986
|
+
jsii_type="aws-cdk-lib.aws_lambda_event_sources.ConfluentSchemaRegistryProps",
|
|
987
|
+
jsii_struct_bases=[_SchemaRegistryProps_5853aecb],
|
|
988
|
+
name_mapping={
|
|
989
|
+
"event_record_format": "eventRecordFormat",
|
|
990
|
+
"schema_validation_configs": "schemaValidationConfigs",
|
|
991
|
+
"authentication_type": "authenticationType",
|
|
992
|
+
"schema_registry_uri": "schemaRegistryUri",
|
|
993
|
+
"secret": "secret",
|
|
994
|
+
},
|
|
995
|
+
)
|
|
996
|
+
class ConfluentSchemaRegistryProps(_SchemaRegistryProps_5853aecb):
|
|
997
|
+
def __init__(
|
|
998
|
+
self,
|
|
999
|
+
*,
|
|
1000
|
+
event_record_format: _EventRecordFormat_5b272ecb,
|
|
1001
|
+
schema_validation_configs: typing.Sequence[typing.Union[_KafkaSchemaValidationConfig_7eaaa8d2, typing.Dict[builtins.str, typing.Any]]],
|
|
1002
|
+
authentication_type: _KafkaSchemaRegistryAccessConfigType_54686f72,
|
|
1003
|
+
schema_registry_uri: builtins.str,
|
|
1004
|
+
secret: _ISecret_6e020e6a,
|
|
1005
|
+
) -> None:
|
|
1006
|
+
'''Properties for confluent schema registry configuration.
|
|
1007
|
+
|
|
1008
|
+
:param event_record_format: The record format that Lambda delivers to your function after schema validation. - Choose JSON to have Lambda deliver the record to your function as a standard JSON object. - Choose SOURCE to have Lambda deliver the record to your function in its original source format. Lambda removes all schema metadata, such as the schema ID, before sending the record to your function. Default: - none
|
|
1009
|
+
:param schema_validation_configs: An array of schema validation configuration objects, which tell Lambda the message attributes you want to validate and filter using your schema registry. Default: - none
|
|
1010
|
+
:param authentication_type: The type of authentication for schema registry credentials. Default: none
|
|
1011
|
+
:param schema_registry_uri: The URI for your schema registry. Default: - none
|
|
1012
|
+
:param secret: The secret with the schema registry credentials. Default: none
|
|
1013
|
+
|
|
1014
|
+
:exampleMetadata: infused
|
|
1015
|
+
|
|
1016
|
+
Example::
|
|
1017
|
+
|
|
1018
|
+
from aws_cdk.aws_lambda_event_sources import ManagedKafkaEventSource, ConfluentSchemaRegistry
|
|
1019
|
+
from aws_cdk.aws_secretsmanager import Secret
|
|
1020
|
+
|
|
1021
|
+
# Your MSK cluster arn
|
|
1022
|
+
# cluster_arn: str
|
|
1023
|
+
|
|
1024
|
+
# my_function: lambda.Function
|
|
1025
|
+
|
|
1026
|
+
|
|
1027
|
+
# The Kafka topic you want to subscribe to
|
|
1028
|
+
topic = "some-cool-topic"
|
|
1029
|
+
|
|
1030
|
+
secret = Secret(self, "Secret", secret_name="AmazonMSK_KafkaSecret")
|
|
1031
|
+
my_function.add_event_source(ManagedKafkaEventSource(
|
|
1032
|
+
cluster_arn=cluster_arn,
|
|
1033
|
+
topic=topic,
|
|
1034
|
+
starting_position=lambda_.StartingPosition.TRIM_HORIZON,
|
|
1035
|
+
provisioned_poller_config=ProvisionedPollerConfig(
|
|
1036
|
+
minimum_pollers=1,
|
|
1037
|
+
maximum_pollers=3
|
|
1038
|
+
),
|
|
1039
|
+
schema_registry_config=ConfluentSchemaRegistry(
|
|
1040
|
+
schema_registry_uri="https://example.com",
|
|
1041
|
+
event_record_format=lambda_.EventRecordFormat.JSON,
|
|
1042
|
+
authentication_type=lambda_.KafkaSchemaRegistryAccessConfigType.BASIC_AUTH,
|
|
1043
|
+
secret=secret,
|
|
1044
|
+
schema_validation_configs=[lambda.KafkaSchemaValidationConfig(attribute=lambda_.KafkaSchemaValidationAttribute.KEY)]
|
|
1045
|
+
)
|
|
1046
|
+
))
|
|
1047
|
+
'''
|
|
1048
|
+
if __debug__:
|
|
1049
|
+
type_hints = typing.get_type_hints(_typecheckingstub__36f67243dd281feefa4647d16ee5dc8642b3a682693696a34e35158c0168d3c6)
|
|
1050
|
+
check_type(argname="argument event_record_format", value=event_record_format, expected_type=type_hints["event_record_format"])
|
|
1051
|
+
check_type(argname="argument schema_validation_configs", value=schema_validation_configs, expected_type=type_hints["schema_validation_configs"])
|
|
1052
|
+
check_type(argname="argument authentication_type", value=authentication_type, expected_type=type_hints["authentication_type"])
|
|
1053
|
+
check_type(argname="argument schema_registry_uri", value=schema_registry_uri, expected_type=type_hints["schema_registry_uri"])
|
|
1054
|
+
check_type(argname="argument secret", value=secret, expected_type=type_hints["secret"])
|
|
1055
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
1056
|
+
"event_record_format": event_record_format,
|
|
1057
|
+
"schema_validation_configs": schema_validation_configs,
|
|
1058
|
+
"authentication_type": authentication_type,
|
|
1059
|
+
"schema_registry_uri": schema_registry_uri,
|
|
1060
|
+
"secret": secret,
|
|
1061
|
+
}
|
|
1062
|
+
|
|
1063
|
+
@builtins.property
|
|
1064
|
+
def event_record_format(self) -> _EventRecordFormat_5b272ecb:
|
|
1065
|
+
'''The record format that Lambda delivers to your function after schema validation.
|
|
1066
|
+
|
|
1067
|
+
- Choose JSON to have Lambda deliver the record to your function as a standard JSON object.
|
|
1068
|
+
- Choose SOURCE to have Lambda deliver the record to your function in its original source format. Lambda removes all schema metadata, such as the schema ID, before sending the record to your function.
|
|
1069
|
+
|
|
1070
|
+
:default: - none
|
|
1071
|
+
'''
|
|
1072
|
+
result = self._values.get("event_record_format")
|
|
1073
|
+
assert result is not None, "Required property 'event_record_format' is missing"
|
|
1074
|
+
return typing.cast(_EventRecordFormat_5b272ecb, result)
|
|
1075
|
+
|
|
1076
|
+
@builtins.property
|
|
1077
|
+
def schema_validation_configs(
|
|
1078
|
+
self,
|
|
1079
|
+
) -> typing.List[_KafkaSchemaValidationConfig_7eaaa8d2]:
|
|
1080
|
+
'''An array of schema validation configuration objects, which tell Lambda the message attributes you want to validate and filter using your schema registry.
|
|
1081
|
+
|
|
1082
|
+
:default: - none
|
|
1083
|
+
'''
|
|
1084
|
+
result = self._values.get("schema_validation_configs")
|
|
1085
|
+
assert result is not None, "Required property 'schema_validation_configs' is missing"
|
|
1086
|
+
return typing.cast(typing.List[_KafkaSchemaValidationConfig_7eaaa8d2], result)
|
|
1087
|
+
|
|
1088
|
+
@builtins.property
|
|
1089
|
+
def authentication_type(self) -> _KafkaSchemaRegistryAccessConfigType_54686f72:
|
|
1090
|
+
'''The type of authentication for schema registry credentials.
|
|
1091
|
+
|
|
1092
|
+
:default: none
|
|
1093
|
+
'''
|
|
1094
|
+
result = self._values.get("authentication_type")
|
|
1095
|
+
assert result is not None, "Required property 'authentication_type' is missing"
|
|
1096
|
+
return typing.cast(_KafkaSchemaRegistryAccessConfigType_54686f72, result)
|
|
1097
|
+
|
|
1098
|
+
@builtins.property
|
|
1099
|
+
def schema_registry_uri(self) -> builtins.str:
|
|
1100
|
+
'''The URI for your schema registry.
|
|
1101
|
+
|
|
1102
|
+
:default: - none
|
|
1103
|
+
'''
|
|
1104
|
+
result = self._values.get("schema_registry_uri")
|
|
1105
|
+
assert result is not None, "Required property 'schema_registry_uri' is missing"
|
|
1106
|
+
return typing.cast(builtins.str, result)
|
|
1107
|
+
|
|
1108
|
+
@builtins.property
|
|
1109
|
+
def secret(self) -> _ISecret_6e020e6a:
|
|
1110
|
+
'''The secret with the schema registry credentials.
|
|
1111
|
+
|
|
1112
|
+
:default: none
|
|
1113
|
+
'''
|
|
1114
|
+
result = self._values.get("secret")
|
|
1115
|
+
assert result is not None, "Required property 'secret' is missing"
|
|
1116
|
+
return typing.cast(_ISecret_6e020e6a, result)
|
|
1117
|
+
|
|
1118
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
1119
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
1120
|
+
|
|
1121
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
1122
|
+
return not (rhs == self)
|
|
1123
|
+
|
|
1124
|
+
def __repr__(self) -> str:
|
|
1125
|
+
return "ConfluentSchemaRegistryProps(%s)" % ", ".join(
|
|
1126
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
1127
|
+
)
|
|
1128
|
+
|
|
1129
|
+
|
|
1130
|
+
@jsii.implements(_ISchemaRegistry_7e66a87f)
|
|
1131
|
+
class GlueSchemaRegistry(
|
|
1132
|
+
metaclass=jsii.JSIIMeta,
|
|
1133
|
+
jsii_type="aws-cdk-lib.aws_lambda_event_sources.GlueSchemaRegistry",
|
|
1134
|
+
):
|
|
1135
|
+
'''Glue schema registry configuration for a Lambda event source.
|
|
1136
|
+
|
|
1137
|
+
:exampleMetadata: infused
|
|
1138
|
+
|
|
1139
|
+
Example::
|
|
1140
|
+
|
|
1141
|
+
from aws_cdk.aws_glue import CfnRegistry
|
|
1142
|
+
from aws_cdk.aws_lambda_event_sources import ManagedKafkaEventSource, GlueSchemaRegistry
|
|
1143
|
+
|
|
1144
|
+
# Your MSK cluster arn
|
|
1145
|
+
# cluster_arn: str
|
|
1146
|
+
|
|
1147
|
+
# my_function: lambda.Function
|
|
1148
|
+
|
|
1149
|
+
|
|
1150
|
+
# The Kafka topic you want to subscribe to
|
|
1151
|
+
topic = "some-cool-topic"
|
|
1152
|
+
|
|
1153
|
+
# Your Glue Schema Registry
|
|
1154
|
+
glue_registry = CfnRegistry(self, "Registry",
|
|
1155
|
+
name="schema-registry",
|
|
1156
|
+
description="Schema registry for event source"
|
|
1157
|
+
)
|
|
1158
|
+
my_function.add_event_source(ManagedKafkaEventSource(
|
|
1159
|
+
cluster_arn=cluster_arn,
|
|
1160
|
+
topic=topic,
|
|
1161
|
+
starting_position=lambda_.StartingPosition.TRIM_HORIZON,
|
|
1162
|
+
provisioned_poller_config=ProvisionedPollerConfig(
|
|
1163
|
+
minimum_pollers=1,
|
|
1164
|
+
maximum_pollers=3
|
|
1165
|
+
),
|
|
1166
|
+
schema_registry_config=GlueSchemaRegistry(
|
|
1167
|
+
schema_registry=glue_registry,
|
|
1168
|
+
event_record_format=lambda_.EventRecordFormat.JSON,
|
|
1169
|
+
schema_validation_configs=[lambda.KafkaSchemaValidationConfig(attribute=lambda_.KafkaSchemaValidationAttribute.KEY)]
|
|
1170
|
+
)
|
|
1171
|
+
))
|
|
1172
|
+
'''
|
|
1173
|
+
|
|
1174
|
+
def __init__(
|
|
1175
|
+
self,
|
|
1176
|
+
*,
|
|
1177
|
+
schema_registry: typing.Optional[_CfnRegistry_23d07cb1] = None,
|
|
1178
|
+
schema_registry_arn: typing.Optional[builtins.str] = None,
|
|
1179
|
+
event_record_format: _EventRecordFormat_5b272ecb,
|
|
1180
|
+
schema_validation_configs: typing.Sequence[typing.Union[_KafkaSchemaValidationConfig_7eaaa8d2, typing.Dict[builtins.str, typing.Any]]],
|
|
1181
|
+
) -> None:
|
|
1182
|
+
'''
|
|
1183
|
+
:param schema_registry: The CfnRegistry reference of your glue schema registry. If used, schemaRegistryArn will be ignored. Default: - none
|
|
1184
|
+
:param schema_registry_arn: The Arn of your glue schema registry. Default: - none
|
|
1185
|
+
:param event_record_format: The record format that Lambda delivers to your function after schema validation. - Choose JSON to have Lambda deliver the record to your function as a standard JSON object. - Choose SOURCE to have Lambda deliver the record to your function in its original source format. Lambda removes all schema metadata, such as the schema ID, before sending the record to your function. Default: - none
|
|
1186
|
+
:param schema_validation_configs: An array of schema validation configuration objects, which tell Lambda the message attributes you want to validate and filter using your schema registry. Default: - none
|
|
1187
|
+
'''
|
|
1188
|
+
props = GlueSchemaRegistryProps(
|
|
1189
|
+
schema_registry=schema_registry,
|
|
1190
|
+
schema_registry_arn=schema_registry_arn,
|
|
1191
|
+
event_record_format=event_record_format,
|
|
1192
|
+
schema_validation_configs=schema_validation_configs,
|
|
1193
|
+
)
|
|
1194
|
+
|
|
1195
|
+
jsii.create(self.__class__, self, [props])
|
|
1196
|
+
|
|
1197
|
+
@jsii.member(jsii_name="bind")
|
|
1198
|
+
def bind(
|
|
1199
|
+
self,
|
|
1200
|
+
_target: _IEventSourceMapping_e216064e,
|
|
1201
|
+
target_handler: _IFunction_6adb0ab8,
|
|
1202
|
+
) -> _KafkaSchemaRegistryConfig_6ad4a035:
|
|
1203
|
+
'''Returns a schema registry configuration.
|
|
1204
|
+
|
|
1205
|
+
:param _target: -
|
|
1206
|
+
:param target_handler: -
|
|
1207
|
+
'''
|
|
1208
|
+
if __debug__:
|
|
1209
|
+
type_hints = typing.get_type_hints(_typecheckingstub__d5de9e032f7783cc4e1549b6e5a3006224e69e981247337c42785778236be680)
|
|
1210
|
+
check_type(argname="argument _target", value=_target, expected_type=type_hints["_target"])
|
|
1211
|
+
check_type(argname="argument target_handler", value=target_handler, expected_type=type_hints["target_handler"])
|
|
1212
|
+
return typing.cast(_KafkaSchemaRegistryConfig_6ad4a035, jsii.invoke(self, "bind", [_target, target_handler]))
|
|
1213
|
+
|
|
1214
|
+
|
|
1215
|
+
@jsii.data_type(
|
|
1216
|
+
jsii_type="aws-cdk-lib.aws_lambda_event_sources.GlueSchemaRegistryProps",
|
|
1217
|
+
jsii_struct_bases=[_SchemaRegistryProps_5853aecb],
|
|
1218
|
+
name_mapping={
|
|
1219
|
+
"event_record_format": "eventRecordFormat",
|
|
1220
|
+
"schema_validation_configs": "schemaValidationConfigs",
|
|
1221
|
+
"schema_registry": "schemaRegistry",
|
|
1222
|
+
"schema_registry_arn": "schemaRegistryArn",
|
|
1223
|
+
},
|
|
1224
|
+
)
|
|
1225
|
+
class GlueSchemaRegistryProps(_SchemaRegistryProps_5853aecb):
|
|
1226
|
+
def __init__(
|
|
1227
|
+
self,
|
|
1228
|
+
*,
|
|
1229
|
+
event_record_format: _EventRecordFormat_5b272ecb,
|
|
1230
|
+
schema_validation_configs: typing.Sequence[typing.Union[_KafkaSchemaValidationConfig_7eaaa8d2, typing.Dict[builtins.str, typing.Any]]],
|
|
1231
|
+
schema_registry: typing.Optional[_CfnRegistry_23d07cb1] = None,
|
|
1232
|
+
schema_registry_arn: typing.Optional[builtins.str] = None,
|
|
1233
|
+
) -> None:
|
|
1234
|
+
'''Properties for glue schema registry configuration.
|
|
1235
|
+
|
|
1236
|
+
:param event_record_format: The record format that Lambda delivers to your function after schema validation. - Choose JSON to have Lambda deliver the record to your function as a standard JSON object. - Choose SOURCE to have Lambda deliver the record to your function in its original source format. Lambda removes all schema metadata, such as the schema ID, before sending the record to your function. Default: - none
|
|
1237
|
+
:param schema_validation_configs: An array of schema validation configuration objects, which tell Lambda the message attributes you want to validate and filter using your schema registry. Default: - none
|
|
1238
|
+
:param schema_registry: The CfnRegistry reference of your glue schema registry. If used, schemaRegistryArn will be ignored. Default: - none
|
|
1239
|
+
:param schema_registry_arn: The Arn of your glue schema registry. Default: - none
|
|
1240
|
+
|
|
1241
|
+
:exampleMetadata: infused
|
|
1242
|
+
|
|
1243
|
+
Example::
|
|
1244
|
+
|
|
1245
|
+
from aws_cdk.aws_glue import CfnRegistry
|
|
1246
|
+
from aws_cdk.aws_lambda_event_sources import ManagedKafkaEventSource, GlueSchemaRegistry
|
|
1247
|
+
|
|
1248
|
+
# Your MSK cluster arn
|
|
1249
|
+
# cluster_arn: str
|
|
1250
|
+
|
|
1251
|
+
# my_function: lambda.Function
|
|
1252
|
+
|
|
1253
|
+
|
|
1254
|
+
# The Kafka topic you want to subscribe to
|
|
1255
|
+
topic = "some-cool-topic"
|
|
1256
|
+
|
|
1257
|
+
# Your Glue Schema Registry
|
|
1258
|
+
glue_registry = CfnRegistry(self, "Registry",
|
|
1259
|
+
name="schema-registry",
|
|
1260
|
+
description="Schema registry for event source"
|
|
1261
|
+
)
|
|
1262
|
+
my_function.add_event_source(ManagedKafkaEventSource(
|
|
1263
|
+
cluster_arn=cluster_arn,
|
|
1264
|
+
topic=topic,
|
|
1265
|
+
starting_position=lambda_.StartingPosition.TRIM_HORIZON,
|
|
1266
|
+
provisioned_poller_config=ProvisionedPollerConfig(
|
|
1267
|
+
minimum_pollers=1,
|
|
1268
|
+
maximum_pollers=3
|
|
1269
|
+
),
|
|
1270
|
+
schema_registry_config=GlueSchemaRegistry(
|
|
1271
|
+
schema_registry=glue_registry,
|
|
1272
|
+
event_record_format=lambda_.EventRecordFormat.JSON,
|
|
1273
|
+
schema_validation_configs=[lambda.KafkaSchemaValidationConfig(attribute=lambda_.KafkaSchemaValidationAttribute.KEY)]
|
|
1274
|
+
)
|
|
1275
|
+
))
|
|
1276
|
+
'''
|
|
1277
|
+
if __debug__:
|
|
1278
|
+
type_hints = typing.get_type_hints(_typecheckingstub__fd8b6d63d7be96242ad14075f80e7d59f499d7f1727317cfae98da93e20e8a83)
|
|
1279
|
+
check_type(argname="argument event_record_format", value=event_record_format, expected_type=type_hints["event_record_format"])
|
|
1280
|
+
check_type(argname="argument schema_validation_configs", value=schema_validation_configs, expected_type=type_hints["schema_validation_configs"])
|
|
1281
|
+
check_type(argname="argument schema_registry", value=schema_registry, expected_type=type_hints["schema_registry"])
|
|
1282
|
+
check_type(argname="argument schema_registry_arn", value=schema_registry_arn, expected_type=type_hints["schema_registry_arn"])
|
|
1283
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
1284
|
+
"event_record_format": event_record_format,
|
|
1285
|
+
"schema_validation_configs": schema_validation_configs,
|
|
1286
|
+
}
|
|
1287
|
+
if schema_registry is not None:
|
|
1288
|
+
self._values["schema_registry"] = schema_registry
|
|
1289
|
+
if schema_registry_arn is not None:
|
|
1290
|
+
self._values["schema_registry_arn"] = schema_registry_arn
|
|
1291
|
+
|
|
1292
|
+
@builtins.property
|
|
1293
|
+
def event_record_format(self) -> _EventRecordFormat_5b272ecb:
|
|
1294
|
+
'''The record format that Lambda delivers to your function after schema validation.
|
|
1295
|
+
|
|
1296
|
+
- Choose JSON to have Lambda deliver the record to your function as a standard JSON object.
|
|
1297
|
+
- Choose SOURCE to have Lambda deliver the record to your function in its original source format. Lambda removes all schema metadata, such as the schema ID, before sending the record to your function.
|
|
1298
|
+
|
|
1299
|
+
:default: - none
|
|
1300
|
+
'''
|
|
1301
|
+
result = self._values.get("event_record_format")
|
|
1302
|
+
assert result is not None, "Required property 'event_record_format' is missing"
|
|
1303
|
+
return typing.cast(_EventRecordFormat_5b272ecb, result)
|
|
1304
|
+
|
|
1305
|
+
@builtins.property
|
|
1306
|
+
def schema_validation_configs(
|
|
1307
|
+
self,
|
|
1308
|
+
) -> typing.List[_KafkaSchemaValidationConfig_7eaaa8d2]:
|
|
1309
|
+
'''An array of schema validation configuration objects, which tell Lambda the message attributes you want to validate and filter using your schema registry.
|
|
1310
|
+
|
|
1311
|
+
:default: - none
|
|
1312
|
+
'''
|
|
1313
|
+
result = self._values.get("schema_validation_configs")
|
|
1314
|
+
assert result is not None, "Required property 'schema_validation_configs' is missing"
|
|
1315
|
+
return typing.cast(typing.List[_KafkaSchemaValidationConfig_7eaaa8d2], result)
|
|
1316
|
+
|
|
1317
|
+
@builtins.property
|
|
1318
|
+
def schema_registry(self) -> typing.Optional[_CfnRegistry_23d07cb1]:
|
|
1319
|
+
'''The CfnRegistry reference of your glue schema registry.
|
|
1320
|
+
|
|
1321
|
+
If used, schemaRegistryArn will be ignored.
|
|
1322
|
+
|
|
1323
|
+
:default: - none
|
|
1324
|
+
'''
|
|
1325
|
+
result = self._values.get("schema_registry")
|
|
1326
|
+
return typing.cast(typing.Optional[_CfnRegistry_23d07cb1], result)
|
|
1327
|
+
|
|
1328
|
+
@builtins.property
|
|
1329
|
+
def schema_registry_arn(self) -> typing.Optional[builtins.str]:
|
|
1330
|
+
'''The Arn of your glue schema registry.
|
|
1331
|
+
|
|
1332
|
+
:default: - none
|
|
1333
|
+
'''
|
|
1334
|
+
result = self._values.get("schema_registry_arn")
|
|
1335
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
1336
|
+
|
|
1337
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
1338
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
1339
|
+
|
|
1340
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
1341
|
+
return not (rhs == self)
|
|
1342
|
+
|
|
1343
|
+
def __repr__(self) -> str:
|
|
1344
|
+
return "GlueSchemaRegistryProps(%s)" % ", ".join(
|
|
1345
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
1346
|
+
)
|
|
1347
|
+
|
|
1348
|
+
|
|
822
1349
|
@jsii.data_type(
|
|
823
1350
|
jsii_type="aws-cdk-lib.aws_lambda_event_sources.KafkaEventSourceProps",
|
|
824
1351
|
jsii_struct_bases=[BaseStreamEventSourceProps],
|
|
@@ -833,6 +1360,7 @@ class BaseStreamEventSourceProps:
|
|
|
833
1360
|
"filter_encryption": "filterEncryption",
|
|
834
1361
|
"filters": "filters",
|
|
835
1362
|
"on_failure": "onFailure",
|
|
1363
|
+
"schema_registry_config": "schemaRegistryConfig",
|
|
836
1364
|
"secret": "secret",
|
|
837
1365
|
"starting_position_timestamp": "startingPositionTimestamp",
|
|
838
1366
|
},
|
|
@@ -851,6 +1379,7 @@ class KafkaEventSourceProps(BaseStreamEventSourceProps):
|
|
|
851
1379
|
filter_encryption: typing.Optional[_IKey_5f11635f] = None,
|
|
852
1380
|
filters: typing.Optional[typing.Sequence[typing.Mapping[builtins.str, typing.Any]]] = None,
|
|
853
1381
|
on_failure: typing.Optional[_IEventSourceDlq_5e2c6ad9] = None,
|
|
1382
|
+
schema_registry_config: typing.Optional[_ISchemaRegistry_7e66a87f] = None,
|
|
854
1383
|
secret: typing.Optional[_ISecret_6e020e6a] = None,
|
|
855
1384
|
starting_position_timestamp: typing.Optional[jsii.Number] = None,
|
|
856
1385
|
) -> None:
|
|
@@ -866,6 +1395,7 @@ class KafkaEventSourceProps(BaseStreamEventSourceProps):
|
|
|
866
1395
|
:param filter_encryption: Add Customer managed KMS key to encrypt Filter Criteria. Default: - none
|
|
867
1396
|
:param filters: Add filter criteria to Event Source. Default: - none
|
|
868
1397
|
:param on_failure: Add an on Failure Destination for this Kafka event. SNS/SQS/S3 are supported Default: - discarded records are ignored
|
|
1398
|
+
:param schema_registry_config: Specific configuration settings for a Kafka schema registry. Default: - none
|
|
869
1399
|
:param secret: The secret with the Kafka credentials, see https://docs.aws.amazon.com/msk/latest/developerguide/msk-password.html for details This field is required if your Kafka brokers are accessed over the Internet. Default: none
|
|
870
1400
|
:param starting_position_timestamp: The time from which to start reading, in Unix time seconds. Default: - no timestamp
|
|
871
1401
|
|
|
@@ -884,6 +1414,7 @@ class KafkaEventSourceProps(BaseStreamEventSourceProps):
|
|
|
884
1414
|
# event_source_dlq: lambda.IEventSourceDlq
|
|
885
1415
|
# filters: Any
|
|
886
1416
|
# key: kms.Key
|
|
1417
|
+
# schema_registry: lambda.ISchemaRegistry
|
|
887
1418
|
# secret: secretsmanager.Secret
|
|
888
1419
|
|
|
889
1420
|
kafka_event_source_props = lambda_event_sources.KafkaEventSourceProps(
|
|
@@ -904,6 +1435,7 @@ class KafkaEventSourceProps(BaseStreamEventSourceProps):
|
|
|
904
1435
|
maximum_pollers=123,
|
|
905
1436
|
minimum_pollers=123
|
|
906
1437
|
),
|
|
1438
|
+
schema_registry_config=schema_registry,
|
|
907
1439
|
secret=secret,
|
|
908
1440
|
starting_position_timestamp=123
|
|
909
1441
|
)
|
|
@@ -922,6 +1454,7 @@ class KafkaEventSourceProps(BaseStreamEventSourceProps):
|
|
|
922
1454
|
check_type(argname="argument filter_encryption", value=filter_encryption, expected_type=type_hints["filter_encryption"])
|
|
923
1455
|
check_type(argname="argument filters", value=filters, expected_type=type_hints["filters"])
|
|
924
1456
|
check_type(argname="argument on_failure", value=on_failure, expected_type=type_hints["on_failure"])
|
|
1457
|
+
check_type(argname="argument schema_registry_config", value=schema_registry_config, expected_type=type_hints["schema_registry_config"])
|
|
925
1458
|
check_type(argname="argument secret", value=secret, expected_type=type_hints["secret"])
|
|
926
1459
|
check_type(argname="argument starting_position_timestamp", value=starting_position_timestamp, expected_type=type_hints["starting_position_timestamp"])
|
|
927
1460
|
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
@@ -944,6 +1477,8 @@ class KafkaEventSourceProps(BaseStreamEventSourceProps):
|
|
|
944
1477
|
self._values["filters"] = filters
|
|
945
1478
|
if on_failure is not None:
|
|
946
1479
|
self._values["on_failure"] = on_failure
|
|
1480
|
+
if schema_registry_config is not None:
|
|
1481
|
+
self._values["schema_registry_config"] = schema_registry_config
|
|
947
1482
|
if secret is not None:
|
|
948
1483
|
self._values["secret"] = secret
|
|
949
1484
|
if starting_position_timestamp is not None:
|
|
@@ -1065,6 +1600,15 @@ class KafkaEventSourceProps(BaseStreamEventSourceProps):
|
|
|
1065
1600
|
result = self._values.get("on_failure")
|
|
1066
1601
|
return typing.cast(typing.Optional[_IEventSourceDlq_5e2c6ad9], result)
|
|
1067
1602
|
|
|
1603
|
+
@builtins.property
|
|
1604
|
+
def schema_registry_config(self) -> typing.Optional[_ISchemaRegistry_7e66a87f]:
|
|
1605
|
+
'''Specific configuration settings for a Kafka schema registry.
|
|
1606
|
+
|
|
1607
|
+
:default: - none
|
|
1608
|
+
'''
|
|
1609
|
+
result = self._values.get("schema_registry_config")
|
|
1610
|
+
return typing.cast(typing.Optional[_ISchemaRegistry_7e66a87f], result)
|
|
1611
|
+
|
|
1068
1612
|
@builtins.property
|
|
1069
1613
|
def secret(self) -> typing.Optional[_ISecret_6e020e6a]:
|
|
1070
1614
|
'''The secret with the Kafka credentials, see https://docs.aws.amazon.com/msk/latest/developerguide/msk-password.html for details This field is required if your Kafka brokers are accessed over the Internet.
|
|
@@ -1109,6 +1653,7 @@ class KafkaEventSourceProps(BaseStreamEventSourceProps):
|
|
|
1109
1653
|
"filter_encryption": "filterEncryption",
|
|
1110
1654
|
"filters": "filters",
|
|
1111
1655
|
"on_failure": "onFailure",
|
|
1656
|
+
"schema_registry_config": "schemaRegistryConfig",
|
|
1112
1657
|
"secret": "secret",
|
|
1113
1658
|
"starting_position_timestamp": "startingPositionTimestamp",
|
|
1114
1659
|
"cluster_arn": "clusterArn",
|
|
@@ -1128,6 +1673,7 @@ class ManagedKafkaEventSourceProps(KafkaEventSourceProps):
|
|
|
1128
1673
|
filter_encryption: typing.Optional[_IKey_5f11635f] = None,
|
|
1129
1674
|
filters: typing.Optional[typing.Sequence[typing.Mapping[builtins.str, typing.Any]]] = None,
|
|
1130
1675
|
on_failure: typing.Optional[_IEventSourceDlq_5e2c6ad9] = None,
|
|
1676
|
+
schema_registry_config: typing.Optional[_ISchemaRegistry_7e66a87f] = None,
|
|
1131
1677
|
secret: typing.Optional[_ISecret_6e020e6a] = None,
|
|
1132
1678
|
starting_position_timestamp: typing.Optional[jsii.Number] = None,
|
|
1133
1679
|
cluster_arn: builtins.str,
|
|
@@ -1144,6 +1690,7 @@ class ManagedKafkaEventSourceProps(KafkaEventSourceProps):
|
|
|
1144
1690
|
:param filter_encryption: Add Customer managed KMS key to encrypt Filter Criteria. Default: - none
|
|
1145
1691
|
:param filters: Add filter criteria to Event Source. Default: - none
|
|
1146
1692
|
:param on_failure: Add an on Failure Destination for this Kafka event. SNS/SQS/S3 are supported Default: - discarded records are ignored
|
|
1693
|
+
:param schema_registry_config: Specific configuration settings for a Kafka schema registry. Default: - none
|
|
1147
1694
|
:param secret: The secret with the Kafka credentials, see https://docs.aws.amazon.com/msk/latest/developerguide/msk-password.html for details This field is required if your Kafka brokers are accessed over the Internet. Default: none
|
|
1148
1695
|
:param starting_position_timestamp: The time from which to start reading, in Unix time seconds. Default: - no timestamp
|
|
1149
1696
|
:param cluster_arn: An MSK cluster construct.
|
|
@@ -1189,6 +1736,7 @@ class ManagedKafkaEventSourceProps(KafkaEventSourceProps):
|
|
|
1189
1736
|
check_type(argname="argument filter_encryption", value=filter_encryption, expected_type=type_hints["filter_encryption"])
|
|
1190
1737
|
check_type(argname="argument filters", value=filters, expected_type=type_hints["filters"])
|
|
1191
1738
|
check_type(argname="argument on_failure", value=on_failure, expected_type=type_hints["on_failure"])
|
|
1739
|
+
check_type(argname="argument schema_registry_config", value=schema_registry_config, expected_type=type_hints["schema_registry_config"])
|
|
1192
1740
|
check_type(argname="argument secret", value=secret, expected_type=type_hints["secret"])
|
|
1193
1741
|
check_type(argname="argument starting_position_timestamp", value=starting_position_timestamp, expected_type=type_hints["starting_position_timestamp"])
|
|
1194
1742
|
check_type(argname="argument cluster_arn", value=cluster_arn, expected_type=type_hints["cluster_arn"])
|
|
@@ -1213,6 +1761,8 @@ class ManagedKafkaEventSourceProps(KafkaEventSourceProps):
|
|
|
1213
1761
|
self._values["filters"] = filters
|
|
1214
1762
|
if on_failure is not None:
|
|
1215
1763
|
self._values["on_failure"] = on_failure
|
|
1764
|
+
if schema_registry_config is not None:
|
|
1765
|
+
self._values["schema_registry_config"] = schema_registry_config
|
|
1216
1766
|
if secret is not None:
|
|
1217
1767
|
self._values["secret"] = secret
|
|
1218
1768
|
if starting_position_timestamp is not None:
|
|
@@ -1334,6 +1884,15 @@ class ManagedKafkaEventSourceProps(KafkaEventSourceProps):
|
|
|
1334
1884
|
result = self._values.get("on_failure")
|
|
1335
1885
|
return typing.cast(typing.Optional[_IEventSourceDlq_5e2c6ad9], result)
|
|
1336
1886
|
|
|
1887
|
+
@builtins.property
|
|
1888
|
+
def schema_registry_config(self) -> typing.Optional[_ISchemaRegistry_7e66a87f]:
|
|
1889
|
+
'''Specific configuration settings for a Kafka schema registry.
|
|
1890
|
+
|
|
1891
|
+
:default: - none
|
|
1892
|
+
'''
|
|
1893
|
+
result = self._values.get("schema_registry_config")
|
|
1894
|
+
return typing.cast(typing.Optional[_ISchemaRegistry_7e66a87f], result)
|
|
1895
|
+
|
|
1337
1896
|
@builtins.property
|
|
1338
1897
|
def secret(self) -> typing.Optional[_ISecret_6e020e6a]:
|
|
1339
1898
|
'''The secret with the Kafka credentials, see https://docs.aws.amazon.com/msk/latest/developerguide/msk-password.html for details This field is required if your Kafka brokers are accessed over the Internet.
|
|
@@ -1395,7 +1954,8 @@ class ProvisionedPollerConfig:
|
|
|
1395
1954
|
|
|
1396
1955
|
Example::
|
|
1397
1956
|
|
|
1398
|
-
from aws_cdk.
|
|
1957
|
+
from aws_cdk.aws_glue import CfnRegistry
|
|
1958
|
+
from aws_cdk.aws_lambda_event_sources import ManagedKafkaEventSource, GlueSchemaRegistry
|
|
1399
1959
|
|
|
1400
1960
|
# Your MSK cluster arn
|
|
1401
1961
|
# cluster_arn: str
|
|
@@ -1405,6 +1965,12 @@ class ProvisionedPollerConfig:
|
|
|
1405
1965
|
|
|
1406
1966
|
# The Kafka topic you want to subscribe to
|
|
1407
1967
|
topic = "some-cool-topic"
|
|
1968
|
+
|
|
1969
|
+
# Your Glue Schema Registry
|
|
1970
|
+
glue_registry = CfnRegistry(self, "Registry",
|
|
1971
|
+
name="schema-registry",
|
|
1972
|
+
description="Schema registry for event source"
|
|
1973
|
+
)
|
|
1408
1974
|
my_function.add_event_source(ManagedKafkaEventSource(
|
|
1409
1975
|
cluster_arn=cluster_arn,
|
|
1410
1976
|
topic=topic,
|
|
@@ -1412,6 +1978,11 @@ class ProvisionedPollerConfig:
|
|
|
1412
1978
|
provisioned_poller_config=ProvisionedPollerConfig(
|
|
1413
1979
|
minimum_pollers=1,
|
|
1414
1980
|
maximum_pollers=3
|
|
1981
|
+
),
|
|
1982
|
+
schema_registry_config=GlueSchemaRegistry(
|
|
1983
|
+
schema_registry=glue_registry,
|
|
1984
|
+
event_record_format=lambda_.EventRecordFormat.JSON,
|
|
1985
|
+
schema_validation_configs=[lambda.KafkaSchemaValidationConfig(attribute=lambda_.KafkaSchemaValidationAttribute.KEY)]
|
|
1415
1986
|
)
|
|
1416
1987
|
))
|
|
1417
1988
|
'''
|
|
@@ -1717,6 +2288,7 @@ class S3OnFailureDestination(
|
|
|
1717
2288
|
"filter_encryption": "filterEncryption",
|
|
1718
2289
|
"filters": "filters",
|
|
1719
2290
|
"on_failure": "onFailure",
|
|
2291
|
+
"schema_registry_config": "schemaRegistryConfig",
|
|
1720
2292
|
"secret": "secret",
|
|
1721
2293
|
"starting_position_timestamp": "startingPositionTimestamp",
|
|
1722
2294
|
"bootstrap_servers": "bootstrapServers",
|
|
@@ -1741,6 +2313,7 @@ class SelfManagedKafkaEventSourceProps(KafkaEventSourceProps):
|
|
|
1741
2313
|
filter_encryption: typing.Optional[_IKey_5f11635f] = None,
|
|
1742
2314
|
filters: typing.Optional[typing.Sequence[typing.Mapping[builtins.str, typing.Any]]] = None,
|
|
1743
2315
|
on_failure: typing.Optional[_IEventSourceDlq_5e2c6ad9] = None,
|
|
2316
|
+
schema_registry_config: typing.Optional[_ISchemaRegistry_7e66a87f] = None,
|
|
1744
2317
|
secret: typing.Optional[_ISecret_6e020e6a] = None,
|
|
1745
2318
|
starting_position_timestamp: typing.Optional[jsii.Number] = None,
|
|
1746
2319
|
bootstrap_servers: typing.Sequence[builtins.str],
|
|
@@ -1764,6 +2337,7 @@ class SelfManagedKafkaEventSourceProps(KafkaEventSourceProps):
|
|
|
1764
2337
|
:param filter_encryption: Add Customer managed KMS key to encrypt Filter Criteria. Default: - none
|
|
1765
2338
|
:param filters: Add filter criteria to Event Source. Default: - none
|
|
1766
2339
|
:param on_failure: Add an on Failure Destination for this Kafka event. SNS/SQS/S3 are supported Default: - discarded records are ignored
|
|
2340
|
+
:param schema_registry_config: Specific configuration settings for a Kafka schema registry. Default: - none
|
|
1767
2341
|
:param secret: The secret with the Kafka credentials, see https://docs.aws.amazon.com/msk/latest/developerguide/msk-password.html for details This field is required if your Kafka brokers are accessed over the Internet. Default: none
|
|
1768
2342
|
:param starting_position_timestamp: The time from which to start reading, in Unix time seconds. Default: - no timestamp
|
|
1769
2343
|
:param bootstrap_servers: The list of host and port pairs that are the addresses of the Kafka brokers in a "bootstrap" Kafka cluster that a Kafka client connects to initially to bootstrap itself. They are in the format ``abc.xyz.com:xxxx``.
|
|
@@ -1819,6 +2393,7 @@ class SelfManagedKafkaEventSourceProps(KafkaEventSourceProps):
|
|
|
1819
2393
|
check_type(argname="argument filter_encryption", value=filter_encryption, expected_type=type_hints["filter_encryption"])
|
|
1820
2394
|
check_type(argname="argument filters", value=filters, expected_type=type_hints["filters"])
|
|
1821
2395
|
check_type(argname="argument on_failure", value=on_failure, expected_type=type_hints["on_failure"])
|
|
2396
|
+
check_type(argname="argument schema_registry_config", value=schema_registry_config, expected_type=type_hints["schema_registry_config"])
|
|
1822
2397
|
check_type(argname="argument secret", value=secret, expected_type=type_hints["secret"])
|
|
1823
2398
|
check_type(argname="argument starting_position_timestamp", value=starting_position_timestamp, expected_type=type_hints["starting_position_timestamp"])
|
|
1824
2399
|
check_type(argname="argument bootstrap_servers", value=bootstrap_servers, expected_type=type_hints["bootstrap_servers"])
|
|
@@ -1848,6 +2423,8 @@ class SelfManagedKafkaEventSourceProps(KafkaEventSourceProps):
|
|
|
1848
2423
|
self._values["filters"] = filters
|
|
1849
2424
|
if on_failure is not None:
|
|
1850
2425
|
self._values["on_failure"] = on_failure
|
|
2426
|
+
if schema_registry_config is not None:
|
|
2427
|
+
self._values["schema_registry_config"] = schema_registry_config
|
|
1851
2428
|
if secret is not None:
|
|
1852
2429
|
self._values["secret"] = secret
|
|
1853
2430
|
if starting_position_timestamp is not None:
|
|
@@ -1979,6 +2556,15 @@ class SelfManagedKafkaEventSourceProps(KafkaEventSourceProps):
|
|
|
1979
2556
|
result = self._values.get("on_failure")
|
|
1980
2557
|
return typing.cast(typing.Optional[_IEventSourceDlq_5e2c6ad9], result)
|
|
1981
2558
|
|
|
2559
|
+
@builtins.property
|
|
2560
|
+
def schema_registry_config(self) -> typing.Optional[_ISchemaRegistry_7e66a87f]:
|
|
2561
|
+
'''Specific configuration settings for a Kafka schema registry.
|
|
2562
|
+
|
|
2563
|
+
:default: - none
|
|
2564
|
+
'''
|
|
2565
|
+
result = self._values.get("schema_registry_config")
|
|
2566
|
+
return typing.cast(typing.Optional[_ISchemaRegistry_7e66a87f], result)
|
|
2567
|
+
|
|
1982
2568
|
@builtins.property
|
|
1983
2569
|
def secret(self) -> typing.Optional[_ISecret_6e020e6a]:
|
|
1984
2570
|
'''The secret with the Kafka credentials, see https://docs.aws.amazon.com/msk/latest/developerguide/msk-password.html for details This field is required if your Kafka brokers are accessed over the Internet.
|
|
@@ -2707,6 +3293,7 @@ class StreamEventSource(
|
|
|
2707
3293
|
provisioned_poller_config: typing.Optional[typing.Union[_ProvisionedPollerConfig_1025e063, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
2708
3294
|
report_batch_item_failures: typing.Optional[builtins.bool] = None,
|
|
2709
3295
|
retry_attempts: typing.Optional[jsii.Number] = None,
|
|
3296
|
+
schema_registry_config: typing.Optional[_ISchemaRegistry_7e66a87f] = None,
|
|
2710
3297
|
source_access_configurations: typing.Optional[typing.Sequence[typing.Union[_SourceAccessConfiguration_1926ff89, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
2711
3298
|
starting_position: typing.Optional[_StartingPosition_c0a4852c] = None,
|
|
2712
3299
|
starting_position_timestamp: typing.Optional[jsii.Number] = None,
|
|
@@ -2732,6 +3319,7 @@ class StreamEventSource(
|
|
|
2732
3319
|
:param provisioned_poller_config: Configuration for provisioned pollers that read from the event source. When specified, allows control over the minimum and maximum number of pollers that can be provisioned to process events from the source. Default: - no provisioned pollers
|
|
2733
3320
|
:param report_batch_item_failures: Allow functions to return partially successful responses for a batch of records. Default: false
|
|
2734
3321
|
:param retry_attempts: The maximum number of times to retry when the function returns an error. Set to ``undefined`` if you want lambda to keep retrying infinitely or until the record expires. Valid Range: - Minimum value of 0 - Maximum value of 10000 Default: - infinite or until the record expires.
|
|
3322
|
+
:param schema_registry_config: Specific configuration settings for a Kafka schema registry. Default: - none
|
|
2735
3323
|
:param source_access_configurations: Specific settings like the authentication protocol or the VPC components to secure access to your event source. Default: - none
|
|
2736
3324
|
:param starting_position: The position in the DynamoDB, Kinesis or MSK stream where AWS Lambda should start reading. Default: - no starting position
|
|
2737
3325
|
:param starting_position_timestamp: The time from which to start reading, in Unix time seconds. Default: - no timestamp
|
|
@@ -2757,6 +3345,7 @@ class StreamEventSource(
|
|
|
2757
3345
|
provisioned_poller_config=provisioned_poller_config,
|
|
2758
3346
|
report_batch_item_failures=report_batch_item_failures,
|
|
2759
3347
|
retry_attempts=retry_attempts,
|
|
3348
|
+
schema_registry_config=schema_registry_config,
|
|
2760
3349
|
source_access_configurations=source_access_configurations,
|
|
2761
3350
|
starting_position=starting_position,
|
|
2762
3351
|
starting_position_timestamp=starting_position_timestamp,
|
|
@@ -4179,6 +4768,7 @@ class ManagedKafkaEventSource(
|
|
|
4179
4768
|
filter_encryption: typing.Optional[_IKey_5f11635f] = None,
|
|
4180
4769
|
filters: typing.Optional[typing.Sequence[typing.Mapping[builtins.str, typing.Any]]] = None,
|
|
4181
4770
|
on_failure: typing.Optional[_IEventSourceDlq_5e2c6ad9] = None,
|
|
4771
|
+
schema_registry_config: typing.Optional[_ISchemaRegistry_7e66a87f] = None,
|
|
4182
4772
|
secret: typing.Optional[_ISecret_6e020e6a] = None,
|
|
4183
4773
|
starting_position_timestamp: typing.Optional[jsii.Number] = None,
|
|
4184
4774
|
starting_position: _StartingPosition_c0a4852c,
|
|
@@ -4194,6 +4784,7 @@ class ManagedKafkaEventSource(
|
|
|
4194
4784
|
:param filter_encryption: Add Customer managed KMS key to encrypt Filter Criteria. Default: - none
|
|
4195
4785
|
:param filters: Add filter criteria to Event Source. Default: - none
|
|
4196
4786
|
:param on_failure: Add an on Failure Destination for this Kafka event. SNS/SQS/S3 are supported Default: - discarded records are ignored
|
|
4787
|
+
:param schema_registry_config: Specific configuration settings for a Kafka schema registry. Default: - none
|
|
4197
4788
|
:param secret: The secret with the Kafka credentials, see https://docs.aws.amazon.com/msk/latest/developerguide/msk-password.html for details This field is required if your Kafka brokers are accessed over the Internet. Default: none
|
|
4198
4789
|
:param starting_position_timestamp: The time from which to start reading, in Unix time seconds. Default: - no timestamp
|
|
4199
4790
|
:param starting_position: Where to begin consuming the stream.
|
|
@@ -4209,6 +4800,7 @@ class ManagedKafkaEventSource(
|
|
|
4209
4800
|
filter_encryption=filter_encryption,
|
|
4210
4801
|
filters=filters,
|
|
4211
4802
|
on_failure=on_failure,
|
|
4803
|
+
schema_registry_config=schema_registry_config,
|
|
4212
4804
|
secret=secret,
|
|
4213
4805
|
starting_position_timestamp=starting_position_timestamp,
|
|
4214
4806
|
starting_position=starting_position,
|
|
@@ -4296,6 +4888,7 @@ class SelfManagedKafkaEventSource(
|
|
|
4296
4888
|
filter_encryption: typing.Optional[_IKey_5f11635f] = None,
|
|
4297
4889
|
filters: typing.Optional[typing.Sequence[typing.Mapping[builtins.str, typing.Any]]] = None,
|
|
4298
4890
|
on_failure: typing.Optional[_IEventSourceDlq_5e2c6ad9] = None,
|
|
4891
|
+
schema_registry_config: typing.Optional[_ISchemaRegistry_7e66a87f] = None,
|
|
4299
4892
|
secret: typing.Optional[_ISecret_6e020e6a] = None,
|
|
4300
4893
|
starting_position_timestamp: typing.Optional[jsii.Number] = None,
|
|
4301
4894
|
starting_position: _StartingPosition_c0a4852c,
|
|
@@ -4316,6 +4909,7 @@ class SelfManagedKafkaEventSource(
|
|
|
4316
4909
|
:param filter_encryption: Add Customer managed KMS key to encrypt Filter Criteria. Default: - none
|
|
4317
4910
|
:param filters: Add filter criteria to Event Source. Default: - none
|
|
4318
4911
|
:param on_failure: Add an on Failure Destination for this Kafka event. SNS/SQS/S3 are supported Default: - discarded records are ignored
|
|
4912
|
+
:param schema_registry_config: Specific configuration settings for a Kafka schema registry. Default: - none
|
|
4319
4913
|
:param secret: The secret with the Kafka credentials, see https://docs.aws.amazon.com/msk/latest/developerguide/msk-password.html for details This field is required if your Kafka brokers are accessed over the Internet. Default: none
|
|
4320
4914
|
:param starting_position_timestamp: The time from which to start reading, in Unix time seconds. Default: - no timestamp
|
|
4321
4915
|
:param starting_position: Where to begin consuming the stream.
|
|
@@ -4336,6 +4930,7 @@ class SelfManagedKafkaEventSource(
|
|
|
4336
4930
|
filter_encryption=filter_encryption,
|
|
4337
4931
|
filters=filters,
|
|
4338
4932
|
on_failure=on_failure,
|
|
4933
|
+
schema_registry_config=schema_registry_config,
|
|
4339
4934
|
secret=secret,
|
|
4340
4935
|
starting_position_timestamp=starting_position_timestamp,
|
|
4341
4936
|
starting_position=starting_position,
|
|
@@ -4363,8 +4958,12 @@ __all__ = [
|
|
|
4363
4958
|
"ApiEventSource",
|
|
4364
4959
|
"AuthenticationMethod",
|
|
4365
4960
|
"BaseStreamEventSourceProps",
|
|
4961
|
+
"ConfluentSchemaRegistry",
|
|
4962
|
+
"ConfluentSchemaRegistryProps",
|
|
4366
4963
|
"DynamoEventSource",
|
|
4367
4964
|
"DynamoEventSourceProps",
|
|
4965
|
+
"GlueSchemaRegistry",
|
|
4966
|
+
"GlueSchemaRegistryProps",
|
|
4368
4967
|
"KafkaEventSourceProps",
|
|
4369
4968
|
"KinesisConsumerEventSource",
|
|
4370
4969
|
"KinesisEventSource",
|
|
@@ -4425,6 +5024,41 @@ def _typecheckingstub__49e8158c80bdc70be09102671a6e9cb783a1a28274da91874a575eeb7
|
|
|
4425
5024
|
"""Type checking stubs"""
|
|
4426
5025
|
pass
|
|
4427
5026
|
|
|
5027
|
+
def _typecheckingstub__8d5348f9a76f1dae8737185acaa12cdb48a690a1caca1d80c53f519d99022ff3(
|
|
5028
|
+
_target: _IEventSourceMapping_e216064e,
|
|
5029
|
+
target_handler: _IFunction_6adb0ab8,
|
|
5030
|
+
) -> None:
|
|
5031
|
+
"""Type checking stubs"""
|
|
5032
|
+
pass
|
|
5033
|
+
|
|
5034
|
+
def _typecheckingstub__36f67243dd281feefa4647d16ee5dc8642b3a682693696a34e35158c0168d3c6(
|
|
5035
|
+
*,
|
|
5036
|
+
event_record_format: _EventRecordFormat_5b272ecb,
|
|
5037
|
+
schema_validation_configs: typing.Sequence[typing.Union[_KafkaSchemaValidationConfig_7eaaa8d2, typing.Dict[builtins.str, typing.Any]]],
|
|
5038
|
+
authentication_type: _KafkaSchemaRegistryAccessConfigType_54686f72,
|
|
5039
|
+
schema_registry_uri: builtins.str,
|
|
5040
|
+
secret: _ISecret_6e020e6a,
|
|
5041
|
+
) -> None:
|
|
5042
|
+
"""Type checking stubs"""
|
|
5043
|
+
pass
|
|
5044
|
+
|
|
5045
|
+
def _typecheckingstub__d5de9e032f7783cc4e1549b6e5a3006224e69e981247337c42785778236be680(
|
|
5046
|
+
_target: _IEventSourceMapping_e216064e,
|
|
5047
|
+
target_handler: _IFunction_6adb0ab8,
|
|
5048
|
+
) -> None:
|
|
5049
|
+
"""Type checking stubs"""
|
|
5050
|
+
pass
|
|
5051
|
+
|
|
5052
|
+
def _typecheckingstub__fd8b6d63d7be96242ad14075f80e7d59f499d7f1727317cfae98da93e20e8a83(
|
|
5053
|
+
*,
|
|
5054
|
+
event_record_format: _EventRecordFormat_5b272ecb,
|
|
5055
|
+
schema_validation_configs: typing.Sequence[typing.Union[_KafkaSchemaValidationConfig_7eaaa8d2, typing.Dict[builtins.str, typing.Any]]],
|
|
5056
|
+
schema_registry: typing.Optional[_CfnRegistry_23d07cb1] = None,
|
|
5057
|
+
schema_registry_arn: typing.Optional[builtins.str] = None,
|
|
5058
|
+
) -> None:
|
|
5059
|
+
"""Type checking stubs"""
|
|
5060
|
+
pass
|
|
5061
|
+
|
|
4428
5062
|
def _typecheckingstub__980041697091a50415a7444df02a046d910ddd83f1229789d80780bf7903633d(
|
|
4429
5063
|
*,
|
|
4430
5064
|
starting_position: _StartingPosition_c0a4852c,
|
|
@@ -4437,6 +5071,7 @@ def _typecheckingstub__980041697091a50415a7444df02a046d910ddd83f1229789d80780bf7
|
|
|
4437
5071
|
filter_encryption: typing.Optional[_IKey_5f11635f] = None,
|
|
4438
5072
|
filters: typing.Optional[typing.Sequence[typing.Mapping[builtins.str, typing.Any]]] = None,
|
|
4439
5073
|
on_failure: typing.Optional[_IEventSourceDlq_5e2c6ad9] = None,
|
|
5074
|
+
schema_registry_config: typing.Optional[_ISchemaRegistry_7e66a87f] = None,
|
|
4440
5075
|
secret: typing.Optional[_ISecret_6e020e6a] = None,
|
|
4441
5076
|
starting_position_timestamp: typing.Optional[jsii.Number] = None,
|
|
4442
5077
|
) -> None:
|
|
@@ -4455,6 +5090,7 @@ def _typecheckingstub__e930f585c1bae37174885c54f0f224909bfb0a75d9f1b652bbcf33461
|
|
|
4455
5090
|
filter_encryption: typing.Optional[_IKey_5f11635f] = None,
|
|
4456
5091
|
filters: typing.Optional[typing.Sequence[typing.Mapping[builtins.str, typing.Any]]] = None,
|
|
4457
5092
|
on_failure: typing.Optional[_IEventSourceDlq_5e2c6ad9] = None,
|
|
5093
|
+
schema_registry_config: typing.Optional[_ISchemaRegistry_7e66a87f] = None,
|
|
4458
5094
|
secret: typing.Optional[_ISecret_6e020e6a] = None,
|
|
4459
5095
|
starting_position_timestamp: typing.Optional[jsii.Number] = None,
|
|
4460
5096
|
cluster_arn: builtins.str,
|
|
@@ -4533,6 +5169,7 @@ def _typecheckingstub__0100a45aa91b9c2103378e2ba54dd41b054f1d6a50733797256d6971b
|
|
|
4533
5169
|
filter_encryption: typing.Optional[_IKey_5f11635f] = None,
|
|
4534
5170
|
filters: typing.Optional[typing.Sequence[typing.Mapping[builtins.str, typing.Any]]] = None,
|
|
4535
5171
|
on_failure: typing.Optional[_IEventSourceDlq_5e2c6ad9] = None,
|
|
5172
|
+
schema_registry_config: typing.Optional[_ISchemaRegistry_7e66a87f] = None,
|
|
4536
5173
|
secret: typing.Optional[_ISecret_6e020e6a] = None,
|
|
4537
5174
|
starting_position_timestamp: typing.Optional[jsii.Number] = None,
|
|
4538
5175
|
bootstrap_servers: typing.Sequence[builtins.str],
|