InstanceProps
Properties for defining a Instance
.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-apigateway-instance
Initializer
import ros_cdk_apigateway
ros_cdk_apigateway.InstanceProps(
https_policy: typing.Union[str, IResolvable],
instance_name: typing.Union[str, IResolvable],
instance_spec: typing.Union[str, IResolvable],
zone_id: typing.Union[str, IResolvable],
auto_pay: typing.Union[bool, IResolvable] = None,
charge_type: typing.Union[str, IResolvable] = None,
deletion_force: typing.Union[bool, IResolvable] = None,
duration: typing.Union[typing.Union[int, float], IResolvable] = None,
pricing_cycle: typing.Union[str, IResolvable] = None,
tags: typing.List[TagsProperty] = None
)
Properties
Name | Type | Description |
---|---|---|
https_policy |
typing.Union[str, ros_cdk_core.IResolvable] |
Property httpsPolicy: HTTPS security policy. |
instance_name |
typing.Union[str, ros_cdk_core.IResolvable] |
Property instanceName: Instance name. |
instance_spec |
typing.Union[str, ros_cdk_core.IResolvable] |
Property instanceSpec: Instance specification. |
zone_id |
typing.Union[str, ros_cdk_core.IResolvable] |
Property zoneId: Zone to which the instance belongs. |
auto_pay |
typing.Union[bool, ros_cdk_core.IResolvable] |
Property autoPay: Indicates whether automatic payment is enabled. |
charge_type |
typing.Union[str, ros_cdk_core.IResolvable] |
Property chargeType: The billing method of the router interface. |
deletion_force |
typing.Union[bool, ros_cdk_core.IResolvable] |
Property deletionForce: Whether force delete the instance even if its status is START_FAILED. |
duration |
typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] |
Property duration: Prepaid time period. |
pricing_cycle |
typing.Union[str, ros_cdk_core.IResolvable] |
Property pricingCycle: Unit of the payment cycle. |
tags |
typing.List[TagsProperty] |
Property tags: Tags to attach to instance. |
https_policy
Required
https_policy: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property httpsPolicy: HTTPS security policy.
Valid values: HTTPS2_TLS1_0, HTTPS2_TLS1_2, HTTPS1_1_TLS1_0
instance_name
Required
instance_name: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property instanceName: Instance name.
instance_spec
Required
instance_spec: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property instanceSpec: Instance specification.
For example: api.s1.small
zone_id
Required
zone_id: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property zoneId: Zone to which the instance belongs.
For example: cn-beijing-MAZ2(f,g). Pleas call DescribeZones to get supported zone list.
auto_pay
Optional
auto_pay: typing.Union[bool, IResolvable]
- Type: typing.Union[bool, ros_cdk_core.IResolvable]
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.
charge_type
Optional
charge_type: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property chargeType: The billing method of the router interface.
Valid values: PrePaid (Subscription), PostPaid (default, Pay-As-You-Go). Default value: PostPaid.
deletion_force
Optional
deletion_force: typing.Union[bool, IResolvable]
- Type: typing.Union[bool, ros_cdk_core.IResolvable]
Property deletionForce: Whether force delete the instance even if its status is START_FAILED.
Default value is false.
duration
Optional
duration: typing.Union[typing.Union[int, float], IResolvable]
- Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]
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.
pricing_cycle
Optional
pricing_cycle: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property pricingCycle: Unit of the payment cycle.
It could be Month (default) or Year.
tags
Optional
tags: typing.List[TagsProperty]
- Type: typing.List[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.