new Cloudformation(event, context, cb)
Provides a simple interface for working with Custom Cloudformation Resource events.
Parameters:
Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
event |
object | The event being received from AWS Lambda. The content of this object is
determined greatly by the resource it is being invoked against.
See here
Properties
|
||||||||||||||||||||||||||||||||||||||||||||||||||
context |
object | The context of the event being received See here | ||||||||||||||||||||||||||||||||||||||||||||||||||
cb |
lambdaCallback | The callback function passed through from Lambda |
- Source:
- Tutorials:
- See:
Extends
Members
cb :function
The response object allowing any extending class
to respond to Cloudformation.
Type:
- function
- Inherited From:
- Source:
context :Object
The raw context object received by Lambda
Type:
- Object
- Inherited From:
- Source:
event :Object
The raw event received by Lambda
Type:
- Object
- Inherited From:
- Source:
id :null|String
Returns the PhysicalResourceId that is associated with the custom
resource that this lambda function controls. For Create requests, this
will return null.
Type:
- null | String
- Source:
properties :Object
Returns the properties for the custom Cloudformation request without
the accompanying ServiceToken.
Type:
- Object
- Source:
type :String
Return the type of request. Typically this will member will return "create",
"update" or "delete". This member is used to determine which action the
lambda function should perform.
Type:
- String
- Source:
- See:
Methods
perform()
Executes the action determined by the request type that
Cloudformation has invoked this function with.
- Source: