MCPcopy Create free account
hub / github.com/serverless/examples / Meta

Class Meta

aws-python-http-api-with-pynamodb/todos/todo_model.py:9–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7
8class TodoModel(Model):
9 class Meta:
10 table_name = os.environ['DYNAMODB_TABLE']
11 if 'ENV' in os.environ:
12 host = 'http://localhost:8000'
13 else:
14 region = 'us-east-1'
15 host = 'https://dynamodb.us-east-1.amazonaws.com'
16
17 todo_id = UnicodeAttribute(hash_key=True, null=False)
18 text = UnicodeAttribute(null=False)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected