@epilot360/icons 0.0.1 → 0.0.2
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.
- package/LICENSE +21 -0
- package/README.md +15 -0
- package/dist/bundle.js +2 -0
- package/dist/bundle.js.map +1 -0
- package/iac/node_modules/@balena/dockerignore/LICENSE.md +206 -0
- package/iac/node_modules/@balena/dockerignore/README.md +261 -0
- package/iac/node_modules/@cspotcode/source-map-support/LICENSE.md +21 -0
- package/iac/node_modules/@cspotcode/source-map-support/README.md +289 -0
- package/iac/node_modules/@jridgewell/resolve-uri/LICENSE +19 -0
- package/iac/node_modules/@jridgewell/resolve-uri/README.md +40 -0
- package/iac/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.mjs.map +1 -0
- package/iac/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.umd.js.map +1 -0
- package/iac/node_modules/@jridgewell/sourcemap-codec/LICENSE +21 -0
- package/iac/node_modules/@jridgewell/sourcemap-codec/README.md +200 -0
- package/iac/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs.map +1 -0
- package/iac/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js.map +1 -0
- package/iac/node_modules/@jridgewell/trace-mapping/LICENSE +19 -0
- package/iac/node_modules/@jridgewell/trace-mapping/README.md +193 -0
- package/iac/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs.map +1 -0
- package/iac/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js.map +1 -0
- package/iac/node_modules/@tsconfig/node10/LICENSE +21 -0
- package/iac/node_modules/@tsconfig/node10/README.md +40 -0
- package/iac/node_modules/@tsconfig/node12/LICENSE +21 -0
- package/iac/node_modules/@tsconfig/node12/README.md +40 -0
- package/iac/node_modules/@tsconfig/node14/LICENSE +21 -0
- package/iac/node_modules/@tsconfig/node14/README.md +40 -0
- package/iac/node_modules/@tsconfig/node16/LICENSE +21 -0
- package/iac/node_modules/@tsconfig/node16/README.md +40 -0
- package/iac/node_modules/@types/jest/LICENSE +21 -0
- package/iac/node_modules/@types/jest/README.md +17 -0
- package/iac/node_modules/@types/node/LICENSE +21 -0
- package/iac/node_modules/@types/node/README.md +16 -0
- package/iac/node_modules/@types/prettier/LICENSE +21 -0
- package/iac/node_modules/@types/prettier/README.md +16 -0
- package/iac/node_modules/acorn/LICENSE +21 -0
- package/iac/node_modules/acorn/README.md +273 -0
- package/iac/node_modules/acorn-walk/LICENSE +21 -0
- package/iac/node_modules/acorn-walk/README.md +126 -0
- package/iac/node_modules/ansi-regex/license +9 -0
- package/iac/node_modules/ansi-regex/readme.md +78 -0
- package/iac/node_modules/ansi-styles/license +9 -0
- package/iac/node_modules/ansi-styles/readme.md +144 -0
- package/iac/node_modules/arg/LICENSE.md +21 -0
- package/iac/node_modules/arg/README.md +280 -0
- package/iac/node_modules/at-least-node/LICENSE +6 -0
- package/iac/node_modules/at-least-node/README.md +25 -0
- package/iac/node_modules/aws-cdk/LICENSE +201 -0
- package/iac/node_modules/aws-cdk/README.md +742 -0
- package/iac/node_modules/aws-cdk/lib/init-templates/LICENSE +16 -0
- package/iac/node_modules/aws-cdk/lib/init-templates/app/csharp/README.md +14 -0
- package/iac/node_modules/aws-cdk/lib/init-templates/app/fsharp/README.md +18 -0
- package/iac/node_modules/aws-cdk/lib/init-templates/app/go/README.md +12 -0
- package/iac/node_modules/aws-cdk/lib/init-templates/app/java/README.md +18 -0
- package/iac/node_modules/aws-cdk/lib/init-templates/app/javascript/README.md +12 -0
- package/iac/node_modules/aws-cdk/lib/init-templates/app/python/README.template.md +58 -0
- package/iac/node_modules/aws-cdk/lib/init-templates/app/typescript/README.md +14 -0
- package/iac/node_modules/aws-cdk/lib/init-templates/lib/typescript/README.template.md +12 -0
- package/iac/node_modules/aws-cdk/lib/init-templates/sample-app/csharp/README.template.md +19 -0
- package/iac/node_modules/aws-cdk/lib/init-templates/sample-app/fsharp/README.template.md +20 -0
- package/iac/node_modules/aws-cdk/lib/init-templates/sample-app/go/README.md +12 -0
- package/iac/node_modules/aws-cdk/lib/init-templates/sample-app/java/README.template.md +19 -0
- package/iac/node_modules/aws-cdk/lib/init-templates/sample-app/javascript/README.template.md +13 -0
- package/iac/node_modules/aws-cdk/lib/init-templates/sample-app/python/README.template.md +65 -0
- package/iac/node_modules/aws-cdk/lib/init-templates/sample-app/typescript/README.template.md +15 -0
- package/iac/node_modules/aws-cdk/test/integ/cli/README.md +48 -0
- package/iac/node_modules/aws-cdk/test/integ/cli-regression-patches/README.md +54 -0
- package/iac/node_modules/aws-cdk-lib/LICENSE +201 -0
- package/iac/node_modules/aws-cdk-lib/README.md +1119 -0
- package/iac/node_modules/aws-cdk-lib/alexa-ask/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/assertions/README.md +571 -0
- package/iac/node_modules/aws-cdk-lib/assets/README.md +4 -0
- package/iac/node_modules/aws-cdk-lib/aws-accessanalyzer/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-acmpca/README.md +59 -0
- package/iac/node_modules/aws-cdk-lib/aws-amazonmq/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-amplify/README.md +32 -0
- package/iac/node_modules/aws-cdk-lib/aws-amplifyuibuilder/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-apigateway/README.md +1335 -0
- package/iac/node_modules/aws-cdk-lib/aws-apigatewayv2/README.md +32 -0
- package/iac/node_modules/aws-cdk-lib/aws-appconfig/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-appflow/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-appintegrations/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-applicationautoscaling/README.md +246 -0
- package/iac/node_modules/aws-cdk-lib/aws-applicationinsights/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-appmesh/README.md +883 -0
- package/iac/node_modules/aws-cdk-lib/aws-apprunner/README.md +32 -0
- package/iac/node_modules/aws-cdk-lib/aws-appstream/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-appsync/README.md +32 -0
- package/iac/node_modules/aws-cdk-lib/aws-aps/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-athena/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-auditmanager/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-autoscaling/README.md +540 -0
- package/iac/node_modules/aws-cdk-lib/aws-autoscaling-common/README.md +8 -0
- package/iac/node_modules/aws-cdk-lib/aws-autoscaling-hooktargets/README.md +18 -0
- package/iac/node_modules/aws-cdk-lib/aws-autoscalingplans/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-backup/README.md +210 -0
- package/iac/node_modules/aws-cdk-lib/aws-batch/README.md +32 -0
- package/iac/node_modules/aws-cdk-lib/aws-billingconductor/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-budgets/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-cassandra/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-ce/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-certificatemanager/README.md +166 -0
- package/iac/node_modules/aws-cdk-lib/aws-certificatemanager/lambda-packages/dns_validated_certificate_handler/README.md +2 -0
- package/iac/node_modules/aws-cdk-lib/aws-certificatemanager/suffixes/README.txt +8 -0
- package/iac/node_modules/aws-cdk-lib/aws-chatbot/README.md +44 -0
- package/iac/node_modules/aws-cdk-lib/aws-cloud9/README.md +32 -0
- package/iac/node_modules/aws-cdk-lib/aws-cloudformation/README.md +4 -0
- package/iac/node_modules/aws-cdk-lib/aws-cloudfront/README.md +973 -0
- package/iac/node_modules/aws-cdk-lib/aws-cloudfront-origins/README.md +126 -0
- package/iac/node_modules/aws-cdk-lib/aws-cloudtrail/README.md +189 -0
- package/iac/node_modules/aws-cdk-lib/aws-cloudwatch/README.md +579 -0
- package/iac/node_modules/aws-cdk-lib/aws-cloudwatch-actions/README.md +43 -0
- package/iac/node_modules/aws-cdk-lib/aws-codeartifact/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-codebuild/README.md +759 -0
- package/iac/node_modules/aws-cdk-lib/aws-codecommit/README.md +85 -0
- package/iac/node_modules/aws-cdk-lib/aws-codedeploy/README.md +319 -0
- package/iac/node_modules/aws-cdk-lib/aws-codeguruprofiler/README.md +37 -0
- package/iac/node_modules/aws-cdk-lib/aws-codegurureviewer/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-codepipeline/README.md +481 -0
- package/iac/node_modules/aws-cdk-lib/aws-codepipeline-actions/README.md +1203 -0
- package/iac/node_modules/aws-cdk-lib/aws-codestar/README.md +32 -0
- package/iac/node_modules/aws-cdk-lib/aws-codestarconnections/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-codestarnotifications/README.md +68 -0
- package/iac/node_modules/aws-cdk-lib/aws-cognito/README.md +843 -0
- package/iac/node_modules/aws-cdk-lib/aws-config/README.md +218 -0
- package/iac/node_modules/aws-cdk-lib/aws-connect/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-controltower/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-cur/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-customerprofiles/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-databrew/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-datapipeline/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-datasync/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-dax/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-detective/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-devopsguru/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-directoryservice/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-dlm/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-dms/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-docdb/README.md +153 -0
- package/iac/node_modules/aws-cdk-lib/aws-dynamodb/README.md +200 -0
- package/iac/node_modules/aws-cdk-lib/aws-ec2/README.md +1514 -0
- package/iac/node_modules/aws-cdk-lib/aws-ecr/README.md +110 -0
- package/iac/node_modules/aws-cdk-lib/aws-ecr-assets/README.md +167 -0
- package/iac/node_modules/aws-cdk-lib/aws-ecs/README.md +1225 -0
- package/iac/node_modules/aws-cdk-lib/aws-ecs-patterns/README.md +980 -0
- package/iac/node_modules/aws-cdk-lib/aws-efs/README.md +154 -0
- package/iac/node_modules/aws-cdk-lib/aws-eks/README.md +1450 -0
- package/iac/node_modules/aws-cdk-lib/aws-elasticache/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-elasticbeanstalk/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-elasticloadbalancing/README.md +40 -0
- package/iac/node_modules/aws-cdk-lib/aws-elasticloadbalancingv2/README.md +569 -0
- package/iac/node_modules/aws-cdk-lib/aws-elasticloadbalancingv2-actions/README.md +68 -0
- package/iac/node_modules/aws-cdk-lib/aws-elasticloadbalancingv2-targets/README.md +4 -0
- package/iac/node_modules/aws-cdk-lib/aws-elasticsearch/README.md +441 -0
- package/iac/node_modules/aws-cdk-lib/aws-emr/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-emrcontainers/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-emrserverless/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-events/README.md +249 -0
- package/iac/node_modules/aws-cdk-lib/aws-events-targets/README.md +339 -0
- package/iac/node_modules/aws-cdk-lib/aws-eventschemas/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-evidently/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-finspace/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-fis/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-fms/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-forecast/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-frauddetector/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-fsx/README.md +200 -0
- package/iac/node_modules/aws-cdk-lib/aws-gamelift/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-globalaccelerator/README.md +182 -0
- package/iac/node_modules/aws-cdk-lib/aws-globalaccelerator-endpoints/README.md +10 -0
- package/iac/node_modules/aws-cdk-lib/aws-glue/README.md +32 -0
- package/iac/node_modules/aws-cdk-lib/aws-greengrass/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-greengrassv2/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-groundstation/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-guardduty/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-healthlake/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-iam/README.md +509 -0
- package/iac/node_modules/aws-cdk-lib/aws-imagebuilder/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-inspector/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-inspectorv2/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-iot/README.md +32 -0
- package/iac/node_modules/aws-cdk-lib/aws-iot1click/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-iotanalytics/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-iotcoredeviceadvisor/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-iotevents/README.md +32 -0
- package/iac/node_modules/aws-cdk-lib/aws-iotfleethub/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-iotsitewise/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-iotthingsgraph/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-iottwinmaker/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-iotwireless/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-ivs/README.md +32 -0
- package/iac/node_modules/aws-cdk-lib/aws-kafkaconnect/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-kendra/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-kinesis/README.md +188 -0
- package/iac/node_modules/aws-cdk-lib/aws-kinesisanalytics/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-kinesisanalyticsv2/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-kinesisfirehose/README.md +32 -0
- package/iac/node_modules/aws-cdk-lib/aws-kinesisvideo/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-kms/README.md +209 -0
- package/iac/node_modules/aws-cdk-lib/aws-lakeformation/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-lambda/README.md +985 -0
- package/iac/node_modules/aws-cdk-lib/aws-lambda-destinations/README.md +147 -0
- package/iac/node_modules/aws-cdk-lib/aws-lambda-event-sources/README.md +281 -0
- package/iac/node_modules/aws-cdk-lib/aws-lambda-nodejs/README.md +317 -0
- package/iac/node_modules/aws-cdk-lib/aws-lex/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-licensemanager/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-lightsail/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-location/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-logs/README.md +322 -0
- package/iac/node_modules/aws-cdk-lib/aws-logs-destinations/README.md +7 -0
- package/iac/node_modules/aws-cdk-lib/aws-lookoutequipment/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-lookoutmetrics/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-lookoutvision/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-m2/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-macie/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-managedblockchain/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-mediaconnect/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-mediaconvert/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-medialive/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-mediapackage/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-mediastore/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-mediatailor/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-memorydb/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-msk/README.md +32 -0
- package/iac/node_modules/aws-cdk-lib/aws-mwaa/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-neptune/README.md +32 -0
- package/iac/node_modules/aws-cdk-lib/aws-networkfirewall/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-networkmanager/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-nimblestudio/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-opensearchservice/README.md +378 -0
- package/iac/node_modules/aws-cdk-lib/aws-opsworks/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-opsworkscm/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-panorama/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-personalize/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-pinpoint/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-pinpointemail/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-qldb/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-quicksight/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-ram/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-rds/README.md +704 -0
- package/iac/node_modules/aws-cdk-lib/aws-redshift/README.md +32 -0
- package/iac/node_modules/aws-cdk-lib/aws-redshiftserverless/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-refactorspaces/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-rekognition/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-resiliencehub/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-resourcegroups/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-robomaker/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-route53/README.md +281 -0
- package/iac/node_modules/aws-cdk-lib/aws-route53-patterns/README.md +45 -0
- package/iac/node_modules/aws-cdk-lib/aws-route53-targets/README.md +181 -0
- package/iac/node_modules/aws-cdk-lib/aws-route53recoverycontrol/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-route53recoveryreadiness/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-route53resolver/README.md +32 -0
- package/iac/node_modules/aws-cdk-lib/aws-rum/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-s3/README.md +581 -0
- package/iac/node_modules/aws-cdk-lib/aws-s3-assets/README.md +179 -0
- package/iac/node_modules/aws-cdk-lib/aws-s3-deployment/README.md +349 -0
- package/iac/node_modules/aws-cdk-lib/aws-s3-notifications/README.md +46 -0
- package/iac/node_modules/aws-cdk-lib/aws-s3objectlambda/README.md +32 -0
- package/iac/node_modules/aws-cdk-lib/aws-s3outposts/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-sagemaker/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-sam/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-sdb/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-secretsmanager/README.md +285 -0
- package/iac/node_modules/aws-cdk-lib/aws-securityhub/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-servicecatalog/README.md +491 -0
- package/iac/node_modules/aws-cdk-lib/aws-servicecatalogappregistry/README.md +32 -0
- package/iac/node_modules/aws-cdk-lib/aws-servicediscovery/README.md +45 -0
- package/iac/node_modules/aws-cdk-lib/aws-ses/README.md +194 -0
- package/iac/node_modules/aws-cdk-lib/aws-ses-actions/README.md +16 -0
- package/iac/node_modules/aws-cdk-lib/aws-signer/README.md +41 -0
- package/iac/node_modules/aws-cdk-lib/aws-sns/README.md +184 -0
- package/iac/node_modules/aws-cdk-lib/aws-sns-subscriptions/README.md +120 -0
- package/iac/node_modules/aws-cdk-lib/aws-sqs/README.md +57 -0
- package/iac/node_modules/aws-cdk-lib/aws-ssm/README.md +99 -0
- package/iac/node_modules/aws-cdk-lib/aws-ssmcontacts/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-ssmincidents/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-sso/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-stepfunctions/README.md +884 -0
- package/iac/node_modules/aws-cdk-lib/aws-stepfunctions-tasks/README.md +1288 -0
- package/iac/node_modules/aws-cdk-lib/aws-supportapp/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-synthetics/README.md +32 -0
- package/iac/node_modules/aws-cdk-lib/aws-timestream/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-transfer/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-voiceid/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-waf/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-wafregional/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-wafv2/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-wisdom/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-workspaces/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-xray/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/cloud-assembly-schema/README.md +55 -0
- package/iac/node_modules/aws-cdk-lib/cloud-assembly-schema/schema/README.md +5 -0
- package/iac/node_modules/aws-cdk-lib/cloudformation-include/README.md +466 -0
- package/iac/node_modules/aws-cdk-lib/core/README.md +1078 -0
- package/iac/node_modules/aws-cdk-lib/custom-resources/README.md +624 -0
- package/iac/node_modules/aws-cdk-lib/cx-api/README.md +98 -0
- package/iac/node_modules/aws-cdk-lib/lambda-layer-awscli/README.md +19 -0
- package/iac/node_modules/aws-cdk-lib/lambda-layer-kubectl/README.md +20 -0
- package/iac/node_modules/aws-cdk-lib/lambda-layer-node-proxy-agent/README.md +18 -0
- package/iac/node_modules/aws-cdk-lib/node_modules/@balena/dockerignore/LICENSE.md +206 -0
- package/iac/node_modules/aws-cdk-lib/node_modules/@balena/dockerignore/README.md +261 -0
- package/iac/node_modules/aws-cdk-lib/node_modules/at-least-node/LICENSE +6 -0
- package/iac/node_modules/aws-cdk-lib/node_modules/at-least-node/README.md +25 -0
- package/iac/node_modules/aws-cdk-lib/node_modules/balanced-match/LICENSE.md +21 -0
- package/iac/node_modules/aws-cdk-lib/node_modules/balanced-match/README.md +97 -0
- package/iac/node_modules/aws-cdk-lib/node_modules/brace-expansion/LICENSE +21 -0
- package/iac/node_modules/aws-cdk-lib/node_modules/brace-expansion/README.md +129 -0
- package/iac/node_modules/aws-cdk-lib/node_modules/case/LICENSE +22 -0
- package/iac/node_modules/aws-cdk-lib/node_modules/case/README.md +139 -0
- package/iac/node_modules/aws-cdk-lib/node_modules/case/dist/Case.min.js.map +1 -0
- package/iac/node_modules/aws-cdk-lib/node_modules/case/dist/Case.plus.min.js.map +1 -0
- package/iac/node_modules/aws-cdk-lib/node_modules/concat-map/LICENSE +18 -0
- package/iac/node_modules/aws-cdk-lib/node_modules/concat-map/README.markdown +62 -0
- package/iac/node_modules/aws-cdk-lib/node_modules/fs-extra/LICENSE +15 -0
- package/iac/node_modules/aws-cdk-lib/node_modules/fs-extra/README.md +264 -0
- package/iac/node_modules/aws-cdk-lib/node_modules/graceful-fs/LICENSE +15 -0
- package/iac/node_modules/aws-cdk-lib/node_modules/graceful-fs/README.md +143 -0
- package/iac/node_modules/aws-cdk-lib/node_modules/ignore/README.md +412 -0
- package/iac/node_modules/aws-cdk-lib/node_modules/jsonfile/LICENSE +15 -0
- package/iac/node_modules/aws-cdk-lib/node_modules/jsonfile/README.md +230 -0
- package/iac/node_modules/aws-cdk-lib/node_modules/jsonschema/LICENSE +21 -0
- package/iac/node_modules/aws-cdk-lib/node_modules/jsonschema/README.md +421 -0
- package/iac/node_modules/aws-cdk-lib/node_modules/lru-cache/LICENSE +15 -0
- package/iac/node_modules/aws-cdk-lib/node_modules/lru-cache/README.md +166 -0
- package/iac/node_modules/aws-cdk-lib/node_modules/minimatch/LICENSE +15 -0
- package/iac/node_modules/aws-cdk-lib/node_modules/minimatch/README.md +230 -0
- package/iac/node_modules/aws-cdk-lib/node_modules/punycode/README.md +122 -0
- package/iac/node_modules/aws-cdk-lib/node_modules/semver/LICENSE +15 -0
- package/iac/node_modules/aws-cdk-lib/node_modules/semver/README.md +568 -0
- package/iac/node_modules/aws-cdk-lib/node_modules/universalify/LICENSE +20 -0
- package/iac/node_modules/aws-cdk-lib/node_modules/universalify/README.md +76 -0
- package/iac/node_modules/aws-cdk-lib/node_modules/yallist/LICENSE +15 -0
- package/iac/node_modules/aws-cdk-lib/node_modules/yallist/README.md +204 -0
- package/iac/node_modules/aws-cdk-lib/node_modules/yaml/LICENSE +13 -0
- package/iac/node_modules/aws-cdk-lib/node_modules/yaml/README.md +127 -0
- package/iac/node_modules/aws-cdk-lib/pipelines/README.md +1573 -0
- package/iac/node_modules/aws-cdk-lib/region-info/README.md +84 -0
- package/iac/node_modules/aws-cdk-lib/triggers/README.md +86 -0
- package/iac/node_modules/balanced-match/LICENSE.md +21 -0
- package/iac/node_modules/balanced-match/README.md +97 -0
- package/iac/node_modules/brace-expansion/LICENSE +21 -0
- package/iac/node_modules/brace-expansion/README.md +129 -0
- package/iac/node_modules/buffer-from/LICENSE +21 -0
- package/iac/node_modules/buffer-from/readme.md +69 -0
- package/iac/node_modules/case/LICENSE +22 -0
- package/iac/node_modules/case/README.md +139 -0
- package/iac/node_modules/case/dist/Case.min.js.map +1 -0
- package/iac/node_modules/case/dist/Case.plus.min.js.map +1 -0
- package/iac/node_modules/chalk/license +9 -0
- package/iac/node_modules/chalk/node_modules/ansi-styles/license +9 -0
- package/iac/node_modules/chalk/node_modules/ansi-styles/readme.md +152 -0
- package/iac/node_modules/chalk/readme.md +341 -0
- package/iac/node_modules/color-convert/LICENSE +21 -0
- package/iac/node_modules/color-convert/README.md +68 -0
- package/iac/node_modules/color-name/LICENSE +8 -0
- package/iac/node_modules/color-name/README.md +11 -0
- package/iac/node_modules/concat-map/LICENSE +18 -0
- package/iac/node_modules/concat-map/README.markdown +62 -0
- package/iac/node_modules/constructs/LICENSE +202 -0
- package/iac/node_modules/constructs/README.md +28 -0
- package/iac/node_modules/create-require/LICENSE +25 -0
- package/iac/node_modules/create-require/README.md +46 -0
- package/iac/node_modules/diff/LICENSE +31 -0
- package/iac/node_modules/diff/README.md +207 -0
- package/iac/node_modules/diff-sequences/LICENSE +21 -0
- package/iac/node_modules/diff-sequences/README.md +404 -0
- package/iac/node_modules/fs-extra/LICENSE +15 -0
- package/iac/node_modules/fs-extra/README.md +264 -0
- package/iac/node_modules/fsevents/LICENSE +22 -0
- package/iac/node_modules/fsevents/README.md +83 -0
- package/iac/node_modules/graceful-fs/LICENSE +15 -0
- package/iac/node_modules/graceful-fs/README.md +143 -0
- package/iac/node_modules/has-flag/license +9 -0
- package/iac/node_modules/has-flag/readme.md +89 -0
- package/iac/node_modules/ignore/README.md +412 -0
- package/iac/node_modules/jest-diff/LICENSE +21 -0
- package/iac/node_modules/jest-diff/README.md +671 -0
- package/iac/node_modules/jest-get-type/LICENSE +21 -0
- package/iac/node_modules/jest-matcher-utils/LICENSE +21 -0
- package/iac/node_modules/jest-matcher-utils/README.md +24 -0
- package/iac/node_modules/jsonfile/LICENSE +15 -0
- package/iac/node_modules/jsonfile/README.md +230 -0
- package/iac/node_modules/jsonschema/LICENSE +21 -0
- package/iac/node_modules/jsonschema/README.md +421 -0
- package/iac/node_modules/lru-cache/LICENSE +15 -0
- package/iac/node_modules/lru-cache/README.md +166 -0
- package/iac/node_modules/make-error/LICENSE +5 -0
- package/iac/node_modules/make-error/README.md +112 -0
- package/iac/node_modules/minimatch/LICENSE +15 -0
- package/iac/node_modules/minimatch/README.md +230 -0
- package/iac/node_modules/pretty-format/LICENSE +21 -0
- package/iac/node_modules/pretty-format/README.md +458 -0
- package/iac/node_modules/punycode/README.md +122 -0
- package/iac/node_modules/react-is/LICENSE +21 -0
- package/iac/node_modules/react-is/README.md +104 -0
- package/iac/node_modules/semver/LICENSE +15 -0
- package/iac/node_modules/semver/README.md +568 -0
- package/iac/node_modules/source-map/LICENSE +28 -0
- package/iac/node_modules/source-map/README.md +742 -0
- package/iac/node_modules/source-map/dist/source-map.min.js.map +1 -0
- package/iac/node_modules/source-map-support/LICENSE.md +21 -0
- package/iac/node_modules/source-map-support/README.md +284 -0
- package/iac/node_modules/supports-color/license +9 -0
- package/iac/node_modules/supports-color/readme.md +76 -0
- package/iac/node_modules/ts-node/LICENSE +21 -0
- package/iac/node_modules/ts-node/README.md +1442 -0
- package/iac/node_modules/ts-node/dist/bin-cwd.js.map +1 -0
- package/iac/node_modules/ts-node/dist/bin-esm.js.map +1 -0
- package/iac/node_modules/ts-node/dist/bin-script-deprecated.js.map +1 -0
- package/iac/node_modules/ts-node/dist/bin-script.js.map +1 -0
- package/iac/node_modules/ts-node/dist/bin-transpile.js.map +1 -0
- package/iac/node_modules/ts-node/dist/bin.js.map +1 -0
- package/iac/node_modules/ts-node/dist/child/argv-payload.js.map +1 -0
- package/iac/node_modules/ts-node/dist/child/child-entrypoint.js.map +1 -0
- package/iac/node_modules/ts-node/dist/child/child-loader.js.map +1 -0
- package/iac/node_modules/ts-node/dist/child/child-require.js.map +1 -0
- package/iac/node_modules/ts-node/dist/child/spawn-child.js.map +1 -0
- package/iac/node_modules/ts-node/dist/cjs-resolve-hooks.js.map +1 -0
- package/iac/node_modules/ts-node/dist/configuration.js.map +1 -0
- package/iac/node_modules/ts-node/dist/esm.js.map +1 -0
- package/iac/node_modules/ts-node/dist/file-extensions.js.map +1 -0
- package/iac/node_modules/ts-node/dist/index.js.map +1 -0
- package/iac/node_modules/ts-node/dist/module-type-classifier.js.map +1 -0
- package/iac/node_modules/ts-node/dist/node-module-type-classifier.js.map +1 -0
- package/iac/node_modules/ts-node/dist/repl.js.map +1 -0
- package/iac/node_modules/ts-node/dist/resolver-functions.js.map +1 -0
- package/iac/node_modules/ts-node/dist/transpilers/swc.js.map +1 -0
- package/iac/node_modules/ts-node/dist/transpilers/types.js.map +1 -0
- package/iac/node_modules/ts-node/dist/ts-compiler-types.js.map +1 -0
- package/iac/node_modules/ts-node/dist/ts-internals.js.map +1 -0
- package/iac/node_modules/ts-node/dist/ts-transpile-module.js.map +1 -0
- package/iac/node_modules/ts-node/dist/tsconfig-schema.js.map +1 -0
- package/iac/node_modules/ts-node/dist/tsconfigs.js.map +1 -0
- package/iac/node_modules/ts-node/dist/util.js.map +1 -0
- package/iac/node_modules/ts-node/dist-raw/README.md +36 -0
- package/iac/node_modules/typescript/LICENSE.txt +55 -0
- package/iac/node_modules/typescript/README.md +104 -0
- package/iac/node_modules/typescript/lib/README.md +5 -0
- package/iac/node_modules/universalify/LICENSE +20 -0
- package/iac/node_modules/universalify/README.md +76 -0
- package/iac/node_modules/v8-compile-cache-lib/LICENSE +21 -0
- package/iac/node_modules/v8-compile-cache-lib/README.md +60 -0
- package/iac/node_modules/yallist/LICENSE +15 -0
- package/iac/node_modules/yallist/README.md +204 -0
- package/iac/node_modules/yaml/LICENSE +13 -0
- package/iac/node_modules/yaml/README.md +127 -0
- package/iac/node_modules/yn/license +9 -0
- package/iac/node_modules/yn/readme.md +83 -0
- package/index.d.ts +1 -0
- package/index.js +18 -0
- package/index.js.map +1 -0
- package/package.json +26 -5
- package/react/Edit.d.ts +3 -0
- package/react/Edit.js +10 -0
- package/react/Edit.js.map +1 -0
- package/react/index.d.ts +1 -0
- package/react/index.js +18 -0
- package/react/index.js.map +1 -0
- package/src/material-symbols.d.ts +4 -0
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
# Amazon Lambda Destinations Library
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
This library provides constructs for adding destinations to a Lambda function.
|
|
5
|
+
Destinations can be added by specifying the `onFailure` or `onSuccess` props when creating a function or alias.
|
|
6
|
+
|
|
7
|
+
## Destinations
|
|
8
|
+
|
|
9
|
+
The following destinations are supported
|
|
10
|
+
|
|
11
|
+
* Lambda function
|
|
12
|
+
* SQS queue - Only standard SQS queues are supported for failure destinations, FIFO queues are not supported.
|
|
13
|
+
* SNS topic
|
|
14
|
+
* EventBridge event bus
|
|
15
|
+
|
|
16
|
+
Example with a SNS topic for successful invocations:
|
|
17
|
+
|
|
18
|
+
```ts
|
|
19
|
+
// An sns topic for successful invocations of a lambda function
|
|
20
|
+
import * as sns from 'aws-cdk-lib/aws-sns';
|
|
21
|
+
|
|
22
|
+
const myTopic = new sns.Topic(this, 'Topic');
|
|
23
|
+
|
|
24
|
+
const myFn = new lambda.Function(this, 'Fn', {
|
|
25
|
+
runtime: lambda.Runtime.NODEJS_14_X,
|
|
26
|
+
handler: 'index.handler',
|
|
27
|
+
code: lambda.Code.fromAsset(path.join(__dirname, 'lambda-handler')),
|
|
28
|
+
// sns topic for successful invocations
|
|
29
|
+
onSuccess: new destinations.SnsDestination(myTopic),
|
|
30
|
+
})
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Example with a SQS queue for unsuccessful invocations:
|
|
34
|
+
|
|
35
|
+
```ts
|
|
36
|
+
// An sqs queue for unsuccessful invocations of a lambda function
|
|
37
|
+
import * as sqs from 'aws-cdk-lib/aws-sqs';
|
|
38
|
+
|
|
39
|
+
const deadLetterQueue = new sqs.Queue(this, 'DeadLetterQueue');
|
|
40
|
+
|
|
41
|
+
const myFn = new lambda.Function(this, 'Fn', {
|
|
42
|
+
runtime: lambda.Runtime.NODEJS_14_X,
|
|
43
|
+
handler: 'index.handler',
|
|
44
|
+
code: lambda.Code.fromInline('// your code'),
|
|
45
|
+
// sqs queue for unsuccessful invocations
|
|
46
|
+
onFailure: new destinations.SqsDestination(deadLetterQueue),
|
|
47
|
+
});
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
See also [Configuring Destinations for Asynchronous Invocation](https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#invocation-async-destinations).
|
|
51
|
+
|
|
52
|
+
### Invocation record
|
|
53
|
+
|
|
54
|
+
When a lambda function is configured with a destination, an invocation record is created by the Lambda service
|
|
55
|
+
when the lambda function completes. The invocation record contains the details of the function, its context, and
|
|
56
|
+
the request and response payloads.
|
|
57
|
+
|
|
58
|
+
The following example shows the format of the invocation record for a successful invocation:
|
|
59
|
+
|
|
60
|
+
```json
|
|
61
|
+
{
|
|
62
|
+
"version": "1.0",
|
|
63
|
+
"timestamp": "2019-11-24T23:08:25.651Z",
|
|
64
|
+
"requestContext": {
|
|
65
|
+
"requestId": "c2a6f2ae-7dbb-4d22-8782-d0485c9877e2",
|
|
66
|
+
"functionArn": "arn:aws:lambda:sa-east-1:123456789123:function:event-destinations:$LATEST",
|
|
67
|
+
"condition": "Success",
|
|
68
|
+
"approximateInvokeCount": 1
|
|
69
|
+
},
|
|
70
|
+
"requestPayload": {
|
|
71
|
+
"Success": true
|
|
72
|
+
},
|
|
73
|
+
"responseContext": {
|
|
74
|
+
"statusCode": 200,
|
|
75
|
+
"executedVersion": "$LATEST"
|
|
76
|
+
},
|
|
77
|
+
"responsePayload": "<data returned by the function here>"
|
|
78
|
+
}
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
In case of failure, the record contains the reason and error object:
|
|
82
|
+
|
|
83
|
+
```json
|
|
84
|
+
{
|
|
85
|
+
"version": "1.0",
|
|
86
|
+
"timestamp": "2019-11-24T21:52:47.333Z",
|
|
87
|
+
"requestContext": {
|
|
88
|
+
"requestId": "8ea123e4-1db7-4aca-ad10-d9ca1234c1fd",
|
|
89
|
+
"functionArn": "arn:aws:lambda:sa-east-1:123456678912:function:event-destinations:$LATEST",
|
|
90
|
+
"condition": "RetriesExhausted",
|
|
91
|
+
"approximateInvokeCount": 3
|
|
92
|
+
},
|
|
93
|
+
"requestPayload": {
|
|
94
|
+
"Success": false
|
|
95
|
+
},
|
|
96
|
+
"responseContext": {
|
|
97
|
+
"statusCode": 200,
|
|
98
|
+
"executedVersion": "$LATEST",
|
|
99
|
+
"functionError": "Handled"
|
|
100
|
+
},
|
|
101
|
+
"responsePayload": {
|
|
102
|
+
"errorMessage": "Failure from event, Success = false, I am failing!",
|
|
103
|
+
"errorType": "Error",
|
|
104
|
+
"stackTrace": [ "exports.handler (/var/task/index.js:18:18)" ]
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
#### Destination-specific JSON format
|
|
110
|
+
|
|
111
|
+
* For SNS/SQS (`SnsDestionation`/`SqsDestination`), the invocation record JSON is passed as the `Message` to the destination.
|
|
112
|
+
* For Lambda (`LambdaDestination`), the invocation record JSON is passed as the payload to the function.
|
|
113
|
+
* For EventBridge (`EventBridgeDestination`), the invocation record JSON is passed as the `detail` in the PutEvents call.
|
|
114
|
+
The value for the event field `source` is `lambda`, and the value for the event field `detail-type`
|
|
115
|
+
is either 'Lambda Function Invocation Result - Success' or 'Lambda Function Invocation Result – Failure',
|
|
116
|
+
depending on whether the lambda function invocation succeeded or failed. The event field `resource`
|
|
117
|
+
contains the function and destination ARNs. See [AWS Events](https://docs.aws.amazon.com/eventbridge/latest/userguide/aws-events.html)
|
|
118
|
+
for the different event fields.
|
|
119
|
+
|
|
120
|
+
### Auto-extract response payload with lambda destination
|
|
121
|
+
|
|
122
|
+
The `responseOnly` option of `LambdaDestination` allows to auto-extract the response payload from the
|
|
123
|
+
invocation record:
|
|
124
|
+
|
|
125
|
+
```ts
|
|
126
|
+
// Auto-extract response payload with a lambda destination
|
|
127
|
+
declare const destinationFn: lambda.Function;
|
|
128
|
+
|
|
129
|
+
const sourceFn = new lambda.Function(this, 'Source', {
|
|
130
|
+
runtime: lambda.Runtime.NODEJS_14_X,
|
|
131
|
+
handler: 'index.handler',
|
|
132
|
+
code: lambda.Code.fromAsset(path.join(__dirname, 'lambda-handler')),
|
|
133
|
+
// auto-extract on success
|
|
134
|
+
onSuccess: new destinations.LambdaDestination(destinationFn, {
|
|
135
|
+
responseOnly: true,
|
|
136
|
+
}),
|
|
137
|
+
})
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
In the above example, `destinationFn` will be invoked with the payload returned by `sourceFn`
|
|
141
|
+
(`responsePayload` in the invocation record, not the full record).
|
|
142
|
+
|
|
143
|
+
When used with `onFailure`, the destination function is invoked with the error object returned
|
|
144
|
+
by the source function.
|
|
145
|
+
|
|
146
|
+
Using the `responseOnly` option allows to easily chain asynchronous Lambda functions without
|
|
147
|
+
having to deal with data extraction in the runtime code.
|
|
@@ -0,0 +1,281 @@
|
|
|
1
|
+
# AWS Lambda Event Sources
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
An event source mapping is an AWS Lambda resource that reads from an event source and invokes a Lambda function.
|
|
5
|
+
You can use event source mappings to process items from a stream or queue in services that don't invoke Lambda
|
|
6
|
+
functions directly. Lambda provides event source mappings for the following services. Read more about lambda
|
|
7
|
+
event sources [here](https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventsourcemapping.html).
|
|
8
|
+
|
|
9
|
+
This module includes classes that allow using various AWS services as event
|
|
10
|
+
sources for AWS Lambda via the high-level `lambda.addEventSource(source)` API.
|
|
11
|
+
|
|
12
|
+
NOTE: In most cases, it is also possible to use the resource APIs to invoke an
|
|
13
|
+
AWS Lambda function. This library provides a uniform API for all Lambda event
|
|
14
|
+
sources regardless of the underlying mechanism they use.
|
|
15
|
+
|
|
16
|
+
The following code sets up a lambda function with an SQS queue event source -
|
|
17
|
+
|
|
18
|
+
```ts
|
|
19
|
+
import { SqsEventSource } from 'aws-cdk-lib/aws-lambda-event-sources';
|
|
20
|
+
|
|
21
|
+
declare const fn: lambda.Function;
|
|
22
|
+
const queue = new sqs.Queue(this, 'MyQueue');
|
|
23
|
+
const eventSource = new SqsEventSource(queue);
|
|
24
|
+
fn.addEventSource(eventSource);
|
|
25
|
+
|
|
26
|
+
const eventSourceId = eventSource.eventSourceMappingId;
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
The `eventSourceId` property contains the event source id. This will be a
|
|
30
|
+
[token](https://docs.aws.amazon.com/cdk/latest/guide/tokens.html) that will resolve to the final value at the time of
|
|
31
|
+
deployment.
|
|
32
|
+
|
|
33
|
+
## SQS
|
|
34
|
+
|
|
35
|
+
Amazon Simple Queue Service (Amazon SQS) allows you to build asynchronous
|
|
36
|
+
workflows. For more information about Amazon SQS, see Amazon Simple Queue
|
|
37
|
+
Service. You can configure AWS Lambda to poll for these messages as they arrive
|
|
38
|
+
and then pass the event to a Lambda function invocation. To view a sample event,
|
|
39
|
+
see [Amazon SQS Event](https://docs.aws.amazon.com/lambda/latest/dg/eventsources.html#eventsources-sqs).
|
|
40
|
+
|
|
41
|
+
To set up Amazon Simple Queue Service as an event source for AWS Lambda, you
|
|
42
|
+
first create or update an Amazon SQS queue and select custom values for the
|
|
43
|
+
queue parameters. The following parameters will impact Amazon SQS's polling
|
|
44
|
+
behavior:
|
|
45
|
+
|
|
46
|
+
* __visibilityTimeout__: May impact the period between retries.
|
|
47
|
+
* __receiveMessageWaitTime__: Will determine [long
|
|
48
|
+
poll](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-long-polling.html)
|
|
49
|
+
duration. The default value is 20 seconds.
|
|
50
|
+
* __batchSize__: Determines how many records are buffered before invoking your lambda function.
|
|
51
|
+
* __maxBatchingWindow__: The maximum amount of time to gather records before invoking the lambda. This increases the likelihood of a full batch at the cost of delayed processing.
|
|
52
|
+
* __enabled__: If the SQS event source mapping should be enabled. The default is true.
|
|
53
|
+
|
|
54
|
+
```ts
|
|
55
|
+
import { SqsEventSource } from 'aws-cdk-lib/aws-lambda-event-sources';
|
|
56
|
+
|
|
57
|
+
const queue = new sqs.Queue(this, 'MyQueue', {
|
|
58
|
+
visibilityTimeout: Duration.seconds(30), // default,
|
|
59
|
+
receiveMessageWaitTime: Duration.seconds(20), // default
|
|
60
|
+
});
|
|
61
|
+
declare const fn: lambda.Function;
|
|
62
|
+
|
|
63
|
+
fn.addEventSource(new SqsEventSource(queue, {
|
|
64
|
+
batchSize: 10, // default
|
|
65
|
+
maxBatchingWindow: Duration.minutes(5),
|
|
66
|
+
reportBatchItemFailures: true, // default to false
|
|
67
|
+
}));
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
## S3
|
|
71
|
+
|
|
72
|
+
You can write Lambda functions to process S3 bucket events, such as the
|
|
73
|
+
object-created or object-deleted events. For example, when a user uploads a
|
|
74
|
+
photo to a bucket, you might want Amazon S3 to invoke your Lambda function so
|
|
75
|
+
that it reads the image and creates a thumbnail for the photo.
|
|
76
|
+
|
|
77
|
+
You can use the bucket notification configuration feature in Amazon S3 to
|
|
78
|
+
configure the event source mapping, identifying the bucket events that you want
|
|
79
|
+
Amazon S3 to publish and which Lambda function to invoke.
|
|
80
|
+
|
|
81
|
+
```ts
|
|
82
|
+
import * as s3 from 'aws-cdk-lib/aws-s3';
|
|
83
|
+
import { S3EventSource } from 'aws-cdk-lib/aws-lambda-event-sources';
|
|
84
|
+
|
|
85
|
+
const bucket = new s3.Bucket(this, 'mybucket');
|
|
86
|
+
declare const fn: lambda.Function;
|
|
87
|
+
|
|
88
|
+
fn.addEventSource(new S3EventSource(bucket, {
|
|
89
|
+
events: [ s3.EventType.OBJECT_CREATED, s3.EventType.OBJECT_REMOVED ],
|
|
90
|
+
filters: [ { prefix: 'subdir/' } ], // optional
|
|
91
|
+
}));
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
## SNS
|
|
95
|
+
|
|
96
|
+
You can write Lambda functions to process Amazon Simple Notification Service
|
|
97
|
+
notifications. When a message is published to an Amazon SNS topic, the service
|
|
98
|
+
can invoke your Lambda function by passing the message payload as a parameter.
|
|
99
|
+
Your Lambda function code can then process the event, for example publish the
|
|
100
|
+
message to other Amazon SNS topics, or send the message to other AWS services.
|
|
101
|
+
|
|
102
|
+
This also enables you to trigger a Lambda function in response to Amazon
|
|
103
|
+
CloudWatch alarms and other AWS services that use Amazon SNS.
|
|
104
|
+
|
|
105
|
+
For an example event, see [Appendix: Message and JSON
|
|
106
|
+
Formats](https://docs.aws.amazon.com/sns/latest/dg/json-formats.html) and
|
|
107
|
+
[Amazon SNS Sample
|
|
108
|
+
Event](https://docs.aws.amazon.com/lambda/latest/dg/eventsources.html#eventsources-sns).
|
|
109
|
+
For an example use case, see [Using AWS Lambda with Amazon SNS from Different
|
|
110
|
+
Accounts](https://docs.aws.amazon.com/lambda/latest/dg/with-sns.html).
|
|
111
|
+
|
|
112
|
+
```ts
|
|
113
|
+
import * as sns from 'aws-cdk-lib/aws-sns';
|
|
114
|
+
import { SnsEventSource } from 'aws-cdk-lib/aws-lambda-event-sources';
|
|
115
|
+
|
|
116
|
+
declare const topic: sns.Topic;
|
|
117
|
+
const deadLetterQueue = new sqs.Queue(this, 'deadLetterQueue');
|
|
118
|
+
|
|
119
|
+
declare const fn: lambda.Function;
|
|
120
|
+
fn.addEventSource(new SnsEventSource(topic, {
|
|
121
|
+
filterPolicy: { },
|
|
122
|
+
deadLetterQueue: deadLetterQueue,
|
|
123
|
+
}));
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
When a user calls the SNS Publish API on a topic that your Lambda function is
|
|
127
|
+
subscribed to, Amazon SNS will call Lambda to invoke your function
|
|
128
|
+
asynchronously. Lambda will then return a delivery status. If there was an error
|
|
129
|
+
calling Lambda, Amazon SNS will retry invoking the Lambda function up to three
|
|
130
|
+
times. After three tries, if Amazon SNS still could not successfully invoke the
|
|
131
|
+
Lambda function, then Amazon SNS will send a delivery status failure message to
|
|
132
|
+
CloudWatch.
|
|
133
|
+
|
|
134
|
+
## DynamoDB Streams
|
|
135
|
+
|
|
136
|
+
You can write Lambda functions to process change events from a DynamoDB Table. An event is emitted to a DynamoDB stream (if configured) whenever a write (Put, Delete, Update)
|
|
137
|
+
operation is performed against the table. See [Using AWS Lambda with Amazon DynamoDB](https://docs.aws.amazon.com/lambda/latest/dg/with-ddb.html) for more information about configuring Lambda function event sources with DynamoDB.
|
|
138
|
+
|
|
139
|
+
To process events with a Lambda function, first create or update a DynamoDB table and enable a `stream` specification. Then, create a `DynamoEventSource`
|
|
140
|
+
and add it to your Lambda function. The following parameters will impact Amazon DynamoDB's polling behavior:
|
|
141
|
+
|
|
142
|
+
* __batchSize__: Determines how many records are buffered before invoking your lambda function - could impact your function's memory usage (if too high) and ability to keep up with incoming data velocity (if too low).
|
|
143
|
+
* __bisectBatchOnError__: If a batch encounters an error, this will cause the batch to be split in two and have each new smaller batch retried, allowing the records in error to be isolated.
|
|
144
|
+
* __reportBatchItemFailures__: Allow functions to return partially successful responses for a batch of records.
|
|
145
|
+
* __maxBatchingWindow__: The maximum amount of time to gather records before invoking the lambda. This increases the likelihood of a full batch at the cost of delayed processing.
|
|
146
|
+
* __maxRecordAge__: The maximum age of a record that will be sent to the function for processing. Records that exceed the max age will be treated as failures.
|
|
147
|
+
* __onFailure__: In the event a record fails after all retries or if the record age has exceeded the configured value, the record will be sent to SQS queue or SNS topic that is specified here
|
|
148
|
+
* __parallelizationFactor__: The number of batches to concurrently process on each shard.
|
|
149
|
+
* __retryAttempts__: The maximum number of times a record should be retried in the event of failure.
|
|
150
|
+
* __startingPosition__: Will determine where to being consumption, either at the most recent ('LATEST') record or the oldest record ('TRIM_HORIZON'). 'TRIM_HORIZON' will ensure you process all available data, while 'LATEST' will ignore all records that arrived prior to attaching the event source.
|
|
151
|
+
* __tumblingWindow__: The duration in seconds of a processing window when using streams.
|
|
152
|
+
* __enabled__: If the DynamoDB Streams event source mapping should be enabled. The default is true.
|
|
153
|
+
|
|
154
|
+
```ts
|
|
155
|
+
import * as dynamodb from 'aws-cdk-lib/aws-dynamodb';
|
|
156
|
+
import { DynamoEventSource, SqsDlq } from 'aws-cdk-lib/aws-lambda-event-sources';
|
|
157
|
+
|
|
158
|
+
declare const table: dynamodb.Table;
|
|
159
|
+
|
|
160
|
+
const deadLetterQueue = new sqs.Queue(this, 'deadLetterQueue');
|
|
161
|
+
|
|
162
|
+
declare const fn: lambda.Function;
|
|
163
|
+
fn.addEventSource(new DynamoEventSource(table, {
|
|
164
|
+
startingPosition: lambda.StartingPosition.TRIM_HORIZON,
|
|
165
|
+
batchSize: 5,
|
|
166
|
+
bisectBatchOnError: true,
|
|
167
|
+
onFailure: new SqsDlq(deadLetterQueue),
|
|
168
|
+
retryAttempts: 10,
|
|
169
|
+
}));
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
## Kinesis
|
|
173
|
+
|
|
174
|
+
You can write Lambda functions to process streaming data in Amazon Kinesis Streams. For more information about Amazon Kinesis, see [Amazon Kinesis
|
|
175
|
+
Service](https://aws.amazon.com/kinesis/data-streams/). To learn more about configuring Lambda function event sources with kinesis and view a sample event,
|
|
176
|
+
see [Amazon Kinesis Event](https://docs.aws.amazon.com/lambda/latest/dg/with-kinesis.html).
|
|
177
|
+
|
|
178
|
+
To set up Amazon Kinesis as an event source for AWS Lambda, you
|
|
179
|
+
first create or update an Amazon Kinesis stream and select custom values for the
|
|
180
|
+
event source parameters. The following parameters will impact Amazon Kinesis's polling
|
|
181
|
+
behavior:
|
|
182
|
+
|
|
183
|
+
* __batchSize__: Determines how many records are buffered before invoking your lambda function - could impact your function's memory usage (if too high) and ability to keep up with incoming data velocity (if too low).
|
|
184
|
+
* __bisectBatchOnError__: If a batch encounters an error, this will cause the batch to be split in two and have each new smaller batch retried, allowing the records in error to be isolated.
|
|
185
|
+
* __reportBatchItemFailures__: Allow functions to return partially successful responses for a batch of records.
|
|
186
|
+
* __maxBatchingWindow__: The maximum amount of time to gather records before invoking the lambda. This increases the likelihood of a full batch at the cost of possibly delaying processing.
|
|
187
|
+
* __maxRecordAge__: The maximum age of a record that will be sent to the function for processing. Records that exceed the max age will be treated as failures.
|
|
188
|
+
* __onFailure__: In the event a record fails and consumes all retries, the record will be sent to SQS queue or SNS topic that is specified here
|
|
189
|
+
* __parallelizationFactor__: The number of batches to concurrently process on each shard.
|
|
190
|
+
* __retryAttempts__: The maximum number of times a record should be retried in the event of failure.
|
|
191
|
+
* __startingPosition__: Will determine where to being consumption. 'LATEST' will start at the most recent record and ignore all records that arrived prior to attaching the event source, 'TRIM_HORIZON' will start at the oldest record and ensure you process all available data, while 'AT_TIMESTAMP' will start reading records from a specified time stamp. Note that 'AT_TIMESTAMP' is only supported for Amazon Kinesis streams.
|
|
192
|
+
* __startingPositionTimestamp__: The time stamp from which to start reading. Used in conjunction with __startingPosition__ when set to 'AT_TIMESTAMP'.
|
|
193
|
+
* __tumblingWindow__: The duration in seconds of a processing window when using streams.
|
|
194
|
+
* __enabled__: If the DynamoDB Streams event source mapping should be enabled. The default is true.
|
|
195
|
+
|
|
196
|
+
```ts
|
|
197
|
+
import * as kinesis from 'aws-cdk-lib/aws-kinesis';
|
|
198
|
+
import { KinesisEventSource } from 'aws-cdk-lib/aws-lambda-event-sources';
|
|
199
|
+
|
|
200
|
+
const stream = new kinesis.Stream(this, 'MyStream');
|
|
201
|
+
|
|
202
|
+
declare const myFunction: lambda.Function;
|
|
203
|
+
myFunction.addEventSource(new KinesisEventSource(stream, {
|
|
204
|
+
batchSize: 100, // default
|
|
205
|
+
startingPosition: lambda.StartingPosition.TRIM_HORIZON,
|
|
206
|
+
}));
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
## Kafka
|
|
210
|
+
|
|
211
|
+
You can write Lambda functions to process data either from [Amazon MSK](https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html) or a [self managed Kafka](https://docs.aws.amazon.com/lambda/latest/dg/kafka-smaa.html) cluster.
|
|
212
|
+
|
|
213
|
+
The following code sets up Amazon MSK as an event source for a lambda function. Credentials will need to be configured to access the
|
|
214
|
+
MSK cluster, as described in [Username/Password authentication](https://docs.aws.amazon.com/msk/latest/developerguide/msk-password.html).
|
|
215
|
+
|
|
216
|
+
```ts
|
|
217
|
+
import { Secret } from 'aws-cdk-lib/aws-secretsmanager';
|
|
218
|
+
import { ManagedKafkaEventSource } from 'aws-cdk-lib/aws-lambda-event-sources';
|
|
219
|
+
|
|
220
|
+
// Your MSK cluster arn
|
|
221
|
+
const clusterArn = 'arn:aws:kafka:us-east-1:0123456789019:cluster/SalesCluster/abcd1234-abcd-cafe-abab-9876543210ab-4';
|
|
222
|
+
|
|
223
|
+
// The Kafka topic you want to subscribe to
|
|
224
|
+
const topic = 'some-cool-topic';
|
|
225
|
+
|
|
226
|
+
// The secret that allows access to your MSK cluster
|
|
227
|
+
// You still have to make sure that it is associated with your cluster as described in the documentation
|
|
228
|
+
const secret = new Secret(this, 'Secret', { secretName: 'AmazonMSK_KafkaSecret' });
|
|
229
|
+
|
|
230
|
+
declare const myFunction: lambda.Function;
|
|
231
|
+
myFunction.addEventSource(new ManagedKafkaEventSource({
|
|
232
|
+
clusterArn,
|
|
233
|
+
topic: topic,
|
|
234
|
+
secret: secret,
|
|
235
|
+
batchSize: 100, // default
|
|
236
|
+
startingPosition: lambda.StartingPosition.TRIM_HORIZON,
|
|
237
|
+
}));
|
|
238
|
+
```
|
|
239
|
+
|
|
240
|
+
The following code sets up a self managed Kafka cluster as an event source. Username and password based authentication
|
|
241
|
+
will need to be set up as described in [Managing access and permissions](https://docs.aws.amazon.com/lambda/latest/dg/smaa-permissions.html#smaa-permissions-add-secret).
|
|
242
|
+
|
|
243
|
+
```ts
|
|
244
|
+
import { Secret } from 'aws-cdk-lib/aws-secretsmanager';
|
|
245
|
+
import { SelfManagedKafkaEventSource } from 'aws-cdk-lib/aws-lambda-event-sources';
|
|
246
|
+
|
|
247
|
+
// The list of Kafka brokers
|
|
248
|
+
const bootstrapServers = ['kafka-broker:9092'];
|
|
249
|
+
|
|
250
|
+
// The Kafka topic you want to subscribe to
|
|
251
|
+
const topic = 'some-cool-topic';
|
|
252
|
+
|
|
253
|
+
// The secret that allows access to your self hosted Kafka cluster
|
|
254
|
+
declare const secret: Secret;
|
|
255
|
+
|
|
256
|
+
// (Optional) The secret containing the root CA certificate that your Kafka brokers use for TLS encryption
|
|
257
|
+
declare const encryption: Secret;
|
|
258
|
+
|
|
259
|
+
// (Optional) The consumer group id to use when connecting to the Kafka broker. If omitted the UUID of the event source mapping will be used.
|
|
260
|
+
const consumerGroupId: "my-consumer-group-id";
|
|
261
|
+
|
|
262
|
+
declare const myFunction: lambda.Function;
|
|
263
|
+
myFunction.addEventSource(new SelfManagedKafkaEventSource({
|
|
264
|
+
bootstrapServers: bootstrapServers,
|
|
265
|
+
topic: topic,
|
|
266
|
+
consumerGroupId: consumerGroupId,
|
|
267
|
+
secret: secret,
|
|
268
|
+
batchSize: 100, // default
|
|
269
|
+
startingPosition: lambda.StartingPosition.TRIM_HORIZON,
|
|
270
|
+
encryption: encryption // optional
|
|
271
|
+
}));
|
|
272
|
+
```
|
|
273
|
+
|
|
274
|
+
If your self managed Kafka cluster is only reachable via VPC also configure `vpc` `vpcSubnets` and `securityGroup`.
|
|
275
|
+
|
|
276
|
+
## Roadmap
|
|
277
|
+
|
|
278
|
+
Eventually, this module will support all the event sources described under
|
|
279
|
+
[Supported Event
|
|
280
|
+
Sources](https://docs.aws.amazon.com/lambda/latest/dg/invoking-lambda-function.html)
|
|
281
|
+
in the AWS Lambda Developer Guide.
|