<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <TargetFramework>netcoreapp3.1</TargetFramework>
    <GenerateRuntimeConfigurationFiles>true</GenerateRuntimeConfigurationFiles>
    <AWSProjectType>Lambda</AWSProjectType>
  </PropertyGroup>
  <ItemGroup>
    <PackageReference Include="Amazon.Lambda.Core" Version="1.1.0" />
    <PackageReference Include="Amazon.Lambda.Serialization.Json" Version="1.7.0" />
    <% switch(props.triggerEventSourceMappings[0].functionTemplateType) {
         case 'dynamoDB':%>
    <PackageReference Include="AWSSDK.DynamoDBv2" Version="3.3.101.80" />
    <PackageReference Include="Amazon.Lambda.DynamoDBEvents" Version="1.1.0" />
    <%     break;
         case 'kinesis':%>
    <PackageReference Include="Amazon.Lambda.KinesisEvents" Version="1.1.0" />
    <%     break;
         default:
           console.log(`Unknown template type '${props.triggerEventSourceMappings[0].functionTemplateType}'`);
           break;
        } %>
  </ItemGroup>
</Project>