@gradientedge/cdk-utils 5.12.0 → 6.0.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/dist/src/lib/construct/api-to-eventbridge-target/index.d.ts +0 -3
- package/dist/src/lib/construct/api-to-eventbridge-target/index.js +0 -3
- package/dist/src/lib/construct/api-to-eventbridge-target/main.d.ts +23 -68
- package/dist/src/lib/construct/api-to-eventbridge-target/main.js +120 -241
- package/dist/src/lib/construct/{api-to-eventbridge-target → api-to-eventbridge-target-with-sns}/api-destined-lambda.d.ts +1 -1
- package/dist/src/lib/construct/{api-to-eventbridge-target → api-to-eventbridge-target-with-sns}/api-destined-lambda.js +1 -1
- package/dist/src/lib/construct/api-to-eventbridge-target-with-sns/index.d.ts +2 -0
- package/dist/src/lib/construct/api-to-eventbridge-target-with-sns/index.js +18 -0
- package/dist/src/lib/construct/api-to-eventbridge-target-with-sns/main.d.ts +193 -0
- package/dist/src/lib/construct/api-to-eventbridge-target-with-sns/main.js +631 -0
- package/dist/src/lib/construct/index.d.ts +1 -0
- package/dist/src/lib/construct/index.js +1 -0
- package/dist/src/lib/construct/site-with-ecs-backend/main.d.ts +0 -7
- package/dist/src/lib/construct/site-with-ecs-backend/main.js +1 -12
- package/dist/src/lib/construct/static-site/main.d.ts +0 -7
- package/dist/src/lib/construct/static-site/main.js +1 -12
- package/dist/src/lib/{construct/api-to-eventbridge-target/api-destination-event.d.ts → helper/api-to-eventbridge-target-event.d.ts} +5 -3
- package/dist/src/lib/{construct/api-to-eventbridge-target/api-destination-event.js → helper/api-to-eventbridge-target-event.js} +6 -4
- package/dist/src/lib/{construct/api-to-eventbridge-target/api-destined-rest-api.d.ts → helper/api-to-eventbridge-target-rest-api.d.ts} +4 -4
- package/dist/src/lib/{construct/api-to-eventbridge-target/api-destined-rest-api.js → helper/api-to-eventbridge-target-rest-api.js} +5 -5
- package/dist/src/lib/helper/index.d.ts +2 -0
- package/dist/src/lib/helper/index.js +18 -0
- package/dist/src/lib/manager/aws/cloudfront-manager.d.ts +3 -6
- package/dist/src/lib/manager/aws/cloudfront-manager.js +6 -9
- package/dist/src/lib/manager/aws/sqs-manager.js +9 -6
- package/dist/src/lib/types/aws/index.d.ts +10 -7
- package/package.json +24 -24
- package/src/lib/construct/api-to-eventbridge-target/index.ts +0 -3
- package/src/lib/construct/api-to-eventbridge-target/main.ts +127 -278
- package/src/lib/construct/{api-to-eventbridge-target → api-to-eventbridge-target-with-sns}/api-destined-lambda.ts +1 -1
- package/src/lib/construct/api-to-eventbridge-target-with-sns/index.ts +2 -0
- package/src/lib/construct/api-to-eventbridge-target-with-sns/main.ts +703 -0
- package/src/lib/construct/index.ts +1 -0
- package/src/lib/construct/site-with-ecs-backend/main.ts +1 -15
- package/src/lib/construct/static-site/main.ts +1 -15
- package/src/lib/{construct/api-to-eventbridge-target/api-destination-event.ts → helper/api-to-eventbridge-target-event.ts} +5 -3
- package/src/lib/{construct/api-to-eventbridge-target/api-destined-rest-api.ts → helper/api-to-eventbridge-target-rest-api.ts} +4 -4
- package/src/lib/helper/index.ts +2 -0
- package/src/lib/manager/aws/cloudfront-manager.ts +6 -12
- package/src/lib/manager/aws/sqs-manager.ts +9 -6
- package/src/lib/types/aws/index.ts +10 -7
|
@@ -14,7 +14,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./api-destination-event"), exports);
|
|
18
|
-
__exportStar(require("./api-destined-lambda"), exports);
|
|
19
|
-
__exportStar(require("./api-destined-rest-api"), exports);
|
|
20
17
|
__exportStar(require("./main"), exports);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as secretsmanager from 'aws-cdk-lib/aws-secretsmanager';
|
|
2
2
|
import { Construct } from 'constructs';
|
|
3
3
|
import { CommonConstruct } from '../../common';
|
|
4
|
-
import * as types from '../../types';
|
|
4
|
+
import * as types from '../../types/aws';
|
|
5
5
|
/**
|
|
6
6
|
* @stability stable
|
|
7
7
|
* @category cdk-utils.api-to-eventbridge-target
|
|
@@ -28,9 +28,8 @@ export declare class ApiToEventBridgeTarget extends CommonConstruct {
|
|
|
28
28
|
props: types.ApiToEventBridgeTargetProps;
|
|
29
29
|
id: string;
|
|
30
30
|
applicationSecrets: secretsmanager.ISecret[];
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
apiDestinedRestApi: types.ApiDestinedRestApiType;
|
|
31
|
+
apiEvent: types.ApiToEventBridgeTargetEventType;
|
|
32
|
+
apiToEventBridgeTargetRestApi: types.ApiToEventBridgeTargetRestApiType;
|
|
34
33
|
apiResource: string;
|
|
35
34
|
constructor(parent: Construct, id: string, props: types.ApiToEventBridgeTargetProps);
|
|
36
35
|
protected initResources(): void;
|
|
@@ -51,130 +50,86 @@ export declare class ApiToEventBridgeTarget extends CommonConstruct {
|
|
|
51
50
|
*/
|
|
52
51
|
protected resolveCertificate(): void;
|
|
53
52
|
/**
|
|
54
|
-
* @summary Method to create
|
|
53
|
+
* @summary Method to create or use an existing eventbus for api payload deliveries
|
|
55
54
|
* @protected
|
|
56
55
|
*/
|
|
57
|
-
protected
|
|
56
|
+
protected createApiToEventBridgeTargetEventBus(): void;
|
|
58
57
|
/**
|
|
59
|
-
* @summary Method to create
|
|
58
|
+
* @summary Method to create a log group for successful api payload deliveries
|
|
60
59
|
* @protected
|
|
61
60
|
*/
|
|
62
|
-
protected
|
|
63
|
-
/**
|
|
64
|
-
* @summary Method to create environment variables for Api Destined Lambda function
|
|
65
|
-
* @protected
|
|
66
|
-
*/
|
|
67
|
-
protected createApiDestinedLambdaEnvironment(): void;
|
|
68
|
-
/**
|
|
69
|
-
* @summary Method to create layers for Api Destined Lambda function
|
|
70
|
-
* @protected
|
|
71
|
-
*/
|
|
72
|
-
protected createApiDestinedLambdaLayers(): void;
|
|
73
|
-
/**
|
|
74
|
-
* @summary Method to create destination for Api Destined function
|
|
75
|
-
* @protected
|
|
76
|
-
*/
|
|
77
|
-
protected createApiDestinedLambdaDestinations(): void;
|
|
78
|
-
/**
|
|
79
|
-
* @summary Method to create lambda function for Api Destined
|
|
80
|
-
* @protected
|
|
81
|
-
*/
|
|
82
|
-
protected createApiDestinedLambdaFunction(): void;
|
|
83
|
-
/**
|
|
84
|
-
* @summary Method to create or use an existing eventbus for api destined payload deliveries
|
|
85
|
-
* @protected
|
|
86
|
-
*/
|
|
87
|
-
protected createApiDestinedEventBus(): void;
|
|
88
|
-
/**
|
|
89
|
-
* @summary Method to create a log group for successful api destined payload deliveries
|
|
90
|
-
* @protected
|
|
91
|
-
*/
|
|
92
|
-
protected createApiDestinationLogGroupSuccess(): void;
|
|
61
|
+
protected createApiToEventBridgeTargetLogGroup(): void;
|
|
93
62
|
/**
|
|
94
63
|
* Method to create EventBridge rule with lambda target for success
|
|
95
64
|
* @protected
|
|
96
65
|
*/
|
|
97
|
-
protected
|
|
98
|
-
|
|
99
|
-
* @summary Method to create a log group for failed api destined payload deliveries
|
|
100
|
-
* @protected
|
|
101
|
-
*/
|
|
102
|
-
protected createApiDestinationLogGroupFailure(): void;
|
|
103
|
-
/**
|
|
104
|
-
* Method to create EventBridge rule with lambda target for failure
|
|
105
|
-
* @protected
|
|
106
|
-
*/
|
|
107
|
-
protected createApiDestinationRuleFailure(): void;
|
|
108
|
-
/**
|
|
109
|
-
* @summary Method to create a role for sns topic
|
|
110
|
-
* @protected
|
|
111
|
-
*/
|
|
112
|
-
protected createApiDestinedTopicRole(): void;
|
|
66
|
+
protected createApiToEventBridgeTargetRule(): void;
|
|
67
|
+
protected createApiToEventBridgeTargetPolicy(): void;
|
|
113
68
|
/**
|
|
114
|
-
* @summary Method to create
|
|
69
|
+
* @summary Method to create a role for api integration
|
|
115
70
|
* @protected
|
|
116
71
|
*/
|
|
117
|
-
protected
|
|
72
|
+
protected createApiToEventBridgeTargetRole(): void;
|
|
118
73
|
/**
|
|
119
74
|
* @summary Method to create api integration request parameters
|
|
120
75
|
* @protected
|
|
121
76
|
*/
|
|
122
|
-
protected
|
|
77
|
+
protected createApiToEventBridgeTargetIntegrationRequestParameters(): void;
|
|
123
78
|
/**
|
|
124
79
|
* @summary Method to create api integration request templates
|
|
125
80
|
* @protected
|
|
126
81
|
*/
|
|
127
|
-
protected
|
|
82
|
+
protected createApiToEventBridgeTargetIntegrationRequestTemplates(): void;
|
|
128
83
|
/**
|
|
129
84
|
* @summary Method to create api integration response
|
|
130
85
|
* @protected
|
|
131
86
|
*/
|
|
132
|
-
protected
|
|
87
|
+
protected createApiToEventBridgeTargetIntegrationResponse(): void;
|
|
133
88
|
/**
|
|
134
89
|
* @summary Method to create api integration error response
|
|
135
90
|
* @protected
|
|
136
91
|
*/
|
|
137
|
-
protected
|
|
92
|
+
protected createApiToEventBridgeTargetIntegrationErrorResponse(): void;
|
|
138
93
|
/**
|
|
139
94
|
* @summary Method to create api integration
|
|
140
95
|
* @protected
|
|
141
96
|
*/
|
|
142
|
-
protected
|
|
97
|
+
protected createApiToEventBridgeTargetIntegration(): void;
|
|
143
98
|
/**
|
|
144
99
|
* @summary Method to create api integration method response
|
|
145
100
|
* @protected
|
|
146
101
|
*/
|
|
147
|
-
protected
|
|
102
|
+
protected createApiToEventBridgeTargetMethodResponse(): void;
|
|
148
103
|
/**
|
|
149
104
|
* @summary Method to create api integration method error response
|
|
150
105
|
* @protected
|
|
151
106
|
*/
|
|
152
|
-
protected
|
|
107
|
+
protected createApiToEventBridgeTargetMethodErrorResponse(): void;
|
|
153
108
|
/**
|
|
154
109
|
* @summary Method to create rest restApi for Api
|
|
155
110
|
* @protected
|
|
156
111
|
*/
|
|
157
|
-
protected
|
|
112
|
+
protected createApiToEventBridgeTargetRestApi(): void;
|
|
158
113
|
/**
|
|
159
114
|
* @summary Method to create api integration response model
|
|
160
115
|
* @protected
|
|
161
116
|
*/
|
|
162
|
-
protected
|
|
117
|
+
protected createApiToEventBridgeTargetResponseModel(): void;
|
|
163
118
|
/**
|
|
164
119
|
* @summary Method to create api integration error response model
|
|
165
120
|
* @protected
|
|
166
121
|
*/
|
|
167
|
-
protected
|
|
122
|
+
protected createApiToEventBridgeTargetErrorResponseModel(): void;
|
|
168
123
|
/**
|
|
169
124
|
* @summary Method to create api integration resource
|
|
170
125
|
* @protected
|
|
171
126
|
*/
|
|
172
|
-
protected
|
|
127
|
+
protected createApiToEventBridgeTargetResource(): void;
|
|
173
128
|
/**
|
|
174
129
|
* @summary Method to create api integration resource method
|
|
175
130
|
* @protected
|
|
176
131
|
*/
|
|
177
|
-
protected
|
|
132
|
+
protected createApiToEventBridgeTargetResourceMethod(): void;
|
|
178
133
|
/**
|
|
179
134
|
* @summary Method to create custom restApi domain for Api API
|
|
180
135
|
* @protected
|