Beispiel #1
0
    def __init__(self, persistence_object=None, avro_schema_object=None):
        '''
        Private API. Unstable. Use it at your own risk.

        :param persistence_object: The implementation of a persistence_object;
            for example a dynamo table instance
        :param avro_schema_object: An Avro schema object that describes what's
            allowed in each RedshiftCluster
        :type avro_schema_object: Schema
        '''
        self._clusters = Records(persistence_object=persistence_object,
                                 avro_schema_object=avro_schema_object)
Beispiel #2
0
    def __init__(self, persistence_object=None, avro_schema_object=None):
        '''
        Private API. Unstable. Use it at your own risk.

        :param persistence_object: The implementation of a persistence_object;
            for example a dynamo table instance
        :param avro_schema_object: An Avro schema object that describes what's
            allowed in each ScheduledJob
        :type avro_schema_object: Schema
        '''
        self._records = Records(persistence_object=persistence_object,
                                avro_schema_object=avro_schema_object)
        self.username = os.getenv('LOGNAME')