Order
Create a Order Resource
new Order(name: string, args: OrderArgs, opts?: CustomResourceOptions);def Order(resource_name, opts=None, components=None, coupon_id=None, duration=None, package_version=None, pay_type=None, pricing_cycle=None, product_code=None, quantity=None, __props__=None);public Order(string name, OrderArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args OrderArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args OrderArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args OrderArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
Order Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The Order resource accepts the following input properties:
- Package
Version string The package version of the market product.
- Pricing
Cycle string The purchase cycle of the product, valid values are
Day,MonthandYear.- Product
Code string The product_code of market place product.
- Components Dictionary<string, object>
Service providers customize additional components.
- Coupon
Id string The coupon id of the market product.
- Duration int
The number of purchase cycles.
- Pay
Type string Valid values are
PrePaid,PostPaid,System default toPostPaid.- Quantity int
The quantity of the market product will be purchased.
- Package
Version string The package version of the market product.
- Pricing
Cycle string The purchase cycle of the product, valid values are
Day,MonthandYear.- Product
Code string The product_code of market place product.
- Components map[string]interface{}
Service providers customize additional components.
- Coupon
Id string The coupon id of the market product.
- Duration int
The number of purchase cycles.
- Pay
Type string Valid values are
PrePaid,PostPaid,System default toPostPaid.- Quantity int
The quantity of the market product will be purchased.
- package
Version string The package version of the market product.
- pricing
Cycle string The purchase cycle of the product, valid values are
Day,MonthandYear.- product
Code string The product_code of market place product.
- components {[key: string]: any}
Service providers customize additional components.
- coupon
Id string The coupon id of the market product.
- duration number
The number of purchase cycles.
- pay
Type string Valid values are
PrePaid,PostPaid,System default toPostPaid.- quantity number
The quantity of the market product will be purchased.
- package_
version str The package version of the market product.
- pricing_
cycle str The purchase cycle of the product, valid values are
Day,MonthandYear.- product_
code str The product_code of market place product.
- components Dict[str, Any]
Service providers customize additional components.
- coupon_
id str The coupon id of the market product.
- duration float
The number of purchase cycles.
- pay_
type str Valid values are
PrePaid,PostPaid,System default toPostPaid.- quantity float
The quantity of the market product will be purchased.
Outputs
All input properties are implicitly available as output properties. Additionally, the Order resource produces the following output properties:
Look up an Existing Order Resource
Get an existing Order resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: OrderState, opts?: CustomResourceOptions): Orderstatic get(resource_name, id, opts=None, components=None, coupon_id=None, duration=None, package_version=None, pay_type=None, pricing_cycle=None, product_code=None, quantity=None, __props__=None);func GetOrder(ctx *Context, name string, id IDInput, state *OrderState, opts ...ResourceOption) (*Order, error)public static Order Get(string name, Input<string> id, OrderState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- Components Dictionary<string, object>
Service providers customize additional components.
- Coupon
Id string The coupon id of the market product.
- Duration int
The number of purchase cycles.
- Package
Version string The package version of the market product.
- Pay
Type string Valid values are
PrePaid,PostPaid,System default toPostPaid.- Pricing
Cycle string The purchase cycle of the product, valid values are
Day,MonthandYear.- Product
Code string The product_code of market place product.
- Quantity int
The quantity of the market product will be purchased.
- Components map[string]interface{}
Service providers customize additional components.
- Coupon
Id string The coupon id of the market product.
- Duration int
The number of purchase cycles.
- Package
Version string The package version of the market product.
- Pay
Type string Valid values are
PrePaid,PostPaid,System default toPostPaid.- Pricing
Cycle string The purchase cycle of the product, valid values are
Day,MonthandYear.- Product
Code string The product_code of market place product.
- Quantity int
The quantity of the market product will be purchased.
- components {[key: string]: any}
Service providers customize additional components.
- coupon
Id string The coupon id of the market product.
- duration number
The number of purchase cycles.
- package
Version string The package version of the market product.
- pay
Type string Valid values are
PrePaid,PostPaid,System default toPostPaid.- pricing
Cycle string The purchase cycle of the product, valid values are
Day,MonthandYear.- product
Code string The product_code of market place product.
- quantity number
The quantity of the market product will be purchased.
- components Dict[str, Any]
Service providers customize additional components.
- coupon_
id str The coupon id of the market product.
- duration float
The number of purchase cycles.
- package_
version str The package version of the market product.
- pay_
type str Valid values are
PrePaid,PostPaid,System default toPostPaid.- pricing_
cycle str The purchase cycle of the product, valid values are
Day,MonthandYear.- product_
code str The product_code of market place product.
- quantity float
The quantity of the market product will be purchased.
Package Details
- Repository
- https://github.com/pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.