@gradientedge/cdk-utils 8.117.0 → 8.119.0

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.
Files changed (148) hide show
  1. package/app/api-destined-function/package.json +1 -1
  2. package/dist/src/lib/common/construct.d.ts +32 -32
  3. package/dist/src/lib/common/construct.js +36 -59
  4. package/dist/src/lib/common/stack.d.ts +8 -7
  5. package/dist/src/lib/common/stack.js +17 -37
  6. package/dist/src/lib/common/types.d.ts +2 -2
  7. package/dist/src/lib/construct/api-to-eventbridge-target/api.d.ts +22 -22
  8. package/dist/src/lib/construct/api-to-eventbridge-target/event.d.ts +9 -9
  9. package/dist/src/lib/construct/api-to-eventbridge-target/main.d.ts +3 -3
  10. package/dist/src/lib/construct/api-to-eventbridge-target/main.js +37 -60
  11. package/dist/src/lib/construct/api-to-eventbridge-target-with-sns/api-destined-lambda.d.ts +9 -9
  12. package/dist/src/lib/construct/api-to-eventbridge-target-with-sns/main.d.ts +3 -3
  13. package/dist/src/lib/construct/api-to-eventbridge-target-with-sns/main.js +40 -63
  14. package/dist/src/lib/construct/api-to-lambda-target/api.d.ts +23 -23
  15. package/dist/src/lib/construct/api-to-lambda-target/main.d.ts +2 -2
  16. package/dist/src/lib/construct/api-to-lambda-target/main.js +15 -38
  17. package/dist/src/lib/construct/application-configuration/main.d.ts +7 -7
  18. package/dist/src/lib/construct/application-configuration/main.js +17 -41
  19. package/dist/src/lib/construct/graphql-api-lambda/main.d.ts +17 -17
  20. package/dist/src/lib/construct/graphql-api-lambda/main.js +6 -29
  21. package/dist/src/lib/construct/graphql-api-lambda-with-cache/main.d.ts +5 -5
  22. package/dist/src/lib/construct/graphql-api-lambda-with-cache/main.js +7 -7
  23. package/dist/src/lib/construct/lambda-with-iam-access/main.d.ts +16 -16
  24. package/dist/src/lib/construct/lambda-with-iam-access/main.js +8 -31
  25. package/dist/src/lib/construct/lambda-with-iam-access/types.d.ts +4 -4
  26. package/dist/src/lib/construct/rest-api-lambda/main.d.ts +16 -16
  27. package/dist/src/lib/construct/rest-api-lambda/main.js +5 -28
  28. package/dist/src/lib/construct/rest-api-lambda-with-cache/main.d.ts +5 -5
  29. package/dist/src/lib/construct/rest-api-lambda-with-cache/main.js +9 -32
  30. package/dist/src/lib/construct/site-with-ecs-backend/main.d.ts +38 -39
  31. package/dist/src/lib/construct/site-with-ecs-backend/main.js +33 -54
  32. package/dist/src/lib/construct/static-asset-deployment/main.d.ts +4 -4
  33. package/dist/src/lib/construct/static-asset-deployment/main.js +3 -26
  34. package/dist/src/lib/construct/static-site/main.d.ts +15 -15
  35. package/dist/src/lib/construct/static-site/main.js +4 -27
  36. package/dist/src/lib/services/aws/api-gateway/main.d.ts +10 -10
  37. package/dist/src/lib/services/aws/api-gateway/main.js +21 -44
  38. package/dist/src/lib/services/aws/api-gateway/types.d.ts +2 -2
  39. package/dist/src/lib/services/aws/appconfig/main.d.ts +7 -7
  40. package/dist/src/lib/services/aws/appconfig/main.js +14 -37
  41. package/dist/src/lib/services/aws/certificate-manager/main.d.ts +5 -5
  42. package/dist/src/lib/services/aws/certificate-manager/main.js +10 -33
  43. package/dist/src/lib/services/aws/certificate-manager/types.d.ts +2 -2
  44. package/dist/src/lib/services/aws/cloudfront/main.d.ts +18 -18
  45. package/dist/src/lib/services/aws/cloudfront/main.js +46 -45
  46. package/dist/src/lib/services/aws/cloudfront/types.d.ts +2 -3
  47. package/dist/src/lib/services/aws/cloudtrail/main.d.ts +5 -5
  48. package/dist/src/lib/services/aws/cloudtrail/main.js +5 -28
  49. package/dist/src/lib/services/aws/codebuild/main.d.ts +3 -3
  50. package/dist/src/lib/services/aws/codebuild/main.js +7 -30
  51. package/dist/src/lib/services/aws/dynamodb/main.d.ts +3 -3
  52. package/dist/src/lib/services/aws/dynamodb/main.js +8 -31
  53. package/dist/src/lib/services/aws/elastic-container-registry/main.d.ts +2 -2
  54. package/dist/src/lib/services/aws/elastic-container-registry/main.js +4 -27
  55. package/dist/src/lib/services/aws/elastic-container-service/main.d.ts +10 -10
  56. package/dist/src/lib/services/aws/elastic-container-service/main.js +27 -50
  57. package/dist/src/lib/services/aws/elastic-container-service/types.d.ts +4 -4
  58. package/dist/src/lib/services/aws/elastic-file-system/main.d.ts +3 -3
  59. package/dist/src/lib/services/aws/elastic-file-system/main.js +12 -35
  60. package/dist/src/lib/services/aws/elastic-kubernetes-service/main.d.ts +4 -4
  61. package/dist/src/lib/services/aws/elastic-kubernetes-service/main.js +8 -31
  62. package/dist/src/lib/services/aws/elasticache/main.d.ts +4 -4
  63. package/dist/src/lib/services/aws/elasticache/main.js +10 -33
  64. package/dist/src/lib/services/aws/eventbridge/main.d.ts +13 -13
  65. package/dist/src/lib/services/aws/eventbridge/main.js +26 -49
  66. package/dist/src/lib/services/aws/eventbridge/target.d.ts +10 -10
  67. package/dist/src/lib/services/aws/eventbridge/target.js +6 -29
  68. package/dist/src/lib/services/aws/evidently/main.d.ts +7 -7
  69. package/dist/src/lib/services/aws/evidently/main.js +18 -41
  70. package/dist/src/lib/services/aws/identity-access-management/main.d.ts +48 -49
  71. package/dist/src/lib/services/aws/identity-access-management/main.js +110 -133
  72. package/dist/src/lib/services/aws/key-management-service/main.d.ts +2 -2
  73. package/dist/src/lib/services/aws/key-management-service/main.js +5 -28
  74. package/dist/src/lib/services/aws/lambda/main.d.ts +11 -13
  75. package/dist/src/lib/services/aws/lambda/main.js +31 -58
  76. package/dist/src/lib/services/aws/route53/main.d.ts +9 -9
  77. package/dist/src/lib/services/aws/route53/main.js +21 -44
  78. package/dist/src/lib/services/aws/secrets-manager/main.d.ts +5 -6
  79. package/dist/src/lib/services/aws/secrets-manager/main.js +10 -33
  80. package/dist/src/lib/services/aws/simple-notification-service/main.d.ts +4 -4
  81. package/dist/src/lib/services/aws/simple-notification-service/main.js +11 -34
  82. package/dist/src/lib/services/aws/simple-queue-service/main.d.ts +6 -7
  83. package/dist/src/lib/services/aws/simple-queue-service/main.js +15 -38
  84. package/dist/src/lib/services/aws/simple-storage-service/main.d.ts +10 -11
  85. package/dist/src/lib/services/aws/simple-storage-service/main.js +31 -54
  86. package/dist/src/lib/services/aws/step-function/main.d.ts +31 -32
  87. package/dist/src/lib/services/aws/step-function/main.js +33 -57
  88. package/dist/src/lib/services/aws/systems-manager/main.d.ts +4 -4
  89. package/dist/src/lib/services/aws/systems-manager/main.js +10 -33
  90. package/dist/src/lib/services/aws/virtual-private-cloud/main.d.ts +5 -6
  91. package/dist/src/lib/services/aws/virtual-private-cloud/main.js +14 -37
  92. package/dist/src/lib/services/aws/web-application-firewall/main.d.ts +3 -3
  93. package/dist/src/lib/services/aws/web-application-firewall/main.js +8 -31
  94. package/dist/src/lib/utils/aws/index.d.ts +6 -3
  95. package/dist/src/lib/utils/aws/index.js +9 -26
  96. package/package.json +21 -21
  97. package/src/lib/common/construct.ts +97 -67
  98. package/src/lib/common/stack.ts +12 -12
  99. package/src/lib/common/types.ts +2 -2
  100. package/src/lib/construct/api-to-eventbridge-target/api.ts +31 -22
  101. package/src/lib/construct/api-to-eventbridge-target/event.ts +9 -9
  102. package/src/lib/construct/api-to-eventbridge-target/main.ts +56 -41
  103. package/src/lib/construct/api-to-eventbridge-target-with-sns/api-destined-lambda.ts +9 -9
  104. package/src/lib/construct/api-to-eventbridge-target-with-sns/main.ts +62 -47
  105. package/src/lib/construct/api-to-lambda-target/api.ts +33 -23
  106. package/src/lib/construct/api-to-lambda-target/main.ts +24 -18
  107. package/src/lib/construct/application-configuration/main.ts +31 -24
  108. package/src/lib/construct/graphql-api-lambda/main.ts +22 -22
  109. package/src/lib/construct/graphql-api-lambda-with-cache/main.ts +13 -13
  110. package/src/lib/construct/lambda-with-iam-access/main.ts +25 -25
  111. package/src/lib/construct/lambda-with-iam-access/types.ts +4 -4
  112. package/src/lib/construct/rest-api-lambda/main.ts +21 -21
  113. package/src/lib/construct/rest-api-lambda-with-cache/main.ts +14 -14
  114. package/src/lib/construct/site-with-ecs-backend/main.ts +79 -60
  115. package/src/lib/construct/static-asset-deployment/main.ts +6 -6
  116. package/src/lib/construct/static-site/main.ts +23 -17
  117. package/src/lib/services/aws/api-gateway/main.ts +42 -36
  118. package/src/lib/services/aws/api-gateway/types.ts +2 -2
  119. package/src/lib/services/aws/appconfig/main.ts +19 -19
  120. package/src/lib/services/aws/certificate-manager/main.ts +14 -14
  121. package/src/lib/services/aws/certificate-manager/types.ts +2 -2
  122. package/src/lib/services/aws/cloudfront/main.ts +88 -74
  123. package/src/lib/services/aws/cloudfront/types.ts +6 -3
  124. package/src/lib/services/aws/cloudtrail/main.ts +11 -11
  125. package/src/lib/services/aws/codebuild/main.ts +7 -7
  126. package/src/lib/services/aws/dynamodb/main.ts +8 -8
  127. package/src/lib/services/aws/elastic-container-registry/main.ts +4 -4
  128. package/src/lib/services/aws/elastic-container-service/main.ts +48 -37
  129. package/src/lib/services/aws/elastic-container-service/types.ts +4 -4
  130. package/src/lib/services/aws/elastic-file-system/main.ts +16 -16
  131. package/src/lib/services/aws/elastic-kubernetes-service/main.ts +11 -11
  132. package/src/lib/services/aws/elasticache/main.ts +10 -10
  133. package/src/lib/services/aws/eventbridge/main.ts +37 -37
  134. package/src/lib/services/aws/eventbridge/target.ts +14 -14
  135. package/src/lib/services/aws/evidently/main.ts +18 -18
  136. package/src/lib/services/aws/identity-access-management/main.ts +142 -134
  137. package/src/lib/services/aws/key-management-service/main.ts +5 -5
  138. package/src/lib/services/aws/lambda/main.ts +65 -59
  139. package/src/lib/services/aws/route53/main.ts +31 -31
  140. package/src/lib/services/aws/secrets-manager/main.ts +11 -15
  141. package/src/lib/services/aws/simple-notification-service/main.ts +13 -13
  142. package/src/lib/services/aws/simple-queue-service/main.ts +18 -18
  143. package/src/lib/services/aws/simple-storage-service/main.ts +40 -40
  144. package/src/lib/services/aws/step-function/main.ts +77 -65
  145. package/src/lib/services/aws/systems-manager/main.ts +17 -12
  146. package/src/lib/services/aws/virtual-private-cloud/main.ts +16 -16
  147. package/src/lib/services/aws/web-application-firewall/main.ts +8 -8
  148. package/src/lib/utils/aws/index.ts +8 -5
@@ -1,7 +1,12 @@
1
- import * as ssm from 'aws-cdk-lib/aws-ssm'
2
- import * as cr from 'aws-cdk-lib/custom-resources'
3
- import * as utils from '../../../utils'
1
+ import { StringParameter, StringParameterProps } from 'aws-cdk-lib/aws-ssm'
2
+ import {
3
+ AwsCustomResource,
4
+ AwsCustomResourcePolicy,
5
+ AwsSdkCall,
6
+ PhysicalResourceId,
7
+ } from 'aws-cdk-lib/custom-resources'
4
8
  import { CommonConstruct } from '../../../common'
9
+ import { createCfnOutput } from '../../../utils'
5
10
  import { SSMParameterReaderProps } from './types'
6
11
 
7
12
  /**
@@ -29,17 +34,17 @@ export class SsmManager {
29
34
  * @param scope scope in which this resource is defined
30
35
  * @param props parameter props
31
36
  */
32
- public writeStringToParameters(id: string, scope: CommonConstruct, props: ssm.StringParameterProps) {
37
+ public writeStringToParameters(id: string, scope: CommonConstruct, props: StringParameterProps) {
33
38
  if (!props) throw `Parameter props undefined for ${id}`
34
39
 
35
- const parameter = new ssm.StringParameter(scope, `${id}`, {
40
+ const parameter = new StringParameter(scope, `${id}`, {
36
41
  description: `${props.description} - ${scope.props.stage} stage`,
37
42
  parameterName: `${props.parameterName}-${scope.props.stage}`,
38
43
  stringValue: props.stringValue,
39
44
  })
40
45
 
41
- utils.createCfnOutput(`${id}-parameterArn`, scope, parameter.parameterArn)
42
- utils.createCfnOutput(`${id}-parameterName`, scope, parameter.parameterName)
46
+ createCfnOutput(`${id}-parameterArn`, scope, parameter.parameterArn)
47
+ createCfnOutput(`${id}-parameterName`, scope, parameter.parameterName)
43
48
 
44
49
  return parameter
45
50
  }
@@ -53,7 +58,7 @@ export class SsmManager {
53
58
  public readStringParameter(id: string, scope: CommonConstruct, parameterName: string) {
54
59
  if (!parameterName || parameterName == '') throw 'Invalid parameter name'
55
60
 
56
- return ssm.StringParameter.valueFromLookup(scope, parameterName)
61
+ return StringParameter.valueFromLookup(scope, parameterName)
57
62
  }
58
63
 
59
64
  /**
@@ -77,23 +82,23 @@ export class SsmManager {
77
82
  /**
78
83
  * @classdesc Provides utilities to read same/cross region SSM parameters
79
84
  */
80
- export class SSMParameterReader extends cr.AwsCustomResource {
85
+ export class SSMParameterReader extends AwsCustomResource {
81
86
  constructor(scope: CommonConstruct, name: string, props: SSMParameterReaderProps) {
82
87
  const { parameterName, region } = props
83
88
 
84
- const ssmAwsSdkCall: cr.AwsSdkCall = {
89
+ const ssmAwsSdkCall: AwsSdkCall = {
85
90
  action: 'getParameter',
86
91
  parameters: {
87
92
  Name: `${parameterName}-${scope.props.stage}`,
88
93
  },
89
- physicalResourceId: cr.PhysicalResourceId.of(Date.now().toString()),
94
+ physicalResourceId: PhysicalResourceId.of(Date.now().toString()),
90
95
  region,
91
96
  service: 'SSM',
92
97
  }
93
98
 
94
99
  super(scope, name, {
95
100
  onUpdate: ssmAwsSdkCall,
96
- policy: cr.AwsCustomResourcePolicy.fromSdkCalls({ resources: cr.AwsCustomResourcePolicy.ANY_RESOURCE }),
101
+ policy: AwsCustomResourcePolicy.fromSdkCalls({ resources: AwsCustomResourcePolicy.ANY_RESOURCE }),
97
102
  })
98
103
  }
99
104
 
@@ -1,7 +1,7 @@
1
- import * as cdk from 'aws-cdk-lib'
2
- import * as ec2 from 'aws-cdk-lib/aws-ec2'
3
- import * as utils from '../../../utils'
1
+ import { Tags } from 'aws-cdk-lib'
2
+ import { Vpc, VpcProps } from 'aws-cdk-lib/aws-ec2'
4
3
  import { CommonConstruct } from '../../../common'
4
+ import { createCfnOutput } from '../../../utils'
5
5
 
6
6
  /**
7
7
  */
@@ -21,7 +21,7 @@ const CommonVpcIdentifier = 'CommonVpc'
21
21
  * this.vpcManager.createVpc('MyVPC', this)
22
22
  * }
23
23
  * }
24
- * @see [CDK VPC Module]{@link https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.@aws-cdk_aws-ec2.Vpc.html}
24
+ * @see [CDK VPC Module]{@link https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.@aws-cdk_aws-Vpc.html}
25
25
  */
26
26
  export class VpcManager {
27
27
  /**
@@ -30,28 +30,28 @@ export class VpcManager {
30
30
  * @param scope scope in which this resource is defined
31
31
  * @param props
32
32
  */
33
- public createVpc(id: string, scope: CommonConstruct, props: ec2.VpcProps) {
33
+ public createVpc(id: string, scope: CommonConstruct, props: VpcProps) {
34
34
  if (!props) throw `Vpc props undefined for ${id}`
35
- const vpc = new ec2.Vpc(scope, `${id}`, {
35
+ const vpc = new Vpc(scope, `${id}`, {
36
36
  ipAddresses: props.ipAddresses,
37
37
  maxAzs: props.maxAzs,
38
38
  })
39
39
 
40
- utils.createCfnOutput(`${id}Id`, scope, vpc.vpcId)
41
- utils.createCfnOutput(`${id}PublicSubnetIds`, scope, vpc.publicSubnets.map(subnet => subnet.subnetId).toString())
42
- utils.createCfnOutput(`${id}PrivateSubnetIds`, scope, vpc.privateSubnets.map(subnet => subnet.subnetId).toString())
43
- utils.createCfnOutput(
40
+ createCfnOutput(`${id}Id`, scope, vpc.vpcId)
41
+ createCfnOutput(`${id}PublicSubnetIds`, scope, vpc.publicSubnets.map(subnet => subnet.subnetId).toString())
42
+ createCfnOutput(`${id}PrivateSubnetIds`, scope, vpc.privateSubnets.map(subnet => subnet.subnetId).toString())
43
+ createCfnOutput(
44
44
  `${id}PublicSubnetRouteTableIds`,
45
45
  scope,
46
46
  vpc.publicSubnets.map(subnet => subnet.routeTable.routeTableId).toString()
47
47
  )
48
- utils.createCfnOutput(
48
+ createCfnOutput(
49
49
  `${id}PrivateSubnetRouteTableIds`,
50
50
  scope,
51
51
  vpc.privateSubnets.map(subnet => subnet.routeTable.routeTableId).toString()
52
52
  )
53
- utils.createCfnOutput(`${id}AvailabilityZones`, scope, vpc.availabilityZones.toString())
54
- utils.createCfnOutput(`${id}DefaultSecurityGroup`, scope, vpc.vpcDefaultSecurityGroup.toString())
53
+ createCfnOutput(`${id}AvailabilityZones`, scope, vpc.availabilityZones.toString())
54
+ createCfnOutput(`${id}DefaultSecurityGroup`, scope, vpc.vpcDefaultSecurityGroup.toString())
55
55
 
56
56
  return vpc
57
57
  }
@@ -62,9 +62,9 @@ export class VpcManager {
62
62
  * @param props
63
63
  * @param vpcIdentifier optional identifier for VPC
64
64
  */
65
- public createCommonVpc(scope: CommonConstruct, props: ec2.VpcProps, vpcIdentifier?: string) {
65
+ public createCommonVpc(scope: CommonConstruct, props: VpcProps, vpcIdentifier?: string) {
66
66
  const vpc = this.createVpc(CommonVpcIdentifier, scope, props)
67
- cdk.Tags.of(vpc).add('Name', vpcIdentifier ?? CommonVpcIdentifier)
67
+ Tags.of(vpc).add('Name', vpcIdentifier ?? CommonVpcIdentifier)
68
68
 
69
69
  return vpc
70
70
  }
@@ -76,6 +76,6 @@ export class VpcManager {
76
76
  * @param vpcIdentifier optional identifier for VPC
77
77
  */
78
78
  public retrieveCommonVpc(id: string, scope: CommonConstruct, vpcIdentifier?: string) {
79
- return ec2.Vpc.fromLookup(scope, `${id}`, { vpcName: vpcIdentifier ?? CommonVpcIdentifier })
79
+ return Vpc.fromLookup(scope, `${id}`, { vpcName: vpcIdentifier ?? CommonVpcIdentifier })
80
80
  }
81
81
  }
@@ -1,6 +1,6 @@
1
- import * as wafv2 from 'aws-cdk-lib/aws-wafv2'
2
- import * as utils from '../../../utils'
1
+ import { CfnIPSet, CfnWebACL } from 'aws-cdk-lib/aws-wafv2'
3
2
  import { CommonConstruct } from '../../../common'
3
+ import { createCfnOutput } from '../../../utils'
4
4
  import { WafIPSetProps, WafWebACLProps } from './types'
5
5
 
6
6
  /**
@@ -29,7 +29,7 @@ export class WafManager {
29
29
  public createIpSet(id: string, scope: CommonConstruct, props: WafIPSetProps) {
30
30
  if (!props) throw `WAF Ip Set props undefined for ${id}`
31
31
 
32
- const ipSet = new wafv2.CfnIPSet(scope, `${id}`, {
32
+ const ipSet = new CfnIPSet(scope, `${id}`, {
33
33
  addresses: props.addresses,
34
34
  description: `IP Set for ${id} - ${scope.props.stage} stage`,
35
35
  ipAddressVersion: props.ipAddressVersion,
@@ -37,8 +37,8 @@ export class WafManager {
37
37
  scope: props.scope,
38
38
  })
39
39
 
40
- utils.createCfnOutput(`${id}-ipSetId`, scope, ipSet.attrId)
41
- utils.createCfnOutput(`${id}-ipSetArn`, scope, ipSet.attrArn)
40
+ createCfnOutput(`${id}-ipSetId`, scope, ipSet.attrId)
41
+ createCfnOutput(`${id}-ipSetArn`, scope, ipSet.attrArn)
42
42
 
43
43
  return ipSet
44
44
  }
@@ -52,7 +52,7 @@ export class WafManager {
52
52
  public createWebAcl(id: string, scope: CommonConstruct, props: WafWebACLProps) {
53
53
  if (!props) throw `WAF WebACL props undefined for ${id}`
54
54
 
55
- const webAcl = new wafv2.CfnWebACL(scope, `${id}`, {
55
+ const webAcl = new CfnWebACL(scope, `${id}`, {
56
56
  defaultAction: props.defaultAction,
57
57
  description: `Web Acl for ${id} - ${scope.props.stage} stage`,
58
58
  name: scope.isProductionStage() ? props.name : `${props.name}-${scope.props.stage}`,
@@ -62,8 +62,8 @@ export class WafManager {
62
62
  visibilityConfig: props.visibilityConfig,
63
63
  })
64
64
 
65
- utils.createCfnOutput(`${id}-webAclId`, scope, webAcl.attrId)
66
- utils.createCfnOutput(`${id}-webAclArn`, scope, webAcl.attrArn)
65
+ createCfnOutput(`${id}-webAclId`, scope, webAcl.attrId)
66
+ createCfnOutput(`${id}-webAclArn`, scope, webAcl.attrArn)
67
67
 
68
68
  return webAcl
69
69
  }
@@ -1,8 +1,8 @@
1
- import * as cdk from 'aws-cdk-lib'
2
- import * as _ from 'lodash'
3
- import { CommonConstruct } from '../../common'
4
1
  import { fromEnv, fromIni } from '@aws-sdk/credential-providers'
5
2
  import { AwsCredentialIdentityProvider } from '@aws-sdk/types'
3
+ import { CfnOutput } from 'aws-cdk-lib'
4
+ import _ from 'lodash'
5
+ import { CommonConstruct } from '../../common'
6
6
 
7
7
  /**
8
8
  * @summary Helper method to add CloudFormation outputs from the construct
@@ -19,9 +19,9 @@ export function createCfnOutput(
19
19
  value?: string,
20
20
  description?: string,
21
21
  overrideId = true
22
- ): cdk.CfnOutput {
22
+ ): CfnOutput {
23
23
  const camelName = _.camelCase(id)
24
- const output = new cdk.CfnOutput(scope, id, {
24
+ const output = new CfnOutput(scope, id, {
25
25
  description,
26
26
  exportName: `${scope.props.stackName}-${camelName}`,
27
27
  value: value ?? '',
@@ -32,6 +32,9 @@ export function createCfnOutput(
32
32
  return output
33
33
  }
34
34
 
35
+ /**
36
+ *
37
+ */
35
38
  export function determineCredentials(): AwsCredentialIdentityProvider {
36
39
  if (process.env.AWS_PROFILE) return fromIni()
37
40
  return fromEnv()