gpt4 book ai didi

amazon-web-services - 如何检查 SWF 中是否已存在域

转载 作者:行者123 更新时间:2023-12-04 05:51:15 25 4
gpt4 key购买 nike

有没有办法检查 SWF 中是否存在域名,而不是遍历整个域 list ?

最佳答案

如果您要注册该域以防万一,您可以尝试调用registerDomain()并捕获 DomainAlreadyExistsException :

Returned if the specified domain already exists. You will get this fault even if the existing domain is in deprecated status.



显然,如果域尚不存在,这会产生实际注册域的副作用;)

否则 describeDomain()应该允许类似的方法,只要它会抛出 UnknownResourceException如果域不存在:

Returned when the named resource cannot be found with in the scope of this operation (region or domain). This could happen if the named resource was never created or is no longer available for this operation. [emphasis mine]

关于amazon-web-services - 如何检查 SWF 中是否已存在域,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10009638/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com