@byteplus/pulumi-bytepluscc 0.0.50 → 0.0.52

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 (142) hide show
  1. package/cloudidentity/getUser.d.ts +8 -0
  2. package/cloudidentity/getUser.d.ts.map +1 -1
  3. package/cloudidentity/getUser.js.map +1 -1
  4. package/cloudidentity/user.d.ts +20 -0
  5. package/cloudidentity/user.d.ts.map +1 -1
  6. package/cloudidentity/user.js +4 -0
  7. package/cloudidentity/user.js.map +1 -1
  8. package/cr/getRobotAccount.d.ts +82 -0
  9. package/cr/getRobotAccount.d.ts.map +1 -0
  10. package/cr/getRobotAccount.js +51 -0
  11. package/cr/getRobotAccount.js.map +1 -0
  12. package/cr/getRobotAccounts.d.ts +23 -0
  13. package/cr/getRobotAccounts.d.ts.map +1 -0
  14. package/cr/getRobotAccounts.js +47 -0
  15. package/cr/getRobotAccounts.js.map +1 -0
  16. package/cr/index.d.ts +9 -0
  17. package/cr/index.d.ts.map +1 -1
  18. package/cr/index.js +12 -1
  19. package/cr/index.js.map +1 -1
  20. package/cr/robotAccount.d.ts +201 -0
  21. package/cr/robotAccount.d.ts.map +1 -0
  22. package/cr/robotAccount.js +143 -0
  23. package/cr/robotAccount.js.map +1 -0
  24. package/ecs/dedicatedHostCluster.d.ts +137 -0
  25. package/ecs/dedicatedHostCluster.d.ts.map +1 -0
  26. package/ecs/dedicatedHostCluster.js +114 -0
  27. package/ecs/dedicatedHostCluster.js.map +1 -0
  28. package/ecs/getDedicatedHostCluster.d.ts +70 -0
  29. package/ecs/getDedicatedHostCluster.d.ts.map +1 -0
  30. package/ecs/getDedicatedHostCluster.js +51 -0
  31. package/ecs/getDedicatedHostCluster.js.map +1 -0
  32. package/ecs/getDedicatedHostClusters.d.ts +23 -0
  33. package/ecs/getDedicatedHostClusters.d.ts.map +1 -0
  34. package/ecs/getDedicatedHostClusters.js +47 -0
  35. package/ecs/getDedicatedHostClusters.js.map +1 -0
  36. package/ecs/index.d.ts +9 -0
  37. package/ecs/index.d.ts.map +1 -1
  38. package/ecs/index.js +13 -1
  39. package/ecs/index.js.map +1 -1
  40. package/iam/apiKey.d.ts +139 -0
  41. package/iam/apiKey.d.ts.map +1 -0
  42. package/iam/apiKey.js +114 -0
  43. package/iam/apiKey.js.map +1 -0
  44. package/iam/getApiKey.d.ts +69 -0
  45. package/iam/getApiKey.d.ts.map +1 -0
  46. package/iam/getApiKey.js +51 -0
  47. package/iam/getApiKey.js.map +1 -0
  48. package/iam/getApiKeys.d.ts +23 -0
  49. package/iam/getApiKeys.d.ts.map +1 -0
  50. package/iam/getApiKeys.js +47 -0
  51. package/iam/getApiKeys.js.map +1 -0
  52. package/iam/index.d.ts +9 -0
  53. package/iam/index.d.ts.map +1 -1
  54. package/iam/index.js +12 -1
  55. package/iam/index.js.map +1 -1
  56. package/package.json +1 -1
  57. package/rdsmysql/getInstance.d.ts +1 -1
  58. package/rdsmysql/instance.d.ts +3 -3
  59. package/redis/getKeyScanJob.d.ts +77 -0
  60. package/redis/getKeyScanJob.d.ts.map +1 -0
  61. package/redis/getKeyScanJob.js +51 -0
  62. package/redis/getKeyScanJob.js.map +1 -0
  63. package/redis/getKeyScanJobs.d.ts +23 -0
  64. package/redis/getKeyScanJobs.d.ts.map +1 -0
  65. package/redis/getKeyScanJobs.js +47 -0
  66. package/redis/getKeyScanJobs.js.map +1 -0
  67. package/redis/index.d.ts +9 -0
  68. package/redis/index.d.ts.map +1 -1
  69. package/redis/index.js +12 -1
  70. package/redis/index.js.map +1 -1
  71. package/redis/keyScanJob.d.ts +151 -0
  72. package/redis/keyScanJob.d.ts.map +1 -0
  73. package/redis/keyScanJob.js +121 -0
  74. package/redis/keyScanJob.js.map +1 -0
  75. package/types/input.d.ts +109 -4
  76. package/types/input.d.ts.map +1 -1
  77. package/types/output.d.ts +216 -5
  78. package/types/output.d.ts.map +1 -1
  79. package/vpc/getIpamPool.d.ts +2 -2
  80. package/vpc/getIpamPool.js +2 -2
  81. package/vpc/getIpamPools.d.ts +2 -2
  82. package/vpc/getIpamPools.js +2 -2
  83. package/vpc/getIpamScope.d.ts +2 -2
  84. package/vpc/getIpamScope.js +2 -2
  85. package/vpc/getIpamScopes.d.ts +2 -2
  86. package/vpc/getIpamScopes.js +2 -2
  87. package/vpc/getIpv4Gateway.d.ts +77 -0
  88. package/vpc/getIpv4Gateway.d.ts.map +1 -0
  89. package/vpc/getIpv4Gateway.js +51 -0
  90. package/vpc/getIpv4Gateway.js.map +1 -0
  91. package/vpc/getIpv4Gateways.d.ts +23 -0
  92. package/vpc/getIpv4Gateways.d.ts.map +1 -0
  93. package/vpc/getIpv4Gateways.js +47 -0
  94. package/vpc/getIpv4Gateways.js.map +1 -0
  95. package/vpc/index.d.ts +9 -0
  96. package/vpc/index.d.ts.map +1 -1
  97. package/vpc/index.js +14 -3
  98. package/vpc/index.js.map +1 -1
  99. package/vpc/ipv4Gateway.d.ts +155 -0
  100. package/vpc/ipv4Gateway.d.ts.map +1 -0
  101. package/vpc/ipv4Gateway.js +112 -0
  102. package/vpc/ipv4Gateway.js.map +1 -0
  103. package/waf/customPage.d.ts +272 -0
  104. package/waf/customPage.d.ts.map +1 -0
  105. package/waf/customPage.js +156 -0
  106. package/waf/customPage.js.map +1 -0
  107. package/waf/getCustomPage.d.ts +110 -0
  108. package/waf/getCustomPage.d.ts.map +1 -0
  109. package/waf/getCustomPage.js +51 -0
  110. package/waf/getCustomPage.js.map +1 -0
  111. package/waf/getCustomPages.d.ts +23 -0
  112. package/waf/getCustomPages.d.ts.map +1 -0
  113. package/waf/getCustomPages.js +47 -0
  114. package/waf/getCustomPages.js.map +1 -0
  115. package/waf/getIpGroup.d.ts +62 -0
  116. package/waf/getIpGroup.d.ts.map +1 -0
  117. package/waf/getIpGroup.js +51 -0
  118. package/waf/getIpGroup.js.map +1 -0
  119. package/waf/getIpGroups.d.ts +23 -0
  120. package/waf/getIpGroups.d.ts.map +1 -0
  121. package/waf/getIpGroups.js +47 -0
  122. package/waf/getIpGroups.js.map +1 -0
  123. package/waf/getSystemBot.d.ts +38 -0
  124. package/waf/getSystemBot.d.ts.map +1 -0
  125. package/waf/getSystemBot.js +51 -0
  126. package/waf/getSystemBot.js.map +1 -0
  127. package/waf/getSystemBots.d.ts +23 -0
  128. package/waf/getSystemBots.d.ts.map +1 -0
  129. package/waf/getSystemBots.js +47 -0
  130. package/waf/getSystemBots.js.map +1 -0
  131. package/waf/index.d.ts +27 -0
  132. package/waf/index.d.ts.map +1 -1
  133. package/waf/index.js +34 -1
  134. package/waf/index.js.map +1 -1
  135. package/waf/ipGroup.d.ts +121 -0
  136. package/waf/ipGroup.d.ts.map +1 -0
  137. package/waf/ipGroup.js +112 -0
  138. package/waf/ipGroup.js.map +1 -0
  139. package/waf/systemBot.d.ts +172 -0
  140. package/waf/systemBot.d.ts.map +1 -0
  141. package/waf/systemBot.js +121 -0
  142. package/waf/systemBot.js.map +1 -0
@@ -0,0 +1,201 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "../types/input";
3
+ import * as outputs from "../types/output";
4
+ /**
5
+ * Container image repository robot account, used to access the image repository with a robot account in the format crrobot@****.
6
+ *
7
+ * ## Example Usage
8
+ *
9
+ * ```typescript
10
+ * import * as pulumi from "@pulumi/pulumi";
11
+ * import * as bytepluscc from "@byteplus/pulumi-bytepluscc";
12
+ *
13
+ * const example = new bytepluscc.cr.RobotAccount("example", {
14
+ * registry: "cr_instance.id",
15
+ * username: "crrobot@ccapi-full",
16
+ * description: "ccapi robotaccount full",
17
+ * duration: 90,
18
+ * permissions: [
19
+ * {
20
+ * resource: "namespace-xx",
21
+ * actions: [
22
+ * "PullRepository",
23
+ * "PushRepository",
24
+ * ],
25
+ * },
26
+ * {
27
+ * resource: "project-xxx",
28
+ * actions: [
29
+ * "CreateRepository",
30
+ * "PullRepository",
31
+ * ],
32
+ * },
33
+ * ],
34
+ * });
35
+ * ```
36
+ *
37
+ * ## Import
38
+ *
39
+ * ```sh
40
+ * $ pulumi import bytepluscc:cr/robotAccount:RobotAccount example "registry|username"
41
+ * ```
42
+ */
43
+ export declare class RobotAccount extends pulumi.CustomResource {
44
+ /**
45
+ * Get an existing RobotAccount resource's state with the given name, ID, and optional extra
46
+ * properties used to qualify the lookup.
47
+ *
48
+ * @param name The _unique_ name of the resulting resource.
49
+ * @param id The _unique_ provider ID of the resource to lookup.
50
+ * @param state Any extra arguments used during the lookup.
51
+ * @param opts Optional settings to control the behavior of the CustomResource.
52
+ */
53
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: RobotAccountState, opts?: pulumi.CustomResourceOptions): RobotAccount;
54
+ /**
55
+ * Returns true if the given object is an instance of RobotAccount. This is designed to work even
56
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
57
+ */
58
+ static isInstance(obj: any): obj is RobotAccount;
59
+ /**
60
+ * Creation timestamp.
61
+ */
62
+ readonly createTime: pulumi.Output<string>;
63
+ /**
64
+ * Description of the robot account.
65
+ */
66
+ readonly description: pulumi.Output<string>;
67
+ /**
68
+ * Disable status of the robot account. false means the account is enabled; true means the account is disabled.
69
+ */
70
+ readonly disabled: pulumi.Output<boolean>;
71
+ /**
72
+ * Effective period, in days, with a maximum of 366. Enter -1 for unlimited.
73
+ */
74
+ readonly duration: pulumi.Output<number>;
75
+ /**
76
+ * Expiration timestamp.
77
+ */
78
+ readonly expiresAt: pulumi.Output<number>;
79
+ /**
80
+ * Login password for the robot account. If not specified during creation, a random password will be generated; when updating the password, this field is required if Random is false.
81
+ */
82
+ readonly password: pulumi.Output<string>;
83
+ /**
84
+ * Operation permissions for the robot account.
85
+ * Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
86
+ */
87
+ readonly permissions: pulumi.Output<outputs.cr.RobotAccountPermission[]>;
88
+ /**
89
+ * Whether to automatically generate a random password. false means a random string is not used and you must enter a password manually; true means a random password is generated automatically.
90
+ */
91
+ readonly random: pulumi.Output<boolean>;
92
+ /**
93
+ * Instance name where the robot account resides.
94
+ */
95
+ readonly registry: pulumi.Output<string>;
96
+ /**
97
+ * Update timestamp.
98
+ */
99
+ readonly updateTime: pulumi.Output<string>;
100
+ /**
101
+ * Name of the robot account, in the format crrobot@****.
102
+ */
103
+ readonly username: pulumi.Output<string>;
104
+ /**
105
+ * Create a RobotAccount resource with the given unique name, arguments, and options.
106
+ *
107
+ * @param name The _unique_ name of the resource.
108
+ * @param args The arguments to use to populate this resource's properties.
109
+ * @param opts A bag of options that control this resource's behavior.
110
+ */
111
+ constructor(name: string, args: RobotAccountArgs, opts?: pulumi.CustomResourceOptions);
112
+ }
113
+ /**
114
+ * Input properties used for looking up and filtering RobotAccount resources.
115
+ */
116
+ export interface RobotAccountState {
117
+ /**
118
+ * Creation timestamp.
119
+ */
120
+ createTime?: pulumi.Input<string | undefined>;
121
+ /**
122
+ * Description of the robot account.
123
+ */
124
+ description?: pulumi.Input<string | undefined>;
125
+ /**
126
+ * Disable status of the robot account. false means the account is enabled; true means the account is disabled.
127
+ */
128
+ disabled?: pulumi.Input<boolean | undefined>;
129
+ /**
130
+ * Effective period, in days, with a maximum of 366. Enter -1 for unlimited.
131
+ */
132
+ duration?: pulumi.Input<number | undefined>;
133
+ /**
134
+ * Expiration timestamp.
135
+ */
136
+ expiresAt?: pulumi.Input<number | undefined>;
137
+ /**
138
+ * Login password for the robot account. If not specified during creation, a random password will be generated; when updating the password, this field is required if Random is false.
139
+ */
140
+ password?: pulumi.Input<string | undefined>;
141
+ /**
142
+ * Operation permissions for the robot account.
143
+ * Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
144
+ */
145
+ permissions?: pulumi.Input<pulumi.Input<inputs.cr.RobotAccountPermission>[] | undefined>;
146
+ /**
147
+ * Whether to automatically generate a random password. false means a random string is not used and you must enter a password manually; true means a random password is generated automatically.
148
+ */
149
+ random?: pulumi.Input<boolean | undefined>;
150
+ /**
151
+ * Instance name where the robot account resides.
152
+ */
153
+ registry?: pulumi.Input<string | undefined>;
154
+ /**
155
+ * Update timestamp.
156
+ */
157
+ updateTime?: pulumi.Input<string | undefined>;
158
+ /**
159
+ * Name of the robot account, in the format crrobot@****.
160
+ */
161
+ username?: pulumi.Input<string | undefined>;
162
+ }
163
+ /**
164
+ * The set of arguments for constructing a RobotAccount resource.
165
+ */
166
+ export interface RobotAccountArgs {
167
+ /**
168
+ * Description of the robot account.
169
+ */
170
+ description?: pulumi.Input<string | undefined>;
171
+ /**
172
+ * Disable status of the robot account. false means the account is enabled; true means the account is disabled.
173
+ */
174
+ disabled?: pulumi.Input<boolean | undefined>;
175
+ /**
176
+ * Effective period, in days, with a maximum of 366. Enter -1 for unlimited.
177
+ */
178
+ duration: pulumi.Input<number>;
179
+ /**
180
+ * Login password for the robot account. If not specified during creation, a random password will be generated; when updating the password, this field is required if Random is false.
181
+ */
182
+ password?: pulumi.Input<string | undefined>;
183
+ /**
184
+ * Operation permissions for the robot account.
185
+ * Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
186
+ */
187
+ permissions: pulumi.Input<pulumi.Input<inputs.cr.RobotAccountPermission>[]>;
188
+ /**
189
+ * Whether to automatically generate a random password. false means a random string is not used and you must enter a password manually; true means a random password is generated automatically.
190
+ */
191
+ random?: pulumi.Input<boolean | undefined>;
192
+ /**
193
+ * Instance name where the robot account resides.
194
+ */
195
+ registry: pulumi.Input<string>;
196
+ /**
197
+ * Name of the robot account, in the format crrobot@****.
198
+ */
199
+ username: pulumi.Input<string>;
200
+ }
201
+ //# sourceMappingURL=robotAccount.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"robotAccount.d.ts","sourceRoot":"","sources":["../../cr/robotAccount.ts"],"names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C,MAAM,GAAG,SAAS,CAAC,CAAC;IAC5C;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC9C;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;CAC/C;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC7B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC/C;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,GAAG,SAAS,CAAC,CAAC;IAC7C;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC/B;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC5C;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,sBAAsB,CAAC,EAAE,CAAC,CAAC;IAC5E;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,GAAG,SAAS,CAAC,CAAC;IAC3C;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC/B;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;CAClC"}
@@ -0,0 +1,143 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
5
+ if (k2 === undefined) k2 = k;
6
+ var desc = Object.getOwnPropertyDescriptor(m, k);
7
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
8
+ desc = { enumerable: true, get: function() { return m[k]; } };
9
+ }
10
+ Object.defineProperty(o, k2, desc);
11
+ }) : (function(o, m, k, k2) {
12
+ if (k2 === undefined) k2 = k;
13
+ o[k2] = m[k];
14
+ }));
15
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
16
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
17
+ }) : function(o, v) {
18
+ o["default"] = v;
19
+ });
20
+ var __importStar = (this && this.__importStar) || function (mod) {
21
+ if (mod && mod.__esModule) return mod;
22
+ var result = {};
23
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
24
+ __setModuleDefault(result, mod);
25
+ return result;
26
+ };
27
+ Object.defineProperty(exports, "__esModule", { value: true });
28
+ exports.RobotAccount = void 0;
29
+ const pulumi = __importStar(require("@pulumi/pulumi"));
30
+ const utilities = __importStar(require("../utilities"));
31
+ /**
32
+ * Container image repository robot account, used to access the image repository with a robot account in the format crrobot@****.
33
+ *
34
+ * ## Example Usage
35
+ *
36
+ * ```typescript
37
+ * import * as pulumi from "@pulumi/pulumi";
38
+ * import * as bytepluscc from "@byteplus/pulumi-bytepluscc";
39
+ *
40
+ * const example = new bytepluscc.cr.RobotAccount("example", {
41
+ * registry: "cr_instance.id",
42
+ * username: "crrobot@ccapi-full",
43
+ * description: "ccapi robotaccount full",
44
+ * duration: 90,
45
+ * permissions: [
46
+ * {
47
+ * resource: "namespace-xx",
48
+ * actions: [
49
+ * "PullRepository",
50
+ * "PushRepository",
51
+ * ],
52
+ * },
53
+ * {
54
+ * resource: "project-xxx",
55
+ * actions: [
56
+ * "CreateRepository",
57
+ * "PullRepository",
58
+ * ],
59
+ * },
60
+ * ],
61
+ * });
62
+ * ```
63
+ *
64
+ * ## Import
65
+ *
66
+ * ```sh
67
+ * $ pulumi import bytepluscc:cr/robotAccount:RobotAccount example "registry|username"
68
+ * ```
69
+ */
70
+ class RobotAccount extends pulumi.CustomResource {
71
+ /**
72
+ * Get an existing RobotAccount resource's state with the given name, ID, and optional extra
73
+ * properties used to qualify the lookup.
74
+ *
75
+ * @param name The _unique_ name of the resulting resource.
76
+ * @param id The _unique_ provider ID of the resource to lookup.
77
+ * @param state Any extra arguments used during the lookup.
78
+ * @param opts Optional settings to control the behavior of the CustomResource.
79
+ */
80
+ static get(name, id, state, opts) {
81
+ return new RobotAccount(name, state, { ...opts, id: id });
82
+ }
83
+ /** @internal */
84
+ static __pulumiType = 'bytepluscc:cr/robotAccount:RobotAccount';
85
+ /**
86
+ * Returns true if the given object is an instance of RobotAccount. This is designed to work even
87
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
88
+ */
89
+ static isInstance(obj) {
90
+ if (obj === undefined || obj === null) {
91
+ return false;
92
+ }
93
+ return obj['__pulumiType'] === RobotAccount.__pulumiType;
94
+ }
95
+ constructor(name, argsOrState, opts) {
96
+ let resourceInputs = {};
97
+ opts = opts || {};
98
+ if (opts.id) {
99
+ const state = argsOrState;
100
+ resourceInputs["createTime"] = state?.createTime;
101
+ resourceInputs["description"] = state?.description;
102
+ resourceInputs["disabled"] = state?.disabled;
103
+ resourceInputs["duration"] = state?.duration;
104
+ resourceInputs["expiresAt"] = state?.expiresAt;
105
+ resourceInputs["password"] = state?.password;
106
+ resourceInputs["permissions"] = state?.permissions;
107
+ resourceInputs["random"] = state?.random;
108
+ resourceInputs["registry"] = state?.registry;
109
+ resourceInputs["updateTime"] = state?.updateTime;
110
+ resourceInputs["username"] = state?.username;
111
+ }
112
+ else {
113
+ const args = argsOrState;
114
+ if (args?.duration === undefined && !opts.urn) {
115
+ throw new Error("Missing required property 'duration'");
116
+ }
117
+ if (args?.permissions === undefined && !opts.urn) {
118
+ throw new Error("Missing required property 'permissions'");
119
+ }
120
+ if (args?.registry === undefined && !opts.urn) {
121
+ throw new Error("Missing required property 'registry'");
122
+ }
123
+ if (args?.username === undefined && !opts.urn) {
124
+ throw new Error("Missing required property 'username'");
125
+ }
126
+ resourceInputs["description"] = args?.description;
127
+ resourceInputs["disabled"] = args?.disabled;
128
+ resourceInputs["duration"] = args?.duration;
129
+ resourceInputs["password"] = args?.password;
130
+ resourceInputs["permissions"] = args?.permissions;
131
+ resourceInputs["random"] = args?.random;
132
+ resourceInputs["registry"] = args?.registry;
133
+ resourceInputs["username"] = args?.username;
134
+ resourceInputs["createTime"] = undefined /*out*/;
135
+ resourceInputs["expiresAt"] = undefined /*out*/;
136
+ resourceInputs["updateTime"] = undefined /*out*/;
137
+ }
138
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
139
+ super(RobotAccount.__pulumiType, name, resourceInputs, opts);
140
+ }
141
+ }
142
+ exports.RobotAccount = RobotAccount;
143
+ //# sourceMappingURL=robotAccount.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"robotAccount.js","sourceRoot":"","sources":["../../cr/robotAccount.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,wDAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,MAAa,YAAa,SAAQ,MAAM,CAAC,cAAc;IACnD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAyB,EAAE,IAAmC;QACvH,OAAO,IAAI,YAAY,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACnE,CAAC;IAED,gBAAgB;IACT,MAAM,CAAU,YAAY,GAAG,yCAAyC,CAAC;IAEhF;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;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 import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "../types/input";
3
+ import * as outputs from "../types/output";
4
+ /**
5
+ * The dedicated host cluster is a logical collection at the availability zone level. You can use dedicated host clusters to group and manage dedicated hosts, or create instances in a specified cluster.
6
+ *
7
+ * ## Example Usage
8
+ *
9
+ * ```typescript
10
+ * import * as pulumi from "@pulumi/pulumi";
11
+ * import * as bytepluscc from "@byteplus/pulumi-bytepluscc";
12
+ *
13
+ * const example = new bytepluscc.ecs.DedicatedHostCluster("example", {
14
+ * dedicatedHostClusterName: "ccapi-ddhc-full",
15
+ * description: "ccapi dedicated host cluster full",
16
+ * zoneId: "cn-beijing-a",
17
+ * });
18
+ * ```
19
+ *
20
+ * ## Import
21
+ *
22
+ * ```sh
23
+ * $ pulumi import bytepluscc:ecs/dedicatedHostCluster:DedicatedHostCluster example "dedicated_host_cluster_id"
24
+ * ```
25
+ */
26
+ export declare class DedicatedHostCluster extends pulumi.CustomResource {
27
+ /**
28
+ * Get an existing DedicatedHostCluster resource's state with the given name, ID, and optional extra
29
+ * properties used to qualify the lookup.
30
+ *
31
+ * @param name The _unique_ name of the resulting resource.
32
+ * @param id The _unique_ provider ID of the resource to lookup.
33
+ * @param state Any extra arguments used during the lookup.
34
+ * @param opts Optional settings to control the behavior of the CustomResource.
35
+ */
36
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: DedicatedHostClusterState, opts?: pulumi.CustomResourceOptions): DedicatedHostCluster;
37
+ /**
38
+ * Returns true if the given object is an instance of DedicatedHostCluster. This is designed to work even
39
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
40
+ */
41
+ static isInstance(obj: any): obj is DedicatedHostCluster;
42
+ /**
43
+ * Creation time of the dedicated host cluster.
44
+ */
45
+ readonly createdAt: pulumi.Output<string>;
46
+ /**
47
+ * Capacity information of the dedicated host cluster, including available memory, available vCPU, supported instance types, and more.
48
+ */
49
+ readonly dedicatedHostClusterCapacity: pulumi.Output<outputs.ecs.DedicatedHostClusterDedicatedHostClusterCapacity>;
50
+ /**
51
+ * ID of the dedicated host cluster.
52
+ */
53
+ readonly dedicatedHostClusterId: pulumi.Output<string>;
54
+ /**
55
+ * Name of the dedicated host cluster. Length limit: 1–128 characters. Can include Chinese characters, letters, numbers, underscores (_), hyphens (-), and periods (.), and must start with a letter, number, or Chinese character.
56
+ */
57
+ readonly dedicatedHostClusterName: pulumi.Output<string>;
58
+ /**
59
+ * List of IDs for all dedicated hosts contained in this dedicated host cluster.
60
+ */
61
+ readonly dedicatedHostIds: pulumi.Output<string[]>;
62
+ /**
63
+ * Description of the dedicated host cluster. Length limit: 0–256 characters.
64
+ */
65
+ readonly description: pulumi.Output<string>;
66
+ /**
67
+ * Last update time of the dedicated host cluster.
68
+ */
69
+ readonly updatedAt: pulumi.Output<string>;
70
+ /**
71
+ * Availability zone ID to which the dedicated host cluster belongs. Cannot be modified after creation.
72
+ */
73
+ readonly zoneId: pulumi.Output<string>;
74
+ /**
75
+ * Create a DedicatedHostCluster resource with the given unique name, arguments, and options.
76
+ *
77
+ * @param name The _unique_ name of the resource.
78
+ * @param args The arguments to use to populate this resource's properties.
79
+ * @param opts A bag of options that control this resource's behavior.
80
+ */
81
+ constructor(name: string, args: DedicatedHostClusterArgs, opts?: pulumi.CustomResourceOptions);
82
+ }
83
+ /**
84
+ * Input properties used for looking up and filtering DedicatedHostCluster resources.
85
+ */
86
+ export interface DedicatedHostClusterState {
87
+ /**
88
+ * Creation time of the dedicated host cluster.
89
+ */
90
+ createdAt?: pulumi.Input<string | undefined>;
91
+ /**
92
+ * Capacity information of the dedicated host cluster, including available memory, available vCPU, supported instance types, and more.
93
+ */
94
+ dedicatedHostClusterCapacity?: pulumi.Input<inputs.ecs.DedicatedHostClusterDedicatedHostClusterCapacity | undefined>;
95
+ /**
96
+ * ID of the dedicated host cluster.
97
+ */
98
+ dedicatedHostClusterId?: pulumi.Input<string | undefined>;
99
+ /**
100
+ * Name of the dedicated host cluster. Length limit: 1–128 characters. Can include Chinese characters, letters, numbers, underscores (_), hyphens (-), and periods (.), and must start with a letter, number, or Chinese character.
101
+ */
102
+ dedicatedHostClusterName?: pulumi.Input<string | undefined>;
103
+ /**
104
+ * List of IDs for all dedicated hosts contained in this dedicated host cluster.
105
+ */
106
+ dedicatedHostIds?: pulumi.Input<pulumi.Input<string>[] | undefined>;
107
+ /**
108
+ * Description of the dedicated host cluster. Length limit: 0–256 characters.
109
+ */
110
+ description?: pulumi.Input<string | undefined>;
111
+ /**
112
+ * Last update time of the dedicated host cluster.
113
+ */
114
+ updatedAt?: pulumi.Input<string | undefined>;
115
+ /**
116
+ * Availability zone ID to which the dedicated host cluster belongs. Cannot be modified after creation.
117
+ */
118
+ zoneId?: pulumi.Input<string | undefined>;
119
+ }
120
+ /**
121
+ * The set of arguments for constructing a DedicatedHostCluster resource.
122
+ */
123
+ export interface DedicatedHostClusterArgs {
124
+ /**
125
+ * Name of the dedicated host cluster. Length limit: 1–128 characters. Can include Chinese characters, letters, numbers, underscores (_), hyphens (-), and periods (.), and must start with a letter, number, or Chinese character.
126
+ */
127
+ dedicatedHostClusterName: pulumi.Input<string>;
128
+ /**
129
+ * Description of the dedicated host cluster. Length limit: 0–256 characters.
130
+ */
131
+ description?: pulumi.Input<string | undefined>;
132
+ /**
133
+ * Availability zone ID to which the dedicated host cluster belongs. Cannot be modified after creation.
134
+ */
135
+ zoneId: pulumi.Input<string>;
136
+ }
137
+ //# sourceMappingURL=dedicatedHostCluster.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dedicatedHostCluster.d.ts","sourceRoot":"","sources":["../../ecs/dedicatedHostCluster.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,OAAO,MAAM,iBAAiB,CAAC;AAG3C;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,qBAAa,oBAAqB,SAAQ,MAAM,CAAC,cA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C;;OAEG;IACH,4BAA4B,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,gDAAgD,GAAG,SAAS,CAAC,CAAC;IACrH;;OAEG;IACH,sBAAsB,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC1D;;OAEG;IACH,wBAAwB,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC5D;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,GAAG,SAAS,CAAC,CAAC;IACpE;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC/C;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC7C;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;CAC7C;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACrC;;OAEG;IACH,wBAAwB,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC/C;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC/C;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;CAChC"}
@@ -0,0 +1,114 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
5
+ if (k2 === undefined) k2 = k;
6
+ var desc = Object.getOwnPropertyDescriptor(m, k);
7
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
8
+ desc = { enumerable: true, get: function() { return m[k]; } };
9
+ }
10
+ Object.defineProperty(o, k2, desc);
11
+ }) : (function(o, m, k, k2) {
12
+ if (k2 === undefined) k2 = k;
13
+ o[k2] = m[k];
14
+ }));
15
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
16
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
17
+ }) : function(o, v) {
18
+ o["default"] = v;
19
+ });
20
+ var __importStar = (this && this.__importStar) || function (mod) {
21
+ if (mod && mod.__esModule) return mod;
22
+ var result = {};
23
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
24
+ __setModuleDefault(result, mod);
25
+ return result;
26
+ };
27
+ Object.defineProperty(exports, "__esModule", { value: true });
28
+ exports.DedicatedHostCluster = void 0;
29
+ const pulumi = __importStar(require("@pulumi/pulumi"));
30
+ const utilities = __importStar(require("../utilities"));
31
+ /**
32
+ * The dedicated host cluster is a logical collection at the availability zone level. You can use dedicated host clusters to group and manage dedicated hosts, or create instances in a specified cluster.
33
+ *
34
+ * ## Example Usage
35
+ *
36
+ * ```typescript
37
+ * import * as pulumi from "@pulumi/pulumi";
38
+ * import * as bytepluscc from "@byteplus/pulumi-bytepluscc";
39
+ *
40
+ * const example = new bytepluscc.ecs.DedicatedHostCluster("example", {
41
+ * dedicatedHostClusterName: "ccapi-ddhc-full",
42
+ * description: "ccapi dedicated host cluster full",
43
+ * zoneId: "cn-beijing-a",
44
+ * });
45
+ * ```
46
+ *
47
+ * ## Import
48
+ *
49
+ * ```sh
50
+ * $ pulumi import bytepluscc:ecs/dedicatedHostCluster:DedicatedHostCluster example "dedicated_host_cluster_id"
51
+ * ```
52
+ */
53
+ class DedicatedHostCluster extends pulumi.CustomResource {
54
+ /**
55
+ * Get an existing DedicatedHostCluster resource's state with the given name, ID, and optional extra
56
+ * properties used to qualify the lookup.
57
+ *
58
+ * @param name The _unique_ name of the resulting resource.
59
+ * @param id The _unique_ provider ID of the resource to lookup.
60
+ * @param state Any extra arguments used during the lookup.
61
+ * @param opts Optional settings to control the behavior of the CustomResource.
62
+ */
63
+ static get(name, id, state, opts) {
64
+ return new DedicatedHostCluster(name, state, { ...opts, id: id });
65
+ }
66
+ /** @internal */
67
+ static __pulumiType = 'bytepluscc:ecs/dedicatedHostCluster:DedicatedHostCluster';
68
+ /**
69
+ * Returns true if the given object is an instance of DedicatedHostCluster. This is designed to work even
70
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
71
+ */
72
+ static isInstance(obj) {
73
+ if (obj === undefined || obj === null) {
74
+ return false;
75
+ }
76
+ return obj['__pulumiType'] === DedicatedHostCluster.__pulumiType;
77
+ }
78
+ constructor(name, argsOrState, opts) {
79
+ let resourceInputs = {};
80
+ opts = opts || {};
81
+ if (opts.id) {
82
+ const state = argsOrState;
83
+ resourceInputs["createdAt"] = state?.createdAt;
84
+ resourceInputs["dedicatedHostClusterCapacity"] = state?.dedicatedHostClusterCapacity;
85
+ resourceInputs["dedicatedHostClusterId"] = state?.dedicatedHostClusterId;
86
+ resourceInputs["dedicatedHostClusterName"] = state?.dedicatedHostClusterName;
87
+ resourceInputs["dedicatedHostIds"] = state?.dedicatedHostIds;
88
+ resourceInputs["description"] = state?.description;
89
+ resourceInputs["updatedAt"] = state?.updatedAt;
90
+ resourceInputs["zoneId"] = state?.zoneId;
91
+ }
92
+ else {
93
+ const args = argsOrState;
94
+ if (args?.dedicatedHostClusterName === undefined && !opts.urn) {
95
+ throw new Error("Missing required property 'dedicatedHostClusterName'");
96
+ }
97
+ if (args?.zoneId === undefined && !opts.urn) {
98
+ throw new Error("Missing required property 'zoneId'");
99
+ }
100
+ resourceInputs["dedicatedHostClusterName"] = args?.dedicatedHostClusterName;
101
+ resourceInputs["description"] = args?.description;
102
+ resourceInputs["zoneId"] = args?.zoneId;
103
+ resourceInputs["createdAt"] = undefined /*out*/;
104
+ resourceInputs["dedicatedHostClusterCapacity"] = undefined /*out*/;
105
+ resourceInputs["dedicatedHostClusterId"] = undefined /*out*/;
106
+ resourceInputs["dedicatedHostIds"] = undefined /*out*/;
107
+ resourceInputs["updatedAt"] = undefined /*out*/;
108
+ }
109
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
110
+ super(DedicatedHostCluster.__pulumiType, name, resourceInputs, opts);
111
+ }
112
+ }
113
+ exports.DedicatedHostCluster = DedicatedHostCluster;
114
+ //# sourceMappingURL=dedicatedHostCluster.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dedicatedHostCluster.js","sourceRoot":"","sources":["../../ecs/dedicatedHostCluster.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,wDAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAa,oBAAqB,SAAQ,MAAM,CAAC,cAAc;IAC3D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAiC,EAAE,IAAmC;QAC/H,OAAO,IAAI,oBAAoB,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC3E,CAAC;IAED,gBAAgB;IACT,MAAM,CAAU,YAAY,GAAG,0DAA0D,CAAC;IAEjG;;;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,oBAAoB,CAAC,YAAY,CAAC;IACrE,CAAC;IA2CD,YAAY,IAAY,EAAE,WAAkE,EAAE,IAAmC;QAC7H,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG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