Skip to content

Commit 8b315c3

Browse files
filipepmomarkpeek
authored andcommitted
1 parent 6a15e75 commit 8b315c3

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

troposphere/dynamodb.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
4049
class 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
}

0 commit comments

Comments
 (0)