def handle(domain): domain = domain["DomainName"] if re.match(filter, domain): details = es_client.describe_elasticsearch_domain(DomainName=domain) details = details["DomainStatus"] arn = details["ARN"] es = ElasticSearch(arn) es.endpoint = details.get("Endpoint", "n/a") result.append(es) pool[arn] = es
def handle(domain): domain = domain['DomainName'] if re.match(filter, domain): details = cmd_es('describe-elasticsearch-domain --domain-name %s' % domain, env) details = json.loads(details)['DomainStatus'] arn = details['ARN'] es = ElasticSearch(arn) es.endpoint = details['Endpoint'] result.append(es) pool[arn] = es
def handle(domain): domain = domain['DomainName'] if re.match(filter, domain): details = cmd_es('describe-elasticsearch-domain --domain-name %s' % domain, env) details = json.loads(details)['DomainStatus'] arn = details['ARN'] es = ElasticSearch(arn) es.endpoint = details.get('Endpoint', 'n/a') result.append(es) pool[arn] = es
def handle(domain): domain = domain['DomainName'] if re.match(filter, domain): details = es_client.describe_elasticsearch_domain( DomainName=domain) details = details['DomainStatus'] arn = details['ARN'] es = ElasticSearch(arn) es.endpoint = details.get('Endpoint', 'n/a') result.append(es) pool[arn] = es