@types/aws-lambda
Advanced tools
Comparing version 0.0.13 to 0.0.14
@@ -171,2 +171,60 @@ // Type definitions for AWS Lambda | ||
/** | ||
* CloudFormation Custom Resource event and response | ||
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/crpg-ref.html | ||
*/ | ||
type CloudFormationCustomResourceEventCommon = { | ||
ServiceToken: string; | ||
ResponseURL: string; | ||
StackId: string; | ||
RequestId: string; | ||
LogicalResourceId: string; | ||
ResourceType: string; | ||
ResourceProperties: { | ||
ServiceToken: string; | ||
[Key: string]: any; | ||
} | ||
} | ||
type CloudFormationCustomResourceCreateEvent = CloudFormationCustomResourceEventCommon & { | ||
RequestType: "Create"; | ||
} | ||
type CloudFormationCustomResourceUpdateEvent = CloudFormationCustomResourceEventCommon & { | ||
RequestType: "Update"; | ||
PhysicalResourceId: string; | ||
OldResourceProperties: { | ||
[Key: string]: any; | ||
}; | ||
} | ||
type CloudFormationCustomResourceDeleteEvent = CloudFormationCustomResourceEventCommon & { | ||
RequestType: "Delete"; | ||
PhysicalResourceId: string; | ||
} | ||
export type CloudFormationCustomResourceEvent = CloudFormationCustomResourceCreateEvent | CloudFormationCustomResourceUpdateEvent | CloudFormationCustomResourceDeleteEvent; | ||
type CloudFormationCustomResourceResponseCommon = { | ||
PhysicalResourceId: string; | ||
StackId: string; | ||
RequestId: string; | ||
LogicalResourceId: string; | ||
Data?: { | ||
[Key: string]: any; | ||
} | ||
} | ||
type CloudFormationCustomResourceSuccessResponse = CloudFormationCustomResourceResponseCommon & { | ||
Status: "SUCCESS"; | ||
Reason?: string; | ||
} | ||
type CloudFormationCustomResourceFailedResponse = CloudFormationCustomResourceResponseCommon & { | ||
Status: "FAILED"; | ||
Reason: string; | ||
} | ||
export type CloudFormationCustomResourceResponse = CloudFormationCustomResourceSuccessResponse | CloudFormationCustomResourceFailedResponse; | ||
// Context | ||
@@ -173,0 +231,0 @@ // http://docs.aws.amazon.com/lambda/latest/dg/nodejs-prog-model-context.html |
{ | ||
"name": "@types/aws-lambda", | ||
"version": "0.0.13", | ||
"version": "0.0.14", | ||
"description": "TypeScript definitions for AWS Lambda", | ||
@@ -40,4 +40,4 @@ "license": "MIT", | ||
"peerDependencies": {}, | ||
"typesPublisherContentHash": "f4bad05340e65922991e6e9beb7337f7180ad170829186e3b345fe88a5755846", | ||
"typesPublisherContentHash": "5011539e4e6d0468e5f64e0cec98401f9838a74c44eb9416a735771d31534254", | ||
"typeScriptVersion": "2.0" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Fri, 16 Jun 2017 16:37:50 GMT | ||
* Last updated: Fri, 23 Jun 2017 14:03:03 GMT | ||
* Dependencies: none | ||
@@ -14,0 +14,0 @@ * Global values: AWSLambda |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14736
321