

文件 AWS 開發套件範例 GitHub 儲存庫中有更多可用的 [AWS SDK 範例](https://github.com/awsdocs/aws-doc-sdk-examples)。

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# AWS Marketplace 目錄 API 優惠
<a name="marketplace-catalog_code_examples_offers"></a>

下列程式碼範例示範如何使用 AWS Marketplace 目錄 API AWS SDKs。

**Topics**
+ [建立 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)