def __init__(self, ctx_node, resource_id=None, client=None, logger=None): if not client: aws_config = ctx_node.properties.get(AWS_CONFIG_PROPERTY, dict()) check_region_name(aws_config['region_name']) AWSResourceBase.__init__( self, client or Boto3Connection(ctx_node).client('ec2'), resource_id=resource_id, logger=logger)
def __init__(self, ctx_node, resource_id=None, client=None, logger=None): if not client: aws_config = ctx_node.properties.get(AWS_CONFIG_PROPERTY, dict()) check_region_name(aws_config['region_name']) AWSResourceBase.__init__(self, client or Boto3Connection(ctx_node).client('ec2'), resource_id=resource_id, logger=logger)
def __init__(self, ctx_node, aws_config=None, resource_id=None, client=None, logger=None): AWSResourceBase.__init__( self, client or Boto3Connection(ctx_node, aws_config).client('s3'), resource_id=resource_id, logger=logger)
def __init__(self, ctx_node, resource_id=None, client=None, logger=None): AWSResourceBase.__init__( self, client or Boto3Connection(ctx_node).client('route53'), resource_id=resource_id, logger=logger)
def __init__(self, ctx_node, resource_id=None, client=None, logger=None): AWSResourceBase.__init__( self, client or Boto3Connection(ctx_node).client('dynamodb'), resource_id=resource_id, logger=logger)
def setUp(self): super(TestAWSResourceBase, self).setUp() self.base = AWSResourceBase("ctx_node", resource_id=True, logger=None)