コード例 #1
0
ファイル: opensearch.py プロジェクト: localstack/localstack
 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
コード例 #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
コード例 #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)