Ejemplo n.º 1
0
 def get_physical_resource_id(self, attribute=None, **kwargs):
     domain_name = self._domain_name()
     if attribute == "Arn":
         # As mentioned above, OpenSearch still uses "es" ARNs
         return aws_stack.elasticsearch_domain_arn(domain_name)
     return domain_name
Ejemplo n.º 2
0
 def get_physical_resource_id(self, attribute=None, **kwargs):
     domain_name = self._domain_name()
     if attribute == 'Arn':
         return aws_stack.elasticsearch_domain_arn(domain_name)
     return domain_name
Ejemplo n.º 3
0
def get_domain_arn(domain_name: str,
                   region: str = None,
                   account_id: str = None) -> str:
    return aws_stack.elasticsearch_domain_arn(domain_name=domain_name,
                                              account_id=account_id,
                                              region_name=region)