InstanceProps
Properties for defining a Instance.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-apigateway-instance
Initializer
import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkapigateway"
&alicloudroscdkapigateway.InstanceProps {
HttpsPolicy: interface{},
InstanceName: interface{},
InstanceSpec: interface{},
ZoneId: interface{},
AutoPay: interface{},
ChargeType: interface{},
DeletionForce: interface{},
Duration: interface{},
PricingCycle: interface{},
Tags: *[]github.com/alibabacloud-go/ros-cdk/alicloudroscdkapigateway.RosInstance.TagsProperty,
}
Properties
| Name | Type | Description |
|---|---|---|
HttpsPolicy | interface{} | Property httpsPolicy: HTTPS security policy. |
InstanceName | interface{} | Property instanceName: Instance name. |
InstanceSpec | interface{} | Property instanceSpec: Instance specification. |
ZoneId | interface{} | Property zoneId: Zone to which the instance belongs. |
AutoPay | interface{} | Property autoPay: Specifies whether to enable auto-payment for renewals. |
ChargeType | interface{} | Property chargeType: The billing method of the router interface. |
DeletionForce | interface{} | Property deletionForce: Whether force delete the instance even if its status is START_FAILED. |
Duration | interface{} | Property duration: The subscription duration of the instance. |
PricingCycle | interface{} | Property pricingCycle: The billing cycle of the subscription instance. |
Tags | *[]TagsProperty | Property tags: Tags to attach to instance. |
HttpsPolicyRequired
HttpsPolicy interface{}
- Type: interface{}
Property httpsPolicy: HTTPS security policy.
Valid values: HTTPS2_TLS1_0, HTTPS2_TLS1_2, HTTPS1_1_TLS1_0
InstanceNameRequired
InstanceName interface{}
- Type: interface{}
Property instanceName: Instance name.
InstanceSpecRequired
InstanceSpec interface{}
- Type: interface{}
Property instanceSpec: Instance specification.
For example: api.s1.small
ZoneIdRequired
ZoneId interface{}
- Type: interface{}
Property zoneId: Zone to which the instance belongs.
For example: cn-beijing-MAZ2(f,g). Pleas call DescribeZones to get supported zone list.
AutoPayOptional
AutoPay interface{}
- Type: interface{}
Property autoPay: Specifies whether to enable auto-payment for renewals.
Valid values:
- True: Auto-payment is enabled. Make sure that your account has a sufficient balance.
- False: Manual payment is required. To pay for an order, log on to the console. In the upper-right corner, choose Billing > User Center. On the Order Management page, find the order and complete the payment. Default value: False.
ChargeTypeOptional
ChargeType interface{}
- Type: interface{}
Property chargeType: The billing method of the router interface.
Valid values: PrePaid (Subscription), PostPaid (default, Pay-As-You-Go). Default value: PostPaid.
DeletionForceOptional
DeletionForce interface{}
- Type: interface{}
Property deletionForce: Whether force delete the instance even if its status is START_FAILED.
Default value is false.
DurationOptional
Duration interface{}
- Type: interface{}
Property duration: The subscription duration of the instance.
Valid values:
- If PricingCycle is set to Month, the valid values are 1 to 9.
- If PricingCycle is set to Year, the valid values are 1 to 3.
This parameter is required and takes effect only if you set ChargeType to PrePaid.
PricingCycleOptional
PricingCycle interface{}
- Type: interface{}
Property pricingCycle: The billing cycle of the subscription instance.
Valid values:
- year
- month
This parameter is required if you set ChargeType to PrePaid.
TagsOptional
Tags *[]TagsProperty
- Type: *[]TagsProperty
Property tags: Tags to attach to instance.
Max support 20 tags to add during create instance. Each tag with two properties Key and Value, and Key is required.