Skip to content

Commit d90a4d3

Browse files
author
AWS
committed
AWS Step Functions Update: This release adds support for static analysis to ValidateStateMachineDefinition API, which can now return optional WARNING diagnostics for semantic errors on the definition of an Amazon States Language (ASL) state machine.
1 parent b45c40f commit d90a4d3

File tree

2 files changed

+31
-1
lines changed

2 files changed

+31
-1
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "AWS Step Functions",
4+
"contributor": "",
5+
"description": "This release adds support for static analysis to ValidateStateMachineDefinition API, which can now return optional WARNING diagnostics for semantic errors on the definition of an Amazon States Language (ASL) state machine."
6+
}

services/sfn/src/main/resources/codegen-resources/service-2.json

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3964,10 +3964,23 @@
39643964
"type":{
39653965
"shape":"StateMachineType",
39663966
"documentation":"<p>The target type of state machine for this definition. The default is <code>STANDARD</code>.</p>"
3967+
},
3968+
"severity":{
3969+
"shape":"ValidateStateMachineDefinitionSeverity",
3970+
"documentation":"<p>Minimum level of diagnostics to return. <code>ERROR</code> returns only <code>ERROR</code> diagnostics, whereas <code>WARNING</code> returns both <code>WARNING</code> and <code>ERROR</code> diagnostics. The default is <code>ERROR</code>. </p>"
3971+
},
3972+
"maxResults":{
3973+
"shape":"ValidateStateMachineDefinitionMaxResult",
3974+
"documentation":"<p>The maximum number of diagnostics that are returned per call. The default and maximum value is 100. Setting the value to 0 will also use the default of 100.</p> <p>If the number of diagnostics returned in the response exceeds <code>maxResults</code>, the value of the <code>truncated</code> field in the response will be set to <code>true</code>.</p>"
39673975
}
39683976
}
39693977
},
39703978
"ValidateStateMachineDefinitionLocation":{"type":"string"},
3979+
"ValidateStateMachineDefinitionMaxResult":{
3980+
"type":"integer",
3981+
"max":100,
3982+
"min":0
3983+
},
39713984
"ValidateStateMachineDefinitionMessage":{"type":"string"},
39723985
"ValidateStateMachineDefinitionOutput":{
39733986
"type":"structure",
@@ -3983,6 +3996,10 @@
39833996
"diagnostics":{
39843997
"shape":"ValidateStateMachineDefinitionDiagnosticList",
39853998
"documentation":"<p>If the result is <code>OK</code>, this field will be empty. When there are errors, this field will contain an array of <b>Diagnostic</b> objects to help you troubleshoot.</p>"
3999+
},
4000+
"truncated":{
4001+
"shape":"ValidateStateMachineDefinitionTruncated",
4002+
"documentation":"<p>The result value will be <code>true</code> if the number of diagnostics found in the workflow definition exceeds <code>maxResults</code>. When all diagnostics results are returned, the value will be <code>false</code>.</p>"
39864003
}
39874004
}
39884005
},
@@ -3995,7 +4012,14 @@
39954012
},
39964013
"ValidateStateMachineDefinitionSeverity":{
39974014
"type":"string",
3998-
"enum":["ERROR"]
4015+
"enum":[
4016+
"ERROR",
4017+
"WARNING"
4018+
]
4019+
},
4020+
"ValidateStateMachineDefinitionTruncated":{
4021+
"type":"boolean",
4022+
"box":true
39994023
},
40004024
"ValidationException":{
40014025
"type":"structure",

0 commit comments

Comments
 (0)