Documentation ¶
Index ¶
- Constants
- type Activity
- type ActivtyRelatedInstance
- type Advice
- type AttachInstancesRequest
- type AttachInstancesRequestParams
- type AttachInstancesResponse
- type AttachInstancesResponseParams
- type AttachLoadBalancersRequest
- type AttachLoadBalancersRequestParams
- type AttachLoadBalancersResponse
- type AttachLoadBalancersResponseParams
- type AutoScalingAdvice
- type AutoScalingGroup
- type AutoScalingGroupAbstract
- type AutoScalingNotification
- type ClearLaunchConfigurationAttributesRequest
- type ClearLaunchConfigurationAttributesRequestParams
- type ClearLaunchConfigurationAttributesResponse
- type ClearLaunchConfigurationAttributesResponseParams
- type Client
- func (c *Client) AttachInstances(request *AttachInstancesRequest) (response *AttachInstancesResponse, err error)
- func (c *Client) AttachInstancesWithContext(ctx context.Context, request *AttachInstancesRequest) (response *AttachInstancesResponse, err error)
- func (c *Client) AttachLoadBalancers(request *AttachLoadBalancersRequest) (response *AttachLoadBalancersResponse, err error)
- func (c *Client) AttachLoadBalancersWithContext(ctx context.Context, request *AttachLoadBalancersRequest) (response *AttachLoadBalancersResponse, err error)
- func (c *Client) ClearLaunchConfigurationAttributes(request *ClearLaunchConfigurationAttributesRequest) (response *ClearLaunchConfigurationAttributesResponse, err error)
- func (c *Client) ClearLaunchConfigurationAttributesWithContext(ctx context.Context, request *ClearLaunchConfigurationAttributesRequest) (response *ClearLaunchConfigurationAttributesResponse, err error)
- func (c *Client) CompleteLifecycleAction(request *CompleteLifecycleActionRequest) (response *CompleteLifecycleActionResponse, err error)
- func (c *Client) CompleteLifecycleActionWithContext(ctx context.Context, request *CompleteLifecycleActionRequest) (response *CompleteLifecycleActionResponse, err error)
- func (c *Client) CreateAutoScalingGroup(request *CreateAutoScalingGroupRequest) (response *CreateAutoScalingGroupResponse, err error)
- func (c *Client) CreateAutoScalingGroupFromInstance(request *CreateAutoScalingGroupFromInstanceRequest) (response *CreateAutoScalingGroupFromInstanceResponse, err error)
- func (c *Client) CreateAutoScalingGroupFromInstanceWithContext(ctx context.Context, request *CreateAutoScalingGroupFromInstanceRequest) (response *CreateAutoScalingGroupFromInstanceResponse, err error)
- func (c *Client) CreateAutoScalingGroupWithContext(ctx context.Context, request *CreateAutoScalingGroupRequest) (response *CreateAutoScalingGroupResponse, err error)
- func (c *Client) CreateLaunchConfiguration(request *CreateLaunchConfigurationRequest) (response *CreateLaunchConfigurationResponse, err error)
- func (c *Client) CreateLaunchConfigurationWithContext(ctx context.Context, request *CreateLaunchConfigurationRequest) (response *CreateLaunchConfigurationResponse, err error)
- func (c *Client) CreateLifecycleHook(request *CreateLifecycleHookRequest) (response *CreateLifecycleHookResponse, err error)
- func (c *Client) CreateLifecycleHookWithContext(ctx context.Context, request *CreateLifecycleHookRequest) (response *CreateLifecycleHookResponse, err error)
- func (c *Client) CreateNotificationConfiguration(request *CreateNotificationConfigurationRequest) (response *CreateNotificationConfigurationResponse, err error)
- func (c *Client) CreateNotificationConfigurationWithContext(ctx context.Context, request *CreateNotificationConfigurationRequest) (response *CreateNotificationConfigurationResponse, err error)
- func (c *Client) CreateScalingPolicy(request *CreateScalingPolicyRequest) (response *CreateScalingPolicyResponse, err error)
- func (c *Client) CreateScalingPolicyWithContext(ctx context.Context, request *CreateScalingPolicyRequest) (response *CreateScalingPolicyResponse, err error)
- func (c *Client) CreateScheduledAction(request *CreateScheduledActionRequest) (response *CreateScheduledActionResponse, err error)
- func (c *Client) CreateScheduledActionWithContext(ctx context.Context, request *CreateScheduledActionRequest) (response *CreateScheduledActionResponse, err error)
- func (c *Client) DeleteAutoScalingGroup(request *DeleteAutoScalingGroupRequest) (response *DeleteAutoScalingGroupResponse, err error)
- func (c *Client) DeleteAutoScalingGroupWithContext(ctx context.Context, request *DeleteAutoScalingGroupRequest) (response *DeleteAutoScalingGroupResponse, err error)
- func (c *Client) DeleteLaunchConfiguration(request *DeleteLaunchConfigurationRequest) (response *DeleteLaunchConfigurationResponse, err error)
- func (c *Client) DeleteLaunchConfigurationWithContext(ctx context.Context, request *DeleteLaunchConfigurationRequest) (response *DeleteLaunchConfigurationResponse, err error)
- func (c *Client) DeleteLifecycleHook(request *DeleteLifecycleHookRequest) (response *DeleteLifecycleHookResponse, err error)
- func (c *Client) DeleteLifecycleHookWithContext(ctx context.Context, request *DeleteLifecycleHookRequest) (response *DeleteLifecycleHookResponse, err error)
- func (c *Client) DeleteNotificationConfiguration(request *DeleteNotificationConfigurationRequest) (response *DeleteNotificationConfigurationResponse, err error)
- func (c *Client) DeleteNotificationConfigurationWithContext(ctx context.Context, request *DeleteNotificationConfigurationRequest) (response *DeleteNotificationConfigurationResponse, err error)
- func (c *Client) DeleteScalingPolicy(request *DeleteScalingPolicyRequest) (response *DeleteScalingPolicyResponse, err error)
- func (c *Client) DeleteScalingPolicyWithContext(ctx context.Context, request *DeleteScalingPolicyRequest) (response *DeleteScalingPolicyResponse, err error)
- func (c *Client) DeleteScheduledAction(request *DeleteScheduledActionRequest) (response *DeleteScheduledActionResponse, err error)
- func (c *Client) DeleteScheduledActionWithContext(ctx context.Context, request *DeleteScheduledActionRequest) (response *DeleteScheduledActionResponse, err error)
- func (c *Client) DescribeAccountLimits(request *DescribeAccountLimitsRequest) (response *DescribeAccountLimitsResponse, err error)
- func (c *Client) DescribeAccountLimitsWithContext(ctx context.Context, request *DescribeAccountLimitsRequest) (response *DescribeAccountLimitsResponse, err error)
- func (c *Client) DescribeAutoScalingActivities(request *DescribeAutoScalingActivitiesRequest) (response *DescribeAutoScalingActivitiesResponse, err error)
- func (c *Client) DescribeAutoScalingActivitiesWithContext(ctx context.Context, request *DescribeAutoScalingActivitiesRequest) (response *DescribeAutoScalingActivitiesResponse, err error)
- func (c *Client) DescribeAutoScalingAdvices(request *DescribeAutoScalingAdvicesRequest) (response *DescribeAutoScalingAdvicesResponse, err error)
- func (c *Client) DescribeAutoScalingAdvicesWithContext(ctx context.Context, request *DescribeAutoScalingAdvicesRequest) (response *DescribeAutoScalingAdvicesResponse, err error)
- func (c *Client) DescribeAutoScalingGroupLastActivities(request *DescribeAutoScalingGroupLastActivitiesRequest) (response *DescribeAutoScalingGroupLastActivitiesResponse, err error)
- func (c *Client) DescribeAutoScalingGroupLastActivitiesWithContext(ctx context.Context, request *DescribeAutoScalingGroupLastActivitiesRequest) (response *DescribeAutoScalingGroupLastActivitiesResponse, err error)
- func (c *Client) DescribeAutoScalingGroups(request *DescribeAutoScalingGroupsRequest) (response *DescribeAutoScalingGroupsResponse, err error)
- func (c *Client) DescribeAutoScalingGroupsWithContext(ctx context.Context, request *DescribeAutoScalingGroupsRequest) (response *DescribeAutoScalingGroupsResponse, err error)
- func (c *Client) DescribeAutoScalingInstances(request *DescribeAutoScalingInstancesRequest) (response *DescribeAutoScalingInstancesResponse, err error)
- func (c *Client) DescribeAutoScalingInstancesWithContext(ctx context.Context, request *DescribeAutoScalingInstancesRequest) (response *DescribeAutoScalingInstancesResponse, err error)
- func (c *Client) DescribeLaunchConfigurations(request *DescribeLaunchConfigurationsRequest) (response *DescribeLaunchConfigurationsResponse, err error)
- func (c *Client) DescribeLaunchConfigurationsWithContext(ctx context.Context, request *DescribeLaunchConfigurationsRequest) (response *DescribeLaunchConfigurationsResponse, err error)
- func (c *Client) DescribeLifecycleHooks(request *DescribeLifecycleHooksRequest) (response *DescribeLifecycleHooksResponse, err error)
- func (c *Client) DescribeLifecycleHooksWithContext(ctx context.Context, request *DescribeLifecycleHooksRequest) (response *DescribeLifecycleHooksResponse, err error)
- func (c *Client) DescribeNotificationConfigurations(request *DescribeNotificationConfigurationsRequest) (response *DescribeNotificationConfigurationsResponse, err error)
- func (c *Client) DescribeNotificationConfigurationsWithContext(ctx context.Context, request *DescribeNotificationConfigurationsRequest) (response *DescribeNotificationConfigurationsResponse, err error)
- func (c *Client) DescribeScalingPolicies(request *DescribeScalingPoliciesRequest) (response *DescribeScalingPoliciesResponse, err error)
- func (c *Client) DescribeScalingPoliciesWithContext(ctx context.Context, request *DescribeScalingPoliciesRequest) (response *DescribeScalingPoliciesResponse, err error)
- func (c *Client) DescribeScheduledActions(request *DescribeScheduledActionsRequest) (response *DescribeScheduledActionsResponse, err error)
- func (c *Client) DescribeScheduledActionsWithContext(ctx context.Context, request *DescribeScheduledActionsRequest) (response *DescribeScheduledActionsResponse, err error)
- func (c *Client) DetachInstances(request *DetachInstancesRequest) (response *DetachInstancesResponse, err error)
- func (c *Client) DetachInstancesWithContext(ctx context.Context, request *DetachInstancesRequest) (response *DetachInstancesResponse, err error)
- func (c *Client) DetachLoadBalancers(request *DetachLoadBalancersRequest) (response *DetachLoadBalancersResponse, err error)
- func (c *Client) DetachLoadBalancersWithContext(ctx context.Context, request *DetachLoadBalancersRequest) (response *DetachLoadBalancersResponse, err error)
- func (c *Client) DisableAutoScalingGroup(request *DisableAutoScalingGroupRequest) (response *DisableAutoScalingGroupResponse, err error)
- func (c *Client) DisableAutoScalingGroupWithContext(ctx context.Context, request *DisableAutoScalingGroupRequest) (response *DisableAutoScalingGroupResponse, err error)
- func (c *Client) EnableAutoScalingGroup(request *EnableAutoScalingGroupRequest) (response *EnableAutoScalingGroupResponse, err error)
- func (c *Client) EnableAutoScalingGroupWithContext(ctx context.Context, request *EnableAutoScalingGroupRequest) (response *EnableAutoScalingGroupResponse, err error)
- func (c *Client) ExecuteScalingPolicy(request *ExecuteScalingPolicyRequest) (response *ExecuteScalingPolicyResponse, err error)
- func (c *Client) ExecuteScalingPolicyWithContext(ctx context.Context, request *ExecuteScalingPolicyRequest) (response *ExecuteScalingPolicyResponse, err error)
- func (c *Client) ModifyAutoScalingGroup(request *ModifyAutoScalingGroupRequest) (response *ModifyAutoScalingGroupResponse, err error)
- func (c *Client) ModifyAutoScalingGroupWithContext(ctx context.Context, request *ModifyAutoScalingGroupRequest) (response *ModifyAutoScalingGroupResponse, err error)
- func (c *Client) ModifyDesiredCapacity(request *ModifyDesiredCapacityRequest) (response *ModifyDesiredCapacityResponse, err error)
- func (c *Client) ModifyDesiredCapacityWithContext(ctx context.Context, request *ModifyDesiredCapacityRequest) (response *ModifyDesiredCapacityResponse, err error)
- func (c *Client) ModifyLaunchConfigurationAttributes(request *ModifyLaunchConfigurationAttributesRequest) (response *ModifyLaunchConfigurationAttributesResponse, err error)
- func (c *Client) ModifyLaunchConfigurationAttributesWithContext(ctx context.Context, request *ModifyLaunchConfigurationAttributesRequest) (response *ModifyLaunchConfigurationAttributesResponse, err error)
- func (c *Client) ModifyLifecycleHook(request *ModifyLifecycleHookRequest) (response *ModifyLifecycleHookResponse, err error)
- func (c *Client) ModifyLifecycleHookWithContext(ctx context.Context, request *ModifyLifecycleHookRequest) (response *ModifyLifecycleHookResponse, err error)
- func (c *Client) ModifyLoadBalancerTargetAttributes(request *ModifyLoadBalancerTargetAttributesRequest) (response *ModifyLoadBalancerTargetAttributesResponse, err error)
- func (c *Client) ModifyLoadBalancerTargetAttributesWithContext(ctx context.Context, request *ModifyLoadBalancerTargetAttributesRequest) (response *ModifyLoadBalancerTargetAttributesResponse, err error)
- func (c *Client) ModifyLoadBalancers(request *ModifyLoadBalancersRequest) (response *ModifyLoadBalancersResponse, err error)
- func (c *Client) ModifyLoadBalancersWithContext(ctx context.Context, request *ModifyLoadBalancersRequest) (response *ModifyLoadBalancersResponse, err error)
- func (c *Client) ModifyNotificationConfiguration(request *ModifyNotificationConfigurationRequest) (response *ModifyNotificationConfigurationResponse, err error)
- func (c *Client) ModifyNotificationConfigurationWithContext(ctx context.Context, request *ModifyNotificationConfigurationRequest) (response *ModifyNotificationConfigurationResponse, err error)
- func (c *Client) ModifyScalingPolicy(request *ModifyScalingPolicyRequest) (response *ModifyScalingPolicyResponse, err error)
- func (c *Client) ModifyScalingPolicyWithContext(ctx context.Context, request *ModifyScalingPolicyRequest) (response *ModifyScalingPolicyResponse, err error)
- func (c *Client) ModifyScheduledAction(request *ModifyScheduledActionRequest) (response *ModifyScheduledActionResponse, err error)
- func (c *Client) ModifyScheduledActionWithContext(ctx context.Context, request *ModifyScheduledActionRequest) (response *ModifyScheduledActionResponse, err error)
- func (c *Client) RemoveInstances(request *RemoveInstancesRequest) (response *RemoveInstancesResponse, err error)
- func (c *Client) RemoveInstancesWithContext(ctx context.Context, request *RemoveInstancesRequest) (response *RemoveInstancesResponse, err error)
- func (c *Client) ScaleInInstances(request *ScaleInInstancesRequest) (response *ScaleInInstancesResponse, err error)
- func (c *Client) ScaleInInstancesWithContext(ctx context.Context, request *ScaleInInstancesRequest) (response *ScaleInInstancesResponse, err error)
- func (c *Client) ScaleOutInstances(request *ScaleOutInstancesRequest) (response *ScaleOutInstancesResponse, err error)
- func (c *Client) ScaleOutInstancesWithContext(ctx context.Context, request *ScaleOutInstancesRequest) (response *ScaleOutInstancesResponse, err error)
- func (c *Client) SetInstancesProtection(request *SetInstancesProtectionRequest) (response *SetInstancesProtectionResponse, err error)
- func (c *Client) SetInstancesProtectionWithContext(ctx context.Context, request *SetInstancesProtectionRequest) (response *SetInstancesProtectionResponse, err error)
- func (c *Client) StartAutoScalingInstances(request *StartAutoScalingInstancesRequest) (response *StartAutoScalingInstancesResponse, err error)
- func (c *Client) StartAutoScalingInstancesWithContext(ctx context.Context, request *StartAutoScalingInstancesRequest) (response *StartAutoScalingInstancesResponse, err error)
- func (c *Client) StopAutoScalingInstances(request *StopAutoScalingInstancesRequest) (response *StopAutoScalingInstancesResponse, err error)
- func (c *Client) StopAutoScalingInstancesWithContext(ctx context.Context, request *StopAutoScalingInstancesRequest) (response *StopAutoScalingInstancesResponse, err error)
- func (c *Client) UpgradeLaunchConfiguration(request *UpgradeLaunchConfigurationRequest) (response *UpgradeLaunchConfigurationResponse, err error)
- func (c *Client) UpgradeLaunchConfigurationWithContext(ctx context.Context, request *UpgradeLaunchConfigurationRequest) (response *UpgradeLaunchConfigurationResponse, err error)
- func (c *Client) UpgradeLifecycleHook(request *UpgradeLifecycleHookRequest) (response *UpgradeLifecycleHookResponse, err error)
- func (c *Client) UpgradeLifecycleHookWithContext(ctx context.Context, request *UpgradeLifecycleHookRequest) (response *UpgradeLifecycleHookResponse, err error)
- type CompleteLifecycleActionRequest
- type CompleteLifecycleActionRequestParams
- type CompleteLifecycleActionResponse
- type CompleteLifecycleActionResponseParams
- type CreateAutoScalingGroupFromInstanceRequest
- type CreateAutoScalingGroupFromInstanceRequestParams
- type CreateAutoScalingGroupFromInstanceResponse
- type CreateAutoScalingGroupFromInstanceResponseParams
- type CreateAutoScalingGroupRequest
- type CreateAutoScalingGroupRequestParams
- type CreateAutoScalingGroupResponse
- type CreateAutoScalingGroupResponseParams
- type CreateLaunchConfigurationRequest
- type CreateLaunchConfigurationRequestParams
- type CreateLaunchConfigurationResponse
- type CreateLaunchConfigurationResponseParams
- type CreateLifecycleHookRequest
- type CreateLifecycleHookRequestParams
- type CreateLifecycleHookResponse
- type CreateLifecycleHookResponseParams
- type CreateNotificationConfigurationRequest
- type CreateNotificationConfigurationRequestParams
- type CreateNotificationConfigurationResponse
- type CreateNotificationConfigurationResponseParams
- type CreateScalingPolicyRequest
- type CreateScalingPolicyRequestParams
- type CreateScalingPolicyResponse
- type CreateScalingPolicyResponseParams
- type CreateScheduledActionRequest
- type CreateScheduledActionRequestParams
- type CreateScheduledActionResponse
- type CreateScheduledActionResponseParams
- type DataDisk
- type DeleteAutoScalingGroupRequest
- type DeleteAutoScalingGroupRequestParams
- type DeleteAutoScalingGroupResponse
- type DeleteAutoScalingGroupResponseParams
- type DeleteLaunchConfigurationRequest
- type DeleteLaunchConfigurationRequestParams
- type DeleteLaunchConfigurationResponse
- type DeleteLaunchConfigurationResponseParams
- type DeleteLifecycleHookRequest
- type DeleteLifecycleHookRequestParams
- type DeleteLifecycleHookResponse
- type DeleteLifecycleHookResponseParams
- type DeleteNotificationConfigurationRequest
- type DeleteNotificationConfigurationRequestParams
- type DeleteNotificationConfigurationResponse
- type DeleteNotificationConfigurationResponseParams
- type DeleteScalingPolicyRequest
- type DeleteScalingPolicyRequestParams
- type DeleteScalingPolicyResponse
- type DeleteScalingPolicyResponseParams
- type DeleteScheduledActionRequest
- type DeleteScheduledActionRequestParams
- type DeleteScheduledActionResponse
- type DeleteScheduledActionResponseParams
- type DescribeAccountLimitsRequest
- type DescribeAccountLimitsRequestParams
- type DescribeAccountLimitsResponse
- type DescribeAccountLimitsResponseParams
- type DescribeAutoScalingActivitiesRequest
- type DescribeAutoScalingActivitiesRequestParams
- type DescribeAutoScalingActivitiesResponse
- type DescribeAutoScalingActivitiesResponseParams
- type DescribeAutoScalingAdvicesRequest
- type DescribeAutoScalingAdvicesRequestParams
- type DescribeAutoScalingAdvicesResponse
- type DescribeAutoScalingAdvicesResponseParams
- type DescribeAutoScalingGroupLastActivitiesRequest
- type DescribeAutoScalingGroupLastActivitiesRequestParams
- type DescribeAutoScalingGroupLastActivitiesResponse
- type DescribeAutoScalingGroupLastActivitiesResponseParams
- type DescribeAutoScalingGroupsRequest
- type DescribeAutoScalingGroupsRequestParams
- type DescribeAutoScalingGroupsResponse
- type DescribeAutoScalingGroupsResponseParams
- type DescribeAutoScalingInstancesRequest
- type DescribeAutoScalingInstancesRequestParams
- type DescribeAutoScalingInstancesResponse
- type DescribeAutoScalingInstancesResponseParams
- type DescribeLaunchConfigurationsRequest
- type DescribeLaunchConfigurationsRequestParams
- type DescribeLaunchConfigurationsResponse
- type DescribeLaunchConfigurationsResponseParams
- type DescribeLifecycleHooksRequest
- type DescribeLifecycleHooksRequestParams
- type DescribeLifecycleHooksResponse
- type DescribeLifecycleHooksResponseParams
- type DescribeNotificationConfigurationsRequest
- type DescribeNotificationConfigurationsRequestParams
- type DescribeNotificationConfigurationsResponse
- type DescribeNotificationConfigurationsResponseParams
- type DescribeScalingPoliciesRequest
- type DescribeScalingPoliciesRequestParams
- type DescribeScalingPoliciesResponse
- type DescribeScalingPoliciesResponseParams
- type DescribeScheduledActionsRequest
- type DescribeScheduledActionsRequestParams
- type DescribeScheduledActionsResponse
- type DescribeScheduledActionsResponseParams
- type DetachInstancesRequest
- type DetachInstancesRequestParams
- type DetachInstancesResponse
- type DetachInstancesResponseParams
- type DetachLoadBalancersRequest
- type DetachLoadBalancersRequestParams
- type DetachLoadBalancersResponse
- type DetachLoadBalancersResponseParams
- type DetailedStatusMessage
- type DisableAutoScalingGroupRequest
- type DisableAutoScalingGroupRequestParams
- type DisableAutoScalingGroupResponse
- type DisableAutoScalingGroupResponseParams
- type EnableAutoScalingGroupRequest
- type EnableAutoScalingGroupRequestParams
- type EnableAutoScalingGroupResponse
- type EnableAutoScalingGroupResponseParams
- type EnhancedService
- type ExecuteScalingPolicyRequest
- type ExecuteScalingPolicyRequestParams
- type ExecuteScalingPolicyResponse
- type ExecuteScalingPolicyResponseParams
- type Filter
- type ForwardLoadBalancer
- type ForwardLoadBalancerIdentification
- type HostNameSettings
- type Instance
- type InstanceChargePrepaid
- type InstanceMarketOptionsRequest
- type InstanceNameSettings
- type InstanceTag
- type InternetAccessible
- type InvocationResult
- type LaunchConfiguration
- type LifecycleActionResultInfo
- type LifecycleCommand
- type LifecycleHook
- type LimitedLoginSettings
- type LoginSettings
- type MetricAlarm
- type ModifyAutoScalingGroupRequest
- type ModifyAutoScalingGroupRequestParams
- type ModifyAutoScalingGroupResponse
- type ModifyAutoScalingGroupResponseParams
- type ModifyDesiredCapacityRequest
- type ModifyDesiredCapacityRequestParams
- type ModifyDesiredCapacityResponse
- type ModifyDesiredCapacityResponseParams
- type ModifyLaunchConfigurationAttributesRequest
- type ModifyLaunchConfigurationAttributesRequestParams
- type ModifyLaunchConfigurationAttributesResponse
- type ModifyLaunchConfigurationAttributesResponseParams
- type ModifyLifecycleHookRequest
- type ModifyLifecycleHookRequestParams
- type ModifyLifecycleHookResponse
- type ModifyLifecycleHookResponseParams
- type ModifyLoadBalancerTargetAttributesRequest
- type ModifyLoadBalancerTargetAttributesRequestParams
- type ModifyLoadBalancerTargetAttributesResponse
- type ModifyLoadBalancerTargetAttributesResponseParams
- type ModifyLoadBalancersRequest
- type ModifyLoadBalancersRequestParams
- type ModifyLoadBalancersResponse
- type ModifyLoadBalancersResponseParams
- type ModifyNotificationConfigurationRequest
- type ModifyNotificationConfigurationRequestParams
- type ModifyNotificationConfigurationResponse
- type ModifyNotificationConfigurationResponseParams
- type ModifyScalingPolicyRequest
- type ModifyScalingPolicyRequestParams
- type ModifyScalingPolicyResponse
- type ModifyScalingPolicyResponseParams
- type ModifyScheduledActionRequest
- type ModifyScheduledActionRequestParams
- type ModifyScheduledActionResponse
- type ModifyScheduledActionResponseParams
- type NotificationTarget
- type RemoveInstancesRequest
- type RemoveInstancesRequestParams
- type RemoveInstancesResponse
- type RemoveInstancesResponseParams
- type RunAutomationServiceEnabled
- type RunMonitorServiceEnabled
- type RunSecurityServiceEnabled
- type ScaleInInstancesRequest
- type ScaleInInstancesRequestParams
- type ScaleInInstancesResponse
- type ScaleInInstancesResponseParams
- type ScaleOutInstancesRequest
- type ScaleOutInstancesRequestParams
- type ScaleOutInstancesResponse
- type ScaleOutInstancesResponseParams
- type ScalingPolicy
- type ScheduledAction
- type ServiceSettings
- type SetInstancesProtectionRequest
- type SetInstancesProtectionRequestParams
- type SetInstancesProtectionResponse
- type SetInstancesProtectionResponseParams
- type SpotMarketOptions
- type SpotMixedAllocationPolicy
- type StartAutoScalingInstancesRequest
- type StartAutoScalingInstancesRequestParams
- type StartAutoScalingInstancesResponse
- type StartAutoScalingInstancesResponseParams
- type StopAutoScalingInstancesRequest
- type StopAutoScalingInstancesRequestParams
- type StopAutoScalingInstancesResponse
- type StopAutoScalingInstancesResponseParams
- type SystemDisk
- type Tag
- type TargetAttribute
- type UpgradeLaunchConfigurationRequest
- type UpgradeLaunchConfigurationRequestParams
- type UpgradeLaunchConfigurationResponse
- type UpgradeLaunchConfigurationResponseParams
- type UpgradeLifecycleHookRequest
- type UpgradeLifecycleHookRequestParams
- type UpgradeLifecycleHookResponse
- type UpgradeLifecycleHookResponseParams
Constants ¶
const ( // The requesting account failed to pass the qualification review. ACCOUNTQUALIFICATIONRESTRICTIONS = "AccountQualificationRestrictions" // CVM API call failed. CALLCVMERROR = "CallCvmError" // No scaling activity is generated. FAILEDOPERATION_NOACTIVITYTOGENERATE = "FailedOperation.NoActivityToGenerate" // An internal error occurred. INTERNALERROR = "InternalError" // The CMQ API call failed. INTERNALERROR_CALLCMQERROR = "InternalError.CallCmqError" // The internal API call failed. INTERNALERROR_CALLERROR = "InternalError.CallError" // CLB API call failed. INTERNALERROR_CALLLBERROR = "InternalError.CallLbError" // Monitor API call failed. INTERNALERROR_CALLMONITORERROR = "InternalError.CallMonitorError" // The notification service API call failed. INTERNALERROR_CALLNOTIFICATIONERROR = "InternalError.CallNotificationError" // The STS API call failed. INTERNALERROR_CALLSTSERROR = "InternalError.CallStsError" // Failed to call the Tencent Automation Tools (TAT) API. INTERNALERROR_CALLTATERROR = "InternalError.CallTATError" // The tag API call failed. INTERNALERROR_CALLTAGERROR = "InternalError.CallTagError" // The TVPC API call failed. INTERNALERROR_CALLTVPCERROR = "InternalError.CallTvpcError" // VPC API call failed. INTERNALERROR_CALLVPCERROR = "InternalError.CallVpcError" // Exceptions occurred while invoking other services. INTERNALERROR_CALLEEERROR = "InternalError.CalleeError" // An internal request error occurred. INTERNALERROR_REQUESTERROR = "InternalError.RequestError" // The image cannot be found. INVALIDIMAGEID_NOTFOUND = "InvalidImageId.NotFound" // Invalid launch configuration. INVALIDLAUNCHCONFIGURATION = "InvalidLaunchConfiguration" // The launch configuration ID is invalid. INVALIDLAUNCHCONFIGURATIONID = "InvalidLaunchConfigurationId" // Invalid parameter. INVALIDPARAMETER = "InvalidParameter" // Invalid Action request. INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound" // Multiple parameters specified conflict and cannot co-exist. INVALIDPARAMETER_CONFLICT = "InvalidParameter.Conflict" // The `hostname` parameter is unavailable to this image. INVALIDPARAMETER_HOSTNAMEUNAVAILABLE = "InvalidParameter.HostNameUnavailable" // The parameter is invalid in a specific scenario. INVALIDPARAMETER_INSCENARIO = "InvalidParameter.InScenario" // Invalid parameter combination. INVALIDPARAMETER_INVALIDCOMBINATION = "InvalidParameter.InvalidCombination" // The specified CLB does not exist in the current scaling group. INVALIDPARAMETER_LOADBALANCERNOTINAUTOSCALINGGROUP = "InvalidParameter.LoadBalancerNotInAutoScalingGroup" // A parameter is missing. One of the two parameters must be specified. INVALIDPARAMETER_MUSTONEPARAMETER = "InvalidParameter.MustOneParameter" // INVALIDPARAMETER_PARAMETERDEPRECATED = "InvalidParameter.ParameterDeprecated" // Some parameters cannot coexist and should be deleted. INVALIDPARAMETER_PARAMETERMUSTBEDELETED = "InvalidParameter.ParameterMustBeDeleted" // The two parameters specified conflict and cannot co-exist. INVALIDPARAMETERCONFLICT = "InvalidParameterConflict" // Wrong parameter value. INVALIDPARAMETERVALUE = "InvalidParameterValue" // INVALIDPARAMETERVALUE_ACCOUNTNOTSUPPORTBANDWIDTHPACKAGEID = "InvalidParameterValue.AccountNotSupportBandwidthPackageId" // The specified base capacity cannot exceed the max capacity. INVALIDPARAMETERVALUE_BASECAPACITYTOOLARGE = "InvalidParameterValue.BaseCapacityTooLarge" // A classic CLB should be specified. INVALIDPARAMETERVALUE_CLASSICLB = "InvalidParameterValue.ClassicLb" // Conflicting notification receiver type. INVALIDPARAMETERVALUE_CONFLICTNOTIFICATIONTARGET = "InvalidParameterValue.ConflictNotificationTarget" // The cron expression specified for the scheduled task is invalid. INVALIDPARAMETERVALUE_CRONEXPRESSIONILLEGAL = "InvalidParameterValue.CronExpressionIllegal" // Exception with CVM parameter validation. INVALIDPARAMETERVALUE_CVMCONFIGURATIONERROR = "InvalidParameterValue.CvmConfigurationError" // Exception with CVM parameter validation. INVALIDPARAMETERVALUE_CVMERROR = "InvalidParameterValue.CvmError" // Duplicate CLB instances INVALIDPARAMETERVALUE_DUPLICATEDFORWARDLB = "InvalidParameterValue.DuplicatedForwardLb" // Duplicated subnet. INVALIDPARAMETERVALUE_DUPLICATEDSUBNET = "InvalidParameterValue.DuplicatedSubnet" // The end time of the scheduled task is before the start time. INVALIDPARAMETERVALUE_ENDTIMEBEFORESTARTTIME = "InvalidParameterValue.EndTimeBeforeStartTime" // Invalid filter. INVALIDPARAMETERVALUE_FILTER = "InvalidParameterValue.Filter" // A CLB should be specified. INVALIDPARAMETERVALUE_FORWARDLB = "InvalidParameterValue.ForwardLb" // The auto scaling group name already exists. INVALIDPARAMETERVALUE_GROUPNAMEDUPLICATED = "InvalidParameterValue.GroupNameDuplicated" // Invalid hostname INVALIDPARAMETERVALUE_HOSTNAMEILLEGAL = "InvalidParameterValue.HostNameIllegal" // INVALIDPARAMETERVALUE_IPV6INTERNETCHARGETYPE = "InvalidParameterValue.IPv6InternetChargeType" // The specified image does not exist. INVALIDPARAMETERVALUE_IMAGENOTFOUND = "InvalidParameterValue.ImageNotFound" // Invalid instance name INVALIDPARAMETERVALUE_INSTANCENAMEILLEGAL = "InvalidParameterValue.InstanceNameIllegal" // The instance type is not supported. INVALIDPARAMETERVALUE_INSTANCETYPENOTSUPPORTED = "InvalidParameterValue.InstanceTypeNotSupported" // Invalid scaling activity ID. INVALIDPARAMETERVALUE_INVALIDACTIVITYID = "InvalidParameterValue.InvalidActivityId" // Invalid scaling group ID. INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGGROUPID = "InvalidParameterValue.InvalidAutoScalingGroupId" // Invalid notification ID. INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGNOTIFICATIONID = "InvalidParameterValue.InvalidAutoScalingNotificationId" // Invalid alarm-triggered policy ID. INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGPOLICYID = "InvalidParameterValue.InvalidAutoScalingPolicyId" // The regions specified for CLB is invalid. INVALIDPARAMETERVALUE_INVALIDCLBREGION = "InvalidParameterValue.InvalidClbRegion" // Invalid filter condition. INVALIDPARAMETERVALUE_INVALIDFILTER = "InvalidParameterValue.InvalidFilter" // The HPC ID is invalid. INVALIDPARAMETERVALUE_INVALIDHPCCLUSTERID = "InvalidParameterValue.InvalidHpcClusterId" // Invalid image ID. INVALIDPARAMETERVALUE_INVALIDIMAGEID = "InvalidParameterValue.InvalidImageId" // Invalid instance ID. INVALIDPARAMETERVALUE_INVALIDINSTANCEID = "InvalidParameterValue.InvalidInstanceId" // Invalid instance type. INVALIDPARAMETERVALUE_INVALIDINSTANCETYPE = "InvalidParameterValue.InvalidInstanceType" // Invalid launch configuration INVALIDPARAMETERVALUE_INVALIDLAUNCHCONFIGURATION = "InvalidParameterValue.InvalidLaunchConfiguration" // Invalid launch configuration ID. INVALIDPARAMETERVALUE_INVALIDLAUNCHCONFIGURATIONID = "InvalidParameterValue.InvalidLaunchConfigurationId" // Invalid lifecycle hook ID. INVALIDPARAMETERVALUE_INVALIDLIFECYCLEHOOKID = "InvalidParameterValue.InvalidLifecycleHookId" // The notification group ID should be a numeric string. INVALIDPARAMETERVALUE_INVALIDNOTIFICATIONUSERGROUPID = "InvalidParameterValue.InvalidNotificationUserGroupId" // Invalid scheduled action ID. INVALIDPARAMETERVALUE_INVALIDSCHEDULEDACTIONID = "InvalidParameterValue.InvalidScheduledActionId" // The scheduled task name contains invalid characters. INVALIDPARAMETERVALUE_INVALIDSCHEDULEDACTIONNAMEINCLUDEILLEGALCHAR = "InvalidParameterValue.InvalidScheduledActionNameIncludeIllegalChar" // Invalid security group ID. INVALIDPARAMETERVALUE_INVALIDSECURITYGROUPID = "InvalidParameterValue.InvalidSecurityGroupId" // Invalid snapshot ID. INVALIDPARAMETERVALUE_INVALIDSNAPSHOTID = "InvalidParameterValue.InvalidSnapshotId" // Invalid subnet ID. INVALIDPARAMETERVALUE_INVALIDSUBNETID = "InvalidParameterValue.InvalidSubnetId" // The launch configuration name already exists. INVALIDPARAMETERVALUE_LAUNCHCONFIGURATIONNAMEDUPLICATED = "InvalidParameterValue.LaunchConfigurationNameDuplicated" // The specified launch configuration was not found. INVALIDPARAMETERVALUE_LAUNCHCONFIGURATIONNOTFOUND = "InvalidParameterValue.LaunchConfigurationNotFound" // The load balancer is in a different project. INVALIDPARAMETERVALUE_LBPROJECTINCONSISTENT = "InvalidParameterValue.LbProjectInconsistent" // The lifecycle hook name already exists. INVALIDPARAMETERVALUE_LIFECYCLEHOOKNAMEDUPLICATED = "InvalidParameterValue.LifecycleHookNameDuplicated" // The value exceeds the limit. INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" // INVALIDPARAMETERVALUE_MISSINGBANDWIDTHPACKAGEID = "InvalidParameterValue.MissingBandwidthPackageId" // No resource permission. INVALIDPARAMETERVALUE_NORESOURCEPERMISSION = "InvalidParameterValue.NoResourcePermission" // The value should be a floating point string. INVALIDPARAMETERVALUE_NOTSTRINGTYPEFLOAT = "InvalidParameterValue.NotStringTypeFloat" // The account only supports VPCs. INVALIDPARAMETERVALUE_ONLYVPC = "InvalidParameterValue.OnlyVpc" // The project ID does not exist. INVALIDPARAMETERVALUE_PROJECTIDNOTFOUND = "InvalidParameterValue.ProjectIdNotFound" // The value is outside the specified range. INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" // The alarm policy name already exists. INVALIDPARAMETERVALUE_SCALINGPOLICYNAMEDUPLICATE = "InvalidParameterValue.ScalingPolicyNameDuplicate" // The scheduled task name already exists. INVALIDPARAMETERVALUE_SCHEDULEDACTIONNAMEDUPLICATE = "InvalidParameterValue.ScheduledActionNameDuplicate" // The value of maximum, minimum, or desired number of instances in the auto scaling group is invalid. INVALIDPARAMETERVALUE_SIZE = "InvalidParameterValue.Size" // The start time of the scheduled task is before the current time. INVALIDPARAMETERVALUE_STARTTIMEBEFORECURRENTTIME = "InvalidParameterValue.StartTimeBeforeCurrentTime" // The subnet information is invalid. INVALIDPARAMETERVALUE_SUBNETIDS = "InvalidParameterValue.SubnetIds" // The backend port of the CLB layer-4 listener already exists. INVALIDPARAMETERVALUE_TARGETPORTDUPLICATED = "InvalidParameterValue.TargetPortDuplicated" // The specified threshold must be within the valid range. INVALIDPARAMETERVALUE_THRESHOLDOUTOFRANGE = "InvalidParameterValue.ThresholdOutOfRange" // Wrong time format. INVALIDPARAMETERVALUE_TIMEFORMAT = "InvalidParameterValue.TimeFormat" // Too many values. INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" // The value of input parameter is too short. INVALIDPARAMETERVALUE_TOOSHORT = "InvalidParameterValue.TooShort" // Incorrect UserData format. INVALIDPARAMETERVALUE_USERDATAFORMATERROR = "InvalidParameterValue.UserDataFormatError" // The UserData is too long. INVALIDPARAMETERVALUE_USERDATASIZEEXCEEDED = "InvalidParameterValue.UserDataSizeExceeded" // The user group does not exist. INVALIDPARAMETERVALUE_USERGROUPIDNOTFOUND = "InvalidParameterValue.UserGroupIdNotFound" // The specified availability zone is not in the region. INVALIDPARAMETERVALUE_ZONEMISMATCHREGION = "InvalidParameterValue.ZoneMismatchRegion" // The account does not support this operation. INVALIDPERMISSION = "InvalidPermission" // The quota limit is exceeded. LIMITEXCEEDED = "LimitExceeded" // Binding with the specified CLBs will make the total number of bound CLBs exceeds the upper limit. LIMITEXCEEDED_AFTERATTACHLBLIMITEXCEEDED = "LimitExceeded.AfterAttachLbLimitExceeded" // The number of auto scaling groups exceeds the limit. LIMITEXCEEDED_AUTOSCALINGGROUPLIMITEXCEEDED = "LimitExceeded.AutoScalingGroupLimitExceeded" // The desired number of instances exceeds the limit. LIMITEXCEEDED_DESIREDCAPACITYLIMITEXCEEDED = "LimitExceeded.DesiredCapacityLimitExceeded" // Too many values for the specified filter LIMITEXCEEDED_FILTERVALUESTOOLONG = "LimitExceeded.FilterValuesTooLong" // You are short of the launch configuration quota. LIMITEXCEEDED_LAUNCHCONFIGURATIONQUOTANOTENOUGH = "LimitExceeded.LaunchConfigurationQuotaNotEnough" // The maximum number of instances exceeds the limit. LIMITEXCEEDED_MAXSIZELIMITEXCEEDED = "LimitExceeded.MaxSizeLimitExceeded" // The minimum number of instances is below the limit. LIMITEXCEEDED_MINSIZELIMITEXCEEDED = "LimitExceeded.MinSizeLimitExceeded" // You are short of the quota. LIMITEXCEEDED_QUOTANOTENOUGH = "LimitExceeded.QuotaNotEnough" // The number of scheduled tasks exceeds the limit. LIMITEXCEEDED_SCHEDULEDACTIONLIMITEXCEEDED = "LimitExceeded.ScheduledActionLimitExceeded" // Parameter missing. MISSINGPARAMETER = "MissingParameter" // A parameter is missing in a specific scenario. MISSINGPARAMETER_INSCENARIO = "MissingParameter.InScenario" // The `InstanceMarketOptions` parameter of the spot instance is missing. MISSINGPARAMETER_INSTANCEMARKETOPTIONS = "MissingParameter.InstanceMarketOptions" // The auto scaling group is performing a scaling activity. RESOURCEINUSE_ACTIVITYINPROGRESS = "ResourceInUse.ActivityInProgress" // The scaling group is disabled. RESOURCEINUSE_AUTOSCALINGGROUPNOTACTIVE = "ResourceInUse.AutoScalingGroupNotActive" // There are still normal instances in the auto scaling group. RESOURCEINUSE_INSTANCEINGROUP = "ResourceInUse.InstanceInGroup" // The specified launch configuration is still used in the scaling group. RESOURCEINUSE_LAUNCHCONFIGURATIONIDINUSE = "ResourceInUse.LaunchConfigurationIdInUse" // The maximum number of instances in the auto scaling group is exceeded. RESOURCEINSUFFICIENT_AUTOSCALINGGROUPABOVEMAXSIZE = "ResourceInsufficient.AutoScalingGroupAboveMaxSize" // The number of instances in the auto scaling group is below the minimum value. RESOURCEINSUFFICIENT_AUTOSCALINGGROUPBELOWMINSIZE = "ResourceInsufficient.AutoScalingGroupBelowMinSize" // The number of instances in a scaling group is more than the maximum capacity. RESOURCEINSUFFICIENT_INSERVICEINSTANCEABOVEMAXSIZE = "ResourceInsufficient.InServiceInstanceAboveMaxSize" // The number of instances in a scaling group is less than the minimum capacity. RESOURCEINSUFFICIENT_INSERVICEINSTANCEBELOWMINSIZE = "ResourceInsufficient.InServiceInstanceBelowMinSize" // The scaling group does not exist. RESOURCENOTFOUND_AUTOSCALINGGROUPNOTFOUND = "ResourceNotFound.AutoScalingGroupNotFound" // The notification does not exist. RESOURCENOTFOUND_AUTOSCALINGNOTIFICATIONNOTFOUND = "ResourceNotFound.AutoScalingNotificationNotFound" // RESOURCENOTFOUND_BANDWIDTHPACKAGEIDNOTFOUND = "ResourceNotFound.BandwidthPackageIdNotFound" // The specified CMQ queue does not exist. RESOURCENOTFOUND_CMQQUEUENOTFOUND = "ResourceNotFound.CmqQueueNotFound" // The command does not exist. RESOURCENOTFOUND_COMMANDNOTFOUND = "ResourceNotFound.CommandNotFound" // The specified instance does not exist. RESOURCENOTFOUND_INSTANCESNOTFOUND = "ResourceNotFound.InstancesNotFound" // The target instance is not in the auto scaling group. RESOURCENOTFOUND_INSTANCESNOTINAUTOSCALINGGROUP = "ResourceNotFound.InstancesNotInAutoScalingGroup" // The specified launch configuration does not exist. RESOURCENOTFOUND_LAUNCHCONFIGURATIONIDNOTFOUND = "ResourceNotFound.LaunchConfigurationIdNotFound" // The instance corresponding to the lifecycle hook does not exist. RESOURCENOTFOUND_LIFECYCLEHOOKINSTANCENOTFOUND = "ResourceNotFound.LifecycleHookInstanceNotFound" // The specified lifecycle hook was not found. RESOURCENOTFOUND_LIFECYCLEHOOKNOTFOUND = "ResourceNotFound.LifecycleHookNotFound" // The specified listener does not exist. RESOURCENOTFOUND_LISTENERNOTFOUND = "ResourceNotFound.ListenerNotFound" // The specified load balancer was not found. RESOURCENOTFOUND_LOADBALANCERNOTFOUND = "ResourceNotFound.LoadBalancerNotFound" // The specified CLB does not exist in the current scaling group. RESOURCENOTFOUND_LOADBALANCERNOTINAUTOSCALINGGROUP = "ResourceNotFound.LoadBalancerNotInAutoScalingGroup" // The specified location does not exist. RESOURCENOTFOUND_LOCATIONNOTFOUND = "ResourceNotFound.LocationNotFound" // The alarm policy does not exist. RESOURCENOTFOUND_SCALINGPOLICYNOTFOUND = "ResourceNotFound.ScalingPolicyNotFound" // The specified scheduled task does not exist. RESOURCENOTFOUND_SCHEDULEDACTIONNOTFOUND = "ResourceNotFound.ScheduledActionNotFound" // The TDMQ-CMQ queue doesn't exist. RESOURCENOTFOUND_TDMQCMQQUEUENOTFOUND = "ResourceNotFound.TDMQCMQQueueNotFound" // The TDMQ-CMQ topic doesn't exist. RESOURCENOTFOUND_TDMQCMQTOPICNOTFOUND = "ResourceNotFound.TDMQCMQTopicNotFound" // The auto scaling group is exceptional. RESOURCEUNAVAILABLE_AUTOSCALINGGROUPABNORMALSTATUS = "ResourceUnavailable.AutoScalingGroupAbnormalStatus" // The auto scaling group is disabled. RESOURCEUNAVAILABLE_AUTOSCALINGGROUPDISABLED = "ResourceUnavailable.AutoScalingGroupDisabled" // The auto scaling group is active. RESOURCEUNAVAILABLE_AUTOSCALINGGROUPINACTIVITY = "ResourceUnavailable.AutoScalingGroupInActivity" // There are no subscribers for the specified CMQ topic. RESOURCEUNAVAILABLE_CMQTOPICHASNOSUBSCRIBER = "ResourceUnavailable.CmqTopicHasNoSubscriber" // The instance and the auto scaling group are in different VPCs. RESOURCEUNAVAILABLE_CVMVPCINCONSISTENT = "ResourceUnavailable.CvmVpcInconsistent" // Unable to add the instance to the scaling group. RESOURCEUNAVAILABLE_INSTANCECANNOTATTACH = "ResourceUnavailable.InstanceCannotAttach" // The specified instance is active. RESOURCEUNAVAILABLE_INSTANCEINOPERATION = "ResourceUnavailable.InstanceInOperation" // The instance does not support **No Charges When Shut Down**. RESOURCEUNAVAILABLE_INSTANCENOTSUPPORTSTOPCHARGING = "ResourceUnavailable.InstanceNotSupportStopCharging" // The instance already exists in the auto scaling group. RESOURCEUNAVAILABLE_INSTANCESALREADYINAUTOSCALINGGROUP = "ResourceUnavailable.InstancesAlreadyInAutoScalingGroup" // The launch configuration is exceptional. RESOURCEUNAVAILABLE_LAUNCHCONFIGURATIONSTATUSABNORMAL = "ResourceUnavailable.LaunchConfigurationStatusAbnormal" // The backend region of the CLB is not the same as the one for AS service. RESOURCEUNAVAILABLE_LBBACKENDREGIONINCONSISTENT = "ResourceUnavailable.LbBackendRegionInconsistent" // The CLBs are not in the same project. RESOURCEUNAVAILABLE_LBPROJECTINCONSISTENT = "ResourceUnavailable.LbProjectInconsistent" // The CLB and scaling group should reside in the same VPC. RESOURCEUNAVAILABLE_LBVPCINCONSISTENT = "ResourceUnavailable.LbVpcInconsistent" // The lifecycle action has already been set. RESOURCEUNAVAILABLE_LIFECYCLEACTIONRESULTHASSET = "ResourceUnavailable.LifecycleActionResultHasSet" // CLB is active in the scaling group. RESOURCEUNAVAILABLE_LOADBALANCERINOPERATION = "ResourceUnavailable.LoadBalancerInOperation" // Project inconsistency. RESOURCEUNAVAILABLE_PROJECTINCONSISTENT = "ResourceUnavailable.ProjectInconsistent" // Unable to add instances to the scaling group when they are shut down. RESOURCEUNAVAILABLE_STOPPEDINSTANCENOTALLOWATTACH = "ResourceUnavailable.StoppedInstanceNotAllowAttach" // The TDMQ-CMQ topic is not subscribed. RESOURCEUNAVAILABLE_TDMQCMQTOPICHASNOSUBSCRIBER = "ResourceUnavailable.TDMQCMQTopicHasNoSubscriber" // The specified availability zone is unavailable. RESOURCEUNAVAILABLE_ZONEUNAVAILABLE = "ResourceUnavailable.ZoneUnavailable" // Unsupported operation. UNSUPPORTEDOPERATION = "UnsupportedOperation" )
const APIVersion = "2018-04-19"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Activity ¶
type Activity struct { // Auto scaling group ID. AutoScalingGroupId *string `json:"AutoScalingGroupId,omitempty" name:"AutoScalingGroupId"` // Scaling activity ID. ActivityId *string `json:"ActivityId,omitempty" name:"ActivityId"` // Type of the scaling activity. Valid values:<br> // <li>`SCALE_OUT`: Scale out. <li>`SCALE_IN`: Scale in. <li>`ATTACH_INSTANCES`: Add instances. <li>`REMOVE_INSTANCES`: Terminate instances. <li>`DETACH_INSTANCES`: Remove instances. <li>`TERMINATE_INSTANCES_UNEXPECTEDLY`: Terminate instances in the CVM console. <li>`REPLACE_UNHEALTHY_INSTANCE`: Replace an unhealthy instance. // <li>`START_INSTANCES`: Starts up instances. // <li>`STOP_INSTANCES`: Shut down instances. // <li>`INVOKE_COMMAND`: Execute commands ActivityType *string `json:"ActivityType,omitempty" name:"ActivityType"` // Scaling activity status. Value range:<br> // <li>INIT: initializing // <li>RUNNING: running // <li>SUCCESSFUL: succeeded // <li>PARTIALLY_SUCCESSFUL: partially succeeded // <li>FAILED: failed // <li>CANCELLED: canceled StatusCode *string `json:"StatusCode,omitempty" name:"StatusCode"` // Description of the scaling activity status. StatusMessage *string `json:"StatusMessage,omitempty" name:"StatusMessage"` // Cause of the scaling activity. Cause *string `json:"Cause,omitempty" name:"Cause"` // Description of the scaling activity. Description *string `json:"Description,omitempty" name:"Description"` // Start time of the scaling activity. StartTime *string `json:"StartTime,omitempty" name:"StartTime"` // End time of the scaling activity. EndTime *string `json:"EndTime,omitempty" name:"EndTime"` // Creation time of the scaling activity. CreatedTime *string `json:"CreatedTime,omitempty" name:"CreatedTime"` // Information set of the instances related to the scaling activity. ActivityRelatedInstanceSet []*ActivtyRelatedInstance `json:"ActivityRelatedInstanceSet,omitempty" name:"ActivityRelatedInstanceSet"` // Brief description of the scaling activity status. StatusMessageSimplified *string `json:"StatusMessageSimplified,omitempty" name:"StatusMessageSimplified"` // Result of the lifecycle hook action in the scaling activity LifecycleActionResultSet []*LifecycleActionResultInfo `json:"LifecycleActionResultSet,omitempty" name:"LifecycleActionResultSet"` // Detailed description of scaling activity status DetailedStatusMessageSet []*DetailedStatusMessage `json:"DetailedStatusMessageSet,omitempty" name:"DetailedStatusMessageSet"` // Result of the command execution InvocationResultSet []*InvocationResult `json:"InvocationResultSet,omitempty" name:"InvocationResultSet"` }
type ActivtyRelatedInstance ¶
type ActivtyRelatedInstance struct { // Instance ID. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Status of the instance in the scaling activity. Value range: // <li>INIT: initializing // <li>RUNNING: running // <li>SUCCESSFUL: succeeded // <li>FAILED: failed InstanceStatus *string `json:"InstanceStatus,omitempty" name:"InstanceStatus"` }
type AttachInstancesRequest ¶
type AttachInstancesRequest struct { *tchttp.BaseRequest // Auto scaling group ID AutoScalingGroupId *string `json:"AutoScalingGroupId,omitempty" name:"AutoScalingGroupId"` // List of CVM instance IDs InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` }
func NewAttachInstancesRequest ¶
func NewAttachInstancesRequest() (request *AttachInstancesRequest)
func (*AttachInstancesRequest) FromJsonString ¶
func (r *AttachInstancesRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*AttachInstancesRequest) ToJsonString ¶
func (r *AttachInstancesRequest) ToJsonString() string
type AttachInstancesRequestParams ¶
type AttachInstancesRequestParams struct { // Auto scaling group ID AutoScalingGroupId *string `json:"AutoScalingGroupId,omitempty" name:"AutoScalingGroupId"` // List of CVM instance IDs InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` }
Predefined struct for user
type AttachInstancesResponse ¶
type AttachInstancesResponse struct { *tchttp.BaseResponse Response *AttachInstancesResponseParams `json:"Response"` }
func NewAttachInstancesResponse ¶
func NewAttachInstancesResponse() (response *AttachInstancesResponse)
func (*AttachInstancesResponse) FromJsonString ¶
func (r *AttachInstancesResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*AttachInstancesResponse) ToJsonString ¶
func (r *AttachInstancesResponse) ToJsonString() string
type AttachInstancesResponseParams ¶
type AttachInstancesResponseParams struct { // Scaling activity ID ActivityId *string `json:"ActivityId,omitempty" name:"ActivityId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type AttachLoadBalancersRequest ¶
type AttachLoadBalancersRequest struct { *tchttp.BaseRequest // Scaling group ID AutoScalingGroupId *string `json:"AutoScalingGroupId,omitempty" name:"AutoScalingGroupId"` // List of classic CLB IDs. Up to 20 classic CLBs can be bound to a security group. `LoadBalancerIds` and `ForwardLoadBalancers` cannot be specified at the same time. LoadBalancerIds []*string `json:"LoadBalancerIds,omitempty" name:"LoadBalancerIds"` // List of application CLBs. Up to 100 application CLBs can be bound to a scaling group. `LoadBalancerIds` and `ForwardLoadBalancers` cannot be specified at the same time. ForwardLoadBalancers []*ForwardLoadBalancer `json:"ForwardLoadBalancers,omitempty" name:"ForwardLoadBalancers"` }
func NewAttachLoadBalancersRequest ¶
func NewAttachLoadBalancersRequest() (request *AttachLoadBalancersRequest)
func (*AttachLoadBalancersRequest) FromJsonString ¶
func (r *AttachLoadBalancersRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*AttachLoadBalancersRequest) ToJsonString ¶
func (r *AttachLoadBalancersRequest) ToJsonString() string
type AttachLoadBalancersRequestParams ¶
type AttachLoadBalancersRequestParams struct { // Scaling group ID AutoScalingGroupId *string `json:"AutoScalingGroupId,omitempty" name:"AutoScalingGroupId"` // List of classic CLB IDs. Up to 20 classic CLBs can be bound to a security group. `LoadBalancerIds` and `ForwardLoadBalancers` cannot be specified at the same time. LoadBalancerIds []*string `json:"LoadBalancerIds,omitempty" name:"LoadBalancerIds"` // List of application CLBs. Up to 100 application CLBs can be bound to a scaling group. `LoadBalancerIds` and `ForwardLoadBalancers` cannot be specified at the same time. ForwardLoadBalancers []*ForwardLoadBalancer `json:"ForwardLoadBalancers,omitempty" name:"ForwardLoadBalancers"` }
Predefined struct for user
type AttachLoadBalancersResponse ¶
type AttachLoadBalancersResponse struct { *tchttp.BaseResponse Response *AttachLoadBalancersResponseParams `json:"Response"` }
func NewAttachLoadBalancersResponse ¶
func NewAttachLoadBalancersResponse() (response *AttachLoadBalancersResponse)
func (*AttachLoadBalancersResponse) FromJsonString ¶
func (r *AttachLoadBalancersResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*AttachLoadBalancersResponse) ToJsonString ¶
func (r *AttachLoadBalancersResponse) ToJsonString() string
type AttachLoadBalancersResponseParams ¶
type AttachLoadBalancersResponseParams struct { // Scaling activity ID ActivityId *string `json:"ActivityId,omitempty" name:"ActivityId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type AutoScalingAdvice ¶
type AutoScalingAdvice struct { // Scaling group ID AutoScalingGroupId *string `json:"AutoScalingGroupId,omitempty" name:"AutoScalingGroupId"` // Scaling group warning level. Valid values:<br> // <li>NORMAL: Normal<br> // <li>WARNING: Warning<br> // <li>CRITICAL: Serious warning<br> Level *string `json:"Level,omitempty" name:"Level"` // A collection of suggestions for scaling group configurations. Advices []*Advice `json:"Advices,omitempty" name:"Advices"` }
type AutoScalingGroup ¶
type AutoScalingGroup struct { // Auto scaling group ID AutoScalingGroupId *string `json:"AutoScalingGroupId,omitempty" name:"AutoScalingGroupId"` // Auto scaling group name AutoScalingGroupName *string `json:"AutoScalingGroupName,omitempty" name:"AutoScalingGroupName"` // Current scaling group status. Valid values:<br> // <li>NORMAL: Normal<br> // <li>CVM_ABNORMAL: Abnormal launch configuration<br> // <li>LB_ABNORMAL: Abnormal load balancer<br> // <li>LB_LISTENER_ABNORMAL: Abnormal load balancer listener<br> // <li>LB_LOCATION_ABNORMAL: Abnormal forwarding configuration of the load balancer listener<br> // <li>VPC_ABNORMAL: VPC network error<br> // <li>SUBNET_ABNORMAL: VPC subnet exception<br> // <li>INSUFFICIENT_BALANCE: Insufficient account balance<br> // <li>LB_BACKEND_REGION_NOT_MATCH: The CLB backend and the AS service are not in the same region.<br> // <li>LB_BACKEND_VPC_NOT_MATCH: The CLB instance and the scaling group are not in the same VPC. AutoScalingGroupStatus *string `json:"AutoScalingGroupStatus,omitempty" name:"AutoScalingGroupStatus"` // Creation time in UTC format CreatedTime *string `json:"CreatedTime,omitempty" name:"CreatedTime"` // Default cooldown period in seconds DefaultCooldown *int64 `json:"DefaultCooldown,omitempty" name:"DefaultCooldown"` // Desired number of instances DesiredCapacity *int64 `json:"DesiredCapacity,omitempty" name:"DesiredCapacity"` // Enabled status. Value range: `ENABLED`, `DISABLED` EnabledStatus *string `json:"EnabledStatus,omitempty" name:"EnabledStatus"` // List of application load balancers ForwardLoadBalancerSet []*ForwardLoadBalancer `json:"ForwardLoadBalancerSet,omitempty" name:"ForwardLoadBalancerSet"` // Number of instances InstanceCount *int64 `json:"InstanceCount,omitempty" name:"InstanceCount"` // Number of instances in `IN_SERVICE` status InServiceInstanceCount *int64 `json:"InServiceInstanceCount,omitempty" name:"InServiceInstanceCount"` // Launch configuration ID LaunchConfigurationId *string `json:"LaunchConfigurationId,omitempty" name:"LaunchConfigurationId"` // Launch configuration name LaunchConfigurationName *string `json:"LaunchConfigurationName,omitempty" name:"LaunchConfigurationName"` // List of Classic load balancer IDs LoadBalancerIdSet []*string `json:"LoadBalancerIdSet,omitempty" name:"LoadBalancerIdSet"` // Maximum number of instances MaxSize *int64 `json:"MaxSize,omitempty" name:"MaxSize"` // Minimum number of instances MinSize *int64 `json:"MinSize,omitempty" name:"MinSize"` // Project ID ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"` // List of subnet IDs SubnetIdSet []*string `json:"SubnetIdSet,omitempty" name:"SubnetIdSet"` // Termination policy TerminationPolicySet []*string `json:"TerminationPolicySet,omitempty" name:"TerminationPolicySet"` // VPC ID VpcId *string `json:"VpcId,omitempty" name:"VpcId"` // List of availability zones ZoneSet []*string `json:"ZoneSet,omitempty" name:"ZoneSet"` // Retry policy RetryPolicy *string `json:"RetryPolicy,omitempty" name:"RetryPolicy"` // Whether the auto scaling group is performing a scaling activity. `IN_ACTIVITY` indicates yes, and `NOT_IN_ACTIVITY` indicates no. InActivityStatus *string `json:"InActivityStatus,omitempty" name:"InActivityStatus"` // List of auto scaling group tags Tags []*Tag `json:"Tags,omitempty" name:"Tags"` // Service settings ServiceSettings *ServiceSettings `json:"ServiceSettings,omitempty" name:"ServiceSettings"` // The number of IPv6 addresses that an instance has. Ipv6AddressCount *int64 `json:"Ipv6AddressCount,omitempty" name:"Ipv6AddressCount"` // The policy applied when there are multiple availability zones/subnets // <br><li> PRIORITY: when creating instances, choose the availability zone/subnet based on the order in the list from top to bottom. If the first instance is successfully created in the availability zone/subnet of the highest priority, all instances will be created in this availability zone/subnet. // <br><li> EQUALITY: chooses the availability zone/subnet with the least instances for scale-out. This gives each availability zone/subnet an opportunity for scale-out and disperses the instances created during multiple scale-out operations across different availability zones/subnets. MultiZoneSubnetPolicy *string `json:"MultiZoneSubnetPolicy,omitempty" name:"MultiZoneSubnetPolicy"` // Health check type of instances in a scaling group.<br><li>CVM: confirm whether an instance is healthy based on the network status. If the pinged instance is unreachable, the instance will be considered unhealthy. For more information, see [Instance Health Check](https://intl.cloud.tencent.com/document/product/377/8553?from_cn_redirect=1)<br><li>CLB: confirm whether an instance is healthy based on the CLB health check status. For more information, see [Health Check Overview](https://intl.cloud.tencent.com/document/product/214/6097?from_cn_redirect=1). HealthCheckType *string `json:"HealthCheckType,omitempty" name:"HealthCheckType"` // Grace period of the CLB health check LoadBalancerHealthCheckGracePeriod *uint64 `json:"LoadBalancerHealthCheckGracePeriod,omitempty" name:"LoadBalancerHealthCheckGracePeriod"` // Specifies how to assign instances. Valid values: `LAUNCH_CONFIGURATION` and `SPOT_MIXED`. // <br><li>`LAUNCH_CONFIGURATION`: the launch configuration mode. // <br><li>`SPOT_MIXED`: a mixed instance mode. Currently, this mode is supported only when the launch configuration takes the pay-as-you-go billing mode. With this mode, the scaling group can provision a combination of pay-as-you-go instances and spot instances to meet the configured capacity. Note that the billing mode of the associated launch configuration cannot be modified when this mode is used. InstanceAllocationPolicy *string `json:"InstanceAllocationPolicy,omitempty" name:"InstanceAllocationPolicy"` // Specifies how to assign pay-as-you-go instances and spot instances. // A valid value will be returned only when `InstanceAllocationPolicy` is set to `SPOT_MIXED`. SpotMixedAllocationPolicy *SpotMixedAllocationPolicy `json:"SpotMixedAllocationPolicy,omitempty" name:"SpotMixedAllocationPolicy"` // Indicates whether the capacity rebalancing feature is enabled. This parameter is only valid for spot instances in the scaling group. Valid values: // <br><li>`TRUE`: yes. Before the spot instances in the scaling group are about to be automatically repossessed, AS will terminate them. The scale-in hook (if configured) will take effect before the termination. After the termination process starts, AS will asynchronously initiate a scaling activity to meet the desired capacity. // <br><li>`FALSE`: no. AS will add instances to meet the desired capacity only after the spot instances are terminated. CapacityRebalance *bool `json:"CapacityRebalance,omitempty" name:"CapacityRebalance"` }
type AutoScalingNotification ¶
type AutoScalingNotification struct { // Auto scaling group ID. AutoScalingGroupId *string `json:"AutoScalingGroupId,omitempty" name:"AutoScalingGroupId"` // List of user group IDs. NotificationUserGroupIds []*string `json:"NotificationUserGroupIds,omitempty" name:"NotificationUserGroupIds"` // List of notification events. NotificationTypes []*string `json:"NotificationTypes,omitempty" name:"NotificationTypes"` // Event notification ID. AutoScalingNotificationId *string `json:"AutoScalingNotificationId,omitempty" name:"AutoScalingNotificationId"` // Notification receiver type. TargetType *string `json:"TargetType,omitempty" name:"TargetType"` // CMQ queue name. QueueName *string `json:"QueueName,omitempty" name:"QueueName"` // CMQ topic name. TopicName *string `json:"TopicName,omitempty" name:"TopicName"` }
type ClearLaunchConfigurationAttributesRequest ¶
type ClearLaunchConfigurationAttributesRequest struct { *tchttp.BaseRequest // Launch configuration ID LaunchConfigurationId *string `json:"LaunchConfigurationId,omitempty" name:"LaunchConfigurationId"` // Whether to clear data disk information. This parameter is optional and the default value is `false`. // Setting it to `true` will clear data disks, which means that CVM newly created on this launch configuration will have no data disk. ClearDataDisks *bool `json:"ClearDataDisks,omitempty" name:"ClearDataDisks"` // Whether to clear the CVM hostname settings. This parameter is optional and the default value is `false`. // Setting it to `true` will clear the hostname settings, which means that CVM newly created on this launch configuration will have no hostname. ClearHostNameSettings *bool `json:"ClearHostNameSettings,omitempty" name:"ClearHostNameSettings"` // Whether to clear the CVM instance name settings. This parameter is optional and the default value is `false`. // Setting it to `true` will clear the instance name settings, which means that CVM newly created on this launch configuration will be named in the “as-{{AutoScalingGroupName}} format. ClearInstanceNameSettings *bool `json:"ClearInstanceNameSettings,omitempty" name:"ClearInstanceNameSettings"` }
func NewClearLaunchConfigurationAttributesRequest ¶
func NewClearLaunchConfigurationAttributesRequest() (request *ClearLaunchConfigurationAttributesRequest)
func (*ClearLaunchConfigurationAttributesRequest) FromJsonString ¶
func (r *ClearLaunchConfigurationAttributesRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ClearLaunchConfigurationAttributesRequest) ToJsonString ¶
func (r *ClearLaunchConfigurationAttributesRequest) ToJsonString() string
type ClearLaunchConfigurationAttributesRequestParams ¶
type ClearLaunchConfigurationAttributesRequestParams struct { // Launch configuration ID LaunchConfigurationId *string `json:"LaunchConfigurationId,omitempty" name:"LaunchConfigurationId"` // Whether to clear data disk information. This parameter is optional and the default value is `false`. // Setting it to `true` will clear data disks, which means that CVM newly created on this launch configuration will have no data disk. ClearDataDisks *bool `json:"ClearDataDisks,omitempty" name:"ClearDataDisks"` // Whether to clear the CVM hostname settings. This parameter is optional and the default value is `false`. // Setting it to `true` will clear the hostname settings, which means that CVM newly created on this launch configuration will have no hostname. ClearHostNameSettings *bool `json:"ClearHostNameSettings,omitempty" name:"ClearHostNameSettings"` // Whether to clear the CVM instance name settings. This parameter is optional and the default value is `false`. // Setting it to `true` will clear the instance name settings, which means that CVM newly created on this launch configuration will be named in the “as-{{AutoScalingGroupName}} format. ClearInstanceNameSettings *bool `json:"ClearInstanceNameSettings,omitempty" name:"ClearInstanceNameSettings"` }
Predefined struct for user
type ClearLaunchConfigurationAttributesResponse ¶
type ClearLaunchConfigurationAttributesResponse struct { *tchttp.BaseResponse Response *ClearLaunchConfigurationAttributesResponseParams `json:"Response"` }
func NewClearLaunchConfigurationAttributesResponse ¶
func NewClearLaunchConfigurationAttributesResponse() (response *ClearLaunchConfigurationAttributesResponse)
func (*ClearLaunchConfigurationAttributesResponse) FromJsonString ¶
func (r *ClearLaunchConfigurationAttributesResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ClearLaunchConfigurationAttributesResponse) ToJsonString ¶
func (r *ClearLaunchConfigurationAttributesResponse) ToJsonString() string
type ClearLaunchConfigurationAttributesResponseParams ¶
type ClearLaunchConfigurationAttributesResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type Client ¶
func NewClient ¶
func NewClient(credential common.CredentialIface, region string, clientProfile *profile.ClientProfile) (client *Client, err error)
func NewClientWithSecretId ¶
Deprecated
func (*Client) AttachInstances ¶
func (c *Client) AttachInstances(request *AttachInstancesRequest) (response *AttachInstancesResponse, err error)
AttachInstances This API is used to add CVM instances to an auto scaling group.
* Only CVM instances in `RUNNING` or `STOPPED` status can be added.
* The added CVM instances must in the same VPC as the scaling group.
error code that may be returned:
FAILEDOPERATION_NOACTIVITYTOGENERATE = "FailedOperation.NoActivityToGenerate" INTERNALERROR = "InternalError" INTERNALERROR_CALLEEERROR = "InternalError.CalleeError" INTERNALERROR_REQUESTERROR = "InternalError.RequestError" INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound" INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGGROUPID = "InvalidParameterValue.InvalidAutoScalingGroupId" INVALIDPARAMETERVALUE_INVALIDINSTANCEID = "InvalidParameterValue.InvalidInstanceId" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" RESOURCEINSUFFICIENT_AUTOSCALINGGROUPABOVEMAXSIZE = "ResourceInsufficient.AutoScalingGroupAboveMaxSize" RESOURCEINSUFFICIENT_INSERVICEINSTANCEABOVEMAXSIZE = "ResourceInsufficient.InServiceInstanceAboveMaxSize" RESOURCENOTFOUND_AUTOSCALINGGROUPNOTFOUND = "ResourceNotFound.AutoScalingGroupNotFound" RESOURCENOTFOUND_INSTANCESNOTFOUND = "ResourceNotFound.InstancesNotFound" RESOURCEUNAVAILABLE_AUTOSCALINGGROUPINACTIVITY = "ResourceUnavailable.AutoScalingGroupInActivity" RESOURCEUNAVAILABLE_CVMVPCINCONSISTENT = "ResourceUnavailable.CvmVpcInconsistent" RESOURCEUNAVAILABLE_INSTANCECANNOTATTACH = "ResourceUnavailable.InstanceCannotAttach" RESOURCEUNAVAILABLE_INSTANCEINOPERATION = "ResourceUnavailable.InstanceInOperation" RESOURCEUNAVAILABLE_INSTANCESALREADYINAUTOSCALINGGROUP = "ResourceUnavailable.InstancesAlreadyInAutoScalingGroup" RESOURCEUNAVAILABLE_LOADBALANCERINOPERATION = "ResourceUnavailable.LoadBalancerInOperation"
func (*Client) AttachInstancesWithContext ¶
func (c *Client) AttachInstancesWithContext(ctx context.Context, request *AttachInstancesRequest) (response *AttachInstancesResponse, err error)
AttachInstances This API is used to add CVM instances to an auto scaling group.
* Only CVM instances in `RUNNING` or `STOPPED` status can be added.
* The added CVM instances must in the same VPC as the scaling group.
error code that may be returned:
FAILEDOPERATION_NOACTIVITYTOGENERATE = "FailedOperation.NoActivityToGenerate" INTERNALERROR = "InternalError" INTERNALERROR_CALLEEERROR = "InternalError.CalleeError" INTERNALERROR_REQUESTERROR = "InternalError.RequestError" INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound" INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGGROUPID = "InvalidParameterValue.InvalidAutoScalingGroupId" INVALIDPARAMETERVALUE_INVALIDINSTANCEID = "InvalidParameterValue.InvalidInstanceId" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" RESOURCEINSUFFICIENT_AUTOSCALINGGROUPABOVEMAXSIZE = "ResourceInsufficient.AutoScalingGroupAboveMaxSize" RESOURCEINSUFFICIENT_INSERVICEINSTANCEABOVEMAXSIZE = "ResourceInsufficient.InServiceInstanceAboveMaxSize" RESOURCENOTFOUND_AUTOSCALINGGROUPNOTFOUND = "ResourceNotFound.AutoScalingGroupNotFound" RESOURCENOTFOUND_INSTANCESNOTFOUND = "ResourceNotFound.InstancesNotFound" RESOURCEUNAVAILABLE_AUTOSCALINGGROUPINACTIVITY = "ResourceUnavailable.AutoScalingGroupInActivity" RESOURCEUNAVAILABLE_CVMVPCINCONSISTENT = "ResourceUnavailable.CvmVpcInconsistent" RESOURCEUNAVAILABLE_INSTANCECANNOTATTACH = "ResourceUnavailable.InstanceCannotAttach" RESOURCEUNAVAILABLE_INSTANCEINOPERATION = "ResourceUnavailable.InstanceInOperation" RESOURCEUNAVAILABLE_INSTANCESALREADYINAUTOSCALINGGROUP = "ResourceUnavailable.InstancesAlreadyInAutoScalingGroup" RESOURCEUNAVAILABLE_LOADBALANCERINOPERATION = "ResourceUnavailable.LoadBalancerInOperation"
func (*Client) AttachLoadBalancers ¶
func (c *Client) AttachLoadBalancers(request *AttachLoadBalancersRequest) (response *AttachLoadBalancersResponse, err error)
AttachLoadBalancers This API is used to add CLBs to a security group.
error code that may be returned:
FAILEDOPERATION_NOACTIVITYTOGENERATE = "FailedOperation.NoActivityToGenerate" INTERNALERROR_CALLLBERROR = "InternalError.CallLbError" INTERNALERROR_REQUESTERROR = "InternalError.RequestError" INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound" INVALIDPARAMETER_CONFLICT = "InvalidParameter.Conflict" INVALIDPARAMETER_INSCENARIO = "InvalidParameter.InScenario" INVALIDPARAMETER_MUSTONEPARAMETER = "InvalidParameter.MustOneParameter" INVALIDPARAMETERVALUE_CLASSICLB = "InvalidParameterValue.ClassicLb" INVALIDPARAMETERVALUE_DUPLICATEDFORWARDLB = "InvalidParameterValue.DuplicatedForwardLb" INVALIDPARAMETERVALUE_FORWARDLB = "InvalidParameterValue.ForwardLb" INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGGROUPID = "InvalidParameterValue.InvalidAutoScalingGroupId" INVALIDPARAMETERVALUE_INVALIDCLBREGION = "InvalidParameterValue.InvalidClbRegion" INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" INVALIDPARAMETERVALUE_TARGETPORTDUPLICATED = "InvalidParameterValue.TargetPortDuplicated" LIMITEXCEEDED_AFTERATTACHLBLIMITEXCEEDED = "LimitExceeded.AfterAttachLbLimitExceeded" MISSINGPARAMETER_INSCENARIO = "MissingParameter.InScenario" RESOURCENOTFOUND_AUTOSCALINGGROUPNOTFOUND = "ResourceNotFound.AutoScalingGroupNotFound" RESOURCENOTFOUND_LISTENERNOTFOUND = "ResourceNotFound.ListenerNotFound" RESOURCENOTFOUND_LOADBALANCERNOTFOUND = "ResourceNotFound.LoadBalancerNotFound" RESOURCENOTFOUND_LOCATIONNOTFOUND = "ResourceNotFound.LocationNotFound" RESOURCEUNAVAILABLE_AUTOSCALINGGROUPINACTIVITY = "ResourceUnavailable.AutoScalingGroupInActivity" RESOURCEUNAVAILABLE_LBBACKENDREGIONINCONSISTENT = "ResourceUnavailable.LbBackendRegionInconsistent" RESOURCEUNAVAILABLE_LBPROJECTINCONSISTENT = "ResourceUnavailable.LbProjectInconsistent" RESOURCEUNAVAILABLE_LBVPCINCONSISTENT = "ResourceUnavailable.LbVpcInconsistent" RESOURCEUNAVAILABLE_LOADBALANCERINOPERATION = "ResourceUnavailable.LoadBalancerInOperation"
func (*Client) AttachLoadBalancersWithContext ¶
func (c *Client) AttachLoadBalancersWithContext(ctx context.Context, request *AttachLoadBalancersRequest) (response *AttachLoadBalancersResponse, err error)
AttachLoadBalancers This API is used to add CLBs to a security group.
error code that may be returned:
FAILEDOPERATION_NOACTIVITYTOGENERATE = "FailedOperation.NoActivityToGenerate" INTERNALERROR_CALLLBERROR = "InternalError.CallLbError" INTERNALERROR_REQUESTERROR = "InternalError.RequestError" INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound" INVALIDPARAMETER_CONFLICT = "InvalidParameter.Conflict" INVALIDPARAMETER_INSCENARIO = "InvalidParameter.InScenario" INVALIDPARAMETER_MUSTONEPARAMETER = "InvalidParameter.MustOneParameter" INVALIDPARAMETERVALUE_CLASSICLB = "InvalidParameterValue.ClassicLb" INVALIDPARAMETERVALUE_DUPLICATEDFORWARDLB = "InvalidParameterValue.DuplicatedForwardLb" INVALIDPARAMETERVALUE_FORWARDLB = "InvalidParameterValue.ForwardLb" INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGGROUPID = "InvalidParameterValue.InvalidAutoScalingGroupId" INVALIDPARAMETERVALUE_INVALIDCLBREGION = "InvalidParameterValue.InvalidClbRegion" INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" INVALIDPARAMETERVALUE_TARGETPORTDUPLICATED = "InvalidParameterValue.TargetPortDuplicated" LIMITEXCEEDED_AFTERATTACHLBLIMITEXCEEDED = "LimitExceeded.AfterAttachLbLimitExceeded" MISSINGPARAMETER_INSCENARIO = "MissingParameter.InScenario" RESOURCENOTFOUND_AUTOSCALINGGROUPNOTFOUND = "ResourceNotFound.AutoScalingGroupNotFound" RESOURCENOTFOUND_LISTENERNOTFOUND = "ResourceNotFound.ListenerNotFound" RESOURCENOTFOUND_LOADBALANCERNOTFOUND = "ResourceNotFound.LoadBalancerNotFound" RESOURCENOTFOUND_LOCATIONNOTFOUND = "ResourceNotFound.LocationNotFound" RESOURCEUNAVAILABLE_AUTOSCALINGGROUPINACTIVITY = "ResourceUnavailable.AutoScalingGroupInActivity" RESOURCEUNAVAILABLE_LBBACKENDREGIONINCONSISTENT = "ResourceUnavailable.LbBackendRegionInconsistent" RESOURCEUNAVAILABLE_LBPROJECTINCONSISTENT = "ResourceUnavailable.LbProjectInconsistent" RESOURCEUNAVAILABLE_LBVPCINCONSISTENT = "ResourceUnavailable.LbVpcInconsistent" RESOURCEUNAVAILABLE_LOADBALANCERINOPERATION = "ResourceUnavailable.LoadBalancerInOperation"
func (*Client) ClearLaunchConfigurationAttributes ¶
func (c *Client) ClearLaunchConfigurationAttributes(request *ClearLaunchConfigurationAttributesRequest) (response *ClearLaunchConfigurationAttributesResponse, err error)
ClearLaunchConfigurationAttributes This API is used to clear specific attributes of the launch configuration.
error code that may be returned:
INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound" INVALIDPARAMETERVALUE_INVALIDLAUNCHCONFIGURATIONID = "InvalidParameterValue.InvalidLaunchConfigurationId"
func (*Client) ClearLaunchConfigurationAttributesWithContext ¶
func (c *Client) ClearLaunchConfigurationAttributesWithContext(ctx context.Context, request *ClearLaunchConfigurationAttributesRequest) (response *ClearLaunchConfigurationAttributesResponse, err error)
ClearLaunchConfigurationAttributes This API is used to clear specific attributes of the launch configuration.
error code that may be returned:
INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound" INVALIDPARAMETERVALUE_INVALIDLAUNCHCONFIGURATIONID = "InvalidParameterValue.InvalidLaunchConfigurationId"
func (*Client) CompleteLifecycleAction ¶
func (c *Client) CompleteLifecycleAction(request *CompleteLifecycleActionRequest) (response *CompleteLifecycleActionResponse, err error)
CompleteLifecycleAction This API (CompleteLifecycleAction) is used to complete a lifecycle action.
* The result ("CONTINUE" or "ABANDON") of a specific lifecycle hook can be specified by calling this API. If this API is not called at all, the lifecycle hook will be processed based on the "DefaultResult" after timeout.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound" INVALIDPARAMETER_CONFLICT = "InvalidParameter.Conflict" INVALIDPARAMETER_MUSTONEPARAMETER = "InvalidParameter.MustOneParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_INVALIDINSTANCEID = "InvalidParameterValue.InvalidInstanceId" INVALIDPARAMETERVALUE_INVALIDLIFECYCLEHOOKID = "InvalidParameterValue.InvalidLifecycleHookId" RESOURCENOTFOUND_LIFECYCLEHOOKINSTANCENOTFOUND = "ResourceNotFound.LifecycleHookInstanceNotFound" RESOURCENOTFOUND_LIFECYCLEHOOKNOTFOUND = "ResourceNotFound.LifecycleHookNotFound" RESOURCEUNAVAILABLE_LIFECYCLEACTIONRESULTHASSET = "ResourceUnavailable.LifecycleActionResultHasSet"
func (*Client) CompleteLifecycleActionWithContext ¶
func (c *Client) CompleteLifecycleActionWithContext(ctx context.Context, request *CompleteLifecycleActionRequest) (response *CompleteLifecycleActionResponse, err error)
CompleteLifecycleAction This API (CompleteLifecycleAction) is used to complete a lifecycle action.
* The result ("CONTINUE" or "ABANDON") of a specific lifecycle hook can be specified by calling this API. If this API is not called at all, the lifecycle hook will be processed based on the "DefaultResult" after timeout.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound" INVALIDPARAMETER_CONFLICT = "InvalidParameter.Conflict" INVALIDPARAMETER_MUSTONEPARAMETER = "InvalidParameter.MustOneParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_INVALIDINSTANCEID = "InvalidParameterValue.InvalidInstanceId" INVALIDPARAMETERVALUE_INVALIDLIFECYCLEHOOKID = "InvalidParameterValue.InvalidLifecycleHookId" RESOURCENOTFOUND_LIFECYCLEHOOKINSTANCENOTFOUND = "ResourceNotFound.LifecycleHookInstanceNotFound" RESOURCENOTFOUND_LIFECYCLEHOOKNOTFOUND = "ResourceNotFound.LifecycleHookNotFound" RESOURCEUNAVAILABLE_LIFECYCLEACTIONRESULTHASSET = "ResourceUnavailable.LifecycleActionResultHasSet"
func (*Client) CreateAutoScalingGroup ¶
func (c *Client) CreateAutoScalingGroup(request *CreateAutoScalingGroupRequest) (response *CreateAutoScalingGroupResponse, err error)
CreateAutoScalingGroup This API (CreateAutoScalingGroup) is used to create an auto scaling group.
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_CALLLBERROR = "InternalError.CallLbError" INTERNALERROR_CALLTAGERROR = "InternalError.CallTagError" INTERNALERROR_CALLTVPCERROR = "InternalError.CallTvpcError" INTERNALERROR_CALLVPCERROR = "InternalError.CallVpcError" INTERNALERROR_REQUESTERROR = "InternalError.RequestError" INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound" INVALIDPARAMETER_INSCENARIO = "InvalidParameter.InScenario" INVALIDPARAMETERVALUE_BASECAPACITYTOOLARGE = "InvalidParameterValue.BaseCapacityTooLarge" INVALIDPARAMETERVALUE_CLASSICLB = "InvalidParameterValue.ClassicLb" INVALIDPARAMETERVALUE_CVMERROR = "InvalidParameterValue.CvmError" INVALIDPARAMETERVALUE_DUPLICATEDFORWARDLB = "InvalidParameterValue.DuplicatedForwardLb" INVALIDPARAMETERVALUE_DUPLICATEDSUBNET = "InvalidParameterValue.DuplicatedSubnet" INVALIDPARAMETERVALUE_FORWARDLB = "InvalidParameterValue.ForwardLb" INVALIDPARAMETERVALUE_GROUPNAMEDUPLICATED = "InvalidParameterValue.GroupNameDuplicated" INVALIDPARAMETERVALUE_INVALIDCLBREGION = "InvalidParameterValue.InvalidClbRegion" INVALIDPARAMETERVALUE_INVALIDLAUNCHCONFIGURATIONID = "InvalidParameterValue.InvalidLaunchConfigurationId" INVALIDPARAMETERVALUE_INVALIDSUBNETID = "InvalidParameterValue.InvalidSubnetId" INVALIDPARAMETERVALUE_LAUNCHCONFIGURATIONNOTFOUND = "InvalidParameterValue.LaunchConfigurationNotFound" INVALIDPARAMETERVALUE_LBPROJECTINCONSISTENT = "InvalidParameterValue.LbProjectInconsistent" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" INVALIDPARAMETERVALUE_ONLYVPC = "InvalidParameterValue.OnlyVpc" INVALIDPARAMETERVALUE_PROJECTIDNOTFOUND = "InvalidParameterValue.ProjectIdNotFound" INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" INVALIDPARAMETERVALUE_SIZE = "InvalidParameterValue.Size" INVALIDPARAMETERVALUE_SUBNETIDS = "InvalidParameterValue.SubnetIds" INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" INVALIDPARAMETERVALUE_ZONEMISMATCHREGION = "InvalidParameterValue.ZoneMismatchRegion" LIMITEXCEEDED = "LimitExceeded" LIMITEXCEEDED_AUTOSCALINGGROUPLIMITEXCEEDED = "LimitExceeded.AutoScalingGroupLimitExceeded" LIMITEXCEEDED_MAXSIZELIMITEXCEEDED = "LimitExceeded.MaxSizeLimitExceeded" LIMITEXCEEDED_MINSIZELIMITEXCEEDED = "LimitExceeded.MinSizeLimitExceeded" MISSINGPARAMETER_INSCENARIO = "MissingParameter.InScenario" RESOURCENOTFOUND_LISTENERNOTFOUND = "ResourceNotFound.ListenerNotFound" RESOURCENOTFOUND_LOADBALANCERNOTFOUND = "ResourceNotFound.LoadBalancerNotFound" RESOURCENOTFOUND_LOCATIONNOTFOUND = "ResourceNotFound.LocationNotFound" RESOURCEUNAVAILABLE_LAUNCHCONFIGURATIONSTATUSABNORMAL = "ResourceUnavailable.LaunchConfigurationStatusAbnormal" RESOURCEUNAVAILABLE_LBBACKENDREGIONINCONSISTENT = "ResourceUnavailable.LbBackendRegionInconsistent" RESOURCEUNAVAILABLE_LBVPCINCONSISTENT = "ResourceUnavailable.LbVpcInconsistent" RESOURCEUNAVAILABLE_PROJECTINCONSISTENT = "ResourceUnavailable.ProjectInconsistent" RESOURCEUNAVAILABLE_ZONEUNAVAILABLE = "ResourceUnavailable.ZoneUnavailable"
func (*Client) CreateAutoScalingGroupFromInstance ¶
func (c *Client) CreateAutoScalingGroupFromInstance(request *CreateAutoScalingGroupFromInstanceRequest) (response *CreateAutoScalingGroupFromInstanceResponse, err error)
CreateAutoScalingGroupFromInstance This API is used to create launch configurations and scaling groups based on an instance.
Note: for a scaling group that is created based on a monthly-subscribed instance, the instances added for scale-out are pay-as-you-go instance.
error code that may be returned:
ACCOUNTQUALIFICATIONRESTRICTIONS = "AccountQualificationRestrictions" CALLCVMERROR = "CallCvmError" INTERNALERROR = "InternalError" INTERNALERROR_CALLVPCERROR = "InternalError.CallVpcError" INTERNALERROR_CALLEEERROR = "InternalError.CalleeError" INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound" INVALIDPARAMETER_INSCENARIO = "InvalidParameter.InScenario" INVALIDPARAMETERVALUE_CVMCONFIGURATIONERROR = "InvalidParameterValue.CvmConfigurationError" INVALIDPARAMETERVALUE_CVMERROR = "InvalidParameterValue.CvmError" INVALIDPARAMETERVALUE_DUPLICATEDSUBNET = "InvalidParameterValue.DuplicatedSubnet" INVALIDPARAMETERVALUE_FORWARDLB = "InvalidParameterValue.ForwardLb" INVALIDPARAMETERVALUE_INVALIDINSTANCEID = "InvalidParameterValue.InvalidInstanceId" INVALIDPARAMETERVALUE_LAUNCHCONFIGURATIONNAMEDUPLICATED = "InvalidParameterValue.LaunchConfigurationNameDuplicated" INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" INVALIDPARAMETERVALUE_SIZE = "InvalidParameterValue.Size" INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" LIMITEXCEEDED_AUTOSCALINGGROUPLIMITEXCEEDED = "LimitExceeded.AutoScalingGroupLimitExceeded" LIMITEXCEEDED_DESIREDCAPACITYLIMITEXCEEDED = "LimitExceeded.DesiredCapacityLimitExceeded" LIMITEXCEEDED_LAUNCHCONFIGURATIONQUOTANOTENOUGH = "LimitExceeded.LaunchConfigurationQuotaNotEnough" LIMITEXCEEDED_MAXSIZELIMITEXCEEDED = "LimitExceeded.MaxSizeLimitExceeded" LIMITEXCEEDED_MINSIZELIMITEXCEEDED = "LimitExceeded.MinSizeLimitExceeded" MISSINGPARAMETER = "MissingParameter" RESOURCENOTFOUND_INSTANCESNOTFOUND = "ResourceNotFound.InstancesNotFound" RESOURCEUNAVAILABLE_LAUNCHCONFIGURATIONSTATUSABNORMAL = "ResourceUnavailable.LaunchConfigurationStatusAbnormal" RESOURCEUNAVAILABLE_PROJECTINCONSISTENT = "ResourceUnavailable.ProjectInconsistent" RESOURCEUNAVAILABLE_STOPPEDINSTANCENOTALLOWATTACH = "ResourceUnavailable.StoppedInstanceNotAllowAttach"
func (*Client) CreateAutoScalingGroupFromInstanceWithContext ¶
func (c *Client) CreateAutoScalingGroupFromInstanceWithContext(ctx context.Context, request *CreateAutoScalingGroupFromInstanceRequest) (response *CreateAutoScalingGroupFromInstanceResponse, err error)
CreateAutoScalingGroupFromInstance This API is used to create launch configurations and scaling groups based on an instance.
Note: for a scaling group that is created based on a monthly-subscribed instance, the instances added for scale-out are pay-as-you-go instance.
error code that may be returned:
ACCOUNTQUALIFICATIONRESTRICTIONS = "AccountQualificationRestrictions" CALLCVMERROR = "CallCvmError" INTERNALERROR = "InternalError" INTERNALERROR_CALLVPCERROR = "InternalError.CallVpcError" INTERNALERROR_CALLEEERROR = "InternalError.CalleeError" INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound" INVALIDPARAMETER_INSCENARIO = "InvalidParameter.InScenario" INVALIDPARAMETERVALUE_CVMCONFIGURATIONERROR = "InvalidParameterValue.CvmConfigurationError" INVALIDPARAMETERVALUE_CVMERROR = "InvalidParameterValue.CvmError" INVALIDPARAMETERVALUE_DUPLICATEDSUBNET = "InvalidParameterValue.DuplicatedSubnet" INVALIDPARAMETERVALUE_FORWARDLB = "InvalidParameterValue.ForwardLb" INVALIDPARAMETERVALUE_INVALIDINSTANCEID = "InvalidParameterValue.InvalidInstanceId" INVALIDPARAMETERVALUE_LAUNCHCONFIGURATIONNAMEDUPLICATED = "InvalidParameterValue.LaunchConfigurationNameDuplicated" INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" INVALIDPARAMETERVALUE_SIZE = "InvalidParameterValue.Size" INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" LIMITEXCEEDED_AUTOSCALINGGROUPLIMITEXCEEDED = "LimitExceeded.AutoScalingGroupLimitExceeded" LIMITEXCEEDED_DESIREDCAPACITYLIMITEXCEEDED = "LimitExceeded.DesiredCapacityLimitExceeded" LIMITEXCEEDED_LAUNCHCONFIGURATIONQUOTANOTENOUGH = "LimitExceeded.LaunchConfigurationQuotaNotEnough" LIMITEXCEEDED_MAXSIZELIMITEXCEEDED = "LimitExceeded.MaxSizeLimitExceeded" LIMITEXCEEDED_MINSIZELIMITEXCEEDED = "LimitExceeded.MinSizeLimitExceeded" MISSINGPARAMETER = "MissingParameter" RESOURCENOTFOUND_INSTANCESNOTFOUND = "ResourceNotFound.InstancesNotFound" RESOURCEUNAVAILABLE_LAUNCHCONFIGURATIONSTATUSABNORMAL = "ResourceUnavailable.LaunchConfigurationStatusAbnormal" RESOURCEUNAVAILABLE_PROJECTINCONSISTENT = "ResourceUnavailable.ProjectInconsistent" RESOURCEUNAVAILABLE_STOPPEDINSTANCENOTALLOWATTACH = "ResourceUnavailable.StoppedInstanceNotAllowAttach"
func (*Client) CreateAutoScalingGroupWithContext ¶
func (c *Client) CreateAutoScalingGroupWithContext(ctx context.Context, request *CreateAutoScalingGroupRequest) (response *CreateAutoScalingGroupResponse, err error)
CreateAutoScalingGroup This API (CreateAutoScalingGroup) is used to create an auto scaling group.
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_CALLLBERROR = "InternalError.CallLbError" INTERNALERROR_CALLTAGERROR = "InternalError.CallTagError" INTERNALERROR_CALLTVPCERROR = "InternalError.CallTvpcError" INTERNALERROR_CALLVPCERROR = "InternalError.CallVpcError" INTERNALERROR_REQUESTERROR = "InternalError.RequestError" INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound" INVALIDPARAMETER_INSCENARIO = "InvalidParameter.InScenario" INVALIDPARAMETERVALUE_BASECAPACITYTOOLARGE = "InvalidParameterValue.BaseCapacityTooLarge" INVALIDPARAMETERVALUE_CLASSICLB = "InvalidParameterValue.ClassicLb" INVALIDPARAMETERVALUE_CVMERROR = "InvalidParameterValue.CvmError" INVALIDPARAMETERVALUE_DUPLICATEDFORWARDLB = "InvalidParameterValue.DuplicatedForwardLb" INVALIDPARAMETERVALUE_DUPLICATEDSUBNET = "InvalidParameterValue.DuplicatedSubnet" INVALIDPARAMETERVALUE_FORWARDLB = "InvalidParameterValue.ForwardLb" INVALIDPARAMETERVALUE_GROUPNAMEDUPLICATED = "InvalidParameterValue.GroupNameDuplicated" INVALIDPARAMETERVALUE_INVALIDCLBREGION = "InvalidParameterValue.InvalidClbRegion" INVALIDPARAMETERVALUE_INVALIDLAUNCHCONFIGURATIONID = "InvalidParameterValue.InvalidLaunchConfigurationId" INVALIDPARAMETERVALUE_INVALIDSUBNETID = "InvalidParameterValue.InvalidSubnetId" INVALIDPARAMETERVALUE_LAUNCHCONFIGURATIONNOTFOUND = "InvalidParameterValue.LaunchConfigurationNotFound" INVALIDPARAMETERVALUE_LBPROJECTINCONSISTENT = "InvalidParameterValue.LbProjectInconsistent" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" INVALIDPARAMETERVALUE_ONLYVPC = "InvalidParameterValue.OnlyVpc" INVALIDPARAMETERVALUE_PROJECTIDNOTFOUND = "InvalidParameterValue.ProjectIdNotFound" INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" INVALIDPARAMETERVALUE_SIZE = "InvalidParameterValue.Size" INVALIDPARAMETERVALUE_SUBNETIDS = "InvalidParameterValue.SubnetIds" INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" INVALIDPARAMETERVALUE_ZONEMISMATCHREGION = "InvalidParameterValue.ZoneMismatchRegion" LIMITEXCEEDED = "LimitExceeded" LIMITEXCEEDED_AUTOSCALINGGROUPLIMITEXCEEDED = "LimitExceeded.AutoScalingGroupLimitExceeded" LIMITEXCEEDED_MAXSIZELIMITEXCEEDED = "LimitExceeded.MaxSizeLimitExceeded" LIMITEXCEEDED_MINSIZELIMITEXCEEDED = "LimitExceeded.MinSizeLimitExceeded" MISSINGPARAMETER_INSCENARIO = "MissingParameter.InScenario" RESOURCENOTFOUND_LISTENERNOTFOUND = "ResourceNotFound.ListenerNotFound" RESOURCENOTFOUND_LOADBALANCERNOTFOUND = "ResourceNotFound.LoadBalancerNotFound" RESOURCENOTFOUND_LOCATIONNOTFOUND = "ResourceNotFound.LocationNotFound" RESOURCEUNAVAILABLE_LAUNCHCONFIGURATIONSTATUSABNORMAL = "ResourceUnavailable.LaunchConfigurationStatusAbnormal" RESOURCEUNAVAILABLE_LBBACKENDREGIONINCONSISTENT = "ResourceUnavailable.LbBackendRegionInconsistent" RESOURCEUNAVAILABLE_LBVPCINCONSISTENT = "ResourceUnavailable.LbVpcInconsistent" RESOURCEUNAVAILABLE_PROJECTINCONSISTENT = "ResourceUnavailable.ProjectInconsistent" RESOURCEUNAVAILABLE_ZONEUNAVAILABLE = "ResourceUnavailable.ZoneUnavailable"
func (*Client) CreateLaunchConfiguration ¶
func (c *Client) CreateLaunchConfiguration(request *CreateLaunchConfigurationRequest) (response *CreateLaunchConfigurationResponse, err error)
CreateLaunchConfiguration This API is used to create a launch configuration.
* To modify a launch configuration, you can use `ModifyLaunchConfigurationAttributes`.
* You can create up to 20 launch configurations for each project. For more information, see [Usage Limits](https://intl.cloud.tencent.com/document/product/377/3120?from_cn_redirect=1).
error code that may be returned:
INTERNALERROR_CALLEEERROR = "InternalError.CalleeError" INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound" INVALIDPARAMETER_CONFLICT = "InvalidParameter.Conflict" INVALIDPARAMETER_HOSTNAMEUNAVAILABLE = "InvalidParameter.HostNameUnavailable" INVALIDPARAMETER_INVALIDCOMBINATION = "InvalidParameter.InvalidCombination" INVALIDPARAMETER_MUSTONEPARAMETER = "InvalidParameter.MustOneParameter" INVALIDPARAMETER_PARAMETERDEPRECATED = "InvalidParameter.ParameterDeprecated" INVALIDPARAMETER_PARAMETERMUSTBEDELETED = "InvalidParameter.ParameterMustBeDeleted" INVALIDPARAMETERVALUE_ACCOUNTNOTSUPPORTBANDWIDTHPACKAGEID = "InvalidParameterValue.AccountNotSupportBandwidthPackageId" INVALIDPARAMETERVALUE_CVMCONFIGURATIONERROR = "InvalidParameterValue.CvmConfigurationError" INVALIDPARAMETERVALUE_HOSTNAMEILLEGAL = "InvalidParameterValue.HostNameIllegal" INVALIDPARAMETERVALUE_IPV6INTERNETCHARGETYPE = "InvalidParameterValue.IPv6InternetChargeType" INVALIDPARAMETERVALUE_INSTANCENAMEILLEGAL = "InvalidParameterValue.InstanceNameIllegal" INVALIDPARAMETERVALUE_INSTANCETYPENOTSUPPORTED = "InvalidParameterValue.InstanceTypeNotSupported" INVALIDPARAMETERVALUE_INVALIDHPCCLUSTERID = "InvalidParameterValue.InvalidHpcClusterId" INVALIDPARAMETERVALUE_INVALIDIMAGEID = "InvalidParameterValue.InvalidImageId" INVALIDPARAMETERVALUE_INVALIDINSTANCETYPE = "InvalidParameterValue.InvalidInstanceType" INVALIDPARAMETERVALUE_INVALIDLAUNCHCONFIGURATION = "InvalidParameterValue.InvalidLaunchConfiguration" INVALIDPARAMETERVALUE_INVALIDSECURITYGROUPID = "InvalidParameterValue.InvalidSecurityGroupId" INVALIDPARAMETERVALUE_INVALIDSNAPSHOTID = "InvalidParameterValue.InvalidSnapshotId" INVALIDPARAMETERVALUE_LAUNCHCONFIGURATIONNAMEDUPLICATED = "InvalidParameterValue.LaunchConfigurationNameDuplicated" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" INVALIDPARAMETERVALUE_MISSINGBANDWIDTHPACKAGEID = "InvalidParameterValue.MissingBandwidthPackageId" INVALIDPARAMETERVALUE_NOTSTRINGTYPEFLOAT = "InvalidParameterValue.NotStringTypeFloat" INVALIDPARAMETERVALUE_PROJECTIDNOTFOUND = "InvalidParameterValue.ProjectIdNotFound" INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" INVALIDPARAMETERVALUE_TOOSHORT = "InvalidParameterValue.TooShort" INVALIDPARAMETERVALUE_USERDATAFORMATERROR = "InvalidParameterValue.UserDataFormatError" INVALIDPARAMETERVALUE_USERDATASIZEEXCEEDED = "InvalidParameterValue.UserDataSizeExceeded" INVALIDPERMISSION = "InvalidPermission" LIMITEXCEEDED_LAUNCHCONFIGURATIONQUOTANOTENOUGH = "LimitExceeded.LaunchConfigurationQuotaNotEnough" MISSINGPARAMETER = "MissingParameter" MISSINGPARAMETER_INSTANCEMARKETOPTIONS = "MissingParameter.InstanceMarketOptions" RESOURCENOTFOUND_BANDWIDTHPACKAGEIDNOTFOUND = "ResourceNotFound.BandwidthPackageIdNotFound"
func (*Client) CreateLaunchConfigurationWithContext ¶
func (c *Client) CreateLaunchConfigurationWithContext(ctx context.Context, request *CreateLaunchConfigurationRequest) (response *CreateLaunchConfigurationResponse, err error)
CreateLaunchConfiguration This API is used to create a launch configuration.
* To modify a launch configuration, you can use `ModifyLaunchConfigurationAttributes`.
* You can create up to 20 launch configurations for each project. For more information, see [Usage Limits](https://intl.cloud.tencent.com/document/product/377/3120?from_cn_redirect=1).
error code that may be returned:
INTERNALERROR_CALLEEERROR = "InternalError.CalleeError" INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound" INVALIDPARAMETER_CONFLICT = "InvalidParameter.Conflict" INVALIDPARAMETER_HOSTNAMEUNAVAILABLE = "InvalidParameter.HostNameUnavailable" INVALIDPARAMETER_INVALIDCOMBINATION = "InvalidParameter.InvalidCombination" INVALIDPARAMETER_MUSTONEPARAMETER = "InvalidParameter.MustOneParameter" INVALIDPARAMETER_PARAMETERDEPRECATED = "InvalidParameter.ParameterDeprecated" INVALIDPARAMETER_PARAMETERMUSTBEDELETED = "InvalidParameter.ParameterMustBeDeleted" INVALIDPARAMETERVALUE_ACCOUNTNOTSUPPORTBANDWIDTHPACKAGEID = "InvalidParameterValue.AccountNotSupportBandwidthPackageId" INVALIDPARAMETERVALUE_CVMCONFIGURATIONERROR = "InvalidParameterValue.CvmConfigurationError" INVALIDPARAMETERVALUE_HOSTNAMEILLEGAL = "InvalidParameterValue.HostNameIllegal" INVALIDPARAMETERVALUE_IPV6INTERNETCHARGETYPE = "InvalidParameterValue.IPv6InternetChargeType" INVALIDPARAMETERVALUE_INSTANCENAMEILLEGAL = "InvalidParameterValue.InstanceNameIllegal" INVALIDPARAMETERVALUE_INSTANCETYPENOTSUPPORTED = "InvalidParameterValue.InstanceTypeNotSupported" INVALIDPARAMETERVALUE_INVALIDHPCCLUSTERID = "InvalidParameterValue.InvalidHpcClusterId" INVALIDPARAMETERVALUE_INVALIDIMAGEID = "InvalidParameterValue.InvalidImageId" INVALIDPARAMETERVALUE_INVALIDINSTANCETYPE = "InvalidParameterValue.InvalidInstanceType" INVALIDPARAMETERVALUE_INVALIDLAUNCHCONFIGURATION = "InvalidParameterValue.InvalidLaunchConfiguration" INVALIDPARAMETERVALUE_INVALIDSECURITYGROUPID = "InvalidParameterValue.InvalidSecurityGroupId" INVALIDPARAMETERVALUE_INVALIDSNAPSHOTID = "InvalidParameterValue.InvalidSnapshotId" INVALIDPARAMETERVALUE_LAUNCHCONFIGURATIONNAMEDUPLICATED = "InvalidParameterValue.LaunchConfigurationNameDuplicated" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" INVALIDPARAMETERVALUE_MISSINGBANDWIDTHPACKAGEID = "InvalidParameterValue.MissingBandwidthPackageId" INVALIDPARAMETERVALUE_NOTSTRINGTYPEFLOAT = "InvalidParameterValue.NotStringTypeFloat" INVALIDPARAMETERVALUE_PROJECTIDNOTFOUND = "InvalidParameterValue.ProjectIdNotFound" INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" INVALIDPARAMETERVALUE_TOOSHORT = "InvalidParameterValue.TooShort" INVALIDPARAMETERVALUE_USERDATAFORMATERROR = "InvalidParameterValue.UserDataFormatError" INVALIDPARAMETERVALUE_USERDATASIZEEXCEEDED = "InvalidParameterValue.UserDataSizeExceeded" INVALIDPERMISSION = "InvalidPermission" LIMITEXCEEDED_LAUNCHCONFIGURATIONQUOTANOTENOUGH = "LimitExceeded.LaunchConfigurationQuotaNotEnough" MISSINGPARAMETER = "MissingParameter" MISSINGPARAMETER_INSTANCEMARKETOPTIONS = "MissingParameter.InstanceMarketOptions" RESOURCENOTFOUND_BANDWIDTHPACKAGEIDNOTFOUND = "ResourceNotFound.BandwidthPackageIdNotFound"
func (*Client) CreateLifecycleHook ¶
func (c *Client) CreateLifecycleHook(request *CreateLifecycleHookRequest) (response *CreateLifecycleHookResponse, err error)
CreateLifecycleHook This API is used to create a lifecycle hook.
* You can configure notifications or automation commands (TAT) for the lifecycle hook.
If you configured a notification, Auto Scaling will notify the TDMQ queue of the following information:
```
{
"Service": "Tencent Cloud Auto Scaling", "Time": "2019-03-14T10:15:11Z", "AppId": "1251783334", "ActivityId": "asa-fznnvrja", "AutoScalingGroupId": "asg-rrrrtttt", "LifecycleHookId": "ash-xxxxyyyy", "LifecycleHookName": "my-hook", "LifecycleActionToken": "3080e1c9-0efe-4dd7-ad3b-90cd6618298f", "InstanceId": "ins-aaaabbbb", "LifecycleTransition": "INSTANCE_LAUNCHING", "NotificationMetadata": ""
}
```
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_CALLCMQERROR = "InternalError.CallCmqError" INTERNALERROR_CALLTATERROR = "InternalError.CallTATError" INTERNALERROR_CALLEEERROR = "InternalError.CalleeError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound" INVALIDPARAMETER_CONFLICT = "InvalidParameter.Conflict" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_FILTER = "InvalidParameterValue.Filter" INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGGROUPID = "InvalidParameterValue.InvalidAutoScalingGroupId" INVALIDPARAMETERVALUE_LIFECYCLEHOOKNAMEDUPLICATED = "InvalidParameterValue.LifecycleHookNameDuplicated" INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" LIMITEXCEEDED_QUOTANOTENOUGH = "LimitExceeded.QuotaNotEnough" MISSINGPARAMETER = "MissingParameter" RESOURCENOTFOUND_AUTOSCALINGGROUPNOTFOUND = "ResourceNotFound.AutoScalingGroupNotFound" RESOURCENOTFOUND_CMQQUEUENOTFOUND = "ResourceNotFound.CmqQueueNotFound" RESOURCENOTFOUND_COMMANDNOTFOUND = "ResourceNotFound.CommandNotFound" RESOURCENOTFOUND_TDMQCMQQUEUENOTFOUND = "ResourceNotFound.TDMQCMQQueueNotFound" RESOURCENOTFOUND_TDMQCMQTOPICNOTFOUND = "ResourceNotFound.TDMQCMQTopicNotFound" RESOURCEUNAVAILABLE_CMQTOPICHASNOSUBSCRIBER = "ResourceUnavailable.CmqTopicHasNoSubscriber" RESOURCEUNAVAILABLE_TDMQCMQTOPICHASNOSUBSCRIBER = "ResourceUnavailable.TDMQCMQTopicHasNoSubscriber"
func (*Client) CreateLifecycleHookWithContext ¶
func (c *Client) CreateLifecycleHookWithContext(ctx context.Context, request *CreateLifecycleHookRequest) (response *CreateLifecycleHookResponse, err error)
CreateLifecycleHook This API is used to create a lifecycle hook.
* You can configure notifications or automation commands (TAT) for the lifecycle hook.
If you configured a notification, Auto Scaling will notify the TDMQ queue of the following information:
```
{
"Service": "Tencent Cloud Auto Scaling", "Time": "2019-03-14T10:15:11Z", "AppId": "1251783334", "ActivityId": "asa-fznnvrja", "AutoScalingGroupId": "asg-rrrrtttt", "LifecycleHookId": "ash-xxxxyyyy", "LifecycleHookName": "my-hook", "LifecycleActionToken": "3080e1c9-0efe-4dd7-ad3b-90cd6618298f", "InstanceId": "ins-aaaabbbb", "LifecycleTransition": "INSTANCE_LAUNCHING", "NotificationMetadata": ""
}
```
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_CALLCMQERROR = "InternalError.CallCmqError" INTERNALERROR_CALLTATERROR = "InternalError.CallTATError" INTERNALERROR_CALLEEERROR = "InternalError.CalleeError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound" INVALIDPARAMETER_CONFLICT = "InvalidParameter.Conflict" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_FILTER = "InvalidParameterValue.Filter" INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGGROUPID = "InvalidParameterValue.InvalidAutoScalingGroupId" INVALIDPARAMETERVALUE_LIFECYCLEHOOKNAMEDUPLICATED = "InvalidParameterValue.LifecycleHookNameDuplicated" INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" LIMITEXCEEDED_QUOTANOTENOUGH = "LimitExceeded.QuotaNotEnough" MISSINGPARAMETER = "MissingParameter" RESOURCENOTFOUND_AUTOSCALINGGROUPNOTFOUND = "ResourceNotFound.AutoScalingGroupNotFound" RESOURCENOTFOUND_CMQQUEUENOTFOUND = "ResourceNotFound.CmqQueueNotFound" RESOURCENOTFOUND_COMMANDNOTFOUND = "ResourceNotFound.CommandNotFound" RESOURCENOTFOUND_TDMQCMQQUEUENOTFOUND = "ResourceNotFound.TDMQCMQQueueNotFound" RESOURCENOTFOUND_TDMQCMQTOPICNOTFOUND = "ResourceNotFound.TDMQCMQTopicNotFound" RESOURCEUNAVAILABLE_CMQTOPICHASNOSUBSCRIBER = "ResourceUnavailable.CmqTopicHasNoSubscriber" RESOURCEUNAVAILABLE_TDMQCMQTOPICHASNOSUBSCRIBER = "ResourceUnavailable.TDMQCMQTopicHasNoSubscriber"
func (*Client) CreateNotificationConfiguration ¶
func (c *Client) CreateNotificationConfiguration(request *CreateNotificationConfigurationRequest) (response *CreateNotificationConfigurationResponse, err error)
CreateNotificationConfiguration This API is used to create a notification policy.
When the notification is sent to a CMQ topic or queue, the following contents are included:
```
{
"Service": "Tencent Cloud Auto Scaling", "CreatedTime": "2021-10-11T10:15:11Z", // Activity creation time "AppId": "100000000", "ActivityId": "asa-fznnvrja", // Scaling activity ID "AutoScalingGroupId": "asg-pc2oqu2z", // Scaling group ID "ActivityType": "SCALE_OUT", // Scaling activity type "StatusCode": "SUCCESSFUL", // Scaling activity result "Description": "Activity was launched in response to a difference between desired capacity and actual capacity, scale out 1 instance(s).", // Scaling activity description "StartTime": "2021-10-11T10:15:11Z", // Activity starting time "EndTime": "2021-10-11T10:15:32Z", // Activity ending time "DetailedStatusMessageSet": [ // A collection of failed attempts during the scaling process (Failed attempts are allowed in a successful scaling activity) { "Code": "InvalidInstanceType", "Zone": "ap-guangzhou-2", "InstanceId": "", "InstanceChargeType": "POSTPAID_BY_HOUR", "SubnetId": "subnet-4t5mgeuu", "Message": "The specified instance type `S5.LARGE8` is invalid in `subnet-4t5mgeuu`, `ap-guangzhou-2`.", "InstanceType": "S5.LARGE8", } ]
}
```
error code that may be returned:
INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound" INVALIDPARAMETERVALUE_CONFLICTNOTIFICATIONTARGET = "InvalidParameterValue.ConflictNotificationTarget" INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGGROUPID = "InvalidParameterValue.InvalidAutoScalingGroupId" INVALIDPARAMETERVALUE_INVALIDNOTIFICATIONUSERGROUPID = "InvalidParameterValue.InvalidNotificationUserGroupId" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" INVALIDPARAMETERVALUE_USERGROUPIDNOTFOUND = "InvalidParameterValue.UserGroupIdNotFound" LIMITEXCEEDED = "LimitExceeded" LIMITEXCEEDED_QUOTANOTENOUGH = "LimitExceeded.QuotaNotEnough" MISSINGPARAMETER = "MissingParameter" RESOURCENOTFOUND_AUTOSCALINGGROUPNOTFOUND = "ResourceNotFound.AutoScalingGroupNotFound" RESOURCENOTFOUND_CMQQUEUENOTFOUND = "ResourceNotFound.CmqQueueNotFound" RESOURCENOTFOUND_TDMQCMQQUEUENOTFOUND = "ResourceNotFound.TDMQCMQQueueNotFound" RESOURCENOTFOUND_TDMQCMQTOPICNOTFOUND = "ResourceNotFound.TDMQCMQTopicNotFound" RESOURCEUNAVAILABLE_CMQTOPICHASNOSUBSCRIBER = "ResourceUnavailable.CmqTopicHasNoSubscriber" RESOURCEUNAVAILABLE_TDMQCMQTOPICHASNOSUBSCRIBER = "ResourceUnavailable.TDMQCMQTopicHasNoSubscriber"
func (*Client) CreateNotificationConfigurationWithContext ¶
func (c *Client) CreateNotificationConfigurationWithContext(ctx context.Context, request *CreateNotificationConfigurationRequest) (response *CreateNotificationConfigurationResponse, err error)
CreateNotificationConfiguration This API is used to create a notification policy.
When the notification is sent to a CMQ topic or queue, the following contents are included:
```
{
"Service": "Tencent Cloud Auto Scaling", "CreatedTime": "2021-10-11T10:15:11Z", // Activity creation time "AppId": "100000000", "ActivityId": "asa-fznnvrja", // Scaling activity ID "AutoScalingGroupId": "asg-pc2oqu2z", // Scaling group ID "ActivityType": "SCALE_OUT", // Scaling activity type "StatusCode": "SUCCESSFUL", // Scaling activity result "Description": "Activity was launched in response to a difference between desired capacity and actual capacity, scale out 1 instance(s).", // Scaling activity description "StartTime": "2021-10-11T10:15:11Z", // Activity starting time "EndTime": "2021-10-11T10:15:32Z", // Activity ending time "DetailedStatusMessageSet": [ // A collection of failed attempts during the scaling process (Failed attempts are allowed in a successful scaling activity) { "Code": "InvalidInstanceType", "Zone": "ap-guangzhou-2", "InstanceId": "", "InstanceChargeType": "POSTPAID_BY_HOUR", "SubnetId": "subnet-4t5mgeuu", "Message": "The specified instance type `S5.LARGE8` is invalid in `subnet-4t5mgeuu`, `ap-guangzhou-2`.", "InstanceType": "S5.LARGE8", } ]
}
```
error code that may be returned:
INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound" INVALIDPARAMETERVALUE_CONFLICTNOTIFICATIONTARGET = "InvalidParameterValue.ConflictNotificationTarget" INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGGROUPID = "InvalidParameterValue.InvalidAutoScalingGroupId" INVALIDPARAMETERVALUE_INVALIDNOTIFICATIONUSERGROUPID = "InvalidParameterValue.InvalidNotificationUserGroupId" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" INVALIDPARAMETERVALUE_USERGROUPIDNOTFOUND = "InvalidParameterValue.UserGroupIdNotFound" LIMITEXCEEDED = "LimitExceeded" LIMITEXCEEDED_QUOTANOTENOUGH = "LimitExceeded.QuotaNotEnough" MISSINGPARAMETER = "MissingParameter" RESOURCENOTFOUND_AUTOSCALINGGROUPNOTFOUND = "ResourceNotFound.AutoScalingGroupNotFound" RESOURCENOTFOUND_CMQQUEUENOTFOUND = "ResourceNotFound.CmqQueueNotFound" RESOURCENOTFOUND_TDMQCMQQUEUENOTFOUND = "ResourceNotFound.TDMQCMQQueueNotFound" RESOURCENOTFOUND_TDMQCMQTOPICNOTFOUND = "ResourceNotFound.TDMQCMQTopicNotFound" RESOURCEUNAVAILABLE_CMQTOPICHASNOSUBSCRIBER = "ResourceUnavailable.CmqTopicHasNoSubscriber" RESOURCEUNAVAILABLE_TDMQCMQTOPICHASNOSUBSCRIBER = "ResourceUnavailable.TDMQCMQTopicHasNoSubscriber"
func (*Client) CreateScalingPolicy ¶
func (c *Client) CreateScalingPolicy(request *CreateScalingPolicyRequest) (response *CreateScalingPolicyResponse, err error)
CreateScalingPolicy This API (CreateScalingPolicy) is used to create an alarm trigger policy.
error code that may be returned:
INTERNALERROR_CALLNOTIFICATIONERROR = "InternalError.CallNotificationError" INTERNALERROR_REQUESTERROR = "InternalError.RequestError" INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound" INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGGROUPID = "InvalidParameterValue.InvalidAutoScalingGroupId" INVALIDPARAMETERVALUE_INVALIDNOTIFICATIONUSERGROUPID = "InvalidParameterValue.InvalidNotificationUserGroupId" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" INVALIDPARAMETERVALUE_SCALINGPOLICYNAMEDUPLICATE = "InvalidParameterValue.ScalingPolicyNameDuplicate" INVALIDPARAMETERVALUE_THRESHOLDOUTOFRANGE = "InvalidParameterValue.ThresholdOutOfRange" INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" INVALIDPARAMETERVALUE_USERGROUPIDNOTFOUND = "InvalidParameterValue.UserGroupIdNotFound" LIMITEXCEEDED_QUOTANOTENOUGH = "LimitExceeded.QuotaNotEnough" RESOURCENOTFOUND_AUTOSCALINGGROUPNOTFOUND = "ResourceNotFound.AutoScalingGroupNotFound"
func (*Client) CreateScalingPolicyWithContext ¶
func (c *Client) CreateScalingPolicyWithContext(ctx context.Context, request *CreateScalingPolicyRequest) (response *CreateScalingPolicyResponse, err error)
CreateScalingPolicy This API (CreateScalingPolicy) is used to create an alarm trigger policy.
error code that may be returned:
INTERNALERROR_CALLNOTIFICATIONERROR = "InternalError.CallNotificationError" INTERNALERROR_REQUESTERROR = "InternalError.RequestError" INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound" INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGGROUPID = "InvalidParameterValue.InvalidAutoScalingGroupId" INVALIDPARAMETERVALUE_INVALIDNOTIFICATIONUSERGROUPID = "InvalidParameterValue.InvalidNotificationUserGroupId" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" INVALIDPARAMETERVALUE_SCALINGPOLICYNAMEDUPLICATE = "InvalidParameterValue.ScalingPolicyNameDuplicate" INVALIDPARAMETERVALUE_THRESHOLDOUTOFRANGE = "InvalidParameterValue.ThresholdOutOfRange" INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" INVALIDPARAMETERVALUE_USERGROUPIDNOTFOUND = "InvalidParameterValue.UserGroupIdNotFound" LIMITEXCEEDED_QUOTANOTENOUGH = "LimitExceeded.QuotaNotEnough" RESOURCENOTFOUND_AUTOSCALINGGROUPNOTFOUND = "ResourceNotFound.AutoScalingGroupNotFound"
func (*Client) CreateScheduledAction ¶
func (c *Client) CreateScheduledAction(request *CreateScheduledActionRequest) (response *CreateScheduledActionResponse, err error)
CreateScheduledAction This API (CreateScheduledAction) is used to create a scheduled task.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound" INVALIDPARAMETERVALUE_CRONEXPRESSIONILLEGAL = "InvalidParameterValue.CronExpressionIllegal" INVALIDPARAMETERVALUE_ENDTIMEBEFORESTARTTIME = "InvalidParameterValue.EndTimeBeforeStartTime" INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGGROUPID = "InvalidParameterValue.InvalidAutoScalingGroupId" INVALIDPARAMETERVALUE_INVALIDSCHEDULEDACTIONNAMEINCLUDEILLEGALCHAR = "InvalidParameterValue.InvalidScheduledActionNameIncludeIllegalChar" INVALIDPARAMETERVALUE_SCHEDULEDACTIONNAMEDUPLICATE = "InvalidParameterValue.ScheduledActionNameDuplicate" INVALIDPARAMETERVALUE_SIZE = "InvalidParameterValue.Size" INVALIDPARAMETERVALUE_STARTTIMEBEFORECURRENTTIME = "InvalidParameterValue.StartTimeBeforeCurrentTime" INVALIDPARAMETERVALUE_TIMEFORMAT = "InvalidParameterValue.TimeFormat" INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" LIMITEXCEEDED_DESIREDCAPACITYLIMITEXCEEDED = "LimitExceeded.DesiredCapacityLimitExceeded" LIMITEXCEEDED_MAXSIZELIMITEXCEEDED = "LimitExceeded.MaxSizeLimitExceeded" LIMITEXCEEDED_MINSIZELIMITEXCEEDED = "LimitExceeded.MinSizeLimitExceeded" LIMITEXCEEDED_QUOTANOTENOUGH = "LimitExceeded.QuotaNotEnough" LIMITEXCEEDED_SCHEDULEDACTIONLIMITEXCEEDED = "LimitExceeded.ScheduledActionLimitExceeded" MISSINGPARAMETER = "MissingParameter" RESOURCENOTFOUND_AUTOSCALINGGROUPNOTFOUND = "ResourceNotFound.AutoScalingGroupNotFound"
func (*Client) CreateScheduledActionWithContext ¶
func (c *Client) CreateScheduledActionWithContext(ctx context.Context, request *CreateScheduledActionRequest) (response *CreateScheduledActionResponse, err error)
CreateScheduledAction This API (CreateScheduledAction) is used to create a scheduled task.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound" INVALIDPARAMETERVALUE_CRONEXPRESSIONILLEGAL = "InvalidParameterValue.CronExpressionIllegal" INVALIDPARAMETERVALUE_ENDTIMEBEFORESTARTTIME = "InvalidParameterValue.EndTimeBeforeStartTime" INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGGROUPID = "InvalidParameterValue.InvalidAutoScalingGroupId" INVALIDPARAMETERVALUE_INVALIDSCHEDULEDACTIONNAMEINCLUDEILLEGALCHAR = "InvalidParameterValue.InvalidScheduledActionNameIncludeIllegalChar" INVALIDPARAMETERVALUE_SCHEDULEDACTIONNAMEDUPLICATE = "InvalidParameterValue.ScheduledActionNameDuplicate" INVALIDPARAMETERVALUE_SIZE = "InvalidParameterValue.Size" INVALIDPARAMETERVALUE_STARTTIMEBEFORECURRENTTIME = "InvalidParameterValue.StartTimeBeforeCurrentTime" INVALIDPARAMETERVALUE_TIMEFORMAT = "InvalidParameterValue.TimeFormat" INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" LIMITEXCEEDED_DESIREDCAPACITYLIMITEXCEEDED = "LimitExceeded.DesiredCapacityLimitExceeded" LIMITEXCEEDED_MAXSIZELIMITEXCEEDED = "LimitExceeded.MaxSizeLimitExceeded" LIMITEXCEEDED_MINSIZELIMITEXCEEDED = "LimitExceeded.MinSizeLimitExceeded" LIMITEXCEEDED_QUOTANOTENOUGH = "LimitExceeded.QuotaNotEnough" LIMITEXCEEDED_SCHEDULEDACTIONLIMITEXCEEDED = "LimitExceeded.ScheduledActionLimitExceeded" MISSINGPARAMETER = "MissingParameter" RESOURCENOTFOUND_AUTOSCALINGGROUPNOTFOUND = "ResourceNotFound.AutoScalingGroupNotFound"
func (*Client) DeleteAutoScalingGroup ¶
func (c *Client) DeleteAutoScalingGroup(request *DeleteAutoScalingGroupRequest) (response *DeleteAutoScalingGroupResponse, err error)
DeleteAutoScalingGroup This API (DeleteAutoScalingGroup) is used to delete the specified auto scaling group that has no instances and remains inactive.
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_CALLERROR = "InternalError.CallError" INTERNALERROR_CALLMONITORERROR = "InternalError.CallMonitorError" INTERNALERROR_CALLTAGERROR = "InternalError.CallTagError" INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound" INVALIDPARAMETER_CONFLICT = "InvalidParameter.Conflict" INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGGROUPID = "InvalidParameterValue.InvalidAutoScalingGroupId" RESOURCEINUSE_ACTIVITYINPROGRESS = "ResourceInUse.ActivityInProgress" RESOURCEINUSE_INSTANCEINGROUP = "ResourceInUse.InstanceInGroup" RESOURCENOTFOUND_AUTOSCALINGGROUPNOTFOUND = "ResourceNotFound.AutoScalingGroupNotFound"
func (*Client) DeleteAutoScalingGroupWithContext ¶
func (c *Client) DeleteAutoScalingGroupWithContext(ctx context.Context, request *DeleteAutoScalingGroupRequest) (response *DeleteAutoScalingGroupResponse, err error)
DeleteAutoScalingGroup This API (DeleteAutoScalingGroup) is used to delete the specified auto scaling group that has no instances and remains inactive.
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_CALLERROR = "InternalError.CallError" INTERNALERROR_CALLMONITORERROR = "InternalError.CallMonitorError" INTERNALERROR_CALLTAGERROR = "InternalError.CallTagError" INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound" INVALIDPARAMETER_CONFLICT = "InvalidParameter.Conflict" INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGGROUPID = "InvalidParameterValue.InvalidAutoScalingGroupId" RESOURCEINUSE_ACTIVITYINPROGRESS = "ResourceInUse.ActivityInProgress" RESOURCEINUSE_INSTANCEINGROUP = "ResourceInUse.InstanceInGroup" RESOURCENOTFOUND_AUTOSCALINGGROUPNOTFOUND = "ResourceNotFound.AutoScalingGroupNotFound"
func (*Client) DeleteLaunchConfiguration ¶
func (c *Client) DeleteLaunchConfiguration(request *DeleteLaunchConfigurationRequest) (response *DeleteLaunchConfigurationResponse, err error)
DeleteLaunchConfiguration This API (DeleteLaunchConfiguration) is used to delete a launch configuration.
* If the launch configuration is active in an auto scaling group, it cannot be deleted.
error code that may be returned:
INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound" INVALIDPARAMETERVALUE_INVALIDLAUNCHCONFIGURATIONID = "InvalidParameterValue.InvalidLaunchConfigurationId" RESOURCEINUSE_LAUNCHCONFIGURATIONIDINUSE = "ResourceInUse.LaunchConfigurationIdInUse" RESOURCENOTFOUND_LAUNCHCONFIGURATIONIDNOTFOUND = "ResourceNotFound.LaunchConfigurationIdNotFound"
func (*Client) DeleteLaunchConfigurationWithContext ¶
func (c *Client) DeleteLaunchConfigurationWithContext(ctx context.Context, request *DeleteLaunchConfigurationRequest) (response *DeleteLaunchConfigurationResponse, err error)
DeleteLaunchConfiguration This API (DeleteLaunchConfiguration) is used to delete a launch configuration.
* If the launch configuration is active in an auto scaling group, it cannot be deleted.
error code that may be returned:
INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound" INVALIDPARAMETERVALUE_INVALIDLAUNCHCONFIGURATIONID = "InvalidParameterValue.InvalidLaunchConfigurationId" RESOURCEINUSE_LAUNCHCONFIGURATIONIDINUSE = "ResourceInUse.LaunchConfigurationIdInUse" RESOURCENOTFOUND_LAUNCHCONFIGURATIONIDNOTFOUND = "ResourceNotFound.LaunchConfigurationIdNotFound"
func (*Client) DeleteLifecycleHook ¶
func (c *Client) DeleteLifecycleHook(request *DeleteLifecycleHookRequest) (response *DeleteLifecycleHookResponse, err error)
DeleteLifecycleHook This API (DeleteLifeCycleHook) is used to delete a lifecycle hook.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound" INVALIDPARAMETERVALUE_INVALIDLIFECYCLEHOOKID = "InvalidParameterValue.InvalidLifecycleHookId" MISSINGPARAMETER = "MissingParameter" RESOURCENOTFOUND_LIFECYCLEHOOKNOTFOUND = "ResourceNotFound.LifecycleHookNotFound"
func (*Client) DeleteLifecycleHookWithContext ¶
func (c *Client) DeleteLifecycleHookWithContext(ctx context.Context, request *DeleteLifecycleHookRequest) (response *DeleteLifecycleHookResponse, err error)
DeleteLifecycleHook This API (DeleteLifeCycleHook) is used to delete a lifecycle hook.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound" INVALIDPARAMETERVALUE_INVALIDLIFECYCLEHOOKID = "InvalidParameterValue.InvalidLifecycleHookId" MISSINGPARAMETER = "MissingParameter" RESOURCENOTFOUND_LIFECYCLEHOOKNOTFOUND = "ResourceNotFound.LifecycleHookNotFound"
func (*Client) DeleteNotificationConfiguration ¶
func (c *Client) DeleteNotificationConfiguration(request *DeleteNotificationConfigurationRequest) (response *DeleteNotificationConfigurationResponse, err error)
DeleteNotificationConfiguration This API (DeleteNotificationConfiguration) is used to delete the specified notification.
error code that may be returned:
INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound" INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGNOTIFICATIONID = "InvalidParameterValue.InvalidAutoScalingNotificationId" RESOURCENOTFOUND_AUTOSCALINGNOTIFICATIONNOTFOUND = "ResourceNotFound.AutoScalingNotificationNotFound"
func (*Client) DeleteNotificationConfigurationWithContext ¶
func (c *Client) DeleteNotificationConfigurationWithContext(ctx context.Context, request *DeleteNotificationConfigurationRequest) (response *DeleteNotificationConfigurationResponse, err error)
DeleteNotificationConfiguration This API (DeleteNotificationConfiguration) is used to delete the specified notification.
error code that may be returned:
INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound" INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGNOTIFICATIONID = "InvalidParameterValue.InvalidAutoScalingNotificationId" RESOURCENOTFOUND_AUTOSCALINGNOTIFICATIONNOTFOUND = "ResourceNotFound.AutoScalingNotificationNotFound"
func (*Client) DeleteScalingPolicy ¶
func (c *Client) DeleteScalingPolicy(request *DeleteScalingPolicyRequest) (response *DeleteScalingPolicyResponse, err error)
DeleteScalingPolicy This API (DeleteScalingPolicy) is used to delete an alarm trigger policy.
error code that may be returned:
INTERNALERROR_REQUESTERROR = "InternalError.RequestError" INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound" INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGPOLICYID = "InvalidParameterValue.InvalidAutoScalingPolicyId" RESOURCENOTFOUND_SCALINGPOLICYNOTFOUND = "ResourceNotFound.ScalingPolicyNotFound"
func (*Client) DeleteScalingPolicyWithContext ¶
func (c *Client) DeleteScalingPolicyWithContext(ctx context.Context, request *DeleteScalingPolicyRequest) (response *DeleteScalingPolicyResponse, err error)
DeleteScalingPolicy This API (DeleteScalingPolicy) is used to delete an alarm trigger policy.
error code that may be returned:
INTERNALERROR_REQUESTERROR = "InternalError.RequestError" INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound" INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGPOLICYID = "InvalidParameterValue.InvalidAutoScalingPolicyId" RESOURCENOTFOUND_SCALINGPOLICYNOTFOUND = "ResourceNotFound.ScalingPolicyNotFound"
func (*Client) DeleteScheduledAction ¶
func (c *Client) DeleteScheduledAction(request *DeleteScheduledActionRequest) (response *DeleteScheduledActionResponse, err error)
DeleteScheduledAction This API (DeleteScheduledAction) is used to delete the specified scheduled task.
error code that may be returned:
INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound" INVALIDPARAMETERVALUE_INVALIDSCHEDULEDACTIONID = "InvalidParameterValue.InvalidScheduledActionId" RESOURCENOTFOUND_SCHEDULEDACTIONNOTFOUND = "ResourceNotFound.ScheduledActionNotFound"
func (*Client) DeleteScheduledActionWithContext ¶
func (c *Client) DeleteScheduledActionWithContext(ctx context.Context, request *DeleteScheduledActionRequest) (response *DeleteScheduledActionResponse, err error)
DeleteScheduledAction This API (DeleteScheduledAction) is used to delete the specified scheduled task.
error code that may be returned:
INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound" INVALIDPARAMETERVALUE_INVALIDSCHEDULEDACTIONID = "InvalidParameterValue.InvalidScheduledActionId" RESOURCENOTFOUND_SCHEDULEDACTIONNOTFOUND = "ResourceNotFound.ScheduledActionNotFound"
func (*Client) DescribeAccountLimits ¶
func (c *Client) DescribeAccountLimits(request *DescribeAccountLimitsRequest) (response *DescribeAccountLimitsResponse, err error)
DescribeAccountLimits This API (DescribeAccountLimits) is used to query the limits of user's AS resources.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound"
func (*Client) DescribeAccountLimitsWithContext ¶
func (c *Client) DescribeAccountLimitsWithContext(ctx context.Context, request *DescribeAccountLimitsRequest) (response *DescribeAccountLimitsResponse, err error)
DescribeAccountLimits This API (DescribeAccountLimits) is used to query the limits of user's AS resources.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound"
func (*Client) DescribeAutoScalingActivities ¶
func (c *Client) DescribeAutoScalingActivities(request *DescribeAutoScalingActivitiesRequest) (response *DescribeAutoScalingActivitiesResponse, err error)
DescribeAutoScalingActivities This API (DescribeAutoScalingActivities) is used to query the activity history of an auto scaling group.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound" INVALIDPARAMETER_CONFLICT = "InvalidParameter.Conflict" INVALIDPARAMETERVALUE_FILTER = "InvalidParameterValue.Filter" INVALIDPARAMETERVALUE_INVALIDACTIVITYID = "InvalidParameterValue.InvalidActivityId" INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGGROUPID = "InvalidParameterValue.InvalidAutoScalingGroupId" INVALIDPARAMETERVALUE_INVALIDFILTER = "InvalidParameterValue.InvalidFilter" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" LIMITEXCEEDED_FILTERVALUESTOOLONG = "LimitExceeded.FilterValuesTooLong"
func (*Client) DescribeAutoScalingActivitiesWithContext ¶
func (c *Client) DescribeAutoScalingActivitiesWithContext(ctx context.Context, request *DescribeAutoScalingActivitiesRequest) (response *DescribeAutoScalingActivitiesResponse, err error)
DescribeAutoScalingActivities This API (DescribeAutoScalingActivities) is used to query the activity history of an auto scaling group.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound" INVALIDPARAMETER_CONFLICT = "InvalidParameter.Conflict" INVALIDPARAMETERVALUE_FILTER = "InvalidParameterValue.Filter" INVALIDPARAMETERVALUE_INVALIDACTIVITYID = "InvalidParameterValue.InvalidActivityId" INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGGROUPID = "InvalidParameterValue.InvalidAutoScalingGroupId" INVALIDPARAMETERVALUE_INVALIDFILTER = "InvalidParameterValue.InvalidFilter" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" LIMITEXCEEDED_FILTERVALUESTOOLONG = "LimitExceeded.FilterValuesTooLong"
func (*Client) DescribeAutoScalingAdvices ¶
func (c *Client) DescribeAutoScalingAdvices(request *DescribeAutoScalingAdvicesRequest) (response *DescribeAutoScalingAdvicesResponse, err error)
DescribeAutoScalingAdvices This API is used to query suggestions for scaling group configurations.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded"
func (*Client) DescribeAutoScalingAdvicesWithContext ¶
func (c *Client) DescribeAutoScalingAdvicesWithContext(ctx context.Context, request *DescribeAutoScalingAdvicesRequest) (response *DescribeAutoScalingAdvicesResponse, err error)
DescribeAutoScalingAdvices This API is used to query suggestions for scaling group configurations.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded"
func (*Client) DescribeAutoScalingGroupLastActivities ¶
func (c *Client) DescribeAutoScalingGroupLastActivities(request *DescribeAutoScalingGroupLastActivitiesRequest) (response *DescribeAutoScalingGroupLastActivitiesResponse, err error)
DescribeAutoScalingGroupLastActivities This API is used to query the latest activity history of an auto scaling group.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" INVALIDPARAMETERVALUE_NORESOURCEPERMISSION = "InvalidParameterValue.NoResourcePermission"
func (*Client) DescribeAutoScalingGroupLastActivitiesWithContext ¶
func (c *Client) DescribeAutoScalingGroupLastActivitiesWithContext(ctx context.Context, request *DescribeAutoScalingGroupLastActivitiesRequest) (response *DescribeAutoScalingGroupLastActivitiesResponse, err error)
DescribeAutoScalingGroupLastActivities This API is used to query the latest activity history of an auto scaling group.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" INVALIDPARAMETERVALUE_NORESOURCEPERMISSION = "InvalidParameterValue.NoResourcePermission"
func (*Client) DescribeAutoScalingGroups ¶
func (c *Client) DescribeAutoScalingGroups(request *DescribeAutoScalingGroupsRequest) (response *DescribeAutoScalingGroupsResponse, err error)
DescribeAutoScalingGroups This API (DescribeAutoScalingGroups) is used to query the information of auto scaling groups.
* You can query the details of auto scaling groups based on information such as auto scaling group ID, auto scaling group name, or launch configuration ID. For more information on filters, see `Filter`.
* If the parameter is empty, a certain number (specified by `Limit` and 20 by default) of auto scaling groups of the current user will be returned.
error code that may be returned:
INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound" INVALIDPARAMETER_CONFLICT = "InvalidParameter.Conflict" INVALIDPARAMETERCONFLICT = "InvalidParameterConflict" INVALIDPARAMETERVALUE_FILTER = "InvalidParameterValue.Filter" INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGGROUPID = "InvalidParameterValue.InvalidAutoScalingGroupId" INVALIDPARAMETERVALUE_INVALIDFILTER = "InvalidParameterValue.InvalidFilter" INVALIDPARAMETERVALUE_INVALIDLAUNCHCONFIGURATIONID = "InvalidParameterValue.InvalidLaunchConfigurationId" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" INVALIDPERMISSION = "InvalidPermission" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DescribeAutoScalingGroupsWithContext ¶
func (c *Client) DescribeAutoScalingGroupsWithContext(ctx context.Context, request *DescribeAutoScalingGroupsRequest) (response *DescribeAutoScalingGroupsResponse, err error)
DescribeAutoScalingGroups This API (DescribeAutoScalingGroups) is used to query the information of auto scaling groups.
* You can query the details of auto scaling groups based on information such as auto scaling group ID, auto scaling group name, or launch configuration ID. For more information on filters, see `Filter`.
* If the parameter is empty, a certain number (specified by `Limit` and 20 by default) of auto scaling groups of the current user will be returned.
error code that may be returned:
INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound" INVALIDPARAMETER_CONFLICT = "InvalidParameter.Conflict" INVALIDPARAMETERCONFLICT = "InvalidParameterConflict" INVALIDPARAMETERVALUE_FILTER = "InvalidParameterValue.Filter" INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGGROUPID = "InvalidParameterValue.InvalidAutoScalingGroupId" INVALIDPARAMETERVALUE_INVALIDFILTER = "InvalidParameterValue.InvalidFilter" INVALIDPARAMETERVALUE_INVALIDLAUNCHCONFIGURATIONID = "InvalidParameterValue.InvalidLaunchConfigurationId" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" INVALIDPERMISSION = "InvalidPermission" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DescribeAutoScalingInstances ¶
func (c *Client) DescribeAutoScalingInstances(request *DescribeAutoScalingInstancesRequest) (response *DescribeAutoScalingInstancesResponse, err error)
DescribeAutoScalingInstances This API (DescribeAutoScalingInstances) is used to query the information of instances associated with AS.
* You can query the details of instances based on information such as instance ID and auto scaling group ID. For more information on filters, see `Filter`.
* If the parameter is empty, a certain number (specified by `Limit` and 20 by default) of instances of the current user will be returned.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound" INVALIDPARAMETER_CONFLICT = "InvalidParameter.Conflict" INVALIDPARAMETERVALUE_FILTER = "InvalidParameterValue.Filter" INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGGROUPID = "InvalidParameterValue.InvalidAutoScalingGroupId" INVALIDPARAMETERVALUE_INVALIDFILTER = "InvalidParameterValue.InvalidFilter" INVALIDPARAMETERVALUE_INVALIDINSTANCEID = "InvalidParameterValue.InvalidInstanceId" LIMITEXCEEDED_FILTERVALUESTOOLONG = "LimitExceeded.FilterValuesTooLong"
func (*Client) DescribeAutoScalingInstancesWithContext ¶
func (c *Client) DescribeAutoScalingInstancesWithContext(ctx context.Context, request *DescribeAutoScalingInstancesRequest) (response *DescribeAutoScalingInstancesResponse, err error)
DescribeAutoScalingInstances This API (DescribeAutoScalingInstances) is used to query the information of instances associated with AS.
* You can query the details of instances based on information such as instance ID and auto scaling group ID. For more information on filters, see `Filter`.
* If the parameter is empty, a certain number (specified by `Limit` and 20 by default) of instances of the current user will be returned.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound" INVALIDPARAMETER_CONFLICT = "InvalidParameter.Conflict" INVALIDPARAMETERVALUE_FILTER = "InvalidParameterValue.Filter" INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGGROUPID = "InvalidParameterValue.InvalidAutoScalingGroupId" INVALIDPARAMETERVALUE_INVALIDFILTER = "InvalidParameterValue.InvalidFilter" INVALIDPARAMETERVALUE_INVALIDINSTANCEID = "InvalidParameterValue.InvalidInstanceId" LIMITEXCEEDED_FILTERVALUESTOOLONG = "LimitExceeded.FilterValuesTooLong"
func (*Client) DescribeLaunchConfigurations ¶
func (c *Client) DescribeLaunchConfigurations(request *DescribeLaunchConfigurationsRequest) (response *DescribeLaunchConfigurationsResponse, err error)
DescribeLaunchConfigurations This API is used to query the information of launch configurations.
* You can query the launch configuration details based on information such as launch configuration ID and name. For more information on filters, see `Filter`.
* If the parameter is empty, a certain number (specified by `Limit` and 20 by default) of launch configurations of the current user will be returned.
error code that may be returned:
INVALIDLAUNCHCONFIGURATION = "InvalidLaunchConfiguration" INVALIDLAUNCHCONFIGURATIONID = "InvalidLaunchConfigurationId" INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound" INVALIDPARAMETERCONFLICT = "InvalidParameterConflict" INVALIDPARAMETERVALUE_INVALIDFILTER = "InvalidParameterValue.InvalidFilter" INVALIDPARAMETERVALUE_INVALIDLAUNCHCONFIGURATIONID = "InvalidParameterValue.InvalidLaunchConfigurationId" INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" INVALIDPERMISSION = "InvalidPermission" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DescribeLaunchConfigurationsWithContext ¶
func (c *Client) DescribeLaunchConfigurationsWithContext(ctx context.Context, request *DescribeLaunchConfigurationsRequest) (response *DescribeLaunchConfigurationsResponse, err error)
DescribeLaunchConfigurations This API is used to query the information of launch configurations.
* You can query the launch configuration details based on information such as launch configuration ID and name. For more information on filters, see `Filter`.
* If the parameter is empty, a certain number (specified by `Limit` and 20 by default) of launch configurations of the current user will be returned.
error code that may be returned:
INVALIDLAUNCHCONFIGURATION = "InvalidLaunchConfiguration" INVALIDLAUNCHCONFIGURATIONID = "InvalidLaunchConfigurationId" INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound" INVALIDPARAMETERCONFLICT = "InvalidParameterConflict" INVALIDPARAMETERVALUE_INVALIDFILTER = "InvalidParameterValue.InvalidFilter" INVALIDPARAMETERVALUE_INVALIDLAUNCHCONFIGURATIONID = "InvalidParameterValue.InvalidLaunchConfigurationId" INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" INVALIDPERMISSION = "InvalidPermission" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DescribeLifecycleHooks ¶
func (c *Client) DescribeLifecycleHooks(request *DescribeLifecycleHooksRequest) (response *DescribeLifecycleHooksResponse, err error)
DescribeLifecycleHooks This API (DescribeLifecycleHooks) is used to query the information of lifecycle hooks.
* You can query the details of lifecycle hooks based on information such as auto scaling group ID, lifecycle hook ID, or lifecycle hook name. For more information on filters, see `Filter`.
* If the parameter is empty, a certain number (specified by `Limit` and 20 by default) of lifecycle hooks of the current user will be returned.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound" INVALIDPARAMETER_CONFLICT = "InvalidParameter.Conflict" INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGGROUPID = "InvalidParameterValue.InvalidAutoScalingGroupId" INVALIDPARAMETERVALUE_INVALIDFILTER = "InvalidParameterValue.InvalidFilter" INVALIDPARAMETERVALUE_INVALIDLIFECYCLEHOOKID = "InvalidParameterValue.InvalidLifecycleHookId" MISSINGPARAMETER = "MissingParameter"
func (*Client) DescribeLifecycleHooksWithContext ¶
func (c *Client) DescribeLifecycleHooksWithContext(ctx context.Context, request *DescribeLifecycleHooksRequest) (response *DescribeLifecycleHooksResponse, err error)
DescribeLifecycleHooks This API (DescribeLifecycleHooks) is used to query the information of lifecycle hooks.
* You can query the details of lifecycle hooks based on information such as auto scaling group ID, lifecycle hook ID, or lifecycle hook name. For more information on filters, see `Filter`.
* If the parameter is empty, a certain number (specified by `Limit` and 20 by default) of lifecycle hooks of the current user will be returned.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound" INVALIDPARAMETER_CONFLICT = "InvalidParameter.Conflict" INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGGROUPID = "InvalidParameterValue.InvalidAutoScalingGroupId" INVALIDPARAMETERVALUE_INVALIDFILTER = "InvalidParameterValue.InvalidFilter" INVALIDPARAMETERVALUE_INVALIDLIFECYCLEHOOKID = "InvalidParameterValue.InvalidLifecycleHookId" MISSINGPARAMETER = "MissingParameter"
func (*Client) DescribeNotificationConfigurations ¶
func (c *Client) DescribeNotificationConfigurations(request *DescribeNotificationConfigurationsRequest) (response *DescribeNotificationConfigurationsResponse, err error)
DescribeNotificationConfigurations This API (DescribeNotificationConfigurations) is used to query the information of one or more notifications.
You can query the details of notifications based on information such as notification ID and auto scaling group ID. For more information on filters, see `Filter`.
If the parameter is empty, a certain number (specified by `Limit` and 20 by default) of notifications of the current user will be returned.
error code that may be returned:
INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound" INVALIDPARAMETERCONFLICT = "InvalidParameterConflict" INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGGROUPID = "InvalidParameterValue.InvalidAutoScalingGroupId" INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGNOTIFICATIONID = "InvalidParameterValue.InvalidAutoScalingNotificationId" INVALIDPARAMETERVALUE_INVALIDFILTER = "InvalidParameterValue.InvalidFilter"
func (*Client) DescribeNotificationConfigurationsWithContext ¶
func (c *Client) DescribeNotificationConfigurationsWithContext(ctx context.Context, request *DescribeNotificationConfigurationsRequest) (response *DescribeNotificationConfigurationsResponse, err error)
DescribeNotificationConfigurations This API (DescribeNotificationConfigurations) is used to query the information of one or more notifications.
You can query the details of notifications based on information such as notification ID and auto scaling group ID. For more information on filters, see `Filter`.
If the parameter is empty, a certain number (specified by `Limit` and 20 by default) of notifications of the current user will be returned.
error code that may be returned:
INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound" INVALIDPARAMETERCONFLICT = "InvalidParameterConflict" INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGGROUPID = "InvalidParameterValue.InvalidAutoScalingGroupId" INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGNOTIFICATIONID = "InvalidParameterValue.InvalidAutoScalingNotificationId" INVALIDPARAMETERVALUE_INVALIDFILTER = "InvalidParameterValue.InvalidFilter"
func (*Client) DescribeScalingPolicies ¶
func (c *Client) DescribeScalingPolicies(request *DescribeScalingPoliciesRequest) (response *DescribeScalingPoliciesResponse, err error)
DescribeScalingPolicies This API (DescribeScalingPolicies) is used to query alarm trigger policies.
error code that may be returned:
INTERNALERROR_CALLMONITORERROR = "InternalError.CallMonitorError" INTERNALERROR_REQUESTERROR = "InternalError.RequestError" INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound" INVALIDPARAMETER_CONFLICT = "InvalidParameter.Conflict" INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGGROUPID = "InvalidParameterValue.InvalidAutoScalingGroupId" INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGPOLICYID = "InvalidParameterValue.InvalidAutoScalingPolicyId" INVALIDPARAMETERVALUE_INVALIDFILTER = "InvalidParameterValue.InvalidFilter" LIMITEXCEEDED = "LimitExceeded"
func (*Client) DescribeScalingPoliciesWithContext ¶
func (c *Client) DescribeScalingPoliciesWithContext(ctx context.Context, request *DescribeScalingPoliciesRequest) (response *DescribeScalingPoliciesResponse, err error)
DescribeScalingPolicies This API (DescribeScalingPolicies) is used to query alarm trigger policies.
error code that may be returned:
INTERNALERROR_CALLMONITORERROR = "InternalError.CallMonitorError" INTERNALERROR_REQUESTERROR = "InternalError.RequestError" INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound" INVALIDPARAMETER_CONFLICT = "InvalidParameter.Conflict" INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGGROUPID = "InvalidParameterValue.InvalidAutoScalingGroupId" INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGPOLICYID = "InvalidParameterValue.InvalidAutoScalingPolicyId" INVALIDPARAMETERVALUE_INVALIDFILTER = "InvalidParameterValue.InvalidFilter" LIMITEXCEEDED = "LimitExceeded"
func (*Client) DescribeScheduledActions ¶
func (c *Client) DescribeScheduledActions(request *DescribeScheduledActionsRequest) (response *DescribeScheduledActionsResponse, err error)
DescribeScheduledActions This API (DescribeScheduledActions) is used to query the details of one or more scheduled tasks.
* You can query the details of scheduled tasks based on information such as scheduled task ID, scheduled task name, or auto scaling group ID. For more information on filters, see `Filter`.
* If the parameter is empty, a certain number (specified by `Limit` and 20 by default) of scheduled tasks of the current user will be returned.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound" INVALIDPARAMETER_CONFLICT = "InvalidParameter.Conflict" INVALIDPARAMETERVALUE_FILTER = "InvalidParameterValue.Filter" INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGGROUPID = "InvalidParameterValue.InvalidAutoScalingGroupId" INVALIDPARAMETERVALUE_INVALIDFILTER = "InvalidParameterValue.InvalidFilter" INVALIDPARAMETERVALUE_INVALIDSCHEDULEDACTIONID = "InvalidParameterValue.InvalidScheduledActionId" RESOURCENOTFOUND_SCHEDULEDACTIONNOTFOUND = "ResourceNotFound.ScheduledActionNotFound"
func (*Client) DescribeScheduledActionsWithContext ¶
func (c *Client) DescribeScheduledActionsWithContext(ctx context.Context, request *DescribeScheduledActionsRequest) (response *DescribeScheduledActionsResponse, err error)
DescribeScheduledActions This API (DescribeScheduledActions) is used to query the details of one or more scheduled tasks.
* You can query the details of scheduled tasks based on information such as scheduled task ID, scheduled task name, or auto scaling group ID. For more information on filters, see `Filter`.
* If the parameter is empty, a certain number (specified by `Limit` and 20 by default) of scheduled tasks of the current user will be returned.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound" INVALIDPARAMETER_CONFLICT = "InvalidParameter.Conflict" INVALIDPARAMETERVALUE_FILTER = "InvalidParameterValue.Filter" INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGGROUPID = "InvalidParameterValue.InvalidAutoScalingGroupId" INVALIDPARAMETERVALUE_INVALIDFILTER = "InvalidParameterValue.InvalidFilter" INVALIDPARAMETERVALUE_INVALIDSCHEDULEDACTIONID = "InvalidParameterValue.InvalidScheduledActionId" RESOURCENOTFOUND_SCHEDULEDACTIONNOTFOUND = "ResourceNotFound.ScheduledActionNotFound"
func (*Client) DetachInstances ¶
func (c *Client) DetachInstances(request *DetachInstancesRequest) (response *DetachInstancesResponse, err error)
DetachInstances This API is used to remove CVM instances from a scaling group. Instances removed via this API will not be terminated.
* If the number of remaining `IN_SERVICE` instances in the scaling group is less than the minimum capacity, this API will return an error.
* However, if the scaling group is in `DISABLED` status, the removal will not verify the relationship between the number of `IN_SERVICE` instances and the minimum capacity.
* This removal will unassociate the CVM from the CLB instance that has been configured for the scaling group.
error code that may be returned:
FAILEDOPERATION_NOACTIVITYTOGENERATE = "FailedOperation.NoActivityToGenerate" INTERNALERROR = "InternalError" INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound" INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGGROUPID = "InvalidParameterValue.InvalidAutoScalingGroupId" INVALIDPARAMETERVALUE_INVALIDINSTANCEID = "InvalidParameterValue.InvalidInstanceId" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" RESOURCEINSUFFICIENT_AUTOSCALINGGROUPBELOWMINSIZE = "ResourceInsufficient.AutoScalingGroupBelowMinSize" RESOURCEINSUFFICIENT_INSERVICEINSTANCEBELOWMINSIZE = "ResourceInsufficient.InServiceInstanceBelowMinSize" RESOURCENOTFOUND_AUTOSCALINGGROUPNOTFOUND = "ResourceNotFound.AutoScalingGroupNotFound" RESOURCENOTFOUND_INSTANCESNOTINAUTOSCALINGGROUP = "ResourceNotFound.InstancesNotInAutoScalingGroup" RESOURCEUNAVAILABLE_AUTOSCALINGGROUPINACTIVITY = "ResourceUnavailable.AutoScalingGroupInActivity" RESOURCEUNAVAILABLE_INSTANCEINOPERATION = "ResourceUnavailable.InstanceInOperation" RESOURCEUNAVAILABLE_LOADBALANCERINOPERATION = "ResourceUnavailable.LoadBalancerInOperation"
func (*Client) DetachInstancesWithContext ¶
func (c *Client) DetachInstancesWithContext(ctx context.Context, request *DetachInstancesRequest) (response *DetachInstancesResponse, err error)
DetachInstances This API is used to remove CVM instances from a scaling group. Instances removed via this API will not be terminated.
* If the number of remaining `IN_SERVICE` instances in the scaling group is less than the minimum capacity, this API will return an error.
* However, if the scaling group is in `DISABLED` status, the removal will not verify the relationship between the number of `IN_SERVICE` instances and the minimum capacity.
* This removal will unassociate the CVM from the CLB instance that has been configured for the scaling group.
error code that may be returned:
FAILEDOPERATION_NOACTIVITYTOGENERATE = "FailedOperation.NoActivityToGenerate" INTERNALERROR = "InternalError" INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound" INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGGROUPID = "InvalidParameterValue.InvalidAutoScalingGroupId" INVALIDPARAMETERVALUE_INVALIDINSTANCEID = "InvalidParameterValue.InvalidInstanceId" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" RESOURCEINSUFFICIENT_AUTOSCALINGGROUPBELOWMINSIZE = "ResourceInsufficient.AutoScalingGroupBelowMinSize" RESOURCEINSUFFICIENT_INSERVICEINSTANCEBELOWMINSIZE = "ResourceInsufficient.InServiceInstanceBelowMinSize" RESOURCENOTFOUND_AUTOSCALINGGROUPNOTFOUND = "ResourceNotFound.AutoScalingGroupNotFound" RESOURCENOTFOUND_INSTANCESNOTINAUTOSCALINGGROUP = "ResourceNotFound.InstancesNotInAutoScalingGroup" RESOURCEUNAVAILABLE_AUTOSCALINGGROUPINACTIVITY = "ResourceUnavailable.AutoScalingGroupInActivity" RESOURCEUNAVAILABLE_INSTANCEINOPERATION = "ResourceUnavailable.InstanceInOperation" RESOURCEUNAVAILABLE_LOADBALANCERINOPERATION = "ResourceUnavailable.LoadBalancerInOperation"
func (*Client) DetachLoadBalancers ¶
func (c *Client) DetachLoadBalancers(request *DetachLoadBalancersRequest) (response *DetachLoadBalancersResponse, err error)
DetachLoadBalancers This API is used to unbind one or more CLBs from a scaling group. This API will not terminate CLBs.
error code that may be returned:
FAILEDOPERATION_NOACTIVITYTOGENERATE = "FailedOperation.NoActivityToGenerate" INTERNALERROR_REQUESTERROR = "InternalError.RequestError" INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound" INVALIDPARAMETER_CONFLICT = "InvalidParameter.Conflict" INVALIDPARAMETER_INSCENARIO = "InvalidParameter.InScenario" INVALIDPARAMETER_LOADBALANCERNOTINAUTOSCALINGGROUP = "InvalidParameter.LoadBalancerNotInAutoScalingGroup" INVALIDPARAMETER_MUSTONEPARAMETER = "InvalidParameter.MustOneParameter" INVALIDPARAMETERVALUE_CLASSICLB = "InvalidParameterValue.ClassicLb" INVALIDPARAMETERVALUE_FORWARDLB = "InvalidParameterValue.ForwardLb" INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGGROUPID = "InvalidParameterValue.InvalidAutoScalingGroupId" INVALIDPARAMETERVALUE_INVALIDCLBREGION = "InvalidParameterValue.InvalidClbRegion" LIMITEXCEEDED_AFTERATTACHLBLIMITEXCEEDED = "LimitExceeded.AfterAttachLbLimitExceeded" MISSINGPARAMETER_INSCENARIO = "MissingParameter.InScenario" RESOURCENOTFOUND_AUTOSCALINGGROUPNOTFOUND = "ResourceNotFound.AutoScalingGroupNotFound" RESOURCENOTFOUND_LISTENERNOTFOUND = "ResourceNotFound.ListenerNotFound" RESOURCENOTFOUND_LOADBALANCERNOTFOUND = "ResourceNotFound.LoadBalancerNotFound" RESOURCENOTFOUND_LOADBALANCERNOTINAUTOSCALINGGROUP = "ResourceNotFound.LoadBalancerNotInAutoScalingGroup" RESOURCENOTFOUND_LOCATIONNOTFOUND = "ResourceNotFound.LocationNotFound" RESOURCEUNAVAILABLE_AUTOSCALINGGROUPINACTIVITY = "ResourceUnavailable.AutoScalingGroupInActivity" RESOURCEUNAVAILABLE_LBBACKENDREGIONINCONSISTENT = "ResourceUnavailable.LbBackendRegionInconsistent" RESOURCEUNAVAILABLE_LBPROJECTINCONSISTENT = "ResourceUnavailable.LbProjectInconsistent" RESOURCEUNAVAILABLE_LBVPCINCONSISTENT = "ResourceUnavailable.LbVpcInconsistent" RESOURCEUNAVAILABLE_LOADBALANCERINOPERATION = "ResourceUnavailable.LoadBalancerInOperation"
func (*Client) DetachLoadBalancersWithContext ¶
func (c *Client) DetachLoadBalancersWithContext(ctx context.Context, request *DetachLoadBalancersRequest) (response *DetachLoadBalancersResponse, err error)
DetachLoadBalancers This API is used to unbind one or more CLBs from a scaling group. This API will not terminate CLBs.
error code that may be returned:
FAILEDOPERATION_NOACTIVITYTOGENERATE = "FailedOperation.NoActivityToGenerate" INTERNALERROR_REQUESTERROR = "InternalError.RequestError" INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound" INVALIDPARAMETER_CONFLICT = "InvalidParameter.Conflict" INVALIDPARAMETER_INSCENARIO = "InvalidParameter.InScenario" INVALIDPARAMETER_LOADBALANCERNOTINAUTOSCALINGGROUP = "InvalidParameter.LoadBalancerNotInAutoScalingGroup" INVALIDPARAMETER_MUSTONEPARAMETER = "InvalidParameter.MustOneParameter" INVALIDPARAMETERVALUE_CLASSICLB = "InvalidParameterValue.ClassicLb" INVALIDPARAMETERVALUE_FORWARDLB = "InvalidParameterValue.ForwardLb" INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGGROUPID = "InvalidParameterValue.InvalidAutoScalingGroupId" INVALIDPARAMETERVALUE_INVALIDCLBREGION = "InvalidParameterValue.InvalidClbRegion" LIMITEXCEEDED_AFTERATTACHLBLIMITEXCEEDED = "LimitExceeded.AfterAttachLbLimitExceeded" MISSINGPARAMETER_INSCENARIO = "MissingParameter.InScenario" RESOURCENOTFOUND_AUTOSCALINGGROUPNOTFOUND = "ResourceNotFound.AutoScalingGroupNotFound" RESOURCENOTFOUND_LISTENERNOTFOUND = "ResourceNotFound.ListenerNotFound" RESOURCENOTFOUND_LOADBALANCERNOTFOUND = "ResourceNotFound.LoadBalancerNotFound" RESOURCENOTFOUND_LOADBALANCERNOTINAUTOSCALINGGROUP = "ResourceNotFound.LoadBalancerNotInAutoScalingGroup" RESOURCENOTFOUND_LOCATIONNOTFOUND = "ResourceNotFound.LocationNotFound" RESOURCEUNAVAILABLE_AUTOSCALINGGROUPINACTIVITY = "ResourceUnavailable.AutoScalingGroupInActivity" RESOURCEUNAVAILABLE_LBBACKENDREGIONINCONSISTENT = "ResourceUnavailable.LbBackendRegionInconsistent" RESOURCEUNAVAILABLE_LBPROJECTINCONSISTENT = "ResourceUnavailable.LbProjectInconsistent" RESOURCEUNAVAILABLE_LBVPCINCONSISTENT = "ResourceUnavailable.LbVpcInconsistent" RESOURCEUNAVAILABLE_LOADBALANCERINOPERATION = "ResourceUnavailable.LoadBalancerInOperation"
func (*Client) DisableAutoScalingGroup ¶
func (c *Client) DisableAutoScalingGroup(request *DisableAutoScalingGroupRequest) (response *DisableAutoScalingGroupResponse, err error)
DisableAutoScalingGroup This API is used to disable the specified auto-scaling group.
* When a scaling group is disabled, the following activities are not triggered automatically:
Scaling activities triggered alert policies
Scaling activities triggered by desired group capacity
Replacement of unhealthy instances
Scheduled actions
* When the scaling group is disabled, you can trigger scaling activities manually, including:
Scale out to the specify number of instances (ScaleOutInstances)
Scale in to the specify number of instances (ScaleInInstances)
Remove instances from the scaling group (DetachInstances)
Delete instances from the scaling group (RemoveInstances)
Add instances to a scaling group (AttachInstances)
Shut down CVM instances in a scaling group (StopAutoScalingInstances)
Start up CVM instances in a scaling group (StartAutoScalingInstances)
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound" INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGGROUPID = "InvalidParameterValue.InvalidAutoScalingGroupId" RESOURCENOTFOUND_AUTOSCALINGGROUPNOTFOUND = "ResourceNotFound.AutoScalingGroupNotFound"
func (*Client) DisableAutoScalingGroupWithContext ¶
func (c *Client) DisableAutoScalingGroupWithContext(ctx context.Context, request *DisableAutoScalingGroupRequest) (response *DisableAutoScalingGroupResponse, err error)
DisableAutoScalingGroup This API is used to disable the specified auto-scaling group.
* When a scaling group is disabled, the following activities are not triggered automatically:
Scaling activities triggered alert policies
Scaling activities triggered by desired group capacity
Replacement of unhealthy instances
Scheduled actions
* When the scaling group is disabled, you can trigger scaling activities manually, including:
Scale out to the specify number of instances (ScaleOutInstances)
Scale in to the specify number of instances (ScaleInInstances)
Remove instances from the scaling group (DetachInstances)
Delete instances from the scaling group (RemoveInstances)
Add instances to a scaling group (AttachInstances)
Shut down CVM instances in a scaling group (StopAutoScalingInstances)
Start up CVM instances in a scaling group (StartAutoScalingInstances)
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound" INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGGROUPID = "InvalidParameterValue.InvalidAutoScalingGroupId" RESOURCENOTFOUND_AUTOSCALINGGROUPNOTFOUND = "ResourceNotFound.AutoScalingGroupNotFound"
func (*Client) EnableAutoScalingGroup ¶
func (c *Client) EnableAutoScalingGroup(request *EnableAutoScalingGroupRequest) (response *EnableAutoScalingGroupResponse, err error)
EnableAutoScalingGroup This API (EnableAutoScalingGroup) is used to enable the specified auto scaling group.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound" INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGGROUPID = "InvalidParameterValue.InvalidAutoScalingGroupId" RESOURCENOTFOUND_AUTOSCALINGGROUPNOTFOUND = "ResourceNotFound.AutoScalingGroupNotFound"
func (*Client) EnableAutoScalingGroupWithContext ¶
func (c *Client) EnableAutoScalingGroupWithContext(ctx context.Context, request *EnableAutoScalingGroupRequest) (response *EnableAutoScalingGroupResponse, err error)
EnableAutoScalingGroup This API (EnableAutoScalingGroup) is used to enable the specified auto scaling group.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound" INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGGROUPID = "InvalidParameterValue.InvalidAutoScalingGroupId" RESOURCENOTFOUND_AUTOSCALINGGROUPNOTFOUND = "ResourceNotFound.AutoScalingGroupNotFound"
func (*Client) ExecuteScalingPolicy ¶
func (c *Client) ExecuteScalingPolicy(request *ExecuteScalingPolicyRequest) (response *ExecuteScalingPolicyResponse, err error)
ExecuteScalingPolicy This API (ExecuteScalingPolicy) is used to execute a scaling policy.
* The scaling policy can be executed based on the scaling policy ID.
* When the auto scaling group to which the scaling policy belongs is performing a scaling activity, the scaling policy will be rejected.
error code that may be returned:
FAILEDOPERATION_NOACTIVITYTOGENERATE = "FailedOperation.NoActivityToGenerate" INTERNALERROR = "InternalError" INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound" INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGPOLICYID = "InvalidParameterValue.InvalidAutoScalingPolicyId" RESOURCEINUSE_AUTOSCALINGGROUPNOTACTIVE = "ResourceInUse.AutoScalingGroupNotActive" RESOURCENOTFOUND_AUTOSCALINGGROUPNOTFOUND = "ResourceNotFound.AutoScalingGroupNotFound" RESOURCENOTFOUND_SCALINGPOLICYNOTFOUND = "ResourceNotFound.ScalingPolicyNotFound" RESOURCEUNAVAILABLE_AUTOSCALINGGROUPABNORMALSTATUS = "ResourceUnavailable.AutoScalingGroupAbnormalStatus" RESOURCEUNAVAILABLE_AUTOSCALINGGROUPINACTIVITY = "ResourceUnavailable.AutoScalingGroupInActivity"
func (*Client) ExecuteScalingPolicyWithContext ¶
func (c *Client) ExecuteScalingPolicyWithContext(ctx context.Context, request *ExecuteScalingPolicyRequest) (response *ExecuteScalingPolicyResponse, err error)
ExecuteScalingPolicy This API (ExecuteScalingPolicy) is used to execute a scaling policy.
* The scaling policy can be executed based on the scaling policy ID.
* When the auto scaling group to which the scaling policy belongs is performing a scaling activity, the scaling policy will be rejected.
error code that may be returned:
FAILEDOPERATION_NOACTIVITYTOGENERATE = "FailedOperation.NoActivityToGenerate" INTERNALERROR = "InternalError" INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound" INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGPOLICYID = "InvalidParameterValue.InvalidAutoScalingPolicyId" RESOURCEINUSE_AUTOSCALINGGROUPNOTACTIVE = "ResourceInUse.AutoScalingGroupNotActive" RESOURCENOTFOUND_AUTOSCALINGGROUPNOTFOUND = "ResourceNotFound.AutoScalingGroupNotFound" RESOURCENOTFOUND_SCALINGPOLICYNOTFOUND = "ResourceNotFound.ScalingPolicyNotFound" RESOURCEUNAVAILABLE_AUTOSCALINGGROUPABNORMALSTATUS = "ResourceUnavailable.AutoScalingGroupAbnormalStatus" RESOURCEUNAVAILABLE_AUTOSCALINGGROUPINACTIVITY = "ResourceUnavailable.AutoScalingGroupInActivity"
func (*Client) ModifyAutoScalingGroup ¶
func (c *Client) ModifyAutoScalingGroup(request *ModifyAutoScalingGroupRequest) (response *ModifyAutoScalingGroupResponse, err error)
ModifyAutoScalingGroup This API (ModifyAutoScalingGroup) is used to modify an auto scaling group.
error code that may be returned:
INTERNALERROR_CALLVPCERROR = "InternalError.CallVpcError" INTERNALERROR_REQUESTERROR = "InternalError.RequestError" INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound" INVALIDPARAMETER_CONFLICT = "InvalidParameter.Conflict" INVALIDPARAMETER_INSCENARIO = "InvalidParameter.InScenario" INVALIDPARAMETERVALUE_BASECAPACITYTOOLARGE = "InvalidParameterValue.BaseCapacityTooLarge" INVALIDPARAMETERVALUE_CVMERROR = "InvalidParameterValue.CvmError" INVALIDPARAMETERVALUE_DUPLICATEDSUBNET = "InvalidParameterValue.DuplicatedSubnet" INVALIDPARAMETERVALUE_GROUPNAMEDUPLICATED = "InvalidParameterValue.GroupNameDuplicated" INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGGROUPID = "InvalidParameterValue.InvalidAutoScalingGroupId" INVALIDPARAMETERVALUE_INVALIDLAUNCHCONFIGURATIONID = "InvalidParameterValue.InvalidLaunchConfigurationId" INVALIDPARAMETERVALUE_INVALIDSUBNETID = "InvalidParameterValue.InvalidSubnetId" INVALIDPARAMETERVALUE_LAUNCHCONFIGURATIONNOTFOUND = "InvalidParameterValue.LaunchConfigurationNotFound" INVALIDPARAMETERVALUE_LBPROJECTINCONSISTENT = "InvalidParameterValue.LbProjectInconsistent" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" INVALIDPARAMETERVALUE_ONLYVPC = "InvalidParameterValue.OnlyVpc" INVALIDPARAMETERVALUE_PROJECTIDNOTFOUND = "InvalidParameterValue.ProjectIdNotFound" INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" INVALIDPARAMETERVALUE_SIZE = "InvalidParameterValue.Size" INVALIDPARAMETERVALUE_SUBNETIDS = "InvalidParameterValue.SubnetIds" INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" LIMITEXCEEDED = "LimitExceeded" LIMITEXCEEDED_MAXSIZELIMITEXCEEDED = "LimitExceeded.MaxSizeLimitExceeded" LIMITEXCEEDED_MINSIZELIMITEXCEEDED = "LimitExceeded.MinSizeLimitExceeded" MISSINGPARAMETER = "MissingParameter" MISSINGPARAMETER_INSCENARIO = "MissingParameter.InScenario" RESOURCENOTFOUND_AUTOSCALINGGROUPNOTFOUND = "ResourceNotFound.AutoScalingGroupNotFound" RESOURCEUNAVAILABLE_LAUNCHCONFIGURATIONSTATUSABNORMAL = "ResourceUnavailable.LaunchConfigurationStatusAbnormal" RESOURCEUNAVAILABLE_PROJECTINCONSISTENT = "ResourceUnavailable.ProjectInconsistent"
func (*Client) ModifyAutoScalingGroupWithContext ¶
func (c *Client) ModifyAutoScalingGroupWithContext(ctx context.Context, request *ModifyAutoScalingGroupRequest) (response *ModifyAutoScalingGroupResponse, err error)
ModifyAutoScalingGroup This API (ModifyAutoScalingGroup) is used to modify an auto scaling group.
error code that may be returned:
INTERNALERROR_CALLVPCERROR = "InternalError.CallVpcError" INTERNALERROR_REQUESTERROR = "InternalError.RequestError" INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound" INVALIDPARAMETER_CONFLICT = "InvalidParameter.Conflict" INVALIDPARAMETER_INSCENARIO = "InvalidParameter.InScenario" INVALIDPARAMETERVALUE_BASECAPACITYTOOLARGE = "InvalidParameterValue.BaseCapacityTooLarge" INVALIDPARAMETERVALUE_CVMERROR = "InvalidParameterValue.CvmError" INVALIDPARAMETERVALUE_DUPLICATEDSUBNET = "InvalidParameterValue.DuplicatedSubnet" INVALIDPARAMETERVALUE_GROUPNAMEDUPLICATED = "InvalidParameterValue.GroupNameDuplicated" INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGGROUPID = "InvalidParameterValue.InvalidAutoScalingGroupId" INVALIDPARAMETERVALUE_INVALIDLAUNCHCONFIGURATIONID = "InvalidParameterValue.InvalidLaunchConfigurationId" INVALIDPARAMETERVALUE_INVALIDSUBNETID = "InvalidParameterValue.InvalidSubnetId" INVALIDPARAMETERVALUE_LAUNCHCONFIGURATIONNOTFOUND = "InvalidParameterValue.LaunchConfigurationNotFound" INVALIDPARAMETERVALUE_LBPROJECTINCONSISTENT = "InvalidParameterValue.LbProjectInconsistent" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" INVALIDPARAMETERVALUE_ONLYVPC = "InvalidParameterValue.OnlyVpc" INVALIDPARAMETERVALUE_PROJECTIDNOTFOUND = "InvalidParameterValue.ProjectIdNotFound" INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" INVALIDPARAMETERVALUE_SIZE = "InvalidParameterValue.Size" INVALIDPARAMETERVALUE_SUBNETIDS = "InvalidParameterValue.SubnetIds" INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" LIMITEXCEEDED = "LimitExceeded" LIMITEXCEEDED_MAXSIZELIMITEXCEEDED = "LimitExceeded.MaxSizeLimitExceeded" LIMITEXCEEDED_MINSIZELIMITEXCEEDED = "LimitExceeded.MinSizeLimitExceeded" MISSINGPARAMETER = "MissingParameter" MISSINGPARAMETER_INSCENARIO = "MissingParameter.InScenario" RESOURCENOTFOUND_AUTOSCALINGGROUPNOTFOUND = "ResourceNotFound.AutoScalingGroupNotFound" RESOURCEUNAVAILABLE_LAUNCHCONFIGURATIONSTATUSABNORMAL = "ResourceUnavailable.LaunchConfigurationStatusAbnormal" RESOURCEUNAVAILABLE_PROJECTINCONSISTENT = "ResourceUnavailable.ProjectInconsistent"
func (*Client) ModifyDesiredCapacity ¶
func (c *Client) ModifyDesiredCapacity(request *ModifyDesiredCapacityRequest) (response *ModifyDesiredCapacityResponse, err error)
ModifyDesiredCapacity This API (ModifyDesiredCapacity) is used to modify the desired number of instances in the specified auto scaling group.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound" INVALIDPARAMETERVALUE_BASECAPACITYTOOLARGE = "InvalidParameterValue.BaseCapacityTooLarge" INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGGROUPID = "InvalidParameterValue.InvalidAutoScalingGroupId" INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" INVALIDPARAMETERVALUE_SIZE = "InvalidParameterValue.Size" LIMITEXCEEDED_DESIREDCAPACITYLIMITEXCEEDED = "LimitExceeded.DesiredCapacityLimitExceeded" RESOURCENOTFOUND_AUTOSCALINGGROUPNOTFOUND = "ResourceNotFound.AutoScalingGroupNotFound" RESOURCEUNAVAILABLE_AUTOSCALINGGROUPABNORMALSTATUS = "ResourceUnavailable.AutoScalingGroupAbnormalStatus" RESOURCEUNAVAILABLE_AUTOSCALINGGROUPDISABLED = "ResourceUnavailable.AutoScalingGroupDisabled"
func (*Client) ModifyDesiredCapacityWithContext ¶
func (c *Client) ModifyDesiredCapacityWithContext(ctx context.Context, request *ModifyDesiredCapacityRequest) (response *ModifyDesiredCapacityResponse, err error)
ModifyDesiredCapacity This API (ModifyDesiredCapacity) is used to modify the desired number of instances in the specified auto scaling group.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound" INVALIDPARAMETERVALUE_BASECAPACITYTOOLARGE = "InvalidParameterValue.BaseCapacityTooLarge" INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGGROUPID = "InvalidParameterValue.InvalidAutoScalingGroupId" INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" INVALIDPARAMETERVALUE_SIZE = "InvalidParameterValue.Size" LIMITEXCEEDED_DESIREDCAPACITYLIMITEXCEEDED = "LimitExceeded.DesiredCapacityLimitExceeded" RESOURCENOTFOUND_AUTOSCALINGGROUPNOTFOUND = "ResourceNotFound.AutoScalingGroupNotFound" RESOURCEUNAVAILABLE_AUTOSCALINGGROUPABNORMALSTATUS = "ResourceUnavailable.AutoScalingGroupAbnormalStatus" RESOURCEUNAVAILABLE_AUTOSCALINGGROUPDISABLED = "ResourceUnavailable.AutoScalingGroupDisabled"
func (*Client) ModifyLaunchConfigurationAttributes ¶
func (c *Client) ModifyLaunchConfigurationAttributes(request *ModifyLaunchConfigurationAttributesRequest) (response *ModifyLaunchConfigurationAttributesResponse, err error)
ModifyLaunchConfigurationAttributes This API (ModifyLaunchConfigurationAttributes) is used to modify some attributes of a launch configuration.
* The changes of launch configuration do not affect the existing instances. New instances will be created based on the modified configuration.
* This API supports modifying certain simple types of attributes.
error code that may be returned:
INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound" INVALIDPARAMETER_CONFLICT = "InvalidParameter.Conflict" INVALIDPARAMETER_HOSTNAMEUNAVAILABLE = "InvalidParameter.HostNameUnavailable" INVALIDPARAMETER_INSCENARIO = "InvalidParameter.InScenario" INVALIDPARAMETER_INVALIDCOMBINATION = "InvalidParameter.InvalidCombination" INVALIDPARAMETER_PARAMETERDEPRECATED = "InvalidParameter.ParameterDeprecated" INVALIDPARAMETER_PARAMETERMUSTBEDELETED = "InvalidParameter.ParameterMustBeDeleted" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_ACCOUNTNOTSUPPORTBANDWIDTHPACKAGEID = "InvalidParameterValue.AccountNotSupportBandwidthPackageId" INVALIDPARAMETERVALUE_CVMCONFIGURATIONERROR = "InvalidParameterValue.CvmConfigurationError" INVALIDPARAMETERVALUE_HOSTNAMEILLEGAL = "InvalidParameterValue.HostNameIllegal" INVALIDPARAMETERVALUE_IPV6INTERNETCHARGETYPE = "InvalidParameterValue.IPv6InternetChargeType" INVALIDPARAMETERVALUE_IMAGENOTFOUND = "InvalidParameterValue.ImageNotFound" INVALIDPARAMETERVALUE_INSTANCENAMEILLEGAL = "InvalidParameterValue.InstanceNameIllegal" INVALIDPARAMETERVALUE_INSTANCETYPENOTSUPPORTED = "InvalidParameterValue.InstanceTypeNotSupported" INVALIDPARAMETERVALUE_INVALIDHPCCLUSTERID = "InvalidParameterValue.InvalidHpcClusterId" INVALIDPARAMETERVALUE_INVALIDIMAGEID = "InvalidParameterValue.InvalidImageId" INVALIDPARAMETERVALUE_INVALIDINSTANCETYPE = "InvalidParameterValue.InvalidInstanceType" INVALIDPARAMETERVALUE_INVALIDLAUNCHCONFIGURATIONID = "InvalidParameterValue.InvalidLaunchConfigurationId" INVALIDPARAMETERVALUE_INVALIDSECURITYGROUPID = "InvalidParameterValue.InvalidSecurityGroupId" INVALIDPARAMETERVALUE_LAUNCHCONFIGURATIONNAMEDUPLICATED = "InvalidParameterValue.LaunchConfigurationNameDuplicated" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" INVALIDPARAMETERVALUE_MISSINGBANDWIDTHPACKAGEID = "InvalidParameterValue.MissingBandwidthPackageId" INVALIDPARAMETERVALUE_NOTSTRINGTYPEFLOAT = "InvalidParameterValue.NotStringTypeFloat" INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" INVALIDPARAMETERVALUE_TOOSHORT = "InvalidParameterValue.TooShort" INVALIDPARAMETERVALUE_USERDATAFORMATERROR = "InvalidParameterValue.UserDataFormatError" INVALIDPARAMETERVALUE_USERDATASIZEEXCEEDED = "InvalidParameterValue.UserDataSizeExceeded" MISSINGPARAMETER = "MissingParameter" MISSINGPARAMETER_INSCENARIO = "MissingParameter.InScenario" RESOURCENOTFOUND_BANDWIDTHPACKAGEIDNOTFOUND = "ResourceNotFound.BandwidthPackageIdNotFound" RESOURCENOTFOUND_LAUNCHCONFIGURATIONIDNOTFOUND = "ResourceNotFound.LaunchConfigurationIdNotFound"
func (*Client) ModifyLaunchConfigurationAttributesWithContext ¶
func (c *Client) ModifyLaunchConfigurationAttributesWithContext(ctx context.Context, request *ModifyLaunchConfigurationAttributesRequest) (response *ModifyLaunchConfigurationAttributesResponse, err error)
ModifyLaunchConfigurationAttributes This API (ModifyLaunchConfigurationAttributes) is used to modify some attributes of a launch configuration.
* The changes of launch configuration do not affect the existing instances. New instances will be created based on the modified configuration.
* This API supports modifying certain simple types of attributes.
error code that may be returned:
INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound" INVALIDPARAMETER_CONFLICT = "InvalidParameter.Conflict" INVALIDPARAMETER_HOSTNAMEUNAVAILABLE = "InvalidParameter.HostNameUnavailable" INVALIDPARAMETER_INSCENARIO = "InvalidParameter.InScenario" INVALIDPARAMETER_INVALIDCOMBINATION = "InvalidParameter.InvalidCombination" INVALIDPARAMETER_PARAMETERDEPRECATED = "InvalidParameter.ParameterDeprecated" INVALIDPARAMETER_PARAMETERMUSTBEDELETED = "InvalidParameter.ParameterMustBeDeleted" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_ACCOUNTNOTSUPPORTBANDWIDTHPACKAGEID = "InvalidParameterValue.AccountNotSupportBandwidthPackageId" INVALIDPARAMETERVALUE_CVMCONFIGURATIONERROR = "InvalidParameterValue.CvmConfigurationError" INVALIDPARAMETERVALUE_HOSTNAMEILLEGAL = "InvalidParameterValue.HostNameIllegal" INVALIDPARAMETERVALUE_IPV6INTERNETCHARGETYPE = "InvalidParameterValue.IPv6InternetChargeType" INVALIDPARAMETERVALUE_IMAGENOTFOUND = "InvalidParameterValue.ImageNotFound" INVALIDPARAMETERVALUE_INSTANCENAMEILLEGAL = "InvalidParameterValue.InstanceNameIllegal" INVALIDPARAMETERVALUE_INSTANCETYPENOTSUPPORTED = "InvalidParameterValue.InstanceTypeNotSupported" INVALIDPARAMETERVALUE_INVALIDHPCCLUSTERID = "InvalidParameterValue.InvalidHpcClusterId" INVALIDPARAMETERVALUE_INVALIDIMAGEID = "InvalidParameterValue.InvalidImageId" INVALIDPARAMETERVALUE_INVALIDINSTANCETYPE = "InvalidParameterValue.InvalidInstanceType" INVALIDPARAMETERVALUE_INVALIDLAUNCHCONFIGURATIONID = "InvalidParameterValue.InvalidLaunchConfigurationId" INVALIDPARAMETERVALUE_INVALIDSECURITYGROUPID = "InvalidParameterValue.InvalidSecurityGroupId" INVALIDPARAMETERVALUE_LAUNCHCONFIGURATIONNAMEDUPLICATED = "InvalidParameterValue.LaunchConfigurationNameDuplicated" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" INVALIDPARAMETERVALUE_MISSINGBANDWIDTHPACKAGEID = "InvalidParameterValue.MissingBandwidthPackageId" INVALIDPARAMETERVALUE_NOTSTRINGTYPEFLOAT = "InvalidParameterValue.NotStringTypeFloat" INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" INVALIDPARAMETERVALUE_TOOSHORT = "InvalidParameterValue.TooShort" INVALIDPARAMETERVALUE_USERDATAFORMATERROR = "InvalidParameterValue.UserDataFormatError" INVALIDPARAMETERVALUE_USERDATASIZEEXCEEDED = "InvalidParameterValue.UserDataSizeExceeded" MISSINGPARAMETER = "MissingParameter" MISSINGPARAMETER_INSCENARIO = "MissingParameter.InScenario" RESOURCENOTFOUND_BANDWIDTHPACKAGEIDNOTFOUND = "ResourceNotFound.BandwidthPackageIdNotFound" RESOURCENOTFOUND_LAUNCHCONFIGURATIONIDNOTFOUND = "ResourceNotFound.LaunchConfigurationIdNotFound"
func (*Client) ModifyLifecycleHook ¶
func (c *Client) ModifyLifecycleHook(request *ModifyLifecycleHookRequest) (response *ModifyLifecycleHookResponse, err error)
ModifyLifecycleHook This API is used to modify the lifecycle hook.
error code that may be returned:
INTERNALERROR_CALLTATERROR = "InternalError.CallTATError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" RESOURCENOTFOUND_CMQQUEUENOTFOUND = "ResourceNotFound.CmqQueueNotFound" RESOURCENOTFOUND_COMMANDNOTFOUND = "ResourceNotFound.CommandNotFound" RESOURCENOTFOUND_LIFECYCLEHOOKNOTFOUND = "ResourceNotFound.LifecycleHookNotFound" RESOURCENOTFOUND_TDMQCMQQUEUENOTFOUND = "ResourceNotFound.TDMQCMQQueueNotFound" RESOURCENOTFOUND_TDMQCMQTOPICNOTFOUND = "ResourceNotFound.TDMQCMQTopicNotFound" RESOURCEUNAVAILABLE_TDMQCMQTOPICHASNOSUBSCRIBER = "ResourceUnavailable.TDMQCMQTopicHasNoSubscriber"
func (*Client) ModifyLifecycleHookWithContext ¶
func (c *Client) ModifyLifecycleHookWithContext(ctx context.Context, request *ModifyLifecycleHookRequest) (response *ModifyLifecycleHookResponse, err error)
ModifyLifecycleHook This API is used to modify the lifecycle hook.
error code that may be returned:
INTERNALERROR_CALLTATERROR = "InternalError.CallTATError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" RESOURCENOTFOUND_CMQQUEUENOTFOUND = "ResourceNotFound.CmqQueueNotFound" RESOURCENOTFOUND_COMMANDNOTFOUND = "ResourceNotFound.CommandNotFound" RESOURCENOTFOUND_LIFECYCLEHOOKNOTFOUND = "ResourceNotFound.LifecycleHookNotFound" RESOURCENOTFOUND_TDMQCMQQUEUENOTFOUND = "ResourceNotFound.TDMQCMQQueueNotFound" RESOURCENOTFOUND_TDMQCMQTOPICNOTFOUND = "ResourceNotFound.TDMQCMQTopicNotFound" RESOURCEUNAVAILABLE_TDMQCMQTOPICHASNOSUBSCRIBER = "ResourceUnavailable.TDMQCMQTopicHasNoSubscriber"
func (*Client) ModifyLoadBalancerTargetAttributes ¶
func (c *Client) ModifyLoadBalancerTargetAttributes(request *ModifyLoadBalancerTargetAttributesRequest) (response *ModifyLoadBalancerTargetAttributesResponse, err error)
ModifyLoadBalancerTargetAttributes This API is used to modify the target rule attributes of the CLB in the scaling group.
error code that may be returned:
FAILEDOPERATION_NOACTIVITYTOGENERATE = "FailedOperation.NoActivityToGenerate" INTERNALERROR_REQUESTERROR = "InternalError.RequestError" INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound" INVALIDPARAMETER_CONFLICT = "InvalidParameter.Conflict" INVALIDPARAMETER_INSCENARIO = "InvalidParameter.InScenario" INVALIDPARAMETER_LOADBALANCERNOTINAUTOSCALINGGROUP = "InvalidParameter.LoadBalancerNotInAutoScalingGroup" INVALIDPARAMETERVALUE_CLASSICLB = "InvalidParameterValue.ClassicLb" INVALIDPARAMETERVALUE_FORWARDLB = "InvalidParameterValue.ForwardLb" INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGGROUPID = "InvalidParameterValue.InvalidAutoScalingGroupId" INVALIDPARAMETERVALUE_INVALIDCLBREGION = "InvalidParameterValue.InvalidClbRegion" INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" INVALIDPARAMETERVALUE_TARGETPORTDUPLICATED = "InvalidParameterValue.TargetPortDuplicated" LIMITEXCEEDED_AFTERATTACHLBLIMITEXCEEDED = "LimitExceeded.AfterAttachLbLimitExceeded" MISSINGPARAMETER_INSCENARIO = "MissingParameter.InScenario" RESOURCENOTFOUND_AUTOSCALINGGROUPNOTFOUND = "ResourceNotFound.AutoScalingGroupNotFound" RESOURCENOTFOUND_LISTENERNOTFOUND = "ResourceNotFound.ListenerNotFound" RESOURCENOTFOUND_LOADBALANCERNOTFOUND = "ResourceNotFound.LoadBalancerNotFound" RESOURCENOTFOUND_LOADBALANCERNOTINAUTOSCALINGGROUP = "ResourceNotFound.LoadBalancerNotInAutoScalingGroup" RESOURCENOTFOUND_LOCATIONNOTFOUND = "ResourceNotFound.LocationNotFound" RESOURCEUNAVAILABLE_AUTOSCALINGGROUPINACTIVITY = "ResourceUnavailable.AutoScalingGroupInActivity" RESOURCEUNAVAILABLE_LBBACKENDREGIONINCONSISTENT = "ResourceUnavailable.LbBackendRegionInconsistent" RESOURCEUNAVAILABLE_LBPROJECTINCONSISTENT = "ResourceUnavailable.LbProjectInconsistent" RESOURCEUNAVAILABLE_LBVPCINCONSISTENT = "ResourceUnavailable.LbVpcInconsistent" RESOURCEUNAVAILABLE_LOADBALANCERINOPERATION = "ResourceUnavailable.LoadBalancerInOperation"
func (*Client) ModifyLoadBalancerTargetAttributesWithContext ¶
func (c *Client) ModifyLoadBalancerTargetAttributesWithContext(ctx context.Context, request *ModifyLoadBalancerTargetAttributesRequest) (response *ModifyLoadBalancerTargetAttributesResponse, err error)
ModifyLoadBalancerTargetAttributes This API is used to modify the target rule attributes of the CLB in the scaling group.
error code that may be returned:
FAILEDOPERATION_NOACTIVITYTOGENERATE = "FailedOperation.NoActivityToGenerate" INTERNALERROR_REQUESTERROR = "InternalError.RequestError" INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound" INVALIDPARAMETER_CONFLICT = "InvalidParameter.Conflict" INVALIDPARAMETER_INSCENARIO = "InvalidParameter.InScenario" INVALIDPARAMETER_LOADBALANCERNOTINAUTOSCALINGGROUP = "InvalidParameter.LoadBalancerNotInAutoScalingGroup" INVALIDPARAMETERVALUE_CLASSICLB = "InvalidParameterValue.ClassicLb" INVALIDPARAMETERVALUE_FORWARDLB = "InvalidParameterValue.ForwardLb" INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGGROUPID = "InvalidParameterValue.InvalidAutoScalingGroupId" INVALIDPARAMETERVALUE_INVALIDCLBREGION = "InvalidParameterValue.InvalidClbRegion" INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" INVALIDPARAMETERVALUE_TARGETPORTDUPLICATED = "InvalidParameterValue.TargetPortDuplicated" LIMITEXCEEDED_AFTERATTACHLBLIMITEXCEEDED = "LimitExceeded.AfterAttachLbLimitExceeded" MISSINGPARAMETER_INSCENARIO = "MissingParameter.InScenario" RESOURCENOTFOUND_AUTOSCALINGGROUPNOTFOUND = "ResourceNotFound.AutoScalingGroupNotFound" RESOURCENOTFOUND_LISTENERNOTFOUND = "ResourceNotFound.ListenerNotFound" RESOURCENOTFOUND_LOADBALANCERNOTFOUND = "ResourceNotFound.LoadBalancerNotFound" RESOURCENOTFOUND_LOADBALANCERNOTINAUTOSCALINGGROUP = "ResourceNotFound.LoadBalancerNotInAutoScalingGroup" RESOURCENOTFOUND_LOCATIONNOTFOUND = "ResourceNotFound.LocationNotFound" RESOURCEUNAVAILABLE_AUTOSCALINGGROUPINACTIVITY = "ResourceUnavailable.AutoScalingGroupInActivity" RESOURCEUNAVAILABLE_LBBACKENDREGIONINCONSISTENT = "ResourceUnavailable.LbBackendRegionInconsistent" RESOURCEUNAVAILABLE_LBPROJECTINCONSISTENT = "ResourceUnavailable.LbProjectInconsistent" RESOURCEUNAVAILABLE_LBVPCINCONSISTENT = "ResourceUnavailable.LbVpcInconsistent" RESOURCEUNAVAILABLE_LOADBALANCERINOPERATION = "ResourceUnavailable.LoadBalancerInOperation"
func (*Client) ModifyLoadBalancers ¶
func (c *Client) ModifyLoadBalancers(request *ModifyLoadBalancersRequest) (response *ModifyLoadBalancersResponse, err error)
ModifyLoadBalancers This API is used to modify the cloud load balancers of a scaling group.
* This API can specify a new cloud load balancer configuration for the scaling group. The new configuration overwrites the original load balancer configuration.
* To clear the cloud load balancer of the scaling group, specify only the scaling group ID but not the specific cloud load balancer.
* This API modifies the cloud load balancer of the scaling group and generate a scaling activity to asynchronously modify the cloud load balancers of existing instances.
error code that may be returned:
FAILEDOPERATION_NOACTIVITYTOGENERATE = "FailedOperation.NoActivityToGenerate" INTERNALERROR_CALLLBERROR = "InternalError.CallLbError" INTERNALERROR_REQUESTERROR = "InternalError.RequestError" INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound" INVALIDPARAMETER_CONFLICT = "InvalidParameter.Conflict" INVALIDPARAMETER_INSCENARIO = "InvalidParameter.InScenario" INVALIDPARAMETERVALUE_CLASSICLB = "InvalidParameterValue.ClassicLb" INVALIDPARAMETERVALUE_DUPLICATEDFORWARDLB = "InvalidParameterValue.DuplicatedForwardLb" INVALIDPARAMETERVALUE_FORWARDLB = "InvalidParameterValue.ForwardLb" INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGGROUPID = "InvalidParameterValue.InvalidAutoScalingGroupId" INVALIDPARAMETERVALUE_INVALIDCLBREGION = "InvalidParameterValue.InvalidClbRegion" INVALIDPARAMETERVALUE_LBPROJECTINCONSISTENT = "InvalidParameterValue.LbProjectInconsistent" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" INVALIDPARAMETERVALUE_TARGETPORTDUPLICATED = "InvalidParameterValue.TargetPortDuplicated" MISSINGPARAMETER_INSCENARIO = "MissingParameter.InScenario" RESOURCENOTFOUND_AUTOSCALINGGROUPNOTFOUND = "ResourceNotFound.AutoScalingGroupNotFound" RESOURCENOTFOUND_LISTENERNOTFOUND = "ResourceNotFound.ListenerNotFound" RESOURCENOTFOUND_LOADBALANCERNOTFOUND = "ResourceNotFound.LoadBalancerNotFound" RESOURCENOTFOUND_LOCATIONNOTFOUND = "ResourceNotFound.LocationNotFound" RESOURCEUNAVAILABLE_AUTOSCALINGGROUPINACTIVITY = "ResourceUnavailable.AutoScalingGroupInActivity" RESOURCEUNAVAILABLE_LBBACKENDREGIONINCONSISTENT = "ResourceUnavailable.LbBackendRegionInconsistent" RESOURCEUNAVAILABLE_LBVPCINCONSISTENT = "ResourceUnavailable.LbVpcInconsistent" RESOURCEUNAVAILABLE_LOADBALANCERINOPERATION = "ResourceUnavailable.LoadBalancerInOperation"
func (*Client) ModifyLoadBalancersWithContext ¶
func (c *Client) ModifyLoadBalancersWithContext(ctx context.Context, request *ModifyLoadBalancersRequest) (response *ModifyLoadBalancersResponse, err error)
ModifyLoadBalancers This API is used to modify the cloud load balancers of a scaling group.
* This API can specify a new cloud load balancer configuration for the scaling group. The new configuration overwrites the original load balancer configuration.
* To clear the cloud load balancer of the scaling group, specify only the scaling group ID but not the specific cloud load balancer.
* This API modifies the cloud load balancer of the scaling group and generate a scaling activity to asynchronously modify the cloud load balancers of existing instances.
error code that may be returned:
FAILEDOPERATION_NOACTIVITYTOGENERATE = "FailedOperation.NoActivityToGenerate" INTERNALERROR_CALLLBERROR = "InternalError.CallLbError" INTERNALERROR_REQUESTERROR = "InternalError.RequestError" INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound" INVALIDPARAMETER_CONFLICT = "InvalidParameter.Conflict" INVALIDPARAMETER_INSCENARIO = "InvalidParameter.InScenario" INVALIDPARAMETERVALUE_CLASSICLB = "InvalidParameterValue.ClassicLb" INVALIDPARAMETERVALUE_DUPLICATEDFORWARDLB = "InvalidParameterValue.DuplicatedForwardLb" INVALIDPARAMETERVALUE_FORWARDLB = "InvalidParameterValue.ForwardLb" INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGGROUPID = "InvalidParameterValue.InvalidAutoScalingGroupId" INVALIDPARAMETERVALUE_INVALIDCLBREGION = "InvalidParameterValue.InvalidClbRegion" INVALIDPARAMETERVALUE_LBPROJECTINCONSISTENT = "InvalidParameterValue.LbProjectInconsistent" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" INVALIDPARAMETERVALUE_TARGETPORTDUPLICATED = "InvalidParameterValue.TargetPortDuplicated" MISSINGPARAMETER_INSCENARIO = "MissingParameter.InScenario" RESOURCENOTFOUND_AUTOSCALINGGROUPNOTFOUND = "ResourceNotFound.AutoScalingGroupNotFound" RESOURCENOTFOUND_LISTENERNOTFOUND = "ResourceNotFound.ListenerNotFound" RESOURCENOTFOUND_LOADBALANCERNOTFOUND = "ResourceNotFound.LoadBalancerNotFound" RESOURCENOTFOUND_LOCATIONNOTFOUND = "ResourceNotFound.LocationNotFound" RESOURCEUNAVAILABLE_AUTOSCALINGGROUPINACTIVITY = "ResourceUnavailable.AutoScalingGroupInActivity" RESOURCEUNAVAILABLE_LBBACKENDREGIONINCONSISTENT = "ResourceUnavailable.LbBackendRegionInconsistent" RESOURCEUNAVAILABLE_LBVPCINCONSISTENT = "ResourceUnavailable.LbVpcInconsistent" RESOURCEUNAVAILABLE_LOADBALANCERINOPERATION = "ResourceUnavailable.LoadBalancerInOperation"
func (*Client) ModifyNotificationConfiguration ¶
func (c *Client) ModifyNotificationConfiguration(request *ModifyNotificationConfigurationRequest) (response *ModifyNotificationConfigurationResponse, err error)
ModifyNotificationConfiguration This API is used to modify a notification policy.
* The receiver type of the notification policy cannot be modified.
error code that may be returned:
INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound" INVALIDPARAMETERVALUE_CONFLICTNOTIFICATIONTARGET = "InvalidParameterValue.ConflictNotificationTarget" INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGNOTIFICATIONID = "InvalidParameterValue.InvalidAutoScalingNotificationId" INVALIDPARAMETERVALUE_INVALIDNOTIFICATIONUSERGROUPID = "InvalidParameterValue.InvalidNotificationUserGroupId" INVALIDPARAMETERVALUE_USERGROUPIDNOTFOUND = "InvalidParameterValue.UserGroupIdNotFound" RESOURCENOTFOUND_AUTOSCALINGNOTIFICATIONNOTFOUND = "ResourceNotFound.AutoScalingNotificationNotFound" RESOURCENOTFOUND_CMQQUEUENOTFOUND = "ResourceNotFound.CmqQueueNotFound" RESOURCENOTFOUND_TDMQCMQQUEUENOTFOUND = "ResourceNotFound.TDMQCMQQueueNotFound" RESOURCENOTFOUND_TDMQCMQTOPICNOTFOUND = "ResourceNotFound.TDMQCMQTopicNotFound" RESOURCEUNAVAILABLE_TDMQCMQTOPICHASNOSUBSCRIBER = "ResourceUnavailable.TDMQCMQTopicHasNoSubscriber"
func (*Client) ModifyNotificationConfigurationWithContext ¶
func (c *Client) ModifyNotificationConfigurationWithContext(ctx context.Context, request *ModifyNotificationConfigurationRequest) (response *ModifyNotificationConfigurationResponse, err error)
ModifyNotificationConfiguration This API is used to modify a notification policy.
* The receiver type of the notification policy cannot be modified.
error code that may be returned:
INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound" INVALIDPARAMETERVALUE_CONFLICTNOTIFICATIONTARGET = "InvalidParameterValue.ConflictNotificationTarget" INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGNOTIFICATIONID = "InvalidParameterValue.InvalidAutoScalingNotificationId" INVALIDPARAMETERVALUE_INVALIDNOTIFICATIONUSERGROUPID = "InvalidParameterValue.InvalidNotificationUserGroupId" INVALIDPARAMETERVALUE_USERGROUPIDNOTFOUND = "InvalidParameterValue.UserGroupIdNotFound" RESOURCENOTFOUND_AUTOSCALINGNOTIFICATIONNOTFOUND = "ResourceNotFound.AutoScalingNotificationNotFound" RESOURCENOTFOUND_CMQQUEUENOTFOUND = "ResourceNotFound.CmqQueueNotFound" RESOURCENOTFOUND_TDMQCMQQUEUENOTFOUND = "ResourceNotFound.TDMQCMQQueueNotFound" RESOURCENOTFOUND_TDMQCMQTOPICNOTFOUND = "ResourceNotFound.TDMQCMQTopicNotFound" RESOURCEUNAVAILABLE_TDMQCMQTOPICHASNOSUBSCRIBER = "ResourceUnavailable.TDMQCMQTopicHasNoSubscriber"
func (*Client) ModifyScalingPolicy ¶
func (c *Client) ModifyScalingPolicy(request *ModifyScalingPolicyRequest) (response *ModifyScalingPolicyResponse, err error)
ModifyScalingPolicy This API (ModifyScalingPolicy) is used to modify an alarm trigger policy.
error code that may be returned:
INTERNALERROR_REQUESTERROR = "InternalError.RequestError" INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound" INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGPOLICYID = "InvalidParameterValue.InvalidAutoScalingPolicyId" INVALIDPARAMETERVALUE_INVALIDNOTIFICATIONUSERGROUPID = "InvalidParameterValue.InvalidNotificationUserGroupId" INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" INVALIDPARAMETERVALUE_SCALINGPOLICYNAMEDUPLICATE = "InvalidParameterValue.ScalingPolicyNameDuplicate" INVALIDPARAMETERVALUE_USERGROUPIDNOTFOUND = "InvalidParameterValue.UserGroupIdNotFound" RESOURCENOTFOUND_AUTOSCALINGGROUPNOTFOUND = "ResourceNotFound.AutoScalingGroupNotFound" RESOURCENOTFOUND_SCALINGPOLICYNOTFOUND = "ResourceNotFound.ScalingPolicyNotFound"
func (*Client) ModifyScalingPolicyWithContext ¶
func (c *Client) ModifyScalingPolicyWithContext(ctx context.Context, request *ModifyScalingPolicyRequest) (response *ModifyScalingPolicyResponse, err error)
ModifyScalingPolicy This API (ModifyScalingPolicy) is used to modify an alarm trigger policy.
error code that may be returned:
INTERNALERROR_REQUESTERROR = "InternalError.RequestError" INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound" INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGPOLICYID = "InvalidParameterValue.InvalidAutoScalingPolicyId" INVALIDPARAMETERVALUE_INVALIDNOTIFICATIONUSERGROUPID = "InvalidParameterValue.InvalidNotificationUserGroupId" INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" INVALIDPARAMETERVALUE_SCALINGPOLICYNAMEDUPLICATE = "InvalidParameterValue.ScalingPolicyNameDuplicate" INVALIDPARAMETERVALUE_USERGROUPIDNOTFOUND = "InvalidParameterValue.UserGroupIdNotFound" RESOURCENOTFOUND_AUTOSCALINGGROUPNOTFOUND = "ResourceNotFound.AutoScalingGroupNotFound" RESOURCENOTFOUND_SCALINGPOLICYNOTFOUND = "ResourceNotFound.ScalingPolicyNotFound"
func (*Client) ModifyScheduledAction ¶
func (c *Client) ModifyScheduledAction(request *ModifyScheduledActionRequest) (response *ModifyScheduledActionResponse, err error)
ModifyScheduledAction This API (ModifyScheduledAction) is used to modify a scheduled task.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound" INVALIDPARAMETERVALUE_CRONEXPRESSIONILLEGAL = "InvalidParameterValue.CronExpressionIllegal" INVALIDPARAMETERVALUE_ENDTIMEBEFORESTARTTIME = "InvalidParameterValue.EndTimeBeforeStartTime" INVALIDPARAMETERVALUE_INVALIDSCHEDULEDACTIONID = "InvalidParameterValue.InvalidScheduledActionId" INVALIDPARAMETERVALUE_INVALIDSCHEDULEDACTIONNAMEINCLUDEILLEGALCHAR = "InvalidParameterValue.InvalidScheduledActionNameIncludeIllegalChar" INVALIDPARAMETERVALUE_SCHEDULEDACTIONNAMEDUPLICATE = "InvalidParameterValue.ScheduledActionNameDuplicate" INVALIDPARAMETERVALUE_SIZE = "InvalidParameterValue.Size" INVALIDPARAMETERVALUE_STARTTIMEBEFORECURRENTTIME = "InvalidParameterValue.StartTimeBeforeCurrentTime" INVALIDPARAMETERVALUE_TIMEFORMAT = "InvalidParameterValue.TimeFormat" INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" LIMITEXCEEDED_DESIREDCAPACITYLIMITEXCEEDED = "LimitExceeded.DesiredCapacityLimitExceeded" LIMITEXCEEDED_MAXSIZELIMITEXCEEDED = "LimitExceeded.MaxSizeLimitExceeded" LIMITEXCEEDED_MINSIZELIMITEXCEEDED = "LimitExceeded.MinSizeLimitExceeded" LIMITEXCEEDED_SCHEDULEDACTIONLIMITEXCEEDED = "LimitExceeded.ScheduledActionLimitExceeded" RESOURCENOTFOUND_SCHEDULEDACTIONNOTFOUND = "ResourceNotFound.ScheduledActionNotFound"
func (*Client) ModifyScheduledActionWithContext ¶
func (c *Client) ModifyScheduledActionWithContext(ctx context.Context, request *ModifyScheduledActionRequest) (response *ModifyScheduledActionResponse, err error)
ModifyScheduledAction This API (ModifyScheduledAction) is used to modify a scheduled task.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound" INVALIDPARAMETERVALUE_CRONEXPRESSIONILLEGAL = "InvalidParameterValue.CronExpressionIllegal" INVALIDPARAMETERVALUE_ENDTIMEBEFORESTARTTIME = "InvalidParameterValue.EndTimeBeforeStartTime" INVALIDPARAMETERVALUE_INVALIDSCHEDULEDACTIONID = "InvalidParameterValue.InvalidScheduledActionId" INVALIDPARAMETERVALUE_INVALIDSCHEDULEDACTIONNAMEINCLUDEILLEGALCHAR = "InvalidParameterValue.InvalidScheduledActionNameIncludeIllegalChar" INVALIDPARAMETERVALUE_SCHEDULEDACTIONNAMEDUPLICATE = "InvalidParameterValue.ScheduledActionNameDuplicate" INVALIDPARAMETERVALUE_SIZE = "InvalidParameterValue.Size" INVALIDPARAMETERVALUE_STARTTIMEBEFORECURRENTTIME = "InvalidParameterValue.StartTimeBeforeCurrentTime" INVALIDPARAMETERVALUE_TIMEFORMAT = "InvalidParameterValue.TimeFormat" INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" LIMITEXCEEDED_DESIREDCAPACITYLIMITEXCEEDED = "LimitExceeded.DesiredCapacityLimitExceeded" LIMITEXCEEDED_MAXSIZELIMITEXCEEDED = "LimitExceeded.MaxSizeLimitExceeded" LIMITEXCEEDED_MINSIZELIMITEXCEEDED = "LimitExceeded.MinSizeLimitExceeded" LIMITEXCEEDED_SCHEDULEDACTIONLIMITEXCEEDED = "LimitExceeded.ScheduledActionLimitExceeded" RESOURCENOTFOUND_SCHEDULEDACTIONNOTFOUND = "ResourceNotFound.ScheduledActionNotFound"
func (*Client) RemoveInstances ¶
func (c *Client) RemoveInstances(request *RemoveInstancesRequest) (response *RemoveInstancesResponse, err error)
RemoveInstances This API is used to delete CVM instances from a scaling group. Instances that are automatically created through AS will be terminated, while those manually added to the scaling group will be removed and retained.
* If the number of remaining `IN_SERVICE` instances in the scaling group is less than the minimum capacity, this API will return an error.
* However, if the scaling group is in `DISABLED` status, the removal will not verify the relationship between the number of `IN_SERVICE` instances and the minimum capacity.
* This removal will unassociate the CVM from the CLB instance that has been configured for the scaling group.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound" INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGGROUPID = "InvalidParameterValue.InvalidAutoScalingGroupId" INVALIDPARAMETERVALUE_INVALIDINSTANCEID = "InvalidParameterValue.InvalidInstanceId" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" RESOURCEINSUFFICIENT_AUTOSCALINGGROUPBELOWMINSIZE = "ResourceInsufficient.AutoScalingGroupBelowMinSize" RESOURCEINSUFFICIENT_INSERVICEINSTANCEBELOWMINSIZE = "ResourceInsufficient.InServiceInstanceBelowMinSize" RESOURCENOTFOUND_AUTOSCALINGGROUPNOTFOUND = "ResourceNotFound.AutoScalingGroupNotFound" RESOURCENOTFOUND_INSTANCESNOTINAUTOSCALINGGROUP = "ResourceNotFound.InstancesNotInAutoScalingGroup" RESOURCEUNAVAILABLE_AUTOSCALINGGROUPINACTIVITY = "ResourceUnavailable.AutoScalingGroupInActivity" RESOURCEUNAVAILABLE_INSTANCEINOPERATION = "ResourceUnavailable.InstanceInOperation"
func (*Client) RemoveInstancesWithContext ¶
func (c *Client) RemoveInstancesWithContext(ctx context.Context, request *RemoveInstancesRequest) (response *RemoveInstancesResponse, err error)
RemoveInstances This API is used to delete CVM instances from a scaling group. Instances that are automatically created through AS will be terminated, while those manually added to the scaling group will be removed and retained.
* If the number of remaining `IN_SERVICE` instances in the scaling group is less than the minimum capacity, this API will return an error.
* However, if the scaling group is in `DISABLED` status, the removal will not verify the relationship between the number of `IN_SERVICE` instances and the minimum capacity.
* This removal will unassociate the CVM from the CLB instance that has been configured for the scaling group.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound" INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGGROUPID = "InvalidParameterValue.InvalidAutoScalingGroupId" INVALIDPARAMETERVALUE_INVALIDINSTANCEID = "InvalidParameterValue.InvalidInstanceId" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" RESOURCEINSUFFICIENT_AUTOSCALINGGROUPBELOWMINSIZE = "ResourceInsufficient.AutoScalingGroupBelowMinSize" RESOURCEINSUFFICIENT_INSERVICEINSTANCEBELOWMINSIZE = "ResourceInsufficient.InServiceInstanceBelowMinSize" RESOURCENOTFOUND_AUTOSCALINGGROUPNOTFOUND = "ResourceNotFound.AutoScalingGroupNotFound" RESOURCENOTFOUND_INSTANCESNOTINAUTOSCALINGGROUP = "ResourceNotFound.InstancesNotInAutoScalingGroup" RESOURCEUNAVAILABLE_AUTOSCALINGGROUPINACTIVITY = "ResourceUnavailable.AutoScalingGroupInActivity" RESOURCEUNAVAILABLE_INSTANCEINOPERATION = "ResourceUnavailable.InstanceInOperation"
func (*Client) ScaleInInstances ¶
func (c *Client) ScaleInInstances(request *ScaleInInstancesRequest) (response *ScaleInInstancesResponse, err error)
ScaleInInstances This API is used to reduce the specified number of instances from the scaling group.
* There is no on going scaling task.
* This API is valid even when the scaling group is disabled. For more details, see [DisableAutoScalingGroup](https://intl.cloud.tencent.com/document/api/377/20435?from_cn_redirect=1).
* You can specify the instances to remove in the scale-in activity by using `TerminationPolicies`. For more information, see [Scaling In Policies](https://intl.cloud.tencent.com/document/product/377/8563?from_cn_redirect=1).
* Only the `IN_SERVICE` instances will be reduced. To reduce instances in other statues, use the [`DetachInstances`](https://intl.cloud.tencent.com/document/api/377/20436?from_cn_redirect=1) or [`RemoveInstances`](https://intl.cloud.tencent.com/document/api/377/20431?from_cn_redirect=1) API.
* The desired capacity will be reduced accordingly. The new desired capacity should be no less than the minimum capacity.
* If the scale-in activity failed or partially succeeded, the final desired capacity only deducts the instances that have been reduced successfully.
error code that may be returned:
INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound" INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGGROUPID = "InvalidParameterValue.InvalidAutoScalingGroupId" INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" MISSINGPARAMETER = "MissingParameter" RESOURCEINSUFFICIENT_AUTOSCALINGGROUPBELOWMINSIZE = "ResourceInsufficient.AutoScalingGroupBelowMinSize" RESOURCENOTFOUND_AUTOSCALINGGROUPNOTFOUND = "ResourceNotFound.AutoScalingGroupNotFound" RESOURCEUNAVAILABLE_AUTOSCALINGGROUPINACTIVITY = "ResourceUnavailable.AutoScalingGroupInActivity"
func (*Client) ScaleInInstancesWithContext ¶
func (c *Client) ScaleInInstancesWithContext(ctx context.Context, request *ScaleInInstancesRequest) (response *ScaleInInstancesResponse, err error)
ScaleInInstances This API is used to reduce the specified number of instances from the scaling group.
* There is no on going scaling task.
* This API is valid even when the scaling group is disabled. For more details, see [DisableAutoScalingGroup](https://intl.cloud.tencent.com/document/api/377/20435?from_cn_redirect=1).
* You can specify the instances to remove in the scale-in activity by using `TerminationPolicies`. For more information, see [Scaling In Policies](https://intl.cloud.tencent.com/document/product/377/8563?from_cn_redirect=1).
* Only the `IN_SERVICE` instances will be reduced. To reduce instances in other statues, use the [`DetachInstances`](https://intl.cloud.tencent.com/document/api/377/20436?from_cn_redirect=1) or [`RemoveInstances`](https://intl.cloud.tencent.com/document/api/377/20431?from_cn_redirect=1) API.
* The desired capacity will be reduced accordingly. The new desired capacity should be no less than the minimum capacity.
* If the scale-in activity failed or partially succeeded, the final desired capacity only deducts the instances that have been reduced successfully.
error code that may be returned:
INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound" INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGGROUPID = "InvalidParameterValue.InvalidAutoScalingGroupId" INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" MISSINGPARAMETER = "MissingParameter" RESOURCEINSUFFICIENT_AUTOSCALINGGROUPBELOWMINSIZE = "ResourceInsufficient.AutoScalingGroupBelowMinSize" RESOURCENOTFOUND_AUTOSCALINGGROUPNOTFOUND = "ResourceNotFound.AutoScalingGroupNotFound" RESOURCEUNAVAILABLE_AUTOSCALINGGROUPINACTIVITY = "ResourceUnavailable.AutoScalingGroupInActivity"
func (*Client) ScaleOutInstances ¶
func (c *Client) ScaleOutInstances(request *ScaleOutInstancesRequest) (response *ScaleOutInstancesResponse, err error)
ScaleOutInstances This API is used to add the specified number of instances to the scaling group, which returns the scaling activity ID `ActivityId`.
* There is no on going scaling task.
* This API is valid even when the scaling group is disabled. For more details, see [DisableAutoScalingGroup](https://intl.cloud.tencent.com/document/api/377/20435?from_cn_redirect=1).
* The desired capacity will be increased accordingly. The new desired capacity should be no more than the maximum capacity.
* If the scale-out activity failed or partially succeeded, the final desired capacity only includes the instances that have been added successfully.
error code that may be returned:
INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound" INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGGROUPID = "InvalidParameterValue.InvalidAutoScalingGroupId" INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" LIMITEXCEEDED_DESIREDCAPACITYLIMITEXCEEDED = "LimitExceeded.DesiredCapacityLimitExceeded" RESOURCEINSUFFICIENT_AUTOSCALINGGROUPABOVEMAXSIZE = "ResourceInsufficient.AutoScalingGroupAboveMaxSize" RESOURCENOTFOUND_AUTOSCALINGGROUPNOTFOUND = "ResourceNotFound.AutoScalingGroupNotFound" RESOURCEUNAVAILABLE_AUTOSCALINGGROUPINACTIVITY = "ResourceUnavailable.AutoScalingGroupInActivity"
func (*Client) ScaleOutInstancesWithContext ¶
func (c *Client) ScaleOutInstancesWithContext(ctx context.Context, request *ScaleOutInstancesRequest) (response *ScaleOutInstancesResponse, err error)
ScaleOutInstances This API is used to add the specified number of instances to the scaling group, which returns the scaling activity ID `ActivityId`.
* There is no on going scaling task.
* This API is valid even when the scaling group is disabled. For more details, see [DisableAutoScalingGroup](https://intl.cloud.tencent.com/document/api/377/20435?from_cn_redirect=1).
* The desired capacity will be increased accordingly. The new desired capacity should be no more than the maximum capacity.
* If the scale-out activity failed or partially succeeded, the final desired capacity only includes the instances that have been added successfully.
error code that may be returned:
INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound" INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGGROUPID = "InvalidParameterValue.InvalidAutoScalingGroupId" INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" LIMITEXCEEDED_DESIREDCAPACITYLIMITEXCEEDED = "LimitExceeded.DesiredCapacityLimitExceeded" RESOURCEINSUFFICIENT_AUTOSCALINGGROUPABOVEMAXSIZE = "ResourceInsufficient.AutoScalingGroupAboveMaxSize" RESOURCENOTFOUND_AUTOSCALINGGROUPNOTFOUND = "ResourceNotFound.AutoScalingGroupNotFound" RESOURCEUNAVAILABLE_AUTOSCALINGGROUPINACTIVITY = "ResourceUnavailable.AutoScalingGroupInActivity"
func (*Client) SetInstancesProtection ¶
func (c *Client) SetInstancesProtection(request *SetInstancesProtectionRequest) (response *SetInstancesProtectionResponse, err error)
SetInstancesProtection This API is used to enable scale-in protection for an instance.
When scale-in protection is enabled, the instance will not be removed in scale-in activities triggered by replacement of unhealthy instances, alarm threshold reached, change of desired quantity, etc.
error code that may be returned:
INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound" INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGGROUPID = "InvalidParameterValue.InvalidAutoScalingGroupId" INVALIDPARAMETERVALUE_INVALIDINSTANCEID = "InvalidParameterValue.InvalidInstanceId" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" RESOURCENOTFOUND_AUTOSCALINGGROUPNOTFOUND = "ResourceNotFound.AutoScalingGroupNotFound" RESOURCENOTFOUND_INSTANCESNOTINAUTOSCALINGGROUP = "ResourceNotFound.InstancesNotInAutoScalingGroup"
func (*Client) SetInstancesProtectionWithContext ¶
func (c *Client) SetInstancesProtectionWithContext(ctx context.Context, request *SetInstancesProtectionRequest) (response *SetInstancesProtectionResponse, err error)
SetInstancesProtection This API is used to enable scale-in protection for an instance.
When scale-in protection is enabled, the instance will not be removed in scale-in activities triggered by replacement of unhealthy instances, alarm threshold reached, change of desired quantity, etc.
error code that may be returned:
INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound" INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGGROUPID = "InvalidParameterValue.InvalidAutoScalingGroupId" INVALIDPARAMETERVALUE_INVALIDINSTANCEID = "InvalidParameterValue.InvalidInstanceId" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" RESOURCENOTFOUND_AUTOSCALINGGROUPNOTFOUND = "ResourceNotFound.AutoScalingGroupNotFound" RESOURCENOTFOUND_INSTANCESNOTINAUTOSCALINGGROUP = "ResourceNotFound.InstancesNotInAutoScalingGroup"
func (*Client) StartAutoScalingInstances ¶
func (c *Client) StartAutoScalingInstances(request *StartAutoScalingInstancesRequest) (response *StartAutoScalingInstancesResponse, err error)
StartAutoScalingInstances This API is used to start up CVM instances in a scaling group.
* After startup, the instance will be in the `IN_SERVICE` status, which will increase the desired capacity. Please note that the desired capacity cannot exceed the maximum value.
* This API supports batch operation. Up to 100 instances can be started up in each request.
error code that may be returned:
FAILEDOPERATION_NOACTIVITYTOGENERATE = "FailedOperation.NoActivityToGenerate" INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound" INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGGROUPID = "InvalidParameterValue.InvalidAutoScalingGroupId" INVALIDPARAMETERVALUE_INVALIDINSTANCEID = "InvalidParameterValue.InvalidInstanceId" RESOURCEINSUFFICIENT_AUTOSCALINGGROUPABOVEMAXSIZE = "ResourceInsufficient.AutoScalingGroupAboveMaxSize" RESOURCEINSUFFICIENT_INSERVICEINSTANCEABOVEMAXSIZE = "ResourceInsufficient.InServiceInstanceAboveMaxSize" RESOURCENOTFOUND_AUTOSCALINGGROUPNOTFOUND = "ResourceNotFound.AutoScalingGroupNotFound" RESOURCENOTFOUND_INSTANCESNOTINAUTOSCALINGGROUP = "ResourceNotFound.InstancesNotInAutoScalingGroup" RESOURCEUNAVAILABLE_AUTOSCALINGGROUPINACTIVITY = "ResourceUnavailable.AutoScalingGroupInActivity" RESOURCEUNAVAILABLE_LOADBALANCERINOPERATION = "ResourceUnavailable.LoadBalancerInOperation"
func (*Client) StartAutoScalingInstancesWithContext ¶
func (c *Client) StartAutoScalingInstancesWithContext(ctx context.Context, request *StartAutoScalingInstancesRequest) (response *StartAutoScalingInstancesResponse, err error)
StartAutoScalingInstances This API is used to start up CVM instances in a scaling group.
* After startup, the instance will be in the `IN_SERVICE` status, which will increase the desired capacity. Please note that the desired capacity cannot exceed the maximum value.
* This API supports batch operation. Up to 100 instances can be started up in each request.
error code that may be returned:
FAILEDOPERATION_NOACTIVITYTOGENERATE = "FailedOperation.NoActivityToGenerate" INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound" INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGGROUPID = "InvalidParameterValue.InvalidAutoScalingGroupId" INVALIDPARAMETERVALUE_INVALIDINSTANCEID = "InvalidParameterValue.InvalidInstanceId" RESOURCEINSUFFICIENT_AUTOSCALINGGROUPABOVEMAXSIZE = "ResourceInsufficient.AutoScalingGroupAboveMaxSize" RESOURCEINSUFFICIENT_INSERVICEINSTANCEABOVEMAXSIZE = "ResourceInsufficient.InServiceInstanceAboveMaxSize" RESOURCENOTFOUND_AUTOSCALINGGROUPNOTFOUND = "ResourceNotFound.AutoScalingGroupNotFound" RESOURCENOTFOUND_INSTANCESNOTINAUTOSCALINGGROUP = "ResourceNotFound.InstancesNotInAutoScalingGroup" RESOURCEUNAVAILABLE_AUTOSCALINGGROUPINACTIVITY = "ResourceUnavailable.AutoScalingGroupInActivity" RESOURCEUNAVAILABLE_LOADBALANCERINOPERATION = "ResourceUnavailable.LoadBalancerInOperation"
func (*Client) StopAutoScalingInstances ¶
func (c *Client) StopAutoScalingInstances(request *StopAutoScalingInstancesRequest) (response *StopAutoScalingInstancesResponse, err error)
StopAutoScalingInstances This API is used to shut down CVM instances in a scaling group.
* Use the `SOFT_FIRST` shutdown, which means the CVM will be forcibly shut down if the soft shutdown fails.
* Shutting down instances in the `IN_SERVICE` status will reduce the desired capacity, but the desired capacity cannot be less than the minimum value.
* To use the `STOP_CHARGING` shutdown, the instances you want to shut down must satisfy the conditions of [no charges when shut down](https://intl.cloud.tencent.com/document/product/213/19918?from_cn_redirect=1).
* This API supports batch operation. Up to 100 instances can be shut down in each request.
error code that may be returned:
CALLCVMERROR = "CallCvmError" FAILEDOPERATION_NOACTIVITYTOGENERATE = "FailedOperation.NoActivityToGenerate" INTERNALERROR_CALLEEERROR = "InternalError.CalleeError" INTERNALERROR_REQUESTERROR = "InternalError.RequestError" INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound" INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGGROUPID = "InvalidParameterValue.InvalidAutoScalingGroupId" INVALIDPARAMETERVALUE_INVALIDINSTANCEID = "InvalidParameterValue.InvalidInstanceId" RESOURCEINSUFFICIENT_AUTOSCALINGGROUPBELOWMINSIZE = "ResourceInsufficient.AutoScalingGroupBelowMinSize" RESOURCEINSUFFICIENT_INSERVICEINSTANCEBELOWMINSIZE = "ResourceInsufficient.InServiceInstanceBelowMinSize" RESOURCENOTFOUND_AUTOSCALINGGROUPNOTFOUND = "ResourceNotFound.AutoScalingGroupNotFound" RESOURCENOTFOUND_INSTANCESNOTINAUTOSCALINGGROUP = "ResourceNotFound.InstancesNotInAutoScalingGroup" RESOURCEUNAVAILABLE_AUTOSCALINGGROUPINACTIVITY = "ResourceUnavailable.AutoScalingGroupInActivity" RESOURCEUNAVAILABLE_INSTANCEINOPERATION = "ResourceUnavailable.InstanceInOperation" RESOURCEUNAVAILABLE_INSTANCENOTSUPPORTSTOPCHARGING = "ResourceUnavailable.InstanceNotSupportStopCharging" RESOURCEUNAVAILABLE_LOADBALANCERINOPERATION = "ResourceUnavailable.LoadBalancerInOperation"
func (*Client) StopAutoScalingInstancesWithContext ¶
func (c *Client) StopAutoScalingInstancesWithContext(ctx context.Context, request *StopAutoScalingInstancesRequest) (response *StopAutoScalingInstancesResponse, err error)
StopAutoScalingInstances This API is used to shut down CVM instances in a scaling group.
* Use the `SOFT_FIRST` shutdown, which means the CVM will be forcibly shut down if the soft shutdown fails.
* Shutting down instances in the `IN_SERVICE` status will reduce the desired capacity, but the desired capacity cannot be less than the minimum value.
* To use the `STOP_CHARGING` shutdown, the instances you want to shut down must satisfy the conditions of [no charges when shut down](https://intl.cloud.tencent.com/document/product/213/19918?from_cn_redirect=1).
* This API supports batch operation. Up to 100 instances can be shut down in each request.
error code that may be returned:
CALLCVMERROR = "CallCvmError" FAILEDOPERATION_NOACTIVITYTOGENERATE = "FailedOperation.NoActivityToGenerate" INTERNALERROR_CALLEEERROR = "InternalError.CalleeError" INTERNALERROR_REQUESTERROR = "InternalError.RequestError" INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound" INVALIDPARAMETERVALUE_INVALIDAUTOSCALINGGROUPID = "InvalidParameterValue.InvalidAutoScalingGroupId" INVALIDPARAMETERVALUE_INVALIDINSTANCEID = "InvalidParameterValue.InvalidInstanceId" RESOURCEINSUFFICIENT_AUTOSCALINGGROUPBELOWMINSIZE = "ResourceInsufficient.AutoScalingGroupBelowMinSize" RESOURCEINSUFFICIENT_INSERVICEINSTANCEBELOWMINSIZE = "ResourceInsufficient.InServiceInstanceBelowMinSize" RESOURCENOTFOUND_AUTOSCALINGGROUPNOTFOUND = "ResourceNotFound.AutoScalingGroupNotFound" RESOURCENOTFOUND_INSTANCESNOTINAUTOSCALINGGROUP = "ResourceNotFound.InstancesNotInAutoScalingGroup" RESOURCEUNAVAILABLE_AUTOSCALINGGROUPINACTIVITY = "ResourceUnavailable.AutoScalingGroupInActivity" RESOURCEUNAVAILABLE_INSTANCEINOPERATION = "ResourceUnavailable.InstanceInOperation" RESOURCEUNAVAILABLE_INSTANCENOTSUPPORTSTOPCHARGING = "ResourceUnavailable.InstanceNotSupportStopCharging" RESOURCEUNAVAILABLE_LOADBALANCERINOPERATION = "ResourceUnavailable.LoadBalancerInOperation"
func (*Client) UpgradeLaunchConfiguration ¶
func (c *Client) UpgradeLaunchConfiguration(request *UpgradeLaunchConfigurationRequest) (response *UpgradeLaunchConfigurationResponse, err error)
UpgradeLaunchConfiguration This API is used to upgrade a launch configuration.
* This API is used to upgrade a launch configuration in a "completely overriding" manner, i.e., it uniformly sets a new configuration according to the API parameters regardless of the original parameters. If optional fields are left empty, their default values will be used.
* After the launch configuration is upgraded, the existing instances that have been created by it will not be changed, but new instances will be created according to the new configuration.
error code that may be returned:
CALLCVMERROR = "CallCvmError" INTERNALERROR = "InternalError" INVALIDIMAGEID_NOTFOUND = "InvalidImageId.NotFound" INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound" INVALIDPARAMETER_CONFLICT = "InvalidParameter.Conflict" INVALIDPARAMETER_INVALIDCOMBINATION = "InvalidParameter.InvalidCombination" INVALIDPARAMETER_MUSTONEPARAMETER = "InvalidParameter.MustOneParameter" INVALIDPARAMETER_PARAMETERDEPRECATED = "InvalidParameter.ParameterDeprecated" INVALIDPARAMETER_PARAMETERMUSTBEDELETED = "InvalidParameter.ParameterMustBeDeleted" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_ACCOUNTNOTSUPPORTBANDWIDTHPACKAGEID = "InvalidParameterValue.AccountNotSupportBandwidthPackageId" INVALIDPARAMETERVALUE_CVMCONFIGURATIONERROR = "InvalidParameterValue.CvmConfigurationError" INVALIDPARAMETERVALUE_CVMERROR = "InvalidParameterValue.CvmError" INVALIDPARAMETERVALUE_HOSTNAMEILLEGAL = "InvalidParameterValue.HostNameIllegal" INVALIDPARAMETERVALUE_IPV6INTERNETCHARGETYPE = "InvalidParameterValue.IPv6InternetChargeType" INVALIDPARAMETERVALUE_INSTANCETYPENOTSUPPORTED = "InvalidParameterValue.InstanceTypeNotSupported" INVALIDPARAMETERVALUE_INVALIDIMAGEID = "InvalidParameterValue.InvalidImageId" INVALIDPARAMETERVALUE_INVALIDINSTANCETYPE = "InvalidParameterValue.InvalidInstanceType" INVALIDPARAMETERVALUE_INVALIDLAUNCHCONFIGURATIONID = "InvalidParameterValue.InvalidLaunchConfigurationId" INVALIDPARAMETERVALUE_LAUNCHCONFIGURATIONNAMEDUPLICATED = "InvalidParameterValue.LaunchConfigurationNameDuplicated" INVALIDPARAMETERVALUE_MISSINGBANDWIDTHPACKAGEID = "InvalidParameterValue.MissingBandwidthPackageId" INVALIDPARAMETERVALUE_NOTSTRINGTYPEFLOAT = "InvalidParameterValue.NotStringTypeFloat" INVALIDPARAMETERVALUE_PROJECTIDNOTFOUND = "InvalidParameterValue.ProjectIdNotFound" INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" INVALIDPARAMETERVALUE_USERDATAFORMATERROR = "InvalidParameterValue.UserDataFormatError" INVALIDPARAMETERVALUE_USERDATASIZEEXCEEDED = "InvalidParameterValue.UserDataSizeExceeded" MISSINGPARAMETER = "MissingParameter" RESOURCENOTFOUND_BANDWIDTHPACKAGEIDNOTFOUND = "ResourceNotFound.BandwidthPackageIdNotFound" RESOURCENOTFOUND_LAUNCHCONFIGURATIONIDNOTFOUND = "ResourceNotFound.LaunchConfigurationIdNotFound"
func (*Client) UpgradeLaunchConfigurationWithContext ¶
func (c *Client) UpgradeLaunchConfigurationWithContext(ctx context.Context, request *UpgradeLaunchConfigurationRequest) (response *UpgradeLaunchConfigurationResponse, err error)
UpgradeLaunchConfiguration This API is used to upgrade a launch configuration.
* This API is used to upgrade a launch configuration in a "completely overriding" manner, i.e., it uniformly sets a new configuration according to the API parameters regardless of the original parameters. If optional fields are left empty, their default values will be used.
* After the launch configuration is upgraded, the existing instances that have been created by it will not be changed, but new instances will be created according to the new configuration.
error code that may be returned:
CALLCVMERROR = "CallCvmError" INTERNALERROR = "InternalError" INVALIDIMAGEID_NOTFOUND = "InvalidImageId.NotFound" INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound" INVALIDPARAMETER_CONFLICT = "InvalidParameter.Conflict" INVALIDPARAMETER_INVALIDCOMBINATION = "InvalidParameter.InvalidCombination" INVALIDPARAMETER_MUSTONEPARAMETER = "InvalidParameter.MustOneParameter" INVALIDPARAMETER_PARAMETERDEPRECATED = "InvalidParameter.ParameterDeprecated" INVALIDPARAMETER_PARAMETERMUSTBEDELETED = "InvalidParameter.ParameterMustBeDeleted" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_ACCOUNTNOTSUPPORTBANDWIDTHPACKAGEID = "InvalidParameterValue.AccountNotSupportBandwidthPackageId" INVALIDPARAMETERVALUE_CVMCONFIGURATIONERROR = "InvalidParameterValue.CvmConfigurationError" INVALIDPARAMETERVALUE_CVMERROR = "InvalidParameterValue.CvmError" INVALIDPARAMETERVALUE_HOSTNAMEILLEGAL = "InvalidParameterValue.HostNameIllegal" INVALIDPARAMETERVALUE_IPV6INTERNETCHARGETYPE = "InvalidParameterValue.IPv6InternetChargeType" INVALIDPARAMETERVALUE_INSTANCETYPENOTSUPPORTED = "InvalidParameterValue.InstanceTypeNotSupported" INVALIDPARAMETERVALUE_INVALIDIMAGEID = "InvalidParameterValue.InvalidImageId" INVALIDPARAMETERVALUE_INVALIDINSTANCETYPE = "InvalidParameterValue.InvalidInstanceType" INVALIDPARAMETERVALUE_INVALIDLAUNCHCONFIGURATIONID = "InvalidParameterValue.InvalidLaunchConfigurationId" INVALIDPARAMETERVALUE_LAUNCHCONFIGURATIONNAMEDUPLICATED = "InvalidParameterValue.LaunchConfigurationNameDuplicated" INVALIDPARAMETERVALUE_MISSINGBANDWIDTHPACKAGEID = "InvalidParameterValue.MissingBandwidthPackageId" INVALIDPARAMETERVALUE_NOTSTRINGTYPEFLOAT = "InvalidParameterValue.NotStringTypeFloat" INVALIDPARAMETERVALUE_PROJECTIDNOTFOUND = "InvalidParameterValue.ProjectIdNotFound" INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" INVALIDPARAMETERVALUE_USERDATAFORMATERROR = "InvalidParameterValue.UserDataFormatError" INVALIDPARAMETERVALUE_USERDATASIZEEXCEEDED = "InvalidParameterValue.UserDataSizeExceeded" MISSINGPARAMETER = "MissingParameter" RESOURCENOTFOUND_BANDWIDTHPACKAGEIDNOTFOUND = "ResourceNotFound.BandwidthPackageIdNotFound" RESOURCENOTFOUND_LAUNCHCONFIGURATIONIDNOTFOUND = "ResourceNotFound.LaunchConfigurationIdNotFound"
func (*Client) UpgradeLifecycleHook ¶
func (c *Client) UpgradeLifecycleHook(request *UpgradeLifecycleHookRequest) (response *UpgradeLifecycleHookResponse, err error)
UpgradeLifecycleHook This API (UpgradeLifecycleHook) is used to upgrade a lifecycle hook.
* This API is used to upgrade a lifecycle hook in a "completely overriding" manner, i.e., it uniformly sets a new configuration according to the API parameters regardless of the original parameters. If optional fields are left empty, their default values will be used.
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_CALLCMQERROR = "InternalError.CallCmqError" INTERNALERROR_CALLSTSERROR = "InternalError.CallStsError" INTERNALERROR_CALLTATERROR = "InternalError.CallTATError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound" INVALIDPARAMETER_CONFLICT = "InvalidParameter.Conflict" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_FILTER = "InvalidParameterValue.Filter" INVALIDPARAMETERVALUE_INVALIDLIFECYCLEHOOKID = "InvalidParameterValue.InvalidLifecycleHookId" INVALIDPARAMETERVALUE_LIFECYCLEHOOKNAMEDUPLICATED = "InvalidParameterValue.LifecycleHookNameDuplicated" MISSINGPARAMETER = "MissingParameter" RESOURCENOTFOUND_COMMANDNOTFOUND = "ResourceNotFound.CommandNotFound" RESOURCENOTFOUND_LIFECYCLEHOOKNOTFOUND = "ResourceNotFound.LifecycleHookNotFound" RESOURCEUNAVAILABLE_CMQTOPICHASNOSUBSCRIBER = "ResourceUnavailable.CmqTopicHasNoSubscriber" RESOURCEUNAVAILABLE_TDMQCMQTOPICHASNOSUBSCRIBER = "ResourceUnavailable.TDMQCMQTopicHasNoSubscriber"
func (*Client) UpgradeLifecycleHookWithContext ¶
func (c *Client) UpgradeLifecycleHookWithContext(ctx context.Context, request *UpgradeLifecycleHookRequest) (response *UpgradeLifecycleHookResponse, err error)
UpgradeLifecycleHook This API (UpgradeLifecycleHook) is used to upgrade a lifecycle hook.
* This API is used to upgrade a lifecycle hook in a "completely overriding" manner, i.e., it uniformly sets a new configuration according to the API parameters regardless of the original parameters. If optional fields are left empty, their default values will be used.
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_CALLCMQERROR = "InternalError.CallCmqError" INTERNALERROR_CALLSTSERROR = "InternalError.CallStsError" INTERNALERROR_CALLTATERROR = "InternalError.CallTATError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound" INVALIDPARAMETER_CONFLICT = "InvalidParameter.Conflict" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_FILTER = "InvalidParameterValue.Filter" INVALIDPARAMETERVALUE_INVALIDLIFECYCLEHOOKID = "InvalidParameterValue.InvalidLifecycleHookId" INVALIDPARAMETERVALUE_LIFECYCLEHOOKNAMEDUPLICATED = "InvalidParameterValue.LifecycleHookNameDuplicated" MISSINGPARAMETER = "MissingParameter" RESOURCENOTFOUND_COMMANDNOTFOUND = "ResourceNotFound.CommandNotFound" RESOURCENOTFOUND_LIFECYCLEHOOKNOTFOUND = "ResourceNotFound.LifecycleHookNotFound" RESOURCEUNAVAILABLE_CMQTOPICHASNOSUBSCRIBER = "ResourceUnavailable.CmqTopicHasNoSubscriber" RESOURCEUNAVAILABLE_TDMQCMQTOPICHASNOSUBSCRIBER = "ResourceUnavailable.TDMQCMQTopicHasNoSubscriber"
type CompleteLifecycleActionRequest ¶
type CompleteLifecycleActionRequest struct { *tchttp.BaseRequest // Lifecycle hook ID LifecycleHookId *string `json:"LifecycleHookId,omitempty" name:"LifecycleHookId"` // Result of the lifecycle action. Value range: "CONTINUE", "ABANDON" LifecycleActionResult *string `json:"LifecycleActionResult,omitempty" name:"LifecycleActionResult"` // Instance ID. Either "InstanceId" or "LifecycleActionToken" must be specified InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Either "InstanceId" or "LifecycleActionToken" must be specified LifecycleActionToken *string `json:"LifecycleActionToken,omitempty" name:"LifecycleActionToken"` }
func NewCompleteLifecycleActionRequest ¶
func NewCompleteLifecycleActionRequest() (request *CompleteLifecycleActionRequest)
func (*CompleteLifecycleActionRequest) FromJsonString ¶
func (r *CompleteLifecycleActionRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CompleteLifecycleActionRequest) ToJsonString ¶
func (r *CompleteLifecycleActionRequest) ToJsonString() string
type CompleteLifecycleActionRequestParams ¶
type CompleteLifecycleActionRequestParams struct { // Lifecycle hook ID LifecycleHookId *string `json:"LifecycleHookId,omitempty" name:"LifecycleHookId"` // Result of the lifecycle action. Value range: "CONTINUE", "ABANDON" LifecycleActionResult *string `json:"LifecycleActionResult,omitempty" name:"LifecycleActionResult"` // Instance ID. Either "InstanceId" or "LifecycleActionToken" must be specified InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Either "InstanceId" or "LifecycleActionToken" must be specified LifecycleActionToken *string `json:"LifecycleActionToken,omitempty" name:"LifecycleActionToken"` }
Predefined struct for user
type CompleteLifecycleActionResponse ¶
type CompleteLifecycleActionResponse struct { *tchttp.BaseResponse Response *CompleteLifecycleActionResponseParams `json:"Response"` }
func NewCompleteLifecycleActionResponse ¶
func NewCompleteLifecycleActionResponse() (response *CompleteLifecycleActionResponse)
func (*CompleteLifecycleActionResponse) FromJsonString ¶
func (r *CompleteLifecycleActionResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CompleteLifecycleActionResponse) ToJsonString ¶
func (r *CompleteLifecycleActionResponse) ToJsonString() string
type CompleteLifecycleActionResponseParams ¶
type CompleteLifecycleActionResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type CreateAutoScalingGroupFromInstanceRequest ¶
type CreateAutoScalingGroupFromInstanceRequest struct { *tchttp.BaseRequest // The scaling group name. It must be unique under your account. The name can only contain letters, numbers, underscore, hyphen “-” and periods. It cannot exceed 55 bytes. AutoScalingGroupName *string `json:"AutoScalingGroupName,omitempty" name:"AutoScalingGroupName"` // The instance ID. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // The minimum number of instances. Value range: 0-2000. MinSize *int64 `json:"MinSize,omitempty" name:"MinSize"` // The maximum number of instances. Value range: 0-2000. MaxSize *int64 `json:"MaxSize,omitempty" name:"MaxSize"` // The desired capacity. Its value must be greater than the minimum and smaller than the maximum. DesiredCapacity *int64 `json:"DesiredCapacity,omitempty" name:"DesiredCapacity"` // Whether to inherit the instance tag. Default value: False InheritInstanceTag *bool `json:"InheritInstanceTag,omitempty" name:"InheritInstanceTag"` }
func NewCreateAutoScalingGroupFromInstanceRequest ¶
func NewCreateAutoScalingGroupFromInstanceRequest() (request *CreateAutoScalingGroupFromInstanceRequest)
func (*CreateAutoScalingGroupFromInstanceRequest) FromJsonString ¶
func (r *CreateAutoScalingGroupFromInstanceRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateAutoScalingGroupFromInstanceRequest) ToJsonString ¶
func (r *CreateAutoScalingGroupFromInstanceRequest) ToJsonString() string
type CreateAutoScalingGroupFromInstanceRequestParams ¶
type CreateAutoScalingGroupFromInstanceRequestParams struct { // The scaling group name. It must be unique under your account. The name can only contain letters, numbers, underscore, hyphen “-” and periods. It cannot exceed 55 bytes. AutoScalingGroupName *string `json:"AutoScalingGroupName,omitempty" name:"AutoScalingGroupName"` // The instance ID. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // The minimum number of instances. Value range: 0-2000. MinSize *int64 `json:"MinSize,omitempty" name:"MinSize"` // The maximum number of instances. Value range: 0-2000. MaxSize *int64 `json:"MaxSize,omitempty" name:"MaxSize"` // The desired capacity. Its value must be greater than the minimum and smaller than the maximum. DesiredCapacity *int64 `json:"DesiredCapacity,omitempty" name:"DesiredCapacity"` // Whether to inherit the instance tag. Default value: False InheritInstanceTag *bool `json:"InheritInstanceTag,omitempty" name:"InheritInstanceTag"` }
Predefined struct for user
type CreateAutoScalingGroupFromInstanceResponse ¶
type CreateAutoScalingGroupFromInstanceResponse struct { *tchttp.BaseResponse Response *CreateAutoScalingGroupFromInstanceResponseParams `json:"Response"` }
func NewCreateAutoScalingGroupFromInstanceResponse ¶
func NewCreateAutoScalingGroupFromInstanceResponse() (response *CreateAutoScalingGroupFromInstanceResponse)
func (*CreateAutoScalingGroupFromInstanceResponse) FromJsonString ¶
func (r *CreateAutoScalingGroupFromInstanceResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateAutoScalingGroupFromInstanceResponse) ToJsonString ¶
func (r *CreateAutoScalingGroupFromInstanceResponse) ToJsonString() string
type CreateAutoScalingGroupFromInstanceResponseParams ¶
type CreateAutoScalingGroupFromInstanceResponseParams struct { // The scaling group ID. AutoScalingGroupId *string `json:"AutoScalingGroupId,omitempty" name:"AutoScalingGroupId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type CreateAutoScalingGroupRequest ¶
type CreateAutoScalingGroupRequest struct { *tchttp.BaseRequest // Auto scaling group name, which can only contain letters, numbers, underscores, hyphens ("-"), and decimal points with a maximum length of 55 bytes and must be unique under your account. AutoScalingGroupName *string `json:"AutoScalingGroupName,omitempty" name:"AutoScalingGroupName"` // Launch configuration ID LaunchConfigurationId *string `json:"LaunchConfigurationId,omitempty" name:"LaunchConfigurationId"` // Maximum number of instances. Value range: 0-2,000. MaxSize *uint64 `json:"MaxSize,omitempty" name:"MaxSize"` // Minimum number of instances. Value range: 0-2,000. MinSize *uint64 `json:"MinSize,omitempty" name:"MinSize"` // VPC ID; if on a basic network, enter an empty string VpcId *string `json:"VpcId,omitempty" name:"VpcId"` // Default cooldown period in seconds. Default value: 300 DefaultCooldown *uint64 `json:"DefaultCooldown,omitempty" name:"DefaultCooldown"` // Desired number of instances. The number should be no larger than the maximum and no smaller than minimum number of instances DesiredCapacity *uint64 `json:"DesiredCapacity,omitempty" name:"DesiredCapacity"` // List of classic CLB IDs. Currently, the maximum length is 20. You cannot specify LoadBalancerIds and ForwardLoadBalancers at the same time. LoadBalancerIds []*string `json:"LoadBalancerIds,omitempty" name:"LoadBalancerIds"` // Project ID of an instance in a scaling group. The default project is used if it’s left blank. ProjectId *uint64 `json:"ProjectId,omitempty" name:"ProjectId"` // List of application CLBs. Up to 100 CLBs are allowed. `LoadBalancerIds` and `ForwardLoadBalancers` cannot be specified at the same time. ForwardLoadBalancers []*ForwardLoadBalancer `json:"ForwardLoadBalancers,omitempty" name:"ForwardLoadBalancers"` // List of subnet IDs. A subnet must be specified in the VPC scenario. If multiple subnets are entered, their priority will be determined by the order in which they are entered, and they will be tried one by one until instances can be successfully created. SubnetIds []*string `json:"SubnetIds,omitempty" name:"SubnetIds"` // Termination policy. Currently, the maximum length is 1. Value range: OLDEST_INSTANCE, NEWEST_INSTANCE. Default value: OLDEST_INSTANCE. // <br><li> OLDEST_INSTANCE: The oldest instance in the auto scaling group will be terminated first. // <br><li> NEWEST_INSTANCE: The newest instance in the auto scaling group will be terminated first. TerminationPolicies []*string `json:"TerminationPolicies,omitempty" name:"TerminationPolicies"` // List of availability zones. An availability zone must be specified in the basic network scenario. If multiple availability zones are entered, their priority will be determined by the order in which they are entered, and they will be tried one by one until instances can be successfully created. Zones []*string `json:"Zones,omitempty" name:"Zones"` // Retry policy. Value range: IMMEDIATE_RETRY, INCREMENTAL_INTERVALS, and NO_RETRY. Default value: IMMEDIATE_RETRY. // <br><li> IMMEDIATE_RETRY: Retrying immediately in a short period of time and stopping after a number of consecutive failures (5). // <br><li> INCREMENTAL_INTERVALS: Retrying at incremental intervals, i.e., as the number of consecutive failures increases, the retry interval gradually increases, ranging from one second to one day. // <br><li> NO_RETRY: No retry until a user call or alarm message is received again. RetryPolicy *string `json:"RetryPolicy,omitempty" name:"RetryPolicy"` // Availability zone verification policy. Value range: ALL, ANY. Default value: ANY. // <br><li> ALL: The verification will succeed only if all availability zones (Zone) or subnets (SubnetId) are available; otherwise, an error will be reported. // <br><li> ANY: The verification will success if any availability zone (Zone) or subnet (SubnetId) is available; otherwise, an error will be reported. // // Common reasons why an availability zone or subnet is unavailable include stock-out of CVM instances or CBS cloud disks in the availability zone, insufficient quota in the availability zone, or insufficient IPs in the subnet. // If an availability zone or subnet in Zones/SubnetIds does not exist, a verification error will be reported regardless of the value of ZonesCheckPolicy. ZonesCheckPolicy *string `json:"ZonesCheckPolicy,omitempty" name:"ZonesCheckPolicy"` // List of tag descriptions. In this parameter, you can specify the tags to be bound with a scaling group as well as corresponding resource instances. Each scaling group can have up to 30 tags. Tags []*Tag `json:"Tags,omitempty" name:"Tags"` // Service settings such as unhealthy instance replacement. ServiceSettings *ServiceSettings `json:"ServiceSettings,omitempty" name:"ServiceSettings"` // The number of IPv6 addresses that an instance has. Valid values: 0 and 1. Default value: 0. Ipv6AddressCount *int64 `json:"Ipv6AddressCount,omitempty" name:"Ipv6AddressCount"` // Multi-availability zone/subnet policy. Valid values: PRIORITY and EQUALITY. Default value: PRIORITY. // <br><li> PRIORITY: when creating instances, choose the availability zone/subnet based on the order in the list from top to bottom. If the first instance is successfully created in the availability zone/subnet of the highest priority, all instances will be created in this availability zone/subnet. // <br><li>EQUALITY: instances created for scale-out are distributed to multiple availability zones/subnets, so as to keep the number of instances in different availability zone/subnet in balance. // // Notes: // <br><li> When the scaling group is based on the classic network, this policy applies to multiple availability zones. When the scaling group is based on a VPC, this policy applies to multiple subnets, and you do not need to consider availability zones. For example, if you have four subnets (A, B, C, and D) and A, B, and C are in availability zone 1 and D is in availability zone 2, you only need to decide the order of the four subnets, without worrying about the issue of availability zones. // <br><li> This policy is applicable to multiple availability zones/subnets, but is not applicable to multiple models with launch configurations. Specify the models according to the model priority. // <br><li> When creating instances based on the PRIORITY policy, apply the multi-model policy and then apply the multi-availability zones/subnet policy. For example, if you have models A and B and subnets 1, 2, and 3, creation will be attempted in the following order: A1, A2, A3, B1, B2, and B3. If A1 is sold out, A2 (not B1) is tried next. MultiZoneSubnetPolicy *string `json:"MultiZoneSubnetPolicy,omitempty" name:"MultiZoneSubnetPolicy"` // Health check type of instances in a scaling group.<br><li>CVM: confirm whether an instance is healthy based on the network status. If the pinged instance is unreachable, the instance will be considered unhealthy. For more information, see [Instance Health Check](https://intl.cloud.tencent.com/document/product/377/8553?from_cn_redirect=1)<br><li>CLB: confirm whether an instance is healthy based on the CLB health check status. For more information, see [Health Check Overview](https://intl.cloud.tencent.com/document/product/214/6097?from_cn_redirect=1).<br>If the parameter is set to `CLB`, the scaling group will check both the network status and the CLB health check status. If the network check indicates unhealthy, the `HealthStatus` field will return `UNHEALTHY`. If the CLB health check indicates unhealthy, the `HealthStatus` field will return `CLB_UNHEALTHY`. If both checks indicate unhealthy, the `HealthStatus` field will return `UNHEALTHY|CLB_UNHEALTHY`. Default value: `CLB`. HealthCheckType *string `json:"HealthCheckType,omitempty" name:"HealthCheckType"` // Grace period of the CLB health check during which the `IN_SERVICE` instances added will not be marked as `CLB_UNHEALTHY`.<br>Valid range: 0-7200, in seconds. Default value: `0`. LoadBalancerHealthCheckGracePeriod *uint64 `json:"LoadBalancerHealthCheckGracePeriod,omitempty" name:"LoadBalancerHealthCheckGracePeriod"` // Specifies how to assign instances. Valid values: `LAUNCH_CONFIGURATION` and `SPOT_MIXED`; default value: `LAUNCH_CONFIGURATION`. // <br><li>`LAUNCH_CONFIGURATION`: the launch configuration mode. // <br><li>`SPOT_MIXED`: a mixed instance mode. Currently, this mode is supported only when the launch configuration takes the pay-as-you-go billing mode. With this mode, the scaling group can provision a combination of pay-as-you-go instances and spot instances to meet the configured capacity. Note that the billing mode of the associated launch configuration cannot be modified when this mode is used. InstanceAllocationPolicy *string `json:"InstanceAllocationPolicy,omitempty" name:"InstanceAllocationPolicy"` // Specifies how to assign pay-as-you-go instances and spot instances. // This parameter is valid only when `InstanceAllocationPolicy ` is set to `SPOT_MIXED`. SpotMixedAllocationPolicy *SpotMixedAllocationPolicy `json:"SpotMixedAllocationPolicy,omitempty" name:"SpotMixedAllocationPolicy"` // Indicates whether the capacity re-balancing feature is enabled. This parameter is only valid for spot instances in the scaling group. Valid values: // <br><li>`TRUE`: yes. Before the spot instances in the scaling group are about to be automatically repossessed, AS will terminate them. The scale-in hook (if configured) will take effect before the termination. After the termination process starts, AS will asynchronously initiate a scaling activity to meet the desired capacity. // <br><li>`FALSE`: no. In this case, AS will add instances to meet the desired capacity only after the spot instances are terminated. // // Default value: `False`. CapacityRebalance *bool `json:"CapacityRebalance,omitempty" name:"CapacityRebalance"` }
func NewCreateAutoScalingGroupRequest ¶
func NewCreateAutoScalingGroupRequest() (request *CreateAutoScalingGroupRequest)
func (*CreateAutoScalingGroupRequest) FromJsonString ¶
func (r *CreateAutoScalingGroupRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateAutoScalingGroupRequest) ToJsonString ¶
func (r *CreateAutoScalingGroupRequest) ToJsonString() string
type CreateAutoScalingGroupRequestParams ¶
type CreateAutoScalingGroupRequestParams struct { // Auto scaling group name, which can only contain letters, numbers, underscores, hyphens ("-"), and decimal points with a maximum length of 55 bytes and must be unique under your account. AutoScalingGroupName *string `json:"AutoScalingGroupName,omitempty" name:"AutoScalingGroupName"` // Launch configuration ID LaunchConfigurationId *string `json:"LaunchConfigurationId,omitempty" name:"LaunchConfigurationId"` // Maximum number of instances. Value range: 0-2,000. MaxSize *uint64 `json:"MaxSize,omitempty" name:"MaxSize"` // Minimum number of instances. Value range: 0-2,000. MinSize *uint64 `json:"MinSize,omitempty" name:"MinSize"` // VPC ID; if on a basic network, enter an empty string VpcId *string `json:"VpcId,omitempty" name:"VpcId"` // Default cooldown period in seconds. Default value: 300 DefaultCooldown *uint64 `json:"DefaultCooldown,omitempty" name:"DefaultCooldown"` // Desired number of instances. The number should be no larger than the maximum and no smaller than minimum number of instances DesiredCapacity *uint64 `json:"DesiredCapacity,omitempty" name:"DesiredCapacity"` // List of classic CLB IDs. Currently, the maximum length is 20. You cannot specify LoadBalancerIds and ForwardLoadBalancers at the same time. LoadBalancerIds []*string `json:"LoadBalancerIds,omitempty" name:"LoadBalancerIds"` // Project ID of an instance in a scaling group. The default project is used if it’s left blank. ProjectId *uint64 `json:"ProjectId,omitempty" name:"ProjectId"` // List of application CLBs. Up to 100 CLBs are allowed. `LoadBalancerIds` and `ForwardLoadBalancers` cannot be specified at the same time. ForwardLoadBalancers []*ForwardLoadBalancer `json:"ForwardLoadBalancers,omitempty" name:"ForwardLoadBalancers"` // List of subnet IDs. A subnet must be specified in the VPC scenario. If multiple subnets are entered, their priority will be determined by the order in which they are entered, and they will be tried one by one until instances can be successfully created. SubnetIds []*string `json:"SubnetIds,omitempty" name:"SubnetIds"` // Termination policy. Currently, the maximum length is 1. Value range: OLDEST_INSTANCE, NEWEST_INSTANCE. Default value: OLDEST_INSTANCE. // <br><li> OLDEST_INSTANCE: The oldest instance in the auto scaling group will be terminated first. // <br><li> NEWEST_INSTANCE: The newest instance in the auto scaling group will be terminated first. TerminationPolicies []*string `json:"TerminationPolicies,omitempty" name:"TerminationPolicies"` // List of availability zones. An availability zone must be specified in the basic network scenario. If multiple availability zones are entered, their priority will be determined by the order in which they are entered, and they will be tried one by one until instances can be successfully created. Zones []*string `json:"Zones,omitempty" name:"Zones"` // Retry policy. Value range: IMMEDIATE_RETRY, INCREMENTAL_INTERVALS, and NO_RETRY. Default value: IMMEDIATE_RETRY. // <br><li> IMMEDIATE_RETRY: Retrying immediately in a short period of time and stopping after a number of consecutive failures (5). // <br><li> INCREMENTAL_INTERVALS: Retrying at incremental intervals, i.e., as the number of consecutive failures increases, the retry interval gradually increases, ranging from one second to one day. // <br><li> NO_RETRY: No retry until a user call or alarm message is received again. RetryPolicy *string `json:"RetryPolicy,omitempty" name:"RetryPolicy"` // Availability zone verification policy. Value range: ALL, ANY. Default value: ANY. // <br><li> ALL: The verification will succeed only if all availability zones (Zone) or subnets (SubnetId) are available; otherwise, an error will be reported. // <br><li> ANY: The verification will success if any availability zone (Zone) or subnet (SubnetId) is available; otherwise, an error will be reported. // // Common reasons why an availability zone or subnet is unavailable include stock-out of CVM instances or CBS cloud disks in the availability zone, insufficient quota in the availability zone, or insufficient IPs in the subnet. // If an availability zone or subnet in Zones/SubnetIds does not exist, a verification error will be reported regardless of the value of ZonesCheckPolicy. ZonesCheckPolicy *string `json:"ZonesCheckPolicy,omitempty" name:"ZonesCheckPolicy"` // List of tag descriptions. In this parameter, you can specify the tags to be bound with a scaling group as well as corresponding resource instances. Each scaling group can have up to 30 tags. Tags []*Tag `json:"Tags,omitempty" name:"Tags"` // Service settings such as unhealthy instance replacement. ServiceSettings *ServiceSettings `json:"ServiceSettings,omitempty" name:"ServiceSettings"` // The number of IPv6 addresses that an instance has. Valid values: 0 and 1. Default value: 0. Ipv6AddressCount *int64 `json:"Ipv6AddressCount,omitempty" name:"Ipv6AddressCount"` // Multi-availability zone/subnet policy. Valid values: PRIORITY and EQUALITY. Default value: PRIORITY. // <br><li> PRIORITY: when creating instances, choose the availability zone/subnet based on the order in the list from top to bottom. If the first instance is successfully created in the availability zone/subnet of the highest priority, all instances will be created in this availability zone/subnet. // <br><li>EQUALITY: instances created for scale-out are distributed to multiple availability zones/subnets, so as to keep the number of instances in different availability zone/subnet in balance. // // Notes: // <br><li> When the scaling group is based on the classic network, this policy applies to multiple availability zones. When the scaling group is based on a VPC, this policy applies to multiple subnets, and you do not need to consider availability zones. For example, if you have four subnets (A, B, C, and D) and A, B, and C are in availability zone 1 and D is in availability zone 2, you only need to decide the order of the four subnets, without worrying about the issue of availability zones. // <br><li> This policy is applicable to multiple availability zones/subnets, but is not applicable to multiple models with launch configurations. Specify the models according to the model priority. // <br><li> When creating instances based on the PRIORITY policy, apply the multi-model policy and then apply the multi-availability zones/subnet policy. For example, if you have models A and B and subnets 1, 2, and 3, creation will be attempted in the following order: A1, A2, A3, B1, B2, and B3. If A1 is sold out, A2 (not B1) is tried next. MultiZoneSubnetPolicy *string `json:"MultiZoneSubnetPolicy,omitempty" name:"MultiZoneSubnetPolicy"` // Health check type of instances in a scaling group.<br><li>CVM: confirm whether an instance is healthy based on the network status. If the pinged instance is unreachable, the instance will be considered unhealthy. For more information, see [Instance Health Check](https://intl.cloud.tencent.com/document/product/377/8553?from_cn_redirect=1)<br><li>CLB: confirm whether an instance is healthy based on the CLB health check status. For more information, see [Health Check Overview](https://intl.cloud.tencent.com/document/product/214/6097?from_cn_redirect=1).<br>If the parameter is set to `CLB`, the scaling group will check both the network status and the CLB health check status. If the network check indicates unhealthy, the `HealthStatus` field will return `UNHEALTHY`. If the CLB health check indicates unhealthy, the `HealthStatus` field will return `CLB_UNHEALTHY`. If both checks indicate unhealthy, the `HealthStatus` field will return `UNHEALTHY|CLB_UNHEALTHY`. Default value: `CLB`. HealthCheckType *string `json:"HealthCheckType,omitempty" name:"HealthCheckType"` // Grace period of the CLB health check during which the `IN_SERVICE` instances added will not be marked as `CLB_UNHEALTHY`.<br>Valid range: 0-7200, in seconds. Default value: `0`. LoadBalancerHealthCheckGracePeriod *uint64 `json:"LoadBalancerHealthCheckGracePeriod,omitempty" name:"LoadBalancerHealthCheckGracePeriod"` // Specifies how to assign instances. Valid values: `LAUNCH_CONFIGURATION` and `SPOT_MIXED`; default value: `LAUNCH_CONFIGURATION`. // <br><li>`LAUNCH_CONFIGURATION`: the launch configuration mode. // <br><li>`SPOT_MIXED`: a mixed instance mode. Currently, this mode is supported only when the launch configuration takes the pay-as-you-go billing mode. With this mode, the scaling group can provision a combination of pay-as-you-go instances and spot instances to meet the configured capacity. Note that the billing mode of the associated launch configuration cannot be modified when this mode is used. InstanceAllocationPolicy *string `json:"InstanceAllocationPolicy,omitempty" name:"InstanceAllocationPolicy"` // Specifies how to assign pay-as-you-go instances and spot instances. // This parameter is valid only when `InstanceAllocationPolicy ` is set to `SPOT_MIXED`. SpotMixedAllocationPolicy *SpotMixedAllocationPolicy `json:"SpotMixedAllocationPolicy,omitempty" name:"SpotMixedAllocationPolicy"` // Indicates whether the capacity re-balancing feature is enabled. This parameter is only valid for spot instances in the scaling group. Valid values: // <br><li>`TRUE`: yes. Before the spot instances in the scaling group are about to be automatically repossessed, AS will terminate them. The scale-in hook (if configured) will take effect before the termination. After the termination process starts, AS will asynchronously initiate a scaling activity to meet the desired capacity. // <br><li>`FALSE`: no. In this case, AS will add instances to meet the desired capacity only after the spot instances are terminated. // // Default value: `False`. CapacityRebalance *bool `json:"CapacityRebalance,omitempty" name:"CapacityRebalance"` }
Predefined struct for user
type CreateAutoScalingGroupResponse ¶
type CreateAutoScalingGroupResponse struct { *tchttp.BaseResponse Response *CreateAutoScalingGroupResponseParams `json:"Response"` }
func NewCreateAutoScalingGroupResponse ¶
func NewCreateAutoScalingGroupResponse() (response *CreateAutoScalingGroupResponse)
func (*CreateAutoScalingGroupResponse) FromJsonString ¶
func (r *CreateAutoScalingGroupResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateAutoScalingGroupResponse) ToJsonString ¶
func (r *CreateAutoScalingGroupResponse) ToJsonString() string
type CreateAutoScalingGroupResponseParams ¶
type CreateAutoScalingGroupResponseParams struct { // Auto scaling group ID AutoScalingGroupId *string `json:"AutoScalingGroupId,omitempty" name:"AutoScalingGroupId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type CreateLaunchConfigurationRequest ¶
type CreateLaunchConfigurationRequest struct { *tchttp.BaseRequest // Display name of the launch configuration, which can contain letters, digits, underscores and hyphens (-), and dots. Up to of 60 bytes allowed.. LaunchConfigurationName *string `json:"LaunchConfigurationName,omitempty" name:"LaunchConfigurationName"` // [Image](https://intl.cloud.tencent.com/document/product/213/4940?from_cn_redirect=1) ID in the format of `img-xxx`. There are three types of images: <br/><li>Public images </li><li>Custom images </li><li>Shared images </li><br/>You can obtain the image IDs in the [CVM console](https://console.cloud.tencent.com/cvm/image?rid=1&imageType=PUBLIC_IMAGE).</li><li>You can also use the [DescribeImages](https://intl.cloud.tencent.com/document/api/213/15715?from_cn_redirect=1) and look for `ImageId` in the response.</li> ImageId *string `json:"ImageId,omitempty" name:"ImageId"` // Project ID of the launch configuration. The default project is used if it’s left blank. // Note that this project ID is not the same as the project ID of the scaling group. ProjectId *uint64 `json:"ProjectId,omitempty" name:"ProjectId"` // Instance model. Different instance models specify different resource specifications. The specific value can be obtained by calling the [DescribeInstanceTypeConfigs](https://intl.cloud.tencent.com/document/api/213/15749?from_cn_redirect=1) API to get the latest specification table or referring to the descriptions in [Instance Types](https://intl.cloud.tencent.com/document/product/213/11518?from_cn_redirect=1). // `InstanceType` and `InstanceTypes` are mutually exclusive, and one and only one of them must be entered. InstanceType *string `json:"InstanceType,omitempty" name:"InstanceType"` // System disk configuration of the instance. If this parameter is not specified, the default value will be used. SystemDisk *SystemDisk `json:"SystemDisk,omitempty" name:"SystemDisk"` // Information of the instance's data disk configuration. If this parameter is not specified, no data disk is purchased by default. Up to 11 data disks can be supported. DataDisks []*DataDisk `json:"DataDisks,omitempty" name:"DataDisks"` // Configuration of public network bandwidth. If this parameter is not specified, 0 Mbps will be used by default. InternetAccessible *InternetAccessible `json:"InternetAccessible,omitempty" name:"InternetAccessible"` // Login settings of the instance. You can use this parameter to set the login method, password, and key of the instance or keep the login settings of the original image. By default, a random password will be generated and sent to you via the Message Center. LoginSettings *LoginSettings `json:"LoginSettings,omitempty" name:"LoginSettings"` // The security group to which the instance belongs. This parameter can be obtained by calling the `SecurityGroupId` field in the returned value of [DescribeSecurityGroups](https://intl.cloud.tencent.com/document/api/215/15808?from_cn_redirect=1). If this parameter is not specified, no security group will be bound by default. SecurityGroupIds []*string `json:"SecurityGroupIds,omitempty" name:"SecurityGroupIds"` // Enhanced services. You can use this parameter to specify whether to enable services such as Cloud Security and Cloud Monitor. If this parameter is not specified, Cloud Monitor and Cloud Security will be enabled by default. EnhancedService *EnhancedService `json:"EnhancedService,omitempty" name:"EnhancedService"` // Base64-encoded custom data of up to 16 KB. UserData *string `json:"UserData,omitempty" name:"UserData"` // Instance billing mode. CVM instances take `POSTPAID_BY_HOUR` by default. Valid values: // <br><li>POSTPAID_BY_HOUR: pay-as-you-go hourly // <br><li>SPOTPAID: spot instance InstanceChargeType *string `json:"InstanceChargeType,omitempty" name:"InstanceChargeType"` // Market options of the instance, such as parameters related to spot instances. This parameter is required for spot instances. InstanceMarketOptions *InstanceMarketOptionsRequest `json:"InstanceMarketOptions,omitempty" name:"InstanceMarketOptions"` // List of instance models. Different instance models specify different resource specifications. Up to 10 instance models can be supported. // `InstanceType` and `InstanceTypes` are mutually exclusive, and one and only one of them must be entered. InstanceTypes []*string `json:"InstanceTypes,omitempty" name:"InstanceTypes"` // CAM role name. This parameter can be obtained from the `roleName` field returned by DescribeRoleList API. CamRoleName *string `json:"CamRoleName,omitempty" name:"CamRoleName"` // Instance type verification policy. Value range: ALL, ANY. Default value: ANY. // <br><li> ALL: The verification will success only if all instance types (InstanceType) are available; otherwise, an error will be reported. // <br><li> ANY: The verification will success if any instance type (InstanceType) is available; otherwise, an error will be reported. // // Common reasons why an instance type is unavailable include stock-out of the instance type or the corresponding cloud disk. // If a model in InstanceTypes does not exist or has been discontinued, a verification error will be reported regardless of the value of InstanceTypesCheckPolicy. InstanceTypesCheckPolicy *string `json:"InstanceTypesCheckPolicy,omitempty" name:"InstanceTypesCheckPolicy"` // List of tags. This parameter is used to bind up to 10 tags to newly added instances. InstanceTags []*InstanceTag `json:"InstanceTags,omitempty" name:"InstanceTags"` // List of tags. You can specify tags that you want to bind to the launch configuration. Each launch configuration can have up to 30 tags. Tags []*Tag `json:"Tags,omitempty" name:"Tags"` // CVM hostname settings. HostNameSettings *HostNameSettings `json:"HostNameSettings,omitempty" name:"HostNameSettings"` // Settings of CVM instance names // If this field is configured in a launch configuration, the `InstanceName` of a CVM created by the scaling group will be generated according to the configuration; otherwise, it will be in the `as-{{AutoScalingGroupName }}` format. InstanceNameSettings *InstanceNameSettings `json:"InstanceNameSettings,omitempty" name:"InstanceNameSettings"` // Details of the monthly subscription, including the purchase period, auto-renewal. It is required if the `InstanceChargeType` is `PREPAID`. InstanceChargePrepaid *InstanceChargePrepaid `json:"InstanceChargePrepaid,omitempty" name:"InstanceChargePrepaid"` // Selection policy of cloud disks. Default value: ORIGINAL. Valid values: // <br><li>ORIGINAL: uses the configured cloud disk type // <br><li>AUTOMATIC: automatically chooses an available cloud disk type DiskTypePolicy *string `json:"DiskTypePolicy,omitempty" name:"DiskTypePolicy"` // HPC ID<br> // Note: This field is default to empty HpcClusterId *string `json:"HpcClusterId,omitempty" name:"HpcClusterId"` }
func NewCreateLaunchConfigurationRequest ¶
func NewCreateLaunchConfigurationRequest() (request *CreateLaunchConfigurationRequest)
func (*CreateLaunchConfigurationRequest) FromJsonString ¶
func (r *CreateLaunchConfigurationRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateLaunchConfigurationRequest) ToJsonString ¶
func (r *CreateLaunchConfigurationRequest) ToJsonString() string
type CreateLaunchConfigurationRequestParams ¶
type CreateLaunchConfigurationRequestParams struct { // Display name of the launch configuration, which can contain letters, digits, underscores and hyphens (-), and dots. Up to of 60 bytes allowed.. LaunchConfigurationName *string `json:"LaunchConfigurationName,omitempty" name:"LaunchConfigurationName"` // [Image](https://intl.cloud.tencent.com/document/product/213/4940?from_cn_redirect=1) ID in the format of `img-xxx`. There are three types of images: <br/><li>Public images </li><li>Custom images </li><li>Shared images </li><br/>You can obtain the image IDs in the [CVM console](https://console.cloud.tencent.com/cvm/image?rid=1&imageType=PUBLIC_IMAGE).</li><li>You can also use the [DescribeImages](https://intl.cloud.tencent.com/document/api/213/15715?from_cn_redirect=1) and look for `ImageId` in the response.</li> ImageId *string `json:"ImageId,omitempty" name:"ImageId"` // Project ID of the launch configuration. The default project is used if it’s left blank. // Note that this project ID is not the same as the project ID of the scaling group. ProjectId *uint64 `json:"ProjectId,omitempty" name:"ProjectId"` // Instance model. Different instance models specify different resource specifications. The specific value can be obtained by calling the [DescribeInstanceTypeConfigs](https://intl.cloud.tencent.com/document/api/213/15749?from_cn_redirect=1) API to get the latest specification table or referring to the descriptions in [Instance Types](https://intl.cloud.tencent.com/document/product/213/11518?from_cn_redirect=1). // `InstanceType` and `InstanceTypes` are mutually exclusive, and one and only one of them must be entered. InstanceType *string `json:"InstanceType,omitempty" name:"InstanceType"` // System disk configuration of the instance. If this parameter is not specified, the default value will be used. SystemDisk *SystemDisk `json:"SystemDisk,omitempty" name:"SystemDisk"` // Information of the instance's data disk configuration. If this parameter is not specified, no data disk is purchased by default. Up to 11 data disks can be supported. DataDisks []*DataDisk `json:"DataDisks,omitempty" name:"DataDisks"` // Configuration of public network bandwidth. If this parameter is not specified, 0 Mbps will be used by default. InternetAccessible *InternetAccessible `json:"InternetAccessible,omitempty" name:"InternetAccessible"` // Login settings of the instance. You can use this parameter to set the login method, password, and key of the instance or keep the login settings of the original image. By default, a random password will be generated and sent to you via the Message Center. LoginSettings *LoginSettings `json:"LoginSettings,omitempty" name:"LoginSettings"` // The security group to which the instance belongs. This parameter can be obtained by calling the `SecurityGroupId` field in the returned value of [DescribeSecurityGroups](https://intl.cloud.tencent.com/document/api/215/15808?from_cn_redirect=1). If this parameter is not specified, no security group will be bound by default. SecurityGroupIds []*string `json:"SecurityGroupIds,omitempty" name:"SecurityGroupIds"` // Enhanced services. You can use this parameter to specify whether to enable services such as Cloud Security and Cloud Monitor. If this parameter is not specified, Cloud Monitor and Cloud Security will be enabled by default. EnhancedService *EnhancedService `json:"EnhancedService,omitempty" name:"EnhancedService"` // Base64-encoded custom data of up to 16 KB. UserData *string `json:"UserData,omitempty" name:"UserData"` // Instance billing mode. CVM instances take `POSTPAID_BY_HOUR` by default. Valid values: // <br><li>POSTPAID_BY_HOUR: pay-as-you-go hourly // <br><li>SPOTPAID: spot instance InstanceChargeType *string `json:"InstanceChargeType,omitempty" name:"InstanceChargeType"` // Market options of the instance, such as parameters related to spot instances. This parameter is required for spot instances. InstanceMarketOptions *InstanceMarketOptionsRequest `json:"InstanceMarketOptions,omitempty" name:"InstanceMarketOptions"` // List of instance models. Different instance models specify different resource specifications. Up to 10 instance models can be supported. // `InstanceType` and `InstanceTypes` are mutually exclusive, and one and only one of them must be entered. InstanceTypes []*string `json:"InstanceTypes,omitempty" name:"InstanceTypes"` // CAM role name. This parameter can be obtained from the `roleName` field returned by DescribeRoleList API. CamRoleName *string `json:"CamRoleName,omitempty" name:"CamRoleName"` // Instance type verification policy. Value range: ALL, ANY. Default value: ANY. // <br><li> ALL: The verification will success only if all instance types (InstanceType) are available; otherwise, an error will be reported. // <br><li> ANY: The verification will success if any instance type (InstanceType) is available; otherwise, an error will be reported. // // Common reasons why an instance type is unavailable include stock-out of the instance type or the corresponding cloud disk. // If a model in InstanceTypes does not exist or has been discontinued, a verification error will be reported regardless of the value of InstanceTypesCheckPolicy. InstanceTypesCheckPolicy *string `json:"InstanceTypesCheckPolicy,omitempty" name:"InstanceTypesCheckPolicy"` // List of tags. This parameter is used to bind up to 10 tags to newly added instances. InstanceTags []*InstanceTag `json:"InstanceTags,omitempty" name:"InstanceTags"` // List of tags. You can specify tags that you want to bind to the launch configuration. Each launch configuration can have up to 30 tags. Tags []*Tag `json:"Tags,omitempty" name:"Tags"` // CVM hostname settings. HostNameSettings *HostNameSettings `json:"HostNameSettings,omitempty" name:"HostNameSettings"` // Settings of CVM instance names // If this field is configured in a launch configuration, the `InstanceName` of a CVM created by the scaling group will be generated according to the configuration; otherwise, it will be in the `as-{{AutoScalingGroupName }}` format. InstanceNameSettings *InstanceNameSettings `json:"InstanceNameSettings,omitempty" name:"InstanceNameSettings"` // Details of the monthly subscription, including the purchase period, auto-renewal. It is required if the `InstanceChargeType` is `PREPAID`. InstanceChargePrepaid *InstanceChargePrepaid `json:"InstanceChargePrepaid,omitempty" name:"InstanceChargePrepaid"` // Selection policy of cloud disks. Default value: ORIGINAL. Valid values: // <br><li>ORIGINAL: uses the configured cloud disk type // <br><li>AUTOMATIC: automatically chooses an available cloud disk type DiskTypePolicy *string `json:"DiskTypePolicy,omitempty" name:"DiskTypePolicy"` // HPC ID<br> // Note: This field is default to empty HpcClusterId *string `json:"HpcClusterId,omitempty" name:"HpcClusterId"` }
Predefined struct for user
type CreateLaunchConfigurationResponse ¶
type CreateLaunchConfigurationResponse struct { *tchttp.BaseResponse Response *CreateLaunchConfigurationResponseParams `json:"Response"` }
func NewCreateLaunchConfigurationResponse ¶
func NewCreateLaunchConfigurationResponse() (response *CreateLaunchConfigurationResponse)
func (*CreateLaunchConfigurationResponse) FromJsonString ¶
func (r *CreateLaunchConfigurationResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateLaunchConfigurationResponse) ToJsonString ¶
func (r *CreateLaunchConfigurationResponse) ToJsonString() string
type CreateLaunchConfigurationResponseParams ¶
type CreateLaunchConfigurationResponseParams struct { // This parameter is returned when a launch configuration is created through this API, indicating the launch configuration ID. LaunchConfigurationId *string `json:"LaunchConfigurationId,omitempty" name:"LaunchConfigurationId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type CreateLifecycleHookRequest ¶
type CreateLifecycleHookRequest struct { *tchttp.BaseRequest // Auto scaling group ID AutoScalingGroupId *string `json:"AutoScalingGroupId,omitempty" name:"AutoScalingGroupId"` // Lifecycle hook name, which can contain Chinese characters, letters, numbers, underscores (_), hyphens (-), and periods (.) with a maximum length of 128 bytes. LifecycleHookName *string `json:"LifecycleHookName,omitempty" name:"LifecycleHookName"` // Scenario for the lifecycle hook. Valid values: "INSTANCE_LAUNCHING" and "INSTANCE_TERMINATING" LifecycleTransition *string `json:"LifecycleTransition,omitempty" name:"LifecycleTransition"` // Defined actions when lifecycle hook times out. Valid values: "CONTINUE" and "ABANDON". Default value: "CONTINUE" DefaultResult *string `json:"DefaultResult,omitempty" name:"DefaultResult"` // The maximum length of time (in seconds) that can elapse before the lifecycle hook times out. Value range: 30-7200. Default value: 300 HeartbeatTimeout *int64 `json:"HeartbeatTimeout,omitempty" name:"HeartbeatTimeout"` // Additional information of a notification that Auto Scaling sends to targets. This parameter is set when you configure a notification (default value: ""). Up to 1024 characters are allowed. NotificationMetadata *string `json:"NotificationMetadata,omitempty" name:"NotificationMetadata"` // Notification target. `NotificationTarget` and `LifecycleCommand` cannot be specified at the same time. NotificationTarget *NotificationTarget `json:"NotificationTarget,omitempty" name:"NotificationTarget"` // The scenario where the lifecycle hook is applied. `EXTENSION`: the lifecycle hook will be triggered when AttachInstances, DetachInstances or RemoveInstaces is called. `NORMAL`: the lifecycle hook is not triggered by the above APIs. LifecycleTransitionType *string `json:"LifecycleTransitionType,omitempty" name:"LifecycleTransitionType"` // Remote command execution object. `NotificationTarget` and `LifecycleCommand` cannot be specified at the same time. LifecycleCommand *LifecycleCommand `json:"LifecycleCommand,omitempty" name:"LifecycleCommand"` }
func NewCreateLifecycleHookRequest ¶
func NewCreateLifecycleHookRequest() (request *CreateLifecycleHookRequest)
func (*CreateLifecycleHookRequest) FromJsonString ¶
func (r *CreateLifecycleHookRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateLifecycleHookRequest) ToJsonString ¶
func (r *CreateLifecycleHookRequest) ToJsonString() string
type CreateLifecycleHookRequestParams ¶
type CreateLifecycleHookRequestParams struct { // Auto scaling group ID AutoScalingGroupId *string `json:"AutoScalingGroupId,omitempty" name:"AutoScalingGroupId"` // Lifecycle hook name, which can contain Chinese characters, letters, numbers, underscores (_), hyphens (-), and periods (.) with a maximum length of 128 bytes. LifecycleHookName *string `json:"LifecycleHookName,omitempty" name:"LifecycleHookName"` // Scenario for the lifecycle hook. Valid values: "INSTANCE_LAUNCHING" and "INSTANCE_TERMINATING" LifecycleTransition *string `json:"LifecycleTransition,omitempty" name:"LifecycleTransition"` // Defined actions when lifecycle hook times out. Valid values: "CONTINUE" and "ABANDON". Default value: "CONTINUE" DefaultResult *string `json:"DefaultResult,omitempty" name:"DefaultResult"` // The maximum length of time (in seconds) that can elapse before the lifecycle hook times out. Value range: 30-7200. Default value: 300 HeartbeatTimeout *int64 `json:"HeartbeatTimeout,omitempty" name:"HeartbeatTimeout"` // Additional information of a notification that Auto Scaling sends to targets. This parameter is set when you configure a notification (default value: ""). Up to 1024 characters are allowed. NotificationMetadata *string `json:"NotificationMetadata,omitempty" name:"NotificationMetadata"` // Notification target. `NotificationTarget` and `LifecycleCommand` cannot be specified at the same time. NotificationTarget *NotificationTarget `json:"NotificationTarget,omitempty" name:"NotificationTarget"` // The scenario where the lifecycle hook is applied. `EXTENSION`: the lifecycle hook will be triggered when AttachInstances, DetachInstances or RemoveInstaces is called. `NORMAL`: the lifecycle hook is not triggered by the above APIs. LifecycleTransitionType *string `json:"LifecycleTransitionType,omitempty" name:"LifecycleTransitionType"` // Remote command execution object. `NotificationTarget` and `LifecycleCommand` cannot be specified at the same time. LifecycleCommand *LifecycleCommand `json:"LifecycleCommand,omitempty" name:"LifecycleCommand"` }
Predefined struct for user
type CreateLifecycleHookResponse ¶
type CreateLifecycleHookResponse struct { *tchttp.BaseResponse Response *CreateLifecycleHookResponseParams `json:"Response"` }
func NewCreateLifecycleHookResponse ¶
func NewCreateLifecycleHookResponse() (response *CreateLifecycleHookResponse)
func (*CreateLifecycleHookResponse) FromJsonString ¶
func (r *CreateLifecycleHookResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateLifecycleHookResponse) ToJsonString ¶
func (r *CreateLifecycleHookResponse) ToJsonString() string
type CreateLifecycleHookResponseParams ¶
type CreateLifecycleHookResponseParams struct { // Lifecycle hook ID LifecycleHookId *string `json:"LifecycleHookId,omitempty" name:"LifecycleHookId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type CreateNotificationConfigurationRequest ¶
type CreateNotificationConfigurationRequest struct { *tchttp.BaseRequest // Auto scaling group ID. AutoScalingGroupId *string `json:"AutoScalingGroupId,omitempty" name:"AutoScalingGroupId"` // Notification type, i.e., the set of types of notifications to be subscribed to. Value range: // <li>SCALE_OUT_SUCCESSFUL: scale-out succeeded</li> // <li>SCALE_OUT_FAILED: scale-out failed</li> // <li>SCALE_IN_SUCCESSFUL: scale-in succeeded</li> // <li>SCALE_IN_FAILED: scale-in failed</li> // <li>REPLACE_UNHEALTHY_INSTANCE_SUCCESSFUL: unhealthy instance replacement succeeded</li> // <li>REPLACE_UNHEALTHY_INSTANCE_FAILED: unhealthy instance replacement failed</li> NotificationTypes []*string `json:"NotificationTypes,omitempty" name:"NotificationTypes"` // Notification group ID, which is the set of user group IDs. You can query the user group IDs through the [ListGroups](https://intl.cloud.tencent.com/document/product/598/34589?from_cn_redirect=1) API. NotificationUserGroupIds []*string `json:"NotificationUserGroupIds,omitempty" name:"NotificationUserGroupIds"` // Notification receiver type. Valid values: // <br><li>USER_GROUP:User group // <br><li>CMQ_QUEUE:CMQ queue // <br><li>CMQ_TOPIC:CMQ topic // <br><li>TDMQ_CMQ_TOPIC:TDMQ CMQ topic // <br><li>TDMQ_CMQ_QUEUE:TDMQ CMQ queue // // Default value: `USER_GROUP`. TargetType *string `json:"TargetType,omitempty" name:"TargetType"` // CMQ queue name. This parameter is required when `TargetType` is `CMQ_QUEUE` or `TDMQ_CMQ_QUEUE`. QueueName *string `json:"QueueName,omitempty" name:"QueueName"` // CMQ topic name. This parameter is required when `TargetType` is `CMQ_TOPIC` or `TDMQ_CMQ_TOPIC`. TopicName *string `json:"TopicName,omitempty" name:"TopicName"` }
func NewCreateNotificationConfigurationRequest ¶
func NewCreateNotificationConfigurationRequest() (request *CreateNotificationConfigurationRequest)
func (*CreateNotificationConfigurationRequest) FromJsonString ¶
func (r *CreateNotificationConfigurationRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateNotificationConfigurationRequest) ToJsonString ¶
func (r *CreateNotificationConfigurationRequest) ToJsonString() string
type CreateNotificationConfigurationRequestParams ¶
type CreateNotificationConfigurationRequestParams struct { // Auto scaling group ID. AutoScalingGroupId *string `json:"AutoScalingGroupId,omitempty" name:"AutoScalingGroupId"` // Notification type, i.e., the set of types of notifications to be subscribed to. Value range: // <li>SCALE_OUT_SUCCESSFUL: scale-out succeeded</li> // <li>SCALE_OUT_FAILED: scale-out failed</li> // <li>SCALE_IN_SUCCESSFUL: scale-in succeeded</li> // <li>SCALE_IN_FAILED: scale-in failed</li> // <li>REPLACE_UNHEALTHY_INSTANCE_SUCCESSFUL: unhealthy instance replacement succeeded</li> // <li>REPLACE_UNHEALTHY_INSTANCE_FAILED: unhealthy instance replacement failed</li> NotificationTypes []*string `json:"NotificationTypes,omitempty" name:"NotificationTypes"` // Notification group ID, which is the set of user group IDs. You can query the user group IDs through the [ListGroups](https://intl.cloud.tencent.com/document/product/598/34589?from_cn_redirect=1) API. NotificationUserGroupIds []*string `json:"NotificationUserGroupIds,omitempty" name:"NotificationUserGroupIds"` // Notification receiver type. Valid values: // <br><li>USER_GROUP:User group // <br><li>CMQ_QUEUE:CMQ queue // <br><li>CMQ_TOPIC:CMQ topic // <br><li>TDMQ_CMQ_TOPIC:TDMQ CMQ topic // <br><li>TDMQ_CMQ_QUEUE:TDMQ CMQ queue // // Default value: `USER_GROUP`. TargetType *string `json:"TargetType,omitempty" name:"TargetType"` // CMQ queue name. This parameter is required when `TargetType` is `CMQ_QUEUE` or `TDMQ_CMQ_QUEUE`. QueueName *string `json:"QueueName,omitempty" name:"QueueName"` // CMQ topic name. This parameter is required when `TargetType` is `CMQ_TOPIC` or `TDMQ_CMQ_TOPIC`. TopicName *string `json:"TopicName,omitempty" name:"TopicName"` }
Predefined struct for user
type CreateNotificationConfigurationResponse ¶
type CreateNotificationConfigurationResponse struct { *tchttp.BaseResponse Response *CreateNotificationConfigurationResponseParams `json:"Response"` }
func NewCreateNotificationConfigurationResponse ¶
func NewCreateNotificationConfigurationResponse() (response *CreateNotificationConfigurationResponse)
func (*CreateNotificationConfigurationResponse) FromJsonString ¶
func (r *CreateNotificationConfigurationResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateNotificationConfigurationResponse) ToJsonString ¶
func (r *CreateNotificationConfigurationResponse) ToJsonString() string
type CreateNotificationConfigurationResponseParams ¶
type CreateNotificationConfigurationResponseParams struct { // Notification ID. AutoScalingNotificationId *string `json:"AutoScalingNotificationId,omitempty" name:"AutoScalingNotificationId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type CreateScalingPolicyRequest ¶
type CreateScalingPolicyRequest struct { *tchttp.BaseRequest // Auto scaling group ID. AutoScalingGroupId *string `json:"AutoScalingGroupId,omitempty" name:"AutoScalingGroupId"` // Alarm trigger policy name. ScalingPolicyName *string `json:"ScalingPolicyName,omitempty" name:"ScalingPolicyName"` // The method to adjust the desired number of instances after the alarm is triggered. Value range: <br><li>CHANGE_IN_CAPACITY: Increase or decrease the desired number of instances </li><li>EXACT_CAPACITY: Adjust to the specified desired number of instances </li> <li>PERCENT_CHANGE_IN_CAPACITY: Adjust the desired number of instances by percentage </li> AdjustmentType *string `json:"AdjustmentType,omitempty" name:"AdjustmentType"` // The adjusted value of desired number of instances after the alarm is triggered. Value range: <br><li>When AdjustmentType is CHANGE_IN_CAPACITY, if AdjustmentValue is a positive value, some new instances will be added after the alarm is triggered, and if it is a negative value, some existing instances will be removed after the alarm is triggered </li> <li> When AdjustmentType is EXACT_CAPACITY, the value of AdjustmentValue is the desired number of instances after the alarm is triggered, which should be equal to or greater than 0 </li> <li> When AdjustmentType is PERCENT_CHANGE_IN_CAPACITY, if AdjusmentValue (in %) is a positive value, new instances will be added by percentage after the alarm is triggered; if it is a negative value, existing instances will be removed by percentage after the alarm is triggered. AdjustmentValue *int64 `json:"AdjustmentValue,omitempty" name:"AdjustmentValue"` // Alarm monitoring metric. MetricAlarm *MetricAlarm `json:"MetricAlarm,omitempty" name:"MetricAlarm"` // Cooldown period in seconds. Default value: 300 seconds. Cooldown *uint64 `json:"Cooldown,omitempty" name:"Cooldown"` // This parameter is diused. Please use [CreateNotificationConfiguration](https://intl.cloud.tencent.com/document/api/377/33185?from_cn_redirect=1) instead. // Notification group ID, which is the set of user group IDs. NotificationUserGroupIds []*string `json:"NotificationUserGroupIds,omitempty" name:"NotificationUserGroupIds"` }
func NewCreateScalingPolicyRequest ¶
func NewCreateScalingPolicyRequest() (request *CreateScalingPolicyRequest)
func (*CreateScalingPolicyRequest) FromJsonString ¶
func (r *CreateScalingPolicyRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateScalingPolicyRequest) ToJsonString ¶
func (r *CreateScalingPolicyRequest) ToJsonString() string
type CreateScalingPolicyRequestParams ¶
type CreateScalingPolicyRequestParams struct { // Auto scaling group ID. AutoScalingGroupId *string `json:"AutoScalingGroupId,omitempty" name:"AutoScalingGroupId"` // Alarm trigger policy name. ScalingPolicyName *string `json:"ScalingPolicyName,omitempty" name:"ScalingPolicyName"` // The method to adjust the desired number of instances after the alarm is triggered. Value range: <br><li>CHANGE_IN_CAPACITY: Increase or decrease the desired number of instances </li><li>EXACT_CAPACITY: Adjust to the specified desired number of instances </li> <li>PERCENT_CHANGE_IN_CAPACITY: Adjust the desired number of instances by percentage </li> AdjustmentType *string `json:"AdjustmentType,omitempty" name:"AdjustmentType"` // The adjusted value of desired number of instances after the alarm is triggered. Value range: <br><li>When AdjustmentType is CHANGE_IN_CAPACITY, if AdjustmentValue is a positive value, some new instances will be added after the alarm is triggered, and if it is a negative value, some existing instances will be removed after the alarm is triggered </li> <li> When AdjustmentType is EXACT_CAPACITY, the value of AdjustmentValue is the desired number of instances after the alarm is triggered, which should be equal to or greater than 0 </li> <li> When AdjustmentType is PERCENT_CHANGE_IN_CAPACITY, if AdjusmentValue (in %) is a positive value, new instances will be added by percentage after the alarm is triggered; if it is a negative value, existing instances will be removed by percentage after the alarm is triggered. AdjustmentValue *int64 `json:"AdjustmentValue,omitempty" name:"AdjustmentValue"` // Alarm monitoring metric. MetricAlarm *MetricAlarm `json:"MetricAlarm,omitempty" name:"MetricAlarm"` // Cooldown period in seconds. Default value: 300 seconds. Cooldown *uint64 `json:"Cooldown,omitempty" name:"Cooldown"` // This parameter is diused. Please use [CreateNotificationConfiguration](https://intl.cloud.tencent.com/document/api/377/33185?from_cn_redirect=1) instead. // Notification group ID, which is the set of user group IDs. NotificationUserGroupIds []*string `json:"NotificationUserGroupIds,omitempty" name:"NotificationUserGroupIds"` }
Predefined struct for user
type CreateScalingPolicyResponse ¶
type CreateScalingPolicyResponse struct { *tchttp.BaseResponse Response *CreateScalingPolicyResponseParams `json:"Response"` }
func NewCreateScalingPolicyResponse ¶
func NewCreateScalingPolicyResponse() (response *CreateScalingPolicyResponse)
func (*CreateScalingPolicyResponse) FromJsonString ¶
func (r *CreateScalingPolicyResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateScalingPolicyResponse) ToJsonString ¶
func (r *CreateScalingPolicyResponse) ToJsonString() string
type CreateScalingPolicyResponseParams ¶
type CreateScalingPolicyResponseParams struct { // Alarm trigger policy ID. AutoScalingPolicyId *string `json:"AutoScalingPolicyId,omitempty" name:"AutoScalingPolicyId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type CreateScheduledActionRequest ¶
type CreateScheduledActionRequest struct { *tchttp.BaseRequest // Auto scaling group ID AutoScalingGroupId *string `json:"AutoScalingGroupId,omitempty" name:"AutoScalingGroupId"` // Scheduled task name, which can only contain letters, numbers, underscores, hyphens ("-"), and decimal points with a maximum length of 60 bytes and must be unique in an auto scaling group. ScheduledActionName *string `json:"ScheduledActionName,omitempty" name:"ScheduledActionName"` // The maximum number of instances set for the auto scaling group when the scheduled task is triggered. MaxSize *uint64 `json:"MaxSize,omitempty" name:"MaxSize"` // The minimum number of instances set for the auto scaling group when the scheduled task is triggered. MinSize *uint64 `json:"MinSize,omitempty" name:"MinSize"` // The desired number of instances set for the auto scaling group when the scheduled task is triggered. DesiredCapacity *uint64 `json:"DesiredCapacity,omitempty" name:"DesiredCapacity"` // Initial triggered time of the scheduled task. The value is in `Beijing time` (UTC+8) in the format of `YYYY-MM-DDThh:mm:ss+08:00` according to the `ISO8601` standard. StartTime *string `json:"StartTime,omitempty" name:"StartTime"` // End time of the scheduled task. The value is in `Beijing time` (UTC+8) in the format of `YYYY-MM-DDThh:mm:ss+08:00` according to the `ISO8601` standard. <br><br>This parameter and `Recurrence` need to be specified at the same time. After the end time, the scheduled task will no longer take effect. EndTime *string `json:"EndTime,omitempty" name:"EndTime"` // Repeating mode of the scheduled task, which is in standard cron format. <br><br>This parameter and `EndTime` need to be specified at the same time. Recurrence *string `json:"Recurrence,omitempty" name:"Recurrence"` }
func NewCreateScheduledActionRequest ¶
func NewCreateScheduledActionRequest() (request *CreateScheduledActionRequest)
func (*CreateScheduledActionRequest) FromJsonString ¶
func (r *CreateScheduledActionRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateScheduledActionRequest) ToJsonString ¶
func (r *CreateScheduledActionRequest) ToJsonString() string
type CreateScheduledActionRequestParams ¶
type CreateScheduledActionRequestParams struct { // Auto scaling group ID AutoScalingGroupId *string `json:"AutoScalingGroupId,omitempty" name:"AutoScalingGroupId"` // Scheduled task name, which can only contain letters, numbers, underscores, hyphens ("-"), and decimal points with a maximum length of 60 bytes and must be unique in an auto scaling group. ScheduledActionName *string `json:"ScheduledActionName,omitempty" name:"ScheduledActionName"` // The maximum number of instances set for the auto scaling group when the scheduled task is triggered. MaxSize *uint64 `json:"MaxSize,omitempty" name:"MaxSize"` // The minimum number of instances set for the auto scaling group when the scheduled task is triggered. MinSize *uint64 `json:"MinSize,omitempty" name:"MinSize"` // The desired number of instances set for the auto scaling group when the scheduled task is triggered. DesiredCapacity *uint64 `json:"DesiredCapacity,omitempty" name:"DesiredCapacity"` // Initial triggered time of the scheduled task. The value is in `Beijing time` (UTC+8) in the format of `YYYY-MM-DDThh:mm:ss+08:00` according to the `ISO8601` standard. StartTime *string `json:"StartTime,omitempty" name:"StartTime"` // End time of the scheduled task. The value is in `Beijing time` (UTC+8) in the format of `YYYY-MM-DDThh:mm:ss+08:00` according to the `ISO8601` standard. <br><br>This parameter and `Recurrence` need to be specified at the same time. After the end time, the scheduled task will no longer take effect. EndTime *string `json:"EndTime,omitempty" name:"EndTime"` // Repeating mode of the scheduled task, which is in standard cron format. <br><br>This parameter and `EndTime` need to be specified at the same time. Recurrence *string `json:"Recurrence,omitempty" name:"Recurrence"` }
Predefined struct for user
type CreateScheduledActionResponse ¶
type CreateScheduledActionResponse struct { *tchttp.BaseResponse Response *CreateScheduledActionResponseParams `json:"Response"` }
func NewCreateScheduledActionResponse ¶
func NewCreateScheduledActionResponse() (response *CreateScheduledActionResponse)
func (*CreateScheduledActionResponse) FromJsonString ¶
func (r *CreateScheduledActionResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateScheduledActionResponse) ToJsonString ¶
func (r *CreateScheduledActionResponse) ToJsonString() string
type CreateScheduledActionResponseParams ¶
type CreateScheduledActionResponseParams struct { // Scheduled task ID ScheduledActionId *string `json:"ScheduledActionId,omitempty" name:"ScheduledActionId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DataDisk ¶
type DataDisk struct { // Data disk type. See [Cloud Disk Types](https://intl.cloud.tencent.com/document/product/362/31636). Valid values:<br><li>`LOCAL_BASIC`: Local disk<br><li>`LOCAL_SSD`: Local SSD disk<br><li>`CLOUD_BASIC`: HDD cloud disk<br><li>`CLOUD_PREMIUM`: Premium cloud storage<br><li>`CLOUD_SSD`: SSD cloud disk<br><li>`CLOUD_HSSD`: Enhanced SSD<br><li>`CLOUD_TSSD`: Tremendous SSD<br><br>The default value should be the same as the `DiskType` field under `SystemDisk`. // Note: This field may return `null`, indicating that no valid value can be obtained. DiskType *string `json:"DiskType,omitempty" name:"DiskType"` // Data disk size (in GB). The minimum adjustment increment is 10 GB. The value range varies by data disk type. For more information on limits, see [CVM Instance Configuration](https://intl.cloud.tencent.com/document/product/213/2177?from_cn_redirect=1). The default value is 0, indicating that no data disk is purchased. For more information, see the product documentation. // Note: This field may return null, indicating that no valid values can be obtained. DiskSize *uint64 `json:"DiskSize,omitempty" name:"DiskSize"` // Data disk snapshot ID, such as `snap-l8psqwnt`. // Note: This field may return null, indicating that no valid values can be obtained. SnapshotId *string `json:"SnapshotId,omitempty" name:"SnapshotId"` // Specifies whether the data disk is terminated along with the termination of the associated CVM instance. Values: <br><li>`TRUE` (only available for pay-as-you-go cloud disks that are billed by hour) and `FALSE`. // Note: this field may return `null`, indicating that no valid value can be obtained. DeleteWithInstance *bool `json:"DeleteWithInstance,omitempty" name:"DeleteWithInstance"` // Data disk encryption. Valid values: <br><li>`TRUE`: Encrypted<br><li>`FALSE`: Not encrypted // Note: This field may return `null`, indicating that no valid value can be obtained. Encrypt *bool `json:"Encrypt,omitempty" name:"Encrypt"` // Cloud disk performance (MB/s). This parameter is used to purchase extra performance for the cloud disk. For details on the feature and limits, see [Enhanced SSD Performance](https://intl.cloud.tencent.com/document/product/362/51896?from_cn_redirect=1#. E5.A2.9E.E5.BC.BA.E5.9E.8B-ssd-.E4.BA.91.E7.A1.AC.E7.9B.98.E9.A2.9D.E5.A4.96 .E6.80.A7.E8.83.BD). // This feature is only available to enhanced SSD (`CLOUD_HSSD`) and tremendous SSD (`CLOUD_TSSD`) disks with a capacity greater than 460 GB. // Note: This field may return `null`, indicating that no valid value can be obtained. ThroughputPerformance *uint64 `json:"ThroughputPerformance,omitempty" name:"ThroughputPerformance"` }
type DeleteAutoScalingGroupRequest ¶
type DeleteAutoScalingGroupRequest struct { *tchttp.BaseRequest // Auto scaling group ID AutoScalingGroupId *string `json:"AutoScalingGroupId,omitempty" name:"AutoScalingGroupId"` }
func NewDeleteAutoScalingGroupRequest ¶
func NewDeleteAutoScalingGroupRequest() (request *DeleteAutoScalingGroupRequest)
func (*DeleteAutoScalingGroupRequest) FromJsonString ¶
func (r *DeleteAutoScalingGroupRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteAutoScalingGroupRequest) ToJsonString ¶
func (r *DeleteAutoScalingGroupRequest) ToJsonString() string
type DeleteAutoScalingGroupRequestParams ¶
type DeleteAutoScalingGroupRequestParams struct { // Auto scaling group ID AutoScalingGroupId *string `json:"AutoScalingGroupId,omitempty" name:"AutoScalingGroupId"` }
Predefined struct for user
type DeleteAutoScalingGroupResponse ¶
type DeleteAutoScalingGroupResponse struct { *tchttp.BaseResponse Response *DeleteAutoScalingGroupResponseParams `json:"Response"` }
func NewDeleteAutoScalingGroupResponse ¶
func NewDeleteAutoScalingGroupResponse() (response *DeleteAutoScalingGroupResponse)
func (*DeleteAutoScalingGroupResponse) FromJsonString ¶
func (r *DeleteAutoScalingGroupResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteAutoScalingGroupResponse) ToJsonString ¶
func (r *DeleteAutoScalingGroupResponse) ToJsonString() string
type DeleteAutoScalingGroupResponseParams ¶
type DeleteAutoScalingGroupResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DeleteLaunchConfigurationRequest ¶
type DeleteLaunchConfigurationRequest struct { *tchttp.BaseRequest // ID of the launch configuration to be deleted. LaunchConfigurationId *string `json:"LaunchConfigurationId,omitempty" name:"LaunchConfigurationId"` }
func NewDeleteLaunchConfigurationRequest ¶
func NewDeleteLaunchConfigurationRequest() (request *DeleteLaunchConfigurationRequest)
func (*DeleteLaunchConfigurationRequest) FromJsonString ¶
func (r *DeleteLaunchConfigurationRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteLaunchConfigurationRequest) ToJsonString ¶
func (r *DeleteLaunchConfigurationRequest) ToJsonString() string
type DeleteLaunchConfigurationRequestParams ¶
type DeleteLaunchConfigurationRequestParams struct { // ID of the launch configuration to be deleted. LaunchConfigurationId *string `json:"LaunchConfigurationId,omitempty" name:"LaunchConfigurationId"` }
Predefined struct for user
type DeleteLaunchConfigurationResponse ¶
type DeleteLaunchConfigurationResponse struct { *tchttp.BaseResponse Response *DeleteLaunchConfigurationResponseParams `json:"Response"` }
func NewDeleteLaunchConfigurationResponse ¶
func NewDeleteLaunchConfigurationResponse() (response *DeleteLaunchConfigurationResponse)
func (*DeleteLaunchConfigurationResponse) FromJsonString ¶
func (r *DeleteLaunchConfigurationResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteLaunchConfigurationResponse) ToJsonString ¶
func (r *DeleteLaunchConfigurationResponse) ToJsonString() string
type DeleteLaunchConfigurationResponseParams ¶
type DeleteLaunchConfigurationResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DeleteLifecycleHookRequest ¶
type DeleteLifecycleHookRequest struct { *tchttp.BaseRequest // Lifecycle hook ID LifecycleHookId *string `json:"LifecycleHookId,omitempty" name:"LifecycleHookId"` }
func NewDeleteLifecycleHookRequest ¶
func NewDeleteLifecycleHookRequest() (request *DeleteLifecycleHookRequest)
func (*DeleteLifecycleHookRequest) FromJsonString ¶
func (r *DeleteLifecycleHookRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteLifecycleHookRequest) ToJsonString ¶
func (r *DeleteLifecycleHookRequest) ToJsonString() string
type DeleteLifecycleHookRequestParams ¶
type DeleteLifecycleHookRequestParams struct { // Lifecycle hook ID LifecycleHookId *string `json:"LifecycleHookId,omitempty" name:"LifecycleHookId"` }
Predefined struct for user
type DeleteLifecycleHookResponse ¶
type DeleteLifecycleHookResponse struct { *tchttp.BaseResponse Response *DeleteLifecycleHookResponseParams `json:"Response"` }
func NewDeleteLifecycleHookResponse ¶
func NewDeleteLifecycleHookResponse() (response *DeleteLifecycleHookResponse)
func (*DeleteLifecycleHookResponse) FromJsonString ¶
func (r *DeleteLifecycleHookResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteLifecycleHookResponse) ToJsonString ¶
func (r *DeleteLifecycleHookResponse) ToJsonString() string
type DeleteLifecycleHookResponseParams ¶
type DeleteLifecycleHookResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DeleteNotificationConfigurationRequest ¶
type DeleteNotificationConfigurationRequest struct { *tchttp.BaseRequest // ID of the notification to be deleted. AutoScalingNotificationId *string `json:"AutoScalingNotificationId,omitempty" name:"AutoScalingNotificationId"` }
func NewDeleteNotificationConfigurationRequest ¶
func NewDeleteNotificationConfigurationRequest() (request *DeleteNotificationConfigurationRequest)
func (*DeleteNotificationConfigurationRequest) FromJsonString ¶
func (r *DeleteNotificationConfigurationRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteNotificationConfigurationRequest) ToJsonString ¶
func (r *DeleteNotificationConfigurationRequest) ToJsonString() string
type DeleteNotificationConfigurationRequestParams ¶
type DeleteNotificationConfigurationRequestParams struct { // ID of the notification to be deleted. AutoScalingNotificationId *string `json:"AutoScalingNotificationId,omitempty" name:"AutoScalingNotificationId"` }
Predefined struct for user
type DeleteNotificationConfigurationResponse ¶
type DeleteNotificationConfigurationResponse struct { *tchttp.BaseResponse Response *DeleteNotificationConfigurationResponseParams `json:"Response"` }
func NewDeleteNotificationConfigurationResponse ¶
func NewDeleteNotificationConfigurationResponse() (response *DeleteNotificationConfigurationResponse)
func (*DeleteNotificationConfigurationResponse) FromJsonString ¶
func (r *DeleteNotificationConfigurationResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteNotificationConfigurationResponse) ToJsonString ¶
func (r *DeleteNotificationConfigurationResponse) ToJsonString() string
type DeleteNotificationConfigurationResponseParams ¶
type DeleteNotificationConfigurationResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DeleteScalingPolicyRequest ¶
type DeleteScalingPolicyRequest struct { *tchttp.BaseRequest // ID of the alarm policy to be deleted. AutoScalingPolicyId *string `json:"AutoScalingPolicyId,omitempty" name:"AutoScalingPolicyId"` }
func NewDeleteScalingPolicyRequest ¶
func NewDeleteScalingPolicyRequest() (request *DeleteScalingPolicyRequest)
func (*DeleteScalingPolicyRequest) FromJsonString ¶
func (r *DeleteScalingPolicyRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteScalingPolicyRequest) ToJsonString ¶
func (r *DeleteScalingPolicyRequest) ToJsonString() string
type DeleteScalingPolicyRequestParams ¶
type DeleteScalingPolicyRequestParams struct { // ID of the alarm policy to be deleted. AutoScalingPolicyId *string `json:"AutoScalingPolicyId,omitempty" name:"AutoScalingPolicyId"` }
Predefined struct for user
type DeleteScalingPolicyResponse ¶
type DeleteScalingPolicyResponse struct { *tchttp.BaseResponse Response *DeleteScalingPolicyResponseParams `json:"Response"` }
func NewDeleteScalingPolicyResponse ¶
func NewDeleteScalingPolicyResponse() (response *DeleteScalingPolicyResponse)
func (*DeleteScalingPolicyResponse) FromJsonString ¶
func (r *DeleteScalingPolicyResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteScalingPolicyResponse) ToJsonString ¶
func (r *DeleteScalingPolicyResponse) ToJsonString() string
type DeleteScalingPolicyResponseParams ¶
type DeleteScalingPolicyResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DeleteScheduledActionRequest ¶
type DeleteScheduledActionRequest struct { *tchttp.BaseRequest // ID of the scheduled task to be deleted. ScheduledActionId *string `json:"ScheduledActionId,omitempty" name:"ScheduledActionId"` }
func NewDeleteScheduledActionRequest ¶
func NewDeleteScheduledActionRequest() (request *DeleteScheduledActionRequest)
func (*DeleteScheduledActionRequest) FromJsonString ¶
func (r *DeleteScheduledActionRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteScheduledActionRequest) ToJsonString ¶
func (r *DeleteScheduledActionRequest) ToJsonString() string
type DeleteScheduledActionRequestParams ¶
type DeleteScheduledActionRequestParams struct { // ID of the scheduled task to be deleted. ScheduledActionId *string `json:"ScheduledActionId,omitempty" name:"ScheduledActionId"` }
Predefined struct for user
type DeleteScheduledActionResponse ¶
type DeleteScheduledActionResponse struct { *tchttp.BaseResponse Response *DeleteScheduledActionResponseParams `json:"Response"` }
func NewDeleteScheduledActionResponse ¶
func NewDeleteScheduledActionResponse() (response *DeleteScheduledActionResponse)
func (*DeleteScheduledActionResponse) FromJsonString ¶
func (r *DeleteScheduledActionResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteScheduledActionResponse) ToJsonString ¶
func (r *DeleteScheduledActionResponse) ToJsonString() string
type DeleteScheduledActionResponseParams ¶
type DeleteScheduledActionResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DescribeAccountLimitsRequest ¶
type DescribeAccountLimitsRequest struct {
*tchttp.BaseRequest
}
func NewDescribeAccountLimitsRequest ¶
func NewDescribeAccountLimitsRequest() (request *DescribeAccountLimitsRequest)
func (*DescribeAccountLimitsRequest) FromJsonString ¶
func (r *DescribeAccountLimitsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeAccountLimitsRequest) ToJsonString ¶
func (r *DescribeAccountLimitsRequest) ToJsonString() string
type DescribeAccountLimitsRequestParams ¶
type DescribeAccountLimitsRequestParams struct { }
Predefined struct for user
type DescribeAccountLimitsResponse ¶
type DescribeAccountLimitsResponse struct { *tchttp.BaseResponse Response *DescribeAccountLimitsResponseParams `json:"Response"` }
func NewDescribeAccountLimitsResponse ¶
func NewDescribeAccountLimitsResponse() (response *DescribeAccountLimitsResponse)
func (*DescribeAccountLimitsResponse) FromJsonString ¶
func (r *DescribeAccountLimitsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeAccountLimitsResponse) ToJsonString ¶
func (r *DescribeAccountLimitsResponse) ToJsonString() string
type DescribeAccountLimitsResponseParams ¶
type DescribeAccountLimitsResponseParams struct { // Maximum number of launch configurations allowed for creation by the user account MaxNumberOfLaunchConfigurations *int64 `json:"MaxNumberOfLaunchConfigurations,omitempty" name:"MaxNumberOfLaunchConfigurations"` // Current number of launch configurations under the user account NumberOfLaunchConfigurations *int64 `json:"NumberOfLaunchConfigurations,omitempty" name:"NumberOfLaunchConfigurations"` // Maximum number of auto scaling groups allowed for creation by the user account MaxNumberOfAutoScalingGroups *int64 `json:"MaxNumberOfAutoScalingGroups,omitempty" name:"MaxNumberOfAutoScalingGroups"` // Current number of auto scaling groups under the user account NumberOfAutoScalingGroups *int64 `json:"NumberOfAutoScalingGroups,omitempty" name:"NumberOfAutoScalingGroups"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DescribeAutoScalingActivitiesRequest ¶
type DescribeAutoScalingActivitiesRequest struct { *tchttp.BaseRequest // Queries by one or more scaling activity IDs in the format of `asa-5l2ejpfo`. The maximum quantity per request is 100. This parameter does not support specifying both `ActivityIds` and `Filters` at the same time. ActivityIds []*string `json:"ActivityIds,omitempty" name:"ActivityIds"` // Filter. // <li> auto-scaling-group-id - String - Required: No - (Filter) Filter by auto scaling group ID.</li> // <li> activity-status-code - String - Required: No - (Filter) Filter by scaling activity status . (INIT: initializing | RUNNING: running | SUCCESSFUL: succeeded | PARTIALLY_SUCCESSFUL: partially succeeded | FAILED: failed | CANCELLED: canceled)</li> // <li> activity-type - String - Required: No - (Filter) Filter by scaling activity type. (SCALE_OUT: scale-out | SCALE_IN: scale-in | ATTACH_INSTANCES: adding an instance | REMOVE_INSTANCES: terminating an instance | DETACH_INSTANCES: removing an instance | TERMINATE_INSTANCES_UNEXPECTEDLY: terminating an instance in the CVM console | REPLACE_UNHEALTHY_INSTANCE: replacing an unhealthy instance | UPDATE_LOAD_BALANCERS: updating a load balancer)</li> // <li> activity-id - String - Required: No - (Filter) Filter by scaling activity ID.</li> // The maximum number of `Filters` per request is 10. The upper limit for `Filter.Values` is 5. This parameter does not support specifying both `ActivityIds` and `Filters` at the same time. Filters []*Filter `json:"Filters,omitempty" name:"Filters"` // Number of returned results. Default value: 20. Maximum value: 100. For more information on `Limit`, see the relevant section in the API [overview](https://intl.cloud.tencent.com/document/api/213/15688?from_cn_redirect=1). Limit *uint64 `json:"Limit,omitempty" name:"Limit"` // Offset. Default value: 0. For more information on `Offset`, see the relevant section in the API [overview](https://intl.cloud.tencent.com/document/api/213/15688?from_cn_redirect=1). Offset *uint64 `json:"Offset,omitempty" name:"Offset"` // The earliest start time of the scaling activity, which will be ignored if ActivityIds is specified. The value is in `UTC time` in the format of `YYYY-MM-DDThh:mm:ssZ` according to the `ISO8601` standard. StartTime *string `json:"StartTime,omitempty" name:"StartTime"` // The latest end time of the scaling activity, which will be ignored if ActivityIds is specified. The value is in `UTC time` in the format of `YYYY-MM-DDThh:mm:ssZ` according to the `ISO8601` standard. EndTime *string `json:"EndTime,omitempty" name:"EndTime"` }
func NewDescribeAutoScalingActivitiesRequest ¶
func NewDescribeAutoScalingActivitiesRequest() (request *DescribeAutoScalingActivitiesRequest)
func (*DescribeAutoScalingActivitiesRequest) FromJsonString ¶
func (r *DescribeAutoScalingActivitiesRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeAutoScalingActivitiesRequest) ToJsonString ¶
func (r *DescribeAutoScalingActivitiesRequest) ToJsonString() string
type DescribeAutoScalingActivitiesRequestParams ¶
type DescribeAutoScalingActivitiesRequestParams struct { // Queries by one or more scaling activity IDs in the format of `asa-5l2ejpfo`. The maximum quantity per request is 100. This parameter does not support specifying both `ActivityIds` and `Filters` at the same time. ActivityIds []*string `json:"ActivityIds,omitempty" name:"ActivityIds"` // Filter. // <li> auto-scaling-group-id - String - Required: No - (Filter) Filter by auto scaling group ID.</li> // <li> activity-status-code - String - Required: No - (Filter) Filter by scaling activity status . (INIT: initializing | RUNNING: running | SUCCESSFUL: succeeded | PARTIALLY_SUCCESSFUL: partially succeeded | FAILED: failed | CANCELLED: canceled)</li> // <li> activity-type - String - Required: No - (Filter) Filter by scaling activity type. (SCALE_OUT: scale-out | SCALE_IN: scale-in | ATTACH_INSTANCES: adding an instance | REMOVE_INSTANCES: terminating an instance | DETACH_INSTANCES: removing an instance | TERMINATE_INSTANCES_UNEXPECTEDLY: terminating an instance in the CVM console | REPLACE_UNHEALTHY_INSTANCE: replacing an unhealthy instance | UPDATE_LOAD_BALANCERS: updating a load balancer)</li> // <li> activity-id - String - Required: No - (Filter) Filter by scaling activity ID.</li> // The maximum number of `Filters` per request is 10. The upper limit for `Filter.Values` is 5. This parameter does not support specifying both `ActivityIds` and `Filters` at the same time. Filters []*Filter `json:"Filters,omitempty" name:"Filters"` // Number of returned results. Default value: 20. Maximum value: 100. For more information on `Limit`, see the relevant section in the API [overview](https://intl.cloud.tencent.com/document/api/213/15688?from_cn_redirect=1). Limit *uint64 `json:"Limit,omitempty" name:"Limit"` // Offset. Default value: 0. For more information on `Offset`, see the relevant section in the API [overview](https://intl.cloud.tencent.com/document/api/213/15688?from_cn_redirect=1). Offset *uint64 `json:"Offset,omitempty" name:"Offset"` // The earliest start time of the scaling activity, which will be ignored if ActivityIds is specified. The value is in `UTC time` in the format of `YYYY-MM-DDThh:mm:ssZ` according to the `ISO8601` standard. StartTime *string `json:"StartTime,omitempty" name:"StartTime"` // The latest end time of the scaling activity, which will be ignored if ActivityIds is specified. The value is in `UTC time` in the format of `YYYY-MM-DDThh:mm:ssZ` according to the `ISO8601` standard. EndTime *string `json:"EndTime,omitempty" name:"EndTime"` }
Predefined struct for user
type DescribeAutoScalingActivitiesResponse ¶
type DescribeAutoScalingActivitiesResponse struct { *tchttp.BaseResponse Response *DescribeAutoScalingActivitiesResponseParams `json:"Response"` }
func NewDescribeAutoScalingActivitiesResponse ¶
func NewDescribeAutoScalingActivitiesResponse() (response *DescribeAutoScalingActivitiesResponse)
func (*DescribeAutoScalingActivitiesResponse) FromJsonString ¶
func (r *DescribeAutoScalingActivitiesResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeAutoScalingActivitiesResponse) ToJsonString ¶
func (r *DescribeAutoScalingActivitiesResponse) ToJsonString() string
type DescribeAutoScalingActivitiesResponseParams ¶
type DescribeAutoScalingActivitiesResponseParams struct { // Number of eligible scaling activities. TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` // Information set of eligible scaling activities. ActivitySet []*Activity `json:"ActivitySet,omitempty" name:"ActivitySet"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DescribeAutoScalingAdvicesRequest ¶
type DescribeAutoScalingAdvicesRequest struct { *tchttp.BaseRequest // List of scaling groups to be queried. Upper limit: 100. AutoScalingGroupIds []*string `json:"AutoScalingGroupIds,omitempty" name:"AutoScalingGroupIds"` }
func NewDescribeAutoScalingAdvicesRequest ¶
func NewDescribeAutoScalingAdvicesRequest() (request *DescribeAutoScalingAdvicesRequest)
func (*DescribeAutoScalingAdvicesRequest) FromJsonString ¶
func (r *DescribeAutoScalingAdvicesRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeAutoScalingAdvicesRequest) ToJsonString ¶
func (r *DescribeAutoScalingAdvicesRequest) ToJsonString() string
type DescribeAutoScalingAdvicesRequestParams ¶
type DescribeAutoScalingAdvicesRequestParams struct { // List of scaling groups to be queried. Upper limit: 100. AutoScalingGroupIds []*string `json:"AutoScalingGroupIds,omitempty" name:"AutoScalingGroupIds"` }
Predefined struct for user
type DescribeAutoScalingAdvicesResponse ¶
type DescribeAutoScalingAdvicesResponse struct { *tchttp.BaseResponse Response *DescribeAutoScalingAdvicesResponseParams `json:"Response"` }
func NewDescribeAutoScalingAdvicesResponse ¶
func NewDescribeAutoScalingAdvicesResponse() (response *DescribeAutoScalingAdvicesResponse)
func (*DescribeAutoScalingAdvicesResponse) FromJsonString ¶
func (r *DescribeAutoScalingAdvicesResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeAutoScalingAdvicesResponse) ToJsonString ¶
func (r *DescribeAutoScalingAdvicesResponse) ToJsonString() string
type DescribeAutoScalingAdvicesResponseParams ¶
type DescribeAutoScalingAdvicesResponseParams struct { // A collection of suggestions for scaling group configurations. AutoScalingAdviceSet []*AutoScalingAdvice `json:"AutoScalingAdviceSet,omitempty" name:"AutoScalingAdviceSet"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DescribeAutoScalingGroupLastActivitiesRequest ¶
type DescribeAutoScalingGroupLastActivitiesRequest struct { *tchttp.BaseRequest // ID list of an auto scaling group. AutoScalingGroupIds []*string `json:"AutoScalingGroupIds,omitempty" name:"AutoScalingGroupIds"` }
func NewDescribeAutoScalingGroupLastActivitiesRequest ¶
func NewDescribeAutoScalingGroupLastActivitiesRequest() (request *DescribeAutoScalingGroupLastActivitiesRequest)
func (*DescribeAutoScalingGroupLastActivitiesRequest) FromJsonString ¶
func (r *DescribeAutoScalingGroupLastActivitiesRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeAutoScalingGroupLastActivitiesRequest) ToJsonString ¶
func (r *DescribeAutoScalingGroupLastActivitiesRequest) ToJsonString() string
type DescribeAutoScalingGroupLastActivitiesRequestParams ¶
type DescribeAutoScalingGroupLastActivitiesRequestParams struct { // ID list of an auto scaling group. AutoScalingGroupIds []*string `json:"AutoScalingGroupIds,omitempty" name:"AutoScalingGroupIds"` }
Predefined struct for user
type DescribeAutoScalingGroupLastActivitiesResponse ¶
type DescribeAutoScalingGroupLastActivitiesResponse struct { *tchttp.BaseResponse Response *DescribeAutoScalingGroupLastActivitiesResponseParams `json:"Response"` }
func NewDescribeAutoScalingGroupLastActivitiesResponse ¶
func NewDescribeAutoScalingGroupLastActivitiesResponse() (response *DescribeAutoScalingGroupLastActivitiesResponse)
func (*DescribeAutoScalingGroupLastActivitiesResponse) FromJsonString ¶
func (r *DescribeAutoScalingGroupLastActivitiesResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeAutoScalingGroupLastActivitiesResponse) ToJsonString ¶
func (r *DescribeAutoScalingGroupLastActivitiesResponse) ToJsonString() string
type DescribeAutoScalingGroupLastActivitiesResponseParams ¶
type DescribeAutoScalingGroupLastActivitiesResponseParams struct { // Information set of eligible scaling activities. Scaling groups without scaling activities are not returned. For example, if there are 50 auto scaling group IDs but only 45 records are returned, it indicates that 5 of the auto scaling groups do not have scaling activities. ActivitySet []*Activity `json:"ActivitySet,omitempty" name:"ActivitySet"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DescribeAutoScalingGroupsRequest ¶
type DescribeAutoScalingGroupsRequest struct { *tchttp.BaseRequest // Queries by one or more auto scaling group IDs in the format of `asg-nkdwoui0`. The maximum quantity per request is 100. This parameter does not support specifying both `AutoScalingGroupIds` and `Filters` at the same time. AutoScalingGroupIds []*string `json:"AutoScalingGroupIds,omitempty" name:"AutoScalingGroupIds"` // Filters. // <li> auto-scaling-group-id - String - Required: No - (Filter) Filter by auto scaling group ID.</li> // <li> auto-scaling-group-name - String - Required: No - (Filter) Filter by auto scaling group name.</li> // <li> vague-auto-scaling-group-name - String - Required: No - (Filter) Fuzzy search by auto scaling group name.</li> // <li> launch-configuration-id - String - Required: No - (Filter) Filter by launch configuration ID.</li> // <li> tag-key - String - Required: No - (Filter) Filter by tag key.</li> // <li> tag-value - String - Required: No - (Filter) Filter by tag value.</li> // <li> tag:tag-key - String - Required: No - (Filter) Filter by tag key-value pair. The tag-key should be replaced with a specified tag key. For more information, see example 2.</li> // The maximum number of `Filters` in each request is 10. The upper limit for `Filter.Values` is 5. This parameter cannot specify `AutoScalingGroupIds` and `Filters` at the same time. Filters []*Filter `json:"Filters,omitempty" name:"Filters"` // Number of returned results. Default value: 20. Maximum value: 100. For more information on `Limit`, see the relevant section in the API [overview](https://intl.cloud.tencent.com/document/api/213/15688?from_cn_redirect=1). Limit *uint64 `json:"Limit,omitempty" name:"Limit"` // Offset. Default value: 0. For more information on `Offset`, see the relevant section in the API [overview](https://intl.cloud.tencent.com/document/api/213/15688?from_cn_redirect=1). Offset *uint64 `json:"Offset,omitempty" name:"Offset"` }
func NewDescribeAutoScalingGroupsRequest ¶
func NewDescribeAutoScalingGroupsRequest() (request *DescribeAutoScalingGroupsRequest)
func (*DescribeAutoScalingGroupsRequest) FromJsonString ¶
func (r *DescribeAutoScalingGroupsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeAutoScalingGroupsRequest) ToJsonString ¶
func (r *DescribeAutoScalingGroupsRequest) ToJsonString() string
type DescribeAutoScalingGroupsRequestParams ¶
type DescribeAutoScalingGroupsRequestParams struct { // Queries by one or more auto scaling group IDs in the format of `asg-nkdwoui0`. The maximum quantity per request is 100. This parameter does not support specifying both `AutoScalingGroupIds` and `Filters` at the same time. AutoScalingGroupIds []*string `json:"AutoScalingGroupIds,omitempty" name:"AutoScalingGroupIds"` // Filters. // <li> auto-scaling-group-id - String - Required: No - (Filter) Filter by auto scaling group ID.</li> // <li> auto-scaling-group-name - String - Required: No - (Filter) Filter by auto scaling group name.</li> // <li> vague-auto-scaling-group-name - String - Required: No - (Filter) Fuzzy search by auto scaling group name.</li> // <li> launch-configuration-id - String - Required: No - (Filter) Filter by launch configuration ID.</li> // <li> tag-key - String - Required: No - (Filter) Filter by tag key.</li> // <li> tag-value - String - Required: No - (Filter) Filter by tag value.</li> // <li> tag:tag-key - String - Required: No - (Filter) Filter by tag key-value pair. The tag-key should be replaced with a specified tag key. For more information, see example 2.</li> // The maximum number of `Filters` in each request is 10. The upper limit for `Filter.Values` is 5. This parameter cannot specify `AutoScalingGroupIds` and `Filters` at the same time. Filters []*Filter `json:"Filters,omitempty" name:"Filters"` // Number of returned results. Default value: 20. Maximum value: 100. For more information on `Limit`, see the relevant section in the API [overview](https://intl.cloud.tencent.com/document/api/213/15688?from_cn_redirect=1). Limit *uint64 `json:"Limit,omitempty" name:"Limit"` // Offset. Default value: 0. For more information on `Offset`, see the relevant section in the API [overview](https://intl.cloud.tencent.com/document/api/213/15688?from_cn_redirect=1). Offset *uint64 `json:"Offset,omitempty" name:"Offset"` }
Predefined struct for user
type DescribeAutoScalingGroupsResponse ¶
type DescribeAutoScalingGroupsResponse struct { *tchttp.BaseResponse Response *DescribeAutoScalingGroupsResponseParams `json:"Response"` }
func NewDescribeAutoScalingGroupsResponse ¶
func NewDescribeAutoScalingGroupsResponse() (response *DescribeAutoScalingGroupsResponse)
func (*DescribeAutoScalingGroupsResponse) FromJsonString ¶
func (r *DescribeAutoScalingGroupsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeAutoScalingGroupsResponse) ToJsonString ¶
func (r *DescribeAutoScalingGroupsResponse) ToJsonString() string
type DescribeAutoScalingGroupsResponseParams ¶
type DescribeAutoScalingGroupsResponseParams struct { // List of auto scaling group details. AutoScalingGroupSet []*AutoScalingGroup `json:"AutoScalingGroupSet,omitempty" name:"AutoScalingGroupSet"` // Number of eligible auto scaling groups. TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DescribeAutoScalingInstancesRequest ¶
type DescribeAutoScalingInstancesRequest struct { *tchttp.BaseRequest // IDs of the CVM instances to query. Up to 100 IDs can be queried at one time. `InstanceIds` and `Filters` can not be both specified. InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` // Filter. // <li> instance-id - String - Required: No - (Filter) Filter by instance ID.</li> // <li> auto-scaling-group-id - String - Required: No - (Filter) Filter by auto scaling group ID.</li> // The maximum number of `Filters` per request is 10. The upper limit for `Filter.Values` is 5. This parameter does not support specifying both `InstanceIds` and `Filters` at the same time. Filters []*Filter `json:"Filters,omitempty" name:"Filters"` // Offset. Default value: 0. For more information on `Offset`, see the relevant section in the API [overview](https://intl.cloud.tencent.com/document/api/213/15688?from_cn_redirect=1). Offset *int64 `json:"Offset,omitempty" name:"Offset"` // The number of returned results. Default value: `20`. Maximum value: `100`. For more information on `Limit`, see the relevant sections in API [Introduction](https://intl.cloud.tencent.com/document/api/213/15688?from_cn_redirect=1). Limit *int64 `json:"Limit,omitempty" name:"Limit"` }
func NewDescribeAutoScalingInstancesRequest ¶
func NewDescribeAutoScalingInstancesRequest() (request *DescribeAutoScalingInstancesRequest)
func (*DescribeAutoScalingInstancesRequest) FromJsonString ¶
func (r *DescribeAutoScalingInstancesRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeAutoScalingInstancesRequest) ToJsonString ¶
func (r *DescribeAutoScalingInstancesRequest) ToJsonString() string
type DescribeAutoScalingInstancesRequestParams ¶
type DescribeAutoScalingInstancesRequestParams struct { // IDs of the CVM instances to query. Up to 100 IDs can be queried at one time. `InstanceIds` and `Filters` can not be both specified. InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` // Filter. // <li> instance-id - String - Required: No - (Filter) Filter by instance ID.</li> // <li> auto-scaling-group-id - String - Required: No - (Filter) Filter by auto scaling group ID.</li> // The maximum number of `Filters` per request is 10. The upper limit for `Filter.Values` is 5. This parameter does not support specifying both `InstanceIds` and `Filters` at the same time. Filters []*Filter `json:"Filters,omitempty" name:"Filters"` // Offset. Default value: 0. For more information on `Offset`, see the relevant section in the API [overview](https://intl.cloud.tencent.com/document/api/213/15688?from_cn_redirect=1). Offset *int64 `json:"Offset,omitempty" name:"Offset"` // The number of returned results. Default value: `20`. Maximum value: `100`. For more information on `Limit`, see the relevant sections in API [Introduction](https://intl.cloud.tencent.com/document/api/213/15688?from_cn_redirect=1). Limit *int64 `json:"Limit,omitempty" name:"Limit"` }
Predefined struct for user
type DescribeAutoScalingInstancesResponse ¶
type DescribeAutoScalingInstancesResponse struct { *tchttp.BaseResponse Response *DescribeAutoScalingInstancesResponseParams `json:"Response"` }
func NewDescribeAutoScalingInstancesResponse ¶
func NewDescribeAutoScalingInstancesResponse() (response *DescribeAutoScalingInstancesResponse)
func (*DescribeAutoScalingInstancesResponse) FromJsonString ¶
func (r *DescribeAutoScalingInstancesResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeAutoScalingInstancesResponse) ToJsonString ¶
func (r *DescribeAutoScalingInstancesResponse) ToJsonString() string
type DescribeAutoScalingInstancesResponseParams ¶
type DescribeAutoScalingInstancesResponseParams struct { // List of instance details. AutoScalingInstanceSet []*Instance `json:"AutoScalingInstanceSet,omitempty" name:"AutoScalingInstanceSet"` // Number of eligible instances. TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DescribeLaunchConfigurationsRequest ¶
type DescribeLaunchConfigurationsRequest struct { *tchttp.BaseRequest // Queries by one or more launch configuration IDs in the format of `asc-ouy1ax38`. The maximum quantity per request is 100. This parameter does not support specifying both `LaunchConfigurationIds` and `Filters` at the same time. LaunchConfigurationIds []*string `json:"LaunchConfigurationIds,omitempty" name:"LaunchConfigurationIds"` // Filters // <li> `launch-configuration-id` - String - Required: No - Filter by launch configuration ID.</li> // <li> `launch-configuration-name` - String - Required: No - Filter by launch configuration name.</li> // <li> `launch-configuration-name` - String - Required: No - Fuzzy search by launch configuration name.</li> // <li> `tag-key` - String - Required: No - Filter by the tag key.</li> // <li> `tag-value` - String - Required: No - Filter by the tag value.</li> // <li>tag:tag-key - String - Optional - Filter by tag key pair. Use a specific tag key to replace `tag-key`. See Example 3 for the detailed usage.</li> // </li> // The maximum number of `Filters` per request is 10. The upper limit for `Filter.Values` is 5. This parameter does not support specifying both `LaunchConfigurationIds` and `Filters` at the same time. Filters []*Filter `json:"Filters,omitempty" name:"Filters"` // The number of returned results. Default value: `20`. Maximum value: `100`. For more information on `Limit`, see the relevant sections in API [Introduction](https://intl.cloud.tencent.com/document/api/213/15688?from_cn_redirect=1). Limit *uint64 `json:"Limit,omitempty" name:"Limit"` // The offset. Default value: `0`. For more information on `Offset`, see the relevant sections in API [Introduction](https://intl.cloud.tencent.com/document/api/213/15688?from_cn_redirect=1). Offset *uint64 `json:"Offset,omitempty" name:"Offset"` }
func NewDescribeLaunchConfigurationsRequest ¶
func NewDescribeLaunchConfigurationsRequest() (request *DescribeLaunchConfigurationsRequest)
func (*DescribeLaunchConfigurationsRequest) FromJsonString ¶
func (r *DescribeLaunchConfigurationsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeLaunchConfigurationsRequest) ToJsonString ¶
func (r *DescribeLaunchConfigurationsRequest) ToJsonString() string
type DescribeLaunchConfigurationsRequestParams ¶
type DescribeLaunchConfigurationsRequestParams struct { // Queries by one or more launch configuration IDs in the format of `asc-ouy1ax38`. The maximum quantity per request is 100. This parameter does not support specifying both `LaunchConfigurationIds` and `Filters` at the same time. LaunchConfigurationIds []*string `json:"LaunchConfigurationIds,omitempty" name:"LaunchConfigurationIds"` // Filters // <li> `launch-configuration-id` - String - Required: No - Filter by launch configuration ID.</li> // <li> `launch-configuration-name` - String - Required: No - Filter by launch configuration name.</li> // <li> `launch-configuration-name` - String - Required: No - Fuzzy search by launch configuration name.</li> // <li> `tag-key` - String - Required: No - Filter by the tag key.</li> // <li> `tag-value` - String - Required: No - Filter by the tag value.</li> // <li>tag:tag-key - String - Optional - Filter by tag key pair. Use a specific tag key to replace `tag-key`. See Example 3 for the detailed usage.</li> // </li> // The maximum number of `Filters` per request is 10. The upper limit for `Filter.Values` is 5. This parameter does not support specifying both `LaunchConfigurationIds` and `Filters` at the same time. Filters []*Filter `json:"Filters,omitempty" name:"Filters"` // The number of returned results. Default value: `20`. Maximum value: `100`. For more information on `Limit`, see the relevant sections in API [Introduction](https://intl.cloud.tencent.com/document/api/213/15688?from_cn_redirect=1). Limit *uint64 `json:"Limit,omitempty" name:"Limit"` // The offset. Default value: `0`. For more information on `Offset`, see the relevant sections in API [Introduction](https://intl.cloud.tencent.com/document/api/213/15688?from_cn_redirect=1). Offset *uint64 `json:"Offset,omitempty" name:"Offset"` }
Predefined struct for user
type DescribeLaunchConfigurationsResponse ¶
type DescribeLaunchConfigurationsResponse struct { *tchttp.BaseResponse Response *DescribeLaunchConfigurationsResponseParams `json:"Response"` }
func NewDescribeLaunchConfigurationsResponse ¶
func NewDescribeLaunchConfigurationsResponse() (response *DescribeLaunchConfigurationsResponse)
func (*DescribeLaunchConfigurationsResponse) FromJsonString ¶
func (r *DescribeLaunchConfigurationsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeLaunchConfigurationsResponse) ToJsonString ¶
func (r *DescribeLaunchConfigurationsResponse) ToJsonString() string
type DescribeLaunchConfigurationsResponseParams ¶
type DescribeLaunchConfigurationsResponseParams struct { // Number of eligible launch configurations. TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` // List of launch configuration details. LaunchConfigurationSet []*LaunchConfiguration `json:"LaunchConfigurationSet,omitempty" name:"LaunchConfigurationSet"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DescribeLifecycleHooksRequest ¶
type DescribeLifecycleHooksRequest struct { *tchttp.BaseRequest // Queries by one or more lifecycle hook IDs in the format of `ash-8azjzxcl`. The maximum quantity per request is 100. This parameter does not support specifying both `LifecycleHookIds` and `Filters` at the same time. LifecycleHookIds []*string `json:"LifecycleHookIds,omitempty" name:"LifecycleHookIds"` // Filters. // <li> `lifecycle-hook-id` - String - Required: No - (Filter) Filter by lifecycle hook ID.</li> // <li> `lifecycle-hook-name` - String - Required: No - (Filter) Filter by lifecycle hook name.</li> // <li> `auto-scaling-group-id` - String - Required: No - (Filter) Filter by scaling group ID.</li> // Up to 10 filters can be included in a request and up to 5 values for each filter. It cannot be specified with `LifecycleHookIds` at the same time. Filters []*Filter `json:"Filters,omitempty" name:"Filters"` // Number of returned results. Default value: 20. Maximum value: 100. For more information on `Limit`, see the relevant section in the API [overview](https://intl.cloud.tencent.com/document/api/213/15688?from_cn_redirect=1). Limit *uint64 `json:"Limit,omitempty" name:"Limit"` // Offset. Default value: 0. For more information on `Offset`, see the relevant section in the API [overview](https://intl.cloud.tencent.com/document/api/213/15688?from_cn_redirect=1). Offset *uint64 `json:"Offset,omitempty" name:"Offset"` }
func NewDescribeLifecycleHooksRequest ¶
func NewDescribeLifecycleHooksRequest() (request *DescribeLifecycleHooksRequest)
func (*DescribeLifecycleHooksRequest) FromJsonString ¶
func (r *DescribeLifecycleHooksRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeLifecycleHooksRequest) ToJsonString ¶
func (r *DescribeLifecycleHooksRequest) ToJsonString() string
type DescribeLifecycleHooksRequestParams ¶
type DescribeLifecycleHooksRequestParams struct { // Queries by one or more lifecycle hook IDs in the format of `ash-8azjzxcl`. The maximum quantity per request is 100. This parameter does not support specifying both `LifecycleHookIds` and `Filters` at the same time. LifecycleHookIds []*string `json:"LifecycleHookIds,omitempty" name:"LifecycleHookIds"` // Filters. // <li> `lifecycle-hook-id` - String - Required: No - (Filter) Filter by lifecycle hook ID.</li> // <li> `lifecycle-hook-name` - String - Required: No - (Filter) Filter by lifecycle hook name.</li> // <li> `auto-scaling-group-id` - String - Required: No - (Filter) Filter by scaling group ID.</li> // Up to 10 filters can be included in a request and up to 5 values for each filter. It cannot be specified with `LifecycleHookIds` at the same time. Filters []*Filter `json:"Filters,omitempty" name:"Filters"` // Number of returned results. Default value: 20. Maximum value: 100. For more information on `Limit`, see the relevant section in the API [overview](https://intl.cloud.tencent.com/document/api/213/15688?from_cn_redirect=1). Limit *uint64 `json:"Limit,omitempty" name:"Limit"` // Offset. Default value: 0. For more information on `Offset`, see the relevant section in the API [overview](https://intl.cloud.tencent.com/document/api/213/15688?from_cn_redirect=1). Offset *uint64 `json:"Offset,omitempty" name:"Offset"` }
Predefined struct for user
type DescribeLifecycleHooksResponse ¶
type DescribeLifecycleHooksResponse struct { *tchttp.BaseResponse Response *DescribeLifecycleHooksResponseParams `json:"Response"` }
func NewDescribeLifecycleHooksResponse ¶
func NewDescribeLifecycleHooksResponse() (response *DescribeLifecycleHooksResponse)
func (*DescribeLifecycleHooksResponse) FromJsonString ¶
func (r *DescribeLifecycleHooksResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeLifecycleHooksResponse) ToJsonString ¶
func (r *DescribeLifecycleHooksResponse) ToJsonString() string
type DescribeLifecycleHooksResponseParams ¶
type DescribeLifecycleHooksResponseParams struct { // Array of lifecycle hooks LifecycleHookSet []*LifecycleHook `json:"LifecycleHookSet,omitempty" name:"LifecycleHookSet"` // Total quantity TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DescribeNotificationConfigurationsRequest ¶
type DescribeNotificationConfigurationsRequest struct { *tchttp.BaseRequest // Queries by one or more notification IDs in the format of asn-2sestqbr. The maximum number of instances per request is 100. This parameter does not support specifying both `AutoScalingNotificationIds` and `Filters` at the same time. AutoScalingNotificationIds []*string `json:"AutoScalingNotificationIds,omitempty" name:"AutoScalingNotificationIds"` // Filter. // <li> auto-scaling-notification-id - String - Required: No - (Filter) Filter by notification ID.</li> // <li> auto-scaling-group-id - String - Required: No - (Filter) Filter by auto scaling group ID.</li> // The maximum number of `Filters` per request is 10. The upper limit for `Filter.Values` is 5. This parameter does not support specifying both `AutoScalingNotificationIds` and `Filters` at the same time. Filters []*Filter `json:"Filters,omitempty" name:"Filters"` // Number of returned results. Default value: 20. Maximum value: 100. For more information on `Limit`, see the relevant section in the API [overview](https://intl.cloud.tencent.com/document/api/213/15688?from_cn_redirect=1). Limit *uint64 `json:"Limit,omitempty" name:"Limit"` // Offset. Default value: 0. For more information on `Offset`, see the relevant section in the API [overview](https://intl.cloud.tencent.com/document/api/213/15688?from_cn_redirect=1). Offset *uint64 `json:"Offset,omitempty" name:"Offset"` }
func NewDescribeNotificationConfigurationsRequest ¶
func NewDescribeNotificationConfigurationsRequest() (request *DescribeNotificationConfigurationsRequest)
func (*DescribeNotificationConfigurationsRequest) FromJsonString ¶
func (r *DescribeNotificationConfigurationsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeNotificationConfigurationsRequest) ToJsonString ¶
func (r *DescribeNotificationConfigurationsRequest) ToJsonString() string
type DescribeNotificationConfigurationsRequestParams ¶
type DescribeNotificationConfigurationsRequestParams struct { // Queries by one or more notification IDs in the format of asn-2sestqbr. The maximum number of instances per request is 100. This parameter does not support specifying both `AutoScalingNotificationIds` and `Filters` at the same time. AutoScalingNotificationIds []*string `json:"AutoScalingNotificationIds,omitempty" name:"AutoScalingNotificationIds"` // Filter. // <li> auto-scaling-notification-id - String - Required: No - (Filter) Filter by notification ID.</li> // <li> auto-scaling-group-id - String - Required: No - (Filter) Filter by auto scaling group ID.</li> // The maximum number of `Filters` per request is 10. The upper limit for `Filter.Values` is 5. This parameter does not support specifying both `AutoScalingNotificationIds` and `Filters` at the same time. Filters []*Filter `json:"Filters,omitempty" name:"Filters"` // Number of returned results. Default value: 20. Maximum value: 100. For more information on `Limit`, see the relevant section in the API [overview](https://intl.cloud.tencent.com/document/api/213/15688?from_cn_redirect=1). Limit *uint64 `json:"Limit,omitempty" name:"Limit"` // Offset. Default value: 0. For more information on `Offset`, see the relevant section in the API [overview](https://intl.cloud.tencent.com/document/api/213/15688?from_cn_redirect=1). Offset *uint64 `json:"Offset,omitempty" name:"Offset"` }
Predefined struct for user
type DescribeNotificationConfigurationsResponse ¶
type DescribeNotificationConfigurationsResponse struct { *tchttp.BaseResponse Response *DescribeNotificationConfigurationsResponseParams `json:"Response"` }
func NewDescribeNotificationConfigurationsResponse ¶
func NewDescribeNotificationConfigurationsResponse() (response *DescribeNotificationConfigurationsResponse)
func (*DescribeNotificationConfigurationsResponse) FromJsonString ¶
func (r *DescribeNotificationConfigurationsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeNotificationConfigurationsResponse) ToJsonString ¶
func (r *DescribeNotificationConfigurationsResponse) ToJsonString() string
type DescribeNotificationConfigurationsResponseParams ¶
type DescribeNotificationConfigurationsResponseParams struct { // Number of eligible notifications. TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` // List of AS event notification details. AutoScalingNotificationSet []*AutoScalingNotification `json:"AutoScalingNotificationSet,omitempty" name:"AutoScalingNotificationSet"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DescribeScalingPoliciesRequest ¶
type DescribeScalingPoliciesRequest struct { *tchttp.BaseRequest // Queries by one or more alarm policy IDs in the format of asp-i9vkg894. The maximum number of instances per request is 100. This parameter does not support specifying both `AutoScalingPolicyIds` and `Filters` at the same time. AutoScalingPolicyIds []*string `json:"AutoScalingPolicyIds,omitempty" name:"AutoScalingPolicyIds"` // Filter. // <li> auto-scaling-policy-id - String - Required: No - (Filter) Filter by alarm policy ID.</li> // <li> auto-scaling-group-id - String - Required: No - (Filter) Filter by auto scaling group ID.</li> // <li> scaling-policy-name - String - Required: No - (Filter) Filter by alarm policy name.</li> // The maximum number of `Filters` per request is 10. The upper limit for `Filter.Values` is 5. This parameter does not support specifying both `AutoScalingPolicyIds` and `Filters` at the same time. Filters []*Filter `json:"Filters,omitempty" name:"Filters"` // Number of returned results. Default value: 20. Maximum value: 100. For more information on `Limit`, see the relevant section in the API [overview](https://intl.cloud.tencent.com/document/api/213/15688?from_cn_redirect=1). Limit *uint64 `json:"Limit,omitempty" name:"Limit"` // Offset. Default value: 0. For more information on `Offset`, see the relevant section in the API [overview](https://intl.cloud.tencent.com/document/api/213/15688?from_cn_redirect=1). Offset *uint64 `json:"Offset,omitempty" name:"Offset"` }
func NewDescribeScalingPoliciesRequest ¶
func NewDescribeScalingPoliciesRequest() (request *DescribeScalingPoliciesRequest)
func (*DescribeScalingPoliciesRequest) FromJsonString ¶
func (r *DescribeScalingPoliciesRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeScalingPoliciesRequest) ToJsonString ¶
func (r *DescribeScalingPoliciesRequest) ToJsonString() string
type DescribeScalingPoliciesRequestParams ¶
type DescribeScalingPoliciesRequestParams struct { // Queries by one or more alarm policy IDs in the format of asp-i9vkg894. The maximum number of instances per request is 100. This parameter does not support specifying both `AutoScalingPolicyIds` and `Filters` at the same time. AutoScalingPolicyIds []*string `json:"AutoScalingPolicyIds,omitempty" name:"AutoScalingPolicyIds"` // Filter. // <li> auto-scaling-policy-id - String - Required: No - (Filter) Filter by alarm policy ID.</li> // <li> auto-scaling-group-id - String - Required: No - (Filter) Filter by auto scaling group ID.</li> // <li> scaling-policy-name - String - Required: No - (Filter) Filter by alarm policy name.</li> // The maximum number of `Filters` per request is 10. The upper limit for `Filter.Values` is 5. This parameter does not support specifying both `AutoScalingPolicyIds` and `Filters` at the same time. Filters []*Filter `json:"Filters,omitempty" name:"Filters"` // Number of returned results. Default value: 20. Maximum value: 100. For more information on `Limit`, see the relevant section in the API [overview](https://intl.cloud.tencent.com/document/api/213/15688?from_cn_redirect=1). Limit *uint64 `json:"Limit,omitempty" name:"Limit"` // Offset. Default value: 0. For more information on `Offset`, see the relevant section in the API [overview](https://intl.cloud.tencent.com/document/api/213/15688?from_cn_redirect=1). Offset *uint64 `json:"Offset,omitempty" name:"Offset"` }
Predefined struct for user
type DescribeScalingPoliciesResponse ¶
type DescribeScalingPoliciesResponse struct { *tchttp.BaseResponse Response *DescribeScalingPoliciesResponseParams `json:"Response"` }
func NewDescribeScalingPoliciesResponse ¶
func NewDescribeScalingPoliciesResponse() (response *DescribeScalingPoliciesResponse)
func (*DescribeScalingPoliciesResponse) FromJsonString ¶
func (r *DescribeScalingPoliciesResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeScalingPoliciesResponse) ToJsonString ¶
func (r *DescribeScalingPoliciesResponse) ToJsonString() string
type DescribeScalingPoliciesResponseParams ¶
type DescribeScalingPoliciesResponseParams struct { // List of AS alarm trigger policy details. ScalingPolicySet []*ScalingPolicy `json:"ScalingPolicySet,omitempty" name:"ScalingPolicySet"` // Number of eligible notifications. TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DescribeScheduledActionsRequest ¶
type DescribeScheduledActionsRequest struct { *tchttp.BaseRequest // Queries by one or more scheduled task IDs in the format of asst-am691zxo. The maximum number of instances per request is 100. This parameter does not support specifying both ScheduledActionIds` and `Filters` at the same time. ScheduledActionIds []*string `json:"ScheduledActionIds,omitempty" name:"ScheduledActionIds"` // Filter. // <li> scheduled-action-id - String - Required: No - (Filter) Filter by scheduled task ID.</li> // <li> scheduled-action-name - String - Required: No - (Filter) Filter by scheduled task name.</li> // <li> auto-scaling-group-id - String - Required: No - (Filter) Filter by auto scaling group ID.</li> Filters []*Filter `json:"Filters,omitempty" name:"Filters"` // Offset. Default value: 0. For more information on `Offset`, see the relevant section in the API [overview](https://intl.cloud.tencent.com/document/api/213/15688?from_cn_redirect=1). Offset *uint64 `json:"Offset,omitempty" name:"Offset"` // Number of returned results. Default value: 20. Maximum value: 100. For more information on `Limit`, see the relevant section in the API [overview](https://intl.cloud.tencent.com/document/api/213/15688?from_cn_redirect=1). Limit *uint64 `json:"Limit,omitempty" name:"Limit"` }
func NewDescribeScheduledActionsRequest ¶
func NewDescribeScheduledActionsRequest() (request *DescribeScheduledActionsRequest)
func (*DescribeScheduledActionsRequest) FromJsonString ¶
func (r *DescribeScheduledActionsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeScheduledActionsRequest) ToJsonString ¶
func (r *DescribeScheduledActionsRequest) ToJsonString() string
type DescribeScheduledActionsRequestParams ¶
type DescribeScheduledActionsRequestParams struct { // Queries by one or more scheduled task IDs in the format of asst-am691zxo. The maximum number of instances per request is 100. This parameter does not support specifying both ScheduledActionIds` and `Filters` at the same time. ScheduledActionIds []*string `json:"ScheduledActionIds,omitempty" name:"ScheduledActionIds"` // Filter. // <li> scheduled-action-id - String - Required: No - (Filter) Filter by scheduled task ID.</li> // <li> scheduled-action-name - String - Required: No - (Filter) Filter by scheduled task name.</li> // <li> auto-scaling-group-id - String - Required: No - (Filter) Filter by auto scaling group ID.</li> Filters []*Filter `json:"Filters,omitempty" name:"Filters"` // Offset. Default value: 0. For more information on `Offset`, see the relevant section in the API [overview](https://intl.cloud.tencent.com/document/api/213/15688?from_cn_redirect=1). Offset *uint64 `json:"Offset,omitempty" name:"Offset"` // Number of returned results. Default value: 20. Maximum value: 100. For more information on `Limit`, see the relevant section in the API [overview](https://intl.cloud.tencent.com/document/api/213/15688?from_cn_redirect=1). Limit *uint64 `json:"Limit,omitempty" name:"Limit"` }
Predefined struct for user
type DescribeScheduledActionsResponse ¶
type DescribeScheduledActionsResponse struct { *tchttp.BaseResponse Response *DescribeScheduledActionsResponseParams `json:"Response"` }
func NewDescribeScheduledActionsResponse ¶
func NewDescribeScheduledActionsResponse() (response *DescribeScheduledActionsResponse)
func (*DescribeScheduledActionsResponse) FromJsonString ¶
func (r *DescribeScheduledActionsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeScheduledActionsResponse) ToJsonString ¶
func (r *DescribeScheduledActionsResponse) ToJsonString() string
type DescribeScheduledActionsResponseParams ¶
type DescribeScheduledActionsResponseParams struct { // Number of eligible scheduled tasks. TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` // List of scheduled task details. ScheduledActionSet []*ScheduledAction `json:"ScheduledActionSet,omitempty" name:"ScheduledActionSet"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DetachInstancesRequest ¶
type DetachInstancesRequest struct { *tchttp.BaseRequest // Auto scaling group ID AutoScalingGroupId *string `json:"AutoScalingGroupId,omitempty" name:"AutoScalingGroupId"` // List of CVM instance IDs InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` }
func NewDetachInstancesRequest ¶
func NewDetachInstancesRequest() (request *DetachInstancesRequest)
func (*DetachInstancesRequest) FromJsonString ¶
func (r *DetachInstancesRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DetachInstancesRequest) ToJsonString ¶
func (r *DetachInstancesRequest) ToJsonString() string
type DetachInstancesRequestParams ¶
type DetachInstancesRequestParams struct { // Auto scaling group ID AutoScalingGroupId *string `json:"AutoScalingGroupId,omitempty" name:"AutoScalingGroupId"` // List of CVM instance IDs InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` }
Predefined struct for user
type DetachInstancesResponse ¶
type DetachInstancesResponse struct { *tchttp.BaseResponse Response *DetachInstancesResponseParams `json:"Response"` }
func NewDetachInstancesResponse ¶
func NewDetachInstancesResponse() (response *DetachInstancesResponse)
func (*DetachInstancesResponse) FromJsonString ¶
func (r *DetachInstancesResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DetachInstancesResponse) ToJsonString ¶
func (r *DetachInstancesResponse) ToJsonString() string
type DetachInstancesResponseParams ¶
type DetachInstancesResponseParams struct { // Scaling activity ID ActivityId *string `json:"ActivityId,omitempty" name:"ActivityId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DetachLoadBalancersRequest ¶
type DetachLoadBalancersRequest struct { *tchttp.BaseRequest // Scaling group ID AutoScalingGroupId *string `json:"AutoScalingGroupId,omitempty" name:"AutoScalingGroupId"` // List of classic CLB IDs. Up to 20 IDs are allowed. `LoadBalancerIds` and `ForwardLoadBalancerIdentifications` cannot be specified at the same time. LoadBalancerIds []*string `json:"LoadBalancerIds,omitempty" name:"LoadBalancerIds"` // List of application CLB IDs. Up to 100 IDs are allowed. `LoadBalancerIds` and `ForwardLoadBalancerIdentifications` cannot be specified at the same time. ForwardLoadBalancerIdentifications []*ForwardLoadBalancerIdentification `json:"ForwardLoadBalancerIdentifications,omitempty" name:"ForwardLoadBalancerIdentifications"` }
func NewDetachLoadBalancersRequest ¶
func NewDetachLoadBalancersRequest() (request *DetachLoadBalancersRequest)
func (*DetachLoadBalancersRequest) FromJsonString ¶
func (r *DetachLoadBalancersRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DetachLoadBalancersRequest) ToJsonString ¶
func (r *DetachLoadBalancersRequest) ToJsonString() string
type DetachLoadBalancersRequestParams ¶
type DetachLoadBalancersRequestParams struct { // Scaling group ID AutoScalingGroupId *string `json:"AutoScalingGroupId,omitempty" name:"AutoScalingGroupId"` // List of classic CLB IDs. Up to 20 IDs are allowed. `LoadBalancerIds` and `ForwardLoadBalancerIdentifications` cannot be specified at the same time. LoadBalancerIds []*string `json:"LoadBalancerIds,omitempty" name:"LoadBalancerIds"` // List of application CLB IDs. Up to 100 IDs are allowed. `LoadBalancerIds` and `ForwardLoadBalancerIdentifications` cannot be specified at the same time. ForwardLoadBalancerIdentifications []*ForwardLoadBalancerIdentification `json:"ForwardLoadBalancerIdentifications,omitempty" name:"ForwardLoadBalancerIdentifications"` }
Predefined struct for user
type DetachLoadBalancersResponse ¶
type DetachLoadBalancersResponse struct { *tchttp.BaseResponse Response *DetachLoadBalancersResponseParams `json:"Response"` }
func NewDetachLoadBalancersResponse ¶
func NewDetachLoadBalancersResponse() (response *DetachLoadBalancersResponse)
func (*DetachLoadBalancersResponse) FromJsonString ¶
func (r *DetachLoadBalancersResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DetachLoadBalancersResponse) ToJsonString ¶
func (r *DetachLoadBalancersResponse) ToJsonString() string
type DetachLoadBalancersResponseParams ¶
type DetachLoadBalancersResponseParams struct { // Scaling activity ID ActivityId *string `json:"ActivityId,omitempty" name:"ActivityId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DetailedStatusMessage ¶
type DetailedStatusMessage struct { // Error type Code *string `json:"Code,omitempty" name:"Code"` // AZ information Zone *string `json:"Zone,omitempty" name:"Zone"` // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Instance billing mode InstanceChargeType *string `json:"InstanceChargeType,omitempty" name:"InstanceChargeType"` // Subnet ID SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"` // Error message Message *string `json:"Message,omitempty" name:"Message"` // Instance type InstanceType *string `json:"InstanceType,omitempty" name:"InstanceType"` }
type DisableAutoScalingGroupRequest ¶
type DisableAutoScalingGroupRequest struct { *tchttp.BaseRequest // Scaling group ID AutoScalingGroupId *string `json:"AutoScalingGroupId,omitempty" name:"AutoScalingGroupId"` }
func NewDisableAutoScalingGroupRequest ¶
func NewDisableAutoScalingGroupRequest() (request *DisableAutoScalingGroupRequest)
func (*DisableAutoScalingGroupRequest) FromJsonString ¶
func (r *DisableAutoScalingGroupRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DisableAutoScalingGroupRequest) ToJsonString ¶
func (r *DisableAutoScalingGroupRequest) ToJsonString() string
type DisableAutoScalingGroupRequestParams ¶
type DisableAutoScalingGroupRequestParams struct { // Scaling group ID AutoScalingGroupId *string `json:"AutoScalingGroupId,omitempty" name:"AutoScalingGroupId"` }
Predefined struct for user
type DisableAutoScalingGroupResponse ¶
type DisableAutoScalingGroupResponse struct { *tchttp.BaseResponse Response *DisableAutoScalingGroupResponseParams `json:"Response"` }
func NewDisableAutoScalingGroupResponse ¶
func NewDisableAutoScalingGroupResponse() (response *DisableAutoScalingGroupResponse)
func (*DisableAutoScalingGroupResponse) FromJsonString ¶
func (r *DisableAutoScalingGroupResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DisableAutoScalingGroupResponse) ToJsonString ¶
func (r *DisableAutoScalingGroupResponse) ToJsonString() string
type DisableAutoScalingGroupResponseParams ¶
type DisableAutoScalingGroupResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type EnableAutoScalingGroupRequest ¶
type EnableAutoScalingGroupRequest struct { *tchttp.BaseRequest // Auto scaling group ID AutoScalingGroupId *string `json:"AutoScalingGroupId,omitempty" name:"AutoScalingGroupId"` }
func NewEnableAutoScalingGroupRequest ¶
func NewEnableAutoScalingGroupRequest() (request *EnableAutoScalingGroupRequest)
func (*EnableAutoScalingGroupRequest) FromJsonString ¶
func (r *EnableAutoScalingGroupRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*EnableAutoScalingGroupRequest) ToJsonString ¶
func (r *EnableAutoScalingGroupRequest) ToJsonString() string
type EnableAutoScalingGroupRequestParams ¶
type EnableAutoScalingGroupRequestParams struct { // Auto scaling group ID AutoScalingGroupId *string `json:"AutoScalingGroupId,omitempty" name:"AutoScalingGroupId"` }
Predefined struct for user
type EnableAutoScalingGroupResponse ¶
type EnableAutoScalingGroupResponse struct { *tchttp.BaseResponse Response *EnableAutoScalingGroupResponseParams `json:"Response"` }
func NewEnableAutoScalingGroupResponse ¶
func NewEnableAutoScalingGroupResponse() (response *EnableAutoScalingGroupResponse)
func (*EnableAutoScalingGroupResponse) FromJsonString ¶
func (r *EnableAutoScalingGroupResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*EnableAutoScalingGroupResponse) ToJsonString ¶
func (r *EnableAutoScalingGroupResponse) ToJsonString() string
type EnableAutoScalingGroupResponseParams ¶
type EnableAutoScalingGroupResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type EnhancedService ¶
type EnhancedService struct { // Enables the Cloud Security service. If this parameter is not specified, the Cloud Security service will be enabled by default. SecurityService *RunSecurityServiceEnabled `json:"SecurityService,omitempty" name:"SecurityService"` // Enables the Cloud Monitor service. If this parameter is not specified, the Cloud Monitor service will be enabled by default. MonitorService *RunMonitorServiceEnabled `json:"MonitorService,omitempty" name:"MonitorService"` // Deprecated parameter. AutomationService []*RunAutomationServiceEnabled `json:"AutomationService,omitempty" name:"AutomationService"` AutomationToolsService *RunAutomationServiceEnabled `json:"AutomationToolsService,omitempty" name:"AutomationToolsService"` }
type ExecuteScalingPolicyRequest ¶
type ExecuteScalingPolicyRequest struct { *tchttp.BaseRequest // Alarm-based scaling policy ID AutoScalingPolicyId *string `json:"AutoScalingPolicyId,omitempty" name:"AutoScalingPolicyId"` // Whether to check if the auto scaling group is in the cooldown period. Default value: false HonorCooldown *bool `json:"HonorCooldown,omitempty" name:"HonorCooldown"` // Source that triggers the scaling policy. Valid values: API and CLOUD_MONITOR. Default value: API. The value `CLOUD_MONITOR` is specific to the Cloud Monitor service. TriggerSource *string `json:"TriggerSource,omitempty" name:"TriggerSource"` }
func NewExecuteScalingPolicyRequest ¶
func NewExecuteScalingPolicyRequest() (request *ExecuteScalingPolicyRequest)
func (*ExecuteScalingPolicyRequest) FromJsonString ¶
func (r *ExecuteScalingPolicyRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ExecuteScalingPolicyRequest) ToJsonString ¶
func (r *ExecuteScalingPolicyRequest) ToJsonString() string
type ExecuteScalingPolicyRequestParams ¶
type ExecuteScalingPolicyRequestParams struct { // Alarm-based scaling policy ID AutoScalingPolicyId *string `json:"AutoScalingPolicyId,omitempty" name:"AutoScalingPolicyId"` // Whether to check if the auto scaling group is in the cooldown period. Default value: false HonorCooldown *bool `json:"HonorCooldown,omitempty" name:"HonorCooldown"` // Source that triggers the scaling policy. Valid values: API and CLOUD_MONITOR. Default value: API. The value `CLOUD_MONITOR` is specific to the Cloud Monitor service. TriggerSource *string `json:"TriggerSource,omitempty" name:"TriggerSource"` }
Predefined struct for user
type ExecuteScalingPolicyResponse ¶
type ExecuteScalingPolicyResponse struct { *tchttp.BaseResponse Response *ExecuteScalingPolicyResponseParams `json:"Response"` }
func NewExecuteScalingPolicyResponse ¶
func NewExecuteScalingPolicyResponse() (response *ExecuteScalingPolicyResponse)
func (*ExecuteScalingPolicyResponse) FromJsonString ¶
func (r *ExecuteScalingPolicyResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ExecuteScalingPolicyResponse) ToJsonString ¶
func (r *ExecuteScalingPolicyResponse) ToJsonString() string
type ExecuteScalingPolicyResponseParams ¶
type ExecuteScalingPolicyResponseParams struct { // Scaling activity ID ActivityId *string `json:"ActivityId,omitempty" name:"ActivityId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type ForwardLoadBalancer ¶
type ForwardLoadBalancer struct { // Load balancer ID LoadBalancerId *string `json:"LoadBalancerId,omitempty" name:"LoadBalancerId"` // Application load balancer listener ID ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` // List of target rule attributes TargetAttributes []*TargetAttribute `json:"TargetAttributes,omitempty" name:"TargetAttributes"` // ID of a forwarding rule. This parameter is required for layer-7 listeners. LocationId *string `json:"LocationId,omitempty" name:"LocationId"` // The region of CLB instance. It defaults to the region of AS service and is in the format of the common parameter `Region`, such as `ap-guangzhou`. Region *string `json:"Region,omitempty" name:"Region"` }
type ForwardLoadBalancerIdentification ¶
type ForwardLoadBalancerIdentification struct { // ID of the CLB LoadBalancerId *string `json:"LoadBalancerId,omitempty" name:"LoadBalancerId"` // Application CLB listener ID ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` // ID of a forwarding rule. This parameter is required for layer-7 listeners. LocationId *string `json:"LocationId,omitempty" name:"LocationId"` }
type HostNameSettings ¶
type HostNameSettings struct { // Hostname of a CVM // <br><li>The `HostName` cannot start or end with a period (.) or hyphen (-), and cannot contain consecutive periods and hyphens. // <br><li>This field is unavailable to CVM instances. // <br><li>Other types of instances (such as Linux): the name contains 2 to 40 characters, and supports multiple periods (.). The string between two periods can consist of letters (case insensitive), numbers, and hyphens (-), and cannot be all numbers. // Note: this field may return `null`, indicating that no valid value is obtained. HostName *string `json:"HostName,omitempty" name:"HostName"` // Type of CVM host name. Valid values: "ORIGINAL" and "UNIQUE". Default value: "ORIGINAL" // <br><li> ORIGINAL. Auto Scaling transfers the HostName set in input parameters to the CVM directly. CVM may adds serial numbers for the HostName. The HostName of instances within the auto scaling group may conflict. // <br><li> UNIQUE. The HostName set in input parameters is the prefix of a host name. Auto Scaling and CVM expand it. The HostName of an instance in the auto scaling group is unique. // Note: This field may return null, indicating that no valid values can be obtained. HostNameStyle *string `json:"HostNameStyle,omitempty" name:"HostNameStyle"` }
type Instance ¶
type Instance struct { // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Auto scaling group ID AutoScalingGroupId *string `json:"AutoScalingGroupId,omitempty" name:"AutoScalingGroupId"` // Launch configuration ID LaunchConfigurationId *string `json:"LaunchConfigurationId,omitempty" name:"LaunchConfigurationId"` // Launch configuration name LaunchConfigurationName *string `json:"LaunchConfigurationName,omitempty" name:"LaunchConfigurationName"` // Lifecycle status. Valid values:<br> // <li>IN_SERVICE: the instance is running. // <li>CREATING: the instance is being created. // <li>CREATION_FAILED: the instance fails to be created. // <li>TERMINATING: the instance is being terminated. // <li>TERMINATION_FAILED: the instance fails to be terminated. // <li>ATTACHING: the instance is being bound. // <li>DETACHING: the instance is being unbound. // <li>ATTACHING_LB: the instance is being bound to an LB.<li>DETACHING_LB: the instance is being unbound from an LB. // <li>STARTING: the instance is being started. // <li>START_FAILED: the instance fails to be started. // <li>STOPPING: the instance is being stopped. // <li>STOP_FAILED: the instance fails to be stopped. // <li>STOPPED: the instance is stopped. LifeCycleState *string `json:"LifeCycleState,omitempty" name:"LifeCycleState"` // Health status. Value range: HEALTHY, UNHEALTHY HealthStatus *string `json:"HealthStatus,omitempty" name:"HealthStatus"` // Whether to add scale-in protection ProtectedFromScaleIn *bool `json:"ProtectedFromScaleIn,omitempty" name:"ProtectedFromScaleIn"` // Availability zone Zone *string `json:"Zone,omitempty" name:"Zone"` // Creation type. Value range: AUTO_CREATION, MANUAL_ATTACHING. CreationType *string `json:"CreationType,omitempty" name:"CreationType"` // Instance addition time AddTime *string `json:"AddTime,omitempty" name:"AddTime"` // Instance type InstanceType *string `json:"InstanceType,omitempty" name:"InstanceType"` // Version number VersionNumber *int64 `json:"VersionNumber,omitempty" name:"VersionNumber"` // Auto scaling group name AutoScalingGroupName *string `json:"AutoScalingGroupName,omitempty" name:"AutoScalingGroupName"` }
type InstanceChargePrepaid ¶
type InstanceChargePrepaid struct { // Purchased usage period of an instance in months. Value range: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36. Period *int64 `json:"Period,omitempty" name:"Period"` // Auto-renewal flag. Value range: <br><li>NOTIFY_AND_AUTO_RENEW: Notify expiry and renew automatically <br><li>NOTIFY_AND_MANUAL_RENEW: Notify expiry but not renew automatically <br><li>DISABLE_NOTIFY_AND_MANUAL_RENEW: Neither notify expiry nor renew automatically <br><br>Default value: NOTIFY_AND_MANUAL_RENEW. If this parameter is specified as NOTIFY_AND_AUTO_RENEW, the instance will be automatically renewed on a monthly basis if the account balance is sufficient. RenewFlag *string `json:"RenewFlag,omitempty" name:"RenewFlag"` }
type InstanceMarketOptionsRequest ¶
type InstanceMarketOptionsRequest struct { // Bidding-related options SpotOptions *SpotMarketOptions `json:"SpotOptions,omitempty" name:"SpotOptions"` // Market option type. Currently, this only supports the value "spot" // Note: This field may return null, indicating that no valid values can be obtained. MarketType *string `json:"MarketType,omitempty" name:"MarketType"` }
type InstanceNameSettings ¶
type InstanceNameSettings struct { // CVM instance name // // The `InstanceName` cannot start or end with a dot (.) or hyphen (-), and cannot contain consecutive dots and hyphens. // The name contains 2 to 40 characters, and supports multiple dots (.). The string between two dots can consist of letters (case-insensitive), numbers, and hyphens (-), and cannot be all numbers. InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"` // Type of CVM instance name. Valid values: `ORIGINAL` and `UNIQUE`. Default value: `ORIGINAL`. // // `ORIGINAL`: Auto Scaling sends the input parameter `InstanceName` to the CVM directly. The CVM may append a serial number to the `InstanceName`. The `InstanceName` of the instances within the scaling group may conflict. // // `UNIQUE`: the input parameter `InstanceName` is the prefix of an instance name. Auto Scaling and CVM expand it. The `InstanceName` of an instance in the scaling group is unique. InstanceNameStyle *string `json:"InstanceNameStyle,omitempty" name:"InstanceNameStyle"` }
type InstanceTag ¶
type InternetAccessible ¶
type InternetAccessible struct { // Network billing method. Value range: <br><li>BANDWIDTH_PREPAID: Prepaid by bandwidth <br><li>TRAFFIC_POSTPAID_BY_HOUR: Postpaid by traffic on a per hour basis <br><li>BANDWIDTH_POSTPAID_BY_HOUR: Postpaid by bandwidth on a per hour basis <br><li>BANDWIDTH_PACKAGE: BWP user <br>Default value: TRAFFIC_POSTPAID_BY_HOUR. // Note: This field may return null, indicating that no valid values can be obtained. InternetChargeType *string `json:"InternetChargeType,omitempty" name:"InternetChargeType"` // The maximum outbound bandwidth in Mbps of the public network. The default value is 0 Mbps. The upper limit of bandwidth varies by model. For more information, see [Purchase Network Bandwidth](https://intl.cloud.tencent.com/document/product/213/509?from_cn_redirect=1). // Note: This field may return null, indicating that no valid values can be obtained. InternetMaxBandwidthOut *uint64 `json:"InternetMaxBandwidthOut,omitempty" name:"InternetMaxBandwidthOut"` // Whether to assign a public IP. Value range: <br><li>TRUE: Assign a public IP <br><li>FALSE: Do not assign a public IP <br><br>If the public network bandwidth is greater than 0 Mbps, you are free to choose whether to enable the public IP (which is enabled by default). If the public network bandwidth is 0 Mbps, no public IP will be allowed to be assigned. // Note: This field may return null, indicating that no valid values can be obtained. PublicIpAssigned *bool `json:"PublicIpAssigned,omitempty" name:"PublicIpAssigned"` // Bandwidth package ID. You can obtain the ID from the `BandwidthPackageId` field in the response of the [DescribeBandwidthPackages](https://intl.cloud.tencent.com/document/api/215/19209?from_cn_redirect=1) API. // Note: this field may return null, indicating that no valid value was found. BandwidthPackageId *string `json:"BandwidthPackageId,omitempty" name:"BandwidthPackageId"` }
type InvocationResult ¶
type InvocationResult struct { // Instance ID. // Note: This field may return null, indicating that no valid values can be obtained. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Execution activity ID. // Note: This field may return null, indicating that no valid values can be obtained. InvocationId *string `json:"InvocationId,omitempty" name:"InvocationId"` // Execution task ID. // Note: This field may return null, indicating that no valid values can be obtained. InvocationTaskId *string `json:"InvocationTaskId,omitempty" name:"InvocationTaskId"` // Command ID. // Note: This field may return null, indicating that no valid values can be obtained. CommandId *string `json:"CommandId,omitempty" name:"CommandId"` // Execution Status // Note: This field may return null, indicating that no valid values can be obtained. TaskStatus *string `json:"TaskStatus,omitempty" name:"TaskStatus"` // Execution exception information // Note: This field may return null, indicating that no valid values can be obtained. ErrorMessage *string `json:"ErrorMessage,omitempty" name:"ErrorMessage"` }
type LaunchConfiguration ¶
type LaunchConfiguration struct { // Project ID of the instance. ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"` // Launch configuration ID LaunchConfigurationId *string `json:"LaunchConfigurationId,omitempty" name:"LaunchConfigurationId"` // Launch configuration name. LaunchConfigurationName *string `json:"LaunchConfigurationName,omitempty" name:"LaunchConfigurationName"` // Instance model. InstanceType *string `json:"InstanceType,omitempty" name:"InstanceType"` // Information of the instance's system disk configuration. SystemDisk *SystemDisk `json:"SystemDisk,omitempty" name:"SystemDisk"` // Information of the instance's data disk configuration. DataDisks []*DataDisk `json:"DataDisks,omitempty" name:"DataDisks"` // Instance login settings. LoginSettings *LimitedLoginSettings `json:"LoginSettings,omitempty" name:"LoginSettings"` // Information of the public network bandwidth configuration. InternetAccessible *InternetAccessible `json:"InternetAccessible,omitempty" name:"InternetAccessible"` // Security group of the instance. SecurityGroupIds []*string `json:"SecurityGroupIds,omitempty" name:"SecurityGroupIds"` // Auto scaling group associated with the launch configuration. AutoScalingGroupAbstractSet []*AutoScalingGroupAbstract `json:"AutoScalingGroupAbstractSet,omitempty" name:"AutoScalingGroupAbstractSet"` // Custom data. // Note: This field may return null, indicating that no valid values can be obtained. UserData *string `json:"UserData,omitempty" name:"UserData"` // Creation time of the launch configuration. CreatedTime *string `json:"CreatedTime,omitempty" name:"CreatedTime"` // Conditions of enhancement services for the instance and their settings. EnhancedService *EnhancedService `json:"EnhancedService,omitempty" name:"EnhancedService"` // Image ID. ImageId *string `json:"ImageId,omitempty" name:"ImageId"` // Current status of the launch configuration. Value range: <br><li>NORMAL: normal <br><li>IMAGE_ABNORMAL: Exception with the image of the launch configuration <br><li>CBS_SNAP_ABNORMAL: Exception with the data disk snapshot of the launch configuration <br><li>SECURITY_GROUP_ABNORMAL: Exception with the security group of the launch configuration<br> LaunchConfigurationStatus *string `json:"LaunchConfigurationStatus,omitempty" name:"LaunchConfigurationStatus"` // Instance billing mode. CVM instances take `POSTPAID_BY_HOUR` by default. Valid values: // <br><li>POSTPAID_BY_HOUR: pay-as-you-go hourly // <br><li>SPOTPAID: spot instance InstanceChargeType *string `json:"InstanceChargeType,omitempty" name:"InstanceChargeType"` // Market options of the instance, such as parameters related to spot instances. This parameter is required for spot instances. // Note: This field may return null, indicating that no valid values can be obtained. InstanceMarketOptions *InstanceMarketOptionsRequest `json:"InstanceMarketOptions,omitempty" name:"InstanceMarketOptions"` // List of instance models. InstanceTypes []*string `json:"InstanceTypes,omitempty" name:"InstanceTypes"` // List of instance tags, which will be added to instances created by the scale-out activity. Up to 10 tags allowed. InstanceTags []*InstanceTag `json:"InstanceTags,omitempty" name:"InstanceTags"` // Tag list. // Note: This field may return null, indicating that no valid values can be obtained. Tags []*Tag `json:"Tags,omitempty" name:"Tags"` // Version VersionNumber *int64 `json:"VersionNumber,omitempty" name:"VersionNumber"` // Update time UpdatedTime *string `json:"UpdatedTime,omitempty" name:"UpdatedTime"` // CAM role name. This parameter can be obtained from the `roleName` field returned by DescribeRoleList API. CamRoleName *string `json:"CamRoleName,omitempty" name:"CamRoleName"` // Value of InstanceTypesCheckPolicy upon the last operation. LastOperationInstanceTypesCheckPolicy *string `json:"LastOperationInstanceTypesCheckPolicy,omitempty" name:"LastOperationInstanceTypesCheckPolicy"` // CVM hostname settings. HostNameSettings *HostNameSettings `json:"HostNameSettings,omitempty" name:"HostNameSettings"` // Settings of CVM instance names InstanceNameSettings *InstanceNameSettings `json:"InstanceNameSettings,omitempty" name:"InstanceNameSettings"` // Details of the monthly subscription, including the purchase period, auto-renewal. It is required if the `InstanceChargeType` is `PREPAID`. InstanceChargePrepaid *InstanceChargePrepaid `json:"InstanceChargePrepaid,omitempty" name:"InstanceChargePrepaid"` // Selection policy of cloud disks. Default value: ORIGINAL. Valid values: // <br><li>ORIGINAL: uses the configured cloud disk type // <br><li>AUTOMATIC: automatically chooses an available cloud disk type in the current availability zone DiskTypePolicy *string `json:"DiskTypePolicy,omitempty" name:"DiskTypePolicy"` // HPC ID<br> // Note: This field is default to empty HpcClusterId *string `json:"HpcClusterId,omitempty" name:"HpcClusterId"` }
type LifecycleActionResultInfo ¶
type LifecycleActionResultInfo struct { // ID of the lifecycle hook LifecycleHookId *string `json:"LifecycleHookId,omitempty" name:"LifecycleHookId"` // ID of the instance InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Execution task ID. You can query the result by using the [DescribeInvocations](https://intl.cloud.tencent.com/document/api/1340/52679?from_cn_redirect=1) API of TAT. InvocationId *string `json:"InvocationId,omitempty" name:"InvocationId"` // Result of command invocation, // <li>`SUCCESSFUL`: Successful command invocation. It does mean that the task is successfully. You can query the task result with the `InvocationId.</li> // <li>`FAILED`: Failed to invoke the command</li> // <li>`NONE`</li> InvokeCommandResult *string `json:"InvokeCommandResult,omitempty" name:"InvokeCommandResult"` // Notification result, which indicates whether it is successful to notify CMQ/TDMQ.<br> // <li>SUCCESSFUL: It is successful to notify CMQ/TDMQ.</li> // <li>FAILED: It is failed to notify CMQ/TDMQ.</li> // <li>NONE</li> NotificationResult *string `json:"NotificationResult,omitempty" name:"NotificationResult"` // Result of the lifecyle hook action. Values: CONTINUE, ABANDON LifecycleActionResult *string `json:"LifecycleActionResult,omitempty" name:"LifecycleActionResult"` // Reason of the result <br> // <li>`HEARTBEAT_TIMEOUT`: Heartbeat timed out. The setting of `DefaultResult` is used.</li> // <li>`NOTIFICATION_FAILURE`: Failed to send the notification. The setting of `DefaultResult` is used.</li> // <li>`CALL_INTERFACE`: Calls the `CompleteLifecycleAction` to set the result</li> // <li>ANOTHER_ACTION_ABANDON: It has been set to `ABANDON` by another operation.</li> // <li>COMMAND_CALL_FAILURE: Failed to call the command. The DefaultResult is applied.</li> // <li>COMMAND_EXEC_FINISH: Command completed</li> // <li>COMMAND_CALL_FAILURE: Failed to execute the command. The DefaultResult is applied.</li> // <li>COMMAND_EXEC_RESULT_CHECK_FAILURE: Failed to check the command result. The DefaultResult is applied.</li> ResultReason *string `json:"ResultReason,omitempty" name:"ResultReason"` }
type LifecycleCommand ¶
type LifecycleCommand struct { // Remote command ID. It’s required to execute a command. // Note: This field may return null, indicating that no valid values can be obtained. CommandId *string `json:"CommandId,omitempty" name:"CommandId"` // Custom parameter. The field type is JSON encoded string. For example, {"varA": "222"}. // `key` is the name of the custom parameter and `value` is the default value. Both `key` and `value` are strings. // If this parameter is not specified, the `DefaultParameters` of `Command` is used. // Up to 20 customer parameters allowed. The parameter name can contain up to 64 characters, including [a-z], [A-Z], [0-9] and [-_]. // Note: This field may return null, indicating that no valid values can be obtained. Parameters *string `json:"Parameters,omitempty" name:"Parameters"` }
type LifecycleHook ¶
type LifecycleHook struct { // Lifecycle hook ID LifecycleHookId *string `json:"LifecycleHookId,omitempty" name:"LifecycleHookId"` // Lifecycle hook name LifecycleHookName *string `json:"LifecycleHookName,omitempty" name:"LifecycleHookName"` // Auto scaling group ID AutoScalingGroupId *string `json:"AutoScalingGroupId,omitempty" name:"AutoScalingGroupId"` // Default result of the lifecycle hook DefaultResult *string `json:"DefaultResult,omitempty" name:"DefaultResult"` // Wait timeout period of the lifecycle hook HeartbeatTimeout *int64 `json:"HeartbeatTimeout,omitempty" name:"HeartbeatTimeout"` // Applicable scenario of the lifecycle hook LifecycleTransition *string `json:"LifecycleTransition,omitempty" name:"LifecycleTransition"` // Additional information for the notification target NotificationMetadata *string `json:"NotificationMetadata,omitempty" name:"NotificationMetadata"` // Creation time CreatedTime *string `json:"CreatedTime,omitempty" name:"CreatedTime"` // Notification target NotificationTarget *NotificationTarget `json:"NotificationTarget,omitempty" name:"NotificationTarget"` // Applicable scenario of the lifecycle hook LifecycleTransitionType *string `json:"LifecycleTransitionType,omitempty" name:"LifecycleTransitionType"` // Remote command execution object. // Note: This field may return null, indicating that no valid values can be obtained. LifecycleCommand *LifecycleCommand `json:"LifecycleCommand,omitempty" name:"LifecycleCommand"` }
type LimitedLoginSettings ¶
type LimitedLoginSettings struct { // List of key IDs. KeyIds []*string `json:"KeyIds,omitempty" name:"KeyIds"` }
type LoginSettings ¶
type LoginSettings struct { // Login password of the instance. The password requirements vary among different operating systems: <br><li>For Linux instances, the password must be 8-16 characters long and contain at least one character from two of the following categories: [a-z, A-Z], [0-9] and [( ) ` ~ ! @ # $ % ^ & * - + = | { } [ ] : ; ' , . ? / ]. <br><li>For Windows instances, the password must be 12-16 characters long and contain at least one character from three of the following categories: [a-z], [A-Z], [0-9] and [( ) ` ~ ! @ # $ % ^ & * - + = { } [ ] : ; ' , . ? /]. <br><br>If this parameter is not specified, a random password will be generated and sent to you via the Message Center. // Note: This field may return null, indicating that no valid values can be obtained. Password *string `json:"Password,omitempty" name:"Password"` // List of key IDs. After an instance is associated with a key, you can access the instance with the private key in the key pair. You can call `DescribeKeyPairs` to obtain `KeyId`. Key and password cannot be specified at the same time. Windows instances do not support keys. Currently, you can only specify one key when purchasing an instance. KeyIds []*string `json:"KeyIds,omitempty" name:"KeyIds"` // Whether to keep the original settings of an image. You cannot specify this parameter and `Password` or `KeyIds.N` at the same time. You can specify this parameter as `TRUE` only when you create an instance using a custom image, a shared image, or an imported image. Valid values: <br><li>TRUE: keep the login settings of the image <br><li>FALSE: do not keep the login settings of the image <br><br>Default value: FALSE. // Note: This field may return null, indicating that no valid values can be obtained. KeepImageLogin *bool `json:"KeepImageLogin,omitempty" name:"KeepImageLogin"` }
type MetricAlarm ¶
type MetricAlarm struct { // Comparison operator. Value range: <br><li>GREATER_THAN: greater than </li><li>GREATER_THAN_OR_EQUAL_TO: greater than or equal to </li><li>LESS_THAN: less than </li><li> LESS_THAN_OR_EQUAL_TO: less than or equal to </li><li> EQUAL_TO: equal to </li> <li>NOT_EQUAL_TO: not equal to </li> ComparisonOperator *string `json:"ComparisonOperator,omitempty" name:"ComparisonOperator"` // Metric name. Value range: <br><li>CPU_UTILIZATION: CPU utilization </li><li>MEM_UTILIZATION: memory utilization </li><li>LAN_TRAFFIC_OUT: private network outbound bandwidth </li><li>LAN_TRAFFIC_IN: private network inbound bandwidth </li><li>WAN_TRAFFIC_OUT: public network outbound bandwidth </li><li>WAN_TRAFFIC_IN: public network inbound bandwidth </li> MetricName *string `json:"MetricName,omitempty" name:"MetricName"` // Alarming threshold: <br><li>CPU_UTILIZATION: [1, 100] in % </li><li>MEM_UTILIZATION: [1, 100] in % </li><li>LAN_TRAFFIC_OUT: >0 in Mbps </li><li>LAN_TRAFFIC_IN: >0 in Mbps </li><li>WAN_TRAFFIC_OUT: >0 in Mbps </li><li>WAN_TRAFFIC_IN: >0 in Mbps </li> Threshold *uint64 `json:"Threshold,omitempty" name:"Threshold"` // Time period in seconds. Enumerated values: 60, 300. Period *uint64 `json:"Period,omitempty" name:"Period"` // Number of repetitions. Value range: [1, 10] ContinuousTime *uint64 `json:"ContinuousTime,omitempty" name:"ContinuousTime"` // Statistics type. Value range: <br><li>AVERAGE: average </li><li>MAXIMUM: maximum <li>MINIMUM: minimum </li><br> Default value: AVERAGE Statistic *string `json:"Statistic,omitempty" name:"Statistic"` }
type ModifyAutoScalingGroupRequest ¶
type ModifyAutoScalingGroupRequest struct { *tchttp.BaseRequest // Auto scaling group ID AutoScalingGroupId *string `json:"AutoScalingGroupId,omitempty" name:"AutoScalingGroupId"` // Auto scaling group name, which can only contain letters, numbers, underscores, hyphens ("-"), and decimal points with a maximum length of 55 bytes and must be unique under your account. AutoScalingGroupName *string `json:"AutoScalingGroupName,omitempty" name:"AutoScalingGroupName"` // Default cooldown period in seconds. Default value: 300 DefaultCooldown *uint64 `json:"DefaultCooldown,omitempty" name:"DefaultCooldown"` // Desired number of instances. The number should be no larger than the maximum and no smaller than minimum number of instances DesiredCapacity *uint64 `json:"DesiredCapacity,omitempty" name:"DesiredCapacity"` // Launch configuration ID LaunchConfigurationId *string `json:"LaunchConfigurationId,omitempty" name:"LaunchConfigurationId"` // Maximum number of instances. Value range: 0-2,000. MaxSize *uint64 `json:"MaxSize,omitempty" name:"MaxSize"` // Minimum number of instances. Value range: 0-2,000. MinSize *uint64 `json:"MinSize,omitempty" name:"MinSize"` // Project ID ProjectId *uint64 `json:"ProjectId,omitempty" name:"ProjectId"` // List of subnet IDs SubnetIds []*string `json:"SubnetIds,omitempty" name:"SubnetIds"` // Termination policy. Currently, the maximum length is 1. Value range: OLDEST_INSTANCE, NEWEST_INSTANCE. // <br><li> OLDEST_INSTANCE: The oldest instance in the auto scaling group will be terminated first. // <br><li> NEWEST_INSTANCE: The newest instance in the auto scaling group will be terminated first. TerminationPolicies []*string `json:"TerminationPolicies,omitempty" name:"TerminationPolicies"` // VPC ID. This field is left empty for basic networks. You need to specify SubnetIds when modifying the network of the auto scaling group to a VPC with a specified VPC ID. Specify Zones when modifying the network to a basic network. VpcId *string `json:"VpcId,omitempty" name:"VpcId"` // List of availability zones Zones []*string `json:"Zones,omitempty" name:"Zones"` // Retry policy. Value range: IMMEDIATE_RETRY, INCREMENTAL_INTERVALS, and NO_RETRY. Default value: IMMEDIATE_RETRY. // <br><li> IMMEDIATE_RETRY: Retrying immediately in a short period of time and stopping after a number of consecutive failures (5). // <br><li> INCREMENTAL_INTERVALS: Retrying at incremental intervals, i.e., as the number of consecutive failures increases, the retry interval gradually increases, ranging from one second to one day. // <br><li> NO_RETRY: No retry until a user call or alarm message is received again. RetryPolicy *string `json:"RetryPolicy,omitempty" name:"RetryPolicy"` // Availability zone verification policy. Value range: ALL, ANY. Default value: ANY. This will work when the resource-related fields (launch configuration, availability zone, or subnet) of the auto scaling group are actually modified. // <br><li> ALL: The verification will succeed only if all availability zones (Zone) or subnets (SubnetId) are available; otherwise, an error will be reported. // <br><li> ANY: The verification will success if any availability zone (Zone) or subnet (SubnetId) is available; otherwise, an error will be reported. // // Common reasons why an availability zone or subnet is unavailable include stock-out of CVM instances or CBS cloud disks in the availability zone, insufficient quota in the availability zone, or insufficient IPs in the subnet. // If an availability zone or subnet in Zones/SubnetIds does not exist, a verification error will be reported regardless of the value of ZonesCheckPolicy. ZonesCheckPolicy *string `json:"ZonesCheckPolicy,omitempty" name:"ZonesCheckPolicy"` // Service settings such as unhealthy instance replacement. ServiceSettings *ServiceSettings `json:"ServiceSettings,omitempty" name:"ServiceSettings"` // The number of IPv6 addresses that an instance has. Valid values: 0 and 1. Ipv6AddressCount *int64 `json:"Ipv6AddressCount,omitempty" name:"Ipv6AddressCount"` // Multi-availability zone/subnet policy. Valid values: `PRIORITY` and `EQUALITY`. Default value: `PRIORITY`. // <br><li>`PRIORITY`: When an instance is being created, the availability zone/subnet is chosen from top to bottom in the list. The first availability zone/subnet is always used as long as instances can be created. // <br><li>`EQUALITY`: Instances created for scaling out are distributed to multiple availability zones/subnets, so as to keep the number of instances in different availability zone/subnet in balance. // // Notes: // <br><li> When the scaling group is based on the classic network, this policy applies to multiple availability zones. When the scaling group is based on a VPC, this policy applies to multiple subnets, and you do not need to consider availability zones. For example, if you have four subnets (A, B, C, and D) and A, B, and C are in availability zone 1 and D is in availability zone 2, you only need to decide the order of the four subnets, without worrying about the issue of availability zones. // <br><li> This policy is applicable to multiple availability zones/subnets, but is not applicable to multiple models with launch configurations. Specify the models according to the model priority. // <br><li> When `PRIORITY` policy is used, the multi-model policy prevails the multi-availability zones/subnet policy. For example, if you have Model A/B, and Subnet 1/2/3, the model-subnet combinations are tried in the following order: A1 -> A2 -> A3 -> B1 -> B2 -> B3. If A1 is sold out, A2 (not B1) is tried next. MultiZoneSubnetPolicy *string `json:"MultiZoneSubnetPolicy,omitempty" name:"MultiZoneSubnetPolicy"` // Health check type of instances in a scaling group.<br><li>CVM: confirm whether an instance is healthy based on the network status. If the pinged instance is unreachable, the instance will be considered unhealthy. For more information, see [Instance Health Check](https://intl.cloud.tencent.com/document/product/377/8553?from_cn_redirect=1)<br><li>CLB: confirm whether an instance is healthy based on the CLB health check status. For more information, see [Health Check Overview](https://intl.cloud.tencent.com/document/product/214/6097?from_cn_redirect=1). HealthCheckType *string `json:"HealthCheckType,omitempty" name:"HealthCheckType"` // Grace period of the CLB health check LoadBalancerHealthCheckGracePeriod *uint64 `json:"LoadBalancerHealthCheckGracePeriod,omitempty" name:"LoadBalancerHealthCheckGracePeriod"` // Specifies how to assign instances. Valid values: `LAUNCH_CONFIGURATION` and `SPOT_MIXED`. // <br><li>`LAUNCH_CONFIGURATION`: the launch configuration mode. // <br><li>`SPOT_MIXED`: a mixed instance mode. Currently, this mode is supported only when the launch configuration takes the pay-as-you-go billing mode. With this mode, the scaling group can provision a combination of pay-as-you-go instances and spot instances to meet the configured capacity. Note that the billing mode of the associated launch configuration cannot be modified when this mode is used. InstanceAllocationPolicy *string `json:"InstanceAllocationPolicy,omitempty" name:"InstanceAllocationPolicy"` // Specifies how to assign pay-as-you-go instances and spot instances. // This parameter is valid only when `InstanceAllocationPolicy` is set to `SPOT_MIXED`. SpotMixedAllocationPolicy *SpotMixedAllocationPolicy `json:"SpotMixedAllocationPolicy,omitempty" name:"SpotMixedAllocationPolicy"` // Indicates whether the capacity rebalancing feature is enabled. This parameter is only valid for spot instances in the scaling group. Valid values: // <br><li>`TRUE`: yes. Before the spot instances in the scaling group are about to be automatically repossessed, AS will terminate them. The scale-in hook (if configured) will take effect before the termination. After the termination process starts, AS will asynchronously initiate a scaling activity to meet the desired capacity. // <br><li>`FALSE`: no. In this case, AS will add instances to meet the desired capacity only after the spot instances are terminated. CapacityRebalance *bool `json:"CapacityRebalance,omitempty" name:"CapacityRebalance"` }
func NewModifyAutoScalingGroupRequest ¶
func NewModifyAutoScalingGroupRequest() (request *ModifyAutoScalingGroupRequest)
func (*ModifyAutoScalingGroupRequest) FromJsonString ¶
func (r *ModifyAutoScalingGroupRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyAutoScalingGroupRequest) ToJsonString ¶
func (r *ModifyAutoScalingGroupRequest) ToJsonString() string
type ModifyAutoScalingGroupRequestParams ¶
type ModifyAutoScalingGroupRequestParams struct { // Auto scaling group ID AutoScalingGroupId *string `json:"AutoScalingGroupId,omitempty" name:"AutoScalingGroupId"` // Auto scaling group name, which can only contain letters, numbers, underscores, hyphens ("-"), and decimal points with a maximum length of 55 bytes and must be unique under your account. AutoScalingGroupName *string `json:"AutoScalingGroupName,omitempty" name:"AutoScalingGroupName"` // Default cooldown period in seconds. Default value: 300 DefaultCooldown *uint64 `json:"DefaultCooldown,omitempty" name:"DefaultCooldown"` // Desired number of instances. The number should be no larger than the maximum and no smaller than minimum number of instances DesiredCapacity *uint64 `json:"DesiredCapacity,omitempty" name:"DesiredCapacity"` // Launch configuration ID LaunchConfigurationId *string `json:"LaunchConfigurationId,omitempty" name:"LaunchConfigurationId"` // Maximum number of instances. Value range: 0-2,000. MaxSize *uint64 `json:"MaxSize,omitempty" name:"MaxSize"` // Minimum number of instances. Value range: 0-2,000. MinSize *uint64 `json:"MinSize,omitempty" name:"MinSize"` // Project ID ProjectId *uint64 `json:"ProjectId,omitempty" name:"ProjectId"` // List of subnet IDs SubnetIds []*string `json:"SubnetIds,omitempty" name:"SubnetIds"` // Termination policy. Currently, the maximum length is 1. Value range: OLDEST_INSTANCE, NEWEST_INSTANCE. // <br><li> OLDEST_INSTANCE: The oldest instance in the auto scaling group will be terminated first. // <br><li> NEWEST_INSTANCE: The newest instance in the auto scaling group will be terminated first. TerminationPolicies []*string `json:"TerminationPolicies,omitempty" name:"TerminationPolicies"` // VPC ID. This field is left empty for basic networks. You need to specify SubnetIds when modifying the network of the auto scaling group to a VPC with a specified VPC ID. Specify Zones when modifying the network to a basic network. VpcId *string `json:"VpcId,omitempty" name:"VpcId"` // List of availability zones Zones []*string `json:"Zones,omitempty" name:"Zones"` // Retry policy. Value range: IMMEDIATE_RETRY, INCREMENTAL_INTERVALS, and NO_RETRY. Default value: IMMEDIATE_RETRY. // <br><li> IMMEDIATE_RETRY: Retrying immediately in a short period of time and stopping after a number of consecutive failures (5). // <br><li> INCREMENTAL_INTERVALS: Retrying at incremental intervals, i.e., as the number of consecutive failures increases, the retry interval gradually increases, ranging from one second to one day. // <br><li> NO_RETRY: No retry until a user call or alarm message is received again. RetryPolicy *string `json:"RetryPolicy,omitempty" name:"RetryPolicy"` // Availability zone verification policy. Value range: ALL, ANY. Default value: ANY. This will work when the resource-related fields (launch configuration, availability zone, or subnet) of the auto scaling group are actually modified. // <br><li> ALL: The verification will succeed only if all availability zones (Zone) or subnets (SubnetId) are available; otherwise, an error will be reported. // <br><li> ANY: The verification will success if any availability zone (Zone) or subnet (SubnetId) is available; otherwise, an error will be reported. // // Common reasons why an availability zone or subnet is unavailable include stock-out of CVM instances or CBS cloud disks in the availability zone, insufficient quota in the availability zone, or insufficient IPs in the subnet. // If an availability zone or subnet in Zones/SubnetIds does not exist, a verification error will be reported regardless of the value of ZonesCheckPolicy. ZonesCheckPolicy *string `json:"ZonesCheckPolicy,omitempty" name:"ZonesCheckPolicy"` // Service settings such as unhealthy instance replacement. ServiceSettings *ServiceSettings `json:"ServiceSettings,omitempty" name:"ServiceSettings"` // The number of IPv6 addresses that an instance has. Valid values: 0 and 1. Ipv6AddressCount *int64 `json:"Ipv6AddressCount,omitempty" name:"Ipv6AddressCount"` // Multi-availability zone/subnet policy. Valid values: `PRIORITY` and `EQUALITY`. Default value: `PRIORITY`. // <br><li>`PRIORITY`: When an instance is being created, the availability zone/subnet is chosen from top to bottom in the list. The first availability zone/subnet is always used as long as instances can be created. // <br><li>`EQUALITY`: Instances created for scaling out are distributed to multiple availability zones/subnets, so as to keep the number of instances in different availability zone/subnet in balance. // // Notes: // <br><li> When the scaling group is based on the classic network, this policy applies to multiple availability zones. When the scaling group is based on a VPC, this policy applies to multiple subnets, and you do not need to consider availability zones. For example, if you have four subnets (A, B, C, and D) and A, B, and C are in availability zone 1 and D is in availability zone 2, you only need to decide the order of the four subnets, without worrying about the issue of availability zones. // <br><li> This policy is applicable to multiple availability zones/subnets, but is not applicable to multiple models with launch configurations. Specify the models according to the model priority. // <br><li> When `PRIORITY` policy is used, the multi-model policy prevails the multi-availability zones/subnet policy. For example, if you have Model A/B, and Subnet 1/2/3, the model-subnet combinations are tried in the following order: A1 -> A2 -> A3 -> B1 -> B2 -> B3. If A1 is sold out, A2 (not B1) is tried next. MultiZoneSubnetPolicy *string `json:"MultiZoneSubnetPolicy,omitempty" name:"MultiZoneSubnetPolicy"` // Health check type of instances in a scaling group.<br><li>CVM: confirm whether an instance is healthy based on the network status. If the pinged instance is unreachable, the instance will be considered unhealthy. For more information, see [Instance Health Check](https://intl.cloud.tencent.com/document/product/377/8553?from_cn_redirect=1)<br><li>CLB: confirm whether an instance is healthy based on the CLB health check status. For more information, see [Health Check Overview](https://intl.cloud.tencent.com/document/product/214/6097?from_cn_redirect=1). HealthCheckType *string `json:"HealthCheckType,omitempty" name:"HealthCheckType"` // Grace period of the CLB health check LoadBalancerHealthCheckGracePeriod *uint64 `json:"LoadBalancerHealthCheckGracePeriod,omitempty" name:"LoadBalancerHealthCheckGracePeriod"` // Specifies how to assign instances. Valid values: `LAUNCH_CONFIGURATION` and `SPOT_MIXED`. // <br><li>`LAUNCH_CONFIGURATION`: the launch configuration mode. // <br><li>`SPOT_MIXED`: a mixed instance mode. Currently, this mode is supported only when the launch configuration takes the pay-as-you-go billing mode. With this mode, the scaling group can provision a combination of pay-as-you-go instances and spot instances to meet the configured capacity. Note that the billing mode of the associated launch configuration cannot be modified when this mode is used. InstanceAllocationPolicy *string `json:"InstanceAllocationPolicy,omitempty" name:"InstanceAllocationPolicy"` // Specifies how to assign pay-as-you-go instances and spot instances. // This parameter is valid only when `InstanceAllocationPolicy` is set to `SPOT_MIXED`. SpotMixedAllocationPolicy *SpotMixedAllocationPolicy `json:"SpotMixedAllocationPolicy,omitempty" name:"SpotMixedAllocationPolicy"` // Indicates whether the capacity rebalancing feature is enabled. This parameter is only valid for spot instances in the scaling group. Valid values: // <br><li>`TRUE`: yes. Before the spot instances in the scaling group are about to be automatically repossessed, AS will terminate them. The scale-in hook (if configured) will take effect before the termination. After the termination process starts, AS will asynchronously initiate a scaling activity to meet the desired capacity. // <br><li>`FALSE`: no. In this case, AS will add instances to meet the desired capacity only after the spot instances are terminated. CapacityRebalance *bool `json:"CapacityRebalance,omitempty" name:"CapacityRebalance"` }
Predefined struct for user
type ModifyAutoScalingGroupResponse ¶
type ModifyAutoScalingGroupResponse struct { *tchttp.BaseResponse Response *ModifyAutoScalingGroupResponseParams `json:"Response"` }
func NewModifyAutoScalingGroupResponse ¶
func NewModifyAutoScalingGroupResponse() (response *ModifyAutoScalingGroupResponse)
func (*ModifyAutoScalingGroupResponse) FromJsonString ¶
func (r *ModifyAutoScalingGroupResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyAutoScalingGroupResponse) ToJsonString ¶
func (r *ModifyAutoScalingGroupResponse) ToJsonString() string
type ModifyAutoScalingGroupResponseParams ¶
type ModifyAutoScalingGroupResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type ModifyDesiredCapacityRequest ¶
type ModifyDesiredCapacityRequest struct { *tchttp.BaseRequest // Auto scaling group ID AutoScalingGroupId *string `json:"AutoScalingGroupId,omitempty" name:"AutoScalingGroupId"` // Desired capacity DesiredCapacity *uint64 `json:"DesiredCapacity,omitempty" name:"DesiredCapacity"` // Minimum number of instances. Value range: 0-2000. MinSize *uint64 `json:"MinSize,omitempty" name:"MinSize"` // Maximum number of instances. Value range: 0-2000. MaxSize *uint64 `json:"MaxSize,omitempty" name:"MaxSize"` }
func NewModifyDesiredCapacityRequest ¶
func NewModifyDesiredCapacityRequest() (request *ModifyDesiredCapacityRequest)
func (*ModifyDesiredCapacityRequest) FromJsonString ¶
func (r *ModifyDesiredCapacityRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyDesiredCapacityRequest) ToJsonString ¶
func (r *ModifyDesiredCapacityRequest) ToJsonString() string
type ModifyDesiredCapacityRequestParams ¶
type ModifyDesiredCapacityRequestParams struct { // Auto scaling group ID AutoScalingGroupId *string `json:"AutoScalingGroupId,omitempty" name:"AutoScalingGroupId"` // Desired capacity DesiredCapacity *uint64 `json:"DesiredCapacity,omitempty" name:"DesiredCapacity"` // Minimum number of instances. Value range: 0-2000. MinSize *uint64 `json:"MinSize,omitempty" name:"MinSize"` // Maximum number of instances. Value range: 0-2000. MaxSize *uint64 `json:"MaxSize,omitempty" name:"MaxSize"` }
Predefined struct for user
type ModifyDesiredCapacityResponse ¶
type ModifyDesiredCapacityResponse struct { *tchttp.BaseResponse Response *ModifyDesiredCapacityResponseParams `json:"Response"` }
func NewModifyDesiredCapacityResponse ¶
func NewModifyDesiredCapacityResponse() (response *ModifyDesiredCapacityResponse)
func (*ModifyDesiredCapacityResponse) FromJsonString ¶
func (r *ModifyDesiredCapacityResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyDesiredCapacityResponse) ToJsonString ¶
func (r *ModifyDesiredCapacityResponse) ToJsonString() string
type ModifyDesiredCapacityResponseParams ¶
type ModifyDesiredCapacityResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type ModifyLaunchConfigurationAttributesRequest ¶
type ModifyLaunchConfigurationAttributesRequest struct { *tchttp.BaseRequest // Launch configuration ID LaunchConfigurationId *string `json:"LaunchConfigurationId,omitempty" name:"LaunchConfigurationId"` // [Image](https://intl.cloud.tencent.com/document/product/213/4940?from_cn_redirect=1) ID in the format of `img-xxx`. There are three types of images: <br/><li>Public images </li><li>Custom images </li><li>Shared images </li><br/>You can obtain the image IDs in the [CVM console](https://console.cloud.tencent.com/cvm/image?rid=1&imageType=PUBLIC_IMAGE).</li><li>You can also use the [DescribeImages](https://intl.cloud.tencent.com/document/api/213/15715?from_cn_redirect=1) and look for `ImageId` in the response.</li> ImageId *string `json:"ImageId,omitempty" name:"ImageId"` // List of instance types. Each type specifies different resource specifications. This list contains up to 10 instance types. // The launch configuration uses `InstanceType` to indicate one single instance type and `InstanceTypes` to indicate multiple instance types. Specifying the `InstanceTypes` field will invalidate the original `InstanceType`. InstanceTypes []*string `json:"InstanceTypes,omitempty" name:"InstanceTypes"` // Instance type verification policy which works when InstanceTypes is actually modified. Value range: ALL, ANY. Default value: ANY. // <br><li> ALL: The verification will success only if all instance types (InstanceType) are available; otherwise, an error will be reported. // <br><li> ANY: The verification will success if any instance type (InstanceType) is available; otherwise, an error will be reported. // // Common reasons why an instance type is unavailable include stock-out of the instance type or the corresponding cloud disk. // If a model in InstanceTypes does not exist or has been discontinued, a verification error will be reported regardless of the value of InstanceTypesCheckPolicy. InstanceTypesCheckPolicy *string `json:"InstanceTypesCheckPolicy,omitempty" name:"InstanceTypesCheckPolicy"` // Display name of the launch configuration, which can contain Chinese characters, letters, numbers, underscores, separators ("-"), and decimal points with a maximum length of 60 bytes. LaunchConfigurationName *string `json:"LaunchConfigurationName,omitempty" name:"LaunchConfigurationName"` // Base64-encoded custom data of up to 16 KB. If you want to clear `UserData`, set it to an empty string. UserData *string `json:"UserData,omitempty" name:"UserData"` // Security group to which the instance belongs. This parameter can be obtained from the `SecurityGroupId` field in the response of the [`DescribeSecurityGroups`](https://intl.cloud.tencent.com/document/api/215/15808?from_cn_redirect=1) API. // At least one security group is required for this parameter. The security group specified is sequential. SecurityGroupIds []*string `json:"SecurityGroupIds,omitempty" name:"SecurityGroupIds"` // Information of the public network bandwidth configuration. // When the public outbound network bandwidth is 0 Mbps, assigning a public IP is not allowed. Accordingly, if a public IP is assigned, the new public network outbound bandwidth must be greater than 0 Mbps. InternetAccessible *InternetAccessible `json:"InternetAccessible,omitempty" name:"InternetAccessible"` // Instance billing mode. Valid values: // <br><li>POSTPAID_BY_HOUR: pay-as-you-go hourly // <br><li>SPOTPAID: spot instance InstanceChargeType *string `json:"InstanceChargeType,omitempty" name:"InstanceChargeType"` // Parameter setting for the prepaid mode (monthly subscription mode). This parameter can specify the renewal period, whether to set the auto-renewal, and other attributes of the monthly-subscribed instances. // This parameter is required when changing the instance billing mode to monthly subscription. It will be automatically discarded after you choose another billing mode. // This field requires passing in the `Period` field. Other fields that are not passed in will use their default values. // This field can be modified only when the current billing mode is monthly subscription. InstanceChargePrepaid *InstanceChargePrepaid `json:"InstanceChargePrepaid,omitempty" name:"InstanceChargePrepaid"` // Market-related options for instances, such as parameters related to spot instances. // This parameter is required when changing the instance billing mode to spot instance. It will be automatically discarded after you choose another instance billing mode. // This field requires passing in the `MaxPrice` field under the `SpotOptions`. Other fields that are not passed in will use their default values. // This field can be modified only when the current billing mode is spot instance. InstanceMarketOptions *InstanceMarketOptionsRequest `json:"InstanceMarketOptions,omitempty" name:"InstanceMarketOptions"` // Selection policy of cloud disks. Default value: ORIGINAL. Valid values: // <br><li>ORIGINAL: uses the configured cloud disk type // <br><li>AUTOMATIC: automatically chooses an available cloud disk type DiskTypePolicy *string `json:"DiskTypePolicy,omitempty" name:"DiskTypePolicy"` // Instance system disk configurations SystemDisk *SystemDisk `json:"SystemDisk,omitempty" name:"SystemDisk"` // Configuration information of instance data disks. // Up to 11 data disks can be specified and will be collectively modified. Please provide all the new values for the modification. // The default data disk should be the same as the system disk. DataDisks []*DataDisk `json:"DataDisks,omitempty" name:"DataDisks"` // CVM hostname settings. // This field is not supported for Windows instances. // This field requires passing the `HostName` field. Other fields that are not passed in will use their default values. HostNameSettings *HostNameSettings `json:"HostNameSettings,omitempty" name:"HostNameSettings"` // Settings of CVM instance names. // If this field is configured in a launch configuration, the `InstanceName` of a CVM created by the scaling group will be generated according to the configuration; otherwise, it will be in the `as-{{AutoScalingGroupName }}` format. // This field requires passing in the `InstanceName` field. Other fields that are not passed in will use their default values. InstanceNameSettings *InstanceNameSettings `json:"InstanceNameSettings,omitempty" name:"InstanceNameSettings"` // Specifies whether to enable additional services, such as security services and monitoring service. EnhancedService *EnhancedService `json:"EnhancedService,omitempty" name:"EnhancedService"` // CAM role name. This parameter can be obtained from the `roleName` field returned by DescribeRoleList API. CamRoleName *string `json:"CamRoleName,omitempty" name:"CamRoleName"` // HPC ID<br> // Note: This field is default to empty HpcClusterId *string `json:"HpcClusterId,omitempty" name:"HpcClusterId"` }
func NewModifyLaunchConfigurationAttributesRequest ¶
func NewModifyLaunchConfigurationAttributesRequest() (request *ModifyLaunchConfigurationAttributesRequest)
func (*ModifyLaunchConfigurationAttributesRequest) FromJsonString ¶
func (r *ModifyLaunchConfigurationAttributesRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyLaunchConfigurationAttributesRequest) ToJsonString ¶
func (r *ModifyLaunchConfigurationAttributesRequest) ToJsonString() string
type ModifyLaunchConfigurationAttributesRequestParams ¶
type ModifyLaunchConfigurationAttributesRequestParams struct { // Launch configuration ID LaunchConfigurationId *string `json:"LaunchConfigurationId,omitempty" name:"LaunchConfigurationId"` // [Image](https://intl.cloud.tencent.com/document/product/213/4940?from_cn_redirect=1) ID in the format of `img-xxx`. There are three types of images: <br/><li>Public images </li><li>Custom images </li><li>Shared images </li><br/>You can obtain the image IDs in the [CVM console](https://console.cloud.tencent.com/cvm/image?rid=1&imageType=PUBLIC_IMAGE).</li><li>You can also use the [DescribeImages](https://intl.cloud.tencent.com/document/api/213/15715?from_cn_redirect=1) and look for `ImageId` in the response.</li> ImageId *string `json:"ImageId,omitempty" name:"ImageId"` // List of instance types. Each type specifies different resource specifications. This list contains up to 10 instance types. // The launch configuration uses `InstanceType` to indicate one single instance type and `InstanceTypes` to indicate multiple instance types. Specifying the `InstanceTypes` field will invalidate the original `InstanceType`. InstanceTypes []*string `json:"InstanceTypes,omitempty" name:"InstanceTypes"` // Instance type verification policy which works when InstanceTypes is actually modified. Value range: ALL, ANY. Default value: ANY. // <br><li> ALL: The verification will success only if all instance types (InstanceType) are available; otherwise, an error will be reported. // <br><li> ANY: The verification will success if any instance type (InstanceType) is available; otherwise, an error will be reported. // // Common reasons why an instance type is unavailable include stock-out of the instance type or the corresponding cloud disk. // If a model in InstanceTypes does not exist or has been discontinued, a verification error will be reported regardless of the value of InstanceTypesCheckPolicy. InstanceTypesCheckPolicy *string `json:"InstanceTypesCheckPolicy,omitempty" name:"InstanceTypesCheckPolicy"` // Display name of the launch configuration, which can contain Chinese characters, letters, numbers, underscores, separators ("-"), and decimal points with a maximum length of 60 bytes. LaunchConfigurationName *string `json:"LaunchConfigurationName,omitempty" name:"LaunchConfigurationName"` // Base64-encoded custom data of up to 16 KB. If you want to clear `UserData`, set it to an empty string. UserData *string `json:"UserData,omitempty" name:"UserData"` // Security group to which the instance belongs. This parameter can be obtained from the `SecurityGroupId` field in the response of the [`DescribeSecurityGroups`](https://intl.cloud.tencent.com/document/api/215/15808?from_cn_redirect=1) API. // At least one security group is required for this parameter. The security group specified is sequential. SecurityGroupIds []*string `json:"SecurityGroupIds,omitempty" name:"SecurityGroupIds"` // Information of the public network bandwidth configuration. // When the public outbound network bandwidth is 0 Mbps, assigning a public IP is not allowed. Accordingly, if a public IP is assigned, the new public network outbound bandwidth must be greater than 0 Mbps. InternetAccessible *InternetAccessible `json:"InternetAccessible,omitempty" name:"InternetAccessible"` // Instance billing mode. Valid values: // <br><li>POSTPAID_BY_HOUR: pay-as-you-go hourly // <br><li>SPOTPAID: spot instance InstanceChargeType *string `json:"InstanceChargeType,omitempty" name:"InstanceChargeType"` // Parameter setting for the prepaid mode (monthly subscription mode). This parameter can specify the renewal period, whether to set the auto-renewal, and other attributes of the monthly-subscribed instances. // This parameter is required when changing the instance billing mode to monthly subscription. It will be automatically discarded after you choose another billing mode. // This field requires passing in the `Period` field. Other fields that are not passed in will use their default values. // This field can be modified only when the current billing mode is monthly subscription. InstanceChargePrepaid *InstanceChargePrepaid `json:"InstanceChargePrepaid,omitempty" name:"InstanceChargePrepaid"` // Market-related options for instances, such as parameters related to spot instances. // This parameter is required when changing the instance billing mode to spot instance. It will be automatically discarded after you choose another instance billing mode. // This field requires passing in the `MaxPrice` field under the `SpotOptions`. Other fields that are not passed in will use their default values. // This field can be modified only when the current billing mode is spot instance. InstanceMarketOptions *InstanceMarketOptionsRequest `json:"InstanceMarketOptions,omitempty" name:"InstanceMarketOptions"` // Selection policy of cloud disks. Default value: ORIGINAL. Valid values: // <br><li>ORIGINAL: uses the configured cloud disk type // <br><li>AUTOMATIC: automatically chooses an available cloud disk type DiskTypePolicy *string `json:"DiskTypePolicy,omitempty" name:"DiskTypePolicy"` // Instance system disk configurations SystemDisk *SystemDisk `json:"SystemDisk,omitempty" name:"SystemDisk"` // Configuration information of instance data disks. // Up to 11 data disks can be specified and will be collectively modified. Please provide all the new values for the modification. // The default data disk should be the same as the system disk. DataDisks []*DataDisk `json:"DataDisks,omitempty" name:"DataDisks"` // CVM hostname settings. // This field is not supported for Windows instances. // This field requires passing the `HostName` field. Other fields that are not passed in will use their default values. HostNameSettings *HostNameSettings `json:"HostNameSettings,omitempty" name:"HostNameSettings"` // Settings of CVM instance names. // If this field is configured in a launch configuration, the `InstanceName` of a CVM created by the scaling group will be generated according to the configuration; otherwise, it will be in the `as-{{AutoScalingGroupName }}` format. // This field requires passing in the `InstanceName` field. Other fields that are not passed in will use their default values. InstanceNameSettings *InstanceNameSettings `json:"InstanceNameSettings,omitempty" name:"InstanceNameSettings"` // Specifies whether to enable additional services, such as security services and monitoring service. EnhancedService *EnhancedService `json:"EnhancedService,omitempty" name:"EnhancedService"` // CAM role name. This parameter can be obtained from the `roleName` field returned by DescribeRoleList API. CamRoleName *string `json:"CamRoleName,omitempty" name:"CamRoleName"` // HPC ID<br> // Note: This field is default to empty HpcClusterId *string `json:"HpcClusterId,omitempty" name:"HpcClusterId"` }
Predefined struct for user
type ModifyLaunchConfigurationAttributesResponse ¶
type ModifyLaunchConfigurationAttributesResponse struct { *tchttp.BaseResponse Response *ModifyLaunchConfigurationAttributesResponseParams `json:"Response"` }
func NewModifyLaunchConfigurationAttributesResponse ¶
func NewModifyLaunchConfigurationAttributesResponse() (response *ModifyLaunchConfigurationAttributesResponse)
func (*ModifyLaunchConfigurationAttributesResponse) FromJsonString ¶
func (r *ModifyLaunchConfigurationAttributesResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyLaunchConfigurationAttributesResponse) ToJsonString ¶
func (r *ModifyLaunchConfigurationAttributesResponse) ToJsonString() string
type ModifyLaunchConfigurationAttributesResponseParams ¶
type ModifyLaunchConfigurationAttributesResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type ModifyLifecycleHookRequest ¶
type ModifyLifecycleHookRequest struct { *tchttp.BaseRequest // Lifecycle hook ID. LifecycleHookId *string `json:"LifecycleHookId,omitempty" name:"LifecycleHookId"` // Lifecycle hook name. LifecycleHookName *string `json:"LifecycleHookName,omitempty" name:"LifecycleHookName"` // The time when the lifecycle hook is applied. Valid values: // <li> `INSTANCE_LAUNCHING`: After the instance launch // <li> `INSTANCE_TERMINATING`: Before the instance termination LifecycleTransition *string `json:"LifecycleTransition,omitempty" name:"LifecycleTransition"` // Actions after the lifecycle hook times out. Valid values: // <li> `CONTINUE`: Continue the scaling activity after the timeout // <li> `ABANDON`: Terminate the scaling activity after the timeout DefaultResult *string `json:"DefaultResult,omitempty" name:"DefaultResult"` // The maximum length of time (in seconds) that can elapse before the lifecycle hook times out. Value range: 30 - 7,200 seconds. HeartbeatTimeout *uint64 `json:"HeartbeatTimeout,omitempty" name:"HeartbeatTimeout"` // Additional information sent by AS to the notification target. NotificationMetadata *string `json:"NotificationMetadata,omitempty" name:"NotificationMetadata"` // The scenario where the lifecycle hook is applied. `EXTENSION`: The lifecycle hook will be triggered when `AttachInstances`, `DetachInstances` or `RemoveInstances` is called. `NORMAL`: The lifecycle hook is not triggered by the above APIs. LifecycleTransitionType *string `json:"LifecycleTransitionType,omitempty" name:"LifecycleTransitionType"` // Information of the notification target. NotificationTarget *NotificationTarget `json:"NotificationTarget,omitempty" name:"NotificationTarget"` // Remote command execution object. LifecycleCommand *LifecycleCommand `json:"LifecycleCommand,omitempty" name:"LifecycleCommand"` }
func NewModifyLifecycleHookRequest ¶
func NewModifyLifecycleHookRequest() (request *ModifyLifecycleHookRequest)
func (*ModifyLifecycleHookRequest) FromJsonString ¶
func (r *ModifyLifecycleHookRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyLifecycleHookRequest) ToJsonString ¶
func (r *ModifyLifecycleHookRequest) ToJsonString() string
type ModifyLifecycleHookRequestParams ¶
type ModifyLifecycleHookRequestParams struct { // Lifecycle hook ID. LifecycleHookId *string `json:"LifecycleHookId,omitempty" name:"LifecycleHookId"` // Lifecycle hook name. LifecycleHookName *string `json:"LifecycleHookName,omitempty" name:"LifecycleHookName"` // The time when the lifecycle hook is applied. Valid values: // <li> `INSTANCE_LAUNCHING`: After the instance launch // <li> `INSTANCE_TERMINATING`: Before the instance termination LifecycleTransition *string `json:"LifecycleTransition,omitempty" name:"LifecycleTransition"` // Actions after the lifecycle hook times out. Valid values: // <li> `CONTINUE`: Continue the scaling activity after the timeout // <li> `ABANDON`: Terminate the scaling activity after the timeout DefaultResult *string `json:"DefaultResult,omitempty" name:"DefaultResult"` // The maximum length of time (in seconds) that can elapse before the lifecycle hook times out. Value range: 30 - 7,200 seconds. HeartbeatTimeout *uint64 `json:"HeartbeatTimeout,omitempty" name:"HeartbeatTimeout"` // Additional information sent by AS to the notification target. NotificationMetadata *string `json:"NotificationMetadata,omitempty" name:"NotificationMetadata"` // The scenario where the lifecycle hook is applied. `EXTENSION`: The lifecycle hook will be triggered when `AttachInstances`, `DetachInstances` or `RemoveInstances` is called. `NORMAL`: The lifecycle hook is not triggered by the above APIs. LifecycleTransitionType *string `json:"LifecycleTransitionType,omitempty" name:"LifecycleTransitionType"` // Information of the notification target. NotificationTarget *NotificationTarget `json:"NotificationTarget,omitempty" name:"NotificationTarget"` // Remote command execution object. LifecycleCommand *LifecycleCommand `json:"LifecycleCommand,omitempty" name:"LifecycleCommand"` }
Predefined struct for user
type ModifyLifecycleHookResponse ¶
type ModifyLifecycleHookResponse struct { *tchttp.BaseResponse Response *ModifyLifecycleHookResponseParams `json:"Response"` }
func NewModifyLifecycleHookResponse ¶
func NewModifyLifecycleHookResponse() (response *ModifyLifecycleHookResponse)
func (*ModifyLifecycleHookResponse) FromJsonString ¶
func (r *ModifyLifecycleHookResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyLifecycleHookResponse) ToJsonString ¶
func (r *ModifyLifecycleHookResponse) ToJsonString() string
type ModifyLifecycleHookResponseParams ¶
type ModifyLifecycleHookResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type ModifyLoadBalancerTargetAttributesRequest ¶
type ModifyLoadBalancerTargetAttributesRequest struct { *tchttp.BaseRequest // Scaling group ID AutoScalingGroupId *string `json:"AutoScalingGroupId,omitempty" name:"AutoScalingGroupId"` // List of application CLBs to modify. Up to 100 CLBs allowed. ForwardLoadBalancers []*ForwardLoadBalancer `json:"ForwardLoadBalancers,omitempty" name:"ForwardLoadBalancers"` }
func NewModifyLoadBalancerTargetAttributesRequest ¶
func NewModifyLoadBalancerTargetAttributesRequest() (request *ModifyLoadBalancerTargetAttributesRequest)
func (*ModifyLoadBalancerTargetAttributesRequest) FromJsonString ¶
func (r *ModifyLoadBalancerTargetAttributesRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyLoadBalancerTargetAttributesRequest) ToJsonString ¶
func (r *ModifyLoadBalancerTargetAttributesRequest) ToJsonString() string
type ModifyLoadBalancerTargetAttributesRequestParams ¶
type ModifyLoadBalancerTargetAttributesRequestParams struct { // Scaling group ID AutoScalingGroupId *string `json:"AutoScalingGroupId,omitempty" name:"AutoScalingGroupId"` // List of application CLBs to modify. Up to 100 CLBs allowed. ForwardLoadBalancers []*ForwardLoadBalancer `json:"ForwardLoadBalancers,omitempty" name:"ForwardLoadBalancers"` }
Predefined struct for user
type ModifyLoadBalancerTargetAttributesResponse ¶
type ModifyLoadBalancerTargetAttributesResponse struct { *tchttp.BaseResponse Response *ModifyLoadBalancerTargetAttributesResponseParams `json:"Response"` }
func NewModifyLoadBalancerTargetAttributesResponse ¶
func NewModifyLoadBalancerTargetAttributesResponse() (response *ModifyLoadBalancerTargetAttributesResponse)
func (*ModifyLoadBalancerTargetAttributesResponse) FromJsonString ¶
func (r *ModifyLoadBalancerTargetAttributesResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyLoadBalancerTargetAttributesResponse) ToJsonString ¶
func (r *ModifyLoadBalancerTargetAttributesResponse) ToJsonString() string
type ModifyLoadBalancerTargetAttributesResponseParams ¶
type ModifyLoadBalancerTargetAttributesResponseParams struct { // Scaling activity ID ActivityId *string `json:"ActivityId,omitempty" name:"ActivityId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type ModifyLoadBalancersRequest ¶
type ModifyLoadBalancersRequest struct { *tchttp.BaseRequest // Auto scaling group ID AutoScalingGroupId *string `json:"AutoScalingGroupId,omitempty" name:"AutoScalingGroupId"` // List of classic CLB IDs. Currently, the maximum length is 20. You cannot specify LoadBalancerIds and ForwardLoadBalancers at the same time. LoadBalancerIds []*string `json:"LoadBalancerIds,omitempty" name:"LoadBalancerIds"` // List of application CLBs. Up to 100 CLBs are allowed. `LoadBalancerIds` and `ForwardLoadBalancers` cannot be specified at the same time. ForwardLoadBalancers []*ForwardLoadBalancer `json:"ForwardLoadBalancers,omitempty" name:"ForwardLoadBalancers"` // CLB verification policy. Valid values: "ALL" and "DIFF". Default value: "ALL" // <br><li> ALL. Verification is successful only when all CLBs are valid. Otherwise, verification fails. // <br><li> DIFF. Only the changes in the CLB parameters are verified. If valid, the verification is successful. Otherwise, verification fails. LoadBalancersCheckPolicy *string `json:"LoadBalancersCheckPolicy,omitempty" name:"LoadBalancersCheckPolicy"` }
func NewModifyLoadBalancersRequest ¶
func NewModifyLoadBalancersRequest() (request *ModifyLoadBalancersRequest)
func (*ModifyLoadBalancersRequest) FromJsonString ¶
func (r *ModifyLoadBalancersRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyLoadBalancersRequest) ToJsonString ¶
func (r *ModifyLoadBalancersRequest) ToJsonString() string
type ModifyLoadBalancersRequestParams ¶
type ModifyLoadBalancersRequestParams struct { // Auto scaling group ID AutoScalingGroupId *string `json:"AutoScalingGroupId,omitempty" name:"AutoScalingGroupId"` // List of classic CLB IDs. Currently, the maximum length is 20. You cannot specify LoadBalancerIds and ForwardLoadBalancers at the same time. LoadBalancerIds []*string `json:"LoadBalancerIds,omitempty" name:"LoadBalancerIds"` // List of application CLBs. Up to 100 CLBs are allowed. `LoadBalancerIds` and `ForwardLoadBalancers` cannot be specified at the same time. ForwardLoadBalancers []*ForwardLoadBalancer `json:"ForwardLoadBalancers,omitempty" name:"ForwardLoadBalancers"` // CLB verification policy. Valid values: "ALL" and "DIFF". Default value: "ALL" // <br><li> ALL. Verification is successful only when all CLBs are valid. Otherwise, verification fails. // <br><li> DIFF. Only the changes in the CLB parameters are verified. If valid, the verification is successful. Otherwise, verification fails. LoadBalancersCheckPolicy *string `json:"LoadBalancersCheckPolicy,omitempty" name:"LoadBalancersCheckPolicy"` }
Predefined struct for user
type ModifyLoadBalancersResponse ¶
type ModifyLoadBalancersResponse struct { *tchttp.BaseResponse Response *ModifyLoadBalancersResponseParams `json:"Response"` }
func NewModifyLoadBalancersResponse ¶
func NewModifyLoadBalancersResponse() (response *ModifyLoadBalancersResponse)
func (*ModifyLoadBalancersResponse) FromJsonString ¶
func (r *ModifyLoadBalancersResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyLoadBalancersResponse) ToJsonString ¶
func (r *ModifyLoadBalancersResponse) ToJsonString() string
type ModifyLoadBalancersResponseParams ¶
type ModifyLoadBalancersResponseParams struct { // Scaling activity ID ActivityId *string `json:"ActivityId,omitempty" name:"ActivityId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type ModifyNotificationConfigurationRequest ¶
type ModifyNotificationConfigurationRequest struct { *tchttp.BaseRequest // ID of the notification to be modified. AutoScalingNotificationId *string `json:"AutoScalingNotificationId,omitempty" name:"AutoScalingNotificationId"` // Notification type, i.e., the set of types of notifications to be subscribed to. Value range: // <li>SCALE_OUT_SUCCESSFUL: scale-out succeeded</li> // <li>SCALE_OUT_FAILED: scale-out failed</li> // <li>SCALE_IN_SUCCESSFUL: scale-in succeeded</li> // <li>SCALE_IN_FAILED: scale-in failed</li> // <li>REPLACE_UNHEALTHY_INSTANCE_SUCCESSFUL: unhealthy instance replacement succeeded</li> // <li>REPLACE_UNHEALTHY_INSTANCE_FAILED: unhealthy instance replacement failed</li> NotificationTypes []*string `json:"NotificationTypes,omitempty" name:"NotificationTypes"` // Notification group ID, which is the set of user group IDs. You can query the user group IDs through the [ListGroups](https://intl.cloud.tencent.com/document/product/598/34589?from_cn_redirect=1) API. NotificationUserGroupIds []*string `json:"NotificationUserGroupIds,omitempty" name:"NotificationUserGroupIds"` // CMQ or TDMQ CMQ queue name. QueueName *string `json:"QueueName,omitempty" name:"QueueName"` // CMQ or TDMQ CMQ toipc name. TopicName *string `json:"TopicName,omitempty" name:"TopicName"` }
func NewModifyNotificationConfigurationRequest ¶
func NewModifyNotificationConfigurationRequest() (request *ModifyNotificationConfigurationRequest)
func (*ModifyNotificationConfigurationRequest) FromJsonString ¶
func (r *ModifyNotificationConfigurationRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyNotificationConfigurationRequest) ToJsonString ¶
func (r *ModifyNotificationConfigurationRequest) ToJsonString() string
type ModifyNotificationConfigurationRequestParams ¶
type ModifyNotificationConfigurationRequestParams struct { // ID of the notification to be modified. AutoScalingNotificationId *string `json:"AutoScalingNotificationId,omitempty" name:"AutoScalingNotificationId"` // Notification type, i.e., the set of types of notifications to be subscribed to. Value range: // <li>SCALE_OUT_SUCCESSFUL: scale-out succeeded</li> // <li>SCALE_OUT_FAILED: scale-out failed</li> // <li>SCALE_IN_SUCCESSFUL: scale-in succeeded</li> // <li>SCALE_IN_FAILED: scale-in failed</li> // <li>REPLACE_UNHEALTHY_INSTANCE_SUCCESSFUL: unhealthy instance replacement succeeded</li> // <li>REPLACE_UNHEALTHY_INSTANCE_FAILED: unhealthy instance replacement failed</li> NotificationTypes []*string `json:"NotificationTypes,omitempty" name:"NotificationTypes"` // Notification group ID, which is the set of user group IDs. You can query the user group IDs through the [ListGroups](https://intl.cloud.tencent.com/document/product/598/34589?from_cn_redirect=1) API. NotificationUserGroupIds []*string `json:"NotificationUserGroupIds,omitempty" name:"NotificationUserGroupIds"` // CMQ or TDMQ CMQ queue name. QueueName *string `json:"QueueName,omitempty" name:"QueueName"` // CMQ or TDMQ CMQ toipc name. TopicName *string `json:"TopicName,omitempty" name:"TopicName"` }
Predefined struct for user
type ModifyNotificationConfigurationResponse ¶
type ModifyNotificationConfigurationResponse struct { *tchttp.BaseResponse Response *ModifyNotificationConfigurationResponseParams `json:"Response"` }
func NewModifyNotificationConfigurationResponse ¶
func NewModifyNotificationConfigurationResponse() (response *ModifyNotificationConfigurationResponse)
func (*ModifyNotificationConfigurationResponse) FromJsonString ¶
func (r *ModifyNotificationConfigurationResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyNotificationConfigurationResponse) ToJsonString ¶
func (r *ModifyNotificationConfigurationResponse) ToJsonString() string
type ModifyNotificationConfigurationResponseParams ¶
type ModifyNotificationConfigurationResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type ModifyScalingPolicyRequest ¶
type ModifyScalingPolicyRequest struct { *tchttp.BaseRequest // Alarm policy ID. AutoScalingPolicyId *string `json:"AutoScalingPolicyId,omitempty" name:"AutoScalingPolicyId"` // Alarm policy name. ScalingPolicyName *string `json:"ScalingPolicyName,omitempty" name:"ScalingPolicyName"` // The method to adjust the desired number of instances after the alarm is triggered. Value range: <br><li>CHANGE_IN_CAPACITY: Increase or decrease the desired number of instances </li><li>EXACT_CAPACITY: Adjust to the specified desired number of instances </li> <li>PERCENT_CHANGE_IN_CAPACITY: Adjust the desired number of instances by percentage </li> AdjustmentType *string `json:"AdjustmentType,omitempty" name:"AdjustmentType"` // The adjusted value of desired number of instances after the alarm is triggered. Value range: <br><li>When AdjustmentType is CHANGE_IN_CAPACITY, if AdjustmentValue is a positive value, some new instances will be added after the alarm is triggered, and if it is a negative value, some existing instances will be removed after the alarm is triggered </li> <li> When AdjustmentType is EXACT_CAPACITY, the value of AdjustmentValue is the desired number of instances after the alarm is triggered, which should be equal to or greater than 0 </li> <li> When AdjustmentType is PERCENT_CHANGE_IN_CAPACITY, if AdjusmentValue (in %) is a positive value, new instances will be added by percentage after the alarm is triggered; if it is a negative value, existing instances will be removed by percentage after the alarm is triggered. AdjustmentValue *int64 `json:"AdjustmentValue,omitempty" name:"AdjustmentValue"` // Cooldown period in seconds. Cooldown *uint64 `json:"Cooldown,omitempty" name:"Cooldown"` // Alarm monitoring metric. MetricAlarm *MetricAlarm `json:"MetricAlarm,omitempty" name:"MetricAlarm"` // Notification group ID, which is the set of user group IDs. You can query the user group IDs through the [ListGroups](https://intl.cloud.tencent.com/document/product/598/34589?from_cn_redirect=1) API. // If you want to clear the user group, you need to pass in the specific string "NULL" to the list. NotificationUserGroupIds []*string `json:"NotificationUserGroupIds,omitempty" name:"NotificationUserGroupIds"` }
func NewModifyScalingPolicyRequest ¶
func NewModifyScalingPolicyRequest() (request *ModifyScalingPolicyRequest)
func (*ModifyScalingPolicyRequest) FromJsonString ¶
func (r *ModifyScalingPolicyRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyScalingPolicyRequest) ToJsonString ¶
func (r *ModifyScalingPolicyRequest) ToJsonString() string
type ModifyScalingPolicyRequestParams ¶
type ModifyScalingPolicyRequestParams struct { // Alarm policy ID. AutoScalingPolicyId *string `json:"AutoScalingPolicyId,omitempty" name:"AutoScalingPolicyId"` // Alarm policy name. ScalingPolicyName *string `json:"ScalingPolicyName,omitempty" name:"ScalingPolicyName"` // The method to adjust the desired number of instances after the alarm is triggered. Value range: <br><li>CHANGE_IN_CAPACITY: Increase or decrease the desired number of instances </li><li>EXACT_CAPACITY: Adjust to the specified desired number of instances </li> <li>PERCENT_CHANGE_IN_CAPACITY: Adjust the desired number of instances by percentage </li> AdjustmentType *string `json:"AdjustmentType,omitempty" name:"AdjustmentType"` // The adjusted value of desired number of instances after the alarm is triggered. Value range: <br><li>When AdjustmentType is CHANGE_IN_CAPACITY, if AdjustmentValue is a positive value, some new instances will be added after the alarm is triggered, and if it is a negative value, some existing instances will be removed after the alarm is triggered </li> <li> When AdjustmentType is EXACT_CAPACITY, the value of AdjustmentValue is the desired number of instances after the alarm is triggered, which should be equal to or greater than 0 </li> <li> When AdjustmentType is PERCENT_CHANGE_IN_CAPACITY, if AdjusmentValue (in %) is a positive value, new instances will be added by percentage after the alarm is triggered; if it is a negative value, existing instances will be removed by percentage after the alarm is triggered. AdjustmentValue *int64 `json:"AdjustmentValue,omitempty" name:"AdjustmentValue"` // Cooldown period in seconds. Cooldown *uint64 `json:"Cooldown,omitempty" name:"Cooldown"` // Alarm monitoring metric. MetricAlarm *MetricAlarm `json:"MetricAlarm,omitempty" name:"MetricAlarm"` // Notification group ID, which is the set of user group IDs. You can query the user group IDs through the [ListGroups](https://intl.cloud.tencent.com/document/product/598/34589?from_cn_redirect=1) API. // If you want to clear the user group, you need to pass in the specific string "NULL" to the list. NotificationUserGroupIds []*string `json:"NotificationUserGroupIds,omitempty" name:"NotificationUserGroupIds"` }
Predefined struct for user
type ModifyScalingPolicyResponse ¶
type ModifyScalingPolicyResponse struct { *tchttp.BaseResponse Response *ModifyScalingPolicyResponseParams `json:"Response"` }
func NewModifyScalingPolicyResponse ¶
func NewModifyScalingPolicyResponse() (response *ModifyScalingPolicyResponse)
func (*ModifyScalingPolicyResponse) FromJsonString ¶
func (r *ModifyScalingPolicyResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyScalingPolicyResponse) ToJsonString ¶
func (r *ModifyScalingPolicyResponse) ToJsonString() string
type ModifyScalingPolicyResponseParams ¶
type ModifyScalingPolicyResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type ModifyScheduledActionRequest ¶
type ModifyScheduledActionRequest struct { *tchttp.BaseRequest // ID of the scheduled task to be edited ScheduledActionId *string `json:"ScheduledActionId,omitempty" name:"ScheduledActionId"` // Scheduled task name, which can only contain letters, numbers, underscores, hyphens ("-"), and decimal points with a maximum length of 60 bytes and must be unique in an auto scaling group. ScheduledActionName *string `json:"ScheduledActionName,omitempty" name:"ScheduledActionName"` // The maximum number of instances set for the auto scaling group when the scheduled task is triggered. MaxSize *uint64 `json:"MaxSize,omitempty" name:"MaxSize"` // The minimum number of instances set for the auto scaling group when the scheduled task is triggered. MinSize *uint64 `json:"MinSize,omitempty" name:"MinSize"` // The desired number of instances set for the auto scaling group when the scheduled task is triggered. DesiredCapacity *uint64 `json:"DesiredCapacity,omitempty" name:"DesiredCapacity"` // Initial triggered time of the scheduled task. The value is in `Beijing time` (UTC+8) in the format of `YYYY-MM-DDThh:mm:ss+08:00` according to the `ISO8601` standard. StartTime *string `json:"StartTime,omitempty" name:"StartTime"` // End time of the scheduled task. The value is in `Beijing time` (UTC+8) in the format of `YYYY-MM-DDThh:mm:ss+08:00` according to the `ISO8601` standard. <br>This parameter and `Recurrence` need to be specified at the same time. After the end time, the scheduled task will no longer take effect. EndTime *string `json:"EndTime,omitempty" name:"EndTime"` // Repeating mode of the scheduled task, which is in standard cron format. <br>This parameter and `EndTime` need to be specified at the same time. Recurrence *string `json:"Recurrence,omitempty" name:"Recurrence"` }
func NewModifyScheduledActionRequest ¶
func NewModifyScheduledActionRequest() (request *ModifyScheduledActionRequest)
func (*ModifyScheduledActionRequest) FromJsonString ¶
func (r *ModifyScheduledActionRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyScheduledActionRequest) ToJsonString ¶
func (r *ModifyScheduledActionRequest) ToJsonString() string
type ModifyScheduledActionRequestParams ¶
type ModifyScheduledActionRequestParams struct { // ID of the scheduled task to be edited ScheduledActionId *string `json:"ScheduledActionId,omitempty" name:"ScheduledActionId"` // Scheduled task name, which can only contain letters, numbers, underscores, hyphens ("-"), and decimal points with a maximum length of 60 bytes and must be unique in an auto scaling group. ScheduledActionName *string `json:"ScheduledActionName,omitempty" name:"ScheduledActionName"` // The maximum number of instances set for the auto scaling group when the scheduled task is triggered. MaxSize *uint64 `json:"MaxSize,omitempty" name:"MaxSize"` // The minimum number of instances set for the auto scaling group when the scheduled task is triggered. MinSize *uint64 `json:"MinSize,omitempty" name:"MinSize"` // The desired number of instances set for the auto scaling group when the scheduled task is triggered. DesiredCapacity *uint64 `json:"DesiredCapacity,omitempty" name:"DesiredCapacity"` // Initial triggered time of the scheduled task. The value is in `Beijing time` (UTC+8) in the format of `YYYY-MM-DDThh:mm:ss+08:00` according to the `ISO8601` standard. StartTime *string `json:"StartTime,omitempty" name:"StartTime"` // End time of the scheduled task. The value is in `Beijing time` (UTC+8) in the format of `YYYY-MM-DDThh:mm:ss+08:00` according to the `ISO8601` standard. <br>This parameter and `Recurrence` need to be specified at the same time. After the end time, the scheduled task will no longer take effect. EndTime *string `json:"EndTime,omitempty" name:"EndTime"` // Repeating mode of the scheduled task, which is in standard cron format. <br>This parameter and `EndTime` need to be specified at the same time. Recurrence *string `json:"Recurrence,omitempty" name:"Recurrence"` }
Predefined struct for user
type ModifyScheduledActionResponse ¶
type ModifyScheduledActionResponse struct { *tchttp.BaseResponse Response *ModifyScheduledActionResponseParams `json:"Response"` }
func NewModifyScheduledActionResponse ¶
func NewModifyScheduledActionResponse() (response *ModifyScheduledActionResponse)
func (*ModifyScheduledActionResponse) FromJsonString ¶
func (r *ModifyScheduledActionResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyScheduledActionResponse) ToJsonString ¶
func (r *ModifyScheduledActionResponse) ToJsonString() string
type ModifyScheduledActionResponseParams ¶
type ModifyScheduledActionResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type NotificationTarget ¶
type NotificationTarget struct { // Target type. Valid values: `CMQ_QUEUE`, `CMQ_TOPIC`, `TDMQ_CMQ_QUEUE` and `TDMQ_CMQ_TOPIC`. // <li> CMQ_QUEUE: Tencent Cloud message queue - queue model.</li> // <li> CMQ_TOPIC: Tencent Cloud message queue - topic model.</li> // <li> TDMQ_CMQ_QUEUE: Tencent Cloud TDMQ message queue - queue model.</li> // <li> TDMQ_CMQ_TOPIC: Tencent Cloud TDMQ message queue - topic model.</li> TargetType *string `json:"TargetType,omitempty" name:"TargetType"` // Queue name. This parameter is required when `TargetType` is `CMQ_QUEUE` or `TDMQ_CMQ_QUEUE`. QueueName *string `json:"QueueName,omitempty" name:"QueueName"` // Topic name. This parameter is required when `TargetType` is `CMQ_TOPIC` or `TDMQ_CMQ_TOPIC`. TopicName *string `json:"TopicName,omitempty" name:"TopicName"` }
type RemoveInstancesRequest ¶
type RemoveInstancesRequest struct { *tchttp.BaseRequest // Auto scaling group ID AutoScalingGroupId *string `json:"AutoScalingGroupId,omitempty" name:"AutoScalingGroupId"` // List of CVM instance IDs InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` }
func NewRemoveInstancesRequest ¶
func NewRemoveInstancesRequest() (request *RemoveInstancesRequest)
func (*RemoveInstancesRequest) FromJsonString ¶
func (r *RemoveInstancesRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*RemoveInstancesRequest) ToJsonString ¶
func (r *RemoveInstancesRequest) ToJsonString() string
type RemoveInstancesRequestParams ¶
type RemoveInstancesRequestParams struct { // Auto scaling group ID AutoScalingGroupId *string `json:"AutoScalingGroupId,omitempty" name:"AutoScalingGroupId"` // List of CVM instance IDs InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` }
Predefined struct for user
type RemoveInstancesResponse ¶
type RemoveInstancesResponse struct { *tchttp.BaseResponse Response *RemoveInstancesResponseParams `json:"Response"` }
func NewRemoveInstancesResponse ¶
func NewRemoveInstancesResponse() (response *RemoveInstancesResponse)
func (*RemoveInstancesResponse) FromJsonString ¶
func (r *RemoveInstancesResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*RemoveInstancesResponse) ToJsonString ¶
func (r *RemoveInstancesResponse) ToJsonString() string
type RemoveInstancesResponseParams ¶
type RemoveInstancesResponseParams struct { // Scaling activity ID ActivityId *string `json:"ActivityId,omitempty" name:"ActivityId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type RunAutomationServiceEnabled ¶
type RunAutomationServiceEnabled struct { // Whether to enable [TencentCloud Automation Tools](https://intl.cloud.tencent.com/document/product/1340?from_cn_redirect=1). Valid values:<br><li>`TRUE`: Enable<br><li>`FALSE`: Not enable. // Note: This field may return `null`, indicating that no valid values can be obtained. Enabled *bool `json:"Enabled,omitempty" name:"Enabled"` }
type RunMonitorServiceEnabled ¶
type RunMonitorServiceEnabled struct { // Whether to enable the [Cloud Monitor](https://intl.cloud.tencent.com/document/product/248?from_cn_redirect=1) service. Value range: <br><li>TRUE: Cloud Monitor is enabled <br><li>FALSE: Cloud Monitor is disabled <br><br>Default value: TRUE. | // Note: This field may return null, indicating that no valid values can be obtained. Enabled *bool `json:"Enabled,omitempty" name:"Enabled"` }
type RunSecurityServiceEnabled ¶
type RunSecurityServiceEnabled struct { // Whether to enable the [Cloud Security](https://intl.cloud.tencent.com/document/product/296?from_cn_redirect=1) service. Value range: <br><li>TRUE: Cloud Security is enabled <br><li>FALSE: Cloud Security is disabled <br><br>Default value: TRUE. // Note: This field may return null, indicating that no valid values can be obtained. Enabled *bool `json:"Enabled,omitempty" name:"Enabled"` }
type ScaleInInstancesRequest ¶
type ScaleInInstancesRequest struct { *tchttp.BaseRequest // Scaling group ID AutoScalingGroupId *string `json:"AutoScalingGroupId,omitempty" name:"AutoScalingGroupId"` // Number of instances to be reduced ScaleInNumber *uint64 `json:"ScaleInNumber,omitempty" name:"ScaleInNumber"` }
func NewScaleInInstancesRequest ¶
func NewScaleInInstancesRequest() (request *ScaleInInstancesRequest)
func (*ScaleInInstancesRequest) FromJsonString ¶
func (r *ScaleInInstancesRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ScaleInInstancesRequest) ToJsonString ¶
func (r *ScaleInInstancesRequest) ToJsonString() string
type ScaleInInstancesRequestParams ¶
type ScaleInInstancesRequestParams struct { // Scaling group ID AutoScalingGroupId *string `json:"AutoScalingGroupId,omitempty" name:"AutoScalingGroupId"` // Number of instances to be reduced ScaleInNumber *uint64 `json:"ScaleInNumber,omitempty" name:"ScaleInNumber"` }
Predefined struct for user
type ScaleInInstancesResponse ¶
type ScaleInInstancesResponse struct { *tchttp.BaseResponse Response *ScaleInInstancesResponseParams `json:"Response"` }
func NewScaleInInstancesResponse ¶
func NewScaleInInstancesResponse() (response *ScaleInInstancesResponse)
func (*ScaleInInstancesResponse) FromJsonString ¶
func (r *ScaleInInstancesResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ScaleInInstancesResponse) ToJsonString ¶
func (r *ScaleInInstancesResponse) ToJsonString() string
type ScaleInInstancesResponseParams ¶
type ScaleInInstancesResponseParams struct { // Scaling activity ID ActivityId *string `json:"ActivityId,omitempty" name:"ActivityId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type ScaleOutInstancesRequest ¶
type ScaleOutInstancesRequest struct { *tchttp.BaseRequest // Scaling group ID AutoScalingGroupId *string `json:"AutoScalingGroupId,omitempty" name:"AutoScalingGroupId"` // Number of instances to be added ScaleOutNumber *uint64 `json:"ScaleOutNumber,omitempty" name:"ScaleOutNumber"` }
func NewScaleOutInstancesRequest ¶
func NewScaleOutInstancesRequest() (request *ScaleOutInstancesRequest)
func (*ScaleOutInstancesRequest) FromJsonString ¶
func (r *ScaleOutInstancesRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ScaleOutInstancesRequest) ToJsonString ¶
func (r *ScaleOutInstancesRequest) ToJsonString() string
type ScaleOutInstancesRequestParams ¶
type ScaleOutInstancesRequestParams struct { // Scaling group ID AutoScalingGroupId *string `json:"AutoScalingGroupId,omitempty" name:"AutoScalingGroupId"` // Number of instances to be added ScaleOutNumber *uint64 `json:"ScaleOutNumber,omitempty" name:"ScaleOutNumber"` }
Predefined struct for user
type ScaleOutInstancesResponse ¶
type ScaleOutInstancesResponse struct { *tchttp.BaseResponse Response *ScaleOutInstancesResponseParams `json:"Response"` }
func NewScaleOutInstancesResponse ¶
func NewScaleOutInstancesResponse() (response *ScaleOutInstancesResponse)
func (*ScaleOutInstancesResponse) FromJsonString ¶
func (r *ScaleOutInstancesResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ScaleOutInstancesResponse) ToJsonString ¶
func (r *ScaleOutInstancesResponse) ToJsonString() string
type ScaleOutInstancesResponseParams ¶
type ScaleOutInstancesResponseParams struct { // Scaling activity ID ActivityId *string `json:"ActivityId,omitempty" name:"ActivityId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type ScalingPolicy ¶
type ScalingPolicy struct { // Auto scaling group ID. AutoScalingGroupId *string `json:"AutoScalingGroupId,omitempty" name:"AutoScalingGroupId"` // Alarm trigger policy ID. AutoScalingPolicyId *string `json:"AutoScalingPolicyId,omitempty" name:"AutoScalingPolicyId"` // Alarm trigger policy name. ScalingPolicyName *string `json:"ScalingPolicyName,omitempty" name:"ScalingPolicyName"` // The method to adjust the desired number of instances after the alarm is triggered. Value range: <br><li>CHANGE_IN_CAPACITY: Increase or decrease the desired number of instances </li><li>EXACT_CAPACITY: Adjust to the specified desired number of instances </li> <li>PERCENT_CHANGE_IN_CAPACITY: Adjust the desired number of instances by percentage </li> AdjustmentType *string `json:"AdjustmentType,omitempty" name:"AdjustmentType"` // The adjusted value of desired number of instances after the alarm is triggered. AdjustmentValue *int64 `json:"AdjustmentValue,omitempty" name:"AdjustmentValue"` // Cooldown period. Cooldown *uint64 `json:"Cooldown,omitempty" name:"Cooldown"` // Alarm monitoring metric. MetricAlarm *MetricAlarm `json:"MetricAlarm,omitempty" name:"MetricAlarm"` // Notification group ID, which is the set of user group IDs. NotificationUserGroupIds []*string `json:"NotificationUserGroupIds,omitempty" name:"NotificationUserGroupIds"` }
type ScheduledAction ¶
type ScheduledAction struct { // Scheduled task ID. ScheduledActionId *string `json:"ScheduledActionId,omitempty" name:"ScheduledActionId"` // Scheduled task name. ScheduledActionName *string `json:"ScheduledActionName,omitempty" name:"ScheduledActionName"` // ID of the auto scaling group where the scheduled task is located. AutoScalingGroupId *string `json:"AutoScalingGroupId,omitempty" name:"AutoScalingGroupId"` // Start time of the scheduled task. The value is in `Beijing time` (UTC+8) in the format of `YYYY-MM-DDThh:mm:ss+08:00` according to the `ISO8601` standard. StartTime *string `json:"StartTime,omitempty" name:"StartTime"` // Repeating mode of the scheduled task. Recurrence *string `json:"Recurrence,omitempty" name:"Recurrence"` // End time of the scheduled task. The value is in `Beijing time` (UTC+8) in the format of `YYYY-MM-DDThh:mm:ss+08:00` according to the `ISO8601` standard. EndTime *string `json:"EndTime,omitempty" name:"EndTime"` // Maximum number of instances set by the scheduled task. MaxSize *uint64 `json:"MaxSize,omitempty" name:"MaxSize"` // Desired number of instances set by the scheduled task. DesiredCapacity *uint64 `json:"DesiredCapacity,omitempty" name:"DesiredCapacity"` // Minimum number of instances set by the scheduled task. MinSize *uint64 `json:"MinSize,omitempty" name:"MinSize"` // Creation time of the scheduled task. The value is in `UTC time` in the format of `YYYY-MM-DDThh:mm:ssZ` according to the `ISO8601` standard. CreatedTime *string `json:"CreatedTime,omitempty" name:"CreatedTime"` // Specifies how the scheduled action is executed. <br><li>`CRONTAB`: execute repeatedly <br><li>`ONCE`: execute only once ScheduledType *string `json:"ScheduledType,omitempty" name:"ScheduledType"` }
type ServiceSettings ¶
type ServiceSettings struct { // Enables unhealthy instance replacement. If this feature is enabled, AS will replace instances that are flagged as unhealthy by Cloud Monitor. If this parameter is not specified, the value will be False by default. ReplaceMonitorUnhealthy *bool `json:"ReplaceMonitorUnhealthy,omitempty" name:"ReplaceMonitorUnhealthy"` // Valid values: // CLASSIC_SCALING: this is the typical scaling method, which creates and terminates instances to perform scaling operations. // WAKE_UP_STOPPED_SCALING: this scaling method first tries to start stopped instances. If the number of instances woken up is insufficient, the system creates new instances for scale-out. For scale-in, instances are terminated as in the typical method. You can use the StopAutoScalingInstances API to stop instances in the scaling group. Scale-out operations triggered by alarms will still create new instances. // Default value: CLASSIC_SCALING ScalingMode *string `json:"ScalingMode,omitempty" name:"ScalingMode"` // Enable unhealthy instance replacement. If this feature is enabled, AS will replace instances that are found unhealthy in the CLB health check. If this parameter is not specified, the default value `False` will be used. ReplaceLoadBalancerUnhealthy *bool `json:"ReplaceLoadBalancerUnhealthy,omitempty" name:"ReplaceLoadBalancerUnhealthy"` }
type SetInstancesProtectionRequest ¶
type SetInstancesProtectionRequest struct { *tchttp.BaseRequest // Auto scaling group ID. AutoScalingGroupId *string `json:"AutoScalingGroupId,omitempty" name:"AutoScalingGroupId"` // Instance ID. InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` // Whether to enable scale-in protection for this instance ProtectedFromScaleIn *bool `json:"ProtectedFromScaleIn,omitempty" name:"ProtectedFromScaleIn"` }
func NewSetInstancesProtectionRequest ¶
func NewSetInstancesProtectionRequest() (request *SetInstancesProtectionRequest)
func (*SetInstancesProtectionRequest) FromJsonString ¶
func (r *SetInstancesProtectionRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*SetInstancesProtectionRequest) ToJsonString ¶
func (r *SetInstancesProtectionRequest) ToJsonString() string
type SetInstancesProtectionRequestParams ¶
type SetInstancesProtectionRequestParams struct { // Auto scaling group ID. AutoScalingGroupId *string `json:"AutoScalingGroupId,omitempty" name:"AutoScalingGroupId"` // Instance ID. InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` // Whether to enable scale-in protection for this instance ProtectedFromScaleIn *bool `json:"ProtectedFromScaleIn,omitempty" name:"ProtectedFromScaleIn"` }
Predefined struct for user
type SetInstancesProtectionResponse ¶
type SetInstancesProtectionResponse struct { *tchttp.BaseResponse Response *SetInstancesProtectionResponseParams `json:"Response"` }
func NewSetInstancesProtectionResponse ¶
func NewSetInstancesProtectionResponse() (response *SetInstancesProtectionResponse)
func (*SetInstancesProtectionResponse) FromJsonString ¶
func (r *SetInstancesProtectionResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*SetInstancesProtectionResponse) ToJsonString ¶
func (r *SetInstancesProtectionResponse) ToJsonString() string
type SetInstancesProtectionResponseParams ¶
type SetInstancesProtectionResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type SpotMarketOptions ¶
type SpotMarketOptions struct { // Bidding price such as "1.05" MaxPrice *string `json:"MaxPrice,omitempty" name:"MaxPrice"` // Bid request type. Currently, only "one-time" type is supported. Default value: one-time // Note: This field may return null, indicating that no valid values can be obtained. SpotInstanceType *string `json:"SpotInstanceType,omitempty" name:"SpotInstanceType"` }
type SpotMixedAllocationPolicy ¶
type SpotMixedAllocationPolicy struct { // The minimum number of the scaling group’s capacity that must be fulfilled by pay-as-you-go instances. It defaults to 0 if not specified. Its value cannot exceed the max capacity of the scaling group. // Note: this field may return `null`, indicating that no valid value can be obtained. BaseCapacity *uint64 `json:"BaseCapacity,omitempty" name:"BaseCapacity"` // Controls the percentage of pay-as-you-go instances for the additional capacity beyond `BaseCapacity`. Valid range: 0-100. The value 0 indicates that only spot instances are provisioned, while the value 100 indicates that only pay-as-you-go instances are provisioned. It defaults to 70 if not specified. The number of pay-as-you-go instances calculated on the percentage should be rounded up. // For example, if the desired capacity is 3, the `BaseCapacity` is set to 1, and the `OnDemandPercentageAboveBaseCapacity` is set to 1, the scaling group will have 2 pay-as-you-go instance (one comes from the base capacity, and the other comes from the rounded up value of the proportion), and 1 spot instance. // Note: this field may return `null`, indicating that no valid value can be obtained. OnDemandPercentageAboveBaseCapacity *uint64 `json:"OnDemandPercentageAboveBaseCapacity,omitempty" name:"OnDemandPercentageAboveBaseCapacity"` // Specifies how to assign spot instances in a mixed instance mode. Valid values: `COST_OPTIMIZED` and `CAPACITY_OPTIMIZED`; default value: `COST_OPTIMIZED`. // <br><li>`COST_OPTIMIZED`: the lowest cost policy. For each model in the launch configuration, AS tries to purchase it based on the lowest unit price per core in each availability zone. If the purchase failed, try the second-lowest unit price. // <br><li>`CAPACITY_OPTIMIZED`: the optimal capacity policy. For each model in the launch configuration, AS tries to purchase it based on the largest stock in each availability zone, minimizing the automatic repossession probability of spot instances. // Note: this field may return `null`, indicating that no valid value can be obtained. SpotAllocationStrategy *string `json:"SpotAllocationStrategy,omitempty" name:"SpotAllocationStrategy"` // Whether to replace with pay-as-you go instances. Valid values: // <br><li>`TRUE`: yes. After the purchase of spot instances failed due to insufficient stock and other reasons, purchase pay-as-you-go instances. // <br><li>`FALSE`: no. The scaling group only tries the configured model of spot instances when it needs to add spot instances. // // Default value: `TRUE`. // Note: this field may return `null`, indicating that no valid value can be obtained. CompensateWithBaseInstance *bool `json:"CompensateWithBaseInstance,omitempty" name:"CompensateWithBaseInstance"` }
type StartAutoScalingInstancesRequest ¶
type StartAutoScalingInstancesRequest struct { *tchttp.BaseRequest // The scaling group ID. AutoScalingGroupId *string `json:"AutoScalingGroupId,omitempty" name:"AutoScalingGroupId"` // The list of the CVM instances you want to start up. InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` }
func NewStartAutoScalingInstancesRequest ¶
func NewStartAutoScalingInstancesRequest() (request *StartAutoScalingInstancesRequest)
func (*StartAutoScalingInstancesRequest) FromJsonString ¶
func (r *StartAutoScalingInstancesRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*StartAutoScalingInstancesRequest) ToJsonString ¶
func (r *StartAutoScalingInstancesRequest) ToJsonString() string
type StartAutoScalingInstancesRequestParams ¶
type StartAutoScalingInstancesRequestParams struct { // The scaling group ID. AutoScalingGroupId *string `json:"AutoScalingGroupId,omitempty" name:"AutoScalingGroupId"` // The list of the CVM instances you want to start up. InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` }
Predefined struct for user
type StartAutoScalingInstancesResponse ¶
type StartAutoScalingInstancesResponse struct { *tchttp.BaseResponse Response *StartAutoScalingInstancesResponseParams `json:"Response"` }
func NewStartAutoScalingInstancesResponse ¶
func NewStartAutoScalingInstancesResponse() (response *StartAutoScalingInstancesResponse)
func (*StartAutoScalingInstancesResponse) FromJsonString ¶
func (r *StartAutoScalingInstancesResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*StartAutoScalingInstancesResponse) ToJsonString ¶
func (r *StartAutoScalingInstancesResponse) ToJsonString() string
type StartAutoScalingInstancesResponseParams ¶
type StartAutoScalingInstancesResponseParams struct { // The scaling activity ID. ActivityId *string `json:"ActivityId,omitempty" name:"ActivityId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type StopAutoScalingInstancesRequest ¶
type StopAutoScalingInstancesRequest struct { *tchttp.BaseRequest // The scaling group ID. AutoScalingGroupId *string `json:"AutoScalingGroupId,omitempty" name:"AutoScalingGroupId"` // The list of the CVM instances you want to shut down. InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` // Whether the shutdown instances will be charged. Valid values: // KEEP_CHARGING: keep charging after shutdown. // STOP_CHARGING: stop charging after shutdown. // Default value: KEEP_CHARGING. StoppedMode *string `json:"StoppedMode,omitempty" name:"StoppedMode"` }
func NewStopAutoScalingInstancesRequest ¶
func NewStopAutoScalingInstancesRequest() (request *StopAutoScalingInstancesRequest)
func (*StopAutoScalingInstancesRequest) FromJsonString ¶
func (r *StopAutoScalingInstancesRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*StopAutoScalingInstancesRequest) ToJsonString ¶
func (r *StopAutoScalingInstancesRequest) ToJsonString() string
type StopAutoScalingInstancesRequestParams ¶
type StopAutoScalingInstancesRequestParams struct { // The scaling group ID. AutoScalingGroupId *string `json:"AutoScalingGroupId,omitempty" name:"AutoScalingGroupId"` // The list of the CVM instances you want to shut down. InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` // Whether the shutdown instances will be charged. Valid values: // KEEP_CHARGING: keep charging after shutdown. // STOP_CHARGING: stop charging after shutdown. // Default value: KEEP_CHARGING. StoppedMode *string `json:"StoppedMode,omitempty" name:"StoppedMode"` }
Predefined struct for user
type StopAutoScalingInstancesResponse ¶
type StopAutoScalingInstancesResponse struct { *tchttp.BaseResponse Response *StopAutoScalingInstancesResponseParams `json:"Response"` }
func NewStopAutoScalingInstancesResponse ¶
func NewStopAutoScalingInstancesResponse() (response *StopAutoScalingInstancesResponse)
func (*StopAutoScalingInstancesResponse) FromJsonString ¶
func (r *StopAutoScalingInstancesResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*StopAutoScalingInstancesResponse) ToJsonString ¶
func (r *StopAutoScalingInstancesResponse) ToJsonString() string
type StopAutoScalingInstancesResponseParams ¶
type StopAutoScalingInstancesResponseParams struct { // The scaling activity ID. ActivityId *string `json:"ActivityId,omitempty" name:"ActivityId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type SystemDisk ¶
type SystemDisk struct { // System disk type. For more information on limits of system disk types, see [Cloud Disk Types](https://intl.cloud.tencent.com/document/product/362/31636). Valid values:<br><li>`LOCAL_BASIC`: local disk <br><li>`LOCAL_SSD`: local SSD disk <br><li>`CLOUD_BASIC`: HDD cloud disk <br><li>`CLOUD_PREMIUM`: premium cloud storage<br><li>`CLOUD_SSD`: SSD cloud disk <br><br>Default value: `CLOUD_PREMIUM`. // Note: this field may return `null`, indicating that no valid value can be obtained. DiskType *string `json:"DiskType,omitempty" name:"DiskType"` // System disk size in GB. Default value: 50 // Note: This field may return null, indicating that no valid values can be obtained. DiskSize *uint64 `json:"DiskSize,omitempty" name:"DiskSize"` }
type Tag ¶
type Tag struct { // Tag key Key *string `json:"Key,omitempty" name:"Key"` // Tag value Value *string `json:"Value,omitempty" name:"Value"` // Type of the resource binded to the tag. Currently supported types include "auto-scaling-group" // Note: This field may return null, indicating that no valid values can be obtained. ResourceType *string `json:"ResourceType,omitempty" name:"ResourceType"` }
type TargetAttribute ¶
type UpgradeLaunchConfigurationRequest ¶
type UpgradeLaunchConfigurationRequest struct { *tchttp.BaseRequest // Launch configuration ID. LaunchConfigurationId *string `json:"LaunchConfigurationId,omitempty" name:"LaunchConfigurationId"` // [Image](https://intl.cloud.tencent.com/document/product/213/4940?from_cn_redirect=1) ID in the format of `img-xxx`. There are three types of images: <br/><li>Public images </li><li>Custom images </li><li>Shared images </li><br/>You can obtain the image IDs in the [CVM console](https://console.cloud.tencent.com/cvm/image?rid=1&imageType=PUBLIC_IMAGE).</li><li>You can also use the [DescribeImages](https://intl.cloud.tencent.com/document/api/213/15715?from_cn_redirect=1) and look for `ImageId` in the response.</li> ImageId *string `json:"ImageId,omitempty" name:"ImageId"` // List of instance models. Different instance models specify different resource specifications. Up to 5 instance models can be supported. InstanceTypes []*string `json:"InstanceTypes,omitempty" name:"InstanceTypes"` // Display name of the launch configuration, which can contain letters, digits, underscores and hyphens (-), and dots. Up to of 60 bytes allowed.. LaunchConfigurationName *string `json:"LaunchConfigurationName,omitempty" name:"LaunchConfigurationName"` // Information of the instance's data disk configuration. If this parameter is not specified, no data disk is purchased by default. Up to 11 data disks can be supported. DataDisks []*DataDisk `json:"DataDisks,omitempty" name:"DataDisks"` // Enhanced services. You can use this parameter to specify whether to enable services such as Cloud Security and Cloud Monitor. If this parameter is not specified, Cloud Monitor and Cloud Security will be enabled by default. EnhancedService *EnhancedService `json:"EnhancedService,omitempty" name:"EnhancedService"` // Instance billing type. CVM instances are POSTPAID_BY_HOUR by default. // <br><li>POSTPAID_BY_HOUR: Pay-as-you-go on an hourly basis // <br><li>SPOTPAID: Bidding InstanceChargeType *string `json:"InstanceChargeType,omitempty" name:"InstanceChargeType"` // Market options of the instance, such as parameters related to spot instances. This parameter is required for spot instances. InstanceMarketOptions *InstanceMarketOptionsRequest `json:"InstanceMarketOptions,omitempty" name:"InstanceMarketOptions"` // Instance type verification policy. Value range: ALL, ANY. Default value: ANY. // <br><li> ALL: The verification will success only if all instance types (InstanceType) are available; otherwise, an error will be reported. // <br><li> ANY: The verification will success if any instance type (InstanceType) is available; otherwise, an error will be reported. // // Common reasons why an instance type is unavailable include stock-out of the instance type or the corresponding cloud disk. // If a model in InstanceTypes does not exist or has been discontinued, a verification error will be reported regardless of the value of InstanceTypesCheckPolicy. InstanceTypesCheckPolicy *string `json:"InstanceTypesCheckPolicy,omitempty" name:"InstanceTypesCheckPolicy"` // Configuration of public network bandwidth. If this parameter is not specified, 0 Mbps will be used by default. InternetAccessible *InternetAccessible `json:"InternetAccessible,omitempty" name:"InternetAccessible"` // Login settings of the instance. You can use this parameter to set the login method, password, and key of the instance or keep the login settings of the original image. By default, a random password will be generated and sent to you via the Message Center. LoginSettings *LoginSettings `json:"LoginSettings,omitempty" name:"LoginSettings"` // Project ID of the instance. Leave it blank as the default. ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"` // The security group to which the instance belongs. This parameter can be obtained by calling the `SecurityGroupId` field in the returned value of [DescribeSecurityGroups](https://intl.cloud.tencent.com/document/api/215/15808?from_cn_redirect=1). If this parameter is not specified, no security group will be bound by default. SecurityGroupIds []*string `json:"SecurityGroupIds,omitempty" name:"SecurityGroupIds"` // System disk configuration of the instance. If this parameter is not specified, the default value will be used. SystemDisk *SystemDisk `json:"SystemDisk,omitempty" name:"SystemDisk"` // Base64-encoded custom data of up to 16 KB. UserData *string `json:"UserData,omitempty" name:"UserData"` // List of tags. This parameter is used to bind up to 10 tags to newly added instances. InstanceTags []*InstanceTag `json:"InstanceTags,omitempty" name:"InstanceTags"` // CAM role name, which can be obtained from the roleName field in the return value of the DescribeRoleList API. CamRoleName *string `json:"CamRoleName,omitempty" name:"CamRoleName"` // CVM hostname settings. HostNameSettings *HostNameSettings `json:"HostNameSettings,omitempty" name:"HostNameSettings"` // Settings of CVM instance names InstanceNameSettings *InstanceNameSettings `json:"InstanceNameSettings,omitempty" name:"InstanceNameSettings"` // Details of the monthly subscription, including the purchase period, auto-renewal. It is required if the `InstanceChargeType` is `PREPAID`. InstanceChargePrepaid *InstanceChargePrepaid `json:"InstanceChargePrepaid,omitempty" name:"InstanceChargePrepaid"` // Selection policy of cloud disks. Default value: ORIGINAL. Valid values: // <br><li>ORIGINAL: uses the configured cloud disk type // <br><li>AUTOMATIC: automatically chooses an available cloud disk type DiskTypePolicy *string `json:"DiskTypePolicy,omitempty" name:"DiskTypePolicy"` }
func NewUpgradeLaunchConfigurationRequest ¶
func NewUpgradeLaunchConfigurationRequest() (request *UpgradeLaunchConfigurationRequest)
func (*UpgradeLaunchConfigurationRequest) FromJsonString ¶
func (r *UpgradeLaunchConfigurationRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*UpgradeLaunchConfigurationRequest) ToJsonString ¶
func (r *UpgradeLaunchConfigurationRequest) ToJsonString() string
type UpgradeLaunchConfigurationRequestParams ¶
type UpgradeLaunchConfigurationRequestParams struct { // Launch configuration ID. LaunchConfigurationId *string `json:"LaunchConfigurationId,omitempty" name:"LaunchConfigurationId"` // [Image](https://intl.cloud.tencent.com/document/product/213/4940?from_cn_redirect=1) ID in the format of `img-xxx`. There are three types of images: <br/><li>Public images </li><li>Custom images </li><li>Shared images </li><br/>You can obtain the image IDs in the [CVM console](https://console.cloud.tencent.com/cvm/image?rid=1&imageType=PUBLIC_IMAGE).</li><li>You can also use the [DescribeImages](https://intl.cloud.tencent.com/document/api/213/15715?from_cn_redirect=1) and look for `ImageId` in the response.</li> ImageId *string `json:"ImageId,omitempty" name:"ImageId"` // List of instance models. Different instance models specify different resource specifications. Up to 5 instance models can be supported. InstanceTypes []*string `json:"InstanceTypes,omitempty" name:"InstanceTypes"` // Display name of the launch configuration, which can contain letters, digits, underscores and hyphens (-), and dots. Up to of 60 bytes allowed.. LaunchConfigurationName *string `json:"LaunchConfigurationName,omitempty" name:"LaunchConfigurationName"` // Information of the instance's data disk configuration. If this parameter is not specified, no data disk is purchased by default. Up to 11 data disks can be supported. DataDisks []*DataDisk `json:"DataDisks,omitempty" name:"DataDisks"` // Enhanced services. You can use this parameter to specify whether to enable services such as Cloud Security and Cloud Monitor. If this parameter is not specified, Cloud Monitor and Cloud Security will be enabled by default. EnhancedService *EnhancedService `json:"EnhancedService,omitempty" name:"EnhancedService"` // Instance billing type. CVM instances are POSTPAID_BY_HOUR by default. // <br><li>POSTPAID_BY_HOUR: Pay-as-you-go on an hourly basis // <br><li>SPOTPAID: Bidding InstanceChargeType *string `json:"InstanceChargeType,omitempty" name:"InstanceChargeType"` // Market options of the instance, such as parameters related to spot instances. This parameter is required for spot instances. InstanceMarketOptions *InstanceMarketOptionsRequest `json:"InstanceMarketOptions,omitempty" name:"InstanceMarketOptions"` // Instance type verification policy. Value range: ALL, ANY. Default value: ANY. // <br><li> ALL: The verification will success only if all instance types (InstanceType) are available; otherwise, an error will be reported. // <br><li> ANY: The verification will success if any instance type (InstanceType) is available; otherwise, an error will be reported. // // Common reasons why an instance type is unavailable include stock-out of the instance type or the corresponding cloud disk. // If a model in InstanceTypes does not exist or has been discontinued, a verification error will be reported regardless of the value of InstanceTypesCheckPolicy. InstanceTypesCheckPolicy *string `json:"InstanceTypesCheckPolicy,omitempty" name:"InstanceTypesCheckPolicy"` // Configuration of public network bandwidth. If this parameter is not specified, 0 Mbps will be used by default. InternetAccessible *InternetAccessible `json:"InternetAccessible,omitempty" name:"InternetAccessible"` // Login settings of the instance. You can use this parameter to set the login method, password, and key of the instance or keep the login settings of the original image. By default, a random password will be generated and sent to you via the Message Center. LoginSettings *LoginSettings `json:"LoginSettings,omitempty" name:"LoginSettings"` // Project ID of the instance. Leave it blank as the default. ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"` // The security group to which the instance belongs. This parameter can be obtained by calling the `SecurityGroupId` field in the returned value of [DescribeSecurityGroups](https://intl.cloud.tencent.com/document/api/215/15808?from_cn_redirect=1). If this parameter is not specified, no security group will be bound by default. SecurityGroupIds []*string `json:"SecurityGroupIds,omitempty" name:"SecurityGroupIds"` // System disk configuration of the instance. If this parameter is not specified, the default value will be used. SystemDisk *SystemDisk `json:"SystemDisk,omitempty" name:"SystemDisk"` // Base64-encoded custom data of up to 16 KB. UserData *string `json:"UserData,omitempty" name:"UserData"` // List of tags. This parameter is used to bind up to 10 tags to newly added instances. InstanceTags []*InstanceTag `json:"InstanceTags,omitempty" name:"InstanceTags"` // CAM role name, which can be obtained from the roleName field in the return value of the DescribeRoleList API. CamRoleName *string `json:"CamRoleName,omitempty" name:"CamRoleName"` // CVM hostname settings. HostNameSettings *HostNameSettings `json:"HostNameSettings,omitempty" name:"HostNameSettings"` // Settings of CVM instance names InstanceNameSettings *InstanceNameSettings `json:"InstanceNameSettings,omitempty" name:"InstanceNameSettings"` // Details of the monthly subscription, including the purchase period, auto-renewal. It is required if the `InstanceChargeType` is `PREPAID`. InstanceChargePrepaid *InstanceChargePrepaid `json:"InstanceChargePrepaid,omitempty" name:"InstanceChargePrepaid"` // Selection policy of cloud disks. Default value: ORIGINAL. Valid values: // <br><li>ORIGINAL: uses the configured cloud disk type // <br><li>AUTOMATIC: automatically chooses an available cloud disk type DiskTypePolicy *string `json:"DiskTypePolicy,omitempty" name:"DiskTypePolicy"` }
Predefined struct for user
type UpgradeLaunchConfigurationResponse ¶
type UpgradeLaunchConfigurationResponse struct { *tchttp.BaseResponse Response *UpgradeLaunchConfigurationResponseParams `json:"Response"` }
func NewUpgradeLaunchConfigurationResponse ¶
func NewUpgradeLaunchConfigurationResponse() (response *UpgradeLaunchConfigurationResponse)
func (*UpgradeLaunchConfigurationResponse) FromJsonString ¶
func (r *UpgradeLaunchConfigurationResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*UpgradeLaunchConfigurationResponse) ToJsonString ¶
func (r *UpgradeLaunchConfigurationResponse) ToJsonString() string
type UpgradeLaunchConfigurationResponseParams ¶
type UpgradeLaunchConfigurationResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type UpgradeLifecycleHookRequest ¶
type UpgradeLifecycleHookRequest struct { *tchttp.BaseRequest // Lifecycle hook ID LifecycleHookId *string `json:"LifecycleHookId,omitempty" name:"LifecycleHookId"` // Lifecycle hook name LifecycleHookName *string `json:"LifecycleHookName,omitempty" name:"LifecycleHookName"` // Scenario for the lifecycle hook. Value range: "INSTANCE_LAUNCHING", "INSTANCE_TERMINATING" LifecycleTransition *string `json:"LifecycleTransition,omitempty" name:"LifecycleTransition"` // Defines the action to be taken by the auto scaling group upon lifecycle hook timeout. Value range: "CONTINUE", "ABANDON". Default value: "CONTINUE" DefaultResult *string `json:"DefaultResult,omitempty" name:"DefaultResult"` // The maximum length of time (in seconds) that can elapse before the lifecycle hook times out. Value range: 30-7200. Default value: 300 HeartbeatTimeout *int64 `json:"HeartbeatTimeout,omitempty" name:"HeartbeatTimeout"` // Additional information of a notification that Auto Scaling sends to targets. This parameter is set when you configure a notification (default value: ""). NotificationMetadata *string `json:"NotificationMetadata,omitempty" name:"NotificationMetadata"` // Notification result. `NotificationTarget` and `LifecycleCommand` cannot be specified at the same time. NotificationTarget *NotificationTarget `json:"NotificationTarget,omitempty" name:"NotificationTarget"` // The scenario where the lifecycle hook is applied. `EXTENSION`: the lifecycle hook will be triggered when AttachInstances, DetachInstances or RemoveInstaces is called. `NORMAL`: the lifecycle hook is not triggered by the above APIs. LifecycleTransitionType *string `json:"LifecycleTransitionType,omitempty" name:"LifecycleTransitionType"` // Remote command execution object. `NotificationTarget` and `LifecycleCommand` cannot be specified at the same time. LifecycleCommand *LifecycleCommand `json:"LifecycleCommand,omitempty" name:"LifecycleCommand"` }
func NewUpgradeLifecycleHookRequest ¶
func NewUpgradeLifecycleHookRequest() (request *UpgradeLifecycleHookRequest)
func (*UpgradeLifecycleHookRequest) FromJsonString ¶
func (r *UpgradeLifecycleHookRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*UpgradeLifecycleHookRequest) ToJsonString ¶
func (r *UpgradeLifecycleHookRequest) ToJsonString() string
type UpgradeLifecycleHookRequestParams ¶
type UpgradeLifecycleHookRequestParams struct { // Lifecycle hook ID LifecycleHookId *string `json:"LifecycleHookId,omitempty" name:"LifecycleHookId"` // Lifecycle hook name LifecycleHookName *string `json:"LifecycleHookName,omitempty" name:"LifecycleHookName"` // Scenario for the lifecycle hook. Value range: "INSTANCE_LAUNCHING", "INSTANCE_TERMINATING" LifecycleTransition *string `json:"LifecycleTransition,omitempty" name:"LifecycleTransition"` // Defines the action to be taken by the auto scaling group upon lifecycle hook timeout. Value range: "CONTINUE", "ABANDON". Default value: "CONTINUE" DefaultResult *string `json:"DefaultResult,omitempty" name:"DefaultResult"` // The maximum length of time (in seconds) that can elapse before the lifecycle hook times out. Value range: 30-7200. Default value: 300 HeartbeatTimeout *int64 `json:"HeartbeatTimeout,omitempty" name:"HeartbeatTimeout"` // Additional information of a notification that Auto Scaling sends to targets. This parameter is set when you configure a notification (default value: ""). NotificationMetadata *string `json:"NotificationMetadata,omitempty" name:"NotificationMetadata"` // Notification result. `NotificationTarget` and `LifecycleCommand` cannot be specified at the same time. NotificationTarget *NotificationTarget `json:"NotificationTarget,omitempty" name:"NotificationTarget"` // The scenario where the lifecycle hook is applied. `EXTENSION`: the lifecycle hook will be triggered when AttachInstances, DetachInstances or RemoveInstaces is called. `NORMAL`: the lifecycle hook is not triggered by the above APIs. LifecycleTransitionType *string `json:"LifecycleTransitionType,omitempty" name:"LifecycleTransitionType"` // Remote command execution object. `NotificationTarget` and `LifecycleCommand` cannot be specified at the same time. LifecycleCommand *LifecycleCommand `json:"LifecycleCommand,omitempty" name:"LifecycleCommand"` }
Predefined struct for user
type UpgradeLifecycleHookResponse ¶
type UpgradeLifecycleHookResponse struct { *tchttp.BaseResponse Response *UpgradeLifecycleHookResponseParams `json:"Response"` }
func NewUpgradeLifecycleHookResponse ¶
func NewUpgradeLifecycleHookResponse() (response *UpgradeLifecycleHookResponse)
func (*UpgradeLifecycleHookResponse) FromJsonString ¶
func (r *UpgradeLifecycleHookResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*UpgradeLifecycleHookResponse) ToJsonString ¶
func (r *UpgradeLifecycleHookResponse) ToJsonString() string
type UpgradeLifecycleHookResponseParams ¶
type UpgradeLifecycleHookResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user