boto3でcreate_domain 使用時に、IPAddressTypeが指定できないのはなぜですか。

0

boto3を利用して、OpenSearchの新しいdomainを作成を試みています。

https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/opensearch/client/create_domain.html 上記のページを参考にしています。

domainの設定の中に IPAddressType='ipv4'|'dualstack' を指定できる部分があるともうのですが、 IPAddressTypeの設定を書いたうえでcreate_domainを実施すると次のようなエラーが出ます。

[ERROR] ParamValidationError: Parameter validation failed: Unknown parameter in input: "IPAddressType", must be one of: DomainName, EngineVersion, ClusterConfig, EBSOptions, AccessPolicies, SnapshotOptions, VPCOptions, CognitoOptions, EncryptionAtRestOptions, NodeToNodeEncryptionOptions, AdvancedOptions, LogPublishingOptions, DomainEndpointOptions, AdvancedSecurityOptions, TagList, AutoTuneOptions, OffPeakWindowOptions, SoftwareUpdateOptions

IPAddressTypeは設定できないのでしょうか?

yuuka_u
已提问 5 个月前247 查看次数
1 回答
0
已接受的回答

Boto3のバージョンはいくつを使用していますか?
おそらく古いバージョンを使用しているのではないかと予想しています。
バージョンは以下のコードで確認できます。

import boto3

def lambda_handler(event, context):
    print(boto3.__version__)
profile picture
专家
已回答 5 个月前
  • こちらの変更履歴を見る限りでは1.28.72以降で追加されたパラメータのようです。 https://github.com/boto/boto3/blob/develop/CHANGELOG.rst

    * api-change:``opensearch``: [``botocore``] You can specify ipv4 or dualstack IPAddressType for cluster endpoints. If you specify IPAddressType as dualstack, the new endpoint will be visible under the 'EndpointV2' parameter and will support IPv4 and IPv6 requests. Whereas, the 'Endpoint' will continue to serve IPv4 requests.
    
  • Riku_Kobayashiさん。ご回答ありがとうございます。 バージョンを確認したところ、1.26.90でした。 追加されているバージョンをレイヤーで入れる形で対応してみようと思います。 参考リンクも添付ありがとうございます。大変勉強になりました。

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则