Skip to content

Commit 3e173da

Browse files
authored
Chore: another scan of replacing generated properties by GeneratedProperty() (#2937)
1 parent 42a2acf commit 3e173da

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

samtranslator/model/stepfunctions/resources.py

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,22 @@
11
from typing import Any, Dict, List, Optional
22

3-
from samtranslator.model import PropertyType, Resource
3+
from samtranslator.model import GeneratedProperty, Resource
44
from samtranslator.model.intrinsics import fnGetAtt, ref
5-
from samtranslator.model.types import IS_DICT, IS_STR, list_of
65

76

87
class StepFunctionsStateMachine(Resource):
98
resource_type = "AWS::StepFunctions::StateMachine"
109
property_types = {
11-
"Definition": PropertyType(False, IS_DICT),
12-
"DefinitionString": PropertyType(False, IS_STR),
13-
"DefinitionS3Location": PropertyType(False, IS_DICT),
14-
"LoggingConfiguration": PropertyType(False, IS_DICT),
15-
"RoleArn": PropertyType(True, IS_STR),
16-
"StateMachineName": PropertyType(False, IS_STR),
17-
"StateMachineType": PropertyType(False, IS_STR),
18-
"Tags": PropertyType(False, list_of(IS_DICT)),
19-
"DefinitionSubstitutions": PropertyType(False, IS_DICT),
20-
"TracingConfiguration": PropertyType(False, IS_DICT),
10+
"Definition": GeneratedProperty(),
11+
"DefinitionString": GeneratedProperty(),
12+
"DefinitionS3Location": GeneratedProperty(),
13+
"LoggingConfiguration": GeneratedProperty(),
14+
"RoleArn": GeneratedProperty(),
15+
"StateMachineName": GeneratedProperty(),
16+
"StateMachineType": GeneratedProperty(),
17+
"Tags": GeneratedProperty(),
18+
"DefinitionSubstitutions": GeneratedProperty(),
19+
"TracingConfiguration": GeneratedProperty(),
2120
}
2221

2322
Definition: Optional[Dict[str, Any]]

0 commit comments

Comments
 (0)