@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,27 @@
|
|
|
1
|
+
# Amazon ElastiCache Construct Library
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
This module is part of the [AWS Cloud Development Kit](https://github.com/aws/aws-cdk) project.
|
|
5
|
+
|
|
6
|
+
```ts nofixture
|
|
7
|
+
import * as elasticache from 'aws-cdk-lib/aws-elasticache';
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
<!--BEGIN CFNONLY DISCLAIMER-->
|
|
11
|
+
|
|
12
|
+
There are no official hand-written ([L2](https://docs.aws.amazon.com/cdk/latest/guide/constructs.html#constructs_lib)) constructs for this service yet. Here are some suggestions on how to proceed:
|
|
13
|
+
|
|
14
|
+
- Search [Construct Hub for ElastiCache construct libraries](https://constructs.dev/search?q=elasticache)
|
|
15
|
+
- Use the automatically generated [L1](https://docs.aws.amazon.com/cdk/latest/guide/constructs.html#constructs_l1_using) constructs, in the same way you would use [the CloudFormation AWS::ElastiCache resources](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/AWS_ElastiCache.html) directly.
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
<!--BEGIN CFNONLY DISCLAIMER-->
|
|
19
|
+
|
|
20
|
+
There are no hand-written ([L2](https://docs.aws.amazon.com/cdk/latest/guide/constructs.html#constructs_lib)) constructs for this service yet.
|
|
21
|
+
However, you can still use the automatically generated [L1](https://docs.aws.amazon.com/cdk/latest/guide/constructs.html#constructs_l1_using) constructs, and use this service exactly as you would using CloudFormation directly.
|
|
22
|
+
|
|
23
|
+
For more information on the resources and properties available for this service, see the [CloudFormation documentation for AWS::ElastiCache](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/AWS_ElastiCache.html).
|
|
24
|
+
|
|
25
|
+
(Read the [CDK Contributing Guide](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and submit an RFC if you are interested in contributing to this construct library.)
|
|
26
|
+
|
|
27
|
+
<!--END CFNONLY DISCLAIMER-->
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# AWS Elastic Beanstalk Construct Library
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
This module is part of the [AWS Cloud Development Kit](https://github.com/aws/aws-cdk) project.
|
|
5
|
+
|
|
6
|
+
```ts nofixture
|
|
7
|
+
import * as elasticbeanstalk from 'aws-cdk-lib/aws-elasticbeanstalk';
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
<!--BEGIN CFNONLY DISCLAIMER-->
|
|
11
|
+
|
|
12
|
+
There are no official hand-written ([L2](https://docs.aws.amazon.com/cdk/latest/guide/constructs.html#constructs_lib)) constructs for this service yet. Here are some suggestions on how to proceed:
|
|
13
|
+
|
|
14
|
+
- Search [Construct Hub for ElasticBeanstalk construct libraries](https://constructs.dev/search?q=elasticbeanstalk)
|
|
15
|
+
- Use the automatically generated [L1](https://docs.aws.amazon.com/cdk/latest/guide/constructs.html#constructs_l1_using) constructs, in the same way you would use [the CloudFormation AWS::ElasticBeanstalk resources](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/AWS_ElasticBeanstalk.html) directly.
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
<!--BEGIN CFNONLY DISCLAIMER-->
|
|
19
|
+
|
|
20
|
+
There are no hand-written ([L2](https://docs.aws.amazon.com/cdk/latest/guide/constructs.html#constructs_lib)) constructs for this service yet.
|
|
21
|
+
However, you can still use the automatically generated [L1](https://docs.aws.amazon.com/cdk/latest/guide/constructs.html#constructs_l1_using) constructs, and use this service exactly as you would using CloudFormation directly.
|
|
22
|
+
|
|
23
|
+
For more information on the resources and properties available for this service, see the [CloudFormation documentation for AWS::ElasticBeanstalk](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/AWS_ElasticBeanstalk.html).
|
|
24
|
+
|
|
25
|
+
(Read the [CDK Contributing Guide](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and submit an RFC if you are interested in contributing to this construct library.)
|
|
26
|
+
|
|
27
|
+
<!--END CFNONLY DISCLAIMER-->
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# Amazon Elastic Load Balancing Construct Library
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
The `@aws-cdk/aws-elasticloadbalancing` package provides constructs for configuring
|
|
5
|
+
classic load balancers.
|
|
6
|
+
|
|
7
|
+
## Configuring a Load Balancer
|
|
8
|
+
|
|
9
|
+
Load balancers send traffic to one or more AutoScalingGroups. Create a load
|
|
10
|
+
balancer, set up listeners and a health check, and supply the fleet(s) you want
|
|
11
|
+
to load balance to in the `targets` property.
|
|
12
|
+
|
|
13
|
+
```ts
|
|
14
|
+
declare const vpc: ec2.IVpc;
|
|
15
|
+
const lb = new elb.LoadBalancer(this, 'LB', {
|
|
16
|
+
vpc,
|
|
17
|
+
internetFacing: true,
|
|
18
|
+
healthCheck: {
|
|
19
|
+
port: 80,
|
|
20
|
+
},
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
declare const myAutoScalingGroup: autoscaling.AutoScalingGroup;
|
|
24
|
+
lb.addTarget(myAutoScalingGroup);
|
|
25
|
+
lb.addListener({
|
|
26
|
+
externalPort: 80,
|
|
27
|
+
});
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
The load balancer allows all connections by default. If you want to change that,
|
|
31
|
+
pass the `allowConnectionsFrom` property while setting up the listener:
|
|
32
|
+
|
|
33
|
+
```ts
|
|
34
|
+
declare const mySecurityGroup: ec2.SecurityGroup;
|
|
35
|
+
declare const lb: elb.LoadBalancer;
|
|
36
|
+
lb.addListener({
|
|
37
|
+
externalPort: 80,
|
|
38
|
+
allowConnectionsFrom: [mySecurityGroup],
|
|
39
|
+
});
|
|
40
|
+
```
|
|
@@ -0,0 +1,569 @@
|
|
|
1
|
+
# Amazon Elastic Load Balancing V2 Construct Library
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
The `@aws-cdk/aws-elasticloadbalancingv2` package provides constructs for
|
|
6
|
+
configuring application and network load balancers.
|
|
7
|
+
|
|
8
|
+
For more information, see the AWS documentation for
|
|
9
|
+
[Application Load Balancers](https://docs.aws.amazon.com/elasticloadbalancing/latest/application/introduction.html)
|
|
10
|
+
and [Network Load Balancers](https://docs.aws.amazon.com/elasticloadbalancing/latest/network/introduction.html).
|
|
11
|
+
|
|
12
|
+
## Defining an Application Load Balancer
|
|
13
|
+
|
|
14
|
+
You define an application load balancer by creating an instance of
|
|
15
|
+
`ApplicationLoadBalancer`, adding a Listener to the load balancer
|
|
16
|
+
and adding Targets to the Listener:
|
|
17
|
+
|
|
18
|
+
```ts
|
|
19
|
+
import { AutoScalingGroup } from 'aws-cdk-lib/aws-autoscaling';
|
|
20
|
+
declare const asg: AutoScalingGroup;
|
|
21
|
+
|
|
22
|
+
declare const vpc: ec2.Vpc;
|
|
23
|
+
|
|
24
|
+
// Create the load balancer in a VPC. 'internetFacing' is 'false'
|
|
25
|
+
// by default, which creates an internal load balancer.
|
|
26
|
+
const lb = new elbv2.ApplicationLoadBalancer(this, 'LB', {
|
|
27
|
+
vpc,
|
|
28
|
+
internetFacing: true
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
// Add a listener and open up the load balancer's security group
|
|
32
|
+
// to the world.
|
|
33
|
+
const listener = lb.addListener('Listener', {
|
|
34
|
+
port: 80,
|
|
35
|
+
|
|
36
|
+
// 'open: true' is the default, you can leave it out if you want. Set it
|
|
37
|
+
// to 'false' and use `listener.connections` if you want to be selective
|
|
38
|
+
// about who can access the load balancer.
|
|
39
|
+
open: true,
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
// Create an AutoScaling group and add it as a load balancing
|
|
43
|
+
// target to the listener.
|
|
44
|
+
listener.addTargets('ApplicationFleet', {
|
|
45
|
+
port: 8080,
|
|
46
|
+
targets: [asg]
|
|
47
|
+
});
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
The security groups of the load balancer and the target are automatically
|
|
51
|
+
updated to allow the network traffic.
|
|
52
|
+
|
|
53
|
+
One (or more) security groups can be associated with the load balancer;
|
|
54
|
+
if a security group isn't provided, one will be automatically created.
|
|
55
|
+
|
|
56
|
+
```ts
|
|
57
|
+
declare const vpc: ec2.Vpc;
|
|
58
|
+
|
|
59
|
+
const securityGroup1 = new ec2.SecurityGroup(this, 'SecurityGroup1', { vpc });
|
|
60
|
+
const lb = new elbv2.ApplicationLoadBalancer(this, 'LB', {
|
|
61
|
+
vpc,
|
|
62
|
+
internetFacing: true,
|
|
63
|
+
securityGroup: securityGroup1, // Optional - will be automatically created otherwise
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
const securityGroup2 = new ec2.SecurityGroup(this, 'SecurityGroup2', { vpc });
|
|
67
|
+
lb.addSecurityGroup(securityGroup2);
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
### Conditions
|
|
71
|
+
|
|
72
|
+
It's possible to route traffic to targets based on conditions in the incoming
|
|
73
|
+
HTTP request. For example, the following will route requests to the indicated
|
|
74
|
+
AutoScalingGroup only if the requested host in the request is either for
|
|
75
|
+
`example.com/ok` or `example.com/path`:
|
|
76
|
+
|
|
77
|
+
```ts
|
|
78
|
+
declare const listener: elbv2.ApplicationListener;
|
|
79
|
+
declare const asg: autoscaling.AutoScalingGroup;
|
|
80
|
+
|
|
81
|
+
listener.addTargets('Example.Com Fleet', {
|
|
82
|
+
priority: 10,
|
|
83
|
+
conditions: [
|
|
84
|
+
elbv2.ListenerCondition.hostHeaders(['example.com']),
|
|
85
|
+
elbv2.ListenerCondition.pathPatterns(['/ok', '/path']),
|
|
86
|
+
],
|
|
87
|
+
port: 8080,
|
|
88
|
+
targets: [asg]
|
|
89
|
+
});
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
A target with a condition contains either `pathPatterns` or `hostHeader`, or
|
|
93
|
+
both. If both are specified, both conditions must be met for the requests to
|
|
94
|
+
be routed to the given target. `priority` is a required field when you add
|
|
95
|
+
targets with conditions. The lowest number wins.
|
|
96
|
+
|
|
97
|
+
Every listener must have at least one target without conditions, which is
|
|
98
|
+
where all requests that didn't match any of the conditions will be sent.
|
|
99
|
+
|
|
100
|
+
### Convenience methods and more complex Actions
|
|
101
|
+
|
|
102
|
+
Routing traffic from a Load Balancer to a Target involves the following steps:
|
|
103
|
+
|
|
104
|
+
- Create a Target Group, register the Target into the Target Group
|
|
105
|
+
- Add an Action to the Listener which forwards traffic to the Target Group.
|
|
106
|
+
|
|
107
|
+
A new listener can be added to the Load Balancer by calling `addListener()`.
|
|
108
|
+
Listeners that have been added to the load balancer can be listed using the
|
|
109
|
+
`listeners` property. Note that the `listeners` property will throw an Error
|
|
110
|
+
for imported or looked up Load Balancers.
|
|
111
|
+
|
|
112
|
+
Various methods on the `Listener` take care of this work for you to a greater
|
|
113
|
+
or lesser extent:
|
|
114
|
+
|
|
115
|
+
- `addTargets()` performs both steps: automatically creates a Target Group and the
|
|
116
|
+
required Action.
|
|
117
|
+
- `addTargetGroups()` gives you more control: you create the Target Group (or
|
|
118
|
+
Target Groups) yourself and the method creates Action that routes traffic to
|
|
119
|
+
the Target Groups.
|
|
120
|
+
- `addAction()` gives you full control: you supply the Action and wire it up
|
|
121
|
+
to the Target Groups yourself (or access one of the other ELB routing features).
|
|
122
|
+
|
|
123
|
+
Using `addAction()` gives you access to some of the features of an Elastic Load
|
|
124
|
+
Balancer that the other two convenience methods don't:
|
|
125
|
+
|
|
126
|
+
- **Routing stickiness**: use `ListenerAction.forward()` and supply a
|
|
127
|
+
`stickinessDuration` to make sure requests are routed to the same target group
|
|
128
|
+
for a given duration.
|
|
129
|
+
- **Weighted Target Groups**: use `ListenerAction.weightedForward()`
|
|
130
|
+
to give different weights to different target groups.
|
|
131
|
+
- **Fixed Responses**: use `ListenerAction.fixedResponse()` to serve
|
|
132
|
+
a static response (ALB only).
|
|
133
|
+
- **Redirects**: use `ListenerAction.redirect()` to serve an HTTP
|
|
134
|
+
redirect response (ALB only).
|
|
135
|
+
- **Authentication**: use `ListenerAction.authenticateOidc()` to
|
|
136
|
+
perform OpenID authentication before serving a request (see the
|
|
137
|
+
`@aws-cdk/aws-elasticloadbalancingv2-actions` package for direct authentication
|
|
138
|
+
integration with Cognito) (ALB only).
|
|
139
|
+
|
|
140
|
+
Here's an example of serving a fixed response at the `/ok` URL:
|
|
141
|
+
|
|
142
|
+
```ts
|
|
143
|
+
declare const listener: elbv2.ApplicationListener;
|
|
144
|
+
|
|
145
|
+
listener.addAction('Fixed', {
|
|
146
|
+
priority: 10,
|
|
147
|
+
conditions: [
|
|
148
|
+
elbv2.ListenerCondition.pathPatterns(['/ok']),
|
|
149
|
+
],
|
|
150
|
+
action: elbv2.ListenerAction.fixedResponse(200, {
|
|
151
|
+
contentType: elbv2.ContentType.TEXT_PLAIN,
|
|
152
|
+
messageBody: 'OK',
|
|
153
|
+
})
|
|
154
|
+
});
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
Here's an example of using OIDC authentication before forwarding to a TargetGroup:
|
|
158
|
+
|
|
159
|
+
```ts
|
|
160
|
+
declare const listener: elbv2.ApplicationListener;
|
|
161
|
+
declare const myTargetGroup: elbv2.ApplicationTargetGroup;
|
|
162
|
+
|
|
163
|
+
listener.addAction('DefaultAction', {
|
|
164
|
+
action: elbv2.ListenerAction.authenticateOidc({
|
|
165
|
+
authorizationEndpoint: 'https://example.com/openid',
|
|
166
|
+
// Other OIDC properties here
|
|
167
|
+
clientId: '...',
|
|
168
|
+
clientSecret: SecretValue.secretsManager('...'),
|
|
169
|
+
issuer: '...',
|
|
170
|
+
tokenEndpoint: '...',
|
|
171
|
+
userInfoEndpoint: '...',
|
|
172
|
+
|
|
173
|
+
// Next
|
|
174
|
+
next: elbv2.ListenerAction.forward([myTargetGroup]),
|
|
175
|
+
}),
|
|
176
|
+
});
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
If you just want to redirect all incoming traffic on one port to another port, you can use the following code:
|
|
180
|
+
|
|
181
|
+
```ts
|
|
182
|
+
declare const lb: elbv2.ApplicationLoadBalancer;
|
|
183
|
+
|
|
184
|
+
lb.addRedirect({
|
|
185
|
+
sourceProtocol: elbv2.ApplicationProtocol.HTTPS,
|
|
186
|
+
sourcePort: 8443,
|
|
187
|
+
targetProtocol: elbv2.ApplicationProtocol.HTTP,
|
|
188
|
+
targetPort: 8080,
|
|
189
|
+
});
|
|
190
|
+
```
|
|
191
|
+
|
|
192
|
+
If you do not provide any options for this method, it redirects HTTP port 80 to HTTPS port 443.
|
|
193
|
+
|
|
194
|
+
By default all ingress traffic will be allowed on the source port. If you want to be more selective with your
|
|
195
|
+
ingress rules then set `open: false` and use the listener's `connections` object to selectively grant access to the listener.
|
|
196
|
+
|
|
197
|
+
## Defining a Network Load Balancer
|
|
198
|
+
|
|
199
|
+
Network Load Balancers are defined in a similar way to Application Load
|
|
200
|
+
Balancers:
|
|
201
|
+
|
|
202
|
+
```ts
|
|
203
|
+
declare const vpc: ec2.Vpc;
|
|
204
|
+
declare const asg: autoscaling.AutoScalingGroup;
|
|
205
|
+
|
|
206
|
+
// Create the load balancer in a VPC. 'internetFacing' is 'false'
|
|
207
|
+
// by default, which creates an internal load balancer.
|
|
208
|
+
const lb = new elbv2.NetworkLoadBalancer(this, 'LB', {
|
|
209
|
+
vpc,
|
|
210
|
+
internetFacing: true
|
|
211
|
+
});
|
|
212
|
+
|
|
213
|
+
// Add a listener on a particular port.
|
|
214
|
+
const listener = lb.addListener('Listener', {
|
|
215
|
+
port: 443,
|
|
216
|
+
});
|
|
217
|
+
|
|
218
|
+
// Add targets on a particular port.
|
|
219
|
+
listener.addTargets('AppFleet', {
|
|
220
|
+
port: 443,
|
|
221
|
+
targets: [asg]
|
|
222
|
+
});
|
|
223
|
+
```
|
|
224
|
+
|
|
225
|
+
One thing to keep in mind is that network load balancers do not have security
|
|
226
|
+
groups, and no automatic security group configuration is done for you. You will
|
|
227
|
+
have to configure the security groups of the target yourself to allow traffic by
|
|
228
|
+
clients and/or load balancer instances, depending on your target types. See
|
|
229
|
+
[Target Groups for your Network Load
|
|
230
|
+
Balancers](https://docs.aws.amazon.com/elasticloadbalancing/latest/network/load-balancer-target-groups.html)
|
|
231
|
+
and [Register targets with your Target
|
|
232
|
+
Group](https://docs.aws.amazon.com/elasticloadbalancing/latest/network/target-group-register-targets.html)
|
|
233
|
+
for more information.
|
|
234
|
+
|
|
235
|
+
## Targets and Target Groups
|
|
236
|
+
|
|
237
|
+
Application and Network Load Balancers organize load balancing targets in Target
|
|
238
|
+
Groups. If you add your balancing targets (such as AutoScalingGroups, ECS
|
|
239
|
+
services or individual instances) to your listener directly, the appropriate
|
|
240
|
+
`TargetGroup` will be automatically created for you.
|
|
241
|
+
|
|
242
|
+
If you need more control over the Target Groups created, create an instance of
|
|
243
|
+
`ApplicationTargetGroup` or `NetworkTargetGroup`, add the members you desire,
|
|
244
|
+
and add it to the listener by calling `addTargetGroups` instead of `addTargets`.
|
|
245
|
+
|
|
246
|
+
`addTargets()` will always return the Target Group it just created for you:
|
|
247
|
+
|
|
248
|
+
```ts
|
|
249
|
+
declare const listener: elbv2.NetworkListener;
|
|
250
|
+
declare const asg1: autoscaling.AutoScalingGroup;
|
|
251
|
+
declare const asg2: autoscaling.AutoScalingGroup;
|
|
252
|
+
|
|
253
|
+
const group = listener.addTargets('AppFleet', {
|
|
254
|
+
port: 443,
|
|
255
|
+
targets: [asg1],
|
|
256
|
+
});
|
|
257
|
+
|
|
258
|
+
group.addTarget(asg2);
|
|
259
|
+
```
|
|
260
|
+
|
|
261
|
+
### Sticky sessions for your Application Load Balancer
|
|
262
|
+
|
|
263
|
+
By default, an Application Load Balancer routes each request independently to a registered target based on the chosen load-balancing algorithm. However, you can use the sticky session feature (also known as session affinity) to enable the load balancer to bind a user's session to a specific target. This ensures that all requests from the user during the session are sent to the same target. This feature is useful for servers that maintain state information in order to provide a continuous experience to clients. To use sticky sessions, the client must support cookies.
|
|
264
|
+
|
|
265
|
+
Application Load Balancers support both duration-based cookies (`lb_cookie`) and application-based cookies (`app_cookie`). The key to managing sticky sessions is determining how long your load balancer should consistently route the user's request to the same target. Sticky sessions are enabled at the target group level. You can use a combination of duration-based stickiness, application-based stickiness, and no stickiness across all of your target groups.
|
|
266
|
+
|
|
267
|
+
```ts
|
|
268
|
+
declare const vpc: ec2.Vpc;
|
|
269
|
+
|
|
270
|
+
// Target group with duration-based stickiness with load-balancer generated cookie
|
|
271
|
+
const tg1 = new elbv2.ApplicationTargetGroup(this, 'TG1', {
|
|
272
|
+
targetType: elbv2.TargetType.INSTANCE,
|
|
273
|
+
port: 80,
|
|
274
|
+
stickinessCookieDuration: Duration.minutes(5),
|
|
275
|
+
vpc,
|
|
276
|
+
});
|
|
277
|
+
|
|
278
|
+
// Target group with application-based stickiness
|
|
279
|
+
const tg2 = new elbv2.ApplicationTargetGroup(this, 'TG2', {
|
|
280
|
+
targetType: elbv2.TargetType.INSTANCE,
|
|
281
|
+
port: 80,
|
|
282
|
+
stickinessCookieDuration: Duration.minutes(5),
|
|
283
|
+
stickinessCookieName: 'MyDeliciousCookie',
|
|
284
|
+
vpc,
|
|
285
|
+
});
|
|
286
|
+
```
|
|
287
|
+
|
|
288
|
+
For more information see: https://docs.aws.amazon.com/elasticloadbalancing/latest/application/sticky-sessions.html#application-based-stickiness
|
|
289
|
+
|
|
290
|
+
### Setting the target group protocol version
|
|
291
|
+
|
|
292
|
+
By default, Application Load Balancers send requests to targets using HTTP/1.1. You can use the [protocol version](https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-target-groups.html#target-group-protocol-version) to send requests to targets using HTTP/2 or gRPC.
|
|
293
|
+
|
|
294
|
+
```ts
|
|
295
|
+
declare const vpc: ec2.Vpc;
|
|
296
|
+
|
|
297
|
+
const tg = new elbv2.ApplicationTargetGroup(this, 'TG', {
|
|
298
|
+
targetType: elbv2.TargetType.IP,
|
|
299
|
+
port: 50051,
|
|
300
|
+
protocol: elbv2.ApplicationProtocol.HTTP,
|
|
301
|
+
protocolVersion: elbv2.ApplicationProtocolVersion.GRPC,
|
|
302
|
+
healthCheck: {
|
|
303
|
+
enabled: true,
|
|
304
|
+
healthyGrpcCodes: '0-99',
|
|
305
|
+
},
|
|
306
|
+
vpc,
|
|
307
|
+
});
|
|
308
|
+
```
|
|
309
|
+
|
|
310
|
+
## Using Lambda Targets
|
|
311
|
+
|
|
312
|
+
To use a Lambda Function as a target, use the integration class in the
|
|
313
|
+
`@aws-cdk/aws-elasticloadbalancingv2-targets` package:
|
|
314
|
+
|
|
315
|
+
```ts
|
|
316
|
+
import * as lambda from 'aws-cdk-lib/aws-lambda';
|
|
317
|
+
import * as targets from 'aws-cdk-lib/aws-elasticloadbalancingv2-targets';
|
|
318
|
+
|
|
319
|
+
declare const lambdaFunction: lambda.Function;
|
|
320
|
+
declare const lb: elbv2.ApplicationLoadBalancer;
|
|
321
|
+
|
|
322
|
+
const listener = lb.addListener('Listener', { port: 80 });
|
|
323
|
+
listener.addTargets('Targets', {
|
|
324
|
+
targets: [new targets.LambdaTarget(lambdaFunction)],
|
|
325
|
+
|
|
326
|
+
// For Lambda Targets, you need to explicitly enable health checks if you
|
|
327
|
+
// want them.
|
|
328
|
+
healthCheck: {
|
|
329
|
+
enabled: true,
|
|
330
|
+
}
|
|
331
|
+
});
|
|
332
|
+
```
|
|
333
|
+
|
|
334
|
+
Only a single Lambda function can be added to a single listener rule.
|
|
335
|
+
|
|
336
|
+
## Using Application Load Balancer Targets
|
|
337
|
+
|
|
338
|
+
To use a single application load balancer as a target for the network load balancer, use the integration class in the
|
|
339
|
+
`@aws-cdk/aws-elasticloadbalancingv2-targets` package:
|
|
340
|
+
|
|
341
|
+
```ts
|
|
342
|
+
import * as targets from 'aws-cdk-lib/aws-elasticloadbalancingv2-targets';
|
|
343
|
+
import * as ecs from 'aws-cdk-lib/aws-ecs';
|
|
344
|
+
import * as patterns from 'aws-cdk-lib/aws-ecs-patterns';
|
|
345
|
+
|
|
346
|
+
declare const vpc: ec2.Vpc;
|
|
347
|
+
|
|
348
|
+
const task = new ecs.FargateTaskDefinition(this, 'Task', { cpu: 256, memoryLimitMiB: 512 });
|
|
349
|
+
task.addContainer('nginx', {
|
|
350
|
+
image: ecs.ContainerImage.fromRegistry('public.ecr.aws/nginx/nginx:latest'),
|
|
351
|
+
portMappings: [{ containerPort: 80 }],
|
|
352
|
+
});
|
|
353
|
+
|
|
354
|
+
const svc = new patterns.ApplicationLoadBalancedFargateService(this, 'Service', {
|
|
355
|
+
vpc,
|
|
356
|
+
taskDefinition: task,
|
|
357
|
+
publicLoadBalancer: false,
|
|
358
|
+
});
|
|
359
|
+
|
|
360
|
+
const nlb = new elbv2.NetworkLoadBalancer(this, 'Nlb', {
|
|
361
|
+
vpc,
|
|
362
|
+
crossZoneEnabled: true,
|
|
363
|
+
internetFacing: true,
|
|
364
|
+
});
|
|
365
|
+
|
|
366
|
+
const listener = nlb.addListener('listener', { port: 80 });
|
|
367
|
+
|
|
368
|
+
listener.addTargets('Targets', {
|
|
369
|
+
targets: [new targets.AlbTarget(svc.loadBalancer, 80)],
|
|
370
|
+
port: 80,
|
|
371
|
+
});
|
|
372
|
+
|
|
373
|
+
new CfnOutput(this, 'NlbEndpoint', { value: `http://${nlb.loadBalancerDnsName}`})
|
|
374
|
+
```
|
|
375
|
+
|
|
376
|
+
Only the network load balancer is allowed to add the application load balancer as the target.
|
|
377
|
+
|
|
378
|
+
## Configuring Health Checks
|
|
379
|
+
|
|
380
|
+
Health checks are configured upon creation of a target group:
|
|
381
|
+
|
|
382
|
+
```ts
|
|
383
|
+
declare const listener: elbv2.ApplicationListener;
|
|
384
|
+
declare const asg: autoscaling.AutoScalingGroup;
|
|
385
|
+
|
|
386
|
+
listener.addTargets('AppFleet', {
|
|
387
|
+
port: 8080,
|
|
388
|
+
targets: [asg],
|
|
389
|
+
healthCheck: {
|
|
390
|
+
path: '/ping',
|
|
391
|
+
interval: Duration.minutes(1),
|
|
392
|
+
}
|
|
393
|
+
});
|
|
394
|
+
```
|
|
395
|
+
|
|
396
|
+
The health check can also be configured after creation by calling
|
|
397
|
+
`configureHealthCheck()` on the created object.
|
|
398
|
+
|
|
399
|
+
No attempts are made to configure security groups for the port you're
|
|
400
|
+
configuring a health check for, but if the health check is on the same port
|
|
401
|
+
you're routing traffic to, the security group already allows the traffic.
|
|
402
|
+
If not, you will have to configure the security groups appropriately:
|
|
403
|
+
|
|
404
|
+
```ts
|
|
405
|
+
declare const lb: elbv2.ApplicationLoadBalancer;
|
|
406
|
+
declare const listener: elbv2.ApplicationListener;
|
|
407
|
+
declare const asg: autoscaling.AutoScalingGroup;
|
|
408
|
+
|
|
409
|
+
listener.addTargets('AppFleet', {
|
|
410
|
+
port: 8080,
|
|
411
|
+
targets: [asg],
|
|
412
|
+
healthCheck: {
|
|
413
|
+
port: '8088',
|
|
414
|
+
}
|
|
415
|
+
});
|
|
416
|
+
|
|
417
|
+
asg.connections.allowFrom(lb, ec2.Port.tcp(8088));
|
|
418
|
+
```
|
|
419
|
+
|
|
420
|
+
## Using a Load Balancer from a different Stack
|
|
421
|
+
|
|
422
|
+
If you want to put your Load Balancer and the Targets it is load balancing to in
|
|
423
|
+
different stacks, you may not be able to use the convenience methods
|
|
424
|
+
`loadBalancer.addListener()` and `listener.addTargets()`.
|
|
425
|
+
|
|
426
|
+
The reason is that these methods will create resources in the same Stack as the
|
|
427
|
+
object they're called on, which may lead to cyclic references between stacks.
|
|
428
|
+
Instead, you will have to create an `ApplicationListener` in the target stack,
|
|
429
|
+
or an empty `TargetGroup` in the load balancer stack that you attach your
|
|
430
|
+
service to.
|
|
431
|
+
|
|
432
|
+
For an example of the alternatives while load balancing to an ECS service, see the
|
|
433
|
+
[ecs/cross-stack-load-balancer
|
|
434
|
+
example](https://github.com/aws-samples/aws-cdk-examples/tree/master/typescript/ecs/cross-stack-load-balancer/).
|
|
435
|
+
|
|
436
|
+
## Protocol for Load Balancer Targets
|
|
437
|
+
|
|
438
|
+
Constructs that want to be a load balancer target should implement
|
|
439
|
+
`IApplicationLoadBalancerTarget` and/or `INetworkLoadBalancerTarget`, and
|
|
440
|
+
provide an implementation for the function `attachToXxxTargetGroup()`, which can
|
|
441
|
+
call functions on the load balancer and should return metadata about the
|
|
442
|
+
load balancing target:
|
|
443
|
+
|
|
444
|
+
```ts
|
|
445
|
+
class MyTarget implements elbv2.IApplicationLoadBalancerTarget {
|
|
446
|
+
public attachToApplicationTargetGroup(targetGroup: elbv2.ApplicationTargetGroup): elbv2.LoadBalancerTargetProps {
|
|
447
|
+
// If we need to add security group rules
|
|
448
|
+
// targetGroup.registerConnectable(...);
|
|
449
|
+
return {
|
|
450
|
+
targetType: elbv2.TargetType.IP,
|
|
451
|
+
targetJson: { id: '1.2.3.4', port: 8080 },
|
|
452
|
+
};
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
```
|
|
456
|
+
|
|
457
|
+
`targetType` should be one of `Instance` or `Ip`. If the target can be
|
|
458
|
+
directly added to the target group, `targetJson` should contain the `id` of
|
|
459
|
+
the target (either instance ID or IP address depending on the type) and
|
|
460
|
+
optionally a `port` or `availabilityZone` override.
|
|
461
|
+
|
|
462
|
+
Application load balancer targets can call `registerConnectable()` on the
|
|
463
|
+
target group to register themselves for addition to the load balancer's security
|
|
464
|
+
group rules.
|
|
465
|
+
|
|
466
|
+
If your load balancer target requires that the TargetGroup has been
|
|
467
|
+
associated with a LoadBalancer before registration can happen (such as is the
|
|
468
|
+
case for ECS Services for example), take a resource dependency on
|
|
469
|
+
`targetGroup.loadBalancerAttached` as follows:
|
|
470
|
+
|
|
471
|
+
```ts
|
|
472
|
+
declare const resource: Resource;
|
|
473
|
+
declare const targetGroup: elbv2.ApplicationTargetGroup;
|
|
474
|
+
|
|
475
|
+
// Make sure that the listener has been created, and so the TargetGroup
|
|
476
|
+
// has been associated with the LoadBalancer, before 'resource' is created.
|
|
477
|
+
|
|
478
|
+
Node.of(resource).addDependency(targetGroup.loadBalancerAttached);
|
|
479
|
+
```
|
|
480
|
+
|
|
481
|
+
## Looking up Load Balancers and Listeners
|
|
482
|
+
|
|
483
|
+
You may look up load balancers and load balancer listeners by using one of the
|
|
484
|
+
following lookup methods:
|
|
485
|
+
|
|
486
|
+
- `ApplicationLoadBalancer.fromlookup(options)` - Look up an application load
|
|
487
|
+
balancer.
|
|
488
|
+
- `ApplicationListener.fromLookup(options)` - Look up an application load
|
|
489
|
+
balancer listener.
|
|
490
|
+
- `NetworkLoadBalancer.fromLookup(options)` - Look up a network load balancer.
|
|
491
|
+
- `NetworkListener.fromLookup(options)` - Look up a network load balancer
|
|
492
|
+
listener.
|
|
493
|
+
|
|
494
|
+
### Load Balancer lookup options
|
|
495
|
+
|
|
496
|
+
You may look up a load balancer by ARN or by associated tags. When you look a
|
|
497
|
+
load balancer up by ARN, that load balancer will be returned unless CDK detects
|
|
498
|
+
that the load balancer is of the wrong type. When you look up a load balancer by
|
|
499
|
+
tags, CDK will return the load balancer matching all specified tags. If more
|
|
500
|
+
than one load balancer matches, CDK will throw an error requesting that you
|
|
501
|
+
provide more specific criteria.
|
|
502
|
+
|
|
503
|
+
**Look up a Application Load Balancer by ARN**
|
|
504
|
+
|
|
505
|
+
```ts
|
|
506
|
+
const loadBalancer = elbv2.ApplicationLoadBalancer.fromLookup(this, 'ALB', {
|
|
507
|
+
loadBalancerArn: 'arn:aws:elasticloadbalancing:us-east-2:123456789012:loadbalancer/app/my-load-balancer/1234567890123456',
|
|
508
|
+
});
|
|
509
|
+
```
|
|
510
|
+
|
|
511
|
+
**Look up an Application Load Balancer by tags**
|
|
512
|
+
|
|
513
|
+
```ts
|
|
514
|
+
const loadBalancer = elbv2.ApplicationLoadBalancer.fromLookup(this, 'ALB', {
|
|
515
|
+
loadBalancerTags: {
|
|
516
|
+
// Finds a load balancer matching all tags.
|
|
517
|
+
some: 'tag',
|
|
518
|
+
someother: 'tag',
|
|
519
|
+
},
|
|
520
|
+
});
|
|
521
|
+
```
|
|
522
|
+
|
|
523
|
+
## Load Balancer Listener lookup options
|
|
524
|
+
|
|
525
|
+
You may look up a load balancer listener by the following criteria:
|
|
526
|
+
|
|
527
|
+
- Associated load balancer ARN
|
|
528
|
+
- Associated load balancer tags
|
|
529
|
+
- Listener ARN
|
|
530
|
+
- Listener port
|
|
531
|
+
- Listener protocol
|
|
532
|
+
|
|
533
|
+
The lookup method will return the matching listener. If more than one listener
|
|
534
|
+
matches, CDK will throw an error requesting that you specify additional
|
|
535
|
+
criteria.
|
|
536
|
+
|
|
537
|
+
**Look up a Listener by associated Load Balancer, Port, and Protocol**
|
|
538
|
+
|
|
539
|
+
```ts
|
|
540
|
+
const listener = elbv2.ApplicationListener.fromLookup(this, 'ALBListener', {
|
|
541
|
+
loadBalancerArn: 'arn:aws:elasticloadbalancing:us-east-2:123456789012:loadbalancer/app/my-load-balancer/1234567890123456',
|
|
542
|
+
listenerProtocol: elbv2.ApplicationProtocol.HTTPS,
|
|
543
|
+
listenerPort: 443,
|
|
544
|
+
});
|
|
545
|
+
```
|
|
546
|
+
|
|
547
|
+
**Look up a Listener by associated Load Balancer Tag, Port, and Protocol**
|
|
548
|
+
|
|
549
|
+
```ts
|
|
550
|
+
const listener = elbv2.ApplicationListener.fromLookup(this, 'ALBListener', {
|
|
551
|
+
loadBalancerTags: {
|
|
552
|
+
Cluster: 'MyClusterName',
|
|
553
|
+
},
|
|
554
|
+
listenerProtocol: elbv2.ApplicationProtocol.HTTPS,
|
|
555
|
+
listenerPort: 443,
|
|
556
|
+
});
|
|
557
|
+
```
|
|
558
|
+
|
|
559
|
+
**Look up a Network Listener by associated Load Balancer Tag, Port, and Protocol**
|
|
560
|
+
|
|
561
|
+
```ts
|
|
562
|
+
const listener = elbv2.NetworkListener.fromLookup(this, 'ALBListener', {
|
|
563
|
+
loadBalancerTags: {
|
|
564
|
+
Cluster: 'MyClusterName',
|
|
565
|
+
},
|
|
566
|
+
listenerProtocol: elbv2.Protocol.TCP,
|
|
567
|
+
listenerPort: 12345,
|
|
568
|
+
});
|
|
569
|
+
```
|