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でした。 追加されているバージョンをレイヤーで入れる形で対応してみようと思います。 参考リンクも添付ありがとうございます。大変勉強になりました。

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南