File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,15 @@ def billing_mode_validator(x):
3737 return x
3838
3939
40+ def table_class_validator (x ):
41+ valid_table_classes = ["STANDARD" , "STANDARD_INFREQUENT_ACCESS" ]
42+ if x not in valid_table_classes :
43+ raise ValueError (
44+ "Table class must be one of: %s" % ", " .join (valid_table_classes )
45+ )
46+ return x
47+
48+
4049class AttributeDefinition (AWSProperty ):
4150 props = {
4251 "AttributeName" : (str , True ),
@@ -219,6 +228,7 @@ class Table(AWSObject):
219228 "SSESpecification" : (SSESpecification , False ),
220229 "StreamSpecification" : (StreamSpecification , False ),
221230 "TableName" : (str , False ),
231+ "TableClass" : (table_class_validator , False ),
222232 "Tags" : (Tags , False ),
223233 "TimeToLiveSpecification" : (TimeToLiveSpecification , False ),
224234 }
You can’t perform that action at this time.
0 commit comments