@volcengine/pulumi 0.0.25 → 0.0.26

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 (88) hide show
  1. package/ebs/volume.d.ts +3 -3
  2. package/ecs/instances.d.ts +12 -0
  3. package/ecs/instances.js +1 -0
  4. package/ecs/instances.js.map +1 -1
  5. package/ecs/launchTemplate.d.ts +1 -1
  6. package/index.d.ts +3 -1
  7. package/index.js +5 -1
  8. package/index.js.map +1 -1
  9. package/package.json +2 -2
  10. package/private_zone/index.d.ts +33 -0
  11. package/private_zone/index.js +62 -0
  12. package/private_zone/index.js.map +1 -0
  13. package/private_zone/privateZone.d.ts +144 -0
  14. package/private_zone/privateZone.js +99 -0
  15. package/private_zone/privateZone.js.map +1 -0
  16. package/private_zone/privateZones.d.ts +133 -0
  17. package/private_zone/privateZones.js +34 -0
  18. package/private_zone/privateZones.js.map +1 -0
  19. package/private_zone/record.d.ts +143 -0
  20. package/private_zone/record.js +86 -0
  21. package/private_zone/record.js.map +1 -0
  22. package/private_zone/recordSets.d.ts +88 -0
  23. package/private_zone/recordSets.js +29 -0
  24. package/private_zone/recordSets.js.map +1 -0
  25. package/private_zone/recordWeightEnabler.d.ts +83 -0
  26. package/private_zone/recordWeightEnabler.js +73 -0
  27. package/private_zone/recordWeightEnabler.js.map +1 -0
  28. package/private_zone/records.d.ts +148 -0
  29. package/private_zone/records.js +35 -0
  30. package/private_zone/records.js.map +1 -0
  31. package/private_zone/resolverEndpoint.d.ts +155 -0
  32. package/private_zone/resolverEndpoint.js +116 -0
  33. package/private_zone/resolverEndpoint.js.map +1 -0
  34. package/private_zone/resolverEndpoints.d.ts +119 -0
  35. package/private_zone/resolverEndpoints.js +47 -0
  36. package/private_zone/resolverEndpoints.js.map +1 -0
  37. package/private_zone/resolverRule.d.ts +153 -0
  38. package/private_zone/resolverRule.js +98 -0
  39. package/private_zone/resolverRule.js.map +1 -0
  40. package/private_zone/resolverRules.d.ts +107 -0
  41. package/private_zone/resolverRules.js +46 -0
  42. package/private_zone/resolverRules.js.map +1 -0
  43. package/private_zone/userVpcAuthorization.d.ts +67 -0
  44. package/private_zone/userVpcAuthorization.js +71 -0
  45. package/private_zone/userVpcAuthorization.js.map +1 -0
  46. package/rds_postgresql/allowlist.d.ts +129 -0
  47. package/rds_postgresql/allowlist.js +92 -0
  48. package/rds_postgresql/allowlist.js.map +1 -0
  49. package/rds_postgresql/allowlistAssociate.d.ts +130 -0
  50. package/rds_postgresql/allowlistAssociate.js +127 -0
  51. package/rds_postgresql/allowlistAssociate.js.map +1 -0
  52. package/rds_postgresql/allowlists.d.ts +83 -0
  53. package/rds_postgresql/allowlists.js +44 -0
  54. package/rds_postgresql/allowlists.js.map +1 -0
  55. package/rds_postgresql/index.d.ts +9 -0
  56. package/rds_postgresql/index.js +14 -1
  57. package/rds_postgresql/index.js.map +1 -1
  58. package/types/input.d.ts +106 -0
  59. package/types/output.d.ts +699 -1
  60. package/vepfs/fileSystem.d.ts +311 -0
  61. package/vepfs/fileSystem.js +150 -0
  62. package/vepfs/fileSystem.js.map +1 -0
  63. package/vepfs/fileSystems.d.ts +192 -0
  64. package/vepfs/fileSystems.js +101 -0
  65. package/vepfs/fileSystems.js.map +1 -0
  66. package/vepfs/fileset.d.ts +210 -0
  67. package/vepfs/fileset.js +130 -0
  68. package/vepfs/fileset.js.map +1 -0
  69. package/vepfs/filesets.d.ts +200 -0
  70. package/vepfs/filesets.js +119 -0
  71. package/vepfs/filesets.js.map +1 -0
  72. package/vepfs/index.d.ts +21 -0
  73. package/vepfs/index.js +46 -0
  74. package/vepfs/index.js.map +1 -0
  75. package/vepfs/mountService.d.ts +192 -0
  76. package/vepfs/mountService.js +116 -0
  77. package/vepfs/mountService.js.map +1 -0
  78. package/vepfs/mountServiceAttachment.d.ts +131 -0
  79. package/vepfs/mountServiceAttachment.js +112 -0
  80. package/vepfs/mountServiceAttachment.js.map +1 -0
  81. package/vepfs/mountServices.d.ts +157 -0
  82. package/vepfs/mountServices.js +85 -0
  83. package/vepfs/mountServices.js.map +1 -0
  84. package/vke/cluster.d.ts +3 -3
  85. package/vke/node.d.ts +18 -18
  86. package/vke/nodePool.d.ts +109 -0
  87. package/vke/nodePool.js +80 -0
  88. package/vke/nodePool.js.map +1 -1
@@ -0,0 +1,112 @@
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.MountServiceAttachment = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * Provides a resource to manage vepfs mount service attachment
10
+ * ## Example Usage
11
+ *
12
+ * ```typescript
13
+ * import * as pulumi from "@pulumi/pulumi";
14
+ * import * as volcengine from "@volcengine/pulumi";
15
+ *
16
+ * const fooVpc = new volcengine.vpc.Vpc("fooVpc", {
17
+ * vpcName: "acc-test-vpc",
18
+ * cidrBlock: "172.16.0.0/16",
19
+ * });
20
+ * const fooSubnet = new volcengine.vpc.Subnet("fooSubnet", {
21
+ * subnetName: "acc-test-subnet",
22
+ * cidrBlock: "172.16.0.0/24",
23
+ * zoneId: "cn-beijing-a",
24
+ * vpcId: fooVpc.id,
25
+ * });
26
+ * const fooFileSystem = new volcengine.vepfs.FileSystem("fooFileSystem", {
27
+ * fileSystemName: "acc-test-file-system",
28
+ * subnetId: fooSubnet.id,
29
+ * storeType: "Advance_100",
30
+ * description: "tf-test",
31
+ * capacity: 12,
32
+ * project: "default",
33
+ * enableRestripe: false,
34
+ * tags: [{
35
+ * key: "k1",
36
+ * value: "v1",
37
+ * }],
38
+ * });
39
+ * const fooMountService = new volcengine.vepfs.MountService("fooMountService", {
40
+ * mountServiceName: "acc-test-mount-service",
41
+ * subnetId: fooSubnet.id,
42
+ * nodeType: "ecs.g1ie.large",
43
+ * project: "default",
44
+ * });
45
+ * const fooMountServiceAttachment = new volcengine.vepfs.MountServiceAttachment("fooMountServiceAttachment", {
46
+ * mountServiceId: fooMountService.id,
47
+ * fileSystemId: fooFileSystem.id,
48
+ * });
49
+ * ```
50
+ *
51
+ * ## Import
52
+ *
53
+ * VepfsMountServiceAttachment can be imported using the mount_service_id:file_system_id, e.g.
54
+ *
55
+ * ```sh
56
+ * $ pulumi import volcengine:vepfs/mountServiceAttachment:MountServiceAttachment default mount_service_id:file_system_id
57
+ * ```
58
+ */
59
+ class MountServiceAttachment extends pulumi.CustomResource {
60
+ /**
61
+ * Get an existing MountServiceAttachment resource's state with the given name, ID, and optional extra
62
+ * properties used to qualify the lookup.
63
+ *
64
+ * @param name The _unique_ name of the resulting resource.
65
+ * @param id The _unique_ provider ID of the resource to lookup.
66
+ * @param state Any extra arguments used during the lookup.
67
+ * @param opts Optional settings to control the behavior of the CustomResource.
68
+ */
69
+ static get(name, id, state, opts) {
70
+ return new MountServiceAttachment(name, state, Object.assign(Object.assign({}, opts), { id: id }));
71
+ }
72
+ /**
73
+ * Returns true if the given object is an instance of MountServiceAttachment. This is designed to work even
74
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
75
+ */
76
+ static isInstance(obj) {
77
+ if (obj === undefined || obj === null) {
78
+ return false;
79
+ }
80
+ return obj['__pulumiType'] === MountServiceAttachment.__pulumiType;
81
+ }
82
+ constructor(name, argsOrState, opts) {
83
+ let resourceInputs = {};
84
+ opts = opts || {};
85
+ if (opts.id) {
86
+ const state = argsOrState;
87
+ resourceInputs["attachStatus"] = state ? state.attachStatus : undefined;
88
+ resourceInputs["customerPath"] = state ? state.customerPath : undefined;
89
+ resourceInputs["fileSystemId"] = state ? state.fileSystemId : undefined;
90
+ resourceInputs["mountServiceId"] = state ? state.mountServiceId : undefined;
91
+ }
92
+ else {
93
+ const args = argsOrState;
94
+ if ((!args || args.fileSystemId === undefined) && !opts.urn) {
95
+ throw new Error("Missing required property 'fileSystemId'");
96
+ }
97
+ if ((!args || args.mountServiceId === undefined) && !opts.urn) {
98
+ throw new Error("Missing required property 'mountServiceId'");
99
+ }
100
+ resourceInputs["customerPath"] = args ? args.customerPath : undefined;
101
+ resourceInputs["fileSystemId"] = args ? args.fileSystemId : undefined;
102
+ resourceInputs["mountServiceId"] = args ? args.mountServiceId : undefined;
103
+ resourceInputs["attachStatus"] = undefined /*out*/;
104
+ }
105
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
106
+ super(MountServiceAttachment.__pulumiType, name, resourceInputs, opts);
107
+ }
108
+ }
109
+ exports.MountServiceAttachment = MountServiceAttachment;
110
+ /** @internal */
111
+ MountServiceAttachment.__pulumiType = 'volcengine:vepfs/mountServiceAttachment:MountServiceAttachment';
112
+ //# sourceMappingURL=mountServiceAttachment.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mountServiceAttachment.js","sourceRoot":"","sources":["../../vepfs/mountServiceAttachment.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkDG;AACH,MAAa,sBAAuB,SAAQ,MAAM,CAAC,cAAc;IAC7D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAmC,EAAE,IAAmC;QACjI,OAAO,IAAI,sBAAsB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC7E,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,sBAAsB,CAAC,YAAY,CAAC;IACvE,CAAC;IA2BD,YAAY,IAAY,EAAE,WAAsE,EAAE,IAAmC;QACjI,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAsD,CAAC;YACrE,cAAc,CAAC,cAAc,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;YACxE,cAAc,CAAC,cAAc,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;YACxE,cAAc,CAAC,cAAc,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;YACxE,cAAc,CAAC,gBAAgB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC;SAC/E;aAAM;YACH,MAAM,IAAI,GAAG,WAAqD,CAAC;YACnE,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,YAAY,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACzD,MAAM,IAAI,KAAK,CAAC,0CAA0C,CAAC,CAAC;aAC/D;YACD,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,cAAc,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAC3D,MAAM,IAAI,KAAK,CAAC,4CAA4C,CAAC,CAAC;aACjE;YACD,cAAc,CAAC,cAAc,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;YACtE,cAAc,CAAC,cAAc,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;YACtE,cAAc,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1E,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACtD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,sBAAsB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC3E,CAAC;;AA7EL,wDA8EC;AAhEG,gBAAgB;AACO,mCAAY,GAAG,gEAAgE,CAAC"}
@@ -0,0 +1,157 @@
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 vepfs mount services
5
+ * ## Example Usage
6
+ *
7
+ * ```typescript
8
+ * import * as pulumi from "@pulumi/pulumi";
9
+ * import * as volcengine from "@pulumi/volcengine";
10
+ * import * as volcengine from "@volcengine/pulumi";
11
+ *
12
+ * const fooVpc = new volcengine.vpc.Vpc("fooVpc", {
13
+ * vpcName: "acc-test-vpc",
14
+ * cidrBlock: "172.16.0.0/16",
15
+ * });
16
+ * const fooSubnet = new volcengine.vpc.Subnet("fooSubnet", {
17
+ * subnetName: "acc-test-subnet",
18
+ * cidrBlock: "172.16.0.0/24",
19
+ * zoneId: "cn-beijing-a",
20
+ * vpcId: fooVpc.id,
21
+ * });
22
+ * const fooMountService = new volcengine.vepfs.MountService("fooMountService", {
23
+ * mountServiceName: "acc-test-mount-service",
24
+ * subnetId: fooSubnet.id,
25
+ * nodeType: "ecs.g1ie.large",
26
+ * project: "default",
27
+ * });
28
+ * const fooMountServices = volcengine.vepfs.MountServicesOutput({
29
+ * mountServiceId: fooMountService.id,
30
+ * });
31
+ * ```
32
+ */
33
+ export declare function mountServices(args?: MountServicesArgs, opts?: pulumi.InvokeOptions): Promise<MountServicesResult>;
34
+ /**
35
+ * A collection of arguments for invoking MountServices.
36
+ */
37
+ export interface MountServicesArgs {
38
+ /**
39
+ * The id of Vepfs File System.
40
+ */
41
+ fileSystemId?: string;
42
+ /**
43
+ * The id of mount service.
44
+ */
45
+ mountServiceId?: string;
46
+ /**
47
+ * The name of mount service. This field support fuzzy query.
48
+ */
49
+ mountServiceName?: string;
50
+ /**
51
+ * A Name Regex of Resource.
52
+ */
53
+ nameRegex?: string;
54
+ /**
55
+ * File name where to save data source results.
56
+ */
57
+ outputFile?: string;
58
+ /**
59
+ * The query status list of mount service.
60
+ */
61
+ statuses?: string[];
62
+ }
63
+ /**
64
+ * A collection of values returned by MountServices.
65
+ */
66
+ export interface MountServicesResult {
67
+ /**
68
+ * The id of the vepfs file system.
69
+ */
70
+ readonly fileSystemId?: string;
71
+ /**
72
+ * The provider-assigned unique ID for this managed resource.
73
+ */
74
+ readonly id: string;
75
+ /**
76
+ * The id of the mount service.
77
+ */
78
+ readonly mountServiceId?: string;
79
+ /**
80
+ * The name of the mount service.
81
+ */
82
+ readonly mountServiceName?: string;
83
+ /**
84
+ * The collection of query.
85
+ */
86
+ readonly mountServices: outputs.vepfs.MountServicesMountService[];
87
+ readonly nameRegex?: string;
88
+ readonly outputFile?: string;
89
+ /**
90
+ * The status of the mount service.
91
+ */
92
+ readonly statuses?: string[];
93
+ /**
94
+ * The total count of query.
95
+ */
96
+ readonly totalCount: number;
97
+ }
98
+ /**
99
+ * Use this data source to query detailed information of vepfs mount services
100
+ * ## Example Usage
101
+ *
102
+ * ```typescript
103
+ * import * as pulumi from "@pulumi/pulumi";
104
+ * import * as volcengine from "@pulumi/volcengine";
105
+ * import * as volcengine from "@volcengine/pulumi";
106
+ *
107
+ * const fooVpc = new volcengine.vpc.Vpc("fooVpc", {
108
+ * vpcName: "acc-test-vpc",
109
+ * cidrBlock: "172.16.0.0/16",
110
+ * });
111
+ * const fooSubnet = new volcengine.vpc.Subnet("fooSubnet", {
112
+ * subnetName: "acc-test-subnet",
113
+ * cidrBlock: "172.16.0.0/24",
114
+ * zoneId: "cn-beijing-a",
115
+ * vpcId: fooVpc.id,
116
+ * });
117
+ * const fooMountService = new volcengine.vepfs.MountService("fooMountService", {
118
+ * mountServiceName: "acc-test-mount-service",
119
+ * subnetId: fooSubnet.id,
120
+ * nodeType: "ecs.g1ie.large",
121
+ * project: "default",
122
+ * });
123
+ * const fooMountServices = volcengine.vepfs.MountServicesOutput({
124
+ * mountServiceId: fooMountService.id,
125
+ * });
126
+ * ```
127
+ */
128
+ export declare function mountServicesOutput(args?: MountServicesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<MountServicesResult>;
129
+ /**
130
+ * A collection of arguments for invoking MountServices.
131
+ */
132
+ export interface MountServicesOutputArgs {
133
+ /**
134
+ * The id of Vepfs File System.
135
+ */
136
+ fileSystemId?: pulumi.Input<string>;
137
+ /**
138
+ * The id of mount service.
139
+ */
140
+ mountServiceId?: pulumi.Input<string>;
141
+ /**
142
+ * The name of mount service. This field support fuzzy query.
143
+ */
144
+ mountServiceName?: pulumi.Input<string>;
145
+ /**
146
+ * A Name Regex of Resource.
147
+ */
148
+ nameRegex?: pulumi.Input<string>;
149
+ /**
150
+ * File name where to save data source results.
151
+ */
152
+ outputFile?: pulumi.Input<string>;
153
+ /**
154
+ * The query status list of mount service.
155
+ */
156
+ statuses?: pulumi.Input<pulumi.Input<string>[]>;
157
+ }
@@ -0,0 +1,85 @@
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.mountServicesOutput = exports.mountServices = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * Use this data source to query detailed information of vepfs mount services
10
+ * ## Example Usage
11
+ *
12
+ * ```typescript
13
+ * import * as pulumi from "@pulumi/pulumi";
14
+ * import * as volcengine from "@pulumi/volcengine";
15
+ * import * as volcengine from "@volcengine/pulumi";
16
+ *
17
+ * const fooVpc = new volcengine.vpc.Vpc("fooVpc", {
18
+ * vpcName: "acc-test-vpc",
19
+ * cidrBlock: "172.16.0.0/16",
20
+ * });
21
+ * const fooSubnet = new volcengine.vpc.Subnet("fooSubnet", {
22
+ * subnetName: "acc-test-subnet",
23
+ * cidrBlock: "172.16.0.0/24",
24
+ * zoneId: "cn-beijing-a",
25
+ * vpcId: fooVpc.id,
26
+ * });
27
+ * const fooMountService = new volcengine.vepfs.MountService("fooMountService", {
28
+ * mountServiceName: "acc-test-mount-service",
29
+ * subnetId: fooSubnet.id,
30
+ * nodeType: "ecs.g1ie.large",
31
+ * project: "default",
32
+ * });
33
+ * const fooMountServices = volcengine.vepfs.MountServicesOutput({
34
+ * mountServiceId: fooMountService.id,
35
+ * });
36
+ * ```
37
+ */
38
+ function mountServices(args, opts) {
39
+ args = args || {};
40
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
41
+ return pulumi.runtime.invoke("volcengine:vepfs/mountServices:MountServices", {
42
+ "fileSystemId": args.fileSystemId,
43
+ "mountServiceId": args.mountServiceId,
44
+ "mountServiceName": args.mountServiceName,
45
+ "nameRegex": args.nameRegex,
46
+ "outputFile": args.outputFile,
47
+ "statuses": args.statuses,
48
+ }, opts);
49
+ }
50
+ exports.mountServices = mountServices;
51
+ /**
52
+ * Use this data source to query detailed information of vepfs mount services
53
+ * ## Example Usage
54
+ *
55
+ * ```typescript
56
+ * import * as pulumi from "@pulumi/pulumi";
57
+ * import * as volcengine from "@pulumi/volcengine";
58
+ * import * as volcengine from "@volcengine/pulumi";
59
+ *
60
+ * const fooVpc = new volcengine.vpc.Vpc("fooVpc", {
61
+ * vpcName: "acc-test-vpc",
62
+ * cidrBlock: "172.16.0.0/16",
63
+ * });
64
+ * const fooSubnet = new volcengine.vpc.Subnet("fooSubnet", {
65
+ * subnetName: "acc-test-subnet",
66
+ * cidrBlock: "172.16.0.0/24",
67
+ * zoneId: "cn-beijing-a",
68
+ * vpcId: fooVpc.id,
69
+ * });
70
+ * const fooMountService = new volcengine.vepfs.MountService("fooMountService", {
71
+ * mountServiceName: "acc-test-mount-service",
72
+ * subnetId: fooSubnet.id,
73
+ * nodeType: "ecs.g1ie.large",
74
+ * project: "default",
75
+ * });
76
+ * const fooMountServices = volcengine.vepfs.MountServicesOutput({
77
+ * mountServiceId: fooMountService.id,
78
+ * });
79
+ * ```
80
+ */
81
+ function mountServicesOutput(args, opts) {
82
+ return pulumi.output(args).apply((a) => mountServices(a, opts));
83
+ }
84
+ exports.mountServicesOutput = mountServicesOutput;
85
+ //# sourceMappingURL=mountServices.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mountServices.js","sourceRoot":"","sources":["../../vepfs/mountServices.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,SAAgB,aAAa,CAAC,IAAwB,EAAE,IAA2B;IAC/E,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,8CAA8C,EAAE;QACzE,cAAc,EAAE,IAAI,CAAC,YAAY;QACjC,gBAAgB,EAAE,IAAI,CAAC,cAAc;QACrC,kBAAkB,EAAE,IAAI,CAAC,gBAAgB;QACzC,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,UAAU,EAAE,IAAI,CAAC,QAAQ;KAC5B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAZD,sCAYC;AAmED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,SAAgB,mBAAmB,CAAC,IAA8B,EAAE,IAA2B;IAC3F,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,aAAa,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACxE,CAAC;AAFD,kDAEC"}
package/vke/cluster.d.ts CHANGED
@@ -106,7 +106,7 @@ export declare class Cluster extends pulumi.CustomResource {
106
106
  */
107
107
  readonly kubeconfigPublic: pulumi.Output<string>;
108
108
  /**
109
- * The version of Kubernetes specified when creating a VKE cluster (specified to patch version), with an example value of `v1.24`. If not specified, the latest Kubernetes version supported by VKE is used by default, which is a 3-segment version format starting with a lowercase v, that is, KubernetesVersion with IsLatestVersion=True in the return value of ListSupportedVersions.
109
+ * The version of Kubernetes specified when creating a VKE cluster (specified to patch version), with an example value of `1.24`. If not specified, the latest Kubernetes version supported by VKE is used by default, which is a 3-segment version format starting with a lowercase v, that is, KubernetesVersion with IsLatestVersion=True in the return value of ListSupportedVersions.
110
110
  */
111
111
  readonly kubernetesVersion: pulumi.Output<string>;
112
112
  /**
@@ -171,7 +171,7 @@ export interface ClusterState {
171
171
  */
172
172
  kubeconfigPublic?: pulumi.Input<string>;
173
173
  /**
174
- * The version of Kubernetes specified when creating a VKE cluster (specified to patch version), with an example value of `v1.24`. If not specified, the latest Kubernetes version supported by VKE is used by default, which is a 3-segment version format starting with a lowercase v, that is, KubernetesVersion with IsLatestVersion=True in the return value of ListSupportedVersions.
174
+ * The version of Kubernetes specified when creating a VKE cluster (specified to patch version), with an example value of `1.24`. If not specified, the latest Kubernetes version supported by VKE is used by default, which is a 3-segment version format starting with a lowercase v, that is, KubernetesVersion with IsLatestVersion=True in the return value of ListSupportedVersions.
175
175
  */
176
176
  kubernetesVersion?: pulumi.Input<string>;
177
177
  /**
@@ -216,7 +216,7 @@ export interface ClusterArgs {
216
216
  */
217
217
  description?: pulumi.Input<string>;
218
218
  /**
219
- * The version of Kubernetes specified when creating a VKE cluster (specified to patch version), with an example value of `v1.24`. If not specified, the latest Kubernetes version supported by VKE is used by default, which is a 3-segment version format starting with a lowercase v, that is, KubernetesVersion with IsLatestVersion=True in the return value of ListSupportedVersions.
219
+ * The version of Kubernetes specified when creating a VKE cluster (specified to patch version), with an example value of `1.24`. If not specified, the latest Kubernetes version supported by VKE is used by default, which is a 3-segment version format starting with a lowercase v, that is, KubernetesVersion with IsLatestVersion=True in the return value of ListSupportedVersions.
220
220
  */
221
221
  kubernetesVersion?: pulumi.Input<string>;
222
222
  /**
package/vke/node.d.ts CHANGED
@@ -161,7 +161,7 @@ export declare class Node extends pulumi.CustomResource {
161
161
  */
162
162
  static isInstance(obj: any): obj is Node;
163
163
  /**
164
- * The flag of additional container storage enable, the value is `true` or `false`.
164
+ * The flag of additional container storage enable, the value is `true` or `false`. This field is valid only when adding an existing instance to the default node pool.
165
165
  */
166
166
  readonly additionalContainerStorageEnabled: pulumi.Output<boolean | undefined>;
167
167
  /**
@@ -173,15 +173,15 @@ export declare class Node extends pulumi.CustomResource {
173
173
  */
174
174
  readonly clusterId: pulumi.Output<string>;
175
175
  /**
176
- * The container storage path.
176
+ * The container storage path. This field is valid only when adding an existing instance to the default node pool.
177
177
  */
178
178
  readonly containerStoragePath: pulumi.Output<string>;
179
179
  /**
180
- * The ImageId of NodeConfig.
180
+ * The ImageId of NodeConfig. This field is valid only when adding an existing instance to the default node pool.
181
181
  */
182
182
  readonly imageId: pulumi.Output<string>;
183
183
  /**
184
- * The initializeScript of Node.
184
+ * The initializeScript of Node. This field is valid only when adding an existing instance to the default node pool.
185
185
  */
186
186
  readonly initializeScript: pulumi.Output<string>;
187
187
  /**
@@ -193,11 +193,11 @@ export declare class Node extends pulumi.CustomResource {
193
193
  */
194
194
  readonly keepInstanceName: pulumi.Output<boolean | undefined>;
195
195
  /**
196
- * The KubernetesConfig of Node.
196
+ * The KubernetesConfig of Node. This field is valid only when adding an existing instance to the default node pool.
197
197
  */
198
198
  readonly kubernetesConfig: pulumi.Output<outputs.vke.NodeKubernetesConfig>;
199
199
  /**
200
- * The node pool id.
200
+ * The node pool id. This field is used to specify the custom node pool to which you want to add nodes. If not filled in, it means added to the default node pool.
201
201
  */
202
202
  readonly nodePoolId: pulumi.Output<string>;
203
203
  /**
@@ -214,7 +214,7 @@ export declare class Node extends pulumi.CustomResource {
214
214
  */
215
215
  export interface NodeState {
216
216
  /**
217
- * The flag of additional container storage enable, the value is `true` or `false`.
217
+ * The flag of additional container storage enable, the value is `true` or `false`. This field is valid only when adding an existing instance to the default node pool.
218
218
  */
219
219
  additionalContainerStorageEnabled?: pulumi.Input<boolean>;
220
220
  /**
@@ -226,15 +226,15 @@ export interface NodeState {
226
226
  */
227
227
  clusterId?: pulumi.Input<string>;
228
228
  /**
229
- * The container storage path.
229
+ * The container storage path. This field is valid only when adding an existing instance to the default node pool.
230
230
  */
231
231
  containerStoragePath?: pulumi.Input<string>;
232
232
  /**
233
- * The ImageId of NodeConfig.
233
+ * The ImageId of NodeConfig. This field is valid only when adding an existing instance to the default node pool.
234
234
  */
235
235
  imageId?: pulumi.Input<string>;
236
236
  /**
237
- * The initializeScript of Node.
237
+ * The initializeScript of Node. This field is valid only when adding an existing instance to the default node pool.
238
238
  */
239
239
  initializeScript?: pulumi.Input<string>;
240
240
  /**
@@ -246,11 +246,11 @@ export interface NodeState {
246
246
  */
247
247
  keepInstanceName?: pulumi.Input<boolean>;
248
248
  /**
249
- * The KubernetesConfig of Node.
249
+ * The KubernetesConfig of Node. This field is valid only when adding an existing instance to the default node pool.
250
250
  */
251
251
  kubernetesConfig?: pulumi.Input<inputs.vke.NodeKubernetesConfig>;
252
252
  /**
253
- * The node pool id.
253
+ * The node pool id. This field is used to specify the custom node pool to which you want to add nodes. If not filled in, it means added to the default node pool.
254
254
  */
255
255
  nodePoolId?: pulumi.Input<string>;
256
256
  }
@@ -259,7 +259,7 @@ export interface NodeState {
259
259
  */
260
260
  export interface NodeArgs {
261
261
  /**
262
- * The flag of additional container storage enable, the value is `true` or `false`.
262
+ * The flag of additional container storage enable, the value is `true` or `false`. This field is valid only when adding an existing instance to the default node pool.
263
263
  */
264
264
  additionalContainerStorageEnabled?: pulumi.Input<boolean>;
265
265
  /**
@@ -271,15 +271,15 @@ export interface NodeArgs {
271
271
  */
272
272
  clusterId: pulumi.Input<string>;
273
273
  /**
274
- * The container storage path.
274
+ * The container storage path. This field is valid only when adding an existing instance to the default node pool.
275
275
  */
276
276
  containerStoragePath?: pulumi.Input<string>;
277
277
  /**
278
- * The ImageId of NodeConfig.
278
+ * The ImageId of NodeConfig. This field is valid only when adding an existing instance to the default node pool.
279
279
  */
280
280
  imageId?: pulumi.Input<string>;
281
281
  /**
282
- * The initializeScript of Node.
282
+ * The initializeScript of Node. This field is valid only when adding an existing instance to the default node pool.
283
283
  */
284
284
  initializeScript?: pulumi.Input<string>;
285
285
  /**
@@ -291,11 +291,11 @@ export interface NodeArgs {
291
291
  */
292
292
  keepInstanceName?: pulumi.Input<boolean>;
293
293
  /**
294
- * The KubernetesConfig of Node.
294
+ * The KubernetesConfig of Node. This field is valid only when adding an existing instance to the default node pool.
295
295
  */
296
296
  kubernetesConfig?: pulumi.Input<inputs.vke.NodeKubernetesConfig>;
297
297
  /**
298
- * The node pool id.
298
+ * The node pool id. This field is used to specify the custom node pool to which you want to add nodes. If not filled in, it means added to the default node pool.
299
299
  */
300
300
  nodePoolId?: pulumi.Input<string>;
301
301
  }
package/vke/nodePool.d.ts CHANGED
@@ -119,6 +119,82 @@ import * as outputs from "../types/output";
119
119
  * value: "node-pool-v1",
120
120
  * }],
121
121
  * });
122
+ * // add existing instances to a custom node pool
123
+ * const fooInstance: volcengine.ecs.Instance[] = [];
124
+ * for (const range = {value: 0}; range.value < 2; range.value++) {
125
+ * fooInstance.push(new volcengine.ecs.Instance(`fooInstance-${range.value}`, {
126
+ * instanceName: `acc-test-ecs-${range.value}`,
127
+ * hostName: "tf-acc-test",
128
+ * imageId: fooImages.then(fooImages => .filter(image => image.imageName == "veLinux 1.0 CentOS兼容版 64位").map(image => (image.imageId))[0]),
129
+ * instanceType: "ecs.g1ie.xlarge",
130
+ * password: "93f0cb0614Aab12",
131
+ * instanceChargeType: "PostPaid",
132
+ * systemVolumeType: "ESSD_PL0",
133
+ * systemVolumeSize: 50,
134
+ * dataVolumes: [{
135
+ * volumeType: "ESSD_PL0",
136
+ * size: 50,
137
+ * deleteWithInstance: true,
138
+ * }],
139
+ * subnetId: fooSubnet.id,
140
+ * securityGroupIds: [fooSecurityGroup.id],
141
+ * projectName: "default",
142
+ * tags: [{
143
+ * key: "k1",
144
+ * value: "v1",
145
+ * }],
146
+ * }));
147
+ * }
148
+ * const foo1 = new volcengine.vke.NodePool("foo1", {
149
+ * clusterId: fooCluster.id,
150
+ * instanceIds: fooInstance.map(__item => __item.id),
151
+ * keepInstanceName: true,
152
+ * nodeConfig: {
153
+ * instanceTypeIds: ["ecs.g1ie.xlarge"],
154
+ * subnetIds: [fooSubnet.id],
155
+ * imageId: fooImages.then(fooImages => .filter(image => image.imageName == "veLinux 1.0 CentOS兼容版 64位").map(image => (image.imageId))[0]),
156
+ * systemVolume: {
157
+ * type: "ESSD_PL0",
158
+ * size: 50,
159
+ * },
160
+ * dataVolumes: [{
161
+ * type: "ESSD_PL0",
162
+ * size: 50,
163
+ * mountPoint: "/tf1",
164
+ * }],
165
+ * initializeScript: "ZWNobyBoZWxsbyB0ZXJyYWZvcm0h",
166
+ * security: {
167
+ * login: {
168
+ * password: "UHdkMTIzNDU2",
169
+ * },
170
+ * securityStrategies: ["Hids"],
171
+ * securityGroupIds: [fooSecurityGroup.id],
172
+ * },
173
+ * additionalContainerStorageEnabled: false,
174
+ * instanceChargeType: "PostPaid",
175
+ * namePrefix: "acc-test",
176
+ * ecsTags: [{
177
+ * key: "ecs_k1",
178
+ * value: "ecs_v1",
179
+ * }],
180
+ * },
181
+ * kubernetesConfig: {
182
+ * labels: [{
183
+ * key: "label1",
184
+ * value: "value1",
185
+ * }],
186
+ * taints: [{
187
+ * key: "taint-key/node-type",
188
+ * value: "taint-value",
189
+ * effect: "NoSchedule",
190
+ * }],
191
+ * cordon: true,
192
+ * },
193
+ * tags: [{
194
+ * key: "node-pool-k1",
195
+ * value: "node-pool-v1",
196
+ * }],
197
+ * });
122
198
  * ```
123
199
  *
124
200
  * ## Import
@@ -157,6 +233,17 @@ export declare class NodePool extends pulumi.CustomResource {
157
233
  * The ClusterId of NodePool.
158
234
  */
159
235
  readonly clusterId: pulumi.Output<string | undefined>;
236
+ /**
237
+ * The list of existing ECS instance ids. Add existing instances with same type of security group under the same cluster VPC to the custom node pool.
238
+ * Note that removing instance ids from the list will only remove the nodes from cluster and not release the ECS instances. But deleting node pool will release the ECS instances in it.
239
+ * It is not recommended to use this field, it is recommended to use `volcengine.vke.Node` resource to add an existing instance to a custom node pool.
240
+ */
241
+ readonly instanceIds: pulumi.Output<string[] | undefined>;
242
+ /**
243
+ * Whether to keep instance name when adding an existing instance to a custom node pool, the value is `true` or `false`.
244
+ * This field is valid only when adding new instances to the custom node pool.
245
+ */
246
+ readonly keepInstanceName: pulumi.Output<boolean | undefined>;
160
247
  /**
161
248
  * The KubernetesConfig of NodeConfig.
162
249
  */
@@ -202,6 +289,17 @@ export interface NodePoolState {
202
289
  * The ClusterId of NodePool.
203
290
  */
204
291
  clusterId?: pulumi.Input<string>;
292
+ /**
293
+ * The list of existing ECS instance ids. Add existing instances with same type of security group under the same cluster VPC to the custom node pool.
294
+ * Note that removing instance ids from the list will only remove the nodes from cluster and not release the ECS instances. But deleting node pool will release the ECS instances in it.
295
+ * It is not recommended to use this field, it is recommended to use `volcengine.vke.Node` resource to add an existing instance to a custom node pool.
296
+ */
297
+ instanceIds?: pulumi.Input<pulumi.Input<string>[]>;
298
+ /**
299
+ * Whether to keep instance name when adding an existing instance to a custom node pool, the value is `true` or `false`.
300
+ * This field is valid only when adding new instances to the custom node pool.
301
+ */
302
+ keepInstanceName?: pulumi.Input<boolean>;
205
303
  /**
206
304
  * The KubernetesConfig of NodeConfig.
207
305
  */
@@ -239,6 +337,17 @@ export interface NodePoolArgs {
239
337
  * The ClusterId of NodePool.
240
338
  */
241
339
  clusterId?: pulumi.Input<string>;
340
+ /**
341
+ * The list of existing ECS instance ids. Add existing instances with same type of security group under the same cluster VPC to the custom node pool.
342
+ * Note that removing instance ids from the list will only remove the nodes from cluster and not release the ECS instances. But deleting node pool will release the ECS instances in it.
343
+ * It is not recommended to use this field, it is recommended to use `volcengine.vke.Node` resource to add an existing instance to a custom node pool.
344
+ */
345
+ instanceIds?: pulumi.Input<pulumi.Input<string>[]>;
346
+ /**
347
+ * Whether to keep instance name when adding an existing instance to a custom node pool, the value is `true` or `false`.
348
+ * This field is valid only when adding new instances to the custom node pool.
349
+ */
350
+ keepInstanceName?: pulumi.Input<boolean>;
242
351
  /**
243
352
  * The KubernetesConfig of NodeConfig.
244
353
  */