@volcengine/pulumi-volcenginecc 0.0.7 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/autoscaling/getScalingGroup.d.ts +153 -0
- package/autoscaling/getScalingGroup.js +28 -0
- package/autoscaling/getScalingGroup.js.map +1 -0
- package/autoscaling/getScalingGroups.d.ts +22 -0
- package/autoscaling/getScalingGroups.js +24 -0
- package/autoscaling/getScalingGroups.js.map +1 -0
- package/autoscaling/index.d.ts +9 -0
- package/autoscaling/index.js +12 -1
- package/autoscaling/index.js.map +1 -1
- package/autoscaling/scalingGroup.d.ts +332 -0
- package/autoscaling/scalingGroup.js +126 -0
- package/autoscaling/scalingGroup.js.map +1 -0
- package/cdn/getShareConfig.d.ts +1 -1
- package/cdn/shareConfig.d.ts +3 -3
- package/cdn/shareConfig.js +2 -2
- package/cdn/shareConfig.js.map +1 -1
- package/cen/cen.d.ts +151 -0
- package/cen/cen.js +93 -0
- package/cen/cen.js.map +1 -0
- package/cen/getCen.d.ts +77 -0
- package/cen/getCen.js +28 -0
- package/cen/getCen.js.map +1 -0
- package/cen/getCens.d.ts +22 -0
- package/cen/getCens.js +24 -0
- package/cen/getCens.js.map +1 -0
- package/cen/index.d.ts +9 -0
- package/cen/index.js +28 -0
- package/cen/index.js.map +1 -0
- package/index.d.ts +3 -1
- package/index.js +5 -1
- package/index.js.map +1 -1
- package/natgateway/dnatentry.d.ts +175 -0
- package/natgateway/dnatentry.js +112 -0
- package/natgateway/dnatentry.js.map +1 -0
- package/natgateway/getDnatentries.d.ts +22 -0
- package/natgateway/getDnatentries.js +24 -0
- package/natgateway/getDnatentries.js.map +1 -0
- package/natgateway/getDnatentry.d.ts +76 -0
- package/natgateway/getDnatentry.js +28 -0
- package/natgateway/getDnatentry.js.map +1 -0
- package/natgateway/getNatIp.d.ts +68 -0
- package/natgateway/getNatIp.js +28 -0
- package/natgateway/getNatIp.js.map +1 -0
- package/natgateway/getNatIps.d.ts +22 -0
- package/natgateway/getNatIps.js +24 -0
- package/natgateway/getNatIps.js.map +1 -0
- package/natgateway/getSnatentries.d.ts +22 -0
- package/natgateway/getSnatentries.js +24 -0
- package/natgateway/getSnatentries.js.map +1 -0
- package/natgateway/getSnatentry.d.ts +72 -0
- package/natgateway/getSnatentry.js +28 -0
- package/natgateway/getSnatentry.js.map +1 -0
- package/natgateway/index.d.ts +24 -0
- package/natgateway/index.js +29 -1
- package/natgateway/index.js.map +1 -1
- package/natgateway/snatentry.d.ts +155 -0
- package/natgateway/snatentry.js +91 -0
- package/natgateway/snatentry.js.map +1 -0
- package/package.json +1 -1
- package/types/input.d.ts +230 -3
- package/types/output.d.ts +487 -6
- package/vedbm/getInstance.d.ts +157 -0
- package/vedbm/getInstance.js +28 -0
- package/vedbm/getInstance.js.map +1 -0
- package/vedbm/getInstances.d.ts +22 -0
- package/vedbm/getInstances.js +24 -0
- package/vedbm/getInstances.js.map +1 -0
- package/vedbm/index.d.ts +9 -0
- package/vedbm/index.js +28 -0
- package/vedbm/index.js.map +1 -0
- package/vedbm/instance.d.ts +355 -0
- package/vedbm/instance.js +134 -0
- package/vedbm/instance.js.map +1 -0
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as outputs from "../types/output";
|
|
3
|
+
/**
|
|
4
|
+
* Data Source schema for Volcengine::AutoScaling::ScalingGroup
|
|
5
|
+
*/
|
|
6
|
+
export declare function getScalingGroup(args: GetScalingGroupArgs, opts?: pulumi.InvokeOptions): Promise<GetScalingGroupResult>;
|
|
7
|
+
/**
|
|
8
|
+
* A collection of arguments for invoking getScalingGroup.
|
|
9
|
+
*/
|
|
10
|
+
export interface GetScalingGroupArgs {
|
|
11
|
+
/**
|
|
12
|
+
* Uniquely identifies the resource.
|
|
13
|
+
*/
|
|
14
|
+
id: string;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* A collection of values returned by getScalingGroup.
|
|
18
|
+
*/
|
|
19
|
+
export interface GetScalingGroupResult {
|
|
20
|
+
/**
|
|
21
|
+
* 伸缩组绑定的伸缩配置的ID。
|
|
22
|
+
*/
|
|
23
|
+
readonly activeScalingConfigurationId: string;
|
|
24
|
+
/**
|
|
25
|
+
* 伸缩组创建时间。
|
|
26
|
+
*/
|
|
27
|
+
readonly createdTime: string;
|
|
28
|
+
/**
|
|
29
|
+
* RDS数据库实例的ID。
|
|
30
|
+
*/
|
|
31
|
+
readonly dbInstanceIds: string[];
|
|
32
|
+
/**
|
|
33
|
+
* 执行一次伸缩活动(添加或移出ECS实例)结束后的冷却时间。冷却时间内,该伸缩组不执行其它的伸缩活动,仅针对云监控报警任务触发的伸缩活动和伸缩规则有效。取值范围:5 ~ 86400,单位:秒。默认值:300。
|
|
34
|
+
*/
|
|
35
|
+
readonly defaultCooldown: number;
|
|
36
|
+
/**
|
|
37
|
+
* 伸缩组中期望运行的实例个数。1、不小于最小实例数MinInstanceNumber且不大于最大实例数MaxInstanceNumber。2、默认值:-1,表示不开启期望实例数能力。此时,伸缩组创建完成后会立即开始伸缩活动自动添加相应个数的实例。
|
|
38
|
+
*/
|
|
39
|
+
readonly desireInstanceNumber: number;
|
|
40
|
+
/**
|
|
41
|
+
* 伸缩组的健康检查方式。1、NONE:不做实例健康状态检查。2、ECS(默认):对伸缩组内的ECS实例做健康检查。
|
|
42
|
+
*/
|
|
43
|
+
readonly healthCheckType: string;
|
|
44
|
+
/**
|
|
45
|
+
* Uniquely identifies the resource.
|
|
46
|
+
*/
|
|
47
|
+
readonly id: string;
|
|
48
|
+
/**
|
|
49
|
+
* 实例移除策略,1、OldestInstance:移出最早加入 (包括自动创建和手动添加)伸缩组的实例。2、NewestInstance:移出最晚加入(包括自动创建和手动添加)伸缩组的实例。3、OldestScalingConfigurationWithOldestInstance(默认):移出最早与伸缩组绑定的伸缩配置中,最早由伸缩组 自动创建 的实例。4、OldestScalingConfigurationWithNewestInstance:移出最早与伸缩组绑定的伸缩配置中,最晚由伸缩组 自动创建 的实例。
|
|
50
|
+
*/
|
|
51
|
+
readonly instanceTerminatePolicy: string;
|
|
52
|
+
/**
|
|
53
|
+
* 实例分布策略。
|
|
54
|
+
*/
|
|
55
|
+
readonly instancesDistribution: outputs.autoscaling.GetScalingGroupInstancesDistribution;
|
|
56
|
+
/**
|
|
57
|
+
* 是否启用伸缩组。true:启用。false:停止
|
|
58
|
+
*/
|
|
59
|
+
readonly isEnableScalingGroup: boolean;
|
|
60
|
+
/**
|
|
61
|
+
* 实例启动模板ID,配置后表示选择启动模版作为伸缩配置来源。
|
|
62
|
+
*/
|
|
63
|
+
readonly launchTemplateId: string;
|
|
64
|
+
/**
|
|
65
|
+
* 实例启动模版信息。
|
|
66
|
+
*/
|
|
67
|
+
readonly launchTemplateOverrides: outputs.autoscaling.GetScalingGroupLaunchTemplateOverride[];
|
|
68
|
+
/**
|
|
69
|
+
* 实例启动模板的版本。1、模板的某个版本号。2、Default(默认):始终使用模板默认版本。3、Latest:始终使用模板最新版本。
|
|
70
|
+
*/
|
|
71
|
+
readonly launchTemplateVersion: string;
|
|
72
|
+
/**
|
|
73
|
+
* 伸缩组的状态。Active:已启用。InActive:未激活。Deleting:删除中。Locked: 已锁定。CoolingDown: 冷却中。Unknown: 未知状态。
|
|
74
|
+
*/
|
|
75
|
+
readonly lifecycleState: string;
|
|
76
|
+
/**
|
|
77
|
+
* 伸缩组实例CLB健康状况检查宽限期。
|
|
78
|
+
*/
|
|
79
|
+
readonly loadBalancerHealthCheckGracePeriod: number;
|
|
80
|
+
/**
|
|
81
|
+
* 伸缩组中实例个数的最大值,默认取值0 ~ 100。您可以通过配额中心调整。
|
|
82
|
+
*/
|
|
83
|
+
readonly maxInstanceNumber: number;
|
|
84
|
+
/**
|
|
85
|
+
* 伸缩组中实例个数的最小值,默认取值0 ~ 100。您可以通过配额中心调整。
|
|
86
|
+
*/
|
|
87
|
+
readonly minInstanceNumber: number;
|
|
88
|
+
/**
|
|
89
|
+
* 扩缩容策略,如果您选择了多个子网,需配置本参数。1、PRIORITY(默认):优先级策略。2、BALANCE:均衡分布策略。
|
|
90
|
+
*/
|
|
91
|
+
readonly multiAzPolicy: string;
|
|
92
|
+
/**
|
|
93
|
+
* 伸缩组所属项目,默认为default。一个资源只能归属于一个项目。只能包含字母、数字、下划线“_”、点“.”和中划线“-”。长度限制在64个字符以内。
|
|
94
|
+
*/
|
|
95
|
+
readonly projectName: string;
|
|
96
|
+
/**
|
|
97
|
+
* 伸缩组ID。
|
|
98
|
+
*/
|
|
99
|
+
readonly scalingGroupId: string;
|
|
100
|
+
/**
|
|
101
|
+
* 伸缩组名称,同一地域下伸缩组名称唯一。只能以中文、字母开头,只能包含中文、字母、数字、下划线和中划线 。长度限制为1 ~ 128个字符。暂不支持特殊字符。
|
|
102
|
+
*/
|
|
103
|
+
readonly scalingGroupName: string;
|
|
104
|
+
/**
|
|
105
|
+
* 伸缩组的实例回收模式。1、release(默认):释放模式。2、recycle:停机回收模式。
|
|
106
|
+
*/
|
|
107
|
+
readonly scalingMode: string;
|
|
108
|
+
/**
|
|
109
|
+
* 伸缩组关联的负载均衡信息。
|
|
110
|
+
*/
|
|
111
|
+
readonly serverGroupAttributes: outputs.autoscaling.GetScalingGroupServerGroupAttribute[];
|
|
112
|
+
/**
|
|
113
|
+
* 伸缩组内处于停用中状态的实例数量。
|
|
114
|
+
*/
|
|
115
|
+
readonly stoppedInstanceCount: number;
|
|
116
|
+
/**
|
|
117
|
+
* 伸缩组中实例主网卡的子网ID列表。
|
|
118
|
+
*/
|
|
119
|
+
readonly subnetIds: string[];
|
|
120
|
+
/**
|
|
121
|
+
* 暂停中的流程,无暂停中流程则返回空值。ScaleIn:缩容流程。ScaleOut:扩容流程。HealthCheck:健康检查。AlarmNotification:报警任务。ScheduledAction:定时任务。
|
|
122
|
+
*/
|
|
123
|
+
readonly suspendedProcesses: string[];
|
|
124
|
+
/**
|
|
125
|
+
* 标签列表。
|
|
126
|
+
*/
|
|
127
|
+
readonly tags: outputs.autoscaling.GetScalingGroupTag[];
|
|
128
|
+
/**
|
|
129
|
+
* 当前伸缩组内实例的个数。
|
|
130
|
+
*/
|
|
131
|
+
readonly totalInstanceCount: number;
|
|
132
|
+
/**
|
|
133
|
+
* 伸缩组更新时间。
|
|
134
|
+
*/
|
|
135
|
+
readonly updatedTime: string;
|
|
136
|
+
/**
|
|
137
|
+
* 伸缩组所属私有网络ID。
|
|
138
|
+
*/
|
|
139
|
+
readonly vpcId: string;
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* Data Source schema for Volcengine::AutoScaling::ScalingGroup
|
|
143
|
+
*/
|
|
144
|
+
export declare function getScalingGroupOutput(args: GetScalingGroupOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetScalingGroupResult>;
|
|
145
|
+
/**
|
|
146
|
+
* A collection of arguments for invoking getScalingGroup.
|
|
147
|
+
*/
|
|
148
|
+
export interface GetScalingGroupOutputArgs {
|
|
149
|
+
/**
|
|
150
|
+
* Uniquely identifies the resource.
|
|
151
|
+
*/
|
|
152
|
+
id: pulumi.Input<string>;
|
|
153
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.getScalingGroupOutput = exports.getScalingGroup = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Data Source schema for Volcengine::AutoScaling::ScalingGroup
|
|
10
|
+
*/
|
|
11
|
+
function getScalingGroup(args, opts) {
|
|
12
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
13
|
+
return pulumi.runtime.invoke("volcenginecc:autoscaling/getScalingGroup:getScalingGroup", {
|
|
14
|
+
"id": args.id,
|
|
15
|
+
}, opts);
|
|
16
|
+
}
|
|
17
|
+
exports.getScalingGroup = getScalingGroup;
|
|
18
|
+
/**
|
|
19
|
+
* Data Source schema for Volcengine::AutoScaling::ScalingGroup
|
|
20
|
+
*/
|
|
21
|
+
function getScalingGroupOutput(args, opts) {
|
|
22
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
23
|
+
return pulumi.runtime.invokeOutput("volcenginecc:autoscaling/getScalingGroup:getScalingGroup", {
|
|
24
|
+
"id": args.id,
|
|
25
|
+
}, opts);
|
|
26
|
+
}
|
|
27
|
+
exports.getScalingGroupOutput = getScalingGroupOutput;
|
|
28
|
+
//# sourceMappingURL=getScalingGroup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getScalingGroup.js","sourceRoot":"","sources":["../../autoscaling/getScalingGroup.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;GAEG;AACH,SAAgB,eAAe,CAAC,IAAyB,EAAE,IAA2B;IAClF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,0DAA0D,EAAE;QACrF,IAAI,EAAE,IAAI,CAAC,EAAE;KAChB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,0CAKC;AAyID;;GAEG;AACH,SAAgB,qBAAqB,CAAC,IAA+B,EAAE,IAAiC;IACpG,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,0DAA0D,EAAE;QAC3F,IAAI,EAAE,IAAI,CAAC,EAAE;KAChB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,sDAKC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Plural Data Source schema for Volcengine::AutoScaling::ScalingGroup
|
|
4
|
+
*/
|
|
5
|
+
export declare function getScalingGroups(opts?: pulumi.InvokeOptions): Promise<GetScalingGroupsResult>;
|
|
6
|
+
/**
|
|
7
|
+
* A collection of values returned by getScalingGroups.
|
|
8
|
+
*/
|
|
9
|
+
export interface GetScalingGroupsResult {
|
|
10
|
+
/**
|
|
11
|
+
* Uniquely identifies the data source.
|
|
12
|
+
*/
|
|
13
|
+
readonly id: string;
|
|
14
|
+
/**
|
|
15
|
+
* Set of Resource Identifiers.
|
|
16
|
+
*/
|
|
17
|
+
readonly ids: string[];
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Plural Data Source schema for Volcengine::AutoScaling::ScalingGroup
|
|
21
|
+
*/
|
|
22
|
+
export declare function getScalingGroupsOutput(opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetScalingGroupsResult>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.getScalingGroupsOutput = exports.getScalingGroups = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Plural Data Source schema for Volcengine::AutoScaling::ScalingGroup
|
|
10
|
+
*/
|
|
11
|
+
function getScalingGroups(opts) {
|
|
12
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
13
|
+
return pulumi.runtime.invoke("volcenginecc:autoscaling/getScalingGroups:getScalingGroups", {}, opts);
|
|
14
|
+
}
|
|
15
|
+
exports.getScalingGroups = getScalingGroups;
|
|
16
|
+
/**
|
|
17
|
+
* Plural Data Source schema for Volcengine::AutoScaling::ScalingGroup
|
|
18
|
+
*/
|
|
19
|
+
function getScalingGroupsOutput(opts) {
|
|
20
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
21
|
+
return pulumi.runtime.invokeOutput("volcenginecc:autoscaling/getScalingGroups:getScalingGroups", {}, opts);
|
|
22
|
+
}
|
|
23
|
+
exports.getScalingGroupsOutput = getScalingGroupsOutput;
|
|
24
|
+
//# sourceMappingURL=getScalingGroups.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getScalingGroups.js","sourceRoot":"","sources":["../../autoscaling/getScalingGroups.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;GAEG;AACH,SAAgB,gBAAgB,CAAC,IAA2B;IACxD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,4DAA4D,EAAE,EAC1F,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAJD,4CAIC;AAeD;;GAEG;AACH,SAAgB,sBAAsB,CAAC,IAAiC;IACpE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,4DAA4D,EAAE,EAChG,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAJD,wDAIC"}
|
package/autoscaling/index.d.ts
CHANGED
|
@@ -4,6 +4,15 @@ export declare const getScalingConfigurationOutput: typeof import("./getScalingC
|
|
|
4
4
|
export { GetScalingConfigurationsResult } from "./getScalingConfigurations";
|
|
5
5
|
export declare const getScalingConfigurations: typeof import("./getScalingConfigurations").getScalingConfigurations;
|
|
6
6
|
export declare const getScalingConfigurationsOutput: typeof import("./getScalingConfigurations").getScalingConfigurationsOutput;
|
|
7
|
+
export { GetScalingGroupArgs, GetScalingGroupResult, GetScalingGroupOutputArgs } from "./getScalingGroup";
|
|
8
|
+
export declare const getScalingGroup: typeof import("./getScalingGroup").getScalingGroup;
|
|
9
|
+
export declare const getScalingGroupOutput: typeof import("./getScalingGroup").getScalingGroupOutput;
|
|
10
|
+
export { GetScalingGroupsResult } from "./getScalingGroups";
|
|
11
|
+
export declare const getScalingGroups: typeof import("./getScalingGroups").getScalingGroups;
|
|
12
|
+
export declare const getScalingGroupsOutput: typeof import("./getScalingGroups").getScalingGroupsOutput;
|
|
7
13
|
export { ScalingConfigurationArgs, ScalingConfigurationState } from "./scalingConfiguration";
|
|
8
14
|
export type ScalingConfiguration = import("./scalingConfiguration").ScalingConfiguration;
|
|
9
15
|
export declare const ScalingConfiguration: typeof import("./scalingConfiguration").ScalingConfiguration;
|
|
16
|
+
export { ScalingGroupArgs, ScalingGroupState } from "./scalingGroup";
|
|
17
|
+
export type ScalingGroup = import("./scalingGroup").ScalingGroup;
|
|
18
|
+
export declare const ScalingGroup: typeof import("./scalingGroup").ScalingGroup;
|
package/autoscaling/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
3
|
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.ScalingConfiguration = exports.getScalingConfigurationsOutput = exports.getScalingConfigurations = exports.getScalingConfigurationOutput = exports.getScalingConfiguration = void 0;
|
|
5
|
+
exports.ScalingGroup = exports.ScalingConfiguration = exports.getScalingGroupsOutput = exports.getScalingGroups = exports.getScalingGroupOutput = exports.getScalingGroup = exports.getScalingConfigurationsOutput = exports.getScalingConfigurations = exports.getScalingConfigurationOutput = exports.getScalingConfiguration = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("../utilities");
|
|
8
8
|
exports.getScalingConfiguration = null;
|
|
@@ -11,18 +11,29 @@ utilities.lazyLoad(exports, ["getScalingConfiguration", "getScalingConfiguration
|
|
|
11
11
|
exports.getScalingConfigurations = null;
|
|
12
12
|
exports.getScalingConfigurationsOutput = null;
|
|
13
13
|
utilities.lazyLoad(exports, ["getScalingConfigurations", "getScalingConfigurationsOutput"], () => require("./getScalingConfigurations"));
|
|
14
|
+
exports.getScalingGroup = null;
|
|
15
|
+
exports.getScalingGroupOutput = null;
|
|
16
|
+
utilities.lazyLoad(exports, ["getScalingGroup", "getScalingGroupOutput"], () => require("./getScalingGroup"));
|
|
17
|
+
exports.getScalingGroups = null;
|
|
18
|
+
exports.getScalingGroupsOutput = null;
|
|
19
|
+
utilities.lazyLoad(exports, ["getScalingGroups", "getScalingGroupsOutput"], () => require("./getScalingGroups"));
|
|
14
20
|
exports.ScalingConfiguration = null;
|
|
15
21
|
utilities.lazyLoad(exports, ["ScalingConfiguration"], () => require("./scalingConfiguration"));
|
|
22
|
+
exports.ScalingGroup = null;
|
|
23
|
+
utilities.lazyLoad(exports, ["ScalingGroup"], () => require("./scalingGroup"));
|
|
16
24
|
const _module = {
|
|
17
25
|
version: utilities.getVersion(),
|
|
18
26
|
construct: (name, type, urn) => {
|
|
19
27
|
switch (type) {
|
|
20
28
|
case "volcenginecc:autoscaling/scalingConfiguration:ScalingConfiguration":
|
|
21
29
|
return new exports.ScalingConfiguration(name, undefined, { urn });
|
|
30
|
+
case "volcenginecc:autoscaling/scalingGroup:ScalingGroup":
|
|
31
|
+
return new exports.ScalingGroup(name, undefined, { urn });
|
|
22
32
|
default:
|
|
23
33
|
throw new Error(`unknown resource type ${type}`);
|
|
24
34
|
}
|
|
25
35
|
},
|
|
26
36
|
};
|
|
27
37
|
pulumi.runtime.registerResourceModule("volcenginecc", "autoscaling/scalingConfiguration", _module);
|
|
38
|
+
pulumi.runtime.registerResourceModule("volcenginecc", "autoscaling/scalingGroup", _module);
|
|
28
39
|
//# sourceMappingURL=index.js.map
|
package/autoscaling/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../autoscaling/index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAI7B,QAAA,uBAAuB,GAAuE,IAAW,CAAC;AAC1G,QAAA,6BAA6B,GAA6E,IAAW,CAAC;AACnI,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,yBAAyB,EAAC,+BAA+B,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,2BAA2B,CAAC,CAAC,CAAC;AAGxH,QAAA,wBAAwB,GAAyE,IAAW,CAAC;AAC7G,QAAA,8BAA8B,GAA+E,IAAW,CAAC;AACtI,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,0BAA0B,EAAC,gCAAgC,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,4BAA4B,CAAC,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../autoscaling/index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAI7B,QAAA,uBAAuB,GAAuE,IAAW,CAAC;AAC1G,QAAA,6BAA6B,GAA6E,IAAW,CAAC;AACnI,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,yBAAyB,EAAC,+BAA+B,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,2BAA2B,CAAC,CAAC,CAAC;AAGxH,QAAA,wBAAwB,GAAyE,IAAW,CAAC;AAC7G,QAAA,8BAA8B,GAA+E,IAAW,CAAC;AACtI,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,0BAA0B,EAAC,gCAAgC,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,4BAA4B,CAAC,CAAC,CAAC;AAG3H,QAAA,eAAe,GAAuD,IAAW,CAAC;AAClF,QAAA,qBAAqB,GAA6D,IAAW,CAAC;AAC3G,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,iBAAiB,EAAC,uBAAuB,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,mBAAmB,CAAC,CAAC,CAAC;AAGhG,QAAA,gBAAgB,GAAyD,IAAW,CAAC;AACrF,QAAA,sBAAsB,GAA+D,IAAW,CAAC;AAC9G,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,kBAAkB,EAAC,wBAAwB,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,oBAAoB,CAAC,CAAC,CAAC;AAInG,QAAA,oBAAoB,GAAiE,IAAW,CAAC;AAC9G,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,sBAAsB,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,wBAAwB,CAAC,CAAC,CAAC;AAIlF,QAAA,YAAY,GAAiD,IAAW,CAAC;AACtF,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,cAAc,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC,CAAC;AAG/E,MAAM,OAAO,GAAG;IACZ,OAAO,EAAE,SAAS,CAAC,UAAU,EAAE;IAC/B,SAAS,EAAE,CAAC,IAAY,EAAE,IAAY,EAAE,GAAW,EAAmB,EAAE;QACpE,QAAQ,IAAI,EAAE;YACV,KAAK,oEAAoE;gBACrE,OAAO,IAAI,4BAAoB,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YAClE,KAAK,oDAAoD;gBACrD,OAAO,IAAI,oBAAY,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YAC1D;gBACI,MAAM,IAAI,KAAK,CAAC,yBAAyB,IAAI,EAAE,CAAC,CAAC;SACxD;IACL,CAAC;CACJ,CAAC;AACF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,cAAc,EAAE,kCAAkC,EAAE,OAAO,CAAC,CAAA;AAClG,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,cAAc,EAAE,0BAA0B,EAAE,OAAO,CAAC,CAAA"}
|
|
@@ -0,0 +1,332 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "../types/input";
|
|
3
|
+
import * as outputs from "../types/output";
|
|
4
|
+
/**
|
|
5
|
+
* 伸缩组用于管理一组云资源实例。通过伸缩组可以定义云资源池中的实例数/容量、冷却时间、负载均衡等信息。
|
|
6
|
+
*
|
|
7
|
+
* ## Import
|
|
8
|
+
*
|
|
9
|
+
* ```sh
|
|
10
|
+
* $ pulumi import volcenginecc:autoscaling/scalingGroup:ScalingGroup example "scaling_group_id"
|
|
11
|
+
* ```
|
|
12
|
+
*/
|
|
13
|
+
export declare class ScalingGroup extends pulumi.CustomResource {
|
|
14
|
+
/**
|
|
15
|
+
* Get an existing ScalingGroup resource's state with the given name, ID, and optional extra
|
|
16
|
+
* properties used to qualify the lookup.
|
|
17
|
+
*
|
|
18
|
+
* @param name The _unique_ name of the resulting resource.
|
|
19
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
20
|
+
* @param state Any extra arguments used during the lookup.
|
|
21
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
22
|
+
*/
|
|
23
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ScalingGroupState, opts?: pulumi.CustomResourceOptions): ScalingGroup;
|
|
24
|
+
/**
|
|
25
|
+
* Returns true if the given object is an instance of ScalingGroup. This is designed to work even
|
|
26
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
27
|
+
*/
|
|
28
|
+
static isInstance(obj: any): obj is ScalingGroup;
|
|
29
|
+
/**
|
|
30
|
+
* 伸缩组绑定的伸缩配置的ID。
|
|
31
|
+
*/
|
|
32
|
+
readonly activeScalingConfigurationId: pulumi.Output<string>;
|
|
33
|
+
/**
|
|
34
|
+
* 伸缩组创建时间。
|
|
35
|
+
*/
|
|
36
|
+
readonly createdTime: pulumi.Output<string>;
|
|
37
|
+
/**
|
|
38
|
+
* RDS数据库实例的ID。
|
|
39
|
+
*/
|
|
40
|
+
readonly dbInstanceIds: pulumi.Output<string[]>;
|
|
41
|
+
/**
|
|
42
|
+
* 执行一次伸缩活动(添加或移出ECS实例)结束后的冷却时间。冷却时间内,该伸缩组不执行其它的伸缩活动,仅针对云监控报警任务触发的伸缩活动和伸缩规则有效。取值范围:5 ~ 86400,单位:秒。默认值:300。
|
|
43
|
+
*/
|
|
44
|
+
readonly defaultCooldown: pulumi.Output<number>;
|
|
45
|
+
/**
|
|
46
|
+
* 伸缩组中期望运行的实例个数。1、不小于最小实例数MinInstanceNumber且不大于最大实例数MaxInstanceNumber。2、默认值:-1,表示不开启期望实例数能力。此时,伸缩组创建完成后会立即开始伸缩活动自动添加相应个数的实例。
|
|
47
|
+
*/
|
|
48
|
+
readonly desireInstanceNumber: pulumi.Output<number>;
|
|
49
|
+
/**
|
|
50
|
+
* 伸缩组的健康检查方式。1、NONE:不做实例健康状态检查。2、ECS(默认):对伸缩组内的ECS实例做健康检查。
|
|
51
|
+
*/
|
|
52
|
+
readonly healthCheckType: pulumi.Output<string>;
|
|
53
|
+
/**
|
|
54
|
+
* 实例移除策略,1、OldestInstance:移出最早加入 (包括自动创建和手动添加)伸缩组的实例。2、NewestInstance:移出最晚加入(包括自动创建和手动添加)伸缩组的实例。3、OldestScalingConfigurationWithOldestInstance(默认):移出最早与伸缩组绑定的伸缩配置中,最早由伸缩组 自动创建 的实例。4、OldestScalingConfigurationWithNewestInstance:移出最早与伸缩组绑定的伸缩配置中,最晚由伸缩组 自动创建 的实例。
|
|
55
|
+
*/
|
|
56
|
+
readonly instanceTerminatePolicy: pulumi.Output<string>;
|
|
57
|
+
/**
|
|
58
|
+
* 实例分布策略。
|
|
59
|
+
*/
|
|
60
|
+
readonly instancesDistribution: pulumi.Output<outputs.autoscaling.ScalingGroupInstancesDistribution>;
|
|
61
|
+
/**
|
|
62
|
+
* 是否启用伸缩组。true:启用。false:停止
|
|
63
|
+
*/
|
|
64
|
+
readonly isEnableScalingGroup: pulumi.Output<boolean>;
|
|
65
|
+
/**
|
|
66
|
+
* 实例启动模板ID,配置后表示选择启动模版作为伸缩配置来源。
|
|
67
|
+
*/
|
|
68
|
+
readonly launchTemplateId: pulumi.Output<string>;
|
|
69
|
+
readonly launchTemplateOverrides: pulumi.Output<outputs.autoscaling.ScalingGroupLaunchTemplateOverride[]>;
|
|
70
|
+
/**
|
|
71
|
+
* 实例启动模板的版本。1、模板的某个版本号。2、Default(默认):始终使用模板默认版本。3、Latest:始终使用模板最新版本。
|
|
72
|
+
*/
|
|
73
|
+
readonly launchTemplateVersion: pulumi.Output<string>;
|
|
74
|
+
/**
|
|
75
|
+
* 伸缩组的状态。Active:已启用。InActive:未激活。Deleting:删除中。Locked: 已锁定。CoolingDown: 冷却中。Unknown: 未知状态。
|
|
76
|
+
*/
|
|
77
|
+
readonly lifecycleState: pulumi.Output<string>;
|
|
78
|
+
/**
|
|
79
|
+
* 伸缩组实例CLB健康状况检查宽限期。
|
|
80
|
+
*/
|
|
81
|
+
readonly loadBalancerHealthCheckGracePeriod: pulumi.Output<number>;
|
|
82
|
+
/**
|
|
83
|
+
* 伸缩组中实例个数的最大值,默认取值0 ~ 100。您可以通过配额中心调整。
|
|
84
|
+
*/
|
|
85
|
+
readonly maxInstanceNumber: pulumi.Output<number>;
|
|
86
|
+
/**
|
|
87
|
+
* 伸缩组中实例个数的最小值,默认取值0 ~ 100。您可以通过配额中心调整。
|
|
88
|
+
*/
|
|
89
|
+
readonly minInstanceNumber: pulumi.Output<number>;
|
|
90
|
+
/**
|
|
91
|
+
* 扩缩容策略,如果您选择了多个子网,需配置本参数。1、PRIORITY(默认):优先级策略。2、BALANCE:均衡分布策略。
|
|
92
|
+
*/
|
|
93
|
+
readonly multiAzPolicy: pulumi.Output<string>;
|
|
94
|
+
/**
|
|
95
|
+
* 伸缩组所属项目,默认为default。一个资源只能归属于一个项目。只能包含字母、数字、下划线“_”、点“.”和中划线“-”。长度限制在64个字符以内。
|
|
96
|
+
*/
|
|
97
|
+
readonly projectName: pulumi.Output<string>;
|
|
98
|
+
/**
|
|
99
|
+
* 伸缩组ID。
|
|
100
|
+
*/
|
|
101
|
+
readonly scalingGroupId: pulumi.Output<string>;
|
|
102
|
+
/**
|
|
103
|
+
* 伸缩组名称,同一地域下伸缩组名称唯一。只能以中文、字母开头,只能包含中文、字母、数字、下划线和中划线 。长度限制为1 ~ 128个字符。暂不支持特殊字符。
|
|
104
|
+
*/
|
|
105
|
+
readonly scalingGroupName: pulumi.Output<string>;
|
|
106
|
+
/**
|
|
107
|
+
* 伸缩组的实例回收模式。1、release(默认):释放模式。2、recycle:停机回收模式。
|
|
108
|
+
*/
|
|
109
|
+
readonly scalingMode: pulumi.Output<string>;
|
|
110
|
+
readonly serverGroupAttributes: pulumi.Output<outputs.autoscaling.ScalingGroupServerGroupAttribute[]>;
|
|
111
|
+
/**
|
|
112
|
+
* 伸缩组内处于停用中状态的实例数量。
|
|
113
|
+
*/
|
|
114
|
+
readonly stoppedInstanceCount: pulumi.Output<number>;
|
|
115
|
+
/**
|
|
116
|
+
* 伸缩组中实例主网卡的子网ID列表。
|
|
117
|
+
*/
|
|
118
|
+
readonly subnetIds: pulumi.Output<string[]>;
|
|
119
|
+
/**
|
|
120
|
+
* 暂停中的流程,无暂停中流程则返回空值。ScaleIn:缩容流程。ScaleOut:扩容流程。HealthCheck:健康检查。AlarmNotification:报警任务。ScheduledAction:定时任务。
|
|
121
|
+
*/
|
|
122
|
+
readonly suspendedProcesses: pulumi.Output<string[]>;
|
|
123
|
+
readonly tags: pulumi.Output<outputs.autoscaling.ScalingGroupTag[]>;
|
|
124
|
+
/**
|
|
125
|
+
* 当前伸缩组内实例的个数。
|
|
126
|
+
*/
|
|
127
|
+
readonly totalInstanceCount: pulumi.Output<number>;
|
|
128
|
+
/**
|
|
129
|
+
* 伸缩组更新时间。
|
|
130
|
+
*/
|
|
131
|
+
readonly updatedTime: pulumi.Output<string>;
|
|
132
|
+
/**
|
|
133
|
+
* 伸缩组所属私有网络ID。
|
|
134
|
+
*/
|
|
135
|
+
readonly vpcId: pulumi.Output<string>;
|
|
136
|
+
/**
|
|
137
|
+
* Create a ScalingGroup resource with the given unique name, arguments, and options.
|
|
138
|
+
*
|
|
139
|
+
* @param name The _unique_ name of the resource.
|
|
140
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
141
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
142
|
+
*/
|
|
143
|
+
constructor(name: string, args: ScalingGroupArgs, opts?: pulumi.CustomResourceOptions);
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* Input properties used for looking up and filtering ScalingGroup resources.
|
|
147
|
+
*/
|
|
148
|
+
export interface ScalingGroupState {
|
|
149
|
+
/**
|
|
150
|
+
* 伸缩组绑定的伸缩配置的ID。
|
|
151
|
+
*/
|
|
152
|
+
activeScalingConfigurationId?: pulumi.Input<string>;
|
|
153
|
+
/**
|
|
154
|
+
* 伸缩组创建时间。
|
|
155
|
+
*/
|
|
156
|
+
createdTime?: pulumi.Input<string>;
|
|
157
|
+
/**
|
|
158
|
+
* RDS数据库实例的ID。
|
|
159
|
+
*/
|
|
160
|
+
dbInstanceIds?: pulumi.Input<pulumi.Input<string>[]>;
|
|
161
|
+
/**
|
|
162
|
+
* 执行一次伸缩活动(添加或移出ECS实例)结束后的冷却时间。冷却时间内,该伸缩组不执行其它的伸缩活动,仅针对云监控报警任务触发的伸缩活动和伸缩规则有效。取值范围:5 ~ 86400,单位:秒。默认值:300。
|
|
163
|
+
*/
|
|
164
|
+
defaultCooldown?: pulumi.Input<number>;
|
|
165
|
+
/**
|
|
166
|
+
* 伸缩组中期望运行的实例个数。1、不小于最小实例数MinInstanceNumber且不大于最大实例数MaxInstanceNumber。2、默认值:-1,表示不开启期望实例数能力。此时,伸缩组创建完成后会立即开始伸缩活动自动添加相应个数的实例。
|
|
167
|
+
*/
|
|
168
|
+
desireInstanceNumber?: pulumi.Input<number>;
|
|
169
|
+
/**
|
|
170
|
+
* 伸缩组的健康检查方式。1、NONE:不做实例健康状态检查。2、ECS(默认):对伸缩组内的ECS实例做健康检查。
|
|
171
|
+
*/
|
|
172
|
+
healthCheckType?: pulumi.Input<string>;
|
|
173
|
+
/**
|
|
174
|
+
* 实例移除策略,1、OldestInstance:移出最早加入 (包括自动创建和手动添加)伸缩组的实例。2、NewestInstance:移出最晚加入(包括自动创建和手动添加)伸缩组的实例。3、OldestScalingConfigurationWithOldestInstance(默认):移出最早与伸缩组绑定的伸缩配置中,最早由伸缩组 自动创建 的实例。4、OldestScalingConfigurationWithNewestInstance:移出最早与伸缩组绑定的伸缩配置中,最晚由伸缩组 自动创建 的实例。
|
|
175
|
+
*/
|
|
176
|
+
instanceTerminatePolicy?: pulumi.Input<string>;
|
|
177
|
+
/**
|
|
178
|
+
* 实例分布策略。
|
|
179
|
+
*/
|
|
180
|
+
instancesDistribution?: pulumi.Input<inputs.autoscaling.ScalingGroupInstancesDistribution>;
|
|
181
|
+
/**
|
|
182
|
+
* 是否启用伸缩组。true:启用。false:停止
|
|
183
|
+
*/
|
|
184
|
+
isEnableScalingGroup?: pulumi.Input<boolean>;
|
|
185
|
+
/**
|
|
186
|
+
* 实例启动模板ID,配置后表示选择启动模版作为伸缩配置来源。
|
|
187
|
+
*/
|
|
188
|
+
launchTemplateId?: pulumi.Input<string>;
|
|
189
|
+
launchTemplateOverrides?: pulumi.Input<pulumi.Input<inputs.autoscaling.ScalingGroupLaunchTemplateOverride>[]>;
|
|
190
|
+
/**
|
|
191
|
+
* 实例启动模板的版本。1、模板的某个版本号。2、Default(默认):始终使用模板默认版本。3、Latest:始终使用模板最新版本。
|
|
192
|
+
*/
|
|
193
|
+
launchTemplateVersion?: pulumi.Input<string>;
|
|
194
|
+
/**
|
|
195
|
+
* 伸缩组的状态。Active:已启用。InActive:未激活。Deleting:删除中。Locked: 已锁定。CoolingDown: 冷却中。Unknown: 未知状态。
|
|
196
|
+
*/
|
|
197
|
+
lifecycleState?: pulumi.Input<string>;
|
|
198
|
+
/**
|
|
199
|
+
* 伸缩组实例CLB健康状况检查宽限期。
|
|
200
|
+
*/
|
|
201
|
+
loadBalancerHealthCheckGracePeriod?: pulumi.Input<number>;
|
|
202
|
+
/**
|
|
203
|
+
* 伸缩组中实例个数的最大值,默认取值0 ~ 100。您可以通过配额中心调整。
|
|
204
|
+
*/
|
|
205
|
+
maxInstanceNumber?: pulumi.Input<number>;
|
|
206
|
+
/**
|
|
207
|
+
* 伸缩组中实例个数的最小值,默认取值0 ~ 100。您可以通过配额中心调整。
|
|
208
|
+
*/
|
|
209
|
+
minInstanceNumber?: pulumi.Input<number>;
|
|
210
|
+
/**
|
|
211
|
+
* 扩缩容策略,如果您选择了多个子网,需配置本参数。1、PRIORITY(默认):优先级策略。2、BALANCE:均衡分布策略。
|
|
212
|
+
*/
|
|
213
|
+
multiAzPolicy?: pulumi.Input<string>;
|
|
214
|
+
/**
|
|
215
|
+
* 伸缩组所属项目,默认为default。一个资源只能归属于一个项目。只能包含字母、数字、下划线“_”、点“.”和中划线“-”。长度限制在64个字符以内。
|
|
216
|
+
*/
|
|
217
|
+
projectName?: pulumi.Input<string>;
|
|
218
|
+
/**
|
|
219
|
+
* 伸缩组ID。
|
|
220
|
+
*/
|
|
221
|
+
scalingGroupId?: pulumi.Input<string>;
|
|
222
|
+
/**
|
|
223
|
+
* 伸缩组名称,同一地域下伸缩组名称唯一。只能以中文、字母开头,只能包含中文、字母、数字、下划线和中划线 。长度限制为1 ~ 128个字符。暂不支持特殊字符。
|
|
224
|
+
*/
|
|
225
|
+
scalingGroupName?: pulumi.Input<string>;
|
|
226
|
+
/**
|
|
227
|
+
* 伸缩组的实例回收模式。1、release(默认):释放模式。2、recycle:停机回收模式。
|
|
228
|
+
*/
|
|
229
|
+
scalingMode?: pulumi.Input<string>;
|
|
230
|
+
serverGroupAttributes?: pulumi.Input<pulumi.Input<inputs.autoscaling.ScalingGroupServerGroupAttribute>[]>;
|
|
231
|
+
/**
|
|
232
|
+
* 伸缩组内处于停用中状态的实例数量。
|
|
233
|
+
*/
|
|
234
|
+
stoppedInstanceCount?: pulumi.Input<number>;
|
|
235
|
+
/**
|
|
236
|
+
* 伸缩组中实例主网卡的子网ID列表。
|
|
237
|
+
*/
|
|
238
|
+
subnetIds?: pulumi.Input<pulumi.Input<string>[]>;
|
|
239
|
+
/**
|
|
240
|
+
* 暂停中的流程,无暂停中流程则返回空值。ScaleIn:缩容流程。ScaleOut:扩容流程。HealthCheck:健康检查。AlarmNotification:报警任务。ScheduledAction:定时任务。
|
|
241
|
+
*/
|
|
242
|
+
suspendedProcesses?: pulumi.Input<pulumi.Input<string>[]>;
|
|
243
|
+
tags?: pulumi.Input<pulumi.Input<inputs.autoscaling.ScalingGroupTag>[]>;
|
|
244
|
+
/**
|
|
245
|
+
* 当前伸缩组内实例的个数。
|
|
246
|
+
*/
|
|
247
|
+
totalInstanceCount?: pulumi.Input<number>;
|
|
248
|
+
/**
|
|
249
|
+
* 伸缩组更新时间。
|
|
250
|
+
*/
|
|
251
|
+
updatedTime?: pulumi.Input<string>;
|
|
252
|
+
/**
|
|
253
|
+
* 伸缩组所属私有网络ID。
|
|
254
|
+
*/
|
|
255
|
+
vpcId?: pulumi.Input<string>;
|
|
256
|
+
}
|
|
257
|
+
/**
|
|
258
|
+
* The set of arguments for constructing a ScalingGroup resource.
|
|
259
|
+
*/
|
|
260
|
+
export interface ScalingGroupArgs {
|
|
261
|
+
/**
|
|
262
|
+
* 伸缩组绑定的伸缩配置的ID。
|
|
263
|
+
*/
|
|
264
|
+
activeScalingConfigurationId?: pulumi.Input<string>;
|
|
265
|
+
/**
|
|
266
|
+
* 执行一次伸缩活动(添加或移出ECS实例)结束后的冷却时间。冷却时间内,该伸缩组不执行其它的伸缩活动,仅针对云监控报警任务触发的伸缩活动和伸缩规则有效。取值范围:5 ~ 86400,单位:秒。默认值:300。
|
|
267
|
+
*/
|
|
268
|
+
defaultCooldown?: pulumi.Input<number>;
|
|
269
|
+
/**
|
|
270
|
+
* 伸缩组中期望运行的实例个数。1、不小于最小实例数MinInstanceNumber且不大于最大实例数MaxInstanceNumber。2、默认值:-1,表示不开启期望实例数能力。此时,伸缩组创建完成后会立即开始伸缩活动自动添加相应个数的实例。
|
|
271
|
+
*/
|
|
272
|
+
desireInstanceNumber?: pulumi.Input<number>;
|
|
273
|
+
/**
|
|
274
|
+
* 伸缩组的健康检查方式。1、NONE:不做实例健康状态检查。2、ECS(默认):对伸缩组内的ECS实例做健康检查。
|
|
275
|
+
*/
|
|
276
|
+
healthCheckType?: pulumi.Input<string>;
|
|
277
|
+
/**
|
|
278
|
+
* 实例移除策略,1、OldestInstance:移出最早加入 (包括自动创建和手动添加)伸缩组的实例。2、NewestInstance:移出最晚加入(包括自动创建和手动添加)伸缩组的实例。3、OldestScalingConfigurationWithOldestInstance(默认):移出最早与伸缩组绑定的伸缩配置中,最早由伸缩组 自动创建 的实例。4、OldestScalingConfigurationWithNewestInstance:移出最早与伸缩组绑定的伸缩配置中,最晚由伸缩组 自动创建 的实例。
|
|
279
|
+
*/
|
|
280
|
+
instanceTerminatePolicy?: pulumi.Input<string>;
|
|
281
|
+
/**
|
|
282
|
+
* 实例分布策略。
|
|
283
|
+
*/
|
|
284
|
+
instancesDistribution?: pulumi.Input<inputs.autoscaling.ScalingGroupInstancesDistribution>;
|
|
285
|
+
/**
|
|
286
|
+
* 是否启用伸缩组。true:启用。false:停止
|
|
287
|
+
*/
|
|
288
|
+
isEnableScalingGroup?: pulumi.Input<boolean>;
|
|
289
|
+
/**
|
|
290
|
+
* 实例启动模板ID,配置后表示选择启动模版作为伸缩配置来源。
|
|
291
|
+
*/
|
|
292
|
+
launchTemplateId?: pulumi.Input<string>;
|
|
293
|
+
launchTemplateOverrides?: pulumi.Input<pulumi.Input<inputs.autoscaling.ScalingGroupLaunchTemplateOverride>[]>;
|
|
294
|
+
/**
|
|
295
|
+
* 实例启动模板的版本。1、模板的某个版本号。2、Default(默认):始终使用模板默认版本。3、Latest:始终使用模板最新版本。
|
|
296
|
+
*/
|
|
297
|
+
launchTemplateVersion?: pulumi.Input<string>;
|
|
298
|
+
/**
|
|
299
|
+
* 伸缩组中实例个数的最大值,默认取值0 ~ 100。您可以通过配额中心调整。
|
|
300
|
+
*/
|
|
301
|
+
maxInstanceNumber: pulumi.Input<number>;
|
|
302
|
+
/**
|
|
303
|
+
* 伸缩组中实例个数的最小值,默认取值0 ~ 100。您可以通过配额中心调整。
|
|
304
|
+
*/
|
|
305
|
+
minInstanceNumber: pulumi.Input<number>;
|
|
306
|
+
/**
|
|
307
|
+
* 扩缩容策略,如果您选择了多个子网,需配置本参数。1、PRIORITY(默认):优先级策略。2、BALANCE:均衡分布策略。
|
|
308
|
+
*/
|
|
309
|
+
multiAzPolicy?: pulumi.Input<string>;
|
|
310
|
+
/**
|
|
311
|
+
* 伸缩组所属项目,默认为default。一个资源只能归属于一个项目。只能包含字母、数字、下划线“_”、点“.”和中划线“-”。长度限制在64个字符以内。
|
|
312
|
+
*/
|
|
313
|
+
projectName?: pulumi.Input<string>;
|
|
314
|
+
/**
|
|
315
|
+
* 伸缩组名称,同一地域下伸缩组名称唯一。只能以中文、字母开头,只能包含中文、字母、数字、下划线和中划线 。长度限制为1 ~ 128个字符。暂不支持特殊字符。
|
|
316
|
+
*/
|
|
317
|
+
scalingGroupName: pulumi.Input<string>;
|
|
318
|
+
/**
|
|
319
|
+
* 伸缩组的实例回收模式。1、release(默认):释放模式。2、recycle:停机回收模式。
|
|
320
|
+
*/
|
|
321
|
+
scalingMode?: pulumi.Input<string>;
|
|
322
|
+
serverGroupAttributes?: pulumi.Input<pulumi.Input<inputs.autoscaling.ScalingGroupServerGroupAttribute>[]>;
|
|
323
|
+
/**
|
|
324
|
+
* 伸缩组中实例主网卡的子网ID列表。
|
|
325
|
+
*/
|
|
326
|
+
subnetIds: pulumi.Input<pulumi.Input<string>[]>;
|
|
327
|
+
/**
|
|
328
|
+
* 暂停中的流程,无暂停中流程则返回空值。ScaleIn:缩容流程。ScaleOut:扩容流程。HealthCheck:健康检查。AlarmNotification:报警任务。ScheduledAction:定时任务。
|
|
329
|
+
*/
|
|
330
|
+
suspendedProcesses?: pulumi.Input<pulumi.Input<string>[]>;
|
|
331
|
+
tags?: pulumi.Input<pulumi.Input<inputs.autoscaling.ScalingGroupTag>[]>;
|
|
332
|
+
}
|