

AWS Marketplace API リファレンスが再構築されました。サポートされている API オペレーションの詳細については、[AWS Marketplace API リファレンス](https://docs.aws.amazon.com/marketplace/latest/APIReference/Welcome.html)を参照してください。

翻訳は機械翻訳により提供されています。提供された翻訳内容と英語版の間で齟齬、不一致または矛盾がある場合、英語版が優先します。

# AWS SDKs AWS Marketplace を使用するためのコード例
<a name="service_code_examples"></a>

次のコード例は、 AWS Software Development Kit (SDK) AWS Marketplace で を使用する方法を示しています。

 AWS SDK 開発者ガイドとコード例の完全なリストについては、「」を参照してください[AWS SDK でのこのサービスの使用](sdk-general-information-section.md)。このトピックには、使用開始方法に関する情報と、以前の SDK バージョンの詳細も含まれています。

**Contents**
+ [AWS Marketplace カタログ API](service_code_examples_marketplace-catalog.md)
  + [AMI 製品](service_code_examples_marketplace-catalog_ami_products.md)
    + [既存の AMI 製品にディメンションを追加し、オファーの料金条件を更新する](marketplace-catalog_example_marketplace-catalog_AddDimensionToAmiProductAndSetPriceInPublicOffer_section.md)
    + [AMI 製品をデプロイするリージョンを追加する](marketplace-catalog_example_marketplace-catalog_AddRegionExistingAmiProduct_section.md)
    + [パブリックまたは制限付き AMI 製品と、時間単位の年間料金を使用するパブリックオファーを作成する](marketplace-catalog_example_marketplace-catalog_CreateLimitedAmiProductAndPublicOfferWithHourlyAnnualPricing_section.md)
    + [パブリックまたは制限付き AMI 製品と、時間単位の月額料金を使用するパブリックオファーを作成する](marketplace-catalog_example_marketplace-catalog_CreateLimitedAmiProductAndPublicOfferWithHourlyMonthlyPricing_section.md)
    + [パブリックまたは制限付き AMI 製品と、時間単位の料金を使用するパブリックオファーを作成する](marketplace-catalog_example_marketplace-catalog_CreateLimitedAmiProductAndPublicOfferWithHourlyPricing_section.md)
    + [ドラフトパブリックオファーを使用してドラフト AMI 製品を作成する](marketplace-catalog_example_marketplace-catalog_CreateDraftAmiProductWithDraftPublicOffer_section.md)
    + [AMI 製品をデプロイするリージョンを制限する](marketplace-catalog_example_marketplace-catalog_RestrictRegionExistingAmiProduct_section.md)
    + [製品の可視性を制限する](marketplace-catalog_example_marketplace-catalog_RestrictExistingAmi_section.md)
    + [AMI アセットを新しいリージョンにデプロイするかどうかを指定する](marketplace-catalog_example_marketplace-catalog_UpdateFutureRegionSupport_section.md)
  + [チャネルパートナーのオファー](service_code_examples_marketplace-catalog_channel_partner_offers.md)
    + [任意の製品タイプのドラフト CPPO を作成する](marketplace-catalog_example_marketplace-catalog_CreateDraftCppoOffer_section.md)
    + [契約料金を使用する再販承認の代替プライベートオファーを作成する](marketplace-catalog_example_marketplace-catalog_CreateResaleAuthorizationReplacementOffer_section.md)
    + [チャネルパートナーが作成したすべての CPPO を一覧表示する](marketplace-catalog_example_marketplace-catalog_ListAllCppoOffers_section.md)
    + [チャネルパートナーが利用できるすべての共有再販承認を一覧表示する](marketplace-catalog_example_marketplace-catalog_ListAllSharedResaleAuthorizations_section.md)
    + [CPPO を発行し、購入者の EULA を追加する](marketplace-catalog_example_marketplace-catalog_PublishCppoEula_section.md)
    + [1 回限りの再販承認を使用して CPPO を発行し、価格マークアップを更新する](marketplace-catalog_example_marketplace-catalog_PublishOneTimeCppoWithPriceMarkup_section.md)
    + [ドラフト CPPO を発行し、価格マークアップを更新する](marketplace-catalog_example_marketplace-catalog_PublishCppoPriceMarkup_section.md)
    + [CPPO の有効期限を更新する](marketplace-catalog_example_marketplace-catalog_UpdateCppoExpiryDate_section.md)
  + [コンテナ製品](service_code_examples_marketplace-catalog_container_products.md)
    + [ドラフトパブリックオファーを提示するドラフトコンテナ製品を作成する](marketplace-catalog_example_marketplace-catalog_CreateDraftContainerProductWithDraftPublicOffer_section.md)
    + [パブリックオファーと契約料金を使用する限定コンテナ製品を作成する](marketplace-catalog_example_marketplace-catalog_CreateLimitedContainerProductPublicOffer_section.md)
  + [エンティティ](service_code_examples_marketplace-catalog_entities.md)
    + [1 回の呼び出しですべてのエンティティを記述する](marketplace-catalog_example_marketplace-catalog_BatchDescribeEntities_section.md)
    + [製品に関連付けられたすべてのオファーを一覧表示して記述する](marketplace-catalog_example_marketplace-catalog_ListProductOffers_section.md)
  + [Offers](service_code_examples_marketplace-catalog_offers.md)
    + [SaaS 製品のカスタムディメンションを作成し、プライベートオファーを作成する](marketplace-catalog_example_marketplace-catalog_CreateSaasProductCustomDimensionAndPrivateOffer_section.md)
    + [AMI または SaaS 製品のドラフトプライベートオファーを作成する](marketplace-catalog_example_marketplace-catalog_CreateDraftPrivateOffer_section.md)
    + [契約料金と従量制料金を使用する、SaaS 製品向けのプライベートオファーを作成する](marketplace-catalog_example_marketplace-catalog_CreatePrivateOfferWithContractWithPayAsYouGoPricingForSaasProduct_section.md)
    + [契約料金と柔軟な支払いスケジュールを使用する、SaaS 製品向けのプライベートオファーを作成する](marketplace-catalog_example_marketplace-catalog_CreatePrivateOfferWithContractPricingWithFlexiblePaymentScheduleForSaasProduct_section.md)
    + [契約料金を使用する、コンテナ製品向けのプライベートオファーを作成する](marketplace-catalog_example_marketplace-catalog_CreatePrivateOfferWithContractPricingForContainerProduct_section.md)
    + [契約料金を使用する、AMI 製品向けのプライベートオファーを作成する](marketplace-catalog_example_marketplace-catalog_CreatePrivateOfferWithContractPricingForAmiProduct_section.md)
    + [時間単位の年間料金と柔軟な支払いスケジュールを使用する、AMI 製品向けのプライベートオファーを作成する](marketplace-catalog_example_marketplace-catalog_CreatePrivateOfferWithHourlyAnnualPricingAndFlexiblePaymentScheduleForAmiProduct_section.md)
    + [時間単位の年間料金を使用する、AMI 製品向けのプライベートオファーを作成する](marketplace-catalog_example_marketplace-catalog_CreatePrivateOfferWithHourlyAnnualPricingForAmiProduct_section.md)
    + [時間単位の料金を使用する、AMI 製品向けのプライベートオファーを作成する](marketplace-catalog_example_marketplace-catalog_CreatePrivateOfferWithHourlyPricingForAmiProduct_section.md)
    + [サブスクリプション料金を使用する、SaaS 製品向けのプライベートオファーを作成する](marketplace-catalog_example_marketplace-catalog_CreatePrivateOfferWithSubscriptionPricingForSaasProduct_section.md)
    + [階層型契約料金を使用する、SaaS 製品向けのプライベートオファーを作成する](marketplace-catalog_example_marketplace-catalog_CreatePrivateOfferWithTieredContractPricingForSaasProduct_section.md)
    + [サブスクリプション料金を使用する、SaaS 製品向けのパブリック無料トライアルオファーを作成する](marketplace-catalog_example_marketplace-catalog_CreatePublicFreeTrialOfferWithSubscriptionPricingForSaasProduct_section.md)
    + [契約料金を使用する代替プライベートオファーを作成する](marketplace-catalog_example_marketplace-catalog_CreateReplacementPrivateOfferWithContractPricing_section.md)
    + [パブリックオファーの説明](marketplace-catalog_example_marketplace-catalog_DescribeOffer_section.md)
    + [ドラフトのプライベートオファーを期限切れにする](marketplace-catalog_example_marketplace-catalog_ExpirePrivateOffer_section.md)
    + [すべてのプライベートオファーを一覧表示する](marketplace-catalog_example_marketplace-catalog_ListAllPrivateOffers_section.md)
    + [特定の製品 ID に対してリリースされたパブリックオファーとプライベートオファーを一覧表示する](marketplace-catalog_example_marketplace-catalog_ListProductPublicOrPrivateReleasedOffers_section.md)
    + [オファーを更新して従量制料金を使用する契約を適用する](marketplace-catalog_example_marketplace-catalog_UpdateOfferWithContractAndPayAsYouGoPricing_section.md)
    + [オファーを更新して時間単位の年間料金を適用する](marketplace-catalog_example_marketplace-catalog_UpdateOfferWithHourlyAnnualPricing_section.md)
    + [オファーを更新して特定の地理的リージョンにターゲティングを適用する](marketplace-catalog_example_marketplace-catalog_UpdateOfferTargeting_section.md)
    + [パブリックオファーの名前と説明を更新する](marketplace-catalog_example_marketplace-catalog_UpdateOfferNameAndDescription_section.md)
    + [オファーの EULA を更新する](marketplace-catalog_example_marketplace-catalog_UpdateEula_section.md)
    + [プライベートオファーの有効期限を将来の日付に更新する](marketplace-catalog_example_marketplace-catalog_UpdateOfferExpirationDateOfPrivateOffer_section.md)
    + [SaaS 製品向けのパブリック無料トライアルオファーの無料トライアル期間を更新する](marketplace-catalog_example_marketplace-catalog_UpdateFreeTrialDurationOfPublicFreeTrialOfferForSaasProduct_section.md)
    + [オファーの返金ポリシーを更新する](marketplace-catalog_example_marketplace-catalog_UpdateRefundPolicy_section.md)
  + [製品](service_code_examples_marketplace-catalog_products.md)
    + [AMI、SaaS、またはコンテナ製品を記述する](marketplace-catalog_example_marketplace-catalog_DescribeProduct_section.md)
    + [すべての AMI、SaaS、またはコンテナ製品と、関連するパブリックオファーを一覧表示する](marketplace-catalog_example_marketplace-catalog_ListProducts_section.md)
  + [再販承認](service_code_examples_marketplace-catalog_resale_authorization.md)
    + [ドラフト再販承認を作成する](marketplace-catalog_example_marketplace-catalog_DraftResaleauthAllproducttype_section.md)
    + [再販承認を記述する](marketplace-catalog_example_marketplace-catalog_DescribeResaleAuthorization_section.md)
    + [プライベートオファーを使用して 1 回限りの再販承認を発行する](marketplace-catalog_example_marketplace-catalog_OnetimeResaleauthPrivateoffer_section.md)
    + [有効期限付きの複数回使用可能な再販承認を発行する](marketplace-catalog_example_marketplace-catalog_MultiuseResaleauthExpirydateCppo_section.md)
    + [有効期限と EULA を含む複数回使用可能な再販承認を発行する](marketplace-catalog_example_marketplace-catalog_MultiuseResaleauthExpirydateCustomEula_section.md)
    + [有効期限と再販契約ドキュメントを含む複数回使用可能な再販承認を発行する](marketplace-catalog_example_marketplace-catalog_MultiuseResaleauthExpirydateCustomresellerContractdoc_section.md)
    + [有効期限付きの複数回使用可能な再販承認を発行し、特定の購入者アカウントを追加する](marketplace-catalog_example_marketplace-catalog_PublishMultiuseResaleAuthorizationExpirydateSpecificBuyer_section.md)
    + [有効期限なしの複数回使用可能な再販承認を発行する](marketplace-catalog_example_marketplace-catalog_MultiuseResaleauthNoExpirydateCppo_section.md)
    + [有効期限と EULA のない複数回使用可能な再販承認を発行する](marketplace-catalog_example_marketplace-catalog_MultiuseResaleauthNoExpirydateCustomEula_section.md)
    + [有効期限と再販契約ドキュメントのない複数回使用可能な再販承認を発行する](marketplace-catalog_example_marketplace-catalog_MultiuseResaleauthNoExpirydateCustomresellerContractdoc_section.md)
    + [有効期限のない複数回使用可能な再販承認を発行し、特定の購入者アカウントを追加する](marketplace-catalog_example_marketplace-catalog_PublishMultiuseResaleAuthorizationNoExpirydateSpecificBuyer_section.md)
    + [1 回限りの再販承認を発行し、柔軟な支払いスケジュールを追加する](marketplace-catalog_example_marketplace-catalog_PublishOnetimeResaleAuthorizationFlexiblePayment_section.md)
    + [1 回限りの再販売承認を発行し、EULA を追加する](marketplace-catalog_example_marketplace-catalog_OnetimeResaleauthCustomEula_section.md)
    + [1 回限りの再販承認を発行し、特定の購入者アカウントを追加する](marketplace-catalog_example_marketplace-catalog_PublishOnetimeResaleAuthorizationSpecificBuyer_section.md)
    + [1 回限りの再販承認を発行し、リセラー契約ドキュメントを追加する](marketplace-catalog_example_marketplace-catalog_OnetimeResaleauthCustomresellerContractdoc_section.md)
    + [1 回限りの再販売承認を発行し、それが更新かどうかを追加表示する](marketplace-catalog_example_marketplace-catalog_OnetimeResaleauthRenewal_section.md)
    + [再販承認を制限する](marketplace-catalog_example_marketplace-catalog_RestrictResaleAuthorization_section.md)
    + [1 回限りまたは複数回使用可能な再販承認の名前と説明を更新する](marketplace-catalog_example_marketplace-catalog_UpdateUnpublishedResaleAuthorization_section.md)
  + [SaaS 製品](service_code_examples_marketplace-catalog_saas_products.md)
    + [ドラフトパブリックオファーを使用するドラフト SaaS 製品を作成する](marketplace-catalog_example_marketplace-catalog_CreateDraftSaasProductWithDraftPublicOffer_section.md)
    + [パブリックまたは制限付き SaaS 製品と、契約料金を使用するパブリックオファーを作成する](marketplace-catalog_example_marketplace-catalog_CreateLimitedSaasProductAndPublicOfferWithContractPricing_section.md)
    + [パブリックまたは制限付きの SaaS 製品と、従量制料金を使用するパブリックオファーを作成する](marketplace-catalog_example_marketplace-catalog_CreateLimitedSaasProductAndPublicOfferWithContractWithPayAsYouGoPricing_section.md)
    + [パブリックまたは制限付きの SaaS 製品と、サブスクリプション料金を使用するパブリックオファーを作成する](marketplace-catalog_example_marketplace-catalog_CreateLimitedSaasProductAndPublicOfferWithSubscriptionPricing_section.md)
    + [SaaS 製品および関連するパブリックオファーを公開する](marketplace-catalog_example_marketplace-catalog_PublishSaasProductPublicOffer_section.md)
    + [既存のドラフトから SaaS 製品と関連するパブリックオファーを公開する](marketplace-catalog_example_marketplace-catalog_PublishExistingSaas_section.md)
    + [AMI または SaaS 製品のディメンションを更新する](marketplace-catalog_example_marketplace-catalog_UpdateNameDimensionSaasProduct_section.md)
  + [Utilities](service_code_examples_marketplace-catalog_utilities.md)
    + [変更セットを開始するユーティリティ](marketplace-catalog_example_marketplace-catalog_ChangeSetUtilities_section.md)
+ [AWS Marketplace 契約 API](service_code_examples_marketplace-agreement.md)
  + [契約](service_code_examples_marketplace-agreement_agreements.md)
    + [すべての契約 ID を取得する](marketplace-agreement_example_marketplace-agreement_GetAllAgreementsIds_section.md)
    + [すべての契約を取得する](marketplace-agreement_example_marketplace-agreement_GetAllAgreements_section.md)
    + [契約から顧客 ID を取得する](marketplace-agreement_example_marketplace-agreement_GetAgreementCustomer_section.md)
    + [契約から財務詳細を取得する](marketplace-agreement_example_marketplace-agreement_GetAgreementFinancialDetails_section.md)
    + [契約から無料トライアルの詳細を取得する](marketplace-agreement_example_marketplace-agreement_GetAgreementTermsFreeTrialDetails_section.md)
    + [契約に関する情報を取得する](marketplace-agreement_example_marketplace-agreement_DescribeAgreement_section.md)
    + [契約から製品とオファーの詳細を取得する](marketplace-agreement_example_marketplace-agreement_GetProductAndOfferDetailFromAgreement_section.md)
    + [契約の EULA を取得する](marketplace-agreement_example_marketplace-agreement_GetAgreementTermsEula_section.md)
    + [契約の自動更新条件を取得する](marketplace-agreement_example_marketplace-agreement_GetAgreementAutoRenewal_section.md)
    + [契約の購入済みディメンションを取得する](marketplace-agreement_example_marketplace-agreement_GetAgreementTermsDimensionPurchased_section.md)
    + [契約の購入済み各ディメンションのインスタンスを取得する](marketplace-agreement_example_marketplace-agreement_GetAgreementTermsDimensionInstances_section.md)
    + [契約の支払いスケジュールを取得する](marketplace-agreement_example_marketplace-agreement_GetAgreementTermsPaymentSchedule_section.md)
    + [契約のディメンションあたりの料金を取得する](marketplace-agreement_example_marketplace-agreement_GetAgreementTermsPricingEachDimension_section.md)
    + [契約の料金タイプを取得する](marketplace-agreement_example_marketplace-agreement_GetAgreementPricingType_section.md)
    + [契約の製品タイプを取得する](marketplace-agreement_example_marketplace-agreement_GetAgreementProductType_section.md)
    + [契約のステータスを取得する](marketplace-agreement_example_marketplace-agreement_GetAgreementStatus_section.md)
    + [契約のサポート条件を取得する](marketplace-agreement_example_marketplace-agreement_GetAgreementTermsSupportTerm_section.md)
    + [契約条件を取得する](marketplace-agreement_example_marketplace-agreement_GetAgreementTerms_section.md)
    + [アカウント ID で契約を検索する](marketplace-agreement_example_marketplace-agreement_SearchAgreementsByAccountId_section.md)
    + [契約 ID で契約を検索する](marketplace-agreement_example_marketplace-agreement_SearchAgreementsById_section.md)
    + [終了日で契約を検索する](marketplace-agreement_example_marketplace-agreement_SearchAgreementsByEndDate_section.md)
    + [オファー ID で契約を検索する](marketplace-agreement_example_marketplace-agreement_SearchAgreementsByOfferId_section.md)
    + [製品 ID で契約を検索する](marketplace-agreement_example_marketplace-agreement_SearchAgreementsByProductId_section.md)
    + [ステータスで契約を検索する](marketplace-agreement_example_marketplace-agreement_SearchAgreementsByByStatus_section.md)
    + [1 つのカスタムフィルターで契約を検索する](marketplace-agreement_example_marketplace-agreement_SearchAgreementsByOneFilter_section.md)
    + [2 つのカスタムフィルターで契約を検索する](marketplace-agreement_example_marketplace-agreement_SearchAgreementsByTwoFilters_section.md)