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: Indicates whether automatic payment is enabled. |
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: Prepaid time period. |
PricingCycle |
interface{} |
Property pricingCycle: Unit of the payment cycle. |
Tags |
*[]TagsProperty |
Property tags: Tags to attach to instance. |
HttpsPolicy
Required
HttpsPolicy interface{}
- Type: interface{}
Property httpsPolicy: HTTPS security policy.
Valid values: HTTPS2_TLS1_0, HTTPS2_TLS1_2, HTTPS1_1_TLS1_0
InstanceName
Required
InstanceName interface{}
- Type: interface{}
Property instanceName: Instance name.
InstanceSpec
Required
InstanceSpec interface{}
- Type: interface{}
Property instanceSpec: Instance specification.
For example: api.s1.small
ZoneId
Required
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.
AutoPay
Optional
AutoPay interface{}
- Type: interface{}
Property autoPay: Indicates whether automatic payment is enabled.
Valid values: false: Automatic payment is disabled. You need to go to Orders to make the payment once an order is generated. true: Automatic payment is enabled. The payment is automatically made. Default true.
ChargeType
Optional
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.
DeletionForce
Optional
DeletionForce interface{}
- Type: interface{}
Property deletionForce: Whether force delete the instance even if its status is START_FAILED.
Default value is false.
Duration
Optional
Duration interface{}
- Type: interface{}
Property duration: Prepaid time period.
It could be from 1 to 9 when PricingCycle is Month, or 1 to 3 when PricingCycle is Year. Default value is 3.
PricingCycle
Optional
PricingCycle interface{}
- Type: interface{}
Property pricingCycle: Unit of the payment cycle.
It could be Month (default) or Year.
Tags
Optional
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.