Exports an async function that tears down the Cloudwatch Event Rule
(require("destroyCloudwatchEvent"))(region, name)
Exports destroyCloudwatchEvent
Parameters:
| Name | Type | Description | 
|---|---|---|
| region | String | This is the region of where this AWS service is deployed. | 
| name | String | This is the name of the CloudwatchEvent rule | 
Methods
(async, inner) destroyCloudwatchEvent(cloudwatchEvent, eventName)
Tears down the Cloudwatch Event Rule
Parameters:
| Name | Type | Description | 
|---|---|---|
| cloudwatchEvent | CloudWatchEventsClient | This is the CloudwatchEvent client | 
| eventName | String | This is the CloudwatchEvent Rule name | 
Throws:
Will throw an error if CloudwatchEvent client fails to execute its command
(async, inner) destroyCloudwatchTarget(cloudwatchEvent, name)
Removes the Cloudwatch Target from the Cloudwatch Event Rule
Parameters:
| Name | Type | Description | 
|---|---|---|
| cloudwatchEvent | CloudWatchEventsClient | This is the CloudwatchEvent client | 
| name | String | This is the CloudwatchEvent rule target name | 
Throws:
Will throw an error if CloudwatchEvent client fails to execute its command