mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
13 lines
390 B
TypeScript
13 lines
390 B
TypeScript
import * as cfn from "cfn-response";
|
|
import { CloudFormationCustomResourceEvent, Context } from "aws-lambda";
|
|
|
|
declare const event: CloudFormationCustomResourceEvent;
|
|
declare const context: Context;
|
|
|
|
// $ExpectType void
|
|
cfn.send(event, context, cfn.SUCCESS, { sample: 123 }, "abc");
|
|
// $ExpectType void
|
|
cfn.send(event, context, "SUCCESS");
|
|
// $ExpectError
|
|
cfn.send(event, context, "", {});
|