|
58 | 58 | "corsapitestDeployment2BF1633Adc24ac182461aecc920a8724663ce2a1": {
|
59 | 59 | "Type": "AWS::ApiGateway::Deployment",
|
60 | 60 | "Properties": {
|
| 61 | + "Description": "Automatically created by the RestApi construct", |
61 | 62 | "RestApiId": {
|
62 | 63 | "Ref": "corsapitest8682546E"
|
63 |
| - }, |
64 |
| - "Description": "Automatically created by the RestApi construct" |
| 64 | + } |
65 | 65 | },
|
66 | 66 | "DependsOn": [
|
67 | 67 | "corsapitesttwitchDELETEB4C94228",
|
|
74 | 74 | "corsapitestDeploymentStageprod8F31F2AB": {
|
75 | 75 | "Type": "AWS::ApiGateway::Stage",
|
76 | 76 | "Properties": {
|
77 |
| - "RestApiId": { |
78 |
| - "Ref": "corsapitest8682546E" |
79 |
| - }, |
80 | 77 | "DeploymentId": {
|
81 | 78 | "Ref": "corsapitestDeployment2BF1633Adc24ac182461aecc920a8724663ce2a1"
|
82 | 79 | },
|
| 80 | + "RestApiId": { |
| 81 | + "Ref": "corsapitest8682546E" |
| 82 | + }, |
83 | 83 | "StageName": "prod"
|
84 | 84 | },
|
85 | 85 | "DependsOn": [
|
|
182 | 182 | "corsapitesttwitchGET4270341B": {
|
183 | 183 | "Type": "AWS::ApiGateway::Method",
|
184 | 184 | "Properties": {
|
185 |
| - "HttpMethod": "GET", |
186 |
| - "ResourceId": { |
187 |
| - "Ref": "corsapitesttwitch0E3D1559" |
188 |
| - }, |
189 |
| - "RestApiId": { |
190 |
| - "Ref": "corsapitest8682546E" |
191 |
| - }, |
192 | 185 | "AuthorizationType": "NONE",
|
| 186 | + "HttpMethod": "GET", |
193 | 187 | "Integration": {
|
194 | 188 | "IntegrationHttpMethod": "POST",
|
195 | 189 | "Type": "AWS_PROXY",
|
|
216 | 210 | ]
|
217 | 211 | ]
|
218 | 212 | }
|
| 213 | + }, |
| 214 | + "ResourceId": { |
| 215 | + "Ref": "corsapitesttwitch0E3D1559" |
| 216 | + }, |
| 217 | + "RestApiId": { |
| 218 | + "Ref": "corsapitest8682546E" |
219 | 219 | }
|
220 | 220 | }
|
221 | 221 | },
|
|
300 | 300 | "corsapitesttwitchPOSTB52CFB02": {
|
301 | 301 | "Type": "AWS::ApiGateway::Method",
|
302 | 302 | "Properties": {
|
303 |
| - "HttpMethod": "POST", |
304 |
| - "ResourceId": { |
305 |
| - "Ref": "corsapitesttwitch0E3D1559" |
306 |
| - }, |
307 |
| - "RestApiId": { |
308 |
| - "Ref": "corsapitest8682546E" |
309 |
| - }, |
310 | 303 | "AuthorizationType": "NONE",
|
| 304 | + "HttpMethod": "POST", |
311 | 305 | "Integration": {
|
312 | 306 | "IntegrationHttpMethod": "POST",
|
313 | 307 | "Type": "AWS_PROXY",
|
|
334 | 328 | ]
|
335 | 329 | ]
|
336 | 330 | }
|
| 331 | + }, |
| 332 | + "ResourceId": { |
| 333 | + "Ref": "corsapitesttwitch0E3D1559" |
| 334 | + }, |
| 335 | + "RestApiId": { |
| 336 | + "Ref": "corsapitest8682546E" |
337 | 337 | }
|
338 | 338 | }
|
339 | 339 | },
|
|
418 | 418 | "corsapitesttwitchDELETEB4C94228": {
|
419 | 419 | "Type": "AWS::ApiGateway::Method",
|
420 | 420 | "Properties": {
|
421 |
| - "HttpMethod": "DELETE", |
422 |
| - "ResourceId": { |
423 |
| - "Ref": "corsapitesttwitch0E3D1559" |
424 |
| - }, |
425 |
| - "RestApiId": { |
426 |
| - "Ref": "corsapitest8682546E" |
427 |
| - }, |
428 | 421 | "AuthorizationType": "NONE",
|
| 422 | + "HttpMethod": "DELETE", |
429 | 423 | "Integration": {
|
430 | 424 | "IntegrationHttpMethod": "POST",
|
431 | 425 | "Type": "AWS_PROXY",
|
|
452 | 446 | ]
|
453 | 447 | ]
|
454 | 448 | }
|
| 449 | + }, |
| 450 | + "ResourceId": { |
| 451 | + "Ref": "corsapitesttwitch0E3D1559" |
| 452 | + }, |
| 453 | + "RestApiId": { |
| 454 | + "Ref": "corsapitest8682546E" |
455 | 455 | }
|
456 | 456 | }
|
457 | 457 | },
|
458 | 458 | "corsapitesttwitchOPTIONSE5EEB527": {
|
459 | 459 | "Type": "AWS::ApiGateway::Method",
|
460 | 460 | "Properties": {
|
461 |
| - "HttpMethod": "OPTIONS", |
462 |
| - "ResourceId": { |
463 |
| - "Ref": "corsapitesttwitch0E3D1559" |
464 |
| - }, |
465 |
| - "RestApiId": { |
466 |
| - "Ref": "corsapitest8682546E" |
467 |
| - }, |
468 | 461 | "ApiKeyRequired": false,
|
469 | 462 | "AuthorizationType": "NONE",
|
| 463 | + "HttpMethod": "OPTIONS", |
470 | 464 | "Integration": {
|
471 | 465 | "IntegrationResponses": [
|
472 | 466 | {
|
|
497 | 491 | },
|
498 | 492 | "StatusCode": "204"
|
499 | 493 | }
|
500 |
| - ] |
| 494 | + ], |
| 495 | + "ResourceId": { |
| 496 | + "Ref": "corsapitesttwitch0E3D1559" |
| 497 | + }, |
| 498 | + "RestApiId": { |
| 499 | + "Ref": "corsapitest8682546E" |
| 500 | + } |
501 | 501 | }
|
502 | 502 | },
|
503 | 503 | "handlerServiceRole187D5A5A": {
|
|
540 | 540 | },
|
541 | 541 | "S3Key": "c7bba0d9d477c86c6dc2adb0eb95842634a1c040dd3a66b42eec2bb604644d4f.zip"
|
542 | 542 | },
|
| 543 | + "Handler": "index.handler", |
543 | 544 | "Role": {
|
544 | 545 | "Fn::GetAtt": [
|
545 | 546 | "handlerServiceRole187D5A5A",
|
546 | 547 | "Arn"
|
547 | 548 | ]
|
548 | 549 | },
|
549 |
| - "Handler": "index.handler", |
550 | 550 | "Runtime": "nodejs14.x"
|
551 | 551 | },
|
552 | 552 | "DependsOn": [
|
|
0 commit comments