@gradientedge/cdk-utils 8.91.0 → 8.92.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/.eslintrc.json +40 -0
- package/app/api-destined-function/src/lib/lambda.ts +6 -6
- package/dist/app/api-destined-function/src/lib/lambda.d.ts +6 -6
- package/dist/app/api-destined-function/src/lib/lambda.js +6 -6
- package/dist/lib/lambda.d.ts +6 -6
- package/dist/lib/lambda.js +6 -6
- package/dist/lib/lambda.js.map +1 -1
- package/dist/src/lib/common/construct.d.ts +4 -7
- package/dist/src/lib/common/construct.js +4 -7
- package/dist/src/lib/common/stack.d.ts +9 -13
- package/dist/src/lib/common/stack.js +9 -13
- package/dist/src/lib/common/types.d.ts +0 -2
- package/dist/src/lib/construct/api-to-eventbridge-target/api.d.ts +0 -3
- package/dist/src/lib/construct/api-to-eventbridge-target/api.js +0 -3
- package/dist/src/lib/construct/api-to-eventbridge-target/event.d.ts +0 -3
- package/dist/src/lib/construct/api-to-eventbridge-target/event.js +0 -3
- package/dist/src/lib/construct/api-to-eventbridge-target/main.d.ts +0 -27
- package/dist/src/lib/construct/api-to-eventbridge-target/main.js +41 -68
- package/dist/src/lib/construct/api-to-eventbridge-target/types.d.ts +13 -25
- package/dist/src/lib/construct/api-to-eventbridge-target-with-sns/api-destined-lambda.d.ts +0 -3
- package/dist/src/lib/construct/api-to-eventbridge-target-with-sns/api-destined-lambda.js +0 -3
- package/dist/src/lib/construct/api-to-eventbridge-target-with-sns/main.d.ts +0 -37
- package/dist/src/lib/construct/api-to-eventbridge-target-with-sns/main.js +44 -81
- package/dist/src/lib/construct/api-to-eventbridge-target-with-sns/types.d.ts +1 -5
- package/dist/src/lib/construct/api-to-lambda-target/api.d.ts +0 -3
- package/dist/src/lib/construct/api-to-lambda-target/api.js +0 -3
- package/dist/src/lib/construct/api-to-lambda-target/main.d.ts +0 -14
- package/dist/src/lib/construct/api-to-lambda-target/main.js +7 -21
- package/dist/src/lib/construct/api-to-lambda-target/types.d.ts +7 -13
- package/dist/src/lib/construct/graphql-api-lambda/main.d.ts +0 -18
- package/dist/src/lib/construct/graphql-api-lambda/main.js +1 -19
- package/dist/src/lib/construct/graphql-api-lambda/types.d.ts +4 -8
- package/dist/src/lib/construct/graphql-api-lambda-with-cache/main.d.ts +0 -11
- package/dist/src/lib/construct/graphql-api-lambda-with-cache/main.js +1 -12
- package/dist/src/lib/construct/graphql-api-lambda-with-cache/types.d.ts +1 -3
- package/dist/src/lib/construct/lambda-with-iam-access/main.d.ts +0 -12
- package/dist/src/lib/construct/lambda-with-iam-access/main.js +2 -14
- package/dist/src/lib/construct/rest-api-lambda/main.d.ts +0 -18
- package/dist/src/lib/construct/rest-api-lambda/main.js +1 -19
- package/dist/src/lib/construct/rest-api-lambda/types.d.ts +6 -10
- package/dist/src/lib/construct/rest-api-lambda-with-cache/main.d.ts +0 -11
- package/dist/src/lib/construct/rest-api-lambda-with-cache/main.js +3 -14
- package/dist/src/lib/construct/rest-api-lambda-with-cache/types.d.ts +1 -3
- package/dist/src/lib/construct/site-with-ecs-backend/main.d.ts +0 -25
- package/dist/src/lib/construct/site-with-ecs-backend/main.js +32 -52
- package/dist/src/lib/construct/site-with-ecs-backend/types.d.ts +10 -11
- package/dist/src/lib/construct/static-asset-deployment/main.d.ts +0 -8
- package/dist/src/lib/construct/static-asset-deployment/main.js +0 -8
- package/dist/src/lib/construct/static-asset-deployment/types.d.ts +1 -1
- package/dist/src/lib/construct/static-site/main.d.ts +0 -17
- package/dist/src/lib/construct/static-site/main.js +1 -18
- package/dist/src/lib/construct/static-site/types.d.ts +9 -11
- package/dist/src/lib/services/aws/api-gateway/main.d.ts +21 -25
- package/dist/src/lib/services/aws/api-gateway/main.js +42 -46
- package/dist/src/lib/services/aws/api-gateway/types.d.ts +0 -2
- package/dist/src/lib/services/aws/appconfig/constants.d.ts +0 -6
- package/dist/src/lib/services/aws/appconfig/constants.js +26 -32
- package/dist/src/lib/services/aws/appconfig/main.d.ts +16 -19
- package/dist/src/lib/services/aws/appconfig/main.js +19 -22
- package/dist/src/lib/services/aws/appconfig/types.d.ts +1 -3
- package/dist/src/lib/services/aws/certificate-manager/main.d.ts +5 -10
- package/dist/src/lib/services/aws/certificate-manager/main.js +5 -10
- package/dist/src/lib/services/aws/certificate-manager/types.d.ts +3 -5
- package/dist/src/lib/services/aws/cloudfront/main.d.ts +41 -47
- package/dist/src/lib/services/aws/cloudfront/main.js +56 -62
- package/dist/src/lib/services/aws/cloudfront/types.d.ts +1 -7
- package/dist/src/lib/services/aws/cloudtrail/main.d.ts +8 -12
- package/dist/src/lib/services/aws/cloudtrail/main.js +8 -12
- package/dist/src/lib/services/aws/cloudtrail/types.d.ts +0 -2
- package/dist/src/lib/services/aws/cloudwatch/logs.d.ts +11 -15
- package/dist/src/lib/services/aws/cloudwatch/logs.js +15 -19
- package/dist/src/lib/services/aws/cloudwatch/main.d.ts +80 -84
- package/dist/src/lib/services/aws/cloudwatch/main.js +116 -122
- package/dist/src/lib/services/aws/cloudwatch/types.d.ts +20 -42
- package/dist/src/lib/services/aws/codebuild/main.d.ts +0 -4
- package/dist/src/lib/services/aws/codebuild/main.js +3 -7
- package/dist/src/lib/services/aws/dynamodb/main.d.ts +3 -7
- package/dist/src/lib/services/aws/dynamodb/main.js +13 -17
- package/dist/src/lib/services/aws/dynamodb/types.d.ts +0 -2
- package/dist/src/lib/services/aws/elastic-container-registry/main.d.ts +3 -7
- package/dist/src/lib/services/aws/elastic-container-registry/main.js +3 -7
- package/dist/src/lib/services/aws/elastic-container-service/main.d.ts +19 -23
- package/dist/src/lib/services/aws/elastic-container-service/main.js +35 -39
- package/dist/src/lib/services/aws/elastic-container-service/types.d.ts +1 -9
- package/dist/src/lib/services/aws/elastic-file-system/main.d.ts +9 -13
- package/dist/src/lib/services/aws/elastic-file-system/main.js +14 -18
- package/dist/src/lib/services/aws/elastic-file-system/types.d.ts +1 -5
- package/dist/src/lib/services/aws/elastic-kubernetes-service/main.d.ts +5 -9
- package/dist/src/lib/services/aws/elastic-kubernetes-service/main.js +8 -12
- package/dist/src/lib/services/aws/elastic-kubernetes-service/types.d.ts +1 -3
- package/dist/src/lib/services/aws/elasticache/main.d.ts +14 -18
- package/dist/src/lib/services/aws/elasticache/main.js +35 -39
- package/dist/src/lib/services/aws/elasticache/types.d.ts +0 -4
- package/dist/src/lib/services/aws/eventbridge/main.d.ts +25 -29
- package/dist/src/lib/services/aws/eventbridge/main.js +34 -38
- package/dist/src/lib/services/aws/eventbridge/target.d.ts +6 -9
- package/dist/src/lib/services/aws/eventbridge/target.js +8 -10
- package/dist/src/lib/services/aws/eventbridge/types.d.ts +2 -10
- package/dist/src/lib/services/aws/evidently/main.d.ts +15 -19
- package/dist/src/lib/services/aws/evidently/main.js +19 -23
- package/dist/src/lib/services/aws/evidently/types.d.ts +0 -10
- package/dist/src/lib/services/aws/identity-access-management/main.d.ts +66 -70
- package/dist/src/lib/services/aws/identity-access-management/main.js +97 -101
- package/dist/src/lib/services/aws/key-management-service/main.d.ts +3 -7
- package/dist/src/lib/services/aws/key-management-service/main.js +6 -10
- package/dist/src/lib/services/aws/key-management-service/types.d.ts +0 -2
- package/dist/src/lib/services/aws/lambda/main.d.ts +42 -47
- package/dist/src/lib/services/aws/lambda/main.js +64 -69
- package/dist/src/lib/services/aws/lambda/types.d.ts +6 -16
- package/dist/src/lib/services/aws/route53/main.d.ts +17 -21
- package/dist/src/lib/services/aws/route53/main.js +19 -23
- package/dist/src/lib/services/aws/route53/types.d.ts +0 -2
- package/dist/src/lib/services/aws/secrets-manager/main.d.ts +6 -19
- package/dist/src/lib/services/aws/secrets-manager/main.js +6 -25
- package/dist/src/lib/services/aws/simple-notification-service/main.d.ts +8 -12
- package/dist/src/lib/services/aws/simple-notification-service/main.js +10 -14
- package/dist/src/lib/services/aws/simple-notification-service/types.d.ts +0 -2
- package/dist/src/lib/services/aws/simple-queue-service/main.d.ts +11 -15
- package/dist/src/lib/services/aws/simple-queue-service/main.js +19 -23
- package/dist/src/lib/services/aws/simple-queue-service/types.d.ts +4 -6
- package/dist/src/lib/services/aws/simple-storage-service/main.d.ts +24 -32
- package/dist/src/lib/services/aws/simple-storage-service/main.js +32 -40
- package/dist/src/lib/services/aws/simple-storage-service/types.d.ts +2 -8
- package/dist/src/lib/services/aws/step-function/main.d.ts +55 -59
- package/dist/src/lib/services/aws/step-function/main.js +91 -95
- package/dist/src/lib/services/aws/step-function/types.d.ts +0 -32
- package/dist/src/lib/services/aws/systems-manager/main.d.ts +10 -16
- package/dist/src/lib/services/aws/systems-manager/main.js +13 -19
- package/dist/src/lib/services/aws/systems-manager/types.d.ts +0 -2
- package/dist/src/lib/services/aws/virtual-private-cloud/main.d.ts +9 -12
- package/dist/src/lib/services/aws/virtual-private-cloud/main.js +10 -16
- package/dist/src/lib/services/aws/web-application-firewall/main.d.ts +6 -10
- package/dist/src/lib/services/aws/web-application-firewall/main.js +12 -16
- package/dist/src/lib/services/aws/web-application-firewall/types.d.ts +0 -4
- package/dist/src/lib/types/aws/index.d.ts +0 -2
- package/dist/src/lib/utils/aws/index.d.ts +6 -9
- package/dist/src/lib/utils/aws/index.js +7 -10
- package/dist/src/lib/utils/index.d.ts +6 -13
- package/dist/src/lib/utils/index.js +4 -12
- package/package.json +1 -1
- package/src/lib/common/construct.ts +4 -7
- package/src/lib/common/stack.ts +9 -13
- package/src/lib/common/types.ts +0 -2
- package/src/lib/construct/api-to-eventbridge-target/api.ts +0 -3
- package/src/lib/construct/api-to-eventbridge-target/event.ts +0 -3
- package/src/lib/construct/api-to-eventbridge-target/main.ts +41 -68
- package/src/lib/construct/api-to-eventbridge-target/types.ts +13 -25
- package/src/lib/construct/api-to-eventbridge-target-with-sns/api-destined-lambda.ts +0 -3
- package/src/lib/construct/api-to-eventbridge-target-with-sns/main.ts +44 -81
- package/src/lib/construct/api-to-eventbridge-target-with-sns/types.ts +1 -5
- package/src/lib/construct/api-to-lambda-target/api.ts +0 -3
- package/src/lib/construct/api-to-lambda-target/main.ts +7 -21
- package/src/lib/construct/api-to-lambda-target/types.ts +7 -13
- package/src/lib/construct/graphql-api-lambda/main.ts +1 -19
- package/src/lib/construct/graphql-api-lambda/types.ts +4 -8
- package/src/lib/construct/graphql-api-lambda-with-cache/main.ts +1 -12
- package/src/lib/construct/graphql-api-lambda-with-cache/types.ts +1 -3
- package/src/lib/construct/lambda-with-iam-access/main.ts +2 -14
- package/src/lib/construct/rest-api-lambda/main.ts +1 -19
- package/src/lib/construct/rest-api-lambda/types.ts +6 -10
- package/src/lib/construct/rest-api-lambda-with-cache/main.ts +3 -14
- package/src/lib/construct/rest-api-lambda-with-cache/types.ts +1 -3
- package/src/lib/construct/site-with-ecs-backend/main.ts +31 -52
- package/src/lib/construct/site-with-ecs-backend/types.ts +10 -11
- package/src/lib/construct/static-asset-deployment/main.ts +0 -8
- package/src/lib/construct/static-asset-deployment/types.ts +1 -1
- package/src/lib/construct/static-site/main.ts +1 -18
- package/src/lib/construct/static-site/types.ts +9 -11
- package/src/lib/services/aws/api-gateway/main.ts +43 -47
- package/src/lib/services/aws/api-gateway/types.ts +0 -2
- package/src/lib/services/aws/appconfig/constants.ts +26 -32
- package/src/lib/services/aws/appconfig/main.ts +19 -22
- package/src/lib/services/aws/appconfig/types.ts +1 -3
- package/src/lib/services/aws/certificate-manager/main.ts +5 -10
- package/src/lib/services/aws/certificate-manager/types.ts +3 -5
- package/src/lib/services/aws/cloudfront/main.ts +56 -62
- package/src/lib/services/aws/cloudfront/types.ts +1 -7
- package/src/lib/services/aws/cloudtrail/main.ts +8 -12
- package/src/lib/services/aws/cloudtrail/types.ts +0 -2
- package/src/lib/services/aws/cloudwatch/logs.ts +15 -19
- package/src/lib/services/aws/cloudwatch/main.ts +116 -122
- package/src/lib/services/aws/cloudwatch/types.ts +20 -42
- package/src/lib/services/aws/codebuild/main.ts +3 -7
- package/src/lib/services/aws/dynamodb/main.ts +13 -17
- package/src/lib/services/aws/dynamodb/types.ts +0 -2
- package/src/lib/services/aws/elastic-container-registry/main.ts +3 -7
- package/src/lib/services/aws/elastic-container-service/main.ts +35 -39
- package/src/lib/services/aws/elastic-container-service/types.ts +1 -9
- package/src/lib/services/aws/elastic-file-system/main.ts +14 -18
- package/src/lib/services/aws/elastic-file-system/types.ts +1 -5
- package/src/lib/services/aws/elastic-kubernetes-service/main.ts +8 -12
- package/src/lib/services/aws/elastic-kubernetes-service/types.ts +1 -3
- package/src/lib/services/aws/elasticache/main.ts +35 -39
- package/src/lib/services/aws/elasticache/types.ts +0 -4
- package/src/lib/services/aws/eventbridge/main.ts +34 -38
- package/src/lib/services/aws/eventbridge/target.ts +8 -11
- package/src/lib/services/aws/eventbridge/types.ts +2 -10
- package/src/lib/services/aws/evidently/main.ts +19 -23
- package/src/lib/services/aws/evidently/types.ts +0 -10
- package/src/lib/services/aws/identity-access-management/main.ts +97 -101
- package/src/lib/services/aws/key-management-service/main.ts +6 -10
- package/src/lib/services/aws/key-management-service/types.ts +0 -2
- package/src/lib/services/aws/lambda/main.ts +64 -69
- package/src/lib/services/aws/lambda/types.ts +6 -16
- package/src/lib/services/aws/route53/main.ts +19 -23
- package/src/lib/services/aws/route53/types.ts +0 -2
- package/src/lib/services/aws/secrets-manager/main.ts +6 -28
- package/src/lib/services/aws/simple-notification-service/main.ts +10 -14
- package/src/lib/services/aws/simple-notification-service/types.ts +0 -2
- package/src/lib/services/aws/simple-queue-service/main.ts +19 -23
- package/src/lib/services/aws/simple-queue-service/types.ts +4 -6
- package/src/lib/services/aws/simple-storage-service/main.ts +32 -40
- package/src/lib/services/aws/simple-storage-service/types.ts +2 -8
- package/src/lib/services/aws/step-function/main.ts +91 -95
- package/src/lib/services/aws/step-function/types.ts +0 -32
- package/src/lib/services/aws/systems-manager/main.ts +13 -19
- package/src/lib/services/aws/systems-manager/types.ts +0 -2
- package/src/lib/services/aws/virtual-private-cloud/main.ts +10 -16
- package/src/lib/services/aws/web-application-firewall/main.ts +12 -16
- package/src/lib/services/aws/web-application-firewall/types.ts +0 -4
- package/src/lib/types/aws/index.ts +0 -2
- package/src/lib/utils/aws/index.ts +7 -10
- package/src/lib/utils/index.ts +4 -12
|
@@ -27,9 +27,6 @@ exports.CloudWatchLogGroupNoPolicy = exports.EventTargetManager = void 0;
|
|
|
27
27
|
const cdk = __importStar(require("aws-cdk-lib"));
|
|
28
28
|
const targets = __importStar(require("aws-cdk-lib/aws-events-targets"));
|
|
29
29
|
/**
|
|
30
|
-
* @stability stable
|
|
31
|
-
* @category cdk-utils.event-taeget-manager
|
|
32
|
-
* @subcategory Construct
|
|
33
30
|
* @classdesc Provides operations on AWS EventBridge Targets.
|
|
34
31
|
* - A new instance of this class is injected into {@link CommonConstruct} constructor.
|
|
35
32
|
* - If a custom construct extends {@link CommonConstruct}, an instance is available within the context.
|
|
@@ -43,17 +40,16 @@ const targets = __importStar(require("aws-cdk-lib/aws-events-targets"));
|
|
|
43
40
|
* this.eventTargetManager.createCloudWatchLogGroupNoPolicy('MyLogGrouptarget', this, myLogGroup)
|
|
44
41
|
* }
|
|
45
42
|
* }
|
|
46
|
-
*
|
|
47
43
|
* @see [CDK EventBridge Target Module]{@link https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_events_targets-readme.html}
|
|
48
44
|
*/
|
|
49
45
|
class EventTargetManager {
|
|
50
46
|
/**
|
|
51
47
|
* @summary Method to create a cloud watch log group target without a policy.
|
|
52
48
|
* - This method is created as a workaround for cdk issue - https://github.com/aws/aws-cdk/issues/17002
|
|
53
|
-
* @param
|
|
54
|
-
* @param
|
|
55
|
-
* @param
|
|
56
|
-
* @param
|
|
49
|
+
* @param id scoped id of the resource
|
|
50
|
+
* @param scope scope in which this resource is defined
|
|
51
|
+
* @param logGroup the log group
|
|
52
|
+
* @param props the log group target properties
|
|
57
53
|
*/
|
|
58
54
|
createCloudWatchLogGroupNoPolicy(id, scope, logGroup, props) {
|
|
59
55
|
return new CloudWatchLogGroupNoPolicy(logGroup, props);
|
|
@@ -72,16 +68,18 @@ class CloudWatchLogGroupNoPolicy {
|
|
|
72
68
|
}
|
|
73
69
|
/**
|
|
74
70
|
* Returns a RuleTarget that can be used to log an event into a CloudWatch LogGroup
|
|
71
|
+
* @param _rule
|
|
72
|
+
* @param _id
|
|
75
73
|
*/
|
|
76
74
|
bind(_rule, _id) {
|
|
77
75
|
const logGroupStack = cdk.Stack.of(this.logGroup);
|
|
78
76
|
return {
|
|
79
77
|
...targets.bindBaseTargetConfig(this.props),
|
|
80
78
|
arn: logGroupStack.formatArn({
|
|
81
|
-
service: 'logs',
|
|
82
|
-
resource: 'log-group',
|
|
83
79
|
arnFormat: cdk.ArnFormat.COLON_RESOURCE_NAME,
|
|
80
|
+
resource: 'log-group',
|
|
84
81
|
resourceName: this.logGroup.logGroupName,
|
|
82
|
+
service: 'logs',
|
|
85
83
|
}),
|
|
86
84
|
input: this.props.event,
|
|
87
85
|
targetResource: this.logGroup,
|
|
@@ -3,33 +3,25 @@ import { CfnRuleProps, EventBusProps as EBProps, RuleProps as EBRuleProps } from
|
|
|
3
3
|
import { TagProps } from '../../../types';
|
|
4
4
|
/**
|
|
5
5
|
}
|
|
6
|
-
* @category cdk-utils.event-manager
|
|
7
|
-
* @subcategory Properties
|
|
8
6
|
*/
|
|
9
7
|
export interface SqsToSfnPipeProps extends CfnPipeProps {
|
|
10
8
|
pipeFilterPattern?: any;
|
|
9
|
+
sfnInputTemplate?: string;
|
|
10
|
+
sfnInvocationType?: string;
|
|
11
11
|
sqsBatchSize?: number;
|
|
12
12
|
sqsMaximumBatchingWindowInSeconds?: number;
|
|
13
|
-
sfnInvocationType?: string;
|
|
14
|
-
sfnInputTemplate?: string;
|
|
15
13
|
}
|
|
16
14
|
/**
|
|
17
|
-
* @category cdk-utils.event-manager
|
|
18
|
-
* @subcategory Properties
|
|
19
15
|
*/
|
|
20
16
|
export interface EventRuleProps extends EBRuleProps {
|
|
21
17
|
tags?: TagProps[];
|
|
22
18
|
}
|
|
23
19
|
/**
|
|
24
|
-
* @category cdk-utils.event-manager
|
|
25
|
-
* @subcategory Properties
|
|
26
20
|
*/
|
|
27
21
|
export interface RuleProps extends CfnRuleProps {
|
|
28
22
|
input?: string;
|
|
29
23
|
}
|
|
30
24
|
/**
|
|
31
|
-
* @category cdk-utils.event-manager
|
|
32
|
-
* @subcategory Properties
|
|
33
25
|
*/
|
|
34
26
|
export interface EventBusProps extends EBProps {
|
|
35
27
|
}
|
|
@@ -2,9 +2,6 @@ import * as evidently from 'aws-cdk-lib/aws-evidently';
|
|
|
2
2
|
import { CommonConstruct } from '../../../common';
|
|
3
3
|
import { EvidentlyExperimentProps, EvidentlyFeatureProps, EvidentlyLaunchProps, EvidentlyProjectProps, EvidentlySegmentProps } from './types';
|
|
4
4
|
/**
|
|
5
|
-
* @stability stable
|
|
6
|
-
* @category cdk-utils.evidently-manager
|
|
7
|
-
* @subcategory Construct
|
|
8
5
|
* @classdesc Provides operations on AWS Evidently.
|
|
9
6
|
* - A new instance of this class is injected into {@link CommonConstruct} constructor.
|
|
10
7
|
* - If a custom construct extends {@link CommonConstruct}, an instance is available within the context.
|
|
@@ -18,43 +15,42 @@ import { EvidentlyExperimentProps, EvidentlyFeatureProps, EvidentlyLaunchProps,
|
|
|
18
15
|
* this.evidentlyManager.createProject('MyNewProhect', this, props)
|
|
19
16
|
* }
|
|
20
17
|
* }
|
|
21
|
-
*
|
|
22
18
|
* @see [CDK Evidently Module]{@link https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_evidently-readme.html}
|
|
23
19
|
*/
|
|
24
20
|
export declare class EvidentlyManager {
|
|
25
21
|
/**
|
|
26
22
|
* @summary Method to create a project
|
|
27
|
-
* @param
|
|
28
|
-
* @param
|
|
29
|
-
* @param
|
|
23
|
+
* @param id scoped id of the resource
|
|
24
|
+
* @param scope scope in which this resource is defined
|
|
25
|
+
* @param props the project properties
|
|
30
26
|
*/
|
|
31
27
|
createProject(id: string, scope: CommonConstruct, props: EvidentlyProjectProps): evidently.CfnProject;
|
|
32
28
|
/**
|
|
33
29
|
* @summary Method to create a feature
|
|
34
|
-
* @param
|
|
35
|
-
* @param
|
|
36
|
-
* @param
|
|
30
|
+
* @param id scoped id of the resource
|
|
31
|
+
* @param scope scope in which this resource is defined
|
|
32
|
+
* @param props the feature properties
|
|
37
33
|
*/
|
|
38
34
|
createFeature(id: string, scope: CommonConstruct, props: EvidentlyFeatureProps): evidently.CfnFeature;
|
|
39
35
|
/**
|
|
40
36
|
* @summary Method to create a launch
|
|
41
|
-
* @param
|
|
42
|
-
* @param
|
|
43
|
-
* @param
|
|
37
|
+
* @param id scoped id of the resource
|
|
38
|
+
* @param scope scope in which this resource is defined
|
|
39
|
+
* @param props the launch properties
|
|
44
40
|
*/
|
|
45
41
|
createLaunch(id: string, scope: CommonConstruct, props: EvidentlyLaunchProps): evidently.CfnLaunch;
|
|
46
42
|
/**
|
|
47
43
|
* @summary Method to create an experiment
|
|
48
|
-
* @param
|
|
49
|
-
* @param
|
|
50
|
-
* @param
|
|
44
|
+
* @param id scoped id of the resource
|
|
45
|
+
* @param scope scope in which this resource is defined
|
|
46
|
+
* @param props the experiment properties
|
|
51
47
|
*/
|
|
52
48
|
createExperiment(id: string, scope: CommonConstruct, props: EvidentlyExperimentProps): evidently.CfnExperiment;
|
|
53
49
|
/**
|
|
54
50
|
* @summary Method to create a segment
|
|
55
|
-
* @param
|
|
56
|
-
* @param
|
|
57
|
-
* @param
|
|
51
|
+
* @param id scoped id of the resource
|
|
52
|
+
* @param scope scope in which this resource is defined
|
|
53
|
+
* @param props the segment properties
|
|
58
54
|
*/
|
|
59
55
|
createSegment(id: string, scope: CommonConstruct, props: EvidentlySegmentProps): evidently.CfnSegment;
|
|
60
56
|
}
|
|
@@ -27,9 +27,6 @@ exports.EvidentlyManager = void 0;
|
|
|
27
27
|
const evidently = __importStar(require("aws-cdk-lib/aws-evidently"));
|
|
28
28
|
const utils = __importStar(require("../../../utils"));
|
|
29
29
|
/**
|
|
30
|
-
* @stability stable
|
|
31
|
-
* @category cdk-utils.evidently-manager
|
|
32
|
-
* @subcategory Construct
|
|
33
30
|
* @classdesc Provides operations on AWS Evidently.
|
|
34
31
|
* - A new instance of this class is injected into {@link CommonConstruct} constructor.
|
|
35
32
|
* - If a custom construct extends {@link CommonConstruct}, an instance is available within the context.
|
|
@@ -43,21 +40,20 @@ const utils = __importStar(require("../../../utils"));
|
|
|
43
40
|
* this.evidentlyManager.createProject('MyNewProhect', this, props)
|
|
44
41
|
* }
|
|
45
42
|
* }
|
|
46
|
-
*
|
|
47
43
|
* @see [CDK Evidently Module]{@link https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_evidently-readme.html}
|
|
48
44
|
*/
|
|
49
45
|
class EvidentlyManager {
|
|
50
46
|
/**
|
|
51
47
|
* @summary Method to create a project
|
|
52
|
-
* @param
|
|
53
|
-
* @param
|
|
54
|
-
* @param
|
|
48
|
+
* @param id scoped id of the resource
|
|
49
|
+
* @param scope scope in which this resource is defined
|
|
50
|
+
* @param props the project properties
|
|
55
51
|
*/
|
|
56
52
|
createProject(id, scope, props) {
|
|
57
53
|
const project = new evidently.CfnProject(scope, `${id}`, {
|
|
58
54
|
...props,
|
|
59
|
-
name: `${props.name}-${scope.props.stage}`,
|
|
60
55
|
description: `${props.description} ${scope.props.stage}`,
|
|
56
|
+
name: `${props.name}-${scope.props.stage}`,
|
|
61
57
|
});
|
|
62
58
|
utils.createCfnOutput(`${id}-projectArn`, scope, project.attrArn);
|
|
63
59
|
utils.createCfnOutput(`${id}-projectName`, scope, project.name);
|
|
@@ -65,9 +61,9 @@ class EvidentlyManager {
|
|
|
65
61
|
}
|
|
66
62
|
/**
|
|
67
63
|
* @summary Method to create a feature
|
|
68
|
-
* @param
|
|
69
|
-
* @param
|
|
70
|
-
* @param
|
|
64
|
+
* @param id scoped id of the resource
|
|
65
|
+
* @param scope scope in which this resource is defined
|
|
66
|
+
* @param props the feature properties
|
|
71
67
|
*/
|
|
72
68
|
createFeature(id, scope, props) {
|
|
73
69
|
const feature = new evidently.CfnFeature(scope, `${id}`, props);
|
|
@@ -77,15 +73,15 @@ class EvidentlyManager {
|
|
|
77
73
|
}
|
|
78
74
|
/**
|
|
79
75
|
* @summary Method to create a launch
|
|
80
|
-
* @param
|
|
81
|
-
* @param
|
|
82
|
-
* @param
|
|
76
|
+
* @param id scoped id of the resource
|
|
77
|
+
* @param scope scope in which this resource is defined
|
|
78
|
+
* @param props the launch properties
|
|
83
79
|
*/
|
|
84
80
|
createLaunch(id, scope, props) {
|
|
85
81
|
const launch = new evidently.CfnLaunch(scope, `${id}`, {
|
|
86
82
|
...props,
|
|
87
|
-
name: `${props.name}-${scope.props.stage}`,
|
|
88
83
|
description: `${props.description} ${scope.props.stage}`,
|
|
84
|
+
name: `${props.name}-${scope.props.stage}`,
|
|
89
85
|
});
|
|
90
86
|
utils.createCfnOutput(`${id}-launchArn`, scope, launch.attrArn);
|
|
91
87
|
utils.createCfnOutput(`${id}-launchName`, scope, launch.name);
|
|
@@ -93,15 +89,15 @@ class EvidentlyManager {
|
|
|
93
89
|
}
|
|
94
90
|
/**
|
|
95
91
|
* @summary Method to create an experiment
|
|
96
|
-
* @param
|
|
97
|
-
* @param
|
|
98
|
-
* @param
|
|
92
|
+
* @param id scoped id of the resource
|
|
93
|
+
* @param scope scope in which this resource is defined
|
|
94
|
+
* @param props the experiment properties
|
|
99
95
|
*/
|
|
100
96
|
createExperiment(id, scope, props) {
|
|
101
97
|
const experiment = new evidently.CfnExperiment(scope, `${id}`, {
|
|
102
98
|
...props,
|
|
103
|
-
name: `${props.name}-${scope.props.stage}`,
|
|
104
99
|
description: `${props.description} ${scope.props.stage}`,
|
|
100
|
+
name: `${props.name}-${scope.props.stage}`,
|
|
105
101
|
});
|
|
106
102
|
utils.createCfnOutput(`${id}-experimentArn`, scope, experiment.attrArn);
|
|
107
103
|
utils.createCfnOutput(`${id}-experimentName`, scope, experiment.name);
|
|
@@ -109,15 +105,15 @@ class EvidentlyManager {
|
|
|
109
105
|
}
|
|
110
106
|
/**
|
|
111
107
|
* @summary Method to create a segment
|
|
112
|
-
* @param
|
|
113
|
-
* @param
|
|
114
|
-
* @param
|
|
108
|
+
* @param id scoped id of the resource
|
|
109
|
+
* @param scope scope in which this resource is defined
|
|
110
|
+
* @param props the segment properties
|
|
115
111
|
*/
|
|
116
112
|
createSegment(id, scope, props) {
|
|
117
113
|
const segment = new evidently.CfnSegment(scope, `${id}`, {
|
|
118
114
|
...props,
|
|
119
|
-
name: `${props.name}-${scope.props.stage}`,
|
|
120
115
|
description: `${props.description} ${scope.props.stage}`,
|
|
116
|
+
name: `${props.name}-${scope.props.stage}`,
|
|
121
117
|
});
|
|
122
118
|
utils.createCfnOutput(`${id}-segmentArn`, scope, segment.attrArn);
|
|
123
119
|
utils.createCfnOutput(`${id}-segmentName`, scope, segment.name);
|
|
@@ -1,31 +1,21 @@
|
|
|
1
1
|
import { CfnExperimentProps, CfnFeatureProps, CfnLaunchProps, CfnProjectProps, CfnSegmentProps } from 'aws-cdk-lib/aws-evidently';
|
|
2
2
|
/**
|
|
3
|
-
* @category cdk-utils.evidently-manager
|
|
4
|
-
* @subcategory Properties
|
|
5
3
|
*/
|
|
6
4
|
export interface EvidentlyProjectProps extends CfnProjectProps {
|
|
7
5
|
}
|
|
8
6
|
/**
|
|
9
|
-
* @category cdk-utils.evidently-manager
|
|
10
|
-
* @subcategory Properties
|
|
11
7
|
*/
|
|
12
8
|
export interface EvidentlyFeatureProps extends CfnFeatureProps {
|
|
13
9
|
}
|
|
14
10
|
/**
|
|
15
|
-
* @category cdk-utils.evidently-manager
|
|
16
|
-
* @subcategory Properties
|
|
17
11
|
*/
|
|
18
12
|
export interface EvidentlyLaunchProps extends CfnLaunchProps {
|
|
19
13
|
}
|
|
20
14
|
/**
|
|
21
|
-
* @category cdk-utils.evidently-manager
|
|
22
|
-
* @subcategory Properties
|
|
23
15
|
*/
|
|
24
16
|
export interface EvidentlyExperimentProps extends CfnExperimentProps {
|
|
25
17
|
}
|
|
26
18
|
/**
|
|
27
|
-
* @category cdk-utils.evidently-manager
|
|
28
|
-
* @subcategory Properties
|
|
29
19
|
*/
|
|
30
20
|
export interface EvidentlySegmentProps extends CfnSegmentProps {
|
|
31
21
|
}
|
|
@@ -7,9 +7,6 @@ import * as s3 from 'aws-cdk-lib/aws-s3';
|
|
|
7
7
|
import * as sqs from 'aws-cdk-lib/aws-sqs';
|
|
8
8
|
import { CommonConstruct } from '../../../common';
|
|
9
9
|
/**
|
|
10
|
-
* @stability stable
|
|
11
|
-
* @category cdk-utils.iam-manager
|
|
12
|
-
* @subcategory Construct
|
|
13
10
|
* @classdesc Provides operations on AWS IAM.
|
|
14
11
|
* - A new instance of this class is injected into {@link CommonConstruct} constructor.
|
|
15
12
|
* - If a custom construct extends {@link CommonConstruct}, an instance is available within the context.
|
|
@@ -23,214 +20,213 @@ import { CommonConstruct } from '../../../common';
|
|
|
23
20
|
* this.iamManager.createRoleForEcsEvent('MyEcsRole', this, cluster, task)
|
|
24
21
|
* }
|
|
25
22
|
* }
|
|
26
|
-
*
|
|
27
23
|
* @see [CDK IAM Module]{@link https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iam-readme.html}
|
|
28
24
|
*/
|
|
29
25
|
export declare class IamManager {
|
|
30
26
|
/**
|
|
31
27
|
* @summary Method to create iam statement to read secrets
|
|
32
|
-
* @param
|
|
33
|
-
* @param
|
|
28
|
+
* @param scope scope in which this resource is defined
|
|
29
|
+
* @param resourceArns list of ARNs to allow access to
|
|
34
30
|
*/
|
|
35
31
|
statementForReadSecrets(scope: CommonConstruct, resourceArns?: string[]): cdk.aws_iam.PolicyStatement;
|
|
36
32
|
/**
|
|
37
33
|
* @summary Method to create iam statement to put events
|
|
38
|
-
* @param
|
|
34
|
+
* @param resourceArns list of ARNs to allow access to
|
|
39
35
|
*/
|
|
40
36
|
statementForPutEvents(resourceArns?: string[]): cdk.aws_iam.PolicyStatement;
|
|
41
37
|
/**
|
|
42
38
|
* @summary Method to create iam statement to start stepfunction execution
|
|
43
|
-
* @param
|
|
39
|
+
* @param resourceArns list of ARNs to allow access to
|
|
44
40
|
*/
|
|
45
41
|
statementForStartExecution(resourceArns?: string[]): cdk.aws_iam.PolicyStatement;
|
|
46
42
|
/**
|
|
47
43
|
* @summary Method to create iam statement to poll queue
|
|
48
|
-
* @param
|
|
44
|
+
* @param resourceArns list of ARNs to allow access to
|
|
49
45
|
*/
|
|
50
46
|
statementForPollQueue(resourceArns?: string[]): cdk.aws_iam.PolicyStatement;
|
|
51
47
|
/**
|
|
52
48
|
* @summary Method to create iam statement to invoke lambda function
|
|
53
|
-
* @param
|
|
49
|
+
* @param resourceArns list of ARNs to allow access to
|
|
54
50
|
*/
|
|
55
51
|
statementForInvokeLambda(resourceArns?: string[]): cdk.aws_iam.PolicyStatement;
|
|
56
52
|
/**
|
|
57
53
|
* @summary Method to create iam statement to read app config
|
|
58
|
-
* @param
|
|
54
|
+
* @param resourceArns list of ARNs to allow access to
|
|
59
55
|
*/
|
|
60
56
|
statementForReadAnyAppConfig(resourceArns?: string[]): cdk.aws_iam.PolicyStatement;
|
|
61
57
|
/**
|
|
62
58
|
* @summary Method to create iam statement to access app config
|
|
63
|
-
* @param
|
|
59
|
+
* @param resourceArns list of ARNs to allow access to
|
|
64
60
|
*/
|
|
65
61
|
statementForAppConfigExecution(resourceArns?: string[]): cdk.aws_iam.PolicyStatement;
|
|
66
62
|
/**
|
|
67
63
|
* @summary Method to create iam statement to put xray telemetry
|
|
68
|
-
* @param
|
|
64
|
+
* @param resourceArns list of ARNs to allow access to
|
|
69
65
|
*/
|
|
70
66
|
statementForPutXrayTelemetry(resourceArns?: string[]): cdk.aws_iam.PolicyStatement;
|
|
71
67
|
/**
|
|
72
68
|
* @summary Method to create iam statement to decrypt kms
|
|
73
|
-
* @param
|
|
69
|
+
* @param resourceArns list of ARNs to allow access to
|
|
74
70
|
*/
|
|
75
71
|
statementForDecryptKms(resourceArns?: string[]): cdk.aws_iam.PolicyStatement;
|
|
76
72
|
/**
|
|
77
73
|
* @summary Method to create iam statement to list s3 buckets
|
|
78
|
-
* @param
|
|
79
|
-
* @param
|
|
74
|
+
* @param scope scope in which this resource is defined
|
|
75
|
+
* @param bucket
|
|
80
76
|
*/
|
|
81
77
|
statementForListBucket(scope: CommonConstruct, bucket: s3.IBucket): cdk.aws_iam.PolicyStatement;
|
|
82
78
|
/**
|
|
83
79
|
* @summary Method to create iam statement to list all s3 buckets
|
|
84
|
-
* @param
|
|
80
|
+
* @param resourceArns list of ARNs to allow access to
|
|
85
81
|
*/
|
|
86
82
|
statementForListAllMyBuckets(resourceArns?: string[]): cdk.aws_iam.PolicyStatement;
|
|
87
83
|
/**
|
|
88
84
|
* @summary Method to create iam statement to get s3 objects in buckets
|
|
89
|
-
* @param
|
|
90
|
-
* @param
|
|
91
|
-
* @param
|
|
85
|
+
* @param scope scope in which this resource is defined
|
|
86
|
+
* @param bucket
|
|
87
|
+
* @param resourceArns list of ARNs to allow access to
|
|
92
88
|
*/
|
|
93
89
|
statementForGetAnyS3Objects(scope: CommonConstruct, bucket: s3.IBucket, resourceArns?: string[]): cdk.aws_iam.PolicyStatement;
|
|
94
90
|
/**
|
|
95
91
|
* @summary Method to create iam statement to delete s3 objects in buckets
|
|
96
|
-
* @param
|
|
97
|
-
* @param
|
|
98
|
-
* @param
|
|
92
|
+
* @param scope scope in which this resource is defined
|
|
93
|
+
* @param bucket
|
|
94
|
+
* @param resourceArns list of ARNs to allow access to
|
|
99
95
|
*/
|
|
100
96
|
statementForDeleteAnyS3Objects(scope: CommonConstruct, bucket: s3.IBucket, resourceArns?: string[]): cdk.aws_iam.PolicyStatement;
|
|
101
97
|
/**
|
|
102
98
|
* @summary Method to create iam statement to write s3 objects in buckets
|
|
103
|
-
* @param
|
|
104
|
-
* @param
|
|
105
|
-
* @param
|
|
99
|
+
* @param scope scope in which this resource is defined
|
|
100
|
+
* @param bucket
|
|
101
|
+
* @param resourceArns list of ARNs to allow access to
|
|
106
102
|
*/
|
|
107
103
|
statementForPutAnyS3Objects(scope: CommonConstruct, bucket: s3.IBucket, resourceArns?: string[]): cdk.aws_iam.PolicyStatement;
|
|
108
104
|
/**
|
|
109
105
|
* @summary Method to create iam statement to pass iam role
|
|
110
|
-
* @param
|
|
106
|
+
* @param resourceArns list of ARNs to allow access to
|
|
111
107
|
*/
|
|
112
108
|
statementForPassRole(resourceArns?: string[]): cdk.aws_iam.PolicyStatement;
|
|
113
109
|
/**
|
|
114
110
|
* @summary Method to create iam statement to invalidate cloudfront cache
|
|
115
|
-
* @param
|
|
111
|
+
* @param resourceArns list of ARNs to allow access to
|
|
116
112
|
*/
|
|
117
113
|
statementForCloudfrontInvalidation(resourceArns?: string[]): cdk.aws_iam.PolicyStatement;
|
|
118
114
|
/**
|
|
119
115
|
* @summary Method to create iam statement to access efs
|
|
120
|
-
* @param
|
|
116
|
+
* @param resourceArns list of ARNs to allow access to
|
|
121
117
|
*/
|
|
122
118
|
statementForWriteEfs(resourceArns?: string[]): cdk.aws_iam.PolicyStatement;
|
|
123
119
|
/**
|
|
124
120
|
* @summary Method to create iam policy to invalidate cloudfront cache
|
|
125
|
-
* @param
|
|
121
|
+
* @param resourceArns list of ARNs to allow access to
|
|
126
122
|
*/
|
|
127
123
|
policyForCloudfrontInvalidation(resourceArns?: string[]): cdk.aws_iam.PolicyDocument;
|
|
128
124
|
/**
|
|
129
125
|
* @summary Method to create iam role to invalidate cloudfront cache
|
|
130
|
-
* @param
|
|
131
|
-
* @param
|
|
126
|
+
* @param id scoped id of the resource
|
|
127
|
+
* @param scope scope in which this resource is defined
|
|
132
128
|
*/
|
|
133
129
|
roleForCloudfrontInvalidation(id: string, scope: CommonConstruct): cdk.aws_iam.Role;
|
|
134
130
|
/**
|
|
135
131
|
* @summary Method to create iam statement to assume iam role
|
|
136
|
-
* @param
|
|
137
|
-
* @param
|
|
132
|
+
* @param scope scope in which this resource is defined
|
|
133
|
+
* @param servicePrincipals
|
|
138
134
|
*/
|
|
139
135
|
statementForAssumeRole(scope: CommonConstruct, servicePrincipals: iam.ServicePrincipal[]): cdk.aws_iam.PolicyStatement;
|
|
140
136
|
/**
|
|
141
137
|
* @summary Method to create iam statement to pass ecs role
|
|
142
|
-
* @param
|
|
138
|
+
* @param resourceArns list of ARNs to allow access to
|
|
143
139
|
*/
|
|
144
140
|
statementForEcsPassRole(resourceArns?: string[]): cdk.aws_iam.PolicyStatement;
|
|
145
141
|
/**
|
|
146
142
|
* @summary Method to create iam statement to run ecs task
|
|
147
|
-
* @param
|
|
148
|
-
* @param
|
|
149
|
-
* @param
|
|
143
|
+
* @param scope scope in which this resource is defined
|
|
144
|
+
* @param cluster
|
|
145
|
+
* @param task
|
|
150
146
|
*/
|
|
151
147
|
statementForRunEcsTask(scope: CommonConstruct, cluster: ecs.ICluster, task: ecs.ITaskDefinition): cdk.aws_iam.PolicyStatement;
|
|
152
148
|
/**
|
|
153
149
|
* @summary Method to create iam statement to create log stream
|
|
154
|
-
* @param
|
|
155
|
-
* @param
|
|
150
|
+
* @param scope scope in which this resource is defined
|
|
151
|
+
* @param logGroup
|
|
156
152
|
*/
|
|
157
153
|
statementForCreateLogStream(scope: CommonConstruct, logGroup: logs.CfnLogGroup): cdk.aws_iam.PolicyStatement;
|
|
158
154
|
/**
|
|
159
155
|
* @summary Method to create iam statement to create any log stream
|
|
160
|
-
* @param
|
|
156
|
+
* @param resourceArns list of ARNs to allow access to
|
|
161
157
|
*/
|
|
162
158
|
statementForCreateAnyLogStream(resourceArns?: string[]): cdk.aws_iam.PolicyStatement;
|
|
163
159
|
/**
|
|
164
160
|
* @summary Method to create iam statement to write log events
|
|
165
|
-
* @param
|
|
166
|
-
* @param
|
|
161
|
+
* @param scope scope in which this resource is defined
|
|
162
|
+
* @param logGroup
|
|
167
163
|
*/
|
|
168
164
|
statementForPutLogEvent(scope: CommonConstruct, logGroup: logs.CfnLogGroup): cdk.aws_iam.PolicyStatement;
|
|
169
165
|
/**
|
|
170
166
|
* @summary Method to create iam statement to write any log events
|
|
171
|
-
* @param
|
|
167
|
+
* @param resourceArns list of ARNs to allow access to
|
|
172
168
|
*/
|
|
173
169
|
statementForPutAnyLogEvent(resourceArns?: string[]): cdk.aws_iam.PolicyStatement;
|
|
174
170
|
/**
|
|
175
171
|
* @summary Method to create iam statement to read items from dynamodb table
|
|
176
|
-
* @param
|
|
172
|
+
* @param resourceArns list of ARNs to allow access to
|
|
177
173
|
*/
|
|
178
174
|
statementForReadTableItems(resourceArns?: string[]): cdk.aws_iam.PolicyStatement;
|
|
179
175
|
/**
|
|
180
176
|
* @summary Method to create iam statement to write items from dynamodb table
|
|
181
|
-
* @param
|
|
177
|
+
* @param resourceArns list of ARNs to allow access to
|
|
182
178
|
*/
|
|
183
179
|
statementForWriteTableItems(resourceArns?: string[]): cdk.aws_iam.PolicyStatement;
|
|
184
180
|
/**
|
|
185
181
|
* @summary Method to create iam statement for cloud trail
|
|
186
|
-
* @param
|
|
187
|
-
* @param
|
|
188
|
-
* @param
|
|
182
|
+
* @param id scoped id of the resource
|
|
183
|
+
* @param scope scope in which this resource is defined
|
|
184
|
+
* @param logGroup
|
|
189
185
|
*/
|
|
190
186
|
createRoleForCloudTrail(id: string, scope: CommonConstruct, logGroup: logs.CfnLogGroup): cdk.aws_iam.CfnRole;
|
|
191
187
|
/**
|
|
192
188
|
* @summary Method to create iam statement for ecs event
|
|
193
|
-
* @param
|
|
194
|
-
* @param
|
|
195
|
-
* @param
|
|
196
|
-
* @param
|
|
189
|
+
* @param id scoped id of the resource
|
|
190
|
+
* @param scope scope in which this resource is defined
|
|
191
|
+
* @param cluster
|
|
192
|
+
* @param task
|
|
197
193
|
*/
|
|
198
194
|
createRoleForEcsEvent(id: string, scope: CommonConstruct, cluster: ecs.ICluster, task: ecs.ITaskDefinition): cdk.aws_iam.Role;
|
|
199
195
|
/**
|
|
200
196
|
* @summary Method to create iam statement for ecs execution
|
|
201
|
-
* @param
|
|
202
|
-
* @param
|
|
203
|
-
* @param
|
|
197
|
+
* @param id scoped id of the resource
|
|
198
|
+
* @param scope scope in which this resource is defined
|
|
199
|
+
* @param policy
|
|
204
200
|
*/
|
|
205
201
|
createRoleForEcsExecution(id: string, scope: CommonConstruct, policy: iam.PolicyDocument): cdk.aws_iam.Role;
|
|
206
202
|
/**
|
|
207
203
|
* @summary Method to create iam statement for lambda execution
|
|
208
|
-
* @param
|
|
209
|
-
* @param
|
|
210
|
-
* @param
|
|
211
|
-
* @param
|
|
204
|
+
* @param id scoped id of the resource
|
|
205
|
+
* @param scope scope in which this resource is defined
|
|
206
|
+
* @param policy
|
|
207
|
+
* @param servicePrinicpal
|
|
212
208
|
*/
|
|
213
209
|
createRoleForLambda(id: string, scope: CommonConstruct, policy: iam.PolicyDocument, servicePrinicpal?: iam.ServicePrincipal): cdk.aws_iam.Role;
|
|
214
210
|
/**
|
|
215
211
|
* @summary Method to create iam statement for step function execution
|
|
216
|
-
* @param
|
|
217
|
-
* @param
|
|
218
|
-
* @param
|
|
219
|
-
* @param
|
|
212
|
+
* @param id scoped id of the resource
|
|
213
|
+
* @param scope scope in which this resource is defined
|
|
214
|
+
* @param policy
|
|
215
|
+
* @param servicePrinicpal
|
|
220
216
|
*/
|
|
221
217
|
createRoleForStepFunction(id: string, scope: CommonConstruct, policy: iam.PolicyDocument, servicePrinicpal?: iam.ServicePrincipal): cdk.aws_iam.Role;
|
|
222
218
|
/**
|
|
223
219
|
* @summary Method to create iam statement for sqs to step function pipe
|
|
224
|
-
* @param
|
|
225
|
-
* @param
|
|
226
|
-
* @param
|
|
227
|
-
* @param
|
|
220
|
+
* @param id scoped id of the resource
|
|
221
|
+
* @param scope scope in which this resource is defined
|
|
222
|
+
* @param queueArn the arn of the sqs queue
|
|
223
|
+
* @param stepFunctionArn the arn of the step function
|
|
228
224
|
*/
|
|
229
225
|
createRoleForSqsToSfnPipe(id: string, scope: CommonConstruct, queueArn: string, stepFunctionArn: string): cdk.aws_iam.Role;
|
|
230
226
|
/**
|
|
231
227
|
* @summary Method to create iam policy for sqs
|
|
232
|
-
* @param
|
|
233
|
-
* @param
|
|
228
|
+
* @param id scoped id of the resource
|
|
229
|
+
* @param scope scope in which this resource is defined
|
|
234
230
|
* @param sqsQueue
|
|
235
231
|
* @param eventBridgeRule
|
|
236
232
|
* @param servicePrincipals
|