Resources: httpapiexampleFD2D0249: Type: AWS::ApiGatewayV2::Api Properties: Description: HTTP API example Name: http-api-example ProtocolType: HTTP Metadata: aws:cdk:path: Stack/http-api-example/Resource httpapiexampleDefaultStage14832C93: Type: AWS::ApiGatewayV2::Stage Properties: ApiId: Ref: httpapiexampleFD2D0249 StageName: $default AutoDeploy: true Metadata: aws:cdk:path: Stack/http-api-example/DefaultStage/Resource httpapiexampleGETgetinfoStackhttpapiexampleGETgetinfo9D576FF3Permission613F1EE6: Type: AWS::Lambda::Permission Properties: Action: lambda:InvokeFunction FunctionName: Fn::GetAtt: - lambdaFuncD745B556 - Arn Principal: apigateway.amazonaws.com SourceArn: Fn::Join: - "" - - "arn:" - Ref: AWS::Partition - ":execute-api:" - Ref: AWS::Region - ":" - Ref: AWS::AccountId - ":" - Ref: httpapiexampleFD2D0249 - /*/*/get-info Metadata: aws:cdk:path: Stack/http-api-example/GET--get-info/StackhttpapiexampleGETgetinfo9D576FF3-Permission httpapiexampleGETgetinfoHttpIntegration3397763c00359f469da8da147acb537cF484AF2C: Type: AWS::ApiGatewayV2::Integration Properties: ApiId: Ref: httpapiexampleFD2D0249 IntegrationType: AWS_PROXY IntegrationUri: Fn::GetAtt: - lambdaFuncD745B556 - Arn PayloadFormatVersion: "2.0" Metadata: aws:cdk:path: Stack/http-api-example/GET--get-info/HttpIntegration-3397763c00359f469da8da147acb537c/Resource httpapiexampleGETgetinfoEA931895: Type: AWS::ApiGatewayV2::Route Properties: ApiId: Ref: httpapiexampleFD2D0249 RouteKey: GET /get-info AuthorizationType: NONE Target: Fn::Join: - "" - - integrations/ - Ref: httpapiexampleGETgetinfoHttpIntegration3397763c00359f469da8da147acb537cF484AF2C Metadata: aws:cdk:path: Stack/http-api-example/GET--get-info/Resource httpapiexampleANYanyandallStackhttpapiexampleANYanyandall6C96592EPermissionD23206E3: Type: AWS::Lambda::Permission Properties: Action: lambda:InvokeFunction FunctionName: Fn::GetAtt: - lambdaFuncD745B556 - Arn Principal: apigateway.amazonaws.com SourceArn: Fn::Join: - "" - - "arn:" - Ref: AWS::Partition - ":execute-api:" - Ref: AWS::Region - ":" - Ref: AWS::AccountId - ":" - Ref: httpapiexampleFD2D0249 - /*/*/anyandall Metadata: aws:cdk:path: Stack/http-api-example/ANY--anyandall/StackhttpapiexampleANYanyandall6C96592E-Permission httpapiexampleANYanyandallCDADF15B: Type: AWS::ApiGatewayV2::Route Properties: ApiId: Ref: httpapiexampleFD2D0249 RouteKey: ANY /anyandall AuthorizationType: NONE Target: Fn::Join: - "" - - integrations/ - Ref: httpapiexampleGETgetinfoHttpIntegration3397763c00359f469da8da147acb537cF484AF2C Metadata: aws:cdk:path: Stack/http-api-example/ANY--anyandall/Resource httpapiexampleGETproxypathproxyStackhttpapiexampleGETproxypathproxy63FEF7D0Permission108C0F5E: Type: AWS::Lambda::Permission Properties: Action: lambda:InvokeFunction FunctionName: Fn::GetAtt: - lambdaFuncD745B556 - Arn Principal: apigateway.amazonaws.com SourceArn: Fn::Join: - "" - - "arn:" - Ref: AWS::Partition - ":execute-api:" - Ref: AWS::Region - ":" - Ref: AWS::AccountId - ":" - Ref: httpapiexampleFD2D0249 - /*/*/proxypath/{proxy+} Metadata: aws:cdk:path: Stack/http-api-example/GET--proxypath--{proxy+}/StackhttpapiexampleGETproxypathproxy63FEF7D0-Permission httpapiexampleGETproxypathproxyD230A7B0: Type: AWS::ApiGatewayV2::Route Properties: ApiId: Ref: httpapiexampleFD2D0249 RouteKey: GET /proxypath/{proxy+} AuthorizationType: NONE Target: Fn::Join: - "" - - integrations/ - Ref: httpapiexampleGETgetinfoHttpIntegration3397763c00359f469da8da147acb537cF484AF2C Metadata: aws:cdk:path: Stack/http-api-example/GET--proxypath--{proxy+}/Resource lambdaFuncServiceRole1B4188C5: 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: Stack/lambdaFunc/ServiceRole/Resource lambdaFuncD745B556: Type: AWS::Lambda::Function Properties: Code: S3Bucket: Ref: AssetParameterscaca469dd0328d9655fcf1d6cb884705f3c3c064ed9cd338a85709ea93494992S3Bucket8B9BABCE S3Key: Fn::Join: - "" - - Fn::Select: - 0 - Fn::Split: - "||" - Ref: AssetParameterscaca469dd0328d9655fcf1d6cb884705f3c3c064ed9cd338a85709ea93494992S3VersionKeyA8E7BF96 - Fn::Select: - 1 - Fn::Split: - "||" - Ref: AssetParameterscaca469dd0328d9655fcf1d6cb884705f3c3c064ed9cd338a85709ea93494992S3VersionKeyA8E7BF96 Role: Fn::GetAtt: - lambdaFuncServiceRole1B4188C5 - Arn Handler: main.handler Runtime: python3.9 DependsOn: - lambdaFuncServiceRole1B4188C5 Metadata: aws:cdk:path: Stack/lambdaFunc/Resource aws:asset:path: ../ aws:asset:is-bundled: false aws:asset:property: Code CDKMetadata: Type: AWS::CDK::Metadata Properties: Analytics: v2:deflate64:H4sIAAAAAAAA/12QwU7DMBBEv4W7s20o4kxbqYIbCl+wOEvkJrYj77oVsvLveBP1wmnf2DMjr1toDy+wf3rDOze2H3fFxkRQvgTtaI7MJBUHFwZzjoElZSvm/BM+MaEnoaSiI445WVKurt6Ji2ExWllwdgMK3fH39gzlXWQ+zk6NOlRq/ZrcQI+6mGWjjyA0JNQ+tfyTq28xE/rvHqHosyh5x6z3lxzsw/jgxTj0ULo40ZafapwPDeqeDOu6VcMp25HkhEzLYkLsCa68u7Wv0O7rX13ZuSblIM4TdNv8A1t7RGlIAQAA Metadata: aws:cdk:path: Stack/CDKMetadata/Default Condition: CDKMetadataAvailable