Ejemplo n.º 1
0
 def __init__(self, credential, app_id, boto3_session=None):
     super(AWSResource, self).__init__(credential, app_id)
     if boto3_session:
         self.boto3_session = boto3_session
     elif credential:
         self.boto3_session = get_boto3_session(credential)
     self.dynamo = DynamoDB(self.boto3_session)
     self.s3 = S3(self.boto3_session)
Ejemplo n.º 2
0
 def __init__(self, credential, app_id):
     super(AWSResourceAllocator, self).__init__(credential, app_id)
     self.boto3_session = get_boto3_session(credential)