import * as ros from '@alicloud/ros-cdk-core'; import { RosInstance } from './apigateway.generated'; export { RosInstance as InstanceProperty }; /** * Properties for defining a `Instance`. * See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-apigateway-instance */ export interface InstanceProps { /** * Property httpsPolicy: HTTPS security policy. Valid values: HTTPS2_TLS1_0, HTTPS2_TLS1_2, HTTPS1_1_TLS1_0 */ readonly httpsPolicy: string | ros.IResolvable; /** * Property instanceName: Instance name */ readonly instanceName: string | ros.IResolvable; /** * Property instanceSpec: Instance specification. For example: api.s1.small */ readonly instanceSpec: string | ros.IResolvable; /** * Property zoneId: Zone to which the instance belongs. For example: cn-beijing-MAZ2(f,g). * Pleas call DescribeZones to get supported zone list. */ readonly zoneId: string | ros.IResolvable; /** * 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. */ readonly autoPay?: boolean | ros.IResolvable; /** * Property chargeType: The billing method of the router interface. Valid values: PrePaid (Subscription), PostPaid (default, Pay-As-You-Go). Default value: PostPaid. */ readonly chargeType?: string | ros.IResolvable; /** * Property deletionForce: Whether force delete the instance even if its status is START_FAILED. Default value is false. */ readonly deletionForce?: boolean | ros.IResolvable; /** * 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. */ readonly duration?: number | ros.IResolvable; /** * Property pricingCycle: The billing cycle of the subscription instance. Valid values: * - year * - month * > This parameter is required if you set ChargeType to PrePaid. */ readonly pricingCycle?: string | ros.IResolvable; /** * 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. */ readonly tags?: RosInstance.TagsProperty[]; } /** * Represents a `Instance`. */ export interface IInstance extends ros.IResource { readonly props: InstanceProps; /** * Attribute Arn: The Alibaba Cloud Resource Name (ARN). */ readonly attrArn: ros.IResolvable | string; /** * Attribute EgressIpv6Enable: Whether enable egress IPV6. */ readonly attrEgressIpv6Enable: ros.IResolvable | string; /** * Attribute InstanceId: Instance ID. */ readonly attrInstanceId: ros.IResolvable | string; /** * Attribute InstanceType: Instance type. */ readonly attrInstanceType: ros.IResolvable | string; /** * Attribute InternetEgressAddress: Internet egress dddress. */ readonly attrInternetEgressAddress: ros.IResolvable | string; /** * Attribute SupportIpv6: Whether support IPV6. */ readonly attrSupportIpv6: ros.IResolvable | string; /** * Attribute VpcEgressAddress: VPC network egress address. */ readonly attrVpcEgressAddress: ros.IResolvable | string; /** * Attribute VpcIntranetEnable: Whether enable VPC intranet. */ readonly attrVpcIntranetEnable: ros.IResolvable | string; /** * Attribute VpcSlbIntranetEnable: Whether enable VPC SLB intranet. */ readonly attrVpcSlbIntranetEnable: ros.IResolvable | string; } /** * This class encapsulates and extends the ROS resource type `ALIYUN::ApiGateway::Instance`. * @Note This class may have some new functions to facilitate development, so it is recommended to use this class instead of `RosInstance`for a more convenient development experience. * See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-apigateway-instance */ export declare class Instance extends ros.Resource implements IInstance { protected scope: ros.Construct; protected id: string; readonly props: InstanceProps; protected enableResourcePropertyConstraint: boolean; /** * Attribute Arn: The Alibaba Cloud Resource Name (ARN). */ readonly attrArn: ros.IResolvable | string; /** * Attribute EgressIpv6Enable: Whether enable egress IPV6. */ readonly attrEgressIpv6Enable: ros.IResolvable | string; /** * Attribute InstanceId: Instance ID. */ readonly attrInstanceId: ros.IResolvable | string; /** * Attribute InstanceType: Instance type. */ readonly attrInstanceType: ros.IResolvable | string; /** * Attribute InternetEgressAddress: Internet egress dddress. */ readonly attrInternetEgressAddress: ros.IResolvable | string; /** * Attribute SupportIpv6: Whether support IPV6. */ readonly attrSupportIpv6: ros.IResolvable | string; /** * Attribute VpcEgressAddress: VPC network egress address. */ readonly attrVpcEgressAddress: ros.IResolvable | string; /** * Attribute VpcIntranetEnable: Whether enable VPC intranet. */ readonly attrVpcIntranetEnable: ros.IResolvable | string; /** * Attribute VpcSlbIntranetEnable: Whether enable VPC SLB intranet. */ readonly attrVpcSlbIntranetEnable: ros.IResolvable | string; /** * Param scope - scope in which this resource is defined * Param id - scoped id of the resource * Param props - resource properties */ constructor(scope: ros.Construct, id: string, props: InstanceProps, enableResourcePropertyConstraint?: boolean); }