forked from aws/serverless-application-model
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Add the property UseAliasAsEventTarget to AWS::Serverless::State…
…Machine and make associated events use the state machine alias as a target. (aws#3627)
- Loading branch information
Showing
12 changed files
with
1,388 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
tests/translator/input/state_machine_with_events_and_alias.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
Transform: AWS::Serverless-2016-10-31 | ||
Resources: | ||
MyStateMachine: | ||
Type: AWS::Serverless::StateMachine | ||
Properties: | ||
Type: STANDARD | ||
Definition: | ||
StartAt: HelloWorld | ||
States: | ||
HelloWorld: | ||
Type: Pass | ||
Result: 1 | ||
End: true | ||
Role: !Sub "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/doesNotExist" | ||
AutoPublishAlias: test | ||
UseAliasAsEventTarget: true | ||
Events: | ||
CWEvent: | ||
Type: CloudWatchEvent | ||
Properties: | ||
Pattern: | ||
detail: | ||
state: | ||
- terminated | ||
EBEvent: | ||
Type: EventBridgeRule | ||
Properties: | ||
Pattern: | ||
source: [aws.tag] | ||
ApiEvent: | ||
Type: Api | ||
Properties: | ||
Path: /path | ||
Method: get | ||
CWSchedule: | ||
Type: Schedule | ||
Properties: | ||
Schedule: rate(1 minute) | ||
Name: TestSchedule | ||
Description: test schedule | ||
Enabled: false | ||
ScheduleEvent: | ||
Type: ScheduleV2 | ||
Properties: | ||
ScheduleExpression: rate(1 minute) |
Oops, something went wrong.