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
質問済み 4ヶ月前243ビュー
1回答
0
承認された回答

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

import boto3

def lambda_handler(event, context):
    print(boto3.__version__)
profile picture
エキスパート
回答済み 4ヶ月前
  • こちらの変更履歴を見る限りでは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でした。 追加されているバージョンをレイヤーで入れる形で対応してみようと思います。 参考リンクも添付ありがとうございます。大変勉強になりました。

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン