@pulumi/alicloud 3.46.0 → 3.46.1
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/alikafka/consumerGroup.d.ts +15 -10
- package/alikafka/consumerGroup.js +15 -10
- package/alikafka/consumerGroup.js.map +1 -1
- package/alikafka/instance.d.ts +71 -15
- package/alikafka/instance.js +18 -2
- package/alikafka/instance.js.map +1 -1
- package/alikafka/topic.d.ts +16 -15
- package/alikafka/topic.js +13 -12
- package/alikafka/topic.js.map +1 -1
- package/bastionhost/host.d.ts +8 -9
- package/bastionhost/host.js +8 -9
- package/bastionhost/host.js.map +1 -1
- package/bastionhost/hostAccount.d.ts +8 -9
- package/bastionhost/hostAccount.js +8 -9
- package/bastionhost/hostAccount.js.map +1 -1
- package/bastionhost/hostAccountUserAttachment.d.ts +8 -9
- package/bastionhost/hostAccountUserAttachment.js +8 -9
- package/bastionhost/hostAccountUserAttachment.js.map +1 -1
- package/bastionhost/hostAccountUserGroupAttachment.d.ts +8 -9
- package/bastionhost/hostAccountUserGroupAttachment.js +8 -9
- package/bastionhost/hostAccountUserGroupAttachment.js.map +1 -1
- package/bastionhost/hostAttachment.d.ts +8 -9
- package/bastionhost/hostAttachment.js +8 -9
- package/bastionhost/hostAttachment.js.map +1 -1
- package/bastionhost/hostGroup.d.ts +8 -9
- package/bastionhost/hostGroup.js +8 -9
- package/bastionhost/hostGroup.js.map +1 -1
- package/bastionhost/hostGroupAccountUserAttachment.d.ts +8 -9
- package/bastionhost/hostGroupAccountUserAttachment.js +8 -9
- package/bastionhost/hostGroupAccountUserAttachment.js.map +1 -1
- package/bastionhost/hostGroupAccountUserGroupAttachment.d.ts +8 -9
- package/bastionhost/hostGroupAccountUserGroupAttachment.js +8 -9
- package/bastionhost/hostGroupAccountUserGroupAttachment.js.map +1 -1
- package/bastionhost/user.d.ts +8 -9
- package/bastionhost/user.js +8 -9
- package/bastionhost/user.js.map +1 -1
- package/bastionhost/userAttachment.d.ts +8 -9
- package/bastionhost/userAttachment.js +8 -9
- package/bastionhost/userAttachment.js.map +1 -1
- package/bastionhost/userGroup.d.ts +8 -9
- package/bastionhost/userGroup.js +8 -9
- package/bastionhost/userGroup.js.map +1 -1
- package/cen/transitRouterMulticastDomainPeerMember.d.ts +40 -15
- package/cen/transitRouterMulticastDomainPeerMember.js +40 -15
- package/cen/transitRouterMulticastDomainPeerMember.js.map +1 -1
- package/dms/enterpriseInstance.d.ts +1 -1
- package/ess/eciScalingConfiguration.d.ts +84 -0
- package/ess/eciScalingConfiguration.js +14 -0
- package/ess/eciScalingConfiguration.js.map +1 -1
- package/log/store.d.ts +84 -32
- package/log/store.js +12 -7
- package/log/store.js.map +1 -1
- package/mongodb/shardingInstance.d.ts +1 -1
- package/package.json +1 -1
- package/rds/rdsUpgradeDbInstance.d.ts +57 -0
- package/rds/rdsUpgradeDbInstance.js +57 -0
- package/rds/rdsUpgradeDbInstance.js.map +1 -1
- package/types/input.d.ts +46 -11
- package/types/output.d.ts +46 -11
- package/vpc/peerConnection.d.ts +18 -24
- package/vpc/peerConnection.js +1 -1
- package/vpc/peerConnection.js.map +1 -1
|
@@ -14,29 +14,34 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
14
14
|
* ```typescript
|
|
15
15
|
* import * as pulumi from "@pulumi/pulumi";
|
|
16
16
|
* import * as alicloud from "@pulumi/alicloud";
|
|
17
|
+
* import * as random from "@pulumi/random";
|
|
17
18
|
*
|
|
18
19
|
* const config = new pulumi.Config();
|
|
19
|
-
* const name = config.get("name") || "
|
|
20
|
-
* const
|
|
21
|
-
*
|
|
20
|
+
* const name = config.get("name") || "terraform-example";
|
|
21
|
+
* const defaultRandomInteger = new random.RandomInteger("defaultRandomInteger", {
|
|
22
|
+
* min: 10000,
|
|
23
|
+
* max: 99999,
|
|
22
24
|
* });
|
|
23
|
-
* const
|
|
24
|
-
*
|
|
25
|
-
* vpcId: defaultNetwork.id,
|
|
26
|
-
* cidrBlock: "172.16.0.0/24",
|
|
27
|
-
* zoneId: defaultZones.then(defaultZones => defaultZones.zones?.[0]?.id),
|
|
25
|
+
* const defaultNetworks = alicloud.vpc.getNetworks({
|
|
26
|
+
* nameRegex: "^default-NODELETING$",
|
|
28
27
|
* });
|
|
28
|
+
* const defaultSwitches = defaultNetworks.then(defaultNetworks => alicloud.vpc.getSwitches({
|
|
29
|
+
* vpcId: defaultNetworks.ids?.[0],
|
|
30
|
+
* }));
|
|
31
|
+
* const defaultSecurityGroup = new alicloud.ecs.SecurityGroup("defaultSecurityGroup", {vpcId: defaultNetworks.then(defaultNetworks => defaultNetworks.ids?.[0])});
|
|
29
32
|
* const defaultInstance = new alicloud.alikafka.Instance("defaultInstance", {
|
|
30
33
|
* partitionNum: 50,
|
|
31
34
|
* diskType: 1,
|
|
32
35
|
* diskSize: 500,
|
|
33
36
|
* deployType: 5,
|
|
34
37
|
* ioMax: 20,
|
|
35
|
-
* vswitchId:
|
|
38
|
+
* vswitchId: defaultSwitches.then(defaultSwitches => defaultSwitches.ids?.[0]),
|
|
39
|
+
* securityGroup: defaultSecurityGroup.id,
|
|
36
40
|
* });
|
|
37
41
|
* const defaultConsumerGroup = new alicloud.alikafka.ConsumerGroup("defaultConsumerGroup", {
|
|
38
|
-
* consumerId: name,
|
|
39
42
|
* instanceId: defaultInstance.id,
|
|
43
|
+
* consumerId: pulumi.interpolate`${name}-${defaultRandomInteger.result}`,
|
|
44
|
+
* description: pulumi.interpolate`${name}-${defaultRandomInteger.result}`,
|
|
40
45
|
* });
|
|
41
46
|
* ```
|
|
42
47
|
*
|
|
@@ -20,29 +20,34 @@ const utilities = require("../utilities");
|
|
|
20
20
|
* ```typescript
|
|
21
21
|
* import * as pulumi from "@pulumi/pulumi";
|
|
22
22
|
* import * as alicloud from "@pulumi/alicloud";
|
|
23
|
+
* import * as random from "@pulumi/random";
|
|
23
24
|
*
|
|
24
25
|
* const config = new pulumi.Config();
|
|
25
|
-
* const name = config.get("name") || "
|
|
26
|
-
* const
|
|
27
|
-
*
|
|
26
|
+
* const name = config.get("name") || "terraform-example";
|
|
27
|
+
* const defaultRandomInteger = new random.RandomInteger("defaultRandomInteger", {
|
|
28
|
+
* min: 10000,
|
|
29
|
+
* max: 99999,
|
|
28
30
|
* });
|
|
29
|
-
* const
|
|
30
|
-
*
|
|
31
|
-
* vpcId: defaultNetwork.id,
|
|
32
|
-
* cidrBlock: "172.16.0.0/24",
|
|
33
|
-
* zoneId: defaultZones.then(defaultZones => defaultZones.zones?.[0]?.id),
|
|
31
|
+
* const defaultNetworks = alicloud.vpc.getNetworks({
|
|
32
|
+
* nameRegex: "^default-NODELETING$",
|
|
34
33
|
* });
|
|
34
|
+
* const defaultSwitches = defaultNetworks.then(defaultNetworks => alicloud.vpc.getSwitches({
|
|
35
|
+
* vpcId: defaultNetworks.ids?.[0],
|
|
36
|
+
* }));
|
|
37
|
+
* const defaultSecurityGroup = new alicloud.ecs.SecurityGroup("defaultSecurityGroup", {vpcId: defaultNetworks.then(defaultNetworks => defaultNetworks.ids?.[0])});
|
|
35
38
|
* const defaultInstance = new alicloud.alikafka.Instance("defaultInstance", {
|
|
36
39
|
* partitionNum: 50,
|
|
37
40
|
* diskType: 1,
|
|
38
41
|
* diskSize: 500,
|
|
39
42
|
* deployType: 5,
|
|
40
43
|
* ioMax: 20,
|
|
41
|
-
* vswitchId:
|
|
44
|
+
* vswitchId: defaultSwitches.then(defaultSwitches => defaultSwitches.ids?.[0]),
|
|
45
|
+
* securityGroup: defaultSecurityGroup.id,
|
|
42
46
|
* });
|
|
43
47
|
* const defaultConsumerGroup = new alicloud.alikafka.ConsumerGroup("defaultConsumerGroup", {
|
|
44
|
-
* consumerId: name,
|
|
45
48
|
* instanceId: defaultInstance.id,
|
|
49
|
+
* consumerId: pulumi.interpolate`${name}-${defaultRandomInteger.result}`,
|
|
50
|
+
* description: pulumi.interpolate`${name}-${defaultRandomInteger.result}`,
|
|
46
51
|
* });
|
|
47
52
|
* ```
|
|
48
53
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consumerGroup.js","sourceRoot":"","sources":["../../alikafka/consumerGroup.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"consumerGroup.js","sourceRoot":"","sources":["../../alikafka/consumerGroup.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqDG;AACH,MAAa,aAAc,SAAQ,MAAM,CAAC,cAAc;IACpD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA0B,EAAE,IAAmC;QACxH,OAAO,IAAI,aAAa,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACpE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,aAAa,CAAC,YAAY,CAAC;IAC9D,CAAC;IA2BD,YAAY,IAAY,EAAE,WAAoD,EAAE,IAAmC;QAC/G,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA6C,CAAC;YAC5D,cAAc,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAA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c,EAAE,IAAI,CAAC,CAAC;IAClE,CAAC;;AA7EL,sCA8EC;AAhEG,gBAAgB;AACO,0BAAY,GAAG,+CAA+C,CAAC"}
|
package/alikafka/instance.d.ts
CHANGED
|
@@ -2,10 +2,10 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
2
2
|
/**
|
|
3
3
|
* ## Import
|
|
4
4
|
*
|
|
5
|
-
*
|
|
5
|
+
* AliKafka instance can be imported using the id, e.g.
|
|
6
6
|
*
|
|
7
7
|
* ```sh
|
|
8
|
-
* $ pulumi import alicloud:alikafka/instance:Instance instance
|
|
8
|
+
* $ pulumi import alicloud:alikafka/instance:Instance instance <id>
|
|
9
9
|
* ```
|
|
10
10
|
*/
|
|
11
11
|
export declare class Instance extends pulumi.CustomResource {
|
|
@@ -50,6 +50,14 @@ export declare class Instance extends pulumi.CustomResource {
|
|
|
50
50
|
* The EndPoint to access the kafka instance.
|
|
51
51
|
*/
|
|
52
52
|
readonly endPoint: pulumi.Output<string>;
|
|
53
|
+
/**
|
|
54
|
+
* (Available since v1.214.1) The number of available groups.
|
|
55
|
+
*/
|
|
56
|
+
readonly groupLeft: pulumi.Output<number>;
|
|
57
|
+
/**
|
|
58
|
+
* (Available since v1.214.1) The number of used groups.
|
|
59
|
+
*/
|
|
60
|
+
readonly groupUsed: pulumi.Output<number>;
|
|
53
61
|
/**
|
|
54
62
|
* The max value of io of the instance. When modify this value, it only support adjust to a greater value.
|
|
55
63
|
*/
|
|
@@ -60,6 +68,10 @@ export declare class Instance extends pulumi.CustomResource {
|
|
|
60
68
|
* - For more information about the valid values, see [Billing](https://www.alibabacloud.com/help/en/message-queue-for-apache-kafka/latest/billing-overview).
|
|
61
69
|
*/
|
|
62
70
|
readonly ioMaxSpec: pulumi.Output<string>;
|
|
71
|
+
/**
|
|
72
|
+
* (Available since v1.214.1) The method that you use to purchase partitions.
|
|
73
|
+
*/
|
|
74
|
+
readonly isPartitionBuy: pulumi.Output<number>;
|
|
63
75
|
/**
|
|
64
76
|
* The ID of the key that is used to encrypt data on standard SSDs in the region of the instance.
|
|
65
77
|
*/
|
|
@@ -72,10 +84,18 @@ export declare class Instance extends pulumi.CustomResource {
|
|
|
72
84
|
* The paid type of the instance. Support two type, "PrePaid": pre paid type instance, "PostPaid": post paid type instance. Default is PostPaid. When modify this value, it only support adjust from post pay to pre pay.
|
|
73
85
|
*/
|
|
74
86
|
readonly paidType: pulumi.Output<string | undefined>;
|
|
87
|
+
/**
|
|
88
|
+
* (Available since v1.214.1) The number of available partitions.
|
|
89
|
+
*/
|
|
90
|
+
readonly partitionLeft: pulumi.Output<number>;
|
|
75
91
|
/**
|
|
76
92
|
* The number of partitions.
|
|
77
93
|
*/
|
|
78
94
|
readonly partitionNum: pulumi.Output<number | undefined>;
|
|
95
|
+
/**
|
|
96
|
+
* (Available since v1.214.1) The number of used partitions.
|
|
97
|
+
*/
|
|
98
|
+
readonly partitionUsed: pulumi.Output<number>;
|
|
79
99
|
/**
|
|
80
100
|
* The ID of security group for this instance. If the security group is empty, system will create a default one.
|
|
81
101
|
*/
|
|
@@ -103,11 +123,7 @@ export declare class Instance extends pulumi.CustomResource {
|
|
|
103
123
|
*/
|
|
104
124
|
readonly specType: pulumi.Output<string | undefined>;
|
|
105
125
|
/**
|
|
106
|
-
* The status of the instance.
|
|
107
|
-
* - 0: pending
|
|
108
|
-
* - 1: deploying
|
|
109
|
-
* - 5: running
|
|
110
|
-
* - 15: expired
|
|
126
|
+
* The status of the instance.
|
|
111
127
|
*/
|
|
112
128
|
readonly status: pulumi.Output<number>;
|
|
113
129
|
/**
|
|
@@ -116,15 +132,27 @@ export declare class Instance extends pulumi.CustomResource {
|
|
|
116
132
|
readonly tags: pulumi.Output<{
|
|
117
133
|
[key: string]: any;
|
|
118
134
|
} | undefined>;
|
|
135
|
+
/**
|
|
136
|
+
* (Available since v1.214.1) The number of available topics.
|
|
137
|
+
*/
|
|
138
|
+
readonly topicLeft: pulumi.Output<number>;
|
|
139
|
+
/**
|
|
140
|
+
* (Available since v1.214.1) The number of purchased topics.
|
|
141
|
+
*/
|
|
142
|
+
readonly topicNumOfBuy: pulumi.Output<number>;
|
|
119
143
|
/**
|
|
120
144
|
* The max num of topic can be creation of the instance.
|
|
121
145
|
* It has been deprecated since version 1.194.0 and using `partitionNum` instead.
|
|
122
146
|
* Currently, its value only can be set to 50 when creating it, and finally depends on `partitionNum` value: <`topicQuota`> = 1000 + <`partitionNum`>.
|
|
123
147
|
* Therefore, you can update it by updating the `partitionNum`, and it is the only updating path.
|
|
124
148
|
*
|
|
125
|
-
* @deprecated Attribute
|
|
149
|
+
* @deprecated Attribute `topic_quota` has been deprecated since 1.194.0 and it will be removed in the next future. Using new attribute `partition_num` instead.
|
|
126
150
|
*/
|
|
127
151
|
readonly topicQuota: pulumi.Output<number>;
|
|
152
|
+
/**
|
|
153
|
+
* (Available since v1.214.1) The number of used topics.
|
|
154
|
+
*/
|
|
155
|
+
readonly topicUsed: pulumi.Output<number>;
|
|
128
156
|
/**
|
|
129
157
|
* The VPC ID of the instance.
|
|
130
158
|
*/
|
|
@@ -176,6 +204,14 @@ export interface InstanceState {
|
|
|
176
204
|
* The EndPoint to access the kafka instance.
|
|
177
205
|
*/
|
|
178
206
|
endPoint?: pulumi.Input<string>;
|
|
207
|
+
/**
|
|
208
|
+
* (Available since v1.214.1) The number of available groups.
|
|
209
|
+
*/
|
|
210
|
+
groupLeft?: pulumi.Input<number>;
|
|
211
|
+
/**
|
|
212
|
+
* (Available since v1.214.1) The number of used groups.
|
|
213
|
+
*/
|
|
214
|
+
groupUsed?: pulumi.Input<number>;
|
|
179
215
|
/**
|
|
180
216
|
* The max value of io of the instance. When modify this value, it only support adjust to a greater value.
|
|
181
217
|
*/
|
|
@@ -186,6 +222,10 @@ export interface InstanceState {
|
|
|
186
222
|
* - For more information about the valid values, see [Billing](https://www.alibabacloud.com/help/en/message-queue-for-apache-kafka/latest/billing-overview).
|
|
187
223
|
*/
|
|
188
224
|
ioMaxSpec?: pulumi.Input<string>;
|
|
225
|
+
/**
|
|
226
|
+
* (Available since v1.214.1) The method that you use to purchase partitions.
|
|
227
|
+
*/
|
|
228
|
+
isPartitionBuy?: pulumi.Input<number>;
|
|
189
229
|
/**
|
|
190
230
|
* The ID of the key that is used to encrypt data on standard SSDs in the region of the instance.
|
|
191
231
|
*/
|
|
@@ -198,10 +238,18 @@ export interface InstanceState {
|
|
|
198
238
|
* The paid type of the instance. Support two type, "PrePaid": pre paid type instance, "PostPaid": post paid type instance. Default is PostPaid. When modify this value, it only support adjust from post pay to pre pay.
|
|
199
239
|
*/
|
|
200
240
|
paidType?: pulumi.Input<string>;
|
|
241
|
+
/**
|
|
242
|
+
* (Available since v1.214.1) The number of available partitions.
|
|
243
|
+
*/
|
|
244
|
+
partitionLeft?: pulumi.Input<number>;
|
|
201
245
|
/**
|
|
202
246
|
* The number of partitions.
|
|
203
247
|
*/
|
|
204
248
|
partitionNum?: pulumi.Input<number>;
|
|
249
|
+
/**
|
|
250
|
+
* (Available since v1.214.1) The number of used partitions.
|
|
251
|
+
*/
|
|
252
|
+
partitionUsed?: pulumi.Input<number>;
|
|
205
253
|
/**
|
|
206
254
|
* The ID of security group for this instance. If the security group is empty, system will create a default one.
|
|
207
255
|
*/
|
|
@@ -229,11 +277,7 @@ export interface InstanceState {
|
|
|
229
277
|
*/
|
|
230
278
|
specType?: pulumi.Input<string>;
|
|
231
279
|
/**
|
|
232
|
-
* The status of the instance.
|
|
233
|
-
* - 0: pending
|
|
234
|
-
* - 1: deploying
|
|
235
|
-
* - 5: running
|
|
236
|
-
* - 15: expired
|
|
280
|
+
* The status of the instance.
|
|
237
281
|
*/
|
|
238
282
|
status?: pulumi.Input<number>;
|
|
239
283
|
/**
|
|
@@ -242,15 +286,27 @@ export interface InstanceState {
|
|
|
242
286
|
tags?: pulumi.Input<{
|
|
243
287
|
[key: string]: any;
|
|
244
288
|
}>;
|
|
289
|
+
/**
|
|
290
|
+
* (Available since v1.214.1) The number of available topics.
|
|
291
|
+
*/
|
|
292
|
+
topicLeft?: pulumi.Input<number>;
|
|
293
|
+
/**
|
|
294
|
+
* (Available since v1.214.1) The number of purchased topics.
|
|
295
|
+
*/
|
|
296
|
+
topicNumOfBuy?: pulumi.Input<number>;
|
|
245
297
|
/**
|
|
246
298
|
* The max num of topic can be creation of the instance.
|
|
247
299
|
* It has been deprecated since version 1.194.0 and using `partitionNum` instead.
|
|
248
300
|
* Currently, its value only can be set to 50 when creating it, and finally depends on `partitionNum` value: <`topicQuota`> = 1000 + <`partitionNum`>.
|
|
249
301
|
* Therefore, you can update it by updating the `partitionNum`, and it is the only updating path.
|
|
250
302
|
*
|
|
251
|
-
* @deprecated Attribute
|
|
303
|
+
* @deprecated Attribute `topic_quota` has been deprecated since 1.194.0 and it will be removed in the next future. Using new attribute `partition_num` instead.
|
|
252
304
|
*/
|
|
253
305
|
topicQuota?: pulumi.Input<number>;
|
|
306
|
+
/**
|
|
307
|
+
* (Available since v1.214.1) The number of used topics.
|
|
308
|
+
*/
|
|
309
|
+
topicUsed?: pulumi.Input<number>;
|
|
254
310
|
/**
|
|
255
311
|
* The VPC ID of the instance.
|
|
256
312
|
*/
|
|
@@ -354,7 +410,7 @@ export interface InstanceArgs {
|
|
|
354
410
|
* Currently, its value only can be set to 50 when creating it, and finally depends on `partitionNum` value: <`topicQuota`> = 1000 + <`partitionNum`>.
|
|
355
411
|
* Therefore, you can update it by updating the `partitionNum`, and it is the only updating path.
|
|
356
412
|
*
|
|
357
|
-
* @deprecated Attribute
|
|
413
|
+
* @deprecated Attribute `topic_quota` has been deprecated since 1.194.0 and it will be removed in the next future. Using new attribute `partition_num` instead.
|
|
358
414
|
*/
|
|
359
415
|
topicQuota?: pulumi.Input<number>;
|
|
360
416
|
/**
|
package/alikafka/instance.js
CHANGED
|
@@ -8,10 +8,10 @@ const utilities = require("../utilities");
|
|
|
8
8
|
/**
|
|
9
9
|
* ## Import
|
|
10
10
|
*
|
|
11
|
-
*
|
|
11
|
+
* AliKafka instance can be imported using the id, e.g.
|
|
12
12
|
*
|
|
13
13
|
* ```sh
|
|
14
|
-
* $ pulumi import alicloud:alikafka/instance:Instance instance
|
|
14
|
+
* $ pulumi import alicloud:alikafka/instance:Instance instance <id>
|
|
15
15
|
* ```
|
|
16
16
|
*/
|
|
17
17
|
class Instance extends pulumi.CustomResource {
|
|
@@ -48,19 +48,27 @@ class Instance extends pulumi.CustomResource {
|
|
|
48
48
|
resourceInputs["diskType"] = state ? state.diskType : undefined;
|
|
49
49
|
resourceInputs["eipMax"] = state ? state.eipMax : undefined;
|
|
50
50
|
resourceInputs["endPoint"] = state ? state.endPoint : undefined;
|
|
51
|
+
resourceInputs["groupLeft"] = state ? state.groupLeft : undefined;
|
|
52
|
+
resourceInputs["groupUsed"] = state ? state.groupUsed : undefined;
|
|
51
53
|
resourceInputs["ioMax"] = state ? state.ioMax : undefined;
|
|
52
54
|
resourceInputs["ioMaxSpec"] = state ? state.ioMaxSpec : undefined;
|
|
55
|
+
resourceInputs["isPartitionBuy"] = state ? state.isPartitionBuy : undefined;
|
|
53
56
|
resourceInputs["kmsKeyId"] = state ? state.kmsKeyId : undefined;
|
|
54
57
|
resourceInputs["name"] = state ? state.name : undefined;
|
|
55
58
|
resourceInputs["paidType"] = state ? state.paidType : undefined;
|
|
59
|
+
resourceInputs["partitionLeft"] = state ? state.partitionLeft : undefined;
|
|
56
60
|
resourceInputs["partitionNum"] = state ? state.partitionNum : undefined;
|
|
61
|
+
resourceInputs["partitionUsed"] = state ? state.partitionUsed : undefined;
|
|
57
62
|
resourceInputs["securityGroup"] = state ? state.securityGroup : undefined;
|
|
58
63
|
resourceInputs["selectedZones"] = state ? state.selectedZones : undefined;
|
|
59
64
|
resourceInputs["serviceVersion"] = state ? state.serviceVersion : undefined;
|
|
60
65
|
resourceInputs["specType"] = state ? state.specType : undefined;
|
|
61
66
|
resourceInputs["status"] = state ? state.status : undefined;
|
|
62
67
|
resourceInputs["tags"] = state ? state.tags : undefined;
|
|
68
|
+
resourceInputs["topicLeft"] = state ? state.topicLeft : undefined;
|
|
69
|
+
resourceInputs["topicNumOfBuy"] = state ? state.topicNumOfBuy : undefined;
|
|
63
70
|
resourceInputs["topicQuota"] = state ? state.topicQuota : undefined;
|
|
71
|
+
resourceInputs["topicUsed"] = state ? state.topicUsed : undefined;
|
|
64
72
|
resourceInputs["vpcId"] = state ? state.vpcId : undefined;
|
|
65
73
|
resourceInputs["vswitchId"] = state ? state.vswitchId : undefined;
|
|
66
74
|
resourceInputs["zoneId"] = state ? state.zoneId : undefined;
|
|
@@ -100,7 +108,15 @@ class Instance extends pulumi.CustomResource {
|
|
|
100
108
|
resourceInputs["vswitchId"] = args ? args.vswitchId : undefined;
|
|
101
109
|
resourceInputs["zoneId"] = args ? args.zoneId : undefined;
|
|
102
110
|
resourceInputs["endPoint"] = undefined /*out*/;
|
|
111
|
+
resourceInputs["groupLeft"] = undefined /*out*/;
|
|
112
|
+
resourceInputs["groupUsed"] = undefined /*out*/;
|
|
113
|
+
resourceInputs["isPartitionBuy"] = undefined /*out*/;
|
|
114
|
+
resourceInputs["partitionLeft"] = undefined /*out*/;
|
|
115
|
+
resourceInputs["partitionUsed"] = undefined /*out*/;
|
|
103
116
|
resourceInputs["status"] = undefined /*out*/;
|
|
117
|
+
resourceInputs["topicLeft"] = undefined /*out*/;
|
|
118
|
+
resourceInputs["topicNumOfBuy"] = undefined /*out*/;
|
|
119
|
+
resourceInputs["topicUsed"] = undefined /*out*/;
|
|
104
120
|
}
|
|
105
121
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
106
122
|
super(Instance.__pulumiType, name, resourceInputs, opts);
|
package/alikafka/instance.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"instance.js","sourceRoot":"","sources":["../../alikafka/instance.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;GAQG;AACH,MAAa,QAA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G,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,cAAc,CAAC,UAAU,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC/C,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,cAAc,CAAC,gBAAgB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACrD,cAAc,CAAC,eAAe,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACpD,cAAc,CAAC,eAAe,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACpD,cAAc,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC7C,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,cAAc,CAAC,eAAe,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACpD,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACnD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,QAAQ,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC7D,CAAC;;AAlQL,4BAmQC;AArPG,gBAAgB;AACO,qBAAY,GAAG,qCAAqC,CAAC"}
|
package/alikafka/topic.d.ts
CHANGED
|
@@ -15,30 +15,31 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
15
15
|
* import * as pulumi from "@pulumi/pulumi";
|
|
16
16
|
* import * as alicloud from "@pulumi/alicloud";
|
|
17
17
|
*
|
|
18
|
-
* const
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
* const defaultSwitch = new alicloud.vpc.Switch("defaultSwitch", {
|
|
23
|
-
* vpcId: defaultNetwork.id,
|
|
24
|
-
* cidrBlock: "172.16.0.0/24",
|
|
25
|
-
* zoneId: defaultZones.then(defaultZones => defaultZones.zones?.[0]?.id),
|
|
18
|
+
* const config = new pulumi.Config();
|
|
19
|
+
* const name = config.get("name") || "terraform-example";
|
|
20
|
+
* const defaultNetworks = alicloud.vpc.getNetworks({
|
|
21
|
+
* nameRegex: "^default-NODELETING$",
|
|
26
22
|
* });
|
|
23
|
+
* const defaultSwitches = defaultNetworks.then(defaultNetworks => alicloud.vpc.getSwitches({
|
|
24
|
+
* vpcId: defaultNetworks.ids?.[0],
|
|
25
|
+
* }));
|
|
26
|
+
* const defaultSecurityGroup = new alicloud.ecs.SecurityGroup("defaultSecurityGroup", {vpcId: defaultNetworks.then(defaultNetworks => defaultNetworks.ids?.[0])});
|
|
27
27
|
* const defaultInstance = new alicloud.alikafka.Instance("defaultInstance", {
|
|
28
28
|
* partitionNum: 50,
|
|
29
29
|
* diskType: 1,
|
|
30
30
|
* diskSize: 500,
|
|
31
31
|
* deployType: 5,
|
|
32
32
|
* ioMax: 20,
|
|
33
|
-
* vswitchId:
|
|
33
|
+
* vswitchId: defaultSwitches.then(defaultSwitches => defaultSwitches.ids?.[0]),
|
|
34
|
+
* securityGroup: defaultSecurityGroup.id,
|
|
34
35
|
* });
|
|
35
36
|
* const defaultTopic = new alicloud.alikafka.Topic("defaultTopic", {
|
|
37
|
+
* remark: "alicloud_alikafka_topic_remark",
|
|
36
38
|
* instanceId: defaultInstance.id,
|
|
37
|
-
* topic:
|
|
39
|
+
* topic: name,
|
|
38
40
|
* localTopic: false,
|
|
39
41
|
* compactTopic: false,
|
|
40
|
-
* partitionNum:
|
|
41
|
-
* remark: "dafault_kafka_topic_remark",
|
|
42
|
+
* partitionNum: 6,
|
|
42
43
|
* });
|
|
43
44
|
* ```
|
|
44
45
|
*
|
|
@@ -93,7 +94,7 @@ export declare class Topic extends pulumi.CustomResource {
|
|
|
93
94
|
[key: string]: any;
|
|
94
95
|
} | undefined>;
|
|
95
96
|
/**
|
|
96
|
-
* Name of the topic. Two topics on a single instance cannot have the same name. The length cannot exceed
|
|
97
|
+
* Name of the topic. Two topics on a single instance cannot have the same name. The length cannot exceed 249 characters.
|
|
97
98
|
*/
|
|
98
99
|
readonly topic: pulumi.Output<string>;
|
|
99
100
|
/**
|
|
@@ -136,7 +137,7 @@ export interface TopicState {
|
|
|
136
137
|
[key: string]: any;
|
|
137
138
|
}>;
|
|
138
139
|
/**
|
|
139
|
-
* Name of the topic. Two topics on a single instance cannot have the same name. The length cannot exceed
|
|
140
|
+
* Name of the topic. Two topics on a single instance cannot have the same name. The length cannot exceed 249 characters.
|
|
140
141
|
*/
|
|
141
142
|
topic?: pulumi.Input<string>;
|
|
142
143
|
}
|
|
@@ -171,7 +172,7 @@ export interface TopicArgs {
|
|
|
171
172
|
[key: string]: any;
|
|
172
173
|
}>;
|
|
173
174
|
/**
|
|
174
|
-
* Name of the topic. Two topics on a single instance cannot have the same name. The length cannot exceed
|
|
175
|
+
* Name of the topic. Two topics on a single instance cannot have the same name. The length cannot exceed 249 characters.
|
|
175
176
|
*/
|
|
176
177
|
topic: pulumi.Input<string>;
|
|
177
178
|
}
|
package/alikafka/topic.js
CHANGED
|
@@ -21,30 +21,31 @@ const utilities = require("../utilities");
|
|
|
21
21
|
* import * as pulumi from "@pulumi/pulumi";
|
|
22
22
|
* import * as alicloud from "@pulumi/alicloud";
|
|
23
23
|
*
|
|
24
|
-
* const
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
* const defaultSwitch = new alicloud.vpc.Switch("defaultSwitch", {
|
|
29
|
-
* vpcId: defaultNetwork.id,
|
|
30
|
-
* cidrBlock: "172.16.0.0/24",
|
|
31
|
-
* zoneId: defaultZones.then(defaultZones => defaultZones.zones?.[0]?.id),
|
|
24
|
+
* const config = new pulumi.Config();
|
|
25
|
+
* const name = config.get("name") || "terraform-example";
|
|
26
|
+
* const defaultNetworks = alicloud.vpc.getNetworks({
|
|
27
|
+
* nameRegex: "^default-NODELETING$",
|
|
32
28
|
* });
|
|
29
|
+
* const defaultSwitches = defaultNetworks.then(defaultNetworks => alicloud.vpc.getSwitches({
|
|
30
|
+
* vpcId: defaultNetworks.ids?.[0],
|
|
31
|
+
* }));
|
|
32
|
+
* const defaultSecurityGroup = new alicloud.ecs.SecurityGroup("defaultSecurityGroup", {vpcId: defaultNetworks.then(defaultNetworks => defaultNetworks.ids?.[0])});
|
|
33
33
|
* const defaultInstance = new alicloud.alikafka.Instance("defaultInstance", {
|
|
34
34
|
* partitionNum: 50,
|
|
35
35
|
* diskType: 1,
|
|
36
36
|
* diskSize: 500,
|
|
37
37
|
* deployType: 5,
|
|
38
38
|
* ioMax: 20,
|
|
39
|
-
* vswitchId:
|
|
39
|
+
* vswitchId: defaultSwitches.then(defaultSwitches => defaultSwitches.ids?.[0]),
|
|
40
|
+
* securityGroup: defaultSecurityGroup.id,
|
|
40
41
|
* });
|
|
41
42
|
* const defaultTopic = new alicloud.alikafka.Topic("defaultTopic", {
|
|
43
|
+
* remark: "alicloud_alikafka_topic_remark",
|
|
42
44
|
* instanceId: defaultInstance.id,
|
|
43
|
-
* topic:
|
|
45
|
+
* topic: name,
|
|
44
46
|
* localTopic: false,
|
|
45
47
|
* compactTopic: false,
|
|
46
|
-
* partitionNum:
|
|
47
|
-
* remark: "dafault_kafka_topic_remark",
|
|
48
|
+
* partitionNum: 6,
|
|
48
49
|
* });
|
|
49
50
|
* ```
|
|
50
51
|
*
|
package/alikafka/topic.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"topic.js","sourceRoot":"","sources":["../../alikafka/topic.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"topic.js","sourceRoot":"","sources":["../../alikafka/topic.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,i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,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;YACtE,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;SAC3D;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,KAAK,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC1D,CAAC;;AAlGL,sBAmGC;AArFG,gBAAgB;AACO,kBAAY,GAAG,+BAA+B,CAAC"}
|
package/bastionhost/host.d.ts
CHANGED
|
@@ -19,17 +19,16 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
19
19
|
* const defaultZones = alicloud.getZones({
|
|
20
20
|
* availableResourceCreation: "VSwitch",
|
|
21
21
|
* });
|
|
22
|
-
* const
|
|
23
|
-
*
|
|
22
|
+
* const defaultNetworks = alicloud.vpc.getNetworks({
|
|
23
|
+
* nameRegex: "^default-NODELETING$",
|
|
24
24
|
* cidrBlock: "10.4.0.0/16",
|
|
25
25
|
* });
|
|
26
|
-
* const
|
|
27
|
-
* vswitchName: name,
|
|
26
|
+
* const defaultSwitches = Promise.all([defaultNetworks, defaultZones]).then(([defaultNetworks, defaultZones]) => alicloud.vpc.getSwitches({
|
|
28
27
|
* cidrBlock: "10.4.0.0/24",
|
|
29
|
-
* vpcId:
|
|
30
|
-
* zoneId: defaultZones.
|
|
31
|
-
* });
|
|
32
|
-
* const defaultSecurityGroup = new alicloud.ecs.SecurityGroup("defaultSecurityGroup", {vpcId:
|
|
28
|
+
* vpcId: defaultNetworks.ids?.[0],
|
|
29
|
+
* zoneId: defaultZones.zones?.[0]?.id,
|
|
30
|
+
* }));
|
|
31
|
+
* const defaultSecurityGroup = new alicloud.ecs.SecurityGroup("defaultSecurityGroup", {vpcId: defaultNetworks.then(defaultNetworks => defaultNetworks.ids?.[0])});
|
|
33
32
|
* const defaultInstance = new alicloud.bastionhost.Instance("defaultInstance", {
|
|
34
33
|
* description: name,
|
|
35
34
|
* licenseCode: "bhah_ent_50_asset",
|
|
@@ -37,7 +36,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
37
36
|
* storage: "5",
|
|
38
37
|
* bandwidth: "5",
|
|
39
38
|
* period: 1,
|
|
40
|
-
* vswitchId:
|
|
39
|
+
* vswitchId: defaultSwitches.then(defaultSwitches => defaultSwitches.ids?.[0]),
|
|
41
40
|
* securityGroupIds: [defaultSecurityGroup.id],
|
|
42
41
|
* });
|
|
43
42
|
* const defaultHost = new alicloud.bastionhost.Host("defaultHost", {
|
package/bastionhost/host.js
CHANGED
|
@@ -25,17 +25,16 @@ const utilities = require("../utilities");
|
|
|
25
25
|
* const defaultZones = alicloud.getZones({
|
|
26
26
|
* availableResourceCreation: "VSwitch",
|
|
27
27
|
* });
|
|
28
|
-
* const
|
|
29
|
-
*
|
|
28
|
+
* const defaultNetworks = alicloud.vpc.getNetworks({
|
|
29
|
+
* nameRegex: "^default-NODELETING$",
|
|
30
30
|
* cidrBlock: "10.4.0.0/16",
|
|
31
31
|
* });
|
|
32
|
-
* const
|
|
33
|
-
* vswitchName: name,
|
|
32
|
+
* const defaultSwitches = Promise.all([defaultNetworks, defaultZones]).then(([defaultNetworks, defaultZones]) => alicloud.vpc.getSwitches({
|
|
34
33
|
* cidrBlock: "10.4.0.0/24",
|
|
35
|
-
* vpcId:
|
|
36
|
-
* zoneId: defaultZones.
|
|
37
|
-
* });
|
|
38
|
-
* const defaultSecurityGroup = new alicloud.ecs.SecurityGroup("defaultSecurityGroup", {vpcId:
|
|
34
|
+
* vpcId: defaultNetworks.ids?.[0],
|
|
35
|
+
* zoneId: defaultZones.zones?.[0]?.id,
|
|
36
|
+
* }));
|
|
37
|
+
* const defaultSecurityGroup = new alicloud.ecs.SecurityGroup("defaultSecurityGroup", {vpcId: defaultNetworks.then(defaultNetworks => defaultNetworks.ids?.[0])});
|
|
39
38
|
* const defaultInstance = new alicloud.bastionhost.Instance("defaultInstance", {
|
|
40
39
|
* description: name,
|
|
41
40
|
* licenseCode: "bhah_ent_50_asset",
|
|
@@ -43,7 +42,7 @@ const utilities = require("../utilities");
|
|
|
43
42
|
* storage: "5",
|
|
44
43
|
* bandwidth: "5",
|
|
45
44
|
* period: 1,
|
|
46
|
-
* vswitchId:
|
|
45
|
+
* vswitchId: defaultSwitches.then(defaultSwitches => defaultSwitches.ids?.[0]),
|
|
47
46
|
* securityGroupIds: [defaultSecurityGroup.id],
|
|
48
47
|
* });
|
|
49
48
|
* const defaultHost = new alicloud.bastionhost.Host("defaultHost", {
|
package/bastionhost/host.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"host.js","sourceRoot":"","sources":["../../bastionhost/host.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"host.js","sourceRoot":"","sources":["../../bastionhost/host.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyDG;AACH,MAAa,IAAK,SAAQ,MAAM,CAAC,cAAc;IAC3C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAiB,EAAE,IAAmC;QAC/G,OAAO,IAAI,IAAI,CAAC,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AAC,CAAC,SAAS,CAAC;YAC9E,cAAc,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAChD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,IAAI,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACzD,CAAC;;AAhIL,oBAiIC;AAnHG,gBAAgB;AACO,iBAAY,GAAG,gCAAgC,CAAC"}
|
|
@@ -19,17 +19,16 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
19
19
|
* const defaultZones = alicloud.getZones({
|
|
20
20
|
* availableResourceCreation: "VSwitch",
|
|
21
21
|
* });
|
|
22
|
-
* const
|
|
23
|
-
*
|
|
22
|
+
* const defaultNetworks = alicloud.vpc.getNetworks({
|
|
23
|
+
* nameRegex: "^default-NODELETING$",
|
|
24
24
|
* cidrBlock: "10.4.0.0/16",
|
|
25
25
|
* });
|
|
26
|
-
* const
|
|
27
|
-
* vswitchName: name,
|
|
26
|
+
* const defaultSwitches = Promise.all([defaultNetworks, defaultZones]).then(([defaultNetworks, defaultZones]) => alicloud.vpc.getSwitches({
|
|
28
27
|
* cidrBlock: "10.4.0.0/24",
|
|
29
|
-
* vpcId:
|
|
30
|
-
* zoneId: defaultZones.
|
|
31
|
-
* });
|
|
32
|
-
* const defaultSecurityGroup = new alicloud.ecs.SecurityGroup("defaultSecurityGroup", {vpcId:
|
|
28
|
+
* vpcId: defaultNetworks.ids?.[0],
|
|
29
|
+
* zoneId: defaultZones.zones?.[0]?.id,
|
|
30
|
+
* }));
|
|
31
|
+
* const defaultSecurityGroup = new alicloud.ecs.SecurityGroup("defaultSecurityGroup", {vpcId: defaultNetworks.then(defaultNetworks => defaultNetworks.ids?.[0])});
|
|
33
32
|
* const defaultInstance = new alicloud.bastionhost.Instance("defaultInstance", {
|
|
34
33
|
* description: name,
|
|
35
34
|
* licenseCode: "bhah_ent_50_asset",
|
|
@@ -37,7 +36,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
37
36
|
* storage: "5",
|
|
38
37
|
* bandwidth: "5",
|
|
39
38
|
* period: 1,
|
|
40
|
-
* vswitchId:
|
|
39
|
+
* vswitchId: defaultSwitches.then(defaultSwitches => defaultSwitches.ids?.[0]),
|
|
41
40
|
* securityGroupIds: [defaultSecurityGroup.id],
|
|
42
41
|
* });
|
|
43
42
|
* const defaultHost = new alicloud.bastionhost.Host("defaultHost", {
|