@volcengine/pulumi 0.0.16 → 0.0.18

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.
Files changed (139) hide show
  1. package/cloudfs/access.d.ts +180 -0
  2. package/cloudfs/access.js +104 -0
  3. package/cloudfs/access.js.map +1 -0
  4. package/cloudfs/accesses.d.ts +78 -0
  5. package/cloudfs/accesses.js +46 -0
  6. package/cloudfs/accesses.js.map +1 -0
  7. package/cloudfs/fileSystem.d.ts +287 -0
  8. package/cloudfs/fileSystem.js +140 -0
  9. package/cloudfs/fileSystem.js.map +1 -0
  10. package/cloudfs/fileSystems.d.ts +93 -0
  11. package/cloudfs/fileSystems.js +49 -0
  12. package/cloudfs/fileSystems.js.map +1 -0
  13. package/cloudfs/index.d.ts +24 -0
  14. package/cloudfs/index.js +47 -0
  15. package/cloudfs/index.js.map +1 -0
  16. package/cloudfs/namespace.d.ts +183 -0
  17. package/cloudfs/namespace.js +100 -0
  18. package/cloudfs/namespace.js.map +1 -0
  19. package/cloudfs/namespaces.d.ts +98 -0
  20. package/cloudfs/namespaces.js +50 -0
  21. package/cloudfs/namespaces.js.map +1 -0
  22. package/cloudfs/nsQuotas.d.ts +81 -0
  23. package/cloudfs/nsQuotas.js +52 -0
  24. package/cloudfs/nsQuotas.js.map +1 -0
  25. package/cloudfs/quotas.d.ts +62 -0
  26. package/cloudfs/quotas.js +42 -0
  27. package/cloudfs/quotas.js.map +1 -0
  28. package/cr/registry.d.ts +1 -1
  29. package/cr/registry.js +1 -1
  30. package/ecs/command.d.ts +157 -0
  31. package/ecs/command.js +93 -0
  32. package/ecs/command.js.map +1 -0
  33. package/ecs/commands.d.ts +132 -0
  34. package/ecs/commands.js +52 -0
  35. package/ecs/commands.js.map +1 -0
  36. package/ecs/index.d.ts +18 -0
  37. package/ecs/index.js +23 -1
  38. package/ecs/index.js.map +1 -1
  39. package/ecs/instance.d.ts +4 -4
  40. package/ecs/invocation.d.ts +223 -0
  41. package/ecs/invocation.js +118 -0
  42. package/ecs/invocation.js.map +1 -0
  43. package/ecs/invocationResults.d.ts +116 -0
  44. package/ecs/invocationResults.js +51 -0
  45. package/ecs/invocationResults.js.map +1 -0
  46. package/ecs/invocations.d.ts +161 -0
  47. package/ecs/invocations.js +56 -0
  48. package/ecs/invocations.js.map +1 -0
  49. package/ecs/regions.d.ts +75 -0
  50. package/ecs/regions.js +47 -0
  51. package/ecs/regions.js.map +1 -0
  52. package/escloud/instance.d.ts +26 -13
  53. package/escloud/instance.js +26 -13
  54. package/escloud/instance.js.map +1 -1
  55. package/escloud/instances.d.ts +100 -6
  56. package/escloud/instances.js +100 -6
  57. package/escloud/instances.js.map +1 -1
  58. package/index.d.ts +2 -1
  59. package/index.js +3 -1
  60. package/index.js.map +1 -1
  61. package/package.json +2 -2
  62. package/rds_mysql/account.d.ts +48 -4
  63. package/rds_mysql/account.js +48 -4
  64. package/rds_mysql/account.js.map +1 -1
  65. package/rds_mysql/accounts.d.ts +106 -6
  66. package/rds_mysql/accounts.js +106 -6
  67. package/rds_mysql/accounts.js.map +1 -1
  68. package/rds_mysql/allowlist.d.ts +7 -3
  69. package/rds_mysql/allowlist.js +7 -3
  70. package/rds_mysql/allowlist.js.map +1 -1
  71. package/rds_mysql/allowlistAssociate.d.ts +47 -3
  72. package/rds_mysql/allowlistAssociate.js +47 -3
  73. package/rds_mysql/allowlistAssociate.js.map +1 -1
  74. package/rds_mysql/allowlists.d.ts +102 -4
  75. package/rds_mysql/allowlists.js +102 -4
  76. package/rds_mysql/allowlists.js.map +1 -1
  77. package/rds_mysql/database.d.ts +38 -4
  78. package/rds_mysql/database.js +38 -4
  79. package/rds_mysql/database.js.map +1 -1
  80. package/rds_mysql/databases.d.ts +84 -6
  81. package/rds_mysql/databases.js +84 -6
  82. package/rds_mysql/databases.js.map +1 -1
  83. package/rds_mysql/instance.d.ts +18 -15
  84. package/rds_mysql/instance.js +17 -14
  85. package/rds_mysql/instance.js.map +1 -1
  86. package/rds_mysql/instanceReadonlyNode.d.ts +38 -3
  87. package/rds_mysql/instanceReadonlyNode.js +38 -3
  88. package/rds_mysql/instanceReadonlyNode.js.map +1 -1
  89. package/rds_mysql/instances.d.ts +74 -4
  90. package/rds_mysql/instances.js +74 -4
  91. package/rds_mysql/instances.js.map +1 -1
  92. package/redis/account.d.ts +32 -5
  93. package/redis/account.js +32 -5
  94. package/redis/account.js.map +1 -1
  95. package/redis/accounts.d.ts +74 -4
  96. package/redis/accounts.js +74 -4
  97. package/redis/accounts.js.map +1 -1
  98. package/redis/allowList.d.ts +2 -2
  99. package/redis/allowList.js +2 -2
  100. package/redis/allowListAssociate.d.ts +34 -6
  101. package/redis/allowListAssociate.js +34 -6
  102. package/redis/allowListAssociate.js.map +1 -1
  103. package/redis/allowLists.d.ts +78 -2
  104. package/redis/allowLists.js +78 -2
  105. package/redis/allowLists.js.map +1 -1
  106. package/redis/backup.d.ts +29 -1
  107. package/redis/backup.js +29 -1
  108. package/redis/backup.js.map +1 -1
  109. package/redis/backupRestore.d.ts +33 -3
  110. package/redis/backupRestore.js +33 -3
  111. package/redis/backupRestore.js.map +1 -1
  112. package/redis/backups.d.ts +68 -6
  113. package/redis/backups.js +68 -6
  114. package/redis/backups.js.map +1 -1
  115. package/redis/continuousBackup.d.ts +29 -1
  116. package/redis/continuousBackup.js +29 -1
  117. package/redis/continuousBackup.js.map +1 -1
  118. package/redis/endpoint.d.ts +37 -3
  119. package/redis/endpoint.js +37 -3
  120. package/redis/endpoint.js.map +1 -1
  121. package/redis/instance.d.ts +41 -32
  122. package/redis/instance.js +41 -32
  123. package/redis/instance.js.map +1 -1
  124. package/redis/instances.d.ts +60 -4
  125. package/redis/instances.js +60 -4
  126. package/redis/instances.js.map +1 -1
  127. package/tls/index_.d.ts +33 -8
  128. package/tls/index_.js +23 -8
  129. package/tls/index_.js.map +1 -1
  130. package/tls/indexes.d.ts +2 -2
  131. package/tls/indexes.js +2 -2
  132. package/tos/bucketObject.d.ts +8 -0
  133. package/tos/bucketObject.js +2 -0
  134. package/tos/bucketObject.js.map +1 -1
  135. package/types/input.d.ts +43 -1
  136. package/types/output.d.ts +505 -1
  137. package/vpc/securityGroup.d.ts +2 -2
  138. package/vpc/securityGroup.js +1 -1
  139. package/vpc/vpc.d.ts +1 -1
@@ -0,0 +1,161 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as outputs from "../types/output";
3
+ /**
4
+ * Use this data source to query detailed information of ecs invocations
5
+ * ## Example Usage
6
+ *
7
+ * ```typescript
8
+ * import * as pulumi from "@pulumi/pulumi";
9
+ * import * as volcengine from "@pulumi/volcengine";
10
+ *
11
+ * const default = volcengine.ecs.Invocations({
12
+ * invocationId: "ivk-ych9y4vujvl8j01c****",
13
+ * invocationStatuses: ["Success"],
14
+ * });
15
+ * ```
16
+ */
17
+ export declare function invocations(args?: InvocationsArgs, opts?: pulumi.InvokeOptions): Promise<InvocationsResult>;
18
+ /**
19
+ * A collection of arguments for invoking Invocations.
20
+ */
21
+ export interface InvocationsArgs {
22
+ /**
23
+ * The id of ecs command.
24
+ */
25
+ commandId?: string;
26
+ /**
27
+ * The name of ecs command. This field support fuzzy query.
28
+ */
29
+ commandName?: string;
30
+ /**
31
+ * The type of ecs command. Valid values: `Shell`.
32
+ */
33
+ commandType?: string;
34
+ /**
35
+ * The id of ecs invocation.
36
+ */
37
+ invocationId?: string;
38
+ /**
39
+ * The name of ecs invocation. This field support fuzzy query.
40
+ */
41
+ invocationName?: string;
42
+ /**
43
+ * The list of status of ecs invocation. Valid values: `Pending`, `Scheduled`, `Running`, `Success`, `Failed`, `Stopped`, `PartialFailed`, `Finished`.
44
+ */
45
+ invocationStatuses?: string[];
46
+ /**
47
+ * A Name Regex of Resource.
48
+ */
49
+ nameRegex?: string;
50
+ /**
51
+ * File name where to save data source results.
52
+ */
53
+ outputFile?: string;
54
+ /**
55
+ * The repeat mode of ecs invocation. Valid values: `Once`, `Rate`, `Fixed`.
56
+ */
57
+ repeatMode?: string;
58
+ }
59
+ /**
60
+ * A collection of values returned by Invocations.
61
+ */
62
+ export interface InvocationsResult {
63
+ /**
64
+ * The id of the ecs command.
65
+ */
66
+ readonly commandId?: string;
67
+ /**
68
+ * The name of the ecs command.
69
+ */
70
+ readonly commandName?: string;
71
+ /**
72
+ * The type of the ecs command.
73
+ */
74
+ readonly commandType?: string;
75
+ /**
76
+ * The provider-assigned unique ID for this managed resource.
77
+ */
78
+ readonly id: string;
79
+ /**
80
+ * The id of the ecs invocation.
81
+ */
82
+ readonly invocationId?: string;
83
+ /**
84
+ * The name of the ecs invocation.
85
+ */
86
+ readonly invocationName?: string;
87
+ /**
88
+ * The status of the ecs invocation.
89
+ */
90
+ readonly invocationStatuses?: string[];
91
+ /**
92
+ * The collection of query.
93
+ */
94
+ readonly invocations: outputs.ecs.InvocationsInvocation[];
95
+ readonly nameRegex?: string;
96
+ readonly outputFile?: string;
97
+ /**
98
+ * The repeat mode of the ecs invocation.
99
+ */
100
+ readonly repeatMode?: string;
101
+ /**
102
+ * The total count of query.
103
+ */
104
+ readonly totalCount: number;
105
+ }
106
+ /**
107
+ * Use this data source to query detailed information of ecs invocations
108
+ * ## Example Usage
109
+ *
110
+ * ```typescript
111
+ * import * as pulumi from "@pulumi/pulumi";
112
+ * import * as volcengine from "@pulumi/volcengine";
113
+ *
114
+ * const default = volcengine.ecs.Invocations({
115
+ * invocationId: "ivk-ych9y4vujvl8j01c****",
116
+ * invocationStatuses: ["Success"],
117
+ * });
118
+ * ```
119
+ */
120
+ export declare function invocationsOutput(args?: InvocationsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<InvocationsResult>;
121
+ /**
122
+ * A collection of arguments for invoking Invocations.
123
+ */
124
+ export interface InvocationsOutputArgs {
125
+ /**
126
+ * The id of ecs command.
127
+ */
128
+ commandId?: pulumi.Input<string>;
129
+ /**
130
+ * The name of ecs command. This field support fuzzy query.
131
+ */
132
+ commandName?: pulumi.Input<string>;
133
+ /**
134
+ * The type of ecs command. Valid values: `Shell`.
135
+ */
136
+ commandType?: pulumi.Input<string>;
137
+ /**
138
+ * The id of ecs invocation.
139
+ */
140
+ invocationId?: pulumi.Input<string>;
141
+ /**
142
+ * The name of ecs invocation. This field support fuzzy query.
143
+ */
144
+ invocationName?: pulumi.Input<string>;
145
+ /**
146
+ * The list of status of ecs invocation. Valid values: `Pending`, `Scheduled`, `Running`, `Success`, `Failed`, `Stopped`, `PartialFailed`, `Finished`.
147
+ */
148
+ invocationStatuses?: pulumi.Input<pulumi.Input<string>[]>;
149
+ /**
150
+ * A Name Regex of Resource.
151
+ */
152
+ nameRegex?: pulumi.Input<string>;
153
+ /**
154
+ * File name where to save data source results.
155
+ */
156
+ outputFile?: pulumi.Input<string>;
157
+ /**
158
+ * The repeat mode of ecs invocation. Valid values: `Once`, `Rate`, `Fixed`.
159
+ */
160
+ repeatMode?: pulumi.Input<string>;
161
+ }
@@ -0,0 +1,56 @@
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.invocationsOutput = exports.invocations = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * Use this data source to query detailed information of ecs invocations
10
+ * ## Example Usage
11
+ *
12
+ * ```typescript
13
+ * import * as pulumi from "@pulumi/pulumi";
14
+ * import * as volcengine from "@pulumi/volcengine";
15
+ *
16
+ * const default = volcengine.ecs.Invocations({
17
+ * invocationId: "ivk-ych9y4vujvl8j01c****",
18
+ * invocationStatuses: ["Success"],
19
+ * });
20
+ * ```
21
+ */
22
+ function invocations(args, opts) {
23
+ args = args || {};
24
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
25
+ return pulumi.runtime.invoke("volcengine:ecs/invocations:Invocations", {
26
+ "commandId": args.commandId,
27
+ "commandName": args.commandName,
28
+ "commandType": args.commandType,
29
+ "invocationId": args.invocationId,
30
+ "invocationName": args.invocationName,
31
+ "invocationStatuses": args.invocationStatuses,
32
+ "nameRegex": args.nameRegex,
33
+ "outputFile": args.outputFile,
34
+ "repeatMode": args.repeatMode,
35
+ }, opts);
36
+ }
37
+ exports.invocations = invocations;
38
+ /**
39
+ * Use this data source to query detailed information of ecs invocations
40
+ * ## Example Usage
41
+ *
42
+ * ```typescript
43
+ * import * as pulumi from "@pulumi/pulumi";
44
+ * import * as volcengine from "@pulumi/volcengine";
45
+ *
46
+ * const default = volcengine.ecs.Invocations({
47
+ * invocationId: "ivk-ych9y4vujvl8j01c****",
48
+ * invocationStatuses: ["Success"],
49
+ * });
50
+ * ```
51
+ */
52
+ function invocationsOutput(args, opts) {
53
+ return pulumi.output(args).apply((a) => invocations(a, opts));
54
+ }
55
+ exports.invocationsOutput = invocationsOutput;
56
+ //# sourceMappingURL=invocations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"invocations.js","sourceRoot":"","sources":["../../ecs/invocations.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;GAaG;AACH,SAAgB,WAAW,CAAC,IAAsB,EAAE,IAA2B;IAC3E,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAElB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,wCAAwC,EAAE;QACnE,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,aAAa,EAAE,IAAI,CAAC,WAAW;QAC/B,aAAa,EAAE,IAAI,CAAC,WAAW;QAC/B,cAAc,EAAE,IAAI,CAAC,YAAY;QACjC,gBAAgB,EAAE,IAAI,CAAC,cAAc;QACrC,oBAAoB,EAAE,IAAI,CAAC,kBAAkB;QAC7C,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,YAAY,EAAE,IAAI,CAAC,UAAU;KAChC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAfD,kCAeC;AA2FD;;;;;;;;;;;;;GAaG;AACH,SAAgB,iBAAiB,CAAC,IAA4B,EAAE,IAA2B;IACvF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,WAAW,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACtE,CAAC;AAFD,8CAEC"}
@@ -0,0 +1,75 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as outputs from "../types/output";
3
+ /**
4
+ * Use this data source to query detailed information of regions
5
+ * ## Example Usage
6
+ *
7
+ * ```typescript
8
+ * import * as pulumi from "@pulumi/pulumi";
9
+ * import * as volcengine from "@pulumi/volcengine";
10
+ *
11
+ * const default = volcengine.ecs.Regions({
12
+ * ids: ["cn-beijing"],
13
+ * });
14
+ * ```
15
+ */
16
+ export declare function regions(args?: RegionsArgs, opts?: pulumi.InvokeOptions): Promise<RegionsResult>;
17
+ /**
18
+ * A collection of arguments for invoking Regions.
19
+ */
20
+ export interface RegionsArgs {
21
+ /**
22
+ * A list of region ids.
23
+ */
24
+ ids?: string[];
25
+ /**
26
+ * File name where to save data source results.
27
+ */
28
+ outputFile?: string;
29
+ }
30
+ /**
31
+ * A collection of values returned by Regions.
32
+ */
33
+ export interface RegionsResult {
34
+ /**
35
+ * The provider-assigned unique ID for this managed resource.
36
+ */
37
+ readonly id: string;
38
+ readonly ids?: string[];
39
+ readonly outputFile?: string;
40
+ /**
41
+ * The collection of region query.
42
+ */
43
+ readonly regions: outputs.ecs.RegionsRegion[];
44
+ /**
45
+ * The total count of region query.
46
+ */
47
+ readonly totalCount: number;
48
+ }
49
+ /**
50
+ * Use this data source to query detailed information of regions
51
+ * ## Example Usage
52
+ *
53
+ * ```typescript
54
+ * import * as pulumi from "@pulumi/pulumi";
55
+ * import * as volcengine from "@pulumi/volcengine";
56
+ *
57
+ * const default = volcengine.ecs.Regions({
58
+ * ids: ["cn-beijing"],
59
+ * });
60
+ * ```
61
+ */
62
+ export declare function regionsOutput(args?: RegionsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<RegionsResult>;
63
+ /**
64
+ * A collection of arguments for invoking Regions.
65
+ */
66
+ export interface RegionsOutputArgs {
67
+ /**
68
+ * A list of region ids.
69
+ */
70
+ ids?: pulumi.Input<pulumi.Input<string>[]>;
71
+ /**
72
+ * File name where to save data source results.
73
+ */
74
+ outputFile?: pulumi.Input<string>;
75
+ }
package/ecs/regions.js ADDED
@@ -0,0 +1,47 @@
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.regionsOutput = exports.regions = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * Use this data source to query detailed information of regions
10
+ * ## Example Usage
11
+ *
12
+ * ```typescript
13
+ * import * as pulumi from "@pulumi/pulumi";
14
+ * import * as volcengine from "@pulumi/volcengine";
15
+ *
16
+ * const default = volcengine.ecs.Regions({
17
+ * ids: ["cn-beijing"],
18
+ * });
19
+ * ```
20
+ */
21
+ function regions(args, opts) {
22
+ args = args || {};
23
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
24
+ return pulumi.runtime.invoke("volcengine:ecs/regions:Regions", {
25
+ "ids": args.ids,
26
+ "outputFile": args.outputFile,
27
+ }, opts);
28
+ }
29
+ exports.regions = regions;
30
+ /**
31
+ * Use this data source to query detailed information of regions
32
+ * ## Example Usage
33
+ *
34
+ * ```typescript
35
+ * import * as pulumi from "@pulumi/pulumi";
36
+ * import * as volcengine from "@pulumi/volcengine";
37
+ *
38
+ * const default = volcengine.ecs.Regions({
39
+ * ids: ["cn-beijing"],
40
+ * });
41
+ * ```
42
+ */
43
+ function regionsOutput(args, opts) {
44
+ return pulumi.output(args).apply((a) => regions(a, opts));
45
+ }
46
+ exports.regionsOutput = regionsOutput;
47
+ //# sourceMappingURL=regions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"regions.js","sourceRoot":"","sources":["../../ecs/regions.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;GAYG;AACH,SAAgB,OAAO,CAAC,IAAkB,EAAE,IAA2B;IACnE,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAElB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,gCAAgC,EAAE;QAC3D,KAAK,EAAE,IAAI,CAAC,GAAG;QACf,YAAY,EAAE,IAAI,CAAC,UAAU;KAChC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,0BAQC;AAmCD;;;;;;;;;;;;GAYG;AACH,SAAgB,aAAa,CAAC,IAAwB,EAAE,IAA2B;IAC/E,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,OAAO,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAClE,CAAC;AAFD,sCAEC"}
@@ -7,42 +7,55 @@ import * as outputs from "../types/output";
7
7
  *
8
8
  * ```typescript
9
9
  * import * as pulumi from "@pulumi/pulumi";
10
+ * import * as volcengine from "@pulumi/volcengine";
10
11
  * import * as volcengine from "@volcengine/pulumi";
11
12
  *
12
- * const foo = new volcengine.escloud.Instance("foo", {instanceConfiguration: {
13
- * adminPassword: "xxxx",
13
+ * const fooZones = volcengine.ecs.Zones({});
14
+ * const fooVpc = new volcengine.vpc.Vpc("fooVpc", {
15
+ * vpcName: "acc-test-vpc",
16
+ * cidrBlock: "172.16.0.0/16",
17
+ * });
18
+ * const fooSubnet = new volcengine.vpc.Subnet("fooSubnet", {
19
+ * subnetName: "acc-test-subnet_new",
20
+ * description: "tfdesc",
21
+ * cidrBlock: "172.16.0.0/24",
22
+ * zoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id),
23
+ * vpcId: fooVpc.id,
24
+ * });
25
+ * const fooInstance = new volcengine.escloud.Instance("fooInstance", {instanceConfiguration: {
26
+ * version: "V6_7",
27
+ * zoneNumber: 1,
28
+ * enableHttps: true,
14
29
  * adminUserName: "admin",
30
+ * adminPassword: "Password@@",
15
31
  * chargeType: "PostPaid",
16
32
  * configurationCode: "es.standard",
17
- * enableHttps: true,
18
33
  * enablePureMaster: true,
19
- * forceRestartAfterScale: false,
20
- * instanceName: "from-tf4",
34
+ * instanceName: "acc-test-0",
21
35
  * nodeSpecsAssigns: [
22
36
  * {
37
+ * type: "Master",
23
38
  * number: 3,
24
39
  * resourceSpecName: "es.x4.medium",
25
- * storageSize: 100,
26
40
  * storageSpecName: "es.volume.essd.pl0",
27
- * type: "Master",
41
+ * storageSize: 100,
28
42
  * },
29
43
  * {
44
+ * type: "Hot",
30
45
  * number: 2,
31
46
  * resourceSpecName: "es.x4.large",
32
- * storageSize: 100,
33
47
  * storageSpecName: "es.volume.essd.pl0",
34
- * type: "Hot",
48
+ * storageSize: 100,
35
49
  * },
36
50
  * {
51
+ * type: "Kibana",
37
52
  * number: 1,
38
53
  * resourceSpecName: "kibana.x2.small",
39
- * type: "Kibana",
40
54
  * },
41
55
  * ],
56
+ * subnetId: fooSubnet.id,
42
57
  * projectName: "default",
43
- * subnetId: "subnet-2bz9vxrixqigw2dx0eextz50p",
44
- * version: "V6_7",
45
- * zoneNumber: 1,
58
+ * forceRestartAfterScale: false,
46
59
  * }});
47
60
  * ```
48
61
  *
@@ -11,42 +11,55 @@ const utilities = require("../utilities");
11
11
  *
12
12
  * ```typescript
13
13
  * import * as pulumi from "@pulumi/pulumi";
14
+ * import * as volcengine from "@pulumi/volcengine";
14
15
  * import * as volcengine from "@volcengine/pulumi";
15
16
  *
16
- * const foo = new volcengine.escloud.Instance("foo", {instanceConfiguration: {
17
- * adminPassword: "xxxx",
17
+ * const fooZones = volcengine.ecs.Zones({});
18
+ * const fooVpc = new volcengine.vpc.Vpc("fooVpc", {
19
+ * vpcName: "acc-test-vpc",
20
+ * cidrBlock: "172.16.0.0/16",
21
+ * });
22
+ * const fooSubnet = new volcengine.vpc.Subnet("fooSubnet", {
23
+ * subnetName: "acc-test-subnet_new",
24
+ * description: "tfdesc",
25
+ * cidrBlock: "172.16.0.0/24",
26
+ * zoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id),
27
+ * vpcId: fooVpc.id,
28
+ * });
29
+ * const fooInstance = new volcengine.escloud.Instance("fooInstance", {instanceConfiguration: {
30
+ * version: "V6_7",
31
+ * zoneNumber: 1,
32
+ * enableHttps: true,
18
33
  * adminUserName: "admin",
34
+ * adminPassword: "Password@@",
19
35
  * chargeType: "PostPaid",
20
36
  * configurationCode: "es.standard",
21
- * enableHttps: true,
22
37
  * enablePureMaster: true,
23
- * forceRestartAfterScale: false,
24
- * instanceName: "from-tf4",
38
+ * instanceName: "acc-test-0",
25
39
  * nodeSpecsAssigns: [
26
40
  * {
41
+ * type: "Master",
27
42
  * number: 3,
28
43
  * resourceSpecName: "es.x4.medium",
29
- * storageSize: 100,
30
44
  * storageSpecName: "es.volume.essd.pl0",
31
- * type: "Master",
45
+ * storageSize: 100,
32
46
  * },
33
47
  * {
48
+ * type: "Hot",
34
49
  * number: 2,
35
50
  * resourceSpecName: "es.x4.large",
36
- * storageSize: 100,
37
51
  * storageSpecName: "es.volume.essd.pl0",
38
- * type: "Hot",
52
+ * storageSize: 100,
39
53
  * },
40
54
  * {
55
+ * type: "Kibana",
41
56
  * number: 1,
42
57
  * resourceSpecName: "kibana.x2.small",
43
- * type: "Kibana",
44
58
  * },
45
59
  * ],
60
+ * subnetId: fooSubnet.id,
46
61
  * projectName: "default",
47
- * subnetId: "subnet-2bz9vxrixqigw2dx0eextz50p",
48
- * version: "V6_7",
49
- * zoneNumber: 1,
62
+ * forceRestartAfterScale: false,
50
63
  * }});
51
64
  * ```
52
65
  *
@@ -1 +1 @@
1
- {"version":3,"file":"instance.js","sourceRoot":"","sources":["../../escloud/instance.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoDG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,cAAc;IAC/C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAqB,EAAE,IAAmC;QACnH,OAAO,IAAI,QAAQ,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC/D,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,QAAQ,CAAC,YAAY,CAAC;IACzD,CAAC;IAeD,YAAY,IAAY,EAAE,WAA0C,EAAE,IAAmC;QACrG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAwC,CAAC;YACvD,cAAc,CAAC,uBAAuB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAAC,CAAC,SAAS,CAAC;SAC7F;aAAM;YACH,MAAM,IAAI,GAAG,WAAuC,CAAC;YACrD,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,qBAAqB,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAClE,MAAM,IAAI,KAAK,CAAC,mDAAmD,CAAC,CAAC;aACxE;YACD,cAAc,CAAC,uBAAuB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC,CAAC,SAAS,CAAC;SAC3F;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;;AAxDL,4BAyDC;AA3CG,gBAAgB;AACO,qBAAY,GAAG,sCAAsC,CAAC"}
1
+ {"version":3,"file":"instance.js","sourceRoot":"","sources":["../../escloud/instance.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiEG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,cAAc;IAC/C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAqB,EAAE,IAAmC;QACnH,OAAO,IAAI,QAAQ,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC/D,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,QAAQ,CAAC,YAAY,CAAC;IACzD,CAAC;IAeD,YAAY,IAAY,EAAE,WAA0C,EAAE,IAAmC;QACrG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAwC,CAAC;YACvD,cAAc,CAAC,uBAAuB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAAC,CAAC,SAAS,CAAC;SAC7F;aAAM;YACH,MAAM,IAAI,GAAG,WAAuC,CAAC;YACrD,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,qBAAqB,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAClE,MAAM,IAAI,KAAK,CAAC,mDAAmD,CAAC,CAAC;aACxE;YACD,cAAc,CAAC,uBAAuB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC,CAAC,SAAS,CAAC;SAC3F;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;;AAxDL,4BAyDC;AA3CG,gBAAgB;AACO,qBAAY,GAAG,sCAAsC,CAAC"}
@@ -7,10 +7,57 @@ import * as outputs from "../types/output";
7
7
  * ```typescript
8
8
  * import * as pulumi from "@pulumi/pulumi";
9
9
  * import * as volcengine from "@pulumi/volcengine";
10
+ * import * as volcengine from "@volcengine/pulumi";
10
11
  *
11
- * const default = volcengine.escloud.Instances({
12
- * ids: ["d3gftqjvnah74eie"],
13
- * statuses: ["Running"],
12
+ * const fooZones = volcengine.ecs.Zones({});
13
+ * const fooVpc = new volcengine.vpc.Vpc("fooVpc", {
14
+ * vpcName: "acc-test-vpc",
15
+ * cidrBlock: "172.16.0.0/16",
16
+ * });
17
+ * const fooSubnet = new volcengine.vpc.Subnet("fooSubnet", {
18
+ * subnetName: "acc-test-subnet_new",
19
+ * description: "tfdesc",
20
+ * cidrBlock: "172.16.0.0/24",
21
+ * zoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id),
22
+ * vpcId: fooVpc.id,
23
+ * });
24
+ * const fooInstance = new volcengine.escloud.Instance("fooInstance", {instanceConfiguration: {
25
+ * version: "V6_7",
26
+ * zoneNumber: 1,
27
+ * enableHttps: true,
28
+ * adminUserName: "admin",
29
+ * adminPassword: "Password@@",
30
+ * chargeType: "PostPaid",
31
+ * configurationCode: "es.standard",
32
+ * enablePureMaster: true,
33
+ * instanceName: "acc-test-0",
34
+ * nodeSpecsAssigns: [
35
+ * {
36
+ * type: "Master",
37
+ * number: 3,
38
+ * resourceSpecName: "es.x4.medium",
39
+ * storageSpecName: "es.volume.essd.pl0",
40
+ * storageSize: 100,
41
+ * },
42
+ * {
43
+ * type: "Hot",
44
+ * number: 2,
45
+ * resourceSpecName: "es.x4.large",
46
+ * storageSpecName: "es.volume.essd.pl0",
47
+ * storageSize: 100,
48
+ * },
49
+ * {
50
+ * type: "Kibana",
51
+ * number: 1,
52
+ * resourceSpecName: "kibana.x2.small",
53
+ * },
54
+ * ],
55
+ * subnetId: fooSubnet.id,
56
+ * projectName: "default",
57
+ * forceRestartAfterScale: false,
58
+ * }});
59
+ * const fooInstances = volcengine.escloud.InstancesOutput({
60
+ * ids: [fooInstance.id],
14
61
  * });
15
62
  * ```
16
63
  */
@@ -79,10 +126,57 @@ export interface InstancesResult {
79
126
  * ```typescript
80
127
  * import * as pulumi from "@pulumi/pulumi";
81
128
  * import * as volcengine from "@pulumi/volcengine";
129
+ * import * as volcengine from "@volcengine/pulumi";
82
130
  *
83
- * const default = volcengine.escloud.Instances({
84
- * ids: ["d3gftqjvnah74eie"],
85
- * statuses: ["Running"],
131
+ * const fooZones = volcengine.ecs.Zones({});
132
+ * const fooVpc = new volcengine.vpc.Vpc("fooVpc", {
133
+ * vpcName: "acc-test-vpc",
134
+ * cidrBlock: "172.16.0.0/16",
135
+ * });
136
+ * const fooSubnet = new volcengine.vpc.Subnet("fooSubnet", {
137
+ * subnetName: "acc-test-subnet_new",
138
+ * description: "tfdesc",
139
+ * cidrBlock: "172.16.0.0/24",
140
+ * zoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id),
141
+ * vpcId: fooVpc.id,
142
+ * });
143
+ * const fooInstance = new volcengine.escloud.Instance("fooInstance", {instanceConfiguration: {
144
+ * version: "V6_7",
145
+ * zoneNumber: 1,
146
+ * enableHttps: true,
147
+ * adminUserName: "admin",
148
+ * adminPassword: "Password@@",
149
+ * chargeType: "PostPaid",
150
+ * configurationCode: "es.standard",
151
+ * enablePureMaster: true,
152
+ * instanceName: "acc-test-0",
153
+ * nodeSpecsAssigns: [
154
+ * {
155
+ * type: "Master",
156
+ * number: 3,
157
+ * resourceSpecName: "es.x4.medium",
158
+ * storageSpecName: "es.volume.essd.pl0",
159
+ * storageSize: 100,
160
+ * },
161
+ * {
162
+ * type: "Hot",
163
+ * number: 2,
164
+ * resourceSpecName: "es.x4.large",
165
+ * storageSpecName: "es.volume.essd.pl0",
166
+ * storageSize: 100,
167
+ * },
168
+ * {
169
+ * type: "Kibana",
170
+ * number: 1,
171
+ * resourceSpecName: "kibana.x2.small",
172
+ * },
173
+ * ],
174
+ * subnetId: fooSubnet.id,
175
+ * projectName: "default",
176
+ * forceRestartAfterScale: false,
177
+ * }});
178
+ * const fooInstances = volcengine.escloud.InstancesOutput({
179
+ * ids: [fooInstance.id],
86
180
  * });
87
181
  * ```
88
182
  */