{
  "Resources": {
    "myapplatestF03E4651": {
      "Type": "AWS::ApiGateway::RestApi",
      "Properties": {
        "Name": "my-app-latest-gateway"
      },
      "Metadata": {
        "aws:cdk:path": "my-app-latest-stack/my-app-latest/Resource"
      }
    },
    "myapplatestDeployment712A79C0a9b2cb6134a1b5da087ff156630ebf56": {
      "Type": "AWS::ApiGateway::Deployment",
      "Properties": {
        "RestApiId": {
          "Ref": "myapplatestF03E4651"
        },
        "Description": "Automatically created by the RestApi construct"
      },
      "DependsOn": [
        "myapplatestmessagesidGETB17E3F00",
        "myapplatestmessagesid60457E98",
        "myapplatestmessages9B8F2089"
      ],
      "Metadata": {
        "aws:cdk:path": "my-app-latest-stack/my-app-latest/Deployment/Resource"
      }
    },
    "myapplatestDeploymentStageprod4F9184B5": {
      "Type": "AWS::ApiGateway::Stage",
      "Properties": {
        "RestApiId": {
          "Ref": "myapplatestF03E4651"
        },
        "DeploymentId": {
          "Ref": "myapplatestDeployment712A79C0a9b2cb6134a1b5da087ff156630ebf56"
        },
        "StageName": "prod"
      },
      "Metadata": {
        "aws:cdk:path": "my-app-latest-stack/my-app-latest/DeploymentStage.prod/Resource"
      }
    },
    "myapplatestCloudWatchRole63754B84": {
      "Type": "AWS::IAM::Role",
      "Properties": {
        "AssumeRolePolicyDocument": {
          "Statement": [
            {
              "Action": "sts:AssumeRole",
              "Effect": "Allow",
              "Principal": {
                "Service": "apigateway.amazonaws.com"
              }
            }
          ],
          "Version": "2012-10-17"
        },
        "ManagedPolicyArns": [
          {
            "Fn::Join": [
              "",
              [
                "arn:",
                {
                  "Ref": "AWS::Partition"
                },
                ":iam::aws:policy/service-role/AmazonAPIGatewayPushToCloudWatchLogs"
              ]
            ]
          }
        ]
      },
      "Metadata": {
        "aws:cdk:path": "my-app-latest-stack/my-app-latest/CloudWatchRole/Resource"
      }
    },
    "myapplatestAccountAE24CBC7": {
      "Type": "AWS::ApiGateway::Account",
      "Properties": {
        "CloudWatchRoleArn": {
          "Fn::GetAtt": [
            "myapplatestCloudWatchRole63754B84",
            "Arn"
          ]
        }
      },
      "DependsOn": [
        "myapplatestF03E4651"
      ],
      "Metadata": {
        "aws:cdk:path": "my-app-latest-stack/my-app-latest/Account"
      }
    },
    "myapplatestmessages9B8F2089": {
      "Type": "AWS::ApiGateway::Resource",
      "Properties": {
        "ParentId": {
          "Fn::GetAtt": [
            "myapplatestF03E4651",
            "RootResourceId"
          ]
        },
        "PathPart": "messages",
        "RestApiId": {
          "Ref": "myapplatestF03E4651"
        }
      },
      "Metadata": {
        "aws:cdk:path": "my-app-latest-stack/my-app-latest/Default/messages/Resource"
      }
    },
    "myapplatestmessagesid60457E98": {
      "Type": "AWS::ApiGateway::Resource",
      "Properties": {
        "ParentId": {
          "Ref": "myapplatestmessages9B8F2089"
        },
        "PathPart": "{id}",
        "RestApiId": {
          "Ref": "myapplatestF03E4651"
        }
      },
      "Metadata": {
        "aws:cdk:path": "my-app-latest-stack/my-app-latest/Default/messages/{id}/Resource"
      }
    },
    "myapplatestmessagesidGETApiPermissionmyapplateststackmyapplatest0D79FFD9GETmessagesid5F9320DC": {
      "Type": "AWS::Lambda::Permission",
      "Properties": {
        "Action": "lambda:InvokeFunction",
        "FunctionName": {
          "Fn::GetAtt": [
            "getmessagehandlergetBB0C4C67",
            "Arn"
          ]
        },
        "Principal": "apigateway.amazonaws.com",
        "SourceArn": {
          "Fn::Join": [
            "",
            [
              "arn:",
              {
                "Ref": "AWS::Partition"
              },
              ":execute-api:eu-west-1:849961944173:",
              {
                "Ref": "myapplatestF03E4651"
              },
              "/",
              {
                "Ref": "myapplatestDeploymentStageprod4F9184B5"
              },
              "/GET/messages/{id}"
            ]
          ]
        }
      },
      "Metadata": {
        "aws:cdk:path": "my-app-latest-stack/my-app-latest/Default/messages/{id}/GET/ApiPermission.myapplateststackmyapplatest0D79FFD9.GET..messages.{id}"
      }
    },
    "myapplatestmessagesidGETApiPermissionTestmyapplateststackmyapplatest0D79FFD9GETmessagesid7A0AC2B8": {
      "Type": "AWS::Lambda::Permission",
      "Properties": {
        "Action": "lambda:InvokeFunction",
        "FunctionName": {
          "Fn::GetAtt": [
            "getmessagehandlergetBB0C4C67",
            "Arn"
          ]
        },
        "Principal": "apigateway.amazonaws.com",
        "SourceArn": {
          "Fn::Join": [
            "",
            [
              "arn:",
              {
                "Ref": "AWS::Partition"
              },
              ":execute-api:eu-west-1:849961944173:",
              {
                "Ref": "myapplatestF03E4651"
              },
              "/test-invoke-stage/GET/messages/{id}"
            ]
          ]
        }
      },
      "Metadata": {
        "aws:cdk:path": "my-app-latest-stack/my-app-latest/Default/messages/{id}/GET/ApiPermission.Test.myapplateststackmyapplatest0D79FFD9.GET..messages.{id}"
      }
    },
    "myapplatestmessagesidGETB17E3F00": {
      "Type": "AWS::ApiGateway::Method",
      "Properties": {
        "HttpMethod": "GET",
        "ResourceId": {
          "Ref": "myapplatestmessagesid60457E98"
        },
        "RestApiId": {
          "Ref": "myapplatestF03E4651"
        },
        "AuthorizationType": "NONE",
        "Integration": {
          "IntegrationHttpMethod": "POST",
          "Type": "AWS_PROXY",
          "Uri": {
            "Fn::Join": [
              "",
              [
                "arn:",
                {
                  "Ref": "AWS::Partition"
                },
                ":apigateway:eu-west-1:lambda:path/2015-03-31/functions/",
                {
                  "Fn::GetAtt": [
                    "getmessagehandlergetBB0C4C67",
                    "Arn"
                  ]
                },
                "/invocations"
              ]
            ]
          }
        }
      },
      "Metadata": {
        "aws:cdk:path": "my-app-latest-stack/my-app-latest/Default/messages/{id}/GET/Resource"
      }
    },
    "getmessagehandlergetServiceRoleDC13F171": {
      "Type": "AWS::IAM::Role",
      "Properties": {
        "AssumeRolePolicyDocument": {
          "Statement": [
            {
              "Action": "sts:AssumeRole",
              "Effect": "Allow",
              "Principal": {
                "Service": "lambda.amazonaws.com"
              }
            }
          ],
          "Version": "2012-10-17"
        },
        "ManagedPolicyArns": [
          {
            "Fn::Join": [
              "",
              [
                "arn:",
                {
                  "Ref": "AWS::Partition"
                },
                ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole"
              ]
            ]
          }
        ]
      },
      "Metadata": {
        "aws:cdk:path": "my-app-latest-stack/get-message-handler-get/ServiceRole/Resource"
      }
    },
    "getmessagehandlergetBB0C4C67": {
      "Type": "AWS::Lambda::Function",
      "Properties": {
        "Code": {
          "S3Bucket": {
            "Ref": "AssetParametersf24c61952c2ce88939aaaf322a592455aa3f829be9915efeafd1c0f1603ec979S3BucketF68D880E"
          },
          "S3Key": {
            "Fn::Join": [
              "",
              [
                {
                  "Fn::Select": [
                    0,
                    {
                      "Fn::Split": [
                        "||",
                        {
                          "Ref": "AssetParametersf24c61952c2ce88939aaaf322a592455aa3f829be9915efeafd1c0f1603ec979S3VersionKeyDC12B461"
                        }
                      ]
                    }
                  ]
                },
                {
                  "Fn::Select": [
                    1,
                    {
                      "Fn::Split": [
                        "||",
                        {
                          "Ref": "AssetParametersf24c61952c2ce88939aaaf322a592455aa3f829be9915efeafd1c0f1603ec979S3VersionKeyDC12B461"
                        }
                      ]
                    }
                  ]
                }
              ]
            ]
          }
        },
        "Handler": "index.handler",
        "Role": {
          "Fn::GetAtt": [
            "getmessagehandlergetServiceRoleDC13F171",
            "Arn"
          ]
        },
        "Runtime": "nodejs12.x"
      },
      "DependsOn": [
        "getmessagehandlergetServiceRoleDC13F171"
      ],
      "Metadata": {
        "aws:cdk:path": "my-app-latest-stack/get-message-handler-get/Resource",
        "aws:asset:path": "asset.f24c61952c2ce88939aaaf322a592455aa3f829be9915efeafd1c0f1603ec979",
        "aws:asset:property": "Code"
      }
    }
  },
  "Outputs": {
    "myapplatestEndpointC820E2E3": {
      "Value": {
        "Fn::Join": [
          "",
          [
            "https://",
            {
              "Ref": "myapplatestF03E4651"
            },
            ".execute-api.eu-west-1.",
            {
              "Ref": "AWS::URLSuffix"
            },
            "/",
            {
              "Ref": "myapplatestDeploymentStageprod4F9184B5"
            },
            "/"
          ]
        ]
      }
    }
  },
  "Parameters": {
    "AssetParametersf24c61952c2ce88939aaaf322a592455aa3f829be9915efeafd1c0f1603ec979S3BucketF68D880E": {
      "Type": "String",
      "Description": "S3 bucket for asset \"f24c61952c2ce88939aaaf322a592455aa3f829be9915efeafd1c0f1603ec979\""
    },
    "AssetParametersf24c61952c2ce88939aaaf322a592455aa3f829be9915efeafd1c0f1603ec979S3VersionKeyDC12B461": {
      "Type": "String",
      "Description": "S3 key for asset version \"f24c61952c2ce88939aaaf322a592455aa3f829be9915efeafd1c0f1603ec979\""
    },
    "AssetParametersf24c61952c2ce88939aaaf322a592455aa3f829be9915efeafd1c0f1603ec979ArtifactHashA25E3E1E": {
      "Type": "String",
      "Description": "Artifact hash for asset \"f24c61952c2ce88939aaaf322a592455aa3f829be9915efeafd1c0f1603ec979\""
    }
  }
}