-
Notifications
You must be signed in to change notification settings - Fork 879
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Amazon Lex Model Building V2 Update: Add waiters that automatically p…
…oll for resource status for asynchronous operations, such as building a bot
- Loading branch information
AWS
committed
Jul 27, 2021
1 parent
f0cb56d
commit 4472b28
Showing
2 changed files
with
261 additions
and
0 deletions.
There are no files selected for viewing
6 changes: 6 additions & 0 deletions
6
.changes/next-release/feature-AmazonLexModelBuildingV2-77f6e9c.json
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,6 @@ | ||
{ | ||
"type": "feature", | ||
"category": "Amazon Lex Model Building V2", | ||
"contributor": "", | ||
"description": "Add waiters that automatically poll for resource status for asynchronous operations, such as building a bot" | ||
} |
255 changes: 255 additions & 0 deletions
255
services/lexmodelsv2/src/main/resources/codegen-resources/waiters-2.json
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,255 @@ | ||
{ | ||
"version":2, | ||
"waiters":{ | ||
"BotAvailable":{ | ||
"delay":10, | ||
"operation":"DescribeBot", | ||
"maxAttempts":35, | ||
"description":"Wait until a bot is available", | ||
"acceptors":[ | ||
{ | ||
"expected":"Available", | ||
"matcher":"path", | ||
"state":"success", | ||
"argument":"botStatus" | ||
}, | ||
{ | ||
"expected":"Deleting", | ||
"matcher":"path", | ||
"state":"failure", | ||
"argument":"botStatus" | ||
}, | ||
{ | ||
"expected":"Failed", | ||
"matcher":"path", | ||
"state":"failure", | ||
"argument":"botStatus" | ||
}, | ||
{ | ||
"expected":"Inactive", | ||
"matcher":"path", | ||
"state":"failure", | ||
"argument":"botStatus" | ||
} | ||
] | ||
}, | ||
"BotAliasAvailable":{ | ||
"delay":10, | ||
"operation":"DescribeBotAlias", | ||
"maxAttempts":35, | ||
"description":"Wait until a bot alias is available", | ||
"acceptors":[ | ||
{ | ||
"expected":"Available", | ||
"matcher":"path", | ||
"state":"success", | ||
"argument":"botAliasStatus" | ||
}, | ||
{ | ||
"expected":"Failed", | ||
"matcher":"path", | ||
"state":"failure", | ||
"argument":"botAliasStatus" | ||
}, | ||
{ | ||
"expected":"Deleting", | ||
"matcher":"path", | ||
"state":"failure", | ||
"argument":"botAliasStatus" | ||
} | ||
] | ||
}, | ||
"BotExportCompleted":{ | ||
"delay":10, | ||
"operation":"DescribeExport", | ||
"maxAttempts":35, | ||
"description":"Wait until a bot has been exported", | ||
"acceptors":[ | ||
{ | ||
"expected":"Completed", | ||
"matcher":"path", | ||
"state":"success", | ||
"argument":"exportStatus" | ||
}, | ||
{ | ||
"expected":"Deleting", | ||
"matcher":"path", | ||
"state":"failure", | ||
"argument":"exportStatus" | ||
}, | ||
{ | ||
"expected":"Failed", | ||
"matcher":"path", | ||
"state":"failure", | ||
"argument":"exportStatus" | ||
} | ||
] | ||
}, | ||
"BotImportCompleted":{ | ||
"delay":10, | ||
"operation":"DescribeImport", | ||
"maxAttempts":35, | ||
"description":"Wait until a bot has been imported", | ||
"acceptors":[ | ||
{ | ||
"expected":"Completed", | ||
"matcher":"path", | ||
"state":"success", | ||
"argument":"importStatus" | ||
}, | ||
{ | ||
"expected":"Deleting", | ||
"matcher":"path", | ||
"state":"failure", | ||
"argument":"importStatus" | ||
}, | ||
{ | ||
"expected":"Failed", | ||
"matcher":"path", | ||
"state":"failure", | ||
"argument":"importStatus" | ||
} | ||
] | ||
}, | ||
"BotLocaleBuilt":{ | ||
"delay":10, | ||
"operation":"DescribeBotLocale", | ||
"maxAttempts":35, | ||
"description":"Wait until a bot locale is built", | ||
"acceptors":[ | ||
{ | ||
"expected":"Built", | ||
"matcher":"path", | ||
"state":"success", | ||
"argument":"botLocaleStatus" | ||
}, | ||
{ | ||
"expected":"Deleting", | ||
"matcher":"path", | ||
"state":"failure", | ||
"argument":"botLocaleStatus" | ||
}, | ||
{ | ||
"expected":"Failed", | ||
"matcher":"path", | ||
"state":"failure", | ||
"argument":"botLocaleStatus" | ||
}, | ||
{ | ||
"expected":"NotBuilt", | ||
"matcher":"path", | ||
"state":"failure", | ||
"argument":"botLocaleStatus" | ||
} | ||
] | ||
}, | ||
"BotLocaleExpressTestingAvailable":{ | ||
"delay":10, | ||
"operation":"DescribeBotLocale", | ||
"maxAttempts":35, | ||
"description":"Wait until a bot locale build is ready for express testing", | ||
"acceptors":[ | ||
{ | ||
"expected":"Built", | ||
"matcher":"path", | ||
"state":"success", | ||
"argument":"botLocaleStatus" | ||
}, | ||
{ | ||
"expected":"ReadyExpressTesting", | ||
"matcher":"path", | ||
"state":"success", | ||
"argument":"botLocaleStatus" | ||
}, | ||
{ | ||
"expected":"Deleting", | ||
"matcher":"path", | ||
"state":"failure", | ||
"argument":"botLocaleStatus" | ||
}, | ||
{ | ||
"expected":"Failed", | ||
"matcher":"path", | ||
"state":"failure", | ||
"argument":"botLocaleStatus" | ||
}, | ||
{ | ||
"expected":"NotBuilt", | ||
"matcher":"path", | ||
"state":"failure", | ||
"argument":"botLocaleStatus" | ||
} | ||
] | ||
}, | ||
"BotVersionAvailable":{ | ||
"delay":10, | ||
"operation":"DescribeBotVersion", | ||
"maxAttempts":35, | ||
"description":"Wait until a bot version is available", | ||
"acceptors":[ | ||
{ | ||
"expected":"Available", | ||
"matcher":"path", | ||
"state":"success", | ||
"argument":"botStatus" | ||
}, | ||
{ | ||
"expected":"Deleting", | ||
"matcher":"path", | ||
"state":"failure", | ||
"argument":"botStatus" | ||
}, | ||
{ | ||
"expected":"Failed", | ||
"matcher":"path", | ||
"state":"failure", | ||
"argument":"botStatus" | ||
}, | ||
{ | ||
"state":"retry", | ||
"matcher":"status", | ||
"expected":404 | ||
} | ||
] | ||
}, | ||
"BotLocaleCreated":{ | ||
"delay":10, | ||
"operation":"DescribeBotLocale", | ||
"maxAttempts":35, | ||
"description":"Wait unit a bot locale is created", | ||
"acceptors":[ | ||
{ | ||
"expected":"Built", | ||
"matcher":"path", | ||
"state":"success", | ||
"argument":"botLocaleStatus" | ||
}, | ||
{ | ||
"expected":"ReadyExpressTesting", | ||
"matcher":"path", | ||
"state":"success", | ||
"argument":"botLocaleStatus" | ||
}, | ||
{ | ||
"expected":"NotBuilt", | ||
"matcher":"path", | ||
"state":"success", | ||
"argument":"botLocaleStatus" | ||
}, | ||
{ | ||
"expected":"Deleting", | ||
"matcher":"path", | ||
"state":"failure", | ||
"argument":"botLocaleStatus" | ||
}, | ||
{ | ||
"expected":"Failed", | ||
"matcher":"path", | ||
"state":"failure", | ||
"argument":"botLocaleStatus" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
|