def ES_get_cfn_attribute(self, attribute_name): if attribute_name in ['Arn', 'DomainArn']: return aws_stack.es_domain_arn(self.params.get('DomainName')) if attribute_name == 'DomainEndpoint': if not hasattr(self, '_domain_endpoint'): es_details = aws_stack.connect_to_service('es').describe_elasticsearch_domain( DomainName=self.params.get('DomainName')) self._domain_endpoint = es_details['DomainStatus']['Endpoint'] return self._domain_endpoint raise UnformattedGetAttTemplateException()
def es_add_tags_params(params, **kwargs): es_arn = aws_stack.es_domain_arn(params.get("DomainName")) tags = params.get("Tags", []) return {"ARN": es_arn, "TagList": tags}