|
64 | 64 | ]
|
65 | 65 | },
|
66 | 66 | "ManagedPolicyArns": [
|
67 |
| - "arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" |
| 67 | + "arn:aws-cn:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" |
68 | 68 | ],
|
69 | 69 | "Tags": [
|
70 | 70 | {
|
|
117 | 117 | ]
|
118 | 118 | },
|
119 | 119 | "ManagedPolicyArns": [
|
120 |
| - "arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" |
| 120 | + "arn:aws-cn:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" |
121 | 121 | ],
|
122 | 122 | "Tags": [
|
123 | 123 | {
|
|
137 | 137 | "Principal": "apigateway.amazonaws.com",
|
138 | 138 | "SourceArn": {
|
139 | 139 | "Fn::Sub": [
|
140 |
| - "arn:aws:execute-api:${AWS::Region}:${AWS::AccountId}:${__ApiId__}/${__Stage__}/*/any/cognito", |
| 140 | + "arn:aws-cn:execute-api:${AWS::Region}:${AWS::AccountId}:${__ApiId__}/${__Stage__}/*/any/cognito", |
141 | 141 | {
|
142 | 142 | "__ApiId__": {
|
143 | 143 | "Ref": "MyApiWithCognitoAuth"
|
|
158 | 158 | "Principal": "apigateway.amazonaws.com",
|
159 | 159 | "SourceArn": {
|
160 | 160 | "Fn::Sub": [
|
161 |
| - "arn:aws:execute-api:${AWS::Region}:${AWS::AccountId}:${__ApiId__}/${__Stage__}/*/any/lambda-request", |
| 161 | + "arn:aws-cn:execute-api:${AWS::Region}:${AWS::AccountId}:${__ApiId__}/${__Stage__}/*/any/lambda-request", |
162 | 162 | {
|
163 | 163 | "__ApiId__": {
|
164 | 164 | "Ref": "MyApiWithLambdaRequestAuth"
|
|
179 | 179 | "Principal": "apigateway.amazonaws.com",
|
180 | 180 | "SourceArn": {
|
181 | 181 | "Fn::Sub": [
|
182 |
| - "arn:aws:execute-api:${AWS::Region}:${AWS::AccountId}:${__ApiId__}/${__Stage__}/*/any/lambda-token", |
| 182 | + "arn:aws-cn:execute-api:${AWS::Region}:${AWS::AccountId}:${__ApiId__}/${__Stage__}/*/any/lambda-token", |
183 | 183 | {
|
184 | 184 | "__ApiId__": {
|
185 | 185 | "Ref": "MyApiWithLambdaTokenAuth"
|
|
200 | 200 | "Principal": "apigateway.amazonaws.com",
|
201 | 201 | "SourceArn": {
|
202 | 202 | "Fn::Sub": [
|
203 |
| - "arn:aws:execute-api:${AWS::Region}:${AWS::AccountId}:${__ApiId__}/${__Stage__}/GET/cognito", |
| 203 | + "arn:aws-cn:execute-api:${AWS::Region}:${AWS::AccountId}:${__ApiId__}/${__Stage__}/GET/cognito", |
204 | 204 | {
|
205 | 205 | "__ApiId__": {
|
206 | 206 | "Ref": "MyApiWithCognitoAuth"
|
|
221 | 221 | "Principal": "apigateway.amazonaws.com",
|
222 | 222 | "SourceArn": {
|
223 | 223 | "Fn::Sub": [
|
224 |
| - "arn:aws:execute-api:${AWS::Region}:${AWS::AccountId}:${__ApiId__}/${__Stage__}/GET/lambda-request", |
| 224 | + "arn:aws-cn:execute-api:${AWS::Region}:${AWS::AccountId}:${__ApiId__}/${__Stage__}/GET/lambda-request", |
225 | 225 | {
|
226 | 226 | "__ApiId__": {
|
227 | 227 | "Ref": "MyApiWithLambdaRequestAuth"
|
|
242 | 242 | "Principal": "apigateway.amazonaws.com",
|
243 | 243 | "SourceArn": {
|
244 | 244 | "Fn::Sub": [
|
245 |
| - "arn:aws:execute-api:${AWS::Region}:${AWS::AccountId}:${__ApiId__}/${__Stage__}/GET/lambda-token", |
| 245 | + "arn:aws-cn:execute-api:${AWS::Region}:${AWS::AccountId}:${__ApiId__}/${__Stage__}/GET/lambda-token", |
246 | 246 | {
|
247 | 247 | "__ApiId__": {
|
248 | 248 | "Ref": "MyApiWithLambdaTokenAuth"
|
|
271 | 271 | "type": "aws_proxy",
|
272 | 272 | "httpMethod": "POST",
|
273 | 273 | "uri": {
|
274 |
| - "Fn::Sub": "arn:aws:apigateway:${AWS::Region}:lambda:path/2015-03-31/functions/${MyFn.Arn}/invocations" |
| 274 | + "Fn::Sub": "arn:aws-cn:apigateway:${AWS::Region}:lambda:path/2015-03-31/functions/${MyFn.Arn}/invocations" |
275 | 275 | }
|
276 | 276 | },
|
277 | 277 | "responses": {},
|
|
288 | 288 | "type": "aws_proxy",
|
289 | 289 | "httpMethod": "POST",
|
290 | 290 | "uri": {
|
291 |
| - "Fn::Sub": "arn:aws:apigateway:${AWS::Region}:lambda:path/2015-03-31/functions/${MyFn.Arn}/invocations" |
| 291 | + "Fn::Sub": "arn:aws-cn:apigateway:${AWS::Region}:lambda:path/2015-03-31/functions/${MyFn.Arn}/invocations" |
292 | 292 | }
|
293 | 293 | },
|
294 | 294 | "responses": {},
|
|
319 | 319 | }
|
320 | 320 | }
|
321 | 321 | }
|
| 322 | + }, |
| 323 | + "Parameters": { |
| 324 | + "endpointConfigurationTypes": "REGIONAL" |
| 325 | + }, |
| 326 | + "EndpointConfiguration": { |
| 327 | + "Types": [ |
| 328 | + "REGIONAL" |
| 329 | + ] |
322 | 330 | }
|
323 | 331 | }
|
324 | 332 | },
|
325 |
| - "MyApiWithCognitoAuthDeploymentdcc28e4b5f": { |
| 333 | + "MyApiWithCognitoAuthDeployment5d6fbaaea5": { |
326 | 334 | "Type": "AWS::ApiGateway::Deployment",
|
327 | 335 | "Properties": {
|
328 |
| - "Description": "RestApi deployment id: dcc28e4b5f8fbdb114c4da86eae5deddc368c60e", |
| 336 | + "Description": "RestApi deployment id: 5d6fbaaea5286fd32d64239db8b7f2247cb3f2b5", |
329 | 337 | "RestApiId": {
|
330 | 338 | "Ref": "MyApiWithCognitoAuth"
|
331 | 339 | },
|
|
336 | 344 | "Type": "AWS::ApiGateway::Stage",
|
337 | 345 | "Properties": {
|
338 | 346 | "DeploymentId": {
|
339 |
| - "Ref": "MyApiWithCognitoAuthDeploymentdcc28e4b5f" |
| 347 | + "Ref": "MyApiWithCognitoAuthDeployment5d6fbaaea5" |
340 | 348 | },
|
341 | 349 | "RestApiId": {
|
342 | 350 | "Ref": "MyApiWithCognitoAuth"
|
|
362 | 370 | "type": "aws_proxy",
|
363 | 371 | "httpMethod": "POST",
|
364 | 372 | "uri": {
|
365 |
| - "Fn::Sub": "arn:aws:apigateway:${AWS::Region}:lambda:path/2015-03-31/functions/${MyFn.Arn}/invocations" |
| 373 | + "Fn::Sub": "arn:aws-cn:apigateway:${AWS::Region}:lambda:path/2015-03-31/functions/${MyFn.Arn}/invocations" |
366 | 374 | }
|
367 | 375 | },
|
368 | 376 | "responses": {},
|
|
379 | 387 | "type": "aws_proxy",
|
380 | 388 | "httpMethod": "POST",
|
381 | 389 | "uri": {
|
382 |
| - "Fn::Sub": "arn:aws:apigateway:${AWS::Region}:lambda:path/2015-03-31/functions/${MyFn.Arn}/invocations" |
| 390 | + "Fn::Sub": "arn:aws-cn:apigateway:${AWS::Region}:lambda:path/2015-03-31/functions/${MyFn.Arn}/invocations" |
383 | 391 | }
|
384 | 392 | },
|
385 | 393 | "responses": {},
|
|
401 | 409 | "type": "token",
|
402 | 410 | "authorizerUri": {
|
403 | 411 | "Fn::Sub": [
|
404 |
| - "arn:aws:apigateway:${AWS::Region}:lambda:path/2015-03-31/functions/${__FunctionArn__}/invocations", |
| 412 | + "arn:aws-cn:apigateway:${AWS::Region}:lambda:path/2015-03-31/functions/${__FunctionArn__}/invocations", |
405 | 413 | {
|
406 | 414 | "__FunctionArn__": {
|
407 | 415 | "Fn::GetAtt": [
|
|
415 | 423 | }
|
416 | 424 | }
|
417 | 425 | }
|
| 426 | + }, |
| 427 | + "Parameters": { |
| 428 | + "endpointConfigurationTypes": "REGIONAL" |
| 429 | + }, |
| 430 | + "EndpointConfiguration": { |
| 431 | + "Types": [ |
| 432 | + "REGIONAL" |
| 433 | + ] |
418 | 434 | }
|
419 | 435 | }
|
420 | 436 | },
|
421 |
| - "MyApiWithLambdaTokenAuthDeployment03cc3fd4fd": { |
| 437 | + "MyApiWithLambdaTokenAuthDeployment79a03805ba": { |
422 | 438 | "Type": "AWS::ApiGateway::Deployment",
|
423 | 439 | "Properties": {
|
424 |
| - "Description": "RestApi deployment id: 03cc3fd4fd00e795fb067f94da06cb2fcfe95d3b", |
| 440 | + "Description": "RestApi deployment id: 79a03805ba3abc1f005e1282f19bb79af68b4f96", |
425 | 441 | "RestApiId": {
|
426 | 442 | "Ref": "MyApiWithLambdaTokenAuth"
|
427 | 443 | },
|
|
432 | 448 | "Type": "AWS::ApiGateway::Stage",
|
433 | 449 | "Properties": {
|
434 | 450 | "DeploymentId": {
|
435 |
| - "Ref": "MyApiWithLambdaTokenAuthDeployment03cc3fd4fd" |
| 451 | + "Ref": "MyApiWithLambdaTokenAuthDeployment79a03805ba" |
436 | 452 | },
|
437 | 453 | "RestApiId": {
|
438 | 454 | "Ref": "MyApiWithLambdaTokenAuth"
|
|
453 | 469 | "Principal": "apigateway.amazonaws.com",
|
454 | 470 | "SourceArn": {
|
455 | 471 | "Fn::Sub": [
|
456 |
| - "arn:aws:execute-api:${AWS::Region}:${AWS::AccountId}:${__ApiId__}/authorizers/*", |
| 472 | + "arn:aws-cn:execute-api:${AWS::Region}:${AWS::AccountId}:${__ApiId__}/authorizers/*", |
457 | 473 | {
|
458 | 474 | "__ApiId__": {
|
459 | 475 | "Ref": "MyApiWithLambdaTokenAuth"
|
|
481 | 497 | "type": "aws_proxy",
|
482 | 498 | "httpMethod": "POST",
|
483 | 499 | "uri": {
|
484 |
| - "Fn::Sub": "arn:aws:apigateway:${AWS::Region}:lambda:path/2015-03-31/functions/${MyFn.Arn}/invocations" |
| 500 | + "Fn::Sub": "arn:aws-cn:apigateway:${AWS::Region}:lambda:path/2015-03-31/functions/${MyFn.Arn}/invocations" |
485 | 501 | }
|
486 | 502 | },
|
487 | 503 | "responses": {},
|
|
498 | 514 | "type": "aws_proxy",
|
499 | 515 | "httpMethod": "POST",
|
500 | 516 | "uri": {
|
501 |
| - "Fn::Sub": "arn:aws:apigateway:${AWS::Region}:lambda:path/2015-03-31/functions/${MyFn.Arn}/invocations" |
| 517 | + "Fn::Sub": "arn:aws-cn:apigateway:${AWS::Region}:lambda:path/2015-03-31/functions/${MyFn.Arn}/invocations" |
502 | 518 | }
|
503 | 519 | },
|
504 | 520 | "responses": {},
|
|
520 | 536 | "type": "request",
|
521 | 537 | "authorizerUri": {
|
522 | 538 | "Fn::Sub": [
|
523 |
| - "arn:aws:apigateway:${AWS::Region}:lambda:path/2015-03-31/functions/${__FunctionArn__}/invocations", |
| 539 | + "arn:aws-cn:apigateway:${AWS::Region}:lambda:path/2015-03-31/functions/${__FunctionArn__}/invocations", |
524 | 540 | {
|
525 | 541 | "__FunctionArn__": {
|
526 | 542 | "Fn::GetAtt": [
|
|
535 | 551 | }
|
536 | 552 | }
|
537 | 553 | }
|
| 554 | + }, |
| 555 | + "Parameters": { |
| 556 | + "endpointConfigurationTypes": "REGIONAL" |
| 557 | + }, |
| 558 | + "EndpointConfiguration": { |
| 559 | + "Types": [ |
| 560 | + "REGIONAL" |
| 561 | + ] |
538 | 562 | }
|
539 | 563 | }
|
540 | 564 | },
|
541 |
| - "MyApiWithLambdaRequestAuthDeployment6a32cc7f63": { |
| 565 | + "MyApiWithLambdaRequestAuthDeployment12aa7114ad": { |
542 | 566 | "Type": "AWS::ApiGateway::Deployment",
|
543 | 567 | "Properties": {
|
544 |
| - "Description": "RestApi deployment id: 6a32cc7f63485b93190f441a47da57f43de6a532", |
| 568 | + "Description": "RestApi deployment id: 12aa7114ad8cd8aaeffd832e49f6f8aa8b6c2062", |
545 | 569 | "RestApiId": {
|
546 | 570 | "Ref": "MyApiWithLambdaRequestAuth"
|
547 | 571 | },
|
|
552 | 576 | "Type": "AWS::ApiGateway::Stage",
|
553 | 577 | "Properties": {
|
554 | 578 | "DeploymentId": {
|
555 |
| - "Ref": "MyApiWithLambdaRequestAuthDeployment6a32cc7f63" |
| 579 | + "Ref": "MyApiWithLambdaRequestAuthDeployment12aa7114ad" |
556 | 580 | },
|
557 | 581 | "RestApiId": {
|
558 | 582 | "Ref": "MyApiWithLambdaRequestAuth"
|
|
573 | 597 | "Principal": "apigateway.amazonaws.com",
|
574 | 598 | "SourceArn": {
|
575 | 599 | "Fn::Sub": [
|
576 |
| - "arn:aws:execute-api:${AWS::Region}:${AWS::AccountId}:${__ApiId__}/authorizers/*", |
| 600 | + "arn:aws-cn:execute-api:${AWS::Region}:${AWS::AccountId}:${__ApiId__}/authorizers/*", |
577 | 601 | {
|
578 | 602 | "__ApiId__": {
|
579 | 603 | "Ref": "MyApiWithLambdaRequestAuth"
|
|
0 commit comments