aws python sdk boto3 客户端 route53domains get_domain_suggestions ClientError

aws python sdk boto3 client route53domains get_domain_suggestions ClientError

>>> import boto3
>>> r53d = boto3.client('route53domains', aws_access_key_id='(removed)', aws_secret_access_key='(removed)', region_name='us-east-1') 
>>> response = r53d.get_domain_suggestions(DomainName='example', SuggestionCount=5, OnlyAvailable=True)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/user/.pyenv/versions/webev.net/lib/python2.7/site-packages/botocore/client.py", line 159, in _api_call
    return self._make_api_call(operation_name, kwargs)
  File "/home/user/.pyenv/versions/webev.net/lib/python2.7/site-packages/botocore/client.py", line 494, in _make_api_call
    raise ClientError(parsed_response, operation_name)
botocore.exceptions.ClientError: An error occurred (InvalidInput) when calling the GetDomainSuggestions operation: Errors: [Give domain name must contain more than 1 label]

google 搜索 "aws boto route53 Give domain name must contain more than 1 label" 或变体没有任何结果,而且我似乎找不到 ClientError 异常文档...任何有帮助吗?

编辑:据我所知,根据 docs,我的所有参数都可以,并且 response = r53d.list_domains() 有效,所以我知道这不是 boto3.client 参数。

Boto3 documentation 所说的相反,get_domain_suggestions() 需要一个有效的 TLD。通过 example.com 应该 return 一些结果。

>>> for val in r53d.get_domain_suggestions(DomainName='google.com', SuggestionCount=5, OnlyAvailable=True)['SuggestionsList']: print val['DomainName']
6oo6l3.com
moveogle.com
googleannounces.com
googleunveils.com
adwordsonline.com