

文档 AWS SDK 示例 GitHub 存储库中还有更多 [S AWS DK 示例](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 产品创建包含合同和 Pay-As-You-Go定价的私人报价](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)
+ [更新报价以应用带 Pay-As-You-Go定价的合同](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)