@connection.setter<EOL><INDENT>def connection(self, connection):<DEDENT>
if connection is not None:<EOL><INDENT>connection.subscribe("<STR_LIT>", self._on_capacity_data)<EOL>connection.default_return_capacity = True<EOL><DEDENT>if self._connection is not None:<EOL><INDENT>connection.unsubscribe("<STR_LIT>", self._on_capacity_data)<EOL><DEDENT>self._connection = connection<EOL>self._cloudwatch_connection = None<EOL>self.cached_descriptions = {}<EOL>
Change the dynamo connection