Add-SAMCloudWatchEventEventSource
Add-SAMCloudWatchEventEventSource
SYNOPSIS
Adds a CloudWatchEvent Event Source to a Serverless Application Model resource
SYNTAX
Add-SAMCloudWatchEventEventSource [-LogicalId] <String> -Pattern <Object> [-JSONInput <String>]
[-InputPath <String>] [<CommonParameters>]
DESCRIPTION
The object describing an event source with type CloudWatchEvent.
PARAMETERS
-LogicalId
The logical ID must be alphanumeric (A-Za-z0-9) and unique within the template. Use the logical name to reference the resource in other parts of the template.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Pattern
Required. Pattern describing which CloudWatch events trigger the function. Only matching events trigger the function.
http://docs.aws.amazon.com/AmazonCloudWatch/latest/events/CloudWatchEventsandEventPatterns.html
Type: Object
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-JSONInput
JSON-formatted string to pass to the function as the event body.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-InputPath
JSONPath describing the part of the event to pass to the function.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.