@gradientedge/cdk-utils 8.118.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.
- package/app/api-destined-function/package.json +1 -1
- package/dist/src/lib/common/construct.d.ts +32 -32
- package/dist/src/lib/common/construct.js +36 -59
- package/dist/src/lib/common/stack.d.ts +8 -7
- package/dist/src/lib/common/stack.js +17 -37
- package/dist/src/lib/common/types.d.ts +2 -2
- package/dist/src/lib/construct/api-to-eventbridge-target/api.d.ts +22 -22
- package/dist/src/lib/construct/api-to-eventbridge-target/event.d.ts +9 -9
- package/dist/src/lib/construct/api-to-eventbridge-target/main.d.ts +3 -3
- package/dist/src/lib/construct/api-to-eventbridge-target/main.js +37 -60
- package/dist/src/lib/construct/api-to-eventbridge-target-with-sns/api-destined-lambda.d.ts +9 -9
- package/dist/src/lib/construct/api-to-eventbridge-target-with-sns/main.d.ts +3 -3
- package/dist/src/lib/construct/api-to-eventbridge-target-with-sns/main.js +40 -63
- package/dist/src/lib/construct/api-to-lambda-target/api.d.ts +23 -23
- package/dist/src/lib/construct/api-to-lambda-target/main.d.ts +2 -2
- package/dist/src/lib/construct/api-to-lambda-target/main.js +15 -38
- package/dist/src/lib/construct/application-configuration/main.d.ts +7 -7
- package/dist/src/lib/construct/application-configuration/main.js +17 -41
- package/dist/src/lib/construct/graphql-api-lambda/main.d.ts +17 -17
- package/dist/src/lib/construct/graphql-api-lambda/main.js +6 -29
- package/dist/src/lib/construct/graphql-api-lambda-with-cache/main.d.ts +5 -5
- package/dist/src/lib/construct/graphql-api-lambda-with-cache/main.js +7 -7
- package/dist/src/lib/construct/lambda-with-iam-access/main.d.ts +16 -16
- package/dist/src/lib/construct/lambda-with-iam-access/main.js +8 -31
- package/dist/src/lib/construct/lambda-with-iam-access/types.d.ts +4 -4
- package/dist/src/lib/construct/rest-api-lambda/main.d.ts +16 -16
- package/dist/src/lib/construct/rest-api-lambda/main.js +5 -28
- package/dist/src/lib/construct/rest-api-lambda-with-cache/main.d.ts +5 -5
- package/dist/src/lib/construct/rest-api-lambda-with-cache/main.js +9 -32
- package/dist/src/lib/construct/site-with-ecs-backend/main.d.ts +38 -39
- package/dist/src/lib/construct/site-with-ecs-backend/main.js +33 -54
- package/dist/src/lib/construct/static-asset-deployment/main.d.ts +4 -4
- package/dist/src/lib/construct/static-asset-deployment/main.js +3 -26
- package/dist/src/lib/construct/static-site/main.d.ts +15 -15
- package/dist/src/lib/construct/static-site/main.js +4 -27
- package/dist/src/lib/services/aws/api-gateway/main.d.ts +10 -10
- package/dist/src/lib/services/aws/api-gateway/main.js +21 -44
- package/dist/src/lib/services/aws/api-gateway/types.d.ts +2 -2
- package/dist/src/lib/services/aws/appconfig/main.d.ts +7 -7
- package/dist/src/lib/services/aws/appconfig/main.js +14 -37
- package/dist/src/lib/services/aws/certificate-manager/main.d.ts +5 -5
- package/dist/src/lib/services/aws/certificate-manager/main.js +10 -33
- package/dist/src/lib/services/aws/certificate-manager/types.d.ts +2 -2
- package/dist/src/lib/services/aws/cloudfront/main.d.ts +18 -18
- package/dist/src/lib/services/aws/cloudfront/main.js +46 -45
- package/dist/src/lib/services/aws/cloudfront/types.d.ts +2 -3
- package/dist/src/lib/services/aws/cloudtrail/main.d.ts +5 -5
- package/dist/src/lib/services/aws/cloudtrail/main.js +5 -28
- package/dist/src/lib/services/aws/codebuild/main.d.ts +3 -3
- package/dist/src/lib/services/aws/codebuild/main.js +7 -30
- package/dist/src/lib/services/aws/dynamodb/main.d.ts +3 -3
- package/dist/src/lib/services/aws/dynamodb/main.js +8 -31
- package/dist/src/lib/services/aws/elastic-container-registry/main.d.ts +2 -2
- package/dist/src/lib/services/aws/elastic-container-registry/main.js +4 -27
- package/dist/src/lib/services/aws/elastic-container-service/main.d.ts +10 -10
- package/dist/src/lib/services/aws/elastic-container-service/main.js +27 -50
- package/dist/src/lib/services/aws/elastic-container-service/types.d.ts +4 -4
- package/dist/src/lib/services/aws/elastic-file-system/main.d.ts +3 -3
- package/dist/src/lib/services/aws/elastic-file-system/main.js +12 -35
- package/dist/src/lib/services/aws/elastic-kubernetes-service/main.d.ts +4 -4
- package/dist/src/lib/services/aws/elastic-kubernetes-service/main.js +8 -31
- package/dist/src/lib/services/aws/elasticache/main.d.ts +4 -4
- package/dist/src/lib/services/aws/elasticache/main.js +10 -33
- package/dist/src/lib/services/aws/eventbridge/main.d.ts +13 -13
- package/dist/src/lib/services/aws/eventbridge/main.js +26 -49
- package/dist/src/lib/services/aws/eventbridge/target.d.ts +10 -10
- package/dist/src/lib/services/aws/eventbridge/target.js +6 -29
- package/dist/src/lib/services/aws/evidently/main.d.ts +7 -7
- package/dist/src/lib/services/aws/evidently/main.js +18 -41
- package/dist/src/lib/services/aws/identity-access-management/main.d.ts +48 -49
- package/dist/src/lib/services/aws/identity-access-management/main.js +110 -133
- package/dist/src/lib/services/aws/key-management-service/main.d.ts +2 -2
- package/dist/src/lib/services/aws/key-management-service/main.js +5 -28
- package/dist/src/lib/services/aws/lambda/main.d.ts +11 -13
- package/dist/src/lib/services/aws/lambda/main.js +31 -58
- package/dist/src/lib/services/aws/route53/main.d.ts +9 -9
- package/dist/src/lib/services/aws/route53/main.js +21 -44
- package/dist/src/lib/services/aws/secrets-manager/main.d.ts +5 -6
- package/dist/src/lib/services/aws/secrets-manager/main.js +10 -33
- package/dist/src/lib/services/aws/simple-notification-service/main.d.ts +4 -4
- package/dist/src/lib/services/aws/simple-notification-service/main.js +11 -34
- package/dist/src/lib/services/aws/simple-queue-service/main.d.ts +6 -7
- package/dist/src/lib/services/aws/simple-queue-service/main.js +15 -38
- package/dist/src/lib/services/aws/simple-storage-service/main.d.ts +10 -11
- package/dist/src/lib/services/aws/simple-storage-service/main.js +31 -54
- package/dist/src/lib/services/aws/step-function/main.d.ts +31 -32
- package/dist/src/lib/services/aws/step-function/main.js +33 -57
- package/dist/src/lib/services/aws/systems-manager/main.d.ts +4 -4
- package/dist/src/lib/services/aws/systems-manager/main.js +10 -33
- package/dist/src/lib/services/aws/virtual-private-cloud/main.d.ts +5 -6
- package/dist/src/lib/services/aws/virtual-private-cloud/main.js +14 -37
- package/dist/src/lib/services/aws/web-application-firewall/main.d.ts +3 -3
- package/dist/src/lib/services/aws/web-application-firewall/main.js +8 -31
- package/dist/src/lib/utils/aws/index.d.ts +6 -3
- package/dist/src/lib/utils/aws/index.js +9 -26
- package/package.json +15 -15
- package/src/lib/common/construct.ts +97 -67
- package/src/lib/common/stack.ts +12 -12
- package/src/lib/common/types.ts +2 -2
- package/src/lib/construct/api-to-eventbridge-target/api.ts +31 -22
- package/src/lib/construct/api-to-eventbridge-target/event.ts +9 -9
- package/src/lib/construct/api-to-eventbridge-target/main.ts +56 -41
- package/src/lib/construct/api-to-eventbridge-target-with-sns/api-destined-lambda.ts +9 -9
- package/src/lib/construct/api-to-eventbridge-target-with-sns/main.ts +62 -47
- package/src/lib/construct/api-to-lambda-target/api.ts +33 -23
- package/src/lib/construct/api-to-lambda-target/main.ts +24 -18
- package/src/lib/construct/application-configuration/main.ts +31 -24
- package/src/lib/construct/graphql-api-lambda/main.ts +22 -22
- package/src/lib/construct/graphql-api-lambda-with-cache/main.ts +13 -13
- package/src/lib/construct/lambda-with-iam-access/main.ts +25 -25
- package/src/lib/construct/lambda-with-iam-access/types.ts +4 -4
- package/src/lib/construct/rest-api-lambda/main.ts +21 -21
- package/src/lib/construct/rest-api-lambda-with-cache/main.ts +14 -14
- package/src/lib/construct/site-with-ecs-backend/main.ts +79 -60
- package/src/lib/construct/static-asset-deployment/main.ts +6 -6
- package/src/lib/construct/static-site/main.ts +23 -17
- package/src/lib/services/aws/api-gateway/main.ts +42 -36
- package/src/lib/services/aws/api-gateway/types.ts +2 -2
- package/src/lib/services/aws/appconfig/main.ts +19 -19
- package/src/lib/services/aws/certificate-manager/main.ts +14 -14
- package/src/lib/services/aws/certificate-manager/types.ts +2 -2
- package/src/lib/services/aws/cloudfront/main.ts +88 -74
- package/src/lib/services/aws/cloudfront/types.ts +6 -3
- package/src/lib/services/aws/cloudtrail/main.ts +11 -11
- package/src/lib/services/aws/codebuild/main.ts +7 -7
- package/src/lib/services/aws/dynamodb/main.ts +8 -8
- package/src/lib/services/aws/elastic-container-registry/main.ts +4 -4
- package/src/lib/services/aws/elastic-container-service/main.ts +48 -37
- package/src/lib/services/aws/elastic-container-service/types.ts +4 -4
- package/src/lib/services/aws/elastic-file-system/main.ts +16 -16
- package/src/lib/services/aws/elastic-kubernetes-service/main.ts +11 -11
- package/src/lib/services/aws/elasticache/main.ts +10 -10
- package/src/lib/services/aws/eventbridge/main.ts +37 -37
- package/src/lib/services/aws/eventbridge/target.ts +14 -14
- package/src/lib/services/aws/evidently/main.ts +18 -18
- package/src/lib/services/aws/identity-access-management/main.ts +142 -134
- package/src/lib/services/aws/key-management-service/main.ts +5 -5
- package/src/lib/services/aws/lambda/main.ts +65 -59
- package/src/lib/services/aws/route53/main.ts +31 -31
- package/src/lib/services/aws/secrets-manager/main.ts +11 -15
- package/src/lib/services/aws/simple-notification-service/main.ts +13 -13
- package/src/lib/services/aws/simple-queue-service/main.ts +18 -18
- package/src/lib/services/aws/simple-storage-service/main.ts +40 -40
- package/src/lib/services/aws/step-function/main.ts +77 -65
- package/src/lib/services/aws/systems-manager/main.ts +17 -12
- package/src/lib/services/aws/virtual-private-cloud/main.ts +16 -16
- package/src/lib/services/aws/web-application-firewall/main.ts +8 -8
- package/src/lib/utils/aws/index.ts +8 -5
|
@@ -1,20 +1,19 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
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
|
|
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:
|
|
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[]):
|
|
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[]):
|
|
35
|
+
statementForPutEvents(resourceArns?: string[]): PolicyStatement;
|
|
37
36
|
/**
|
|
38
|
-
* @summary Method to create iam statement to start
|
|
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[]):
|
|
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[]):
|
|
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[]):
|
|
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[]):
|
|
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[]):
|
|
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[]):
|
|
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[]):
|
|
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:
|
|
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[]):
|
|
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:
|
|
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:
|
|
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:
|
|
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[]):
|
|
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[]):
|
|
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[]):
|
|
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[]):
|
|
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):
|
|
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:
|
|
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[]):
|
|
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:
|
|
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:
|
|
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[]):
|
|
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:
|
|
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[]):
|
|
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[]):
|
|
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[]):
|
|
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:
|
|
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:
|
|
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:
|
|
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
|
|
206
|
+
* @param servicePrincipal
|
|
208
207
|
*/
|
|
209
|
-
createRoleForLambda(id: string, scope: CommonConstruct, policy:
|
|
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
|
|
214
|
+
* @param servicePrincipal
|
|
216
215
|
*/
|
|
217
|
-
createRoleForAppConfigSecrets(id: string, scope: CommonConstruct, policy:
|
|
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
|
|
222
|
+
* @param servicePrincipal
|
|
224
223
|
*/
|
|
225
|
-
createRoleForStepFunction(id: string, scope: CommonConstruct, policy:
|
|
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):
|
|
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:
|
|
241
|
+
createPolicyForSqsEvent(id: string, scope: CommonConstruct, sqsQueue: Queue, eventBridgeRule: IRule, servicePrincipals?: ServicePrincipal[]): PolicyDocument;
|
|
243
242
|
}
|