@gradientedge/cdk-utils 4.4.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/app/api-destined-function/package.json +0 -1
- package/package.json +3 -3
- package/app/api-destined-function/node_modules/uuid/dist/bin/uuid +0 -2
- package/app/api-destined-function/node_modules/uuid/dist/esm-browser/index.js +0 -9
- package/app/api-destined-function/node_modules/uuid/dist/esm-browser/md5.js +0 -215
- package/app/api-destined-function/node_modules/uuid/dist/esm-browser/nil.js +0 -1
- package/app/api-destined-function/node_modules/uuid/dist/esm-browser/parse.js +0 -35
- package/app/api-destined-function/node_modules/uuid/dist/esm-browser/regex.js +0 -1
- package/app/api-destined-function/node_modules/uuid/dist/esm-browser/rng.js +0 -19
- package/app/api-destined-function/node_modules/uuid/dist/esm-browser/sha1.js +0 -96
- package/app/api-destined-function/node_modules/uuid/dist/esm-browser/stringify.js +0 -30
- package/app/api-destined-function/node_modules/uuid/dist/esm-browser/v1.js +0 -95
- package/app/api-destined-function/node_modules/uuid/dist/esm-browser/v3.js +0 -4
- package/app/api-destined-function/node_modules/uuid/dist/esm-browser/v35.js +0 -64
- package/app/api-destined-function/node_modules/uuid/dist/esm-browser/v4.js +0 -24
- package/app/api-destined-function/node_modules/uuid/dist/esm-browser/v5.js +0 -4
- package/app/api-destined-function/node_modules/uuid/dist/esm-browser/validate.js +0 -7
- package/app/api-destined-function/node_modules/uuid/dist/esm-browser/version.js +0 -11
- package/app/api-destined-function/node_modules/uuid/dist/esm-node/index.js +0 -9
- package/app/api-destined-function/node_modules/uuid/dist/esm-node/md5.js +0 -13
- package/app/api-destined-function/node_modules/uuid/dist/esm-node/nil.js +0 -1
- package/app/api-destined-function/node_modules/uuid/dist/esm-node/parse.js +0 -35
- package/app/api-destined-function/node_modules/uuid/dist/esm-node/regex.js +0 -1
- package/app/api-destined-function/node_modules/uuid/dist/esm-node/rng.js +0 -12
- package/app/api-destined-function/node_modules/uuid/dist/esm-node/sha1.js +0 -13
- package/app/api-destined-function/node_modules/uuid/dist/esm-node/stringify.js +0 -29
- package/app/api-destined-function/node_modules/uuid/dist/esm-node/v1.js +0 -95
- package/app/api-destined-function/node_modules/uuid/dist/esm-node/v3.js +0 -4
- package/app/api-destined-function/node_modules/uuid/dist/esm-node/v35.js +0 -64
- package/app/api-destined-function/node_modules/uuid/dist/esm-node/v4.js +0 -24
- package/app/api-destined-function/node_modules/uuid/dist/esm-node/v5.js +0 -4
- package/app/api-destined-function/node_modules/uuid/dist/esm-node/validate.js +0 -7
- package/app/api-destined-function/node_modules/uuid/dist/esm-node/version.js +0 -11
- package/app/api-destined-function/node_modules/uuid/dist/index.js +0 -79
- package/app/api-destined-function/node_modules/uuid/dist/md5-browser.js +0 -223
- package/app/api-destined-function/node_modules/uuid/dist/md5.js +0 -23
- package/app/api-destined-function/node_modules/uuid/dist/nil.js +0 -8
- package/app/api-destined-function/node_modules/uuid/dist/parse.js +0 -45
- package/app/api-destined-function/node_modules/uuid/dist/regex.js +0 -8
- package/app/api-destined-function/node_modules/uuid/dist/rng-browser.js +0 -26
- package/app/api-destined-function/node_modules/uuid/dist/rng.js +0 -24
- package/app/api-destined-function/node_modules/uuid/dist/sha1-browser.js +0 -104
- package/app/api-destined-function/node_modules/uuid/dist/sha1.js +0 -23
- package/app/api-destined-function/node_modules/uuid/dist/stringify.js +0 -39
- package/app/api-destined-function/node_modules/uuid/dist/umd/uuid.min.js +0 -1
- package/app/api-destined-function/node_modules/uuid/dist/umd/uuidNIL.min.js +0 -1
- package/app/api-destined-function/node_modules/uuid/dist/umd/uuidParse.min.js +0 -1
- package/app/api-destined-function/node_modules/uuid/dist/umd/uuidStringify.min.js +0 -1
- package/app/api-destined-function/node_modules/uuid/dist/umd/uuidValidate.min.js +0 -1
- package/app/api-destined-function/node_modules/uuid/dist/umd/uuidVersion.min.js +0 -1
- package/app/api-destined-function/node_modules/uuid/dist/umd/uuidv1.min.js +0 -1
- package/app/api-destined-function/node_modules/uuid/dist/umd/uuidv3.min.js +0 -1
- package/app/api-destined-function/node_modules/uuid/dist/umd/uuidv4.min.js +0 -1
- package/app/api-destined-function/node_modules/uuid/dist/umd/uuidv5.min.js +0 -1
- package/app/api-destined-function/node_modules/uuid/dist/uuid-bin.js +0 -85
- package/app/api-destined-function/node_modules/uuid/dist/v1.js +0 -107
- package/app/api-destined-function/node_modules/uuid/dist/v3.js +0 -16
- package/app/api-destined-function/node_modules/uuid/dist/v35.js +0 -78
- package/app/api-destined-function/node_modules/uuid/dist/v4.js +0 -37
- package/app/api-destined-function/node_modules/uuid/dist/v5.js +0 -16
- package/app/api-destined-function/node_modules/uuid/dist/validate.js +0 -17
- package/app/api-destined-function/node_modules/uuid/dist/version.js +0 -21
- package/dist/app/api-destined-function/layers/nodejs/node_modules/.bin/uuid +0 -2
- package/dist/app/api-destined-function/layers/nodejs/node_modules/.yarn-integrity +0 -109
- package/dist/app/api-destined-function/layers/nodejs/node_modules/@types/uuid/LICENSE +0 -21
- package/dist/app/api-destined-function/layers/nodejs/node_modules/@types/uuid/README.md +0 -16
- package/dist/app/api-destined-function/layers/nodejs/node_modules/@types/uuid/index.d.mts +0 -10
- package/dist/app/api-destined-function/layers/nodejs/node_modules/@types/uuid/index.d.ts +0 -80
- package/dist/app/api-destined-function/layers/nodejs/node_modules/@types/uuid/package.json +0 -54
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/LICENSE.md +0 -9
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/README.md +0 -505
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/bin/uuid +0 -2
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/index.js +0 -9
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/md5.js +0 -215
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/nil.js +0 -1
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/parse.js +0 -35
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/regex.js +0 -1
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/rng.js +0 -19
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/sha1.js +0 -96
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/stringify.js +0 -30
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/v1.js +0 -95
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/v3.js +0 -4
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/v35.js +0 -64
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/v4.js +0 -24
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/v5.js +0 -4
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/validate.js +0 -7
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/version.js +0 -11
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/index.js +0 -9
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/md5.js +0 -13
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/nil.js +0 -1
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/parse.js +0 -35
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/regex.js +0 -1
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/rng.js +0 -12
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/sha1.js +0 -13
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/stringify.js +0 -29
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/v1.js +0 -95
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/v3.js +0 -4
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/v35.js +0 -64
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/v4.js +0 -24
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/v5.js +0 -4
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/validate.js +0 -7
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/version.js +0 -11
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/index.js +0 -79
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/md5-browser.js +0 -223
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/md5.js +0 -23
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/nil.js +0 -8
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/parse.js +0 -45
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/regex.js +0 -8
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/rng-browser.js +0 -26
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/rng.js +0 -24
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/sha1-browser.js +0 -104
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/sha1.js +0 -23
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/stringify.js +0 -39
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/umd/uuid.min.js +0 -1
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/umd/uuidNIL.min.js +0 -1
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/umd/uuidParse.min.js +0 -1
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/umd/uuidStringify.min.js +0 -1
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/umd/uuidValidate.min.js +0 -1
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/umd/uuidVersion.min.js +0 -1
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/umd/uuidv1.min.js +0 -1
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/umd/uuidv3.min.js +0 -1
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/umd/uuidv4.min.js +0 -1
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/umd/uuidv5.min.js +0 -1
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/uuid-bin.js +0 -85
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/v1.js +0 -107
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/v3.js +0 -16
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/v35.js +0 -78
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/v4.js +0 -37
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/v5.js +0 -16
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/validate.js +0 -17
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/version.js +0 -21
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/package.json +0 -135
- package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/wrapper.mjs +0 -10
- package/dist/app/api-destined-function/layers/nodejs/package.json +0 -30
- package/dist/app/api-destined-function/src/lib/lambda.d.ts +0 -19
- package/dist/app/api-destined-function/src/lib/lambda.d.ts.map +0 -1
- package/dist/app/api-destined-function/src/lib/lambda.js +0 -34
- package/dist/app/api-destined-function/src/lib/lambda.js.map +0 -1
- 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/construct.d.ts +0 -80
- package/dist/src/lib/common/construct.d.ts.map +0 -1
- package/dist/src/lib/common/construct.js +0 -134
- package/dist/src/lib/common/construct.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/common/stack.d.ts +0 -55
- package/dist/src/lib/common/stack.d.ts.map +0 -1
- package/dist/src/lib/common/stack.js +0 -148
- package/dist/src/lib/common/stack.js.map +0 -1
- package/dist/src/lib/construct/api-to-eventbridge-target/api-destination-event.d.ts +0 -17
- package/dist/src/lib/construct/api-to-eventbridge-target/api-destination-event.d.ts.map +0 -1
- package/dist/src/lib/construct/api-to-eventbridge-target/api-destination-event.js +0 -18
- package/dist/src/lib/construct/api-to-eventbridge-target/api-destination-event.js.map +0 -1
- package/dist/src/lib/construct/api-to-eventbridge-target/api-destined-lambda.d.ts +0 -20
- package/dist/src/lib/construct/api-to-eventbridge-target/api-destined-lambda.d.ts.map +0 -1
- package/dist/src/lib/construct/api-to-eventbridge-target/api-destined-lambda.js +0 -20
- package/dist/src/lib/construct/api-to-eventbridge-target/api-destined-lambda.js.map +0 -1
- package/dist/src/lib/construct/api-to-eventbridge-target/api-destined-rest-api.d.ts +0 -36
- package/dist/src/lib/construct/api-to-eventbridge-target/api-destined-rest-api.d.ts.map +0 -1
- package/dist/src/lib/construct/api-to-eventbridge-target/api-destined-rest-api.js +0 -30
- package/dist/src/lib/construct/api-to-eventbridge-target/api-destined-rest-api.js.map +0 -1
- package/dist/src/lib/construct/api-to-eventbridge-target/index.d.ts +0 -5
- package/dist/src/lib/construct/api-to-eventbridge-target/index.d.ts.map +0 -1
- package/dist/src/lib/construct/api-to-eventbridge-target/index.js +0 -17
- package/dist/src/lib/construct/api-to-eventbridge-target/index.js.map +0 -1
- package/dist/src/lib/construct/api-to-eventbridge-target/main.d.ts +0 -135
- package/dist/src/lib/construct/api-to-eventbridge-target/main.d.ts.map +0 -1
- package/dist/src/lib/construct/api-to-eventbridge-target/main.js +0 -488
- package/dist/src/lib/construct/api-to-eventbridge-target/main.js.map +0 -1
- package/dist/src/lib/construct/graphql-api-lambda/index.d.ts +0 -2
- package/dist/src/lib/construct/graphql-api-lambda/index.d.ts.map +0 -1
- package/dist/src/lib/construct/graphql-api-lambda/index.js +0 -14
- package/dist/src/lib/construct/graphql-api-lambda/index.js.map +0 -1
- package/dist/src/lib/construct/graphql-api-lambda/main.d.ts +0 -113
- package/dist/src/lib/construct/graphql-api-lambda/main.d.ts.map +0 -1
- package/dist/src/lib/construct/graphql-api-lambda/main.js +0 -202
- package/dist/src/lib/construct/graphql-api-lambda/main.js.map +0 -1
- package/dist/src/lib/construct/index.d.ts +0 -5
- package/dist/src/lib/construct/index.d.ts.map +0 -1
- package/dist/src/lib/construct/index.js +0 -17
- package/dist/src/lib/construct/index.js.map +0 -1
- package/dist/src/lib/construct/site-with-ecs-backend/index.d.ts +0 -2
- package/dist/src/lib/construct/site-with-ecs-backend/index.d.ts.map +0 -1
- package/dist/src/lib/construct/site-with-ecs-backend/index.js +0 -14
- package/dist/src/lib/construct/site-with-ecs-backend/index.js.map +0 -1
- package/dist/src/lib/construct/site-with-ecs-backend/main.d.ts +0 -168
- package/dist/src/lib/construct/site-with-ecs-backend/main.d.ts.map +0 -1
- package/dist/src/lib/construct/site-with-ecs-backend/main.js +0 -328
- package/dist/src/lib/construct/site-with-ecs-backend/main.js.map +0 -1
- package/dist/src/lib/construct/static-site/index.d.ts +0 -2
- package/dist/src/lib/construct/static-site/index.d.ts.map +0 -1
- package/dist/src/lib/construct/static-site/index.js +0 -14
- package/dist/src/lib/construct/static-site/index.js.map +0 -1
- package/dist/src/lib/construct/static-site/main.d.ts +0 -95
- package/dist/src/lib/construct/static-site/main.d.ts.map +0 -1
- package/dist/src/lib/construct/static-site/main.js +0 -169
- package/dist/src/lib/construct/static-site/main.js.map +0 -1
- package/dist/src/lib/manager/aws/acm-manager.d.ts +0 -47
- package/dist/src/lib/manager/aws/acm-manager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/acm-manager.js +0 -91
- package/dist/src/lib/manager/aws/acm-manager.js.map +0 -1
- package/dist/src/lib/manager/aws/api-manager.d.ts +0 -44
- package/dist/src/lib/manager/aws/api-manager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/api-manager.js +0 -112
- package/dist/src/lib/manager/aws/api-manager.js.map +0 -1
- package/dist/src/lib/manager/aws/app-config-manager.d.ts +0 -66
- package/dist/src/lib/manager/aws/app-config-manager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/app-config-manager.js +0 -149
- package/dist/src/lib/manager/aws/app-config-manager.js.map +0 -1
- package/dist/src/lib/manager/aws/cloudfront-manager.d.ts +0 -113
- package/dist/src/lib/manager/aws/cloudfront-manager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/cloudfront-manager.js +0 -283
- package/dist/src/lib/manager/aws/cloudfront-manager.js.map +0 -1
- package/dist/src/lib/manager/aws/cloudtrail-manager.d.ts +0 -49
- package/dist/src/lib/manager/aws/cloudtrail-manager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/cloudtrail-manager.js +0 -100
- package/dist/src/lib/manager/aws/cloudtrail-manager.js.map +0 -1
- package/dist/src/lib/manager/aws/cloudwatch-manager.d.ts +0 -122
- package/dist/src/lib/manager/aws/cloudwatch-manager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/cloudwatch-manager.js +0 -353
- package/dist/src/lib/manager/aws/cloudwatch-manager.js.map +0 -1
- package/dist/src/lib/manager/aws/codebuild-manager.d.ts +0 -41
- package/dist/src/lib/manager/aws/codebuild-manager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/codebuild-manager.js +0 -95
- package/dist/src/lib/manager/aws/codebuild-manager.js.map +0 -1
- package/dist/src/lib/manager/aws/dynamodb-manager.d.ts +0 -33
- package/dist/src/lib/manager/aws/dynamodb-manager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/dynamodb-manager.js +0 -80
- package/dist/src/lib/manager/aws/dynamodb-manager.js.map +0 -1
- package/dist/src/lib/manager/aws/ecr-manager.d.ts +0 -32
- package/dist/src/lib/manager/aws/ecr-manager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/ecr-manager.js +0 -61
- package/dist/src/lib/manager/aws/ecr-manager.js.map +0 -1
- package/dist/src/lib/manager/aws/ecs-manager.d.ts +0 -49
- package/dist/src/lib/manager/aws/ecs-manager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/ecs-manager.js +0 -104
- package/dist/src/lib/manager/aws/ecs-manager.js.map +0 -1
- package/dist/src/lib/manager/aws/eks-manager.d.ts +0 -37
- package/dist/src/lib/manager/aws/eks-manager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/eks-manager.js +0 -110
- package/dist/src/lib/manager/aws/eks-manager.js.map +0 -1
- package/dist/src/lib/manager/aws/event-manager.d.ts +0 -68
- package/dist/src/lib/manager/aws/event-manager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/event-manager.js +0 -163
- package/dist/src/lib/manager/aws/event-manager.js.map +0 -1
- package/dist/src/lib/manager/aws/iam-manager.d.ts +0 -155
- package/dist/src/lib/manager/aws/iam-manager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/iam-manager.js +0 -381
- package/dist/src/lib/manager/aws/iam-manager.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/lambda-manager.d.ts +0 -95
- package/dist/src/lib/manager/aws/lambda-manager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/lambda-manager.js +0 -197
- package/dist/src/lib/manager/aws/lambda-manager.js.map +0 -1
- package/dist/src/lib/manager/aws/log-manager.d.ts +0 -52
- package/dist/src/lib/manager/aws/log-manager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/log-manager.js +0 -109
- package/dist/src/lib/manager/aws/log-manager.js.map +0 -1
- package/dist/src/lib/manager/aws/route53-manager.d.ts +0 -69
- package/dist/src/lib/manager/aws/route53-manager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/route53-manager.js +0 -159
- package/dist/src/lib/manager/aws/route53-manager.js.map +0 -1
- package/dist/src/lib/manager/aws/s3-manager.d.ts +0 -74
- package/dist/src/lib/manager/aws/s3-manager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/s3-manager.js +0 -203
- package/dist/src/lib/manager/aws/s3-manager.js.map +0 -1
- package/dist/src/lib/manager/aws/secrets-manager.d.ts +0 -58
- package/dist/src/lib/manager/aws/secrets-manager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/secrets-manager.js +0 -117
- package/dist/src/lib/manager/aws/secrets-manager.js.map +0 -1
- package/dist/src/lib/manager/aws/sns-manager.d.ts +0 -43
- package/dist/src/lib/manager/aws/sns-manager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/sns-manager.js +0 -91
- package/dist/src/lib/manager/aws/sns-manager.js.map +0 -1
- package/dist/src/lib/manager/aws/ssm-manager.d.ts +0 -61
- package/dist/src/lib/manager/aws/ssm-manager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/ssm-manager.js +0 -125
- package/dist/src/lib/manager/aws/ssm-manager.js.map +0 -1
- package/dist/src/lib/manager/aws/vpc-manager.d.ts +0 -46
- package/dist/src/lib/manager/aws/vpc-manager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/vpc-manager.js +0 -95
- package/dist/src/lib/manager/aws/vpc-manager.js.map +0 -1
- package/dist/src/lib/manager/aws/waf-manager.d.ts +0 -40
- package/dist/src/lib/manager/aws/waf-manager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/waf-manager.js +0 -90
- package/dist/src/lib/manager/aws/waf-manager.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 -480
- 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
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import * as lambda from 'aws-cdk-lib/aws-lambda';
|
|
2
|
-
import * as sns from 'aws-cdk-lib/aws-sns';
|
|
3
|
-
import * as common from '../../common';
|
|
4
|
-
import * as types from '../../types';
|
|
5
|
-
/**
|
|
6
|
-
* @stability stable
|
|
7
|
-
* @category cdk-utils.sns-manager
|
|
8
|
-
* @subcategory Construct
|
|
9
|
-
* @classdesc Provides operations on AWS Simple Notification Service.
|
|
10
|
-
* - A new instance of this class is injected into {@link common.CommonConstruct} constructor.
|
|
11
|
-
* - If a custom construct extends {@link common.CommonConstruct}, an instance is available within the context.
|
|
12
|
-
* @example
|
|
13
|
-
* import * as common from '@gradientedge/cdk-utils'
|
|
14
|
-
*
|
|
15
|
-
* class CustomConstruct extends common.common.CommonConstruct {
|
|
16
|
-
* constructor(parent: cdk.Construct, id: string, props: common.CommonStackProps) {
|
|
17
|
-
* super(parent, id, props)
|
|
18
|
-
* this.props = props
|
|
19
|
-
* this.snsManager.createEmailNotificationService('MySns', 'eu-west-1', ['test@example.com'])
|
|
20
|
-
* }
|
|
21
|
-
* }
|
|
22
|
-
*
|
|
23
|
-
* @see [CDK Simple Notification Service Module]{@link https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_sns-readme.html}
|
|
24
|
-
*/
|
|
25
|
-
export declare class SnsManager {
|
|
26
|
-
/**
|
|
27
|
-
* @summary Method to create an email notification service
|
|
28
|
-
* @param {string} id scoped id of the resource
|
|
29
|
-
* @param {common.CommonConstruct} scope scope in which this resource is defined
|
|
30
|
-
* @param {types.SubscriptionProps} props
|
|
31
|
-
* @param {string[]} emails
|
|
32
|
-
*/
|
|
33
|
-
createEmailNotificationService(id: string, scope: common.CommonConstruct, props: types.SubscriptionProps, emails: string[]): sns.Topic;
|
|
34
|
-
/**
|
|
35
|
-
* @summary Method to create a lambda notification service
|
|
36
|
-
* @param {string} id scoped id of the resource
|
|
37
|
-
* @param {common.CommonConstruct} scope scope in which this resource is defined
|
|
38
|
-
* @param {types.SubscriptionProps} props
|
|
39
|
-
* @param {lambda.Function} lambdaFunction
|
|
40
|
-
*/
|
|
41
|
-
createLambdaNotificationService(id: string, scope: common.CommonConstruct, props: types.SubscriptionProps, lambdaFunction: lambda.Function): sns.Topic;
|
|
42
|
-
}
|
|
43
|
-
//# sourceMappingURL=sns-manager.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sns-manager.d.ts","sourceRoot":"","sources":["../../../../../src/lib/manager/aws/sns-manager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,wBAAwB,CAAA;AAChD,OAAO,KAAK,GAAG,MAAM,qBAAqB,CAAA;AAE1C,OAAO,KAAK,MAAM,MAAM,cAAc,CAAA;AACtC,OAAO,KAAK,KAAK,MAAM,aAAa,CAAA;AAGpC;;;;;;;;;;;;;;;;;;;GAmBG;AACH,qBAAa,UAAU;IACrB;;;;;;OAMG;IACI,8BAA8B,CACnC,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,MAAM,CAAC,eAAe,EAC7B,KAAK,EAAE,KAAK,CAAC,iBAAiB,EAC9B,MAAM,EAAE,MAAM,EAAE;IAoBlB;;;;;;OAMG;IACI,+BAA+B,CACpC,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,MAAM,CAAC,eAAe,EAC7B,KAAK,EAAE,KAAK,CAAC,iBAAiB,EAC9B,cAAc,EAAE,MAAM,CAAC,QAAQ;CAiBlC"}
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
-
}) : (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
o[k2] = m[k];
|
|
8
|
-
}));
|
|
9
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
10
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
11
|
-
}) : function(o, v) {
|
|
12
|
-
o["default"] = v;
|
|
13
|
-
});
|
|
14
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
15
|
-
if (mod && mod.__esModule) return mod;
|
|
16
|
-
var result = {};
|
|
17
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
18
|
-
__setModuleDefault(result, mod);
|
|
19
|
-
return result;
|
|
20
|
-
};
|
|
21
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.SnsManager = void 0;
|
|
23
|
-
const sns = __importStar(require("aws-cdk-lib/aws-sns"));
|
|
24
|
-
const subs = __importStar(require("aws-cdk-lib/aws-sns-subscriptions"));
|
|
25
|
-
const utils = __importStar(require("../../utils"));
|
|
26
|
-
/**
|
|
27
|
-
* @stability stable
|
|
28
|
-
* @category cdk-utils.sns-manager
|
|
29
|
-
* @subcategory Construct
|
|
30
|
-
* @classdesc Provides operations on AWS Simple Notification Service.
|
|
31
|
-
* - A new instance of this class is injected into {@link common.CommonConstruct} constructor.
|
|
32
|
-
* - If a custom construct extends {@link common.CommonConstruct}, an instance is available within the context.
|
|
33
|
-
* @example
|
|
34
|
-
* import * as common from '@gradientedge/cdk-utils'
|
|
35
|
-
*
|
|
36
|
-
* class CustomConstruct extends common.common.CommonConstruct {
|
|
37
|
-
* constructor(parent: cdk.Construct, id: string, props: common.CommonStackProps) {
|
|
38
|
-
* super(parent, id, props)
|
|
39
|
-
* this.props = props
|
|
40
|
-
* this.snsManager.createEmailNotificationService('MySns', 'eu-west-1', ['test@example.com'])
|
|
41
|
-
* }
|
|
42
|
-
* }
|
|
43
|
-
*
|
|
44
|
-
* @see [CDK Simple Notification Service Module]{@link https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_sns-readme.html}
|
|
45
|
-
*/
|
|
46
|
-
class SnsManager {
|
|
47
|
-
/**
|
|
48
|
-
* @summary Method to create an email notification service
|
|
49
|
-
* @param {string} id scoped id of the resource
|
|
50
|
-
* @param {common.CommonConstruct} scope scope in which this resource is defined
|
|
51
|
-
* @param {types.SubscriptionProps} props
|
|
52
|
-
* @param {string[]} emails
|
|
53
|
-
*/
|
|
54
|
-
createEmailNotificationService(id, scope, props, emails) {
|
|
55
|
-
if (!props)
|
|
56
|
-
throw `Subscription props undefined`;
|
|
57
|
-
const topic = new sns.Topic(scope, id, {
|
|
58
|
-
displayName: `${props.topicName}-${scope.props.stage}`,
|
|
59
|
-
topicName: `${props.topicName}-${scope.props.stage}`,
|
|
60
|
-
fifo: props.fifo,
|
|
61
|
-
});
|
|
62
|
-
if (emails && emails.length > 0) {
|
|
63
|
-
emails.forEach((email) => topic.addSubscription(new subs.EmailSubscription(email)));
|
|
64
|
-
}
|
|
65
|
-
utils.createCfnOutput(`${id}-subscriptionArn`, scope, topic.topicArn);
|
|
66
|
-
utils.createCfnOutput(`${id}-subscriptionName`, scope, topic.topicName);
|
|
67
|
-
return topic;
|
|
68
|
-
}
|
|
69
|
-
/**
|
|
70
|
-
* @summary Method to create a lambda notification service
|
|
71
|
-
* @param {string} id scoped id of the resource
|
|
72
|
-
* @param {common.CommonConstruct} scope scope in which this resource is defined
|
|
73
|
-
* @param {types.SubscriptionProps} props
|
|
74
|
-
* @param {lambda.Function} lambdaFunction
|
|
75
|
-
*/
|
|
76
|
-
createLambdaNotificationService(id, scope, props, lambdaFunction) {
|
|
77
|
-
if (!props)
|
|
78
|
-
throw `Subscription props undefined`;
|
|
79
|
-
const topic = new sns.Topic(scope, id, {
|
|
80
|
-
displayName: `${props.topicName}-${scope.props.stage}`,
|
|
81
|
-
topicName: `${props.topicName}-${scope.props.stage}`,
|
|
82
|
-
fifo: props.fifo,
|
|
83
|
-
});
|
|
84
|
-
topic.addSubscription(new subs.LambdaSubscription(lambdaFunction));
|
|
85
|
-
utils.createCfnOutput(`${id}-subscriptionArn`, scope, topic.topicArn);
|
|
86
|
-
utils.createCfnOutput(`${id}-subscriptionName`, scope, topic.topicName);
|
|
87
|
-
return topic;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
exports.SnsManager = SnsManager;
|
|
91
|
-
//# sourceMappingURL=sns-manager.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sns-manager.js","sourceRoot":"","sources":["../../../../../src/lib/manager/aws/sns-manager.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AACA,yDAA0C;AAC1C,wEAAyD;AAGzD,mDAAoC;AAEpC;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAa,UAAU;IACrB;;;;;;OAMG;IACI,8BAA8B,CACnC,EAAU,EACV,KAA6B,EAC7B,KAA8B,EAC9B,MAAgB;QAEhB,IAAI,CAAC,KAAK;YAAE,MAAM,8BAA8B,CAAA;QAEhD,MAAM,KAAK,GAAG,IAAI,GAAG,CAAC,KAAK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KAAK,CAAC,eAAe,CAAC,GAAG,EAAE,kBAAkB,EAAE,KAAK,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAA;QACrE,KAAK,CAAC,eAAe,CAAC,GAAG,EAAE,mBAAmB,EAAE,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC,CAAA;QAEvE,OAAO,KAAK,CAAA;IACd,CAAC;CACF;AA5DD,gCA4DC"}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import * as ssm from 'aws-cdk-lib/aws-ssm';
|
|
2
|
-
import * as cr from 'aws-cdk-lib/custom-resources';
|
|
3
|
-
import * as common from '../../common';
|
|
4
|
-
import * as types from '../../types';
|
|
5
|
-
/**
|
|
6
|
-
* @stability stable
|
|
7
|
-
* @category cdk-utils.ssm-manager
|
|
8
|
-
* @subcategory Construct
|
|
9
|
-
* @classdesc Provides operations on AWS Systems Manager.
|
|
10
|
-
* - A new instance of this class is injected into {@link common.CommonConstruct} constructor.
|
|
11
|
-
* - If a custom construct extends {@link common.CommonConstruct}, an instance is available within the context.
|
|
12
|
-
* @example
|
|
13
|
-
* import { common.CommonConstruct } from '@gradientedge/cdk-utils'
|
|
14
|
-
*
|
|
15
|
-
* class CustomConstruct extends common.CommonConstruct {
|
|
16
|
-
* constructor(parent: cdk.Construct, id: string, props: common.CommonStackProps) {
|
|
17
|
-
* super(parent, id, props)
|
|
18
|
-
* this.props = props
|
|
19
|
-
* this.acmManager.writeStringToParameters('MyParameter', this, ...props)
|
|
20
|
-
* }
|
|
21
|
-
* }
|
|
22
|
-
*
|
|
23
|
-
* @see [CDK Systems Manager Module]{@link https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ssm-readme.html}
|
|
24
|
-
*/
|
|
25
|
-
export declare class SsmManager {
|
|
26
|
-
/**
|
|
27
|
-
* Method to write a string parameter to the parameters store
|
|
28
|
-
* @param {string} id scoped id of the resource
|
|
29
|
-
* @param {common.CommonConstruct} scope scope in which this resource is defined
|
|
30
|
-
* @param {ssm.StringParameterProps} props parameter props
|
|
31
|
-
*/
|
|
32
|
-
writeStringToParameters(id: string, scope: common.CommonConstruct, props: ssm.StringParameterProps): ssm.StringParameter;
|
|
33
|
-
/**
|
|
34
|
-
* Method to read a string parameter from the parameters store
|
|
35
|
-
* @param {string} id scoped id of the resource
|
|
36
|
-
* @param {common.CommonConstruct} scope scope in which this resource is defined
|
|
37
|
-
* @param {string} parameterName parameter name to lookup
|
|
38
|
-
*/
|
|
39
|
-
readStringParameter(id: string, scope: common.CommonConstruct, parameterName: string): string;
|
|
40
|
-
/**
|
|
41
|
-
* Method to read a string parameter from the parameters store in a given region
|
|
42
|
-
* @param {string} id scoped id of the resource
|
|
43
|
-
* @param {common.CommonConstruct} scope scope in which this resource is defined
|
|
44
|
-
* @param {string} parameterName parameter name to lookup
|
|
45
|
-
* @param {string} region region name to lookup parameter
|
|
46
|
-
*/
|
|
47
|
-
readStringParameterFromRegion(id: string, scope: common.CommonConstruct, parameterName: string, region: string): string;
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* @category cdk-utils.ssm-manager
|
|
51
|
-
* @subcategory Construct
|
|
52
|
-
* @classdesc Provides utilities to read same/cross region SSM parameters
|
|
53
|
-
*/
|
|
54
|
-
export declare class SSMParameterReader extends cr.AwsCustomResource {
|
|
55
|
-
constructor(scope: common.CommonConstruct, name: string, props: types.SSMParameterReaderProps);
|
|
56
|
-
/**
|
|
57
|
-
*
|
|
58
|
-
*/
|
|
59
|
-
getParameterValue(): string;
|
|
60
|
-
}
|
|
61
|
-
//# sourceMappingURL=ssm-manager.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ssm-manager.d.ts","sourceRoot":"","sources":["../../../../../src/lib/manager/aws/ssm-manager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,qBAAqB,CAAA;AAC1C,OAAO,KAAK,EAAE,MAAM,8BAA8B,CAAA;AAClD,OAAO,KAAK,MAAM,MAAM,cAAc,CAAA;AACtC,OAAO,KAAK,KAAK,MAAM,aAAa,CAAA;AAGpC;;;;;;;;;;;;;;;;;;;GAmBG;AACH,qBAAa,UAAU;IACrB;;;;;OAKG;IACI,uBAAuB,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,eAAe,EAAE,KAAK,EAAE,GAAG,CAAC,oBAAoB;IAezG;;;;;OAKG;IACI,mBAAmB,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,eAAe,EAAE,aAAa,EAAE,MAAM;IAM3F;;;;;;OAMG;IACI,6BAA6B,CAClC,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,MAAM,CAAC,eAAe,EAC7B,aAAa,EAAE,MAAM,EACrB,MAAM,EAAE,MAAM;CAUjB;AAED;;;;GAIG;AACH,qBAAa,kBAAmB,SAAQ,EAAE,CAAC,iBAAiB;gBAC9C,KAAK,EAAE,MAAM,CAAC,eAAe,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,CAAC,uBAAuB;IAmB7F;;OAEG;IACI,iBAAiB,IAAI,MAAM;CAGnC"}
|
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
-
}) : (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
o[k2] = m[k];
|
|
8
|
-
}));
|
|
9
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
10
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
11
|
-
}) : function(o, v) {
|
|
12
|
-
o["default"] = v;
|
|
13
|
-
});
|
|
14
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
15
|
-
if (mod && mod.__esModule) return mod;
|
|
16
|
-
var result = {};
|
|
17
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
18
|
-
__setModuleDefault(result, mod);
|
|
19
|
-
return result;
|
|
20
|
-
};
|
|
21
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.SSMParameterReader = exports.SsmManager = void 0;
|
|
23
|
-
const ssm = __importStar(require("aws-cdk-lib/aws-ssm"));
|
|
24
|
-
const cr = __importStar(require("aws-cdk-lib/custom-resources"));
|
|
25
|
-
const utils = __importStar(require("../../utils"));
|
|
26
|
-
/**
|
|
27
|
-
* @stability stable
|
|
28
|
-
* @category cdk-utils.ssm-manager
|
|
29
|
-
* @subcategory Construct
|
|
30
|
-
* @classdesc Provides operations on AWS Systems Manager.
|
|
31
|
-
* - A new instance of this class is injected into {@link common.CommonConstruct} constructor.
|
|
32
|
-
* - If a custom construct extends {@link common.CommonConstruct}, an instance is available within the context.
|
|
33
|
-
* @example
|
|
34
|
-
* import { common.CommonConstruct } from '@gradientedge/cdk-utils'
|
|
35
|
-
*
|
|
36
|
-
* class CustomConstruct extends common.CommonConstruct {
|
|
37
|
-
* constructor(parent: cdk.Construct, id: string, props: common.CommonStackProps) {
|
|
38
|
-
* super(parent, id, props)
|
|
39
|
-
* this.props = props
|
|
40
|
-
* this.acmManager.writeStringToParameters('MyParameter', this, ...props)
|
|
41
|
-
* }
|
|
42
|
-
* }
|
|
43
|
-
*
|
|
44
|
-
* @see [CDK Systems Manager Module]{@link https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ssm-readme.html}
|
|
45
|
-
*/
|
|
46
|
-
class SsmManager {
|
|
47
|
-
/**
|
|
48
|
-
* Method to write a string parameter to the parameters store
|
|
49
|
-
* @param {string} id scoped id of the resource
|
|
50
|
-
* @param {common.CommonConstruct} scope scope in which this resource is defined
|
|
51
|
-
* @param {ssm.StringParameterProps} props parameter props
|
|
52
|
-
*/
|
|
53
|
-
writeStringToParameters(id, scope, props) {
|
|
54
|
-
if (!props)
|
|
55
|
-
throw `Parameter props undefined`;
|
|
56
|
-
const parameter = new ssm.StringParameter(scope, `${id}`, {
|
|
57
|
-
parameterName: `${props.parameterName}-${scope.props.stage}`,
|
|
58
|
-
description: `${props.description} - ${scope.props.stage} stage`,
|
|
59
|
-
stringValue: props.stringValue,
|
|
60
|
-
});
|
|
61
|
-
utils.createCfnOutput(`${id}-parameterArn`, scope, parameter.parameterArn);
|
|
62
|
-
utils.createCfnOutput(`${id}-parameterName`, scope, parameter.parameterName);
|
|
63
|
-
return parameter;
|
|
64
|
-
}
|
|
65
|
-
/**
|
|
66
|
-
* Method to read a string parameter from the parameters store
|
|
67
|
-
* @param {string} id scoped id of the resource
|
|
68
|
-
* @param {common.CommonConstruct} scope scope in which this resource is defined
|
|
69
|
-
* @param {string} parameterName parameter name to lookup
|
|
70
|
-
*/
|
|
71
|
-
readStringParameter(id, scope, parameterName) {
|
|
72
|
-
if (!parameterName || parameterName == '')
|
|
73
|
-
throw 'Invalid parameter name';
|
|
74
|
-
return ssm.StringParameter.fromStringParameterName(scope, `${id}`, parameterName).stringValue;
|
|
75
|
-
}
|
|
76
|
-
/**
|
|
77
|
-
* Method to read a string parameter from the parameters store in a given region
|
|
78
|
-
* @param {string} id scoped id of the resource
|
|
79
|
-
* @param {common.CommonConstruct} scope scope in which this resource is defined
|
|
80
|
-
* @param {string} parameterName parameter name to lookup
|
|
81
|
-
* @param {string} region region name to lookup parameter
|
|
82
|
-
*/
|
|
83
|
-
readStringParameterFromRegion(id, scope, parameterName, region) {
|
|
84
|
-
if (!parameterName || parameterName == '')
|
|
85
|
-
throw 'Invalid parameter name';
|
|
86
|
-
if (!region || region == '')
|
|
87
|
-
throw 'Invalid region';
|
|
88
|
-
return new SSMParameterReader(scope, `${id}`, {
|
|
89
|
-
parameterName: parameterName,
|
|
90
|
-
region: region,
|
|
91
|
-
}).getParameterValue();
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
exports.SsmManager = SsmManager;
|
|
95
|
-
/**
|
|
96
|
-
* @category cdk-utils.ssm-manager
|
|
97
|
-
* @subcategory Construct
|
|
98
|
-
* @classdesc Provides utilities to read same/cross region SSM parameters
|
|
99
|
-
*/
|
|
100
|
-
class SSMParameterReader extends cr.AwsCustomResource {
|
|
101
|
-
constructor(scope, name, props) {
|
|
102
|
-
const { parameterName, region } = props;
|
|
103
|
-
const ssmAwsSdkCall = {
|
|
104
|
-
service: 'SSM',
|
|
105
|
-
action: 'getParameter',
|
|
106
|
-
parameters: {
|
|
107
|
-
Name: `${parameterName}-${scope.props.stage}`,
|
|
108
|
-
},
|
|
109
|
-
region,
|
|
110
|
-
physicalResourceId: cr.PhysicalResourceId.of(Date.now().toString()),
|
|
111
|
-
};
|
|
112
|
-
super(scope, name, {
|
|
113
|
-
onUpdate: ssmAwsSdkCall,
|
|
114
|
-
policy: cr.AwsCustomResourcePolicy.fromSdkCalls({ resources: cr.AwsCustomResourcePolicy.ANY_RESOURCE }),
|
|
115
|
-
});
|
|
116
|
-
}
|
|
117
|
-
/**
|
|
118
|
-
*
|
|
119
|
-
*/
|
|
120
|
-
getParameterValue() {
|
|
121
|
-
return this.getResponseField('Parameter.Value');
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
exports.SSMParameterReader = SSMParameterReader;
|
|
125
|
-
//# sourceMappingURL=ssm-manager.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ssm-manager.js","sourceRoot":"","sources":["../../../../../src/lib/manager/aws/ssm-manager.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,yDAA0C;AAC1C,iEAAkD;AAGlD,mDAAoC;AAEpC;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAa,UAAU;IACrB;;;;;OAKG;IACI,uBAAuB,CAAC,EAAU,EAAE,KAA6B,EAAE,KAA+B;QACv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CAAC,iBAAiB,EAAE,CAAA;IACxB,CAAC;CACF;AAvDD,gCAuDC;AAED;;;;GAIG;AACH,MAAa,kBAAmB,SAAQ,EAAE,CAAC,iBAAiB;IAC1D,YAAY,KAA6B,EAAE,IAAY,EAAE,KAAoC;QAC3F,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,GAAG,KAAK,CAAA;QAEvC,MAAM,aAAa,GAAkB;YACnC,OAAO,EAAE,KAAK;YACd,MAAM,EAAE,cAAc;YACtB,UAAU,EAAE;gBACV,IAAI,EAAE,GAAG,aAAa,IAAI,KAAK,CAAC,KAAK,CAAC,KAAK,EAAE;aAC9C;YACD,MAAM;YACN,kBAAkB,EAAE,EAAE,CAAC,kBAAkB,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC;SACpE,CAAA;QAED,KAAK,CAAC,KAAK,EAAE,IAAI,EAAE;YACjB,QAAQ,EAAE,aAAa;YACvB,MAAM,EAAE,EAAE,CAAC,uBAAuB,CAAC,YAAY,CAAC,EAAE,SAAS,EAAE,EAAE,CAAC,uBAAuB,CAAC,YAAY,EAAE,CAAC;SACxG,CAAC,CAAA;IACJ,CAAC;IAED;;OAEG;IACI,iBAAiB;QACtB,OAAO,IAAI,CAAC,gBAAgB,CAAC,iBAAiB,CAAC,CAAA;IACjD,CAAC;CACF;AA1BD,gDA0BC"}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import * as cdk from 'aws-cdk-lib';
|
|
2
|
-
import * as ec2 from 'aws-cdk-lib/aws-ec2';
|
|
3
|
-
import * as common from '../../common';
|
|
4
|
-
/**
|
|
5
|
-
* @category cdk-utils.vpc-manager
|
|
6
|
-
* @subcategory Construct
|
|
7
|
-
* @classdesc Provides operations on AWS VPC.
|
|
8
|
-
* - A new instance of this class is injected into {@link common.CommonConstruct} constructor.
|
|
9
|
-
* - If a custom construct extends {@link common.CommonConstruct}, an instance is available within the context.
|
|
10
|
-
* @example
|
|
11
|
-
* import * as common from '@gradientedge/cdk-utils'
|
|
12
|
-
*
|
|
13
|
-
* class CustomConstruct extends common.common.CommonConstruct {
|
|
14
|
-
* constructor(parent: cdk.Construct, id: string, props: common.CommonStackProps) {
|
|
15
|
-
* super(parent, id, props)
|
|
16
|
-
* this.props = props
|
|
17
|
-
* this.vpcManager.createVpc('MyVPC', this)
|
|
18
|
-
* }
|
|
19
|
-
* }
|
|
20
|
-
*
|
|
21
|
-
* @see [CDK VPC Module]{@link https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.@aws-cdk_aws-ec2.Vpc.html}
|
|
22
|
-
*/
|
|
23
|
-
export declare class VpcManager {
|
|
24
|
-
/**
|
|
25
|
-
* @summary Method to create a new vpc
|
|
26
|
-
* @param {string} id scoped id of the resource
|
|
27
|
-
* @param {common.CommonConstruct} scope scope in which this resource is defined
|
|
28
|
-
* @param {ec2.VpcProps} props
|
|
29
|
-
*/
|
|
30
|
-
createVpc(id: string, scope: common.CommonConstruct, props: ec2.VpcProps): cdk.aws_ec2.Vpc;
|
|
31
|
-
/**
|
|
32
|
-
* @summary Method to create a common vpc
|
|
33
|
-
* @param {common.CommonConstruct} scope scope in which this resource is defined
|
|
34
|
-
* @param {ec2.VpcProps} props
|
|
35
|
-
* @param {string?} vpcIdentifier optional identifier for VPC
|
|
36
|
-
*/
|
|
37
|
-
createCommonVpc(scope: common.CommonConstruct, props: ec2.VpcProps, vpcIdentifier?: string): cdk.aws_ec2.Vpc;
|
|
38
|
-
/**
|
|
39
|
-
* @summary Method to retrieve a common vpc
|
|
40
|
-
* @param {string} id scoped id of the resource
|
|
41
|
-
* @param {common.CommonConstruct} scope scope in which this resource is defined
|
|
42
|
-
* @param {string?} vpcIdentifier optional identifier for VPC
|
|
43
|
-
*/
|
|
44
|
-
retrieveCommonVpc(id: string, scope: common.CommonConstruct, vpcIdentifier?: string): cdk.aws_ec2.IVpc;
|
|
45
|
-
}
|
|
46
|
-
//# sourceMappingURL=vpc-manager.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"vpc-manager.d.ts","sourceRoot":"","sources":["../../../../../src/lib/manager/aws/vpc-manager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,aAAa,CAAA;AAClC,OAAO,KAAK,GAAG,MAAM,qBAAqB,CAAA;AAC1C,OAAO,KAAK,MAAM,MAAM,cAAc,CAAA;AAUtC;;;;;;;;;;;;;;;;;;GAkBG;AACH,qBAAa,UAAU;IACrB;;;;;OAKG;IACI,SAAS,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,eAAe,EAAE,KAAK,EAAE,GAAG,CAAC,QAAQ;IAyB/E;;;;;OAKG;IACI,eAAe,CAAC,KAAK,EAAE,MAAM,CAAC,eAAe,EAAE,KAAK,EAAE,GAAG,CAAC,QAAQ,EAAE,aAAa,CAAC,EAAE,MAAM;IAOjG;;;;;OAKG;IACI,iBAAiB,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,eAAe,EAAE,aAAa,CAAC,EAAE,MAAM;CAG3F"}
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
-
}) : (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
o[k2] = m[k];
|
|
8
|
-
}));
|
|
9
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
10
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
11
|
-
}) : function(o, v) {
|
|
12
|
-
o["default"] = v;
|
|
13
|
-
});
|
|
14
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
15
|
-
if (mod && mod.__esModule) return mod;
|
|
16
|
-
var result = {};
|
|
17
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
18
|
-
__setModuleDefault(result, mod);
|
|
19
|
-
return result;
|
|
20
|
-
};
|
|
21
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.VpcManager = void 0;
|
|
23
|
-
const cdk = __importStar(require("aws-cdk-lib"));
|
|
24
|
-
const ec2 = __importStar(require("aws-cdk-lib/aws-ec2"));
|
|
25
|
-
const utils = __importStar(require("../../utils"));
|
|
26
|
-
/**
|
|
27
|
-
* @stability stable
|
|
28
|
-
* @category cdk-utils.vpc-manager
|
|
29
|
-
* @subcategory Construct
|
|
30
|
-
*/
|
|
31
|
-
const CommonVpcIdentifier = 'CommonVpc';
|
|
32
|
-
/**
|
|
33
|
-
* @category cdk-utils.vpc-manager
|
|
34
|
-
* @subcategory Construct
|
|
35
|
-
* @classdesc Provides operations on AWS VPC.
|
|
36
|
-
* - A new instance of this class is injected into {@link common.CommonConstruct} constructor.
|
|
37
|
-
* - If a custom construct extends {@link common.CommonConstruct}, an instance is available within the context.
|
|
38
|
-
* @example
|
|
39
|
-
* import * as common from '@gradientedge/cdk-utils'
|
|
40
|
-
*
|
|
41
|
-
* class CustomConstruct extends common.common.CommonConstruct {
|
|
42
|
-
* constructor(parent: cdk.Construct, id: string, props: common.CommonStackProps) {
|
|
43
|
-
* super(parent, id, props)
|
|
44
|
-
* this.props = props
|
|
45
|
-
* this.vpcManager.createVpc('MyVPC', this)
|
|
46
|
-
* }
|
|
47
|
-
* }
|
|
48
|
-
*
|
|
49
|
-
* @see [CDK VPC Module]{@link https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.@aws-cdk_aws-ec2.Vpc.html}
|
|
50
|
-
*/
|
|
51
|
-
class VpcManager {
|
|
52
|
-
/**
|
|
53
|
-
* @summary Method to create a new vpc
|
|
54
|
-
* @param {string} id scoped id of the resource
|
|
55
|
-
* @param {common.CommonConstruct} scope scope in which this resource is defined
|
|
56
|
-
* @param {ec2.VpcProps} props
|
|
57
|
-
*/
|
|
58
|
-
createVpc(id, scope, props) {
|
|
59
|
-
if (!props)
|
|
60
|
-
throw 'Vpc props undefined';
|
|
61
|
-
const vpc = new ec2.Vpc(scope, `${id}`, {
|
|
62
|
-
maxAzs: props.maxAzs,
|
|
63
|
-
cidr: props.cidr,
|
|
64
|
-
});
|
|
65
|
-
utils.createCfnOutput(`${id}Id`, scope, vpc.vpcId);
|
|
66
|
-
utils.createCfnOutput(`${id}PublicSubnetIds`, scope, vpc.publicSubnets.map(subnet => subnet.subnetId).toString());
|
|
67
|
-
utils.createCfnOutput(`${id}PrivateSubnetIds`, scope, vpc.privateSubnets.map(subnet => subnet.subnetId).toString());
|
|
68
|
-
utils.createCfnOutput(`${id}PublicSubnetRouteTableIds`, scope, vpc.publicSubnets.map(subnet => subnet.routeTable.routeTableId).toString());
|
|
69
|
-
utils.createCfnOutput(`${id}PrivateSubnetRouteTableIds`, scope, vpc.privateSubnets.map(subnet => subnet.routeTable.routeTableId).toString());
|
|
70
|
-
utils.createCfnOutput(`${id}AvailabilityZones`, scope, vpc.availabilityZones.toString());
|
|
71
|
-
return vpc;
|
|
72
|
-
}
|
|
73
|
-
/**
|
|
74
|
-
* @summary Method to create a common vpc
|
|
75
|
-
* @param {common.CommonConstruct} scope scope in which this resource is defined
|
|
76
|
-
* @param {ec2.VpcProps} props
|
|
77
|
-
* @param {string?} vpcIdentifier optional identifier for VPC
|
|
78
|
-
*/
|
|
79
|
-
createCommonVpc(scope, props, vpcIdentifier) {
|
|
80
|
-
const vpc = this.createVpc(CommonVpcIdentifier, scope, props);
|
|
81
|
-
cdk.Tags.of(vpc).add('Name', vpcIdentifier ?? CommonVpcIdentifier);
|
|
82
|
-
return vpc;
|
|
83
|
-
}
|
|
84
|
-
/**
|
|
85
|
-
* @summary Method to retrieve a common vpc
|
|
86
|
-
* @param {string} id scoped id of the resource
|
|
87
|
-
* @param {common.CommonConstruct} scope scope in which this resource is defined
|
|
88
|
-
* @param {string?} vpcIdentifier optional identifier for VPC
|
|
89
|
-
*/
|
|
90
|
-
retrieveCommonVpc(id, scope, vpcIdentifier) {
|
|
91
|
-
return ec2.Vpc.fromLookup(scope, `${id}`, { vpcName: vpcIdentifier ?? CommonVpcIdentifier });
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
exports.VpcManager = VpcManager;
|
|
95
|
-
//# sourceMappingURL=vpc-manager.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"vpc-manager.js","sourceRoot":"","sources":["../../../../../src/lib/manager/aws/vpc-manager.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,iDAAkC;AAClC,yDAA0C;AAE1C,mDAAoC;AAEpC;;;;GAIG;AACH,MAAM,mBAAmB,GAAG,WAAW,CAAA;AAEvC;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAa,UAAU;IACrB;;;;;OAKG;IACI,SAAS,CAAC,EAAU,EAAE,KAA6B,EAAE,KAAmB;QAC7E,IAAI,CAAC,KAAK;YAAE,MAAM,qBAAqB,CAAA;QACvC,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,GAAG,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE,EAAE;YACtC,MAAM,EAAE,KAAK,CAAC,MAAM;YACpB,IAAI,EAAE,KAAK,CAAC,IAAI;SACjB,CAAC,CAAA;QAEF,KAAK,CAAC,eAAe,CAAC,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,CAAC,KAAK,CAAC,CAAA;QAClD,KAAK,CAAC,eAAe,CAAC,GAAG,EAAE,iBAAiB,EAAE,KAAK,EAAE,GAAG,CAAC,aAAa,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAA;QACjH,KAAK,CAAC,e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A;IAC9F,CAAC;CACF;AAtDD,gCAsDC"}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import * as wafv2 from 'aws-cdk-lib/aws-wafv2';
|
|
2
|
-
import * as common from '../../common';
|
|
3
|
-
import * as types from '../../types';
|
|
4
|
-
/**
|
|
5
|
-
* @stability stable
|
|
6
|
-
* @category cdk-utils.waf-manager
|
|
7
|
-
* @subcategory Construct
|
|
8
|
-
* @classdesc Provides operations on AWS WAF.
|
|
9
|
-
* - A new instance of this class is injected into {@link common.CommonConstruct} constructor.
|
|
10
|
-
* - If a custom construct extends {@link common.CommonConstruct}, an instance is available within the context.
|
|
11
|
-
* @example
|
|
12
|
-
* import * as common from '@gradientedge/cdk-utils'
|
|
13
|
-
*
|
|
14
|
-
* class CustomConstruct extends common.common.CommonConstruct {
|
|
15
|
-
* constructor(parent: cdk.Construct, id: string, props: common.CommonStackProps) {
|
|
16
|
-
* super(parent, id, props)
|
|
17
|
-
* this.props = props
|
|
18
|
-
* this.wafManager.createWebAcl('MyWebAcl', this)
|
|
19
|
-
* }
|
|
20
|
-
* }
|
|
21
|
-
*
|
|
22
|
-
* @see [CDK WAF Module]{@link https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_waf-readme.html}
|
|
23
|
-
*/
|
|
24
|
-
export declare class WafManager {
|
|
25
|
-
/**
|
|
26
|
-
* @summary Method to create an ip set
|
|
27
|
-
* @param {string} id scoped id of the resource
|
|
28
|
-
* @param {common.CommonConstruct} scope scope in which this resource is defined
|
|
29
|
-
* @param {types.WafIPSetProps} props
|
|
30
|
-
*/
|
|
31
|
-
createIpSet(id: string, scope: common.CommonConstruct, props: types.WafIPSetProps): wafv2.CfnIPSet;
|
|
32
|
-
/**
|
|
33
|
-
* @summary Method to create a web acl
|
|
34
|
-
* @param {string} id scoped id of the resource
|
|
35
|
-
* @param {common.CommonConstruct} scope scope in which this resource is defined
|
|
36
|
-
* @param {types.WafWebACLProps} props
|
|
37
|
-
*/
|
|
38
|
-
createWebAcl(id: string, scope: common.CommonConstruct, props: types.WafWebACLProps): wafv2.CfnWebACL;
|
|
39
|
-
}
|
|
40
|
-
//# sourceMappingURL=waf-manager.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"waf-manager.d.ts","sourceRoot":"","sources":["../../../../../src/lib/manager/aws/waf-manager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,uBAAuB,CAAA;AAC9C,OAAO,KAAK,MAAM,MAAM,cAAc,CAAA;AACtC,OAAO,KAAK,KAAK,MAAM,aAAa,CAAA;AAGpC;;;;;;;;;;;;;;;;;;;GAmBG;AACH,qBAAa,UAAU;IACrB;;;;;OAKG;IACI,WAAW,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,eAAe,EAAE,KAAK,EAAE,KAAK,CAAC,aAAa;IAiBxF;;;;;OAKG;IACI,YAAY,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,eAAe,EAAE,KAAK,EAAE,KAAK,CAAC,cAAc;CAkB3F"}
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
-
}) : (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
o[k2] = m[k];
|
|
8
|
-
}));
|
|
9
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
10
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
11
|
-
}) : function(o, v) {
|
|
12
|
-
o["default"] = v;
|
|
13
|
-
});
|
|
14
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
15
|
-
if (mod && mod.__esModule) return mod;
|
|
16
|
-
var result = {};
|
|
17
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
18
|
-
__setModuleDefault(result, mod);
|
|
19
|
-
return result;
|
|
20
|
-
};
|
|
21
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.WafManager = void 0;
|
|
23
|
-
const wafv2 = __importStar(require("aws-cdk-lib/aws-wafv2"));
|
|
24
|
-
const utils = __importStar(require("../../utils"));
|
|
25
|
-
/**
|
|
26
|
-
* @stability stable
|
|
27
|
-
* @category cdk-utils.waf-manager
|
|
28
|
-
* @subcategory Construct
|
|
29
|
-
* @classdesc Provides operations on AWS WAF.
|
|
30
|
-
* - A new instance of this class is injected into {@link common.CommonConstruct} constructor.
|
|
31
|
-
* - If a custom construct extends {@link common.CommonConstruct}, an instance is available within the context.
|
|
32
|
-
* @example
|
|
33
|
-
* import * as common from '@gradientedge/cdk-utils'
|
|
34
|
-
*
|
|
35
|
-
* class CustomConstruct extends common.common.CommonConstruct {
|
|
36
|
-
* constructor(parent: cdk.Construct, id: string, props: common.CommonStackProps) {
|
|
37
|
-
* super(parent, id, props)
|
|
38
|
-
* this.props = props
|
|
39
|
-
* this.wafManager.createWebAcl('MyWebAcl', this)
|
|
40
|
-
* }
|
|
41
|
-
* }
|
|
42
|
-
*
|
|
43
|
-
* @see [CDK WAF Module]{@link https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_waf-readme.html}
|
|
44
|
-
*/
|
|
45
|
-
class WafManager {
|
|
46
|
-
/**
|
|
47
|
-
* @summary Method to create an ip set
|
|
48
|
-
* @param {string} id scoped id of the resource
|
|
49
|
-
* @param {common.CommonConstruct} scope scope in which this resource is defined
|
|
50
|
-
* @param {types.WafIPSetProps} props
|
|
51
|
-
*/
|
|
52
|
-
createIpSet(id, scope, props) {
|
|
53
|
-
if (!props)
|
|
54
|
-
throw `WAF Ip Set props undefined`;
|
|
55
|
-
const ipSet = new wafv2.CfnIPSet(scope, `${id}`, {
|
|
56
|
-
name: scope.isProductionStage() ? props.name : `${props.name}-${scope.props.stage}`,
|
|
57
|
-
description: `IP Set for ${id} - ${scope.props.stage} stage`,
|
|
58
|
-
addresses: props.addresses,
|
|
59
|
-
ipAddressVersion: props.ipAddressVersion,
|
|
60
|
-
scope: props.scope,
|
|
61
|
-
});
|
|
62
|
-
utils.createCfnOutput(`${id}-ipSetId`, scope, ipSet.attrId);
|
|
63
|
-
utils.createCfnOutput(`${id}-ipSetArn`, scope, ipSet.attrArn);
|
|
64
|
-
return ipSet;
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* @summary Method to create a web acl
|
|
68
|
-
* @param {string} id scoped id of the resource
|
|
69
|
-
* @param {common.CommonConstruct} scope scope in which this resource is defined
|
|
70
|
-
* @param {types.WafWebACLProps} props
|
|
71
|
-
*/
|
|
72
|
-
createWebAcl(id, scope, props) {
|
|
73
|
-
if (!props)
|
|
74
|
-
throw `WAF WebACL props undefined`;
|
|
75
|
-
const webAcl = new wafv2.CfnWebACL(scope, `${id}`, {
|
|
76
|
-
name: scope.isProductionStage() ? props.name : `${props.name}-${scope.props.stage}`,
|
|
77
|
-
description: `Web Acl for ${id} - ${scope.props.stage} stage`,
|
|
78
|
-
defaultAction: props.defaultAction,
|
|
79
|
-
scope: props.scope,
|
|
80
|
-
visibilityConfig: props.visibilityConfig,
|
|
81
|
-
rules: props.rules,
|
|
82
|
-
tags: [{ key: 'service', value: scope.props.name }],
|
|
83
|
-
});
|
|
84
|
-
utils.createCfnOutput(`${id}-webAclId`, scope, webAcl.attrId);
|
|
85
|
-
utils.createCfnOutput(`${id}-webAclArn`, scope, webAcl.attrArn);
|
|
86
|
-
return webAcl;
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
exports.WafManager = WafManager;
|
|
90
|
-
//# sourceMappingURL=waf-manager.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,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