Documentation ¶
Index ¶
- Constants
- Variables
- func DataSourceTencentCloudAsAdvices() *schema.Resource
- func DataSourceTencentCloudAsInstances() *schema.Resource
- func DataSourceTencentCloudAsLastActivity() *schema.Resource
- func DataSourceTencentCloudAsLimits() *schema.Resource
- func DataSourceTencentCloudAsScalingConfigs() *schema.Resource
- func DataSourceTencentCloudAsScalingGroups() *schema.Resource
- func DataSourceTencentCloudAsScalingPolicies() *schema.Resource
- func ResourceTencentCloudAsAttachment() *schema.Resource
- func ResourceTencentCloudAsCompleteLifecycle() *schema.Resource
- func ResourceTencentCloudAsExecuteScalingPolicy() *schema.Resource
- func ResourceTencentCloudAsLifecycleHook() *schema.Resource
- func ResourceTencentCloudAsLoadBalancer() *schema.Resource
- func ResourceTencentCloudAsNotification() *schema.Resource
- func ResourceTencentCloudAsProtectInstances() *schema.Resource
- func ResourceTencentCloudAsRemoveInstances() *schema.Resource
- func ResourceTencentCloudAsScaleInInstances() *schema.Resource
- func ResourceTencentCloudAsScaleOutInstances() *schema.Resource
- func ResourceTencentCloudAsScalingConfig() *schema.Resource
- func ResourceTencentCloudAsScalingGroup() *schema.Resource
- func ResourceTencentCloudAsScalingGroupStatus() *schema.Resource
- func ResourceTencentCloudAsScalingPolicy() *schema.Resource
- func ResourceTencentCloudAsSchedule() *schema.Resource
- func ResourceTencentCloudAsStartInstances() *schema.Resource
- func ResourceTencentCloudAsStopInstances() *schema.Resource
- type AsService
- func (me *AsService) AttachInstances(ctx context.Context, scalingGroupId string, instanceIds []string) error
- func (me *AsService) ClearScalingGroupInstance(ctx context.Context, scalingGroupId string) error
- func (me *AsService) DeleteAsLoadBalancerById(ctx context.Context, autoScalingGroupId string) (errRet error)
- func (me *AsService) DeleteLaunchConfiguration(ctx context.Context, configurationId string) error
- func (me *AsService) DeleteLifecycleHook(ctx context.Context, lifecycleHookId string) error
- func (me *AsService) DeleteNotification(ctx context.Context, notificationId string) error
- func (me *AsService) DeleteScalingGroup(ctx context.Context, scalingGroupId string) error
- func (me *AsService) DeleteScalingPolicy(ctx context.Context, scalingPolicyId string) error
- func (me *AsService) DeleteScheduledAction(ctx context.Context, scheduledActonId string) error
- func (me *AsService) DescribeActivityById(ctx context.Context, activityId string) (status string, errRet error)
- func (me *AsService) DescribeAsAdvices(ctx context.Context, param map[string]interface{}) (advices []*as.AutoScalingAdvice, errRet error)
- func (me *AsService) DescribeAsInstancesByFilter(ctx context.Context, param map[string]interface{}) (instances []*as.Instance, errRet error)
- func (me *AsService) DescribeAsLastActivity(ctx context.Context, param map[string]interface{}) (lastActivity []*as.Activity, errRet error)
- func (me *AsService) DescribeAsLimits(ctx context.Context) (limits *as.DescribeAccountLimitsResponseParams, errRet error)
- func (me *AsService) DescribeAsLoadBalancerById(ctx context.Context, autoScalingGroupId string) (loadBalancer *as.AutoScalingGroup, errRet error)
- func (me *AsService) DescribeAutoScalingAttachment(ctx context.Context, scalingGroupId string, fully bool) (instanceIds []string, errRet error)
- func (me *AsService) DescribeAutoScalingGroupByFilter(ctx context.Context, scalingGroupId, configurationId, scalingGroupName string, ...) (scalingGroups []*as.AutoScalingGroup, errRet error)
- func (me *AsService) DescribeAutoScalingGroupById(ctx context.Context, scalingGroupId string) (scalingGroup *as.AutoScalingGroup, has int, errRet error)
- func (me *AsService) DescribeLaunchConfigurationByFilter(ctx context.Context, configurationId, configurationName string) (configs []*as.LaunchConfiguration, errRet error)
- func (me *AsService) DescribeLaunchConfigurationById(ctx context.Context, configurationId string) (config *as.LaunchConfiguration, has int, errRet error)
- func (me *AsService) DescribeLifecycleHookById(ctx context.Context, lifecycleHookId string) (lifecycleHook *as.LifecycleHook, has int, errRet error)
- func (me *AsService) DescribeNotificationById(ctx context.Context, notificationId string) (notification *as.AutoScalingNotification, has int, errRet error)
- func (me *AsService) DescribeScalingPolicyByFilter(ctx context.Context, policyId, policyName, scalingGroupId string) (scalingPolicies []*as.ScalingPolicy, errRet error)
- func (me *AsService) DescribeScalingPolicyById(ctx context.Context, scalingPolicyId string) (scalingPolicy *as.ScalingPolicy, has int, errRet error)
- func (me *AsService) DescribeScheduledActionById(ctx context.Context, scheduledActionId string) (scheduledAction *as.ScheduledAction, has int, errRet error)
- func (me *AsService) DetachInstances(ctx context.Context, scalingGroupId string, instanceIds []string) error
- func (me *AsService) ModifyAutoScalingGroup(ctx context.Context, request *as.ModifyAutoScalingGroupRequest) (errRet error)
Constants ¶
View Source
const ( SYSTEM_DISK_TYPE_LOCAL_BASIC = "LOCAL_BASIC" SYSTEM_DISK_TYPE_LOCAL_SSD = "LOCAL_SSD" SYSTEM_DISK_TYPE_CLOUD_BASIC = "CLOUD_BASIC" SYSTEM_DISK_TYPE_CLOUD_PREMIUM = "CLOUD_PREMIUM" SYSTEM_DISK_TYPE_CLOUD_SSD = "CLOUD_SSD" SYSTEM_DISK_TYPE_CLOUD_HSSD = "CLOUD_HSSD" SYSTEM_DISK_TYPE_CLOUD_BSSD = "CLOUD_BSSD" SYSTEM_DISK_TYPE_CLOUD_TSSD = "CLOUD_TSSD" )
View Source
const ( INTERNET_CHARGE_TYPE_BANDWIDTH_PREPAID = "BANDWIDTH_PREPAID" INTERNET_CHARGE_TYPE_TRAFFIC_POSTPAID_BY_HOUR = "TRAFFIC_POSTPAID_BY_HOUR" INTERNET_CHARGE_TYPE_BANDWIDTH_POSTPAID_BY_HOUR = "BANDWIDTH_POSTPAID_BY_HOUR" INTERNET_CHARGE_TYPE_BANDWIDTH_PACKAGE = "BANDWIDTH_PACKAGE" )
View Source
const ( INSTANCE_CHARGE_TYPE_POSTPAID = "POSTPAID_BY_HOUR" INSTANCE_CHARGE_TYPE_SPOTPAID = "SPOTPAID" INSTANCE_CHARGE_TYPE_PREPAID = "PREPAID" )
View Source
const ( SCALING_GROUP_TERMINATION_POLICY_NEWEST_INSTANCE = "NEWEST_INSTANCE" SCALING_GROUP_TERMINATION_POLICY_OLDEST_INSTANCE = "OLDEST_INSTANCE" )
View Source
const ( SCALING_GROUP_RETRY_POLICY_IMMEDIATE_RETRY = "IMMEDIATE_RETRY" SCALING_GROUP_RETRY_POLICY_NO_RETRY = "NO_RETRY" SCALING_GROUP_RETRY_POLICY_INCREMENTAL_INTERVALS = "INCREMENTAL_INTERVALS" )
View Source
const ( SCALING_DISK_TYPE_POLICY_ORIGINAL = "ORIGINAL" SCALING_DISK_TYPE_POLICY_AUTOMATIC = "AUTOMATIC" )
View Source
const ( INSTANCE_NAME_ORIGINAL = "ORIGINAL" INSTANCE_NAME_UNIQUE = "UNIQUE" )
View Source
const ( SCALING_GROUP_ADJUSTMENT_TYPE_CHANGE_IN_CAPACITY = "CHANGE_IN_CAPACITY" SCALING_GROUP_ADJUSTMENT_TYPE_EXACT_CAPACITY = "EXACT_CAPACITY" SCALING_GROUP_ADJUSTMENT_TYPE_PERCENT_CHANGE_IN_CAPACITY = "PERCENT_CHANGE_IN_CAPACITY" )
View Source
const ( SCALING_GROUP_COMPARISON_OPERATOR_GREATER = "GREATER_THAN" SCALING_GROUP_COMPARISON_OPERATOR_GREATER_EQUAL = "GREATER_THAN_OR_EQUAL_TO" SCALING_GROUP_COMPARISON_OPERATOR_LESS = "LESS_THAN" SCALING_GROUP_COMPARISON_OPERATOR_LESS_EQUAL = "LESS_THAN_OR_EQUAL_TO" SCALING_GROUP_COMPARISON_OPERATOR_EQUAL = "EQUAL_TO" SCALING_GROUP_COMPARISON_OPERATOR_NOT_EQUAL = "NOT_EQUAL_TO" )
View Source
const ( SCALING_GROUP_METRIC_NAME_CPU_UTILIZATION = "CPU_UTILIZATION" SCALING_GROUP_METRIC_NAME_MEM_UTILIZATION = "MEM_UTILIZATION" SCALING_GROUP_METRIC_NAME_LAN_TRAFFIC_OUT = "LAN_TRAFFIC_OUT" SCALING_GROUP_METRIC_NAME_LAN_TRAFFIC_IN = "LAN_TRAFFIC_IN" SCALING_GROUP_METRIC_NAME_WAN_TRAFFIC_OUT = "WAN_TRAFFIC_OUT" SCALING_GROUP_METRIC_NAME_WAN_TRAFFIC_IN = "WAN_TRAFFIC_IN" )
View Source
const ( SCALING_GROUP_STATISTIC_AVERAGE = "AVERAGE" SCALING_GROUP_STATISTIC_MAXIMUM = "MAXIMUM" SCALING_GROUP_STATISTIC_MINIMUM = "MINIMUM" )
View Source
const ( SCALING_GROUP_NOTIFICATION_TYPE_SCALE_OUT_SUCCESS = "SCALE_OUT_SUCCESSFUL" SCALING_GROUP_NOTIFICATION_TYPE_SCALE_OUT_FAILED = "SCALE_OUT_FAILED" SCALING_GROUP_NOTIFICATION_TYPE_SCALE_IN_SUCCESS = "SCALE_IN_SUCCESSFUL" SCALING_GROUP_NOTIFICATION_TYPE_SCALE_IN_FAILED = "SCALE_IN_FAILED" SCALING_GROUP_NOTIFICATION_TYPE_REPLACE_SUCCESS = "REPLACE_UNHEALTHY_INSTANCE_SUCCESSFUL" SCALING_GROUP_NOTIFICATION_TYPE_REPLACE_FAILED = "REPLACE_UNHEALTHY_INSTANCE_FAILED" )
View Source
const ( SCALING_GROUP_ACTIVITY_STATUS_INIT = "INIT" SCALING_GROUP_ACTIVITY_STATUS_RUNNING = "RUNNING" SCALING_GROUP_ACTIVITY_STATUS_SUCCESSFUL = "SUCCESSFUL" SCALING_GROUP_ACTIVITY_STATUS_PARTIALLY_SUCCESSFUL = "PARTIALLY_SUCCESSFUL" SCALING_GROUP_ACTIVITY_STATUS_FAILED = "FAILED" SCALING_GROUP_ACTIVITY_STATUS_CANCELLED = "CANCELLED" )
View Source
const ( AsScheduleNotFound = "ResourceNotFound.ScheduledActionNotFound" AsScalingGroupInProgress = "ResourceInUse.ActivityInProgress" AsScalingGroupInstanceInGroup = "ResourceInUse.InstanceInGroup" AsScalingGroupNotFound = "ResourceNotFound.AutoScalingGroupNotFound" SCALING_GROUP_IN_ACTIVITY_STATUS = "IN_ACTIVITY" SCALING_GROUP_NOT_IN_ACTIVITY_STATUS = "NOT_IN_ACTIVITY" )
View Source
const ( MultiZoneSubnetPolicyPriority = "PRIORITY" MultiZoneSubnetPolicyEquality = "EQUALITY" )
View Source
const ( SCALING_MODE_CLASSIC = "CLASSIC_SCALING" SCALING_MODE_WAKE_UP_STOPPED = "WAKE_UP_STOPPED_SCALING" )
Variables ¶
View Source
var INSTANCE_NAME_STYLE = []string{ INSTANCE_NAME_ORIGINAL, INSTANCE_NAME_UNIQUE, }
View Source
var INTERNET_CHARGE_ALLOW_TYPE = []string{ INTERNET_CHARGE_TYPE_BANDWIDTH_PREPAID, INTERNET_CHARGE_TYPE_TRAFFIC_POSTPAID_BY_HOUR, INTERNET_CHARGE_TYPE_BANDWIDTH_POSTPAID_BY_HOUR, INTERNET_CHARGE_TYPE_BANDWIDTH_PACKAGE, }
View Source
var SCALING_DISK_TYPE_ALLOW_POLICY = []string{ SCALING_DISK_TYPE_POLICY_ORIGINAL, SCALING_DISK_TYPE_POLICY_AUTOMATIC, }
View Source
var SCALING_GROUP_ADJUSTMENT_TYPE = []string{ SCALING_GROUP_ADJUSTMENT_TYPE_CHANGE_IN_CAPACITY, SCALING_GROUP_ADJUSTMENT_TYPE_EXACT_CAPACITY, SCALING_GROUP_ADJUSTMENT_TYPE_PERCENT_CHANGE_IN_CAPACITY, }
View Source
var SCALING_GROUP_COMPARISON_OPERATOR = []string{ SCALING_GROUP_COMPARISON_OPERATOR_GREATER, SCALING_GROUP_COMPARISON_OPERATOR_GREATER_EQUAL, SCALING_GROUP_COMPARISON_OPERATOR_LESS, SCALING_GROUP_COMPARISON_OPERATOR_LESS_EQUAL, SCALING_GROUP_COMPARISON_OPERATOR_EQUAL, SCALING_GROUP_COMPARISON_OPERATOR_NOT_EQUAL, }
View Source
var SCALING_GROUP_METRIC_NAME = []string{ SCALING_GROUP_METRIC_NAME_CPU_UTILIZATION, SCALING_GROUP_METRIC_NAME_MEM_UTILIZATION, SCALING_GROUP_METRIC_NAME_LAN_TRAFFIC_OUT, SCALING_GROUP_METRIC_NAME_LAN_TRAFFIC_IN, SCALING_GROUP_METRIC_NAME_WAN_TRAFFIC_OUT, SCALING_GROUP_METRIC_NAME_WAN_TRAFFIC_IN, }
View Source
var SCALING_GROUP_NOTIFICATION_TYPE = []string{ SCALING_GROUP_NOTIFICATION_TYPE_SCALE_OUT_SUCCESS, SCALING_GROUP_NOTIFICATION_TYPE_SCALE_OUT_FAILED, SCALING_GROUP_NOTIFICATION_TYPE_SCALE_IN_SUCCESS, SCALING_GROUP_NOTIFICATION_TYPE_SCALE_IN_FAILED, SCALING_GROUP_NOTIFICATION_TYPE_REPLACE_SUCCESS, SCALING_GROUP_NOTIFICATION_TYPE_REPLACE_FAILED, }
View Source
var SCALING_GROUP_STATISTIC = []string{ SCALING_GROUP_STATISTIC_AVERAGE, SCALING_GROUP_STATISTIC_MAXIMUM, SCALING_GROUP_STATISTIC_MINIMUM, }
Functions ¶
func ResourceTencentCloudAsLoadBalancer ¶ added in v1.81.62
Types ¶
type AsService ¶
type AsService struct {
// contains filtered or unexported fields
}
func NewAsService ¶
func NewAsService(client *connectivity.TencentCloudClient) AsService
func (*AsService) AttachInstances ¶
func (*AsService) ClearScalingGroupInstance ¶
set the scaling group desired capacity to 0
func (*AsService) DeleteAsLoadBalancerById ¶
func (*AsService) DeleteLaunchConfiguration ¶
func (*AsService) DeleteLifecycleHook ¶
func (*AsService) DeleteNotification ¶
func (*AsService) DeleteScalingGroup ¶
func (*AsService) DeleteScalingPolicy ¶
func (*AsService) DeleteScheduledAction ¶
func (*AsService) DescribeActivityById ¶
func (*AsService) DescribeAsAdvices ¶
func (*AsService) DescribeAsInstancesByFilter ¶
func (*AsService) DescribeAsLastActivity ¶
func (*AsService) DescribeAsLimits ¶
func (*AsService) DescribeAsLoadBalancerById ¶
func (*AsService) DescribeAutoScalingAttachment ¶
func (*AsService) DescribeAutoScalingGroupByFilter ¶
func (*AsService) DescribeAutoScalingGroupById ¶
func (*AsService) DescribeLaunchConfigurationByFilter ¶
func (*AsService) DescribeLaunchConfigurationById ¶
func (*AsService) DescribeLifecycleHookById ¶
func (*AsService) DescribeNotificationById ¶
func (*AsService) DescribeScalingPolicyByFilter ¶
func (*AsService) DescribeScalingPolicyById ¶
func (*AsService) DescribeScheduledActionById ¶
func (*AsService) DetachInstances ¶
func (*AsService) ModifyAutoScalingGroup ¶
Source Files ¶
- data_source_tc_as_advices.go
- data_source_tc_as_instances.go
- data_source_tc_as_last_activity.go
- data_source_tc_as_limits.go
- data_source_tc_as_scaling_configs.go
- data_source_tc_as_scaling_groups.go
- data_source_tc_as_scaling_policies.go
- extension_as.go
- resource_tc_as_attachment.go
- resource_tc_as_complete_lifecycle.go
- resource_tc_as_execute_scaling_policy.go
- resource_tc_as_lifecycle_hook.go
- resource_tc_as_load_balancer.go
- resource_tc_as_notification.go
- resource_tc_as_protect_instances.go
- resource_tc_as_remove_instances.go
- resource_tc_as_scale_in_instances.go
- resource_tc_as_scale_out_instances.go
- resource_tc_as_scaling_config.go
- resource_tc_as_scaling_group.go
- resource_tc_as_scaling_group_status.go
- resource_tc_as_scaling_policy.go
- resource_tc_as_schedule.go
- resource_tc_as_start_instances.go
- resource_tc_as_stop_instances.go
- service_tencentcloud_as.go
Click to show internal directories.
Click to hide internal directories.