CapacityReservationProps
Properties for defining a CapacityReservation
.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-ecs-capacityreservation
Initializer
import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkecs"
&alicloudroscdkecs.CapacityReservationProps {
InstanceAmount: interface{},
InstanceType: interface{},
ZoneId: interface{},
Description: interface{},
EndTime: interface{},
EndTimeType: interface{},
PrivatePoolOptions: interface{},
ResourceGroupId: interface{},
Tags: *[]github.com/alibabacloud-go/ros-cdk/alicloudroscdkecs.RosCapacityReservation.TagsProperty,
}
Properties
Name | Type | Description |
---|---|---|
InstanceAmount |
interface{} |
Property instanceAmount: The total number of instances for which to reserve capacity of an instance type. |
InstanceType |
interface{} |
Property instanceType: The instance type. |
ZoneId |
interface{} |
Property zoneId: The ID of zone N within the region in which to create the capacity reservation. |
Description |
interface{} |
Property description: The description of the capacity reservation. |
EndTime |
interface{} |
Property endTime: The time when the capacity reservation expires. |
EndTimeType |
interface{} |
Property endTimeType: The release mode of the capacity reservation. |
PrivatePoolOptions |
interface{} |
Property privatePoolOptions:. |
ResourceGroupId |
interface{} |
Property resourceGroupId: The ID of the resource group to which to assign the capacity reservation. |
Tags |
*[]TagsProperty |
Property tags:. |
InstanceAmount
Required
InstanceAmount interface{}
- Type: interface{}
Property instanceAmount: The total number of instances for which to reserve capacity of an instance type.
InstanceType
Required
InstanceType interface{}
- Type: interface{}
Property instanceType: The instance type.
A capacity reservation can be created to reserve the capacity of only a single instance type. You can call the DescribeInstanceTypes operation to query the instance types provided by ECS.
ZoneId
Required
ZoneId interface{}
- Type: interface{}
Property zoneId: The ID of zone N within the region in which to create the capacity reservation.
A capacity reservation can reserve resources within only a single zone.
Description
Optional
Description interface{}
- Type: interface{}
Property description: The description of the capacity reservation.
The description must be 2 to 256 characters in length and cannot start with http:// or https://. This parameter is empty by default.
EndTime
Optional
EndTime interface{}
- Type: interface{}
Property endTime: The time when the capacity reservation expires.
Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC. For more information, see ISO 8601.
EndTimeType
Optional
EndTimeType interface{}
- Type: interface{}
Property endTimeType: The release mode of the capacity reservation.
Valid values: Limited: The capacity reservation is automatically released at the specified time. If you specify this parameter, you must also specify the EndTime parameter. Unlimited: The capacity reservation must be manually released. You can release it anytime.
PrivatePoolOptions
Optional
PrivatePoolOptions interface{}
- Type: interface{}
Property privatePoolOptions:.
ResourceGroupId
Optional
ResourceGroupId interface{}
- Type: interface{}
Property resourceGroupId: The ID of the resource group to which to assign the capacity reservation.
Tags
Optional
Tags *[]TagsProperty
- Type: *[]TagsProperty
Property tags:.