edit-icon download-icon

ALIYUN::MarketPlace::Order

Last Updated: Mar 27, 2018

The ALIYUN::MarketPlace::Order type is used to buy marketplace resources.

Syntax

  1. {
  2. "Type" : "ALIYUN::MarketPlace::Order",
  3. "Properties" : {
  4. "ProductCode" : String,
  5. "SkuCode" : String,
  6. "PricingCycle" : String,
  7. "Preference" : Map,
  8. "ChargeType" : String,
  9. "Duration" : Integer,
  10. "Quantity" : Integer
  11. }
  12. }

Attributes

Attribute name Type Required? Description Constraint
ProductCode string Yes Product code of the marketplace resource N/A
SkuCode string Yes SKU code of the marketplace resource N/A
PricingCycle string No Unit of the payment cycle This parameter is ignored if ChargeType is Postpaid. If ChargeType is Prepaid, this parameter can be set to Month or Year.
Preference map No Custom parameters N/A
ChargeType string No Method of payment Value options: Prepaid and Postpaid. Default value: Prepaid.
Duration number No Payment duration Value options: 1, 2, 3, 6, 12, and 24. The default value is 1. This parameter is used with PricingCycle. Marketplace resources support the following payment cycles: one month, one quarter, half a year, one year, and two years. If PricingCycle is not specified, the resource is bought only once.
Quantity number No Resource purchase quantity The default value is 1.

Return values

Fn::GetAtt

OrderId: ID of the marketplace resource purchase order.

Example

  1. {
  2. "ROSTemplateFormatVersion" : "2015-09-01",
  3. "Resources" : {
  4. "MarketOrder": {
  5. "Type": "ALIYUN::MarketPlace::Order",
  6. "Properties": {
  7. "ProductCode":"cmapi011900",
  8. "SkuCode":"postpay",
  9. "Duration":"1",
  10. "PricingCycle": "Year",
  11. "Quantity": 1,
  12. "ChargeType": "Prepaid",
  13. "Preference": {"my_email": "1111@aliyun.com"}
  14. }
  15. }
  16. },
  17. "Outputs" : {
  18. "OderId": {
  19. "Value": {
  20. "Fn::GetAtt": [
  21. "MarketOrder",
  22. "OrderId"
  23. ]
  24. }
  25. }
  26. }
  27. }
Thank you! We've received your feedback.