import { AwsResource } from '../../cloudformation/resources/AwsResource';
/**
  The <code>AWS::Lambda::Function</code> resource creates a Lambda function. To create a function, you need a <a href="https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-package.html">deployment package</a> and an <a href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-intro-execution-role.html">execution role</a>. The deployment package is a .zip file archive or container image that contains your function code. The execution role grants the function permission to use AWS services, such as Amazon CloudWatch Logs for log streaming and AWS X-Ray for request tracing.
  For full documentation go to <a href="http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html">the AWS Docs</a>
*/
export function lambdaFunction(functionProps) {
    return new AwsResource('AWS::Lambda::Function', functionProps, { SnapStartResponse_OptimizationStatus: 'SnapStartResponse.OptimizationStatus', SnapStartResponse_ApplyOn: 'SnapStartResponse.ApplyOn', SnapStartResponse: 'SnapStartResponse', Arn: 'Arn' });
}
