in example_app/graviton2_gh_runner_flask_app/dynamodb/context_manager.py [0:0]
def __init__(self, app=None):
"""."""
self.app = app
self._connection = None
self._table = None
if app is not None:
self.init_app(app)
self._connection = boto3.resource(
"dynamodb", **app.config.get("DYNAMODB_KWARGS")
)
self._table = self._connection.Table(
app.config.get("DYNAMODB_TABLE"),
)