4
4
5
5
Name|Description
6
6
----|-----------
7
+ [ BaseEdgeConstruct] ( #cloudcomponents-cdk-lambda-at-edge-pattern-baseedgeconstruct ) |* No description*
7
8
[ EdgeFunction] ( #cloudcomponents-cdk-lambda-at-edge-pattern-edgefunction ) |* No description*
9
+ [ EdgeRole] ( #cloudcomponents-cdk-lambda-at-edge-pattern-edgerole ) |* No description*
8
10
[ HttpHeaders] ( #cloudcomponents-cdk-lambda-at-edge-pattern-httpheaders ) |* No description*
9
11
[ WithConfiguration] ( #cloudcomponents-cdk-lambda-at-edge-pattern-withconfiguration ) |* No description*
10
12
@@ -16,6 +18,7 @@ Name|Description
16
18
[ CommonEdgeFunctionProps] ( #cloudcomponents-cdk-lambda-at-edge-pattern-commonedgefunctionprops ) |* No description*
17
19
[ Configuration] ( #cloudcomponents-cdk-lambda-at-edge-pattern-configuration ) |* No description*
18
20
[ EdgeFunctionProps] ( #cloudcomponents-cdk-lambda-at-edge-pattern-edgefunctionprops ) |* No description*
21
+ [ EdgeRoleProps] ( #cloudcomponents-cdk-lambda-at-edge-pattern-edgeroleprops ) |* No description*
19
22
[ HttpHeadersProps] ( #cloudcomponents-cdk-lambda-at-edge-pattern-httpheadersprops ) |* No description*
20
23
[ WithConfigurationProps] ( #cloudcomponents-cdk-lambda-at-edge-pattern-withconfigurationprops ) |* No description*
21
24
@@ -24,6 +27,8 @@ Name|Description
24
27
25
28
Name|Description
26
29
----|-----------
30
+ [ IEdgeLambda] ( #cloudcomponents-cdk-lambda-at-edge-pattern-iedgelambda ) |* No description*
31
+ [ IEdgeRole] ( #cloudcomponents-cdk-lambda-at-edge-pattern-iedgerole ) |* No description*
27
32
[ ILambdaFunctionAssociation] ( #cloudcomponents-cdk-lambda-at-edge-pattern-ilambdafunctionassociation ) |* No description*
28
33
29
34
@@ -35,7 +40,7 @@ Name|Description
35
40
36
41
37
42
38
- ## class EdgeFunction <a id =" cloudcomponents-cdk-lambda-at-edge-pattern-edgefunction " ></a >
43
+ ## class BaseEdgeConstruct <a id =" cloudcomponents-cdk-lambda-at-edge-pattern-baseedgeconstruct " ></a >
39
44
40
45
41
46
@@ -47,21 +52,88 @@ __Extends__: [Construct](#aws-cdk-core-construct)
47
52
48
53
49
54
55
+ ``` ts
56
+ new BaseEdgeConstruct (scope : Construct , id : string )
57
+ ```
58
+
59
+ * ** scope** (<code >[ Construct] ( #aws-cdk-core-construct ) </code >) * No description*
60
+ * ** id** (<code >string</code >) * No description*
61
+
62
+
63
+
64
+ ### Properties
65
+
66
+
67
+ Name | Type | Description
68
+ -----|------|-------------
69
+ ** edgeStack** | <code >[ Stack] ( #aws-cdk-core-stack ) </code > | <span ></span >
70
+ ** stack** | <code >[ Stack] ( #aws-cdk-core-stack ) </code > | <span ></span >
71
+
72
+
73
+
74
+ ## class EdgeFunction <a id =" cloudcomponents-cdk-lambda-at-edge-pattern-edgefunction " ></a >
75
+
76
+
77
+
78
+ __ Implements__ : [ IConstruct] ( #constructs-iconstruct ) , [ IConstruct] ( #aws-cdk-core-iconstruct ) , [ IConstruct] ( #constructs-iconstruct ) , [ IDependable] ( #aws-cdk-core-idependable ) , [ ILambdaFunctionAssociation] ( #cloudcomponents-cdk-lambda-at-edge-pattern-ilambdafunctionassociation ) , [ IEdgeLambda] ( #cloudcomponents-cdk-lambda-at-edge-pattern-iedgelambda )
79
+ __ Extends__ : [ BaseEdgeConstruct] ( #cloudcomponents-cdk-lambda-at-edge-pattern-baseedgeconstruct )
80
+
81
+ ### Initializer
82
+
83
+
84
+
85
+
50
86
``` ts
51
87
new EdgeFunction (scope : Construct , id : string , props : EdgeFunctionProps )
52
88
```
53
89
54
90
* ** scope** (<code >[ Construct] ( #aws-cdk-core-construct ) </code >) * No description*
55
91
* ** id** (<code >string</code >) * No description*
56
92
* ** props** (<code >[ EdgeFunctionProps] ( #cloudcomponents-cdk-lambda-at-edge-pattern-edgefunctionprops ) </code >) * No description*
57
- * ** logLevel ** (<code >[ LogLevel ] ( #cloudcomponents-cdk-lambda-at-edge-pattern-loglevel ) </code >) * No description* __ * Optional* __
93
+ * ** edgeRole ** (<code >[ IEdgeRole ] ( #cloudcomponents-cdk-lambda-at-edge-pattern-iedgerole ) </code >) * No description* __ * Optional* __
58
94
* ** parameterName** (<code >string</code >) The name of the parameter. __ * Optional* __
59
- * ** role** (<code >[ IRole] ( #aws-cdk-aws-iam-irole ) </code >) * No description* __ * Optional* __
60
95
* ** code** (<code >[ Code] ( #aws-cdk-aws-lambda-code ) </code >) * No description*
96
+ * ** configuration** (<code >[ Configuration] ( #cloudcomponents-cdk-lambda-at-edge-pattern-configuration ) </code >) * No description*
97
+ * ** eventType** (<code >[ LambdaEdgeEventType] ( #aws-cdk-aws-cloudfront-lambdaedgeeventtype ) </code >) * No description*
61
98
* ** name** (<code >string</code >) * No description*
62
99
63
100
64
101
102
+ ### Properties
103
+
104
+
105
+ Name | Type | Description
106
+ -----|------|-------------
107
+ ** edgeRole** | <code >[ IEdgeRole] ( #cloudcomponents-cdk-lambda-at-edge-pattern-iedgerole ) </code > | <span ></span >
108
+ ** eventType** | <code >[ LambdaEdgeEventType] ( #aws-cdk-aws-cloudfront-lambdaedgeeventtype ) </code > | <span ></span >
109
+ ** functionVersion** | <code >[ IVersion] ( #aws-cdk-aws-lambda-iversion ) </code > | <span ></span >
110
+ ** lambdaFunction** | <code >[ IVersion] ( #aws-cdk-aws-lambda-iversion ) </code > | <span ></span >
111
+
112
+
113
+
114
+ ## class EdgeRole <a id =" cloudcomponents-cdk-lambda-at-edge-pattern-edgerole " ></a >
115
+
116
+
117
+
118
+ __ Implements__ : [ IConstruct] ( #constructs-iconstruct ) , [ IConstruct] ( #aws-cdk-core-iconstruct ) , [ IConstruct] ( #constructs-iconstruct ) , [ IDependable] ( #aws-cdk-core-idependable ) , [ IEdgeRole] ( #cloudcomponents-cdk-lambda-at-edge-pattern-iedgerole )
119
+ __ Extends__ : [ BaseEdgeConstruct] ( #cloudcomponents-cdk-lambda-at-edge-pattern-baseedgeconstruct )
120
+
121
+ ### Initializer
122
+
123
+
124
+
125
+
126
+ ``` ts
127
+ new EdgeRole (scope : Construct , id : string , props ?: EdgeRoleProps )
128
+ ```
129
+
130
+ * ** scope** (<code >[ Construct] ( #aws-cdk-core-construct ) </code >) * No description*
131
+ * ** id** (<code >string</code >) * No description*
132
+ * ** props** (<code >[ EdgeRoleProps] ( #cloudcomponents-cdk-lambda-at-edge-pattern-edgeroleprops ) </code >) * No description*
133
+ * ** roleName** (<code >string</code >) * No description* __ * Optional* __
134
+
135
+
136
+
65
137
### Properties
66
138
67
139
@@ -72,27 +144,27 @@ Name | Type | Description
72
144
### Methods
73
145
74
146
75
- #### retrieveEdgeFunction(scope ) <a id =" cloudcomponents-cdk-lambda-at-edge-pattern-edgefunction-retrieveedgefunction " ></a >
147
+ #### addToEdgeRolePolicy(statement ) <a id =" cloudcomponents-cdk-lambda-at-edge-pattern-edgerole-addtoedgerolepolicy " ></a >
76
148
77
149
78
150
79
151
``` ts
80
- retrieveEdgeFunction ( scope : Construct ): IFunction
152
+ addToEdgeRolePolicy ( statement : PolicyStatement ): void
81
153
```
82
154
83
- * ** scope** (<code >[ Construct] ( #aws-cdk-core-construct ) </code >) * No description*
155
+ * ** statement** (<code >[ PolicyStatement] ( #aws-cdk-aws-iam-policystatement ) </code >) * No description*
156
+
157
+
84
158
85
- __ Returns__ :
86
- * <code >[ IFunction] ( #aws-cdk-aws-lambda-ifunction ) </code >
87
159
88
160
89
161
90
162
## class HttpHeaders <a id =" cloudcomponents-cdk-lambda-at-edge-pattern-httpheaders " ></a >
91
163
92
164
93
165
94
- __ Implements__ : [ IConstruct] ( #constructs-iconstruct ) , [ IConstruct] ( #aws-cdk-core-iconstruct ) , [ IConstruct] ( #constructs-iconstruct ) , [ IDependable] ( #aws-cdk-core-idependable ) , [ ILambdaFunctionAssociation] ( #cloudcomponents-cdk-lambda-at-edge-pattern-ilambdafunctionassociation )
95
- __ Extends__ : [ Construct ] ( #aws -cdk-core-construct )
166
+ __ Implements__ : [ IConstruct] ( #constructs-iconstruct ) , [ IConstruct] ( #aws-cdk-core-iconstruct ) , [ IConstruct] ( #constructs-iconstruct ) , [ IDependable] ( #aws-cdk-core-idependable ) , [ ILambdaFunctionAssociation] ( #cloudcomponents-cdk-lambda-at-edge-pattern-ilambdafunctionassociation ) , [ IEdgeLambda ] ( #cloudcomponents-cdk-lambda-at-edge-pattern-iedgelambda )
167
+ __ Extends__ : [ EdgeFunction ] ( #cloudcomponents -cdk-lambda-at-edge-pattern-edgefunction )
96
168
97
169
### Initializer
98
170
@@ -106,22 +178,13 @@ new HttpHeaders(scope: Construct, id: string, props: HttpHeadersProps)
106
178
* ** scope** (<code >[ Construct] ( #aws-cdk-core-construct ) </code >) * No description*
107
179
* ** id** (<code >string</code >) * No description*
108
180
* ** props** (<code >[ HttpHeadersProps] ( #cloudcomponents-cdk-lambda-at-edge-pattern-httpheadersprops ) </code >) * No description*
109
- * ** logLevel ** (<code >[ LogLevel ] ( #cloudcomponents-cdk-lambda-at-edge-pattern-loglevel ) </code >) * No description* __ * Optional* __
181
+ * ** edgeRole ** (<code >[ IEdgeRole ] ( #cloudcomponents-cdk-lambda-at-edge-pattern-iedgerole ) </code >) * No description* __ * Optional* __
110
182
* ** parameterName** (<code >string</code >) The name of the parameter. __ * Optional* __
111
- * ** role** (<code >[ IRole] ( #aws-cdk-aws-iam-irole ) </code >) * No description* __ * Optional* __
112
183
* ** httpHeaders** (<code >Map<string, string></code >) * No description*
184
+ * ** logLevel** (<code >[ LogLevel] ( #cloudcomponents-cdk-lambda-at-edge-pattern-loglevel ) </code >) * No description* __ * Optional* __
113
185
114
186
115
187
116
- ### Properties
117
-
118
-
119
- Name | Type | Description
120
- -----|------|-------------
121
- ** eventType** | <code >[ LambdaEdgeEventType] ( #aws-cdk-aws-cloudfront-lambdaedgeeventtype ) </code > | <span ></span >
122
- ** lambdaFunction** | <code >[ IVersion] ( #aws-cdk-aws-lambda-iversion ) </code > | <span ></span >
123
-
124
-
125
188
126
189
## class WithConfiguration <a id =" cloudcomponents-cdk-lambda-at-edge-pattern-withconfiguration " ></a >
127
190
@@ -152,7 +215,7 @@ new WithConfiguration(scope: Construct, id: string, props: WithConfigurationProp
152
215
153
216
Name | Type | Description
154
217
-----|------|-------------
155
- ** lambdaFunction ** | <code >[ IVersion] ( #aws-cdk-aws-lambda-iversion ) </code > | <span ></span >
218
+ ** functionVersion ** | <code >[ IVersion] ( #aws-cdk-aws-lambda-iversion ) </code > | <span ></span >
156
219
157
220
158
221
@@ -165,9 +228,8 @@ Name | Type | Description
165
228
166
229
Name | Type | Description
167
230
-----|------|-------------
168
- ** logLevel ** ? | <code >[ LogLevel ] ( #cloudcomponents-cdk-lambda-at-edge-pattern-loglevel ) </code > | __ * Optional* __
231
+ ** edgeRole ** ? | <code >[ IEdgeRole ] ( #cloudcomponents-cdk-lambda-at-edge-pattern-iedgerole ) </code > | __ * Optional* __
169
232
** parameterName** ? | <code >string</code > | The name of the parameter.<br />__ * Optional* __
170
- ** role** ? | <code >[ IRole] ( #aws-cdk-aws-iam-irole ) </code > | __ * Optional* __
171
233
172
234
173
235
@@ -194,10 +256,24 @@ Name | Type | Description
194
256
Name | Type | Description
195
257
-----|------|-------------
196
258
** code** | <code >[ Code] ( #aws-cdk-aws-lambda-code ) </code > | <span ></span >
259
+ ** configuration** | <code >[ Configuration] ( #cloudcomponents-cdk-lambda-at-edge-pattern-configuration ) </code > | <span ></span >
260
+ ** eventType** | <code >[ LambdaEdgeEventType] ( #aws-cdk-aws-cloudfront-lambdaedgeeventtype ) </code > | <span ></span >
197
261
** name** | <code >string</code > | <span ></span >
198
- ** logLevel ** ? | <code >[ LogLevel ] ( #cloudcomponents-cdk-lambda-at-edge-pattern-loglevel ) </code > | __ * Optional* __
262
+ ** edgeRole ** ? | <code >[ IEdgeRole ] ( #cloudcomponents-cdk-lambda-at-edge-pattern-iedgerole ) </code > | __ * Optional* __
199
263
** parameterName** ? | <code >string</code > | The name of the parameter.<br />__ * Optional* __
200
- ** role** ? | <code >[ IRole] ( #aws-cdk-aws-iam-irole ) </code > | __ * Optional* __
264
+
265
+
266
+
267
+ ## struct EdgeRoleProps <a id =" cloudcomponents-cdk-lambda-at-edge-pattern-edgeroleprops " ></a >
268
+
269
+
270
+
271
+
272
+
273
+
274
+ Name | Type | Description
275
+ -----|------|-------------
276
+ ** roleName** ? | <code >string</code > | __ * Optional* __
201
277
202
278
203
279
@@ -211,15 +287,62 @@ Name | Type | Description
211
287
Name | Type | Description
212
288
-----|------|-------------
213
289
** httpHeaders** | <code >Map<string, string></code > | <span ></span >
290
+ ** edgeRole** ? | <code >[ IEdgeRole] ( #cloudcomponents-cdk-lambda-at-edge-pattern-iedgerole ) </code > | __ * Optional* __
214
291
** logLevel** ? | <code >[ LogLevel] ( #cloudcomponents-cdk-lambda-at-edge-pattern-loglevel ) </code > | __ * Optional* __
215
292
** parameterName** ? | <code >string</code > | The name of the parameter.<br />__ * Optional* __
216
- ** role** ? | <code >[ IRole] ( #aws-cdk-aws-iam-irole ) </code > | __ * Optional* __
293
+
294
+
295
+
296
+ ## interface IEdgeLambda <a id =" cloudcomponents-cdk-lambda-at-edge-pattern-iedgelambda " ></a >
297
+
298
+ __ Implemented by__ : [ EdgeFunction] ( #cloudcomponents-cdk-lambda-at-edge-pattern-edgefunction ) , [ HttpHeaders] ( #cloudcomponents-cdk-lambda-at-edge-pattern-httpheaders )
299
+
300
+
301
+
302
+ ### Properties
303
+
304
+
305
+ Name | Type | Description
306
+ -----|------|-------------
307
+ ** eventType** | <code >[ LambdaEdgeEventType] ( #aws-cdk-aws-cloudfront-lambdaedgeeventtype ) </code > | <span ></span >
308
+ ** functionVersion** | <code >[ IVersion] ( #aws-cdk-aws-lambda-iversion ) </code > | <span ></span >
309
+
310
+
311
+
312
+ ## interface IEdgeRole <a id =" cloudcomponents-cdk-lambda-at-edge-pattern-iedgerole " ></a >
313
+
314
+ __ Implemented by__ : [ EdgeRole] ( #cloudcomponents-cdk-lambda-at-edge-pattern-edgerole )
315
+
316
+
317
+
318
+ ### Properties
319
+
320
+
321
+ Name | Type | Description
322
+ -----|------|-------------
323
+ ** role** | <code >[ IRole] ( #aws-cdk-aws-iam-irole ) </code > | <span ></span >
324
+
325
+ ### Methods
326
+
327
+
328
+ #### addToEdgeRolePolicy(statement) <a id =" cloudcomponents-cdk-lambda-at-edge-pattern-iedgerole-addtoedgerolepolicy " ></a >
329
+
330
+
331
+
332
+ ``` ts
333
+ addToEdgeRolePolicy (statement : PolicyStatement ): void
334
+ ```
335
+
336
+ * ** statement** (<code >[ PolicyStatement] ( #aws-cdk-aws-iam-policystatement ) </code >) * No description*
337
+
338
+
339
+
217
340
218
341
219
342
220
343
## interface ILambdaFunctionAssociation <a id =" cloudcomponents-cdk-lambda-at-edge-pattern-ilambdafunctionassociation " ></a >
221
344
222
- __ Implemented by__ : [ HttpHeaders] ( #cloudcomponents-cdk-lambda-at-edge-pattern-httpheaders )
345
+ __ Implemented by__ : [ EdgeFunction ] ( #cloudcomponents-cdk-lambda-at-edge-pattern-edgefunction ) , [ HttpHeaders] ( #cloudcomponents-cdk-lambda-at-edge-pattern-httpheaders )
223
346
224
347
225
348
0 commit comments