|
971 | 971 | "Version": "2012-10-17"
|
972 | 972 | }
|
973 | 973 | }
|
| 974 | + }, |
| 975 | + "MyRestAPI3E28346C": { |
| 976 | + "Type": "AWS::ApiGateway::RestApi", |
| 977 | + "Properties": { |
| 978 | + "DisableExecuteApiEndpoint": false, |
| 979 | + "EndpointConfiguration": { |
| 980 | + "Types": [ |
| 981 | + "REGIONAL" |
| 982 | + ] |
| 983 | + }, |
| 984 | + "Name": "my-lambda-rest-api" |
| 985 | + } |
| 986 | + }, |
| 987 | + "MyRestAPIproxy2FB7B099": { |
| 988 | + "Type": "AWS::ApiGateway::Resource", |
| 989 | + "Properties": { |
| 990 | + "ParentId": { |
| 991 | + "Fn::GetAtt": [ |
| 992 | + "MyRestAPI3E28346C", |
| 993 | + "RootResourceId" |
| 994 | + ] |
| 995 | + }, |
| 996 | + "PathPart": "{proxy+}", |
| 997 | + "RestApiId": { |
| 998 | + "Ref": "MyRestAPI3E28346C" |
| 999 | + } |
| 1000 | + } |
| 1001 | + }, |
| 1002 | + "MyRestAPIproxyANYApiPermissionTestStackMyRestAPIC2110DF7ANYproxy61217372": { |
| 1003 | + "Type": "AWS::Lambda::Permission", |
| 1004 | + "Properties": { |
| 1005 | + "Action": "lambda:InvokeFunction", |
| 1006 | + "FunctionName": { |
| 1007 | + "Fn::GetAtt": [ |
| 1008 | + "Function76856677", |
| 1009 | + "Arn" |
| 1010 | + ] |
| 1011 | + }, |
| 1012 | + "Principal": "apigateway.amazonaws.com", |
| 1013 | + "SourceArn": { |
| 1014 | + "Fn::Join": [ |
| 1015 | + "", |
| 1016 | + [ |
| 1017 | + "arn:", |
| 1018 | + { |
| 1019 | + "Ref": "AWS::Partition" |
| 1020 | + }, |
| 1021 | + ":execute-api:", |
| 1022 | + { |
| 1023 | + "Ref": "AWS::Region" |
| 1024 | + }, |
| 1025 | + ":", |
| 1026 | + { |
| 1027 | + "Ref": "AWS::AccountId" |
| 1028 | + }, |
| 1029 | + ":", |
| 1030 | + { |
| 1031 | + "Ref": "MyRestAPI3E28346C" |
| 1032 | + }, |
| 1033 | + "/*/*/*" |
| 1034 | + ] |
| 1035 | + ] |
| 1036 | + } |
| 1037 | + } |
| 1038 | + }, |
| 1039 | + "MyRestAPIproxyANYApiPermissionTestTestStackMyRestAPIC2110DF7ANYproxyAA075AE5": { |
| 1040 | + "Type": "AWS::Lambda::Permission", |
| 1041 | + "Properties": { |
| 1042 | + "Action": "lambda:InvokeFunction", |
| 1043 | + "FunctionName": { |
| 1044 | + "Fn::GetAtt": [ |
| 1045 | + "Function76856677", |
| 1046 | + "Arn" |
| 1047 | + ] |
| 1048 | + }, |
| 1049 | + "Principal": "apigateway.amazonaws.com", |
| 1050 | + "SourceArn": { |
| 1051 | + "Fn::Join": [ |
| 1052 | + "", |
| 1053 | + [ |
| 1054 | + "arn:", |
| 1055 | + { |
| 1056 | + "Ref": "AWS::Partition" |
| 1057 | + }, |
| 1058 | + ":execute-api:", |
| 1059 | + { |
| 1060 | + "Ref": "AWS::Region" |
| 1061 | + }, |
| 1062 | + ":", |
| 1063 | + { |
| 1064 | + "Ref": "AWS::AccountId" |
| 1065 | + }, |
| 1066 | + ":", |
| 1067 | + { |
| 1068 | + "Ref": "MyRestAPI3E28346C" |
| 1069 | + }, |
| 1070 | + "/test-invoke-stage/*/*" |
| 1071 | + ] |
| 1072 | + ] |
| 1073 | + } |
| 1074 | + } |
| 1075 | + }, |
| 1076 | + "MyRestAPIproxyANY2543C5C3": { |
| 1077 | + "Type": "AWS::ApiGateway::Method", |
| 1078 | + "Properties": { |
| 1079 | + "AuthorizationType": "NONE", |
| 1080 | + "HttpMethod": "ANY", |
| 1081 | + "Integration": { |
| 1082 | + "IntegrationHttpMethod": "POST", |
| 1083 | + "Type": "AWS_PROXY", |
| 1084 | + "Uri": { |
| 1085 | + "Fn::Join": [ |
| 1086 | + "", |
| 1087 | + [ |
| 1088 | + "arn:", |
| 1089 | + { |
| 1090 | + "Ref": "AWS::Partition" |
| 1091 | + }, |
| 1092 | + ":apigateway:", |
| 1093 | + { |
| 1094 | + "Ref": "AWS::Region" |
| 1095 | + }, |
| 1096 | + ":lambda:path/2015-03-31/functions/", |
| 1097 | + { |
| 1098 | + "Fn::GetAtt": [ |
| 1099 | + "Function76856677", |
| 1100 | + "Arn" |
| 1101 | + ] |
| 1102 | + }, |
| 1103 | + "/invocations" |
| 1104 | + ] |
| 1105 | + ] |
| 1106 | + } |
| 1107 | + }, |
| 1108 | + "ResourceId": { |
| 1109 | + "Ref": "MyRestAPIproxy2FB7B099" |
| 1110 | + }, |
| 1111 | + "RestApiId": { |
| 1112 | + "Ref": "MyRestAPI3E28346C" |
| 1113 | + } |
| 1114 | + } |
| 1115 | + }, |
| 1116 | + "MyRestAPIANYApiPermissionTestStackMyRestAPIC2110DF7ANYB4C9B6E3": { |
| 1117 | + "Type": "AWS::Lambda::Permission", |
| 1118 | + "Properties": { |
| 1119 | + "Action": "lambda:InvokeFunction", |
| 1120 | + "FunctionName": { |
| 1121 | + "Fn::GetAtt": [ |
| 1122 | + "Function76856677", |
| 1123 | + "Arn" |
| 1124 | + ] |
| 1125 | + }, |
| 1126 | + "Principal": "apigateway.amazonaws.com", |
| 1127 | + "SourceArn": { |
| 1128 | + "Fn::Join": [ |
| 1129 | + "", |
| 1130 | + [ |
| 1131 | + "arn:", |
| 1132 | + { |
| 1133 | + "Ref": "AWS::Partition" |
| 1134 | + }, |
| 1135 | + ":execute-api:", |
| 1136 | + { |
| 1137 | + "Ref": "AWS::Region" |
| 1138 | + }, |
| 1139 | + ":", |
| 1140 | + { |
| 1141 | + "Ref": "AWS::AccountId" |
| 1142 | + }, |
| 1143 | + ":", |
| 1144 | + { |
| 1145 | + "Ref": "MyRestAPI3E28346C" |
| 1146 | + }, |
| 1147 | + "/*/*/" |
| 1148 | + ] |
| 1149 | + ] |
| 1150 | + } |
| 1151 | + } |
| 1152 | + }, |
| 1153 | + "MyRestAPIANYApiPermissionTestTestStackMyRestAPIC2110DF7ANY8F157E85": { |
| 1154 | + "Type": "AWS::Lambda::Permission", |
| 1155 | + "Properties": { |
| 1156 | + "Action": "lambda:InvokeFunction", |
| 1157 | + "FunctionName": { |
| 1158 | + "Fn::GetAtt": [ |
| 1159 | + "Function76856677", |
| 1160 | + "Arn" |
| 1161 | + ] |
| 1162 | + }, |
| 1163 | + "Principal": "apigateway.amazonaws.com", |
| 1164 | + "SourceArn": { |
| 1165 | + "Fn::Join": [ |
| 1166 | + "", |
| 1167 | + [ |
| 1168 | + "arn:", |
| 1169 | + { |
| 1170 | + "Ref": "AWS::Partition" |
| 1171 | + }, |
| 1172 | + ":execute-api:", |
| 1173 | + { |
| 1174 | + "Ref": "AWS::Region" |
| 1175 | + }, |
| 1176 | + ":", |
| 1177 | + { |
| 1178 | + "Ref": "AWS::AccountId" |
| 1179 | + }, |
| 1180 | + ":", |
| 1181 | + { |
| 1182 | + "Ref": "MyRestAPI3E28346C" |
| 1183 | + }, |
| 1184 | + "/test-invoke-stage/*/" |
| 1185 | + ] |
| 1186 | + ] |
| 1187 | + } |
| 1188 | + } |
| 1189 | + }, |
| 1190 | + "MyRestAPIANY1A0443FA": { |
| 1191 | + "Type": "AWS::ApiGateway::Method", |
| 1192 | + "Properties": { |
| 1193 | + "AuthorizationType": "NONE", |
| 1194 | + "HttpMethod": "ANY", |
| 1195 | + "Integration": { |
| 1196 | + "IntegrationHttpMethod": "POST", |
| 1197 | + "Type": "AWS_PROXY", |
| 1198 | + "Uri": { |
| 1199 | + "Fn::Join": [ |
| 1200 | + "", |
| 1201 | + [ |
| 1202 | + "arn:", |
| 1203 | + { |
| 1204 | + "Ref": "AWS::Partition" |
| 1205 | + }, |
| 1206 | + ":apigateway:", |
| 1207 | + { |
| 1208 | + "Ref": "AWS::Region" |
| 1209 | + }, |
| 1210 | + ":lambda:path/2015-03-31/functions/", |
| 1211 | + { |
| 1212 | + "Fn::GetAtt": [ |
| 1213 | + "Function76856677", |
| 1214 | + "Arn" |
| 1215 | + ] |
| 1216 | + }, |
| 1217 | + "/invocations" |
| 1218 | + ] |
| 1219 | + ] |
| 1220 | + } |
| 1221 | + }, |
| 1222 | + "ResourceId": { |
| 1223 | + "Fn::GetAtt": [ |
| 1224 | + "MyRestAPI3E28346C", |
| 1225 | + "RootResourceId" |
| 1226 | + ] |
| 1227 | + }, |
| 1228 | + "RestApiId": { |
| 1229 | + "Ref": "MyRestAPI3E28346C" |
| 1230 | + } |
| 1231 | + } |
974 | 1232 | }
|
975 | 1233 | },
|
976 | 1234 | "Mappings": {
|
|
0 commit comments