@gradientedge/cdk-utils 4.3.2 → 4.4.3
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/README.md +39 -28
- package/api-docs/AcmManager.html +622 -0
- package/api-docs/AcmProps.html +238 -0
- package/api-docs/AlarmProps.html +238 -0
- package/api-docs/AlarmStatusWidgetProps.html +238 -0
- package/api-docs/ApiDestinationEvent.html +297 -0
- package/api-docs/ApiDestinationEventType.html +238 -0
- package/api-docs/ApiDestinedLambda.html +297 -0
- package/api-docs/ApiDestinedLambdaEnvironment.html +238 -0
- package/api-docs/ApiDestinedLambdaType.html +238 -0
- package/api-docs/ApiDestinedRestApi.html +297 -0
- package/api-docs/ApiDestinedRestApiType.html +238 -0
- package/api-docs/ApiManager.html +766 -0
- package/api-docs/ApiToEventBridgeTarget.html +1877 -0
- package/api-docs/ApiToEventBridgeTarget.jpg +0 -0
- package/api-docs/ApiToEventBridgeTargetEventProps.html +238 -0
- package/api-docs/ApiToEventBridgeTargetLambdaProps.html +238 -0
- package/api-docs/ApiToEventBridgeTargetProps.html +238 -0
- package/api-docs/ApiToEventBridgeTargetRestApiProps.html +238 -0
- package/api-docs/AppConfigManager.html +1203 -0
- package/api-docs/AppConfigProps.html +238 -0
- package/api-docs/CloudFrontManager.html +2402 -0
- package/api-docs/CloudFrontProps.html +238 -0
- package/api-docs/CloudTrailManager.html +637 -0
- package/api-docs/CloudTrailProps.html +238 -0
- package/api-docs/CloudWatchManager.html +2986 -0
- package/api-docs/CloudfrontFunctionProps.html +238 -0
- package/api-docs/CodeBuildManager.html +736 -0
- package/api-docs/CommonConstruct.html +1299 -0
- package/api-docs/CommonStack.html +813 -0
- package/api-docs/CommonStackProps.html +238 -0
- package/api-docs/DashboardProps.html +238 -0
- package/api-docs/DistributionProps.html +238 -0
- package/api-docs/DynamodbManager.html +530 -0
- package/api-docs/EcrManager.html +530 -0
- package/api-docs/EcsClusterProps.html +238 -0
- package/api-docs/EcsManager.html +880 -0
- package/api-docs/EcsTaskProps.html +238 -0
- package/api-docs/EksClusterProps.html +238 -0
- package/api-docs/EksManager.html +580 -0
- package/api-docs/EventBusProps.html +238 -0
- package/api-docs/EventManager.html +1454 -0
- package/api-docs/EventRuleProps.html +238 -0
- package/api-docs/GraphQLApiLambda.html +1671 -0
- package/api-docs/GraphQLApiLambda.jpg +0 -0
- package/api-docs/GraphQlApiLambdaEnvironment.html +238 -0
- package/api-docs/GraphQlApiLambdaProps.html +238 -0
- package/api-docs/GraphWidgetProps.html +238 -0
- package/api-docs/HealthCheck.html +238 -0
- package/api-docs/IamManager.html +3821 -0
- package/api-docs/LambdaEdgeProps.html +238 -0
- package/api-docs/LambdaEnvironment.html +238 -0
- package/api-docs/LambdaManager.html +2378 -0
- package/api-docs/LambdaProps.html +238 -0
- package/api-docs/LifecycleRule.html +238 -0
- package/api-docs/LogManager.html +955 -0
- package/api-docs/LogProps.html +238 -0
- package/api-docs/LogQueryWidgetProps.html +238 -0
- package/api-docs/MetricFilterProps.html +238 -0
- package/api-docs/MetricProps.html +238 -0
- package/api-docs/NumericWidgetProps.html +238 -0
- package/api-docs/Route53Manager.html +1460 -0
- package/api-docs/Route53Props.html +238 -0
- package/api-docs/RuleProps.html +238 -0
- package/api-docs/S3BucketProps.html +238 -0
- package/api-docs/S3Manager.html +1546 -0
- package/api-docs/SSMParameterReader.html +431 -0
- package/api-docs/SSMParameterReaderProps.html +238 -0
- package/api-docs/SecretsManager.html +1140 -0
- package/api-docs/SiteWithEcsBackend.html +2391 -0
- package/api-docs/SiteWithEcsBackendProps.html +238 -0
- package/api-docs/SnsManager.html +780 -0
- package/api-docs/SsmManager.html +955 -0
- package/api-docs/StaticSite.html +1358 -0
- package/api-docs/StaticSiteProps.html +238 -0
- package/api-docs/SubscriptionProps.html +238 -0
- package/api-docs/TableProps.html +238 -0
- package/api-docs/TextWidgetProps.html +238 -0
- package/api-docs/VpcManager.html +986 -0
- package/api-docs/WafIPSetProps.html +238 -0
- package/api-docs/WafManager.html +730 -0
- package/api-docs/WafWebACLProps.html +238 -0
- package/api-docs/common_construct.ts.html +279 -0
- package/api-docs/common_stack.ts.html +303 -0
- package/api-docs/construct_api-to-eventbridge-target_api-destination-event.ts.html +175 -0
- package/api-docs/construct_api-to-eventbridge-target_api-destined-lambda.ts.html +178 -0
- package/api-docs/construct_api-to-eventbridge-target_api-destined-rest-api.ts.html +190 -0
- package/api-docs/construct_api-to-eventbridge-target_main.ts.html +751 -0
- package/api-docs/construct_graphql-api-lambda_main.ts.html +408 -0
- package/api-docs/construct_site-with-ecs-backend_main.ts.html +544 -0
- package/api-docs/construct_static-site_main.ts.html +374 -0
- package/api-docs/global.html +1530 -0
- package/api-docs/index.html +208 -0
- package/api-docs/logo.png +0 -0
- package/api-docs/manager_aws_acm-manager.ts.html +236 -0
- package/api-docs/manager_aws_api-manager.ts.html +260 -0
- package/api-docs/manager_aws_app-config-manager.ts.html +310 -0
- package/api-docs/manager_aws_cloudfront-manager.ts.html +491 -0
- package/api-docs/manager_aws_cloudtrail-manager.ts.html +251 -0
- package/api-docs/manager_aws_cloudwatch-manager.ts.html +553 -0
- package/api-docs/manager_aws_codebuild-manager.ts.html +240 -0
- package/api-docs/manager_aws_dynamodb-manager.ts.html +219 -0
- package/api-docs/manager_aws_ecr-manager.ts.html +199 -0
- package/api-docs/manager_aws_ecs-manager.ts.html +259 -0
- package/api-docs/manager_aws_eks-manager.ts.html +260 -0
- package/api-docs/manager_aws_event-manager.ts.html +336 -0
- package/api-docs/manager_aws_iam-manager.ts.html +573 -0
- package/api-docs/manager_aws_lambda-manager.ts.html +400 -0
- package/api-docs/manager_aws_log-manager.ts.html +259 -0
- package/api-docs/manager_aws_route53-manager.ts.html +333 -0
- package/api-docs/manager_aws_s3-manager.ts.html +361 -0
- package/api-docs/manager_aws_secrets-manager.ts.html +274 -0
- package/api-docs/manager_aws_sns-manager.ts.html +246 -0
- package/api-docs/manager_aws_ssm-manager.ts.html +273 -0
- package/api-docs/manager_aws_vpc-manager.ts.html +244 -0
- package/api-docs/manager_aws_waf-manager.ts.html +232 -0
- package/api-docs/scripts/app.min.js +1 -0
- package/api-docs/scripts/linenumber.js +26 -0
- package/api-docs/scripts/search.js +39 -0
- package/api-docs/styles/app.min.css +1 -0
- package/api-docs/styles/iframe.css +13 -0
- package/api-docs/styles/prettify-jsdoc.css +111 -0
- package/api-docs/styles/prettify-tomorrow.css +132 -0
- package/api-docs/styles/reset.css +44 -0
- package/api-docs/styles.css +113 -0
- package/api-docs/tutorial-Architecture.html +151 -0
- package/api-docs/tutorial-Build.html +150 -0
- package/api-docs/tutorial-CI-CD.html +154 -0
- package/api-docs/tutorial-Development.html +227 -0
- package/api-docs/types_aws_index.ts.html +665 -0
- package/api-docs/utils_aws_index.ts.html +192 -0
- package/api-docs/utils_index.ts.html +227 -0
- package/app/api-destined-function/node_modules/.yarn-integrity +180 -0
- package/app/api-destined-function/node_modules/@types/uuid/LICENSE +21 -0
- package/app/api-destined-function/node_modules/@types/uuid/README.md +16 -0
- package/app/api-destined-function/node_modules/@types/uuid/index.d.mts +10 -0
- package/app/api-destined-function/node_modules/@types/uuid/index.d.ts +80 -0
- package/app/api-destined-function/node_modules/@types/uuid/package.json +54 -0
- package/app/api-destined-function/node_modules/balanced-match/LICENSE.md +21 -0
- package/app/api-destined-function/node_modules/balanced-match/README.md +97 -0
- package/app/api-destined-function/node_modules/balanced-match/index.js +62 -0
- package/app/api-destined-function/node_modules/balanced-match/package.json +48 -0
- package/app/api-destined-function/node_modules/brace-expansion/LICENSE +21 -0
- package/app/api-destined-function/node_modules/brace-expansion/README.md +129 -0
- package/app/api-destined-function/node_modules/brace-expansion/index.js +201 -0
- package/app/api-destined-function/node_modules/brace-expansion/package.json +47 -0
- package/app/api-destined-function/node_modules/concat-map/.travis.yml +4 -0
- package/app/api-destined-function/node_modules/concat-map/LICENSE +18 -0
- package/app/api-destined-function/node_modules/concat-map/README.markdown +62 -0
- package/app/api-destined-function/node_modules/concat-map/example/map.js +6 -0
- package/app/api-destined-function/node_modules/concat-map/index.js +13 -0
- package/app/api-destined-function/node_modules/concat-map/package.json +43 -0
- package/app/api-destined-function/node_modules/fs.realpath/LICENSE +43 -0
- package/app/api-destined-function/node_modules/fs.realpath/README.md +33 -0
- package/app/api-destined-function/node_modules/fs.realpath/index.js +66 -0
- package/app/api-destined-function/node_modules/fs.realpath/old.js +303 -0
- package/app/api-destined-function/node_modules/fs.realpath/package.json +26 -0
- package/app/api-destined-function/node_modules/glob/LICENSE +21 -0
- package/app/api-destined-function/node_modules/glob/README.md +378 -0
- package/app/api-destined-function/node_modules/glob/common.js +236 -0
- package/app/api-destined-function/node_modules/glob/glob.js +787 -0
- package/app/api-destined-function/node_modules/glob/package.json +52 -0
- package/app/api-destined-function/node_modules/glob/sync.js +483 -0
- package/app/api-destined-function/node_modules/inflight/LICENSE +15 -0
- package/app/api-destined-function/node_modules/inflight/README.md +37 -0
- package/app/api-destined-function/node_modules/inflight/inflight.js +54 -0
- package/app/api-destined-function/node_modules/inflight/package.json +29 -0
- package/app/api-destined-function/node_modules/inherits/LICENSE +16 -0
- package/app/api-destined-function/node_modules/inherits/README.md +42 -0
- package/app/api-destined-function/node_modules/inherits/inherits.js +9 -0
- package/app/api-destined-function/node_modules/inherits/inherits_browser.js +27 -0
- package/app/api-destined-function/node_modules/inherits/package.json +29 -0
- package/app/api-destined-function/node_modules/minimatch/LICENSE +15 -0
- package/app/api-destined-function/node_modules/minimatch/README.md +209 -0
- package/app/api-destined-function/node_modules/minimatch/minimatch.js +923 -0
- package/app/api-destined-function/node_modules/minimatch/package.json +30 -0
- package/app/api-destined-function/node_modules/mkdirp/LICENSE +21 -0
- package/app/api-destined-function/node_modules/mkdirp/bin/cmd.js +68 -0
- package/app/api-destined-function/node_modules/mkdirp/index.js +31 -0
- package/app/api-destined-function/node_modules/mkdirp/lib/find-made.js +29 -0
- package/app/api-destined-function/node_modules/mkdirp/lib/mkdirp-manual.js +64 -0
- package/app/api-destined-function/node_modules/mkdirp/lib/mkdirp-native.js +39 -0
- package/app/api-destined-function/node_modules/mkdirp/lib/opts-arg.js +23 -0
- package/app/api-destined-function/node_modules/mkdirp/lib/path-arg.js +29 -0
- package/app/api-destined-function/node_modules/mkdirp/lib/use-native.js +10 -0
- package/app/api-destined-function/node_modules/mkdirp/package.json +44 -0
- package/app/api-destined-function/node_modules/mkdirp/readme.markdown +266 -0
- package/app/api-destined-function/node_modules/once/LICENSE +15 -0
- package/app/api-destined-function/node_modules/once/README.md +79 -0
- package/app/api-destined-function/node_modules/once/once.js +42 -0
- package/app/api-destined-function/node_modules/once/package.json +33 -0
- package/app/api-destined-function/node_modules/path-is-absolute/index.js +20 -0
- package/app/api-destined-function/node_modules/path-is-absolute/license +21 -0
- package/app/api-destined-function/node_modules/path-is-absolute/package.json +43 -0
- package/app/api-destined-function/node_modules/path-is-absolute/readme.md +59 -0
- package/app/api-destined-function/node_modules/rimraf/LICENSE +15 -0
- package/app/api-destined-function/node_modules/rimraf/README.md +101 -0
- package/app/api-destined-function/node_modules/rimraf/bin.js +68 -0
- package/app/api-destined-function/node_modules/rimraf/package.json +32 -0
- package/app/api-destined-function/node_modules/rimraf/rimraf.js +360 -0
- package/app/api-destined-function/node_modules/uuid/LICENSE.md +9 -0
- package/app/api-destined-function/node_modules/uuid/README.md +505 -0
- package/app/api-destined-function/node_modules/uuid/package.json +135 -0
- package/app/api-destined-function/node_modules/uuid/wrapper.mjs +10 -0
- package/app/api-destined-function/node_modules/wrappy/LICENSE +15 -0
- package/app/api-destined-function/node_modules/wrappy/README.md +36 -0
- package/app/api-destined-function/node_modules/wrappy/package.json +29 -0
- package/app/api-destined-function/node_modules/wrappy/wrappy.js +33 -0
- package/app/api-destined-function/package.json +29 -0
- package/app/api-destined-function/src/lib/lambda.ts +31 -0
- package/img/ApiToEventBridgeTarget.jpg +0 -0
- package/img/GraphQLApiLambda.jpg +0 -0
- package/img/logo.png +0 -0
- package/package.json +17 -18
- package/src/lib/common/{commonConstruct.ts → construct.ts} +3 -13
- package/src/lib/common/index.ts +2 -2
- package/src/lib/common/{commonStack.ts → stack.ts} +5 -14
- package/src/lib/construct/api-to-eventbridge-target/api-destination-event.ts +17 -0
- package/src/lib/construct/api-to-eventbridge-target/api-destined-lambda.ts +20 -0
- package/src/lib/construct/api-to-eventbridge-target/api-destined-rest-api.ts +32 -0
- package/src/lib/construct/api-to-eventbridge-target/index.ts +4 -0
- package/src/lib/construct/api-to-eventbridge-target/main.ts +593 -0
- package/src/lib/construct/graphql-api-lambda/index.ts +1 -0
- package/src/lib/construct/{graphQLApiLambda.ts → graphql-api-lambda/main.ts} +11 -20
- package/src/lib/construct/index.ts +4 -3
- package/src/lib/construct/site-with-ecs-backend/index.ts +1 -0
- package/src/lib/construct/{siteWithEcsBackend.ts → site-with-ecs-backend/main.ts} +6 -17
- package/src/lib/construct/static-site/index.ts +1 -0
- package/src/lib/construct/{staticSite.ts → static-site/main.ts} +5 -16
- package/src/lib/manager/aws/{acmManager.ts → acm-manager.ts} +3 -2
- package/src/lib/manager/aws/{apiManager.ts → api-manager.ts} +6 -5
- package/src/lib/manager/aws/{appConfigManager.ts → app-config-manager.ts} +5 -3
- package/src/lib/manager/aws/{cloudFrontManager.ts → cloudfront-manager.ts} +3 -2
- package/src/lib/manager/aws/{cloudTrailManager.ts → cloudtrail-manager.ts} +3 -2
- package/src/lib/manager/aws/{cloudWatchManager.ts → cloudwatch-manager.ts} +5 -3
- package/src/lib/manager/aws/{codeBuildManager.ts → codebuild-manager.ts} +3 -2
- package/src/lib/manager/aws/{dynamodbManager.ts → dynamodb-manager.ts} +3 -2
- package/src/lib/manager/aws/{ecrManager.ts → ecr-manager.ts} +3 -2
- package/src/lib/manager/aws/{ecsManager.ts → ecs-manager.ts} +3 -2
- package/src/lib/manager/aws/{eksManager.ts → eks-manager.ts} +3 -2
- package/src/lib/manager/aws/{eventManager.ts → event-manager.ts} +57 -2
- package/src/lib/manager/aws/{iamManager.ts → iam-manager.ts} +23 -17
- package/src/lib/manager/aws/index.ts +22 -22
- package/src/lib/manager/aws/{lambdaManager.ts → lambda-manager.ts} +4 -3
- package/src/lib/manager/aws/{logManager.ts → log-manager.ts} +3 -2
- package/src/lib/manager/aws/{route53Manager.ts → route53-manager.ts} +4 -3
- package/src/lib/manager/aws/{s3Manager.ts → s3-manager.ts} +3 -2
- package/src/lib/manager/aws/{secretsManager.ts → secrets-manager.ts} +3 -2
- package/src/lib/manager/aws/{snsManager.ts → sns-manager.ts} +3 -2
- package/src/lib/manager/aws/{ssmManager.ts → ssm-manager.ts} +6 -9
- package/src/lib/manager/aws/{vpcManager.ts → vpc-manager.ts} +8 -5
- package/src/lib/manager/aws/{wafManager.ts → waf-manager.ts} +3 -2
- package/src/lib/types/aws/index.ts +221 -32
- package/src/lib/utils/aws/index.ts +2 -2
- package/src/lib/utils/index.ts +8 -8
- package/theme/styles.css +113 -0
- package/.releaserc +0 -9
- package/dist/index.d.ts +0 -6
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/src/lib/common/commonConstruct.d.ts +0 -90
- package/dist/src/lib/common/commonConstruct.d.ts.map +0 -1
- package/dist/src/lib/common/commonConstruct.js +0 -144
- package/dist/src/lib/common/commonConstruct.js.map +0 -1
- package/dist/src/lib/common/commonStack.d.ts +0 -65
- package/dist/src/lib/common/commonStack.d.ts.map +0 -1
- package/dist/src/lib/common/commonStack.js +0 -158
- package/dist/src/lib/common/commonStack.js.map +0 -1
- package/dist/src/lib/common/index.d.ts +0 -3
- package/dist/src/lib/common/index.d.ts.map +0 -1
- package/dist/src/lib/common/index.js +0 -15
- package/dist/src/lib/common/index.js.map +0 -1
- package/dist/src/lib/construct/graphQLApiLambda.d.ts +0 -122
- package/dist/src/lib/construct/graphQLApiLambda.d.ts.map +0 -1
- package/dist/src/lib/construct/graphQLApiLambda.js +0 -211
- package/dist/src/lib/construct/graphQLApiLambda.js.map +0 -1
- package/dist/src/lib/construct/index.d.ts +0 -4
- package/dist/src/lib/construct/index.d.ts.map +0 -1
- package/dist/src/lib/construct/index.js +0 -16
- package/dist/src/lib/construct/index.js.map +0 -1
- package/dist/src/lib/construct/siteWithEcsBackend.d.ts +0 -179
- package/dist/src/lib/construct/siteWithEcsBackend.d.ts.map +0 -1
- package/dist/src/lib/construct/siteWithEcsBackend.js +0 -339
- package/dist/src/lib/construct/siteWithEcsBackend.js.map +0 -1
- package/dist/src/lib/construct/staticSite.d.ts +0 -106
- package/dist/src/lib/construct/staticSite.d.ts.map +0 -1
- package/dist/src/lib/construct/staticSite.js +0 -180
- package/dist/src/lib/construct/staticSite.js.map +0 -1
- package/dist/src/lib/manager/aws/acmManager.d.ts +0 -46
- package/dist/src/lib/manager/aws/acmManager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/acmManager.js +0 -90
- package/dist/src/lib/manager/aws/acmManager.js.map +0 -1
- package/dist/src/lib/manager/aws/apiManager.d.ts +0 -43
- package/dist/src/lib/manager/aws/apiManager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/apiManager.js +0 -111
- package/dist/src/lib/manager/aws/apiManager.js.map +0 -1
- package/dist/src/lib/manager/aws/appConfigManager.d.ts +0 -64
- package/dist/src/lib/manager/aws/appConfigManager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/appConfigManager.js +0 -147
- package/dist/src/lib/manager/aws/appConfigManager.js.map +0 -1
- package/dist/src/lib/manager/aws/cloudFrontManager.d.ts +0 -112
- package/dist/src/lib/manager/aws/cloudFrontManager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/cloudFrontManager.js +0 -282
- package/dist/src/lib/manager/aws/cloudFrontManager.js.map +0 -1
- package/dist/src/lib/manager/aws/cloudTrailManager.d.ts +0 -48
- package/dist/src/lib/manager/aws/cloudTrailManager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/cloudTrailManager.js +0 -99
- package/dist/src/lib/manager/aws/cloudTrailManager.js.map +0 -1
- package/dist/src/lib/manager/aws/cloudWatchManager.d.ts +0 -121
- package/dist/src/lib/manager/aws/cloudWatchManager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/cloudWatchManager.js +0 -351
- package/dist/src/lib/manager/aws/cloudWatchManager.js.map +0 -1
- package/dist/src/lib/manager/aws/codeBuildManager.d.ts +0 -40
- package/dist/src/lib/manager/aws/codeBuildManager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/codeBuildManager.js +0 -94
- package/dist/src/lib/manager/aws/codeBuildManager.js.map +0 -1
- package/dist/src/lib/manager/aws/dynamodbManager.d.ts +0 -32
- package/dist/src/lib/manager/aws/dynamodbManager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/dynamodbManager.js +0 -79
- package/dist/src/lib/manager/aws/dynamodbManager.js.map +0 -1
- package/dist/src/lib/manager/aws/ecrManager.d.ts +0 -31
- package/dist/src/lib/manager/aws/ecrManager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/ecrManager.js +0 -60
- package/dist/src/lib/manager/aws/ecrManager.js.map +0 -1
- package/dist/src/lib/manager/aws/ecsManager.d.ts +0 -48
- package/dist/src/lib/manager/aws/ecsManager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/ecsManager.js +0 -103
- package/dist/src/lib/manager/aws/ecsManager.js.map +0 -1
- package/dist/src/lib/manager/aws/eksManager.d.ts +0 -36
- package/dist/src/lib/manager/aws/eksManager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/eksManager.js +0 -109
- package/dist/src/lib/manager/aws/eksManager.js.map +0 -1
- package/dist/src/lib/manager/aws/eventManager.d.ts +0 -51
- package/dist/src/lib/manager/aws/eventManager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/eventManager.js +0 -120
- package/dist/src/lib/manager/aws/eventManager.js.map +0 -1
- package/dist/src/lib/manager/aws/iamManager.d.ts +0 -156
- package/dist/src/lib/manager/aws/iamManager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/iamManager.js +0 -376
- package/dist/src/lib/manager/aws/iamManager.js.map +0 -1
- package/dist/src/lib/manager/aws/index.d.ts +0 -23
- package/dist/src/lib/manager/aws/index.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/index.js +0 -35
- package/dist/src/lib/manager/aws/index.js.map +0 -1
- package/dist/src/lib/manager/aws/lambdaManager.d.ts +0 -94
- package/dist/src/lib/manager/aws/lambdaManager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/lambdaManager.js +0 -196
- package/dist/src/lib/manager/aws/lambdaManager.js.map +0 -1
- package/dist/src/lib/manager/aws/logManager.d.ts +0 -51
- package/dist/src/lib/manager/aws/logManager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/logManager.js +0 -108
- package/dist/src/lib/manager/aws/logManager.js.map +0 -1
- package/dist/src/lib/manager/aws/route53Manager.d.ts +0 -68
- package/dist/src/lib/manager/aws/route53Manager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/route53Manager.js +0 -158
- package/dist/src/lib/manager/aws/route53Manager.js.map +0 -1
- package/dist/src/lib/manager/aws/s3Manager.d.ts +0 -73
- package/dist/src/lib/manager/aws/s3Manager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/s3Manager.js +0 -202
- package/dist/src/lib/manager/aws/s3Manager.js.map +0 -1
- package/dist/src/lib/manager/aws/secretsManager.d.ts +0 -57
- package/dist/src/lib/manager/aws/secretsManager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/secretsManager.js +0 -116
- package/dist/src/lib/manager/aws/secretsManager.js.map +0 -1
- package/dist/src/lib/manager/aws/snsManager.d.ts +0 -42
- package/dist/src/lib/manager/aws/snsManager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/snsManager.js +0 -90
- package/dist/src/lib/manager/aws/snsManager.js.map +0 -1
- package/dist/src/lib/manager/aws/ssmManager.d.ts +0 -64
- package/dist/src/lib/manager/aws/ssmManager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/ssmManager.js +0 -128
- package/dist/src/lib/manager/aws/ssmManager.js.map +0 -1
- package/dist/src/lib/manager/aws/vpcManager.d.ts +0 -44
- package/dist/src/lib/manager/aws/vpcManager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/vpcManager.js +0 -92
- package/dist/src/lib/manager/aws/vpcManager.js.map +0 -1
- package/dist/src/lib/manager/aws/wafManager.d.ts +0 -39
- package/dist/src/lib/manager/aws/wafManager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/wafManager.js +0 -89
- package/dist/src/lib/manager/aws/wafManager.js.map +0 -1
- package/dist/src/lib/manager/index.d.ts +0 -2
- package/dist/src/lib/manager/index.d.ts.map +0 -1
- package/dist/src/lib/manager/index.js +0 -14
- package/dist/src/lib/manager/index.js.map +0 -1
- package/dist/src/lib/types/aws/index.d.ts +0 -294
- package/dist/src/lib/types/aws/index.d.ts.map +0 -1
- package/dist/src/lib/types/aws/index.js +0 -3
- package/dist/src/lib/types/aws/index.js.map +0 -1
- package/dist/src/lib/types/index.d.ts +0 -2
- package/dist/src/lib/types/index.d.ts.map +0 -1
- package/dist/src/lib/types/index.js +0 -14
- package/dist/src/lib/types/index.js.map +0 -1
- package/dist/src/lib/utils/aws/index.d.ts +0 -16
- package/dist/src/lib/utils/aws/index.d.ts.map +0 -1
- package/dist/src/lib/utils/aws/index.js +0 -50
- package/dist/src/lib/utils/aws/index.js.map +0 -1
- package/dist/src/lib/utils/index.d.ts +0 -63
- package/dist/src/lib/utils/index.d.ts.map +0 -1
- package/dist/src/lib/utils/index.js +0 -85
- package/dist/src/lib/utils/index.js.map +0 -1
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# wrappy
|
|
2
|
+
|
|
3
|
+
Callback wrapping utility
|
|
4
|
+
|
|
5
|
+
## USAGE
|
|
6
|
+
|
|
7
|
+
```javascript
|
|
8
|
+
var wrappy = require("wrappy")
|
|
9
|
+
|
|
10
|
+
// var wrapper = wrappy(wrapperFunction)
|
|
11
|
+
|
|
12
|
+
// make sure a cb is called only once
|
|
13
|
+
// See also: http://npm.im/once for this specific use case
|
|
14
|
+
var once = wrappy(function (cb) {
|
|
15
|
+
var called = false
|
|
16
|
+
return function () {
|
|
17
|
+
if (called) return
|
|
18
|
+
called = true
|
|
19
|
+
return cb.apply(this, arguments)
|
|
20
|
+
}
|
|
21
|
+
})
|
|
22
|
+
|
|
23
|
+
function printBoo () {
|
|
24
|
+
console.log('boo')
|
|
25
|
+
}
|
|
26
|
+
// has some rando property
|
|
27
|
+
printBoo.iAmBooPrinter = true
|
|
28
|
+
|
|
29
|
+
var onlyPrintOnce = once(printBoo)
|
|
30
|
+
|
|
31
|
+
onlyPrintOnce() // prints 'boo'
|
|
32
|
+
onlyPrintOnce() // does nothing
|
|
33
|
+
|
|
34
|
+
// random property is retained!
|
|
35
|
+
assert.equal(onlyPrintOnce.iAmBooPrinter, true)
|
|
36
|
+
```
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "wrappy",
|
|
3
|
+
"version": "1.0.2",
|
|
4
|
+
"description": "Callback wrapping utility",
|
|
5
|
+
"main": "wrappy.js",
|
|
6
|
+
"files": [
|
|
7
|
+
"wrappy.js"
|
|
8
|
+
],
|
|
9
|
+
"directories": {
|
|
10
|
+
"test": "test"
|
|
11
|
+
},
|
|
12
|
+
"dependencies": {},
|
|
13
|
+
"devDependencies": {
|
|
14
|
+
"tap": "^2.3.1"
|
|
15
|
+
},
|
|
16
|
+
"scripts": {
|
|
17
|
+
"test": "tap --coverage test/*.js"
|
|
18
|
+
},
|
|
19
|
+
"repository": {
|
|
20
|
+
"type": "git",
|
|
21
|
+
"url": "https://github.com/npm/wrappy"
|
|
22
|
+
},
|
|
23
|
+
"author": "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/)",
|
|
24
|
+
"license": "ISC",
|
|
25
|
+
"bugs": {
|
|
26
|
+
"url": "https://github.com/npm/wrappy/issues"
|
|
27
|
+
},
|
|
28
|
+
"homepage": "https://github.com/npm/wrappy"
|
|
29
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
// Returns a wrapper function that returns a wrapped callback
|
|
2
|
+
// The wrapper function should do some stuff, and return a
|
|
3
|
+
// presumably different callback function.
|
|
4
|
+
// This makes sure that own properties are retained, so that
|
|
5
|
+
// decorations and such are not lost along the way.
|
|
6
|
+
module.exports = wrappy
|
|
7
|
+
function wrappy (fn, cb) {
|
|
8
|
+
if (fn && cb) return wrappy(fn)(cb)
|
|
9
|
+
|
|
10
|
+
if (typeof fn !== 'function')
|
|
11
|
+
throw new TypeError('need wrapper function')
|
|
12
|
+
|
|
13
|
+
Object.keys(fn).forEach(function (k) {
|
|
14
|
+
wrapper[k] = fn[k]
|
|
15
|
+
})
|
|
16
|
+
|
|
17
|
+
return wrapper
|
|
18
|
+
|
|
19
|
+
function wrapper() {
|
|
20
|
+
var args = new Array(arguments.length)
|
|
21
|
+
for (var i = 0; i < args.length; i++) {
|
|
22
|
+
args[i] = arguments[i]
|
|
23
|
+
}
|
|
24
|
+
var ret = fn.apply(this, args)
|
|
25
|
+
var cb = args[args.length-1]
|
|
26
|
+
if (typeof ret === 'function' && ret !== cb) {
|
|
27
|
+
Object.keys(cb).forEach(function (k) {
|
|
28
|
+
ret[k] = cb[k]
|
|
29
|
+
})
|
|
30
|
+
}
|
|
31
|
+
return ret
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@gradientedge/cdk-utils-api-destined-function",
|
|
3
|
+
"version": "0.0.0-SNAPSHOT",
|
|
4
|
+
"description": "Application for API Destined Function",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"license": "UNLICENSED",
|
|
7
|
+
"engines": {
|
|
8
|
+
"node": ">=14.16.0 <15"
|
|
9
|
+
},
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "git+https://github.com/gradientedge/cdk-utils.git"
|
|
13
|
+
},
|
|
14
|
+
"scripts": {
|
|
15
|
+
"build": "yarn package:function && yarn copy:layers",
|
|
16
|
+
"copy:layers": "cp -R layers ../../dist/app/api-destined-function",
|
|
17
|
+
"package:function": "mkdirp layers/nodejs && cp -R package.json layers/nodejs && cd layers/nodejs && yarn install --production --no-lockfile",
|
|
18
|
+
"start": "node dist/index",
|
|
19
|
+
"test": "npx jest --ci --runInBand --passWithNoTests"
|
|
20
|
+
},
|
|
21
|
+
"dependencies": {
|
|
22
|
+
"@types/uuid": "^8.3.4",
|
|
23
|
+
"uuid": "^8.3.2"
|
|
24
|
+
},
|
|
25
|
+
"devDependencies": {
|
|
26
|
+
"mkdirp": "^1.0.4",
|
|
27
|
+
"rimraf": "^3.0.2"
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { v4 as uuidv4 } from 'uuid'
|
|
2
|
+
|
|
3
|
+
export const processEvent = (event: any) => {
|
|
4
|
+
if (!event) throw new Error('Invalid Event')
|
|
5
|
+
|
|
6
|
+
return {
|
|
7
|
+
statusCode: 200,
|
|
8
|
+
id: uuidv4(),
|
|
9
|
+
message: 'Webhook call successful',
|
|
10
|
+
body: {
|
|
11
|
+
payload: {
|
|
12
|
+
body: event.body,
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
origin: event.headers?.origin,
|
|
16
|
+
source: 'custom:api-destined-lambda',
|
|
17
|
+
sourceId: process.env.SOURCE_ID,
|
|
18
|
+
httpMethod: event.httpMethod,
|
|
19
|
+
path: event.path,
|
|
20
|
+
referer: event.headers?.referer,
|
|
21
|
+
resource: event.resource,
|
|
22
|
+
success: true,
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
exports.handler = async (event: any, context: any, callback: any) => {
|
|
27
|
+
console.log('Event:', JSON.stringify(event))
|
|
28
|
+
console.log('Context:', JSON.stringify(context))
|
|
29
|
+
console.log('Event Records:', JSON.stringify(event.Records))
|
|
30
|
+
return callback(null, processEvent(event))
|
|
31
|
+
}
|
|
Binary file
|
|
Binary file
|
package/img/logo.png
ADDED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gradientedge/cdk-utils",
|
|
3
|
-
"version": "4.3
|
|
3
|
+
"version": "4.4.3",
|
|
4
4
|
"description": "Utilities for AWS CDK provisioning",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"engines": {
|
|
@@ -25,17 +25,17 @@
|
|
|
25
25
|
},
|
|
26
26
|
"homepage": "https://github.com/gradientedge/cdk-utils#readme",
|
|
27
27
|
"scripts": {
|
|
28
|
-
"build": "rimraf dist/ && npx tsc",
|
|
28
|
+
"build": "rimraf dist/ && npx tsc && npx lerna run build",
|
|
29
29
|
"ci": "yarn install --frozen-lockfile && yarn build && yarn validate && yarn docs",
|
|
30
30
|
"cz": "npx cz",
|
|
31
|
-
"typedocs": "rimraf api-docs/ && npx typedoc",
|
|
32
31
|
"docs": "rimraf api-docs && npx jsdoc --pedantic -c jsdoc.json .",
|
|
32
|
+
"lint": "yarn prettify && eslint **/*.ts --max-warnings=0",
|
|
33
33
|
"fix": "yarn prettify && eslint --fix **/*.ts",
|
|
34
|
+
"postinstall": "npx lerna bootstrap && yarn build",
|
|
34
35
|
"prettier": "npx prettier --check \"**/*.{ts,json,md}\"",
|
|
35
36
|
"prettify": "npx prettier --write \"**/*.{ts,json,md}\"",
|
|
36
|
-
"test": "npx jest",
|
|
37
|
-
"validate": "yarn prettier && yarn test"
|
|
38
|
-
"watch": "npx tsc --watch"
|
|
37
|
+
"test": "rimraf coverage && npx jest --ci --runInBand",
|
|
38
|
+
"validate": "yarn prettier && yarn test"
|
|
39
39
|
},
|
|
40
40
|
"husky": {
|
|
41
41
|
"hooks": {
|
|
@@ -45,33 +45,34 @@
|
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"@aws-cdk/aws-lambda-python-alpha": "2.10.0-alpha.0",
|
|
47
47
|
"@types/lodash": "^4.14.178",
|
|
48
|
-
"@types/node": "^17.0.
|
|
48
|
+
"@types/node": "^17.0.16",
|
|
49
49
|
"app-root-path": "^3.0.0",
|
|
50
50
|
"aws-cdk-lib": "^2.10.0",
|
|
51
|
-
"aws-sdk": "^2.
|
|
52
|
-
"constructs": "^10.0.
|
|
51
|
+
"aws-sdk": "^2.1070.0",
|
|
52
|
+
"constructs": "^10.0.55",
|
|
53
|
+
"lerna": "^4.0.0",
|
|
53
54
|
"lodash": "^4.17.21",
|
|
54
55
|
"moment": "^2.29.1",
|
|
55
56
|
"nconf": "^0.11.3",
|
|
56
57
|
"pluralize": "^8.0.0",
|
|
57
|
-
"ts-node": "^10.
|
|
58
|
+
"ts-node": "^10.5.0"
|
|
58
59
|
},
|
|
59
60
|
"devDependencies": {
|
|
60
61
|
"@babel/plugin-proposal-class-properties": "^7.16.7",
|
|
61
62
|
"@types/jest": "^27.4.0",
|
|
62
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
63
|
-
"@typescript-eslint/parser": "^5.
|
|
63
|
+
"@typescript-eslint/eslint-plugin": "^5.11.0",
|
|
64
|
+
"@typescript-eslint/parser": "^5.11.0",
|
|
64
65
|
"aws-cdk": "*",
|
|
65
66
|
"babel-eslint": "^10.1.0",
|
|
66
67
|
"better-docs": "^2.7.1",
|
|
67
68
|
"codecov": "^3.8.3",
|
|
68
69
|
"commitizen": "^4.2.4",
|
|
69
|
-
"dotenv": "^
|
|
70
|
+
"dotenv": "^16.0.0",
|
|
70
71
|
"eslint": "^8.8.0",
|
|
71
72
|
"eslint-config-prettier": "^8.3.0",
|
|
72
73
|
"eslint-plugin-import": "^2.25.4",
|
|
73
74
|
"husky": "^7.0.4",
|
|
74
|
-
"jest": "^27.
|
|
75
|
+
"jest": "^27.5.0",
|
|
75
76
|
"jest-extended": "^2.0.0",
|
|
76
77
|
"jest-junit": "^13.0.0",
|
|
77
78
|
"jsdoc": "^3.6.10",
|
|
@@ -82,13 +83,11 @@
|
|
|
82
83
|
"rimraf": "^3.0.2",
|
|
83
84
|
"semantic-release": "^19.0.2",
|
|
84
85
|
"ts-jest": "^27.1.3",
|
|
85
|
-
"ts-node": "^10.
|
|
86
|
-
"typedoc": "^0.22.11",
|
|
87
|
-
"typedoc-plugin-mermaid": "^1.6.0",
|
|
86
|
+
"ts-node": "^10.5.0",
|
|
88
87
|
"typescript": "4.5.5"
|
|
89
88
|
},
|
|
90
89
|
"optionalDependencies": {
|
|
91
|
-
"@babel/core": "^7.
|
|
90
|
+
"@babel/core": "^7.17.0",
|
|
92
91
|
"prop-types": "^15.8.1",
|
|
93
92
|
"react": "^17.0.2",
|
|
94
93
|
"react-dom": "^17.0.2"
|
|
@@ -6,8 +6,9 @@ import * as utils from '../utils'
|
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* @stability stable
|
|
9
|
-
* @category
|
|
10
|
-
* @
|
|
9
|
+
* @category cdk-utils.common-construct
|
|
10
|
+
* @subcategory Construct
|
|
11
|
+
* @classdesc Common construct to use as a base for all higher level constructs.
|
|
11
12
|
*
|
|
12
13
|
* @example
|
|
13
14
|
* import { CommonConstruct } from '@gradientedge/cdk-utils';
|
|
@@ -18,11 +19,6 @@ import * as utils from '../utils'
|
|
|
18
19
|
* this.props = props;
|
|
19
20
|
* };
|
|
20
21
|
* };
|
|
21
|
-
*
|
|
22
|
-
* @mermaid
|
|
23
|
-
* graph LR;
|
|
24
|
-
* A[CommonConstruct]-.->|extends|B(Construct);
|
|
25
|
-
* B(Construct)-->|implements|C(IConstruct);
|
|
26
22
|
*/
|
|
27
23
|
export class CommonConstruct extends Construct {
|
|
28
24
|
props: types.CommonStackProps
|
|
@@ -50,12 +46,6 @@ export class CommonConstruct extends Construct {
|
|
|
50
46
|
wafManager: aws.WafManager
|
|
51
47
|
fullyQualifiedDomainName: string
|
|
52
48
|
|
|
53
|
-
/**
|
|
54
|
-
* @summary Constructor to initialise the CommonConstruct
|
|
55
|
-
* @param {Construct} parent
|
|
56
|
-
* @param {string} id scoped id of the resource
|
|
57
|
-
* @param {CommonStackProps} props
|
|
58
|
-
*/
|
|
59
49
|
constructor(parent: Construct, id: string, props: types.CommonStackProps) {
|
|
60
50
|
super(parent, id)
|
|
61
51
|
this.props = props
|
package/src/lib/common/index.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
export * from './
|
|
1
|
+
export * from './construct'
|
|
2
|
+
export * from './stack'
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import * as cdk from 'aws-cdk-lib'
|
|
2
2
|
import { CommonStackProps } from '../types'
|
|
3
3
|
import { isDevStage } from '../utils'
|
|
4
|
-
import { CommonConstruct } from './
|
|
4
|
+
import { CommonConstruct } from './construct'
|
|
5
5
|
|
|
6
6
|
const appRoot = require('app-root-path')
|
|
7
7
|
const fs = require('fs')
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* @stability stable
|
|
11
|
-
* @category
|
|
12
|
-
* @
|
|
11
|
+
* @category cdk-utils.common-stack
|
|
12
|
+
* @subcategory Construct
|
|
13
|
+
* @classdesc Common stack to use as a base for all higher level constructs.
|
|
13
14
|
*
|
|
14
15
|
* @example
|
|
15
16
|
* import { CommonStack } from '@gradientedge/cdk-utils'
|
|
@@ -20,21 +21,11 @@ const fs = require('fs')
|
|
|
20
21
|
* // provision resources
|
|
21
22
|
* }
|
|
22
23
|
* }
|
|
23
|
-
*
|
|
24
|
-
* @mermaid
|
|
25
|
-
* graph LR;
|
|
26
|
-
* A[CommonStack]-.->|extends|B(cdk.Stack);
|
|
27
|
-
* B(cdk.Stack)-->|implements|C(cdk.ITaggable);
|
|
28
24
|
*/
|
|
29
25
|
export class CommonStack extends cdk.Stack {
|
|
30
26
|
construct: CommonConstruct
|
|
31
27
|
props: CommonStackProps
|
|
32
|
-
|
|
33
|
-
* @summary Constructor to initialise the CommonStack
|
|
34
|
-
* @param {cdk.App} parent
|
|
35
|
-
* @param {string} name
|
|
36
|
-
* @param {cdk.StackProps} props
|
|
37
|
-
*/
|
|
28
|
+
|
|
38
29
|
constructor(parent: cdk.App, name: string, props: cdk.StackProps) {
|
|
39
30
|
super(parent, name, props)
|
|
40
31
|
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as events from 'aws-cdk-lib/aws-events'
|
|
2
|
+
import * as logs from 'aws-cdk-lib/aws-logs'
|
|
3
|
+
import * as types from '../../types/aws'
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @stability stable
|
|
7
|
+
* @category cdk-utils.api-to-eventbridge-target
|
|
8
|
+
* @subcategory member
|
|
9
|
+
* @classdesc Provides a construct to contain event resources for ApiToEventBridgeTarget
|
|
10
|
+
*/
|
|
11
|
+
export class ApiDestinationEvent implements types.ApiDestinationEventType {
|
|
12
|
+
eventBus: events.IEventBus
|
|
13
|
+
logGroupFailure: logs.LogGroup
|
|
14
|
+
logGroupSuccess: logs.LogGroup
|
|
15
|
+
ruleFailure: events.Rule
|
|
16
|
+
ruleSuccess: events.Rule
|
|
17
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as iam from 'aws-cdk-lib/aws-iam'
|
|
2
|
+
import * as lambda from 'aws-cdk-lib/aws-lambda'
|
|
3
|
+
import * as destinations from 'aws-cdk-lib/aws-lambda-destinations'
|
|
4
|
+
import * as types from '../../types/aws'
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* @stability stable
|
|
8
|
+
* @category cdk-utils.api-to-eventbridge-target
|
|
9
|
+
* @subcategory member
|
|
10
|
+
* @classdesc Provides a construct to contain lambda resources for ApiToEventBridgeTarget
|
|
11
|
+
*/
|
|
12
|
+
export class ApiDestinedLambda implements types.ApiDestinedLambdaType {
|
|
13
|
+
destinationFailure: destinations.EventBridgeDestination
|
|
14
|
+
destinationSuccess: destinations.EventBridgeDestination
|
|
15
|
+
environment: types.ApiDestinedLambdaEnvironment
|
|
16
|
+
function: lambda.Function
|
|
17
|
+
layers: lambda.LayerVersion[]
|
|
18
|
+
policy: iam.PolicyDocument
|
|
19
|
+
role: iam.Role
|
|
20
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as apig from 'aws-cdk-lib/aws-apigateway'
|
|
2
|
+
import * as acm from 'aws-cdk-lib/aws-certificatemanager'
|
|
3
|
+
import * as iam from 'aws-cdk-lib/aws-iam'
|
|
4
|
+
import * as route53 from 'aws-cdk-lib/aws-route53'
|
|
5
|
+
import * as sns from 'aws-cdk-lib/aws-sns'
|
|
6
|
+
import * as types from '../../types/aws'
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* @stability stable
|
|
10
|
+
* @category cdk-utils.api-to-eventbridge-target
|
|
11
|
+
* @subcategory member
|
|
12
|
+
* @classdesc Provides a construct to contain api resources for ApiToEventBridgeTarget
|
|
13
|
+
*/
|
|
14
|
+
export class ApiDestinedRestApi implements types.ApiDestinedRestApiType {
|
|
15
|
+
api: apig.RestApi
|
|
16
|
+
certificate: acm.ICertificate
|
|
17
|
+
domain: apig.DomainName
|
|
18
|
+
errorResponseModel: apig.Model
|
|
19
|
+
hostedZone: route53.IHostedZone
|
|
20
|
+
integration: apig.Integration
|
|
21
|
+
integrationErrorResponse: apig.IntegrationResponse
|
|
22
|
+
integrationRequestParameters: { [p: string]: string }
|
|
23
|
+
integrationRequestTemplates: { [p: string]: string }
|
|
24
|
+
integrationResponse: apig.IntegrationResponse
|
|
25
|
+
method: apig.Method
|
|
26
|
+
methodErrorResponse: apig.MethodResponse
|
|
27
|
+
methodResponse: apig.MethodResponse
|
|
28
|
+
resource: apig.Resource
|
|
29
|
+
responseModel: apig.Model
|
|
30
|
+
topic: sns.Topic
|
|
31
|
+
topicRole: iam.Role
|
|
32
|
+
}
|