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)
Exemplo n.º 2
0
    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)
Exemplo n.º 3
0
 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)
Exemplo n.º 5
0
 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 __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)