@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,20 +1,19 @@
1
- import * as cdk from 'aws-cdk-lib';
2
- import * as ecs from 'aws-cdk-lib/aws-ecs';
3
- import * as events from 'aws-cdk-lib/aws-events';
4
- import * as iam from 'aws-cdk-lib/aws-iam';
5
- import * as logs from 'aws-cdk-lib/aws-logs';
6
- import * as s3 from 'aws-cdk-lib/aws-s3';
7
- import * as sqs from 'aws-cdk-lib/aws-sqs';
1
+ import { ICluster, ITaskDefinition } from 'aws-cdk-lib/aws-ecs';
2
+ import { IRule } from 'aws-cdk-lib/aws-events';
3
+ import { CfnRole, PolicyDocument, PolicyStatement, Role, ServicePrincipal } from 'aws-cdk-lib/aws-iam';
4
+ import { CfnLogGroup } from 'aws-cdk-lib/aws-logs';
5
+ import { IBucket } from 'aws-cdk-lib/aws-s3';
6
+ import { Queue } from 'aws-cdk-lib/aws-sqs';
8
7
  import { CommonConstruct } from '../../../common';
9
8
  /**
10
- * @classdesc Provides operations on AWS IAM.
9
+ * @classdesc Provides operations on AWS
11
10
  * - A new instance of this class is injected into {@link CommonConstruct} constructor.
12
11
  * - If a custom construct extends {@link CommonConstruct}, an instance is available within the context.
13
12
  * @example
14
13
  * import { CommonConstruct } from '@gradientedge/cdk-utils'
15
14
  *
16
15
  * class CustomConstruct extends CommonConstruct {
17
- * constructor(parent: cdk.Construct, id: string, props: common.CommonStackProps) {
16
+ * constructor(parent: Construct, id: string, props: common.CommonStackProps) {
18
17
  * super(parent, id, props)
19
18
  * this.props = props
20
19
  * this.iamManager.createRoleForEcsEvent('MyEcsRole', this, cluster, task)
@@ -28,162 +27,162 @@ export declare class IamManager {
28
27
  * @param scope scope in which this resource is defined
29
28
  * @param resourceArns list of ARNs to allow access to
30
29
  */
31
- statementForReadSecrets(scope: CommonConstruct, resourceArns?: string[]): cdk.aws_iam.PolicyStatement;
30
+ statementForReadSecrets(scope: CommonConstruct, resourceArns?: string[]): PolicyStatement;
32
31
  /**
33
32
  * @summary Method to create iam statement to put events
34
33
  * @param resourceArns list of ARNs to allow access to
35
34
  */
36
- statementForPutEvents(resourceArns?: string[]): cdk.aws_iam.PolicyStatement;
35
+ statementForPutEvents(resourceArns?: string[]): PolicyStatement;
37
36
  /**
38
- * @summary Method to create iam statement to start stepfunction execution
37
+ * @summary Method to create iam statement to start step function execution
39
38
  * @param resourceArns list of ARNs to allow access to
40
39
  */
41
- statementForStartExecution(resourceArns?: string[]): cdk.aws_iam.PolicyStatement;
40
+ statementForStartExecution(resourceArns?: string[]): PolicyStatement;
42
41
  /**
43
42
  * @summary Method to create iam statement to poll queue
44
43
  * @param resourceArns list of ARNs to allow access to
45
44
  */
46
- statementForPollQueue(resourceArns?: string[]): cdk.aws_iam.PolicyStatement;
45
+ statementForPollQueue(resourceArns?: string[]): PolicyStatement;
47
46
  /**
48
47
  * @summary Method to create iam statement to invoke lambda function
49
48
  * @param resourceArns list of ARNs to allow access to
50
49
  */
51
- statementForInvokeLambda(resourceArns?: string[]): cdk.aws_iam.PolicyStatement;
50
+ statementForInvokeLambda(resourceArns?: string[]): PolicyStatement;
52
51
  /**
53
52
  * @summary Method to create iam statement to read app config
54
53
  * @param resourceArns list of ARNs to allow access to
55
54
  */
56
- statementForReadAnyAppConfig(resourceArns?: string[]): cdk.aws_iam.PolicyStatement;
55
+ statementForReadAnyAppConfig(resourceArns?: string[]): PolicyStatement;
57
56
  /**
58
57
  * @summary Method to create iam statement to access app config
59
58
  * @param resourceArns list of ARNs to allow access to
60
59
  */
61
- statementForAppConfigExecution(resourceArns?: string[]): cdk.aws_iam.PolicyStatement;
60
+ statementForAppConfigExecution(resourceArns?: string[]): PolicyStatement;
62
61
  /**
63
62
  * @summary Method to create iam statement to put xray telemetry
64
63
  * @param resourceArns list of ARNs to allow access to
65
64
  */
66
- statementForPutXrayTelemetry(resourceArns?: string[]): cdk.aws_iam.PolicyStatement;
65
+ statementForPutXrayTelemetry(resourceArns?: string[]): PolicyStatement;
67
66
  /**
68
67
  * @summary Method to create iam statement to decrypt kms
69
68
  * @param resourceArns list of ARNs to allow access to
70
69
  */
71
- statementForDecryptKms(resourceArns?: string[]): cdk.aws_iam.PolicyStatement;
70
+ statementForDecryptKms(resourceArns?: string[]): PolicyStatement;
72
71
  /**
73
72
  * @summary Method to create iam statement to list s3 buckets
74
73
  * @param scope scope in which this resource is defined
75
74
  * @param bucket
76
75
  */
77
- statementForListBucket(scope: CommonConstruct, bucket: s3.IBucket): cdk.aws_iam.PolicyStatement;
76
+ statementForListBucket(scope: CommonConstruct, bucket: IBucket): PolicyStatement;
78
77
  /**
79
78
  * @summary Method to create iam statement to list all s3 buckets
80
79
  * @param resourceArns list of ARNs to allow access to
81
80
  */
82
- statementForListAllMyBuckets(resourceArns?: string[]): cdk.aws_iam.PolicyStatement;
81
+ statementForListAllMyBuckets(resourceArns?: string[]): PolicyStatement;
83
82
  /**
84
83
  * @summary Method to create iam statement to get s3 objects in buckets
85
84
  * @param scope scope in which this resource is defined
86
85
  * @param bucket
87
86
  * @param resourceArns list of ARNs to allow access to
88
87
  */
89
- statementForGetAnyS3Objects(scope: CommonConstruct, bucket: s3.IBucket, resourceArns?: string[]): cdk.aws_iam.PolicyStatement;
88
+ statementForGetAnyS3Objects(scope: CommonConstruct, bucket: IBucket, resourceArns?: string[]): PolicyStatement;
90
89
  /**
91
90
  * @summary Method to create iam statement to delete s3 objects in buckets
92
91
  * @param scope scope in which this resource is defined
93
92
  * @param bucket
94
93
  * @param resourceArns list of ARNs to allow access to
95
94
  */
96
- statementForDeleteAnyS3Objects(scope: CommonConstruct, bucket: s3.IBucket, resourceArns?: string[]): cdk.aws_iam.PolicyStatement;
95
+ statementForDeleteAnyS3Objects(scope: CommonConstruct, bucket: IBucket, resourceArns?: string[]): PolicyStatement;
97
96
  /**
98
97
  * @summary Method to create iam statement to write s3 objects in buckets
99
98
  * @param scope scope in which this resource is defined
100
99
  * @param bucket
101
100
  * @param resourceArns list of ARNs to allow access to
102
101
  */
103
- statementForPutAnyS3Objects(scope: CommonConstruct, bucket: s3.IBucket, resourceArns?: string[]): cdk.aws_iam.PolicyStatement;
102
+ statementForPutAnyS3Objects(scope: CommonConstruct, bucket: IBucket, resourceArns?: string[]): PolicyStatement;
104
103
  /**
105
104
  * @summary Method to create iam statement to pass iam role
106
105
  * @param resourceArns list of ARNs to allow access to
107
106
  */
108
- statementForPassRole(resourceArns?: string[]): cdk.aws_iam.PolicyStatement;
107
+ statementForPassRole(resourceArns?: string[]): PolicyStatement;
109
108
  /**
110
109
  * @summary Method to create iam statement to invalidate cloudfront cache
111
110
  * @param resourceArns list of ARNs to allow access to
112
111
  */
113
- statementForCloudfrontInvalidation(resourceArns?: string[]): cdk.aws_iam.PolicyStatement;
112
+ statementForCloudfrontInvalidation(resourceArns?: string[]): PolicyStatement;
114
113
  /**
115
114
  * @summary Method to create iam statement to access efs
116
115
  * @param resourceArns list of ARNs to allow access to
117
116
  */
118
- statementForWriteEfs(resourceArns?: string[]): cdk.aws_iam.PolicyStatement;
117
+ statementForWriteEfs(resourceArns?: string[]): PolicyStatement;
119
118
  /**
120
119
  * @summary Method to create iam policy to invalidate cloudfront cache
121
120
  * @param resourceArns list of ARNs to allow access to
122
121
  */
123
- policyForCloudfrontInvalidation(resourceArns?: string[]): cdk.aws_iam.PolicyDocument;
122
+ policyForCloudfrontInvalidation(resourceArns?: string[]): PolicyDocument;
124
123
  /**
125
124
  * @summary Method to create iam role to invalidate cloudfront cache
126
125
  * @param id scoped id of the resource
127
126
  * @param scope scope in which this resource is defined
128
127
  */
129
- roleForCloudfrontInvalidation(id: string, scope: CommonConstruct): cdk.aws_iam.Role;
128
+ roleForCloudfrontInvalidation(id: string, scope: CommonConstruct): Role;
130
129
  /**
131
130
  * @summary Method to create iam statement to assume iam role
132
131
  * @param scope scope in which this resource is defined
133
132
  * @param servicePrincipals
134
133
  */
135
- statementForAssumeRole(scope: CommonConstruct, servicePrincipals: iam.ServicePrincipal[]): cdk.aws_iam.PolicyStatement;
134
+ statementForAssumeRole(scope: CommonConstruct, servicePrincipals: ServicePrincipal[]): PolicyStatement;
136
135
  /**
137
136
  * @summary Method to create iam statement to pass ecs role
138
137
  * @param resourceArns list of ARNs to allow access to
139
138
  */
140
- statementForEcsPassRole(resourceArns?: string[]): cdk.aws_iam.PolicyStatement;
139
+ statementForEcsPassRole(resourceArns?: string[]): PolicyStatement;
141
140
  /**
142
141
  * @summary Method to create iam statement to run ecs task
143
142
  * @param scope scope in which this resource is defined
144
143
  * @param cluster
145
144
  * @param task
146
145
  */
147
- statementForRunEcsTask(scope: CommonConstruct, cluster: ecs.ICluster, task: ecs.ITaskDefinition): cdk.aws_iam.PolicyStatement;
146
+ statementForRunEcsTask(scope: CommonConstruct, cluster: ICluster, task: ITaskDefinition): PolicyStatement;
148
147
  /**
149
148
  * @summary Method to create iam statement to create log stream
150
149
  * @param scope scope in which this resource is defined
151
150
  * @param logGroup
152
151
  */
153
- statementForCreateLogStream(scope: CommonConstruct, logGroup: logs.CfnLogGroup): cdk.aws_iam.PolicyStatement;
152
+ statementForCreateLogStream(scope: CommonConstruct, logGroup: CfnLogGroup): PolicyStatement;
154
153
  /**
155
154
  * @summary Method to create iam statement to create any log stream
156
155
  * @param resourceArns list of ARNs to allow access to
157
156
  */
158
- statementForCreateAnyLogStream(resourceArns?: string[]): cdk.aws_iam.PolicyStatement;
157
+ statementForCreateAnyLogStream(resourceArns?: string[]): PolicyStatement;
159
158
  /**
160
159
  * @summary Method to create iam statement to write log events
161
160
  * @param scope scope in which this resource is defined
162
161
  * @param logGroup
163
162
  */
164
- statementForPutLogEvent(scope: CommonConstruct, logGroup: logs.CfnLogGroup): cdk.aws_iam.PolicyStatement;
163
+ statementForPutLogEvent(scope: CommonConstruct, logGroup: CfnLogGroup): PolicyStatement;
165
164
  /**
166
165
  * @summary Method to create iam statement to write any log events
167
166
  * @param resourceArns list of ARNs to allow access to
168
167
  */
169
- statementForPutAnyLogEvent(resourceArns?: string[]): cdk.aws_iam.PolicyStatement;
168
+ statementForPutAnyLogEvent(resourceArns?: string[]): PolicyStatement;
170
169
  /**
171
170
  * @summary Method to create iam statement to read items from dynamodb table
172
171
  * @param resourceArns list of ARNs to allow access to
173
172
  */
174
- statementForReadTableItems(resourceArns?: string[]): cdk.aws_iam.PolicyStatement;
173
+ statementForReadTableItems(resourceArns?: string[]): PolicyStatement;
175
174
  /**
176
175
  * @summary Method to create iam statement to write items from dynamodb table
177
176
  * @param resourceArns list of ARNs to allow access to
178
177
  */
179
- statementForWriteTableItems(resourceArns?: string[]): cdk.aws_iam.PolicyStatement;
178
+ statementForWriteTableItems(resourceArns?: string[]): PolicyStatement;
180
179
  /**
181
180
  * @summary Method to create iam statement for cloud trail
182
181
  * @param id scoped id of the resource
183
182
  * @param scope scope in which this resource is defined
184
183
  * @param logGroup
185
184
  */
186
- createRoleForCloudTrail(id: string, scope: CommonConstruct, logGroup: logs.CfnLogGroup): cdk.aws_iam.CfnRole;
185
+ createRoleForCloudTrail(id: string, scope: CommonConstruct, logGroup: CfnLogGroup): CfnRole;
187
186
  /**
188
187
  * @summary Method to create iam statement for ecs event
189
188
  * @param id scoped id of the resource
@@ -191,38 +190,38 @@ export declare class IamManager {
191
190
  * @param cluster
192
191
  * @param task
193
192
  */
194
- createRoleForEcsEvent(id: string, scope: CommonConstruct, cluster: ecs.ICluster, task: ecs.ITaskDefinition): cdk.aws_iam.Role;
193
+ createRoleForEcsEvent(id: string, scope: CommonConstruct, cluster: ICluster, task: ITaskDefinition): Role;
195
194
  /**
196
195
  * @summary Method to create iam statement for ecs execution
197
196
  * @param id scoped id of the resource
198
197
  * @param scope scope in which this resource is defined
199
198
  * @param policy
200
199
  */
201
- createRoleForEcsExecution(id: string, scope: CommonConstruct, policy: iam.PolicyDocument): cdk.aws_iam.Role;
200
+ createRoleForEcsExecution(id: string, scope: CommonConstruct, policy: PolicyDocument): Role;
202
201
  /**
203
202
  * @summary Method to create iam statement for lambda execution
204
203
  * @param id scoped id of the resource
205
204
  * @param scope scope in which this resource is defined
206
205
  * @param policy
207
- * @param servicePrinicpal
206
+ * @param servicePrincipal
208
207
  */
209
- createRoleForLambda(id: string, scope: CommonConstruct, policy: iam.PolicyDocument, servicePrinicpal?: iam.ServicePrincipal): cdk.aws_iam.Role;
208
+ createRoleForLambda(id: string, scope: CommonConstruct, policy: PolicyDocument, servicePrincipal?: ServicePrincipal): Role;
210
209
  /**
211
210
  * @summary Method to create iam statement for appconfig secrets manager integration
212
211
  * @param id scoped id of the resource
213
212
  * @param scope scope in which this resource is defined
214
213
  * @param policy
215
- * @param servicePrinicpal
214
+ * @param servicePrincipal
216
215
  */
217
- createRoleForAppConfigSecrets(id: string, scope: CommonConstruct, policy: iam.PolicyDocument, servicePrinicpal?: iam.ServicePrincipal): cdk.aws_iam.Role;
216
+ createRoleForAppConfigSecrets(id: string, scope: CommonConstruct, policy: PolicyDocument, servicePrincipal?: ServicePrincipal): Role;
218
217
  /**
219
218
  * @summary Method to create iam statement for step function execution
220
219
  * @param id scoped id of the resource
221
220
  * @param scope scope in which this resource is defined
222
221
  * @param policy
223
- * @param servicePrinicpal
222
+ * @param servicePrincipal
224
223
  */
225
- createRoleForStepFunction(id: string, scope: CommonConstruct, policy: iam.PolicyDocument, servicePrinicpal?: iam.ServicePrincipal): cdk.aws_iam.Role;
224
+ createRoleForStepFunction(id: string, scope: CommonConstruct, policy: PolicyDocument, servicePrincipal?: ServicePrincipal): Role;
226
225
  /**
227
226
  * @summary Method to create iam statement for sqs to step function pipe
228
227
  * @param id scoped id of the resource
@@ -230,7 +229,7 @@ export declare class IamManager {
230
229
  * @param queueArn the arn of the sqs queue
231
230
  * @param stepFunctionArn the arn of the step function
232
231
  */
233
- createRoleForSqsToSfnPipe(id: string, scope: CommonConstruct, queueArn: string, stepFunctionArn: string): cdk.aws_iam.Role;
232
+ createRoleForSqsToSfnPipe(id: string, scope: CommonConstruct, queueArn: string, stepFunctionArn: string): Role;
234
233
  /**
235
234
  * @summary Method to create iam policy for sqs
236
235
  * @param id scoped id of the resource
@@ -239,5 +238,5 @@ export declare class IamManager {
239
238
  * @param eventBridgeRule
240
239
  * @param servicePrincipals
241
240
  */
242
- createPolicyForSqsEvent(id: string, scope: CommonConstruct, sqsQueue: sqs.Queue, eventBridgeRule: events.IRule, servicePrincipals?: iam.ServicePrincipal[]): cdk.aws_iam.PolicyDocument;
241
+ createPolicyForSqsEvent(id: string, scope: CommonConstruct, sqsQueue: Queue, eventBridgeRule: IRule, servicePrincipals?: ServicePrincipal[]): PolicyDocument;
243
242
  }