@volcengine/pulumi 0.0.17 → 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 (106) hide show
  1. package/cr/registry.d.ts +1 -1
  2. package/cr/registry.js +1 -1
  3. package/ecs/command.d.ts +157 -0
  4. package/ecs/command.js +93 -0
  5. package/ecs/command.js.map +1 -0
  6. package/ecs/commands.d.ts +132 -0
  7. package/ecs/commands.js +52 -0
  8. package/ecs/commands.js.map +1 -0
  9. package/ecs/index.d.ts +18 -0
  10. package/ecs/index.js +23 -1
  11. package/ecs/index.js.map +1 -1
  12. package/ecs/instance.d.ts +1 -1
  13. package/ecs/invocation.d.ts +223 -0
  14. package/ecs/invocation.js +118 -0
  15. package/ecs/invocation.js.map +1 -0
  16. package/ecs/invocationResults.d.ts +116 -0
  17. package/ecs/invocationResults.js +51 -0
  18. package/ecs/invocationResults.js.map +1 -0
  19. package/ecs/invocations.d.ts +161 -0
  20. package/ecs/invocations.js +56 -0
  21. package/ecs/invocations.js.map +1 -0
  22. package/ecs/regions.d.ts +75 -0
  23. package/ecs/regions.js +47 -0
  24. package/ecs/regions.js.map +1 -0
  25. package/escloud/instance.d.ts +26 -13
  26. package/escloud/instance.js +26 -13
  27. package/escloud/instance.js.map +1 -1
  28. package/escloud/instances.d.ts +100 -6
  29. package/escloud/instances.js +100 -6
  30. package/escloud/instances.js.map +1 -1
  31. package/package.json +2 -2
  32. package/rds_mysql/account.d.ts +48 -4
  33. package/rds_mysql/account.js +48 -4
  34. package/rds_mysql/account.js.map +1 -1
  35. package/rds_mysql/accounts.d.ts +106 -6
  36. package/rds_mysql/accounts.js +106 -6
  37. package/rds_mysql/accounts.js.map +1 -1
  38. package/rds_mysql/allowlist.d.ts +7 -3
  39. package/rds_mysql/allowlist.js +7 -3
  40. package/rds_mysql/allowlist.js.map +1 -1
  41. package/rds_mysql/allowlistAssociate.d.ts +47 -3
  42. package/rds_mysql/allowlistAssociate.js +47 -3
  43. package/rds_mysql/allowlistAssociate.js.map +1 -1
  44. package/rds_mysql/allowlists.d.ts +102 -4
  45. package/rds_mysql/allowlists.js +102 -4
  46. package/rds_mysql/allowlists.js.map +1 -1
  47. package/rds_mysql/database.d.ts +38 -4
  48. package/rds_mysql/database.js +38 -4
  49. package/rds_mysql/database.js.map +1 -1
  50. package/rds_mysql/databases.d.ts +84 -6
  51. package/rds_mysql/databases.js +84 -6
  52. package/rds_mysql/databases.js.map +1 -1
  53. package/rds_mysql/instance.d.ts +18 -15
  54. package/rds_mysql/instance.js +17 -14
  55. package/rds_mysql/instance.js.map +1 -1
  56. package/rds_mysql/instanceReadonlyNode.d.ts +38 -3
  57. package/rds_mysql/instanceReadonlyNode.js +38 -3
  58. package/rds_mysql/instanceReadonlyNode.js.map +1 -1
  59. package/rds_mysql/instances.d.ts +74 -4
  60. package/rds_mysql/instances.js +74 -4
  61. package/rds_mysql/instances.js.map +1 -1
  62. package/redis/account.d.ts +32 -5
  63. package/redis/account.js +32 -5
  64. package/redis/account.js.map +1 -1
  65. package/redis/accounts.d.ts +74 -4
  66. package/redis/accounts.js +74 -4
  67. package/redis/accounts.js.map +1 -1
  68. package/redis/allowList.d.ts +2 -2
  69. package/redis/allowList.js +2 -2
  70. package/redis/allowListAssociate.d.ts +34 -6
  71. package/redis/allowListAssociate.js +34 -6
  72. package/redis/allowListAssociate.js.map +1 -1
  73. package/redis/allowLists.d.ts +78 -2
  74. package/redis/allowLists.js +78 -2
  75. package/redis/allowLists.js.map +1 -1
  76. package/redis/backup.d.ts +29 -1
  77. package/redis/backup.js +29 -1
  78. package/redis/backup.js.map +1 -1
  79. package/redis/backupRestore.d.ts +33 -3
  80. package/redis/backupRestore.js +33 -3
  81. package/redis/backupRestore.js.map +1 -1
  82. package/redis/backups.d.ts +68 -6
  83. package/redis/backups.js +68 -6
  84. package/redis/backups.js.map +1 -1
  85. package/redis/continuousBackup.d.ts +29 -1
  86. package/redis/continuousBackup.js +29 -1
  87. package/redis/continuousBackup.js.map +1 -1
  88. package/redis/endpoint.d.ts +37 -3
  89. package/redis/endpoint.js +37 -3
  90. package/redis/endpoint.js.map +1 -1
  91. package/redis/instance.d.ts +41 -32
  92. package/redis/instance.js +41 -32
  93. package/redis/instance.js.map +1 -1
  94. package/redis/instances.d.ts +60 -4
  95. package/redis/instances.js +60 -4
  96. package/redis/instances.js.map +1 -1
  97. package/tls/index_.d.ts +33 -8
  98. package/tls/index_.js +23 -8
  99. package/tls/index_.js.map +1 -1
  100. package/tls/indexes.d.ts +2 -2
  101. package/tls/indexes.js +2 -2
  102. package/types/input.d.ts +40 -0
  103. package/types/output.d.ts +308 -0
  104. package/vpc/securityGroup.d.ts +2 -2
  105. package/vpc/securityGroup.js +1 -1
  106. package/vpc/vpc.d.ts +1 -1
@@ -0,0 +1,223 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Provides a resource to manage ecs invocation
4
+ * ## Example Usage
5
+ *
6
+ * ```typescript
7
+ * import * as pulumi from "@pulumi/pulumi";
8
+ * import * as volcengine from "@volcengine/pulumi";
9
+ *
10
+ * const foo = new volcengine.ecs.Invocation("foo", {
11
+ * commandId: "cmd-ychkepkhtim0tr3b****",
12
+ * frequency: "5m",
13
+ * instanceIds: ["i-ychmz92487l8j00o****"],
14
+ * invocationDescription: "tf",
15
+ * invocationName: "tf-test",
16
+ * launchTime: "2023-06-20T09:48:00Z",
17
+ * recurrenceEndTime: "2023-06-20T09:59:00Z",
18
+ * repeatMode: "Rate",
19
+ * timeout: 90,
20
+ * username: "root",
21
+ * workingDir: "/home",
22
+ * });
23
+ * ```
24
+ *
25
+ * ## Import
26
+ *
27
+ * EcsInvocation can be imported using the id, e.g.
28
+ *
29
+ * ```sh
30
+ * $ pulumi import volcengine:ecs/invocation:Invocation default ivk-ychnxnm45dl8j0mm****
31
+ * ```
32
+ */
33
+ export declare class Invocation extends pulumi.CustomResource {
34
+ /**
35
+ * Get an existing Invocation resource's state with the given name, ID, and optional extra
36
+ * properties used to qualify the lookup.
37
+ *
38
+ * @param name The _unique_ name of the resulting resource.
39
+ * @param id The _unique_ provider ID of the resource to lookup.
40
+ * @param state Any extra arguments used during the lookup.
41
+ * @param opts Optional settings to control the behavior of the CustomResource.
42
+ */
43
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: InvocationState, opts?: pulumi.CustomResourceOptions): Invocation;
44
+ /**
45
+ * Returns true if the given object is an instance of Invocation. This is designed to work even
46
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
47
+ */
48
+ static isInstance(obj: any): obj is Invocation;
49
+ /**
50
+ * The command id of the ecs invocation.
51
+ */
52
+ readonly commandId: pulumi.Output<string>;
53
+ /**
54
+ * The end time of the ecs invocation.
55
+ */
56
+ readonly endTime: pulumi.Output<string>;
57
+ /**
58
+ * The frequency of the ecs invocation. This field is valid and required when the value of the repeatMode field is `Rate`.
59
+ */
60
+ readonly frequency: pulumi.Output<string | undefined>;
61
+ /**
62
+ * The list of ECS instance IDs.
63
+ */
64
+ readonly instanceIds: pulumi.Output<string[]>;
65
+ /**
66
+ * The description of the ecs invocation.
67
+ */
68
+ readonly invocationDescription: pulumi.Output<string | undefined>;
69
+ /**
70
+ * The name of the ecs invocation.
71
+ */
72
+ readonly invocationName: pulumi.Output<string>;
73
+ /**
74
+ * The status of the ecs invocation.
75
+ */
76
+ readonly invocationStatus: pulumi.Output<string>;
77
+ /**
78
+ * The launch time of the ecs invocation. RFC3339 format. This field is valid and required when the value of the repeatMode field is `Rate` or `Fixed`.
79
+ */
80
+ readonly launchTime: pulumi.Output<string | undefined>;
81
+ /**
82
+ * The recurrence end time of the ecs invocation. RFC3339 format. This field is valid and required when the value of the repeatMode field is `Rate`.
83
+ */
84
+ readonly recurrenceEndTime: pulumi.Output<string | undefined>;
85
+ /**
86
+ * The repeat mode of the ecs invocation. Valid values: `Once`, `Rate`, `Fixed`.
87
+ */
88
+ readonly repeatMode: pulumi.Output<string | undefined>;
89
+ /**
90
+ * The start time of the ecs invocation.
91
+ */
92
+ readonly startTime: pulumi.Output<string>;
93
+ /**
94
+ * The timeout of the ecs command. Valid value range: 10-600. When this field is not specified, use the value of the field with the same name in ecs command as the default value.
95
+ */
96
+ readonly timeout: pulumi.Output<number>;
97
+ /**
98
+ * The username of the ecs command. When this field is not specified, use the value of the field with the same name in ecs command as the default value.
99
+ */
100
+ readonly username: pulumi.Output<string>;
101
+ /**
102
+ * The working directory of the ecs invocation. When this field is not specified, use the value of the field with the same name in ecs command as the default value.
103
+ */
104
+ readonly workingDir: pulumi.Output<string>;
105
+ /**
106
+ * Create a Invocation resource with the given unique name, arguments, and options.
107
+ *
108
+ * @param name The _unique_ name of the resource.
109
+ * @param args The arguments to use to populate this resource's properties.
110
+ * @param opts A bag of options that control this resource's behavior.
111
+ */
112
+ constructor(name: string, args: InvocationArgs, opts?: pulumi.CustomResourceOptions);
113
+ }
114
+ /**
115
+ * Input properties used for looking up and filtering Invocation resources.
116
+ */
117
+ export interface InvocationState {
118
+ /**
119
+ * The command id of the ecs invocation.
120
+ */
121
+ commandId?: pulumi.Input<string>;
122
+ /**
123
+ * The end time of the ecs invocation.
124
+ */
125
+ endTime?: pulumi.Input<string>;
126
+ /**
127
+ * The frequency of the ecs invocation. This field is valid and required when the value of the repeatMode field is `Rate`.
128
+ */
129
+ frequency?: pulumi.Input<string>;
130
+ /**
131
+ * The list of ECS instance IDs.
132
+ */
133
+ instanceIds?: pulumi.Input<pulumi.Input<string>[]>;
134
+ /**
135
+ * The description of the ecs invocation.
136
+ */
137
+ invocationDescription?: pulumi.Input<string>;
138
+ /**
139
+ * The name of the ecs invocation.
140
+ */
141
+ invocationName?: pulumi.Input<string>;
142
+ /**
143
+ * The status of the ecs invocation.
144
+ */
145
+ invocationStatus?: pulumi.Input<string>;
146
+ /**
147
+ * The launch time of the ecs invocation. RFC3339 format. This field is valid and required when the value of the repeatMode field is `Rate` or `Fixed`.
148
+ */
149
+ launchTime?: pulumi.Input<string>;
150
+ /**
151
+ * The recurrence end time of the ecs invocation. RFC3339 format. This field is valid and required when the value of the repeatMode field is `Rate`.
152
+ */
153
+ recurrenceEndTime?: pulumi.Input<string>;
154
+ /**
155
+ * The repeat mode of the ecs invocation. Valid values: `Once`, `Rate`, `Fixed`.
156
+ */
157
+ repeatMode?: pulumi.Input<string>;
158
+ /**
159
+ * The start time of the ecs invocation.
160
+ */
161
+ startTime?: pulumi.Input<string>;
162
+ /**
163
+ * The timeout of the ecs command. Valid value range: 10-600. When this field is not specified, use the value of the field with the same name in ecs command as the default value.
164
+ */
165
+ timeout?: pulumi.Input<number>;
166
+ /**
167
+ * The username of the ecs command. When this field is not specified, use the value of the field with the same name in ecs command as the default value.
168
+ */
169
+ username?: pulumi.Input<string>;
170
+ /**
171
+ * The working directory of the ecs invocation. When this field is not specified, use the value of the field with the same name in ecs command as the default value.
172
+ */
173
+ workingDir?: pulumi.Input<string>;
174
+ }
175
+ /**
176
+ * The set of arguments for constructing a Invocation resource.
177
+ */
178
+ export interface InvocationArgs {
179
+ /**
180
+ * The command id of the ecs invocation.
181
+ */
182
+ commandId: pulumi.Input<string>;
183
+ /**
184
+ * The frequency of the ecs invocation. This field is valid and required when the value of the repeatMode field is `Rate`.
185
+ */
186
+ frequency?: pulumi.Input<string>;
187
+ /**
188
+ * The list of ECS instance IDs.
189
+ */
190
+ instanceIds: pulumi.Input<pulumi.Input<string>[]>;
191
+ /**
192
+ * The description of the ecs invocation.
193
+ */
194
+ invocationDescription?: pulumi.Input<string>;
195
+ /**
196
+ * The name of the ecs invocation.
197
+ */
198
+ invocationName: pulumi.Input<string>;
199
+ /**
200
+ * The launch time of the ecs invocation. RFC3339 format. This field is valid and required when the value of the repeatMode field is `Rate` or `Fixed`.
201
+ */
202
+ launchTime?: pulumi.Input<string>;
203
+ /**
204
+ * The recurrence end time of the ecs invocation. RFC3339 format. This field is valid and required when the value of the repeatMode field is `Rate`.
205
+ */
206
+ recurrenceEndTime?: pulumi.Input<string>;
207
+ /**
208
+ * The repeat mode of the ecs invocation. Valid values: `Once`, `Rate`, `Fixed`.
209
+ */
210
+ repeatMode?: pulumi.Input<string>;
211
+ /**
212
+ * The timeout of the ecs command. Valid value range: 10-600. When this field is not specified, use the value of the field with the same name in ecs command as the default value.
213
+ */
214
+ timeout?: pulumi.Input<number>;
215
+ /**
216
+ * The username of the ecs command. When this field is not specified, use the value of the field with the same name in ecs command as the default value.
217
+ */
218
+ username: pulumi.Input<string>;
219
+ /**
220
+ * The working directory of the ecs invocation. When this field is not specified, use the value of the field with the same name in ecs command as the default value.
221
+ */
222
+ workingDir?: pulumi.Input<string>;
223
+ }
@@ -0,0 +1,118 @@
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.Invocation = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * Provides a resource to manage ecs invocation
10
+ * ## Example Usage
11
+ *
12
+ * ```typescript
13
+ * import * as pulumi from "@pulumi/pulumi";
14
+ * import * as volcengine from "@volcengine/pulumi";
15
+ *
16
+ * const foo = new volcengine.ecs.Invocation("foo", {
17
+ * commandId: "cmd-ychkepkhtim0tr3b****",
18
+ * frequency: "5m",
19
+ * instanceIds: ["i-ychmz92487l8j00o****"],
20
+ * invocationDescription: "tf",
21
+ * invocationName: "tf-test",
22
+ * launchTime: "2023-06-20T09:48:00Z",
23
+ * recurrenceEndTime: "2023-06-20T09:59:00Z",
24
+ * repeatMode: "Rate",
25
+ * timeout: 90,
26
+ * username: "root",
27
+ * workingDir: "/home",
28
+ * });
29
+ * ```
30
+ *
31
+ * ## Import
32
+ *
33
+ * EcsInvocation can be imported using the id, e.g.
34
+ *
35
+ * ```sh
36
+ * $ pulumi import volcengine:ecs/invocation:Invocation default ivk-ychnxnm45dl8j0mm****
37
+ * ```
38
+ */
39
+ class Invocation extends pulumi.CustomResource {
40
+ /**
41
+ * Get an existing Invocation resource's state with the given name, ID, and optional extra
42
+ * properties used to qualify the lookup.
43
+ *
44
+ * @param name The _unique_ name of the resulting resource.
45
+ * @param id The _unique_ provider ID of the resource to lookup.
46
+ * @param state Any extra arguments used during the lookup.
47
+ * @param opts Optional settings to control the behavior of the CustomResource.
48
+ */
49
+ static get(name, id, state, opts) {
50
+ return new Invocation(name, state, Object.assign(Object.assign({}, opts), { id: id }));
51
+ }
52
+ /**
53
+ * Returns true if the given object is an instance of Invocation. This is designed to work even
54
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
55
+ */
56
+ static isInstance(obj) {
57
+ if (obj === undefined || obj === null) {
58
+ return false;
59
+ }
60
+ return obj['__pulumiType'] === Invocation.__pulumiType;
61
+ }
62
+ constructor(name, argsOrState, opts) {
63
+ let resourceInputs = {};
64
+ opts = opts || {};
65
+ if (opts.id) {
66
+ const state = argsOrState;
67
+ resourceInputs["commandId"] = state ? state.commandId : undefined;
68
+ resourceInputs["endTime"] = state ? state.endTime : undefined;
69
+ resourceInputs["frequency"] = state ? state.frequency : undefined;
70
+ resourceInputs["instanceIds"] = state ? state.instanceIds : undefined;
71
+ resourceInputs["invocationDescription"] = state ? state.invocationDescription : undefined;
72
+ resourceInputs["invocationName"] = state ? state.invocationName : undefined;
73
+ resourceInputs["invocationStatus"] = state ? state.invocationStatus : undefined;
74
+ resourceInputs["launchTime"] = state ? state.launchTime : undefined;
75
+ resourceInputs["recurrenceEndTime"] = state ? state.recurrenceEndTime : undefined;
76
+ resourceInputs["repeatMode"] = state ? state.repeatMode : undefined;
77
+ resourceInputs["startTime"] = state ? state.startTime : undefined;
78
+ resourceInputs["timeout"] = state ? state.timeout : undefined;
79
+ resourceInputs["username"] = state ? state.username : undefined;
80
+ resourceInputs["workingDir"] = state ? state.workingDir : undefined;
81
+ }
82
+ else {
83
+ const args = argsOrState;
84
+ if ((!args || args.commandId === undefined) && !opts.urn) {
85
+ throw new Error("Missing required property 'commandId'");
86
+ }
87
+ if ((!args || args.instanceIds === undefined) && !opts.urn) {
88
+ throw new Error("Missing required property 'instanceIds'");
89
+ }
90
+ if ((!args || args.invocationName === undefined) && !opts.urn) {
91
+ throw new Error("Missing required property 'invocationName'");
92
+ }
93
+ if ((!args || args.username === undefined) && !opts.urn) {
94
+ throw new Error("Missing required property 'username'");
95
+ }
96
+ resourceInputs["commandId"] = args ? args.commandId : undefined;
97
+ resourceInputs["frequency"] = args ? args.frequency : undefined;
98
+ resourceInputs["instanceIds"] = args ? args.instanceIds : undefined;
99
+ resourceInputs["invocationDescription"] = args ? args.invocationDescription : undefined;
100
+ resourceInputs["invocationName"] = args ? args.invocationName : undefined;
101
+ resourceInputs["launchTime"] = args ? args.launchTime : undefined;
102
+ resourceInputs["recurrenceEndTime"] = args ? args.recurrenceEndTime : undefined;
103
+ resourceInputs["repeatMode"] = args ? args.repeatMode : undefined;
104
+ resourceInputs["timeout"] = args ? args.timeout : undefined;
105
+ resourceInputs["username"] = args ? args.username : undefined;
106
+ resourceInputs["workingDir"] = args ? args.workingDir : undefined;
107
+ resourceInputs["endTime"] = undefined /*out*/;
108
+ resourceInputs["invocationStatus"] = undefined /*out*/;
109
+ resourceInputs["startTime"] = undefined /*out*/;
110
+ }
111
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
112
+ super(Invocation.__pulumiType, name, resourceInputs, opts);
113
+ }
114
+ }
115
+ exports.Invocation = Invocation;
116
+ /** @internal */
117
+ Invocation.__pulumiType = 'volcengine:ecs/invocation:Invocation';
118
+ //# sourceMappingURL=invocation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"invocation.js","sourceRoot":"","sources":["../../ecs/invocation.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,MAAa,UAAW,SAAQ,MAAM,CAAC,cAAc;IACjD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AC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC9C,cAAc,CAAC,kBAAkB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACvD,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACnD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,UAAU,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC/D,CAAC;;AA/IL,gCAgJC;AAlIG,gBAAgB;AACO,uBAAY,GAAG,sCAAsC,CAAC"}
@@ -0,0 +1,116 @@
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 invocation results
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.InvocationResults({
12
+ * invocationId: "ivk-ych9y4vujvl8j01c****",
13
+ * invocationResultStatuses: ["Success"],
14
+ * });
15
+ * ```
16
+ */
17
+ export declare function invocationResults(args: InvocationResultsArgs, opts?: pulumi.InvokeOptions): Promise<InvocationResultsResult>;
18
+ /**
19
+ * A collection of arguments for invoking InvocationResults.
20
+ */
21
+ export interface InvocationResultsArgs {
22
+ /**
23
+ * The id of ecs command.
24
+ */
25
+ commandId?: string;
26
+ /**
27
+ * The id of ecs instance.
28
+ */
29
+ instanceId?: string;
30
+ /**
31
+ * The id of ecs invocation.
32
+ */
33
+ invocationId: string;
34
+ /**
35
+ * The list of status of ecs invocation in a single instance. Valid values: `Pending`, `Running`, `Success`, `Failed`, `Timeout`.
36
+ */
37
+ invocationResultStatuses?: string[];
38
+ /**
39
+ * File name where to save data source results.
40
+ */
41
+ outputFile?: string;
42
+ }
43
+ /**
44
+ * A collection of values returned by InvocationResults.
45
+ */
46
+ export interface InvocationResultsResult {
47
+ /**
48
+ * The id of the ecs command.
49
+ */
50
+ readonly commandId?: string;
51
+ /**
52
+ * The provider-assigned unique ID for this managed resource.
53
+ */
54
+ readonly id: string;
55
+ /**
56
+ * The id of the ecs instance.
57
+ */
58
+ readonly instanceId?: string;
59
+ /**
60
+ * The id of the ecs invocation.
61
+ */
62
+ readonly invocationId: string;
63
+ /**
64
+ * The status of ecs invocation in a single instance.
65
+ */
66
+ readonly invocationResultStatuses?: string[];
67
+ /**
68
+ * The collection of query.
69
+ */
70
+ readonly invocationResults: outputs.ecs.InvocationResultsInvocationResult[];
71
+ readonly outputFile?: string;
72
+ /**
73
+ * The total count of query.
74
+ */
75
+ readonly totalCount: number;
76
+ }
77
+ /**
78
+ * Use this data source to query detailed information of ecs invocation results
79
+ * ## Example Usage
80
+ *
81
+ * ```typescript
82
+ * import * as pulumi from "@pulumi/pulumi";
83
+ * import * as volcengine from "@pulumi/volcengine";
84
+ *
85
+ * const default = volcengine.ecs.InvocationResults({
86
+ * invocationId: "ivk-ych9y4vujvl8j01c****",
87
+ * invocationResultStatuses: ["Success"],
88
+ * });
89
+ * ```
90
+ */
91
+ export declare function invocationResultsOutput(args: InvocationResultsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<InvocationResultsResult>;
92
+ /**
93
+ * A collection of arguments for invoking InvocationResults.
94
+ */
95
+ export interface InvocationResultsOutputArgs {
96
+ /**
97
+ * The id of ecs command.
98
+ */
99
+ commandId?: pulumi.Input<string>;
100
+ /**
101
+ * The id of ecs instance.
102
+ */
103
+ instanceId?: pulumi.Input<string>;
104
+ /**
105
+ * The id of ecs invocation.
106
+ */
107
+ invocationId: pulumi.Input<string>;
108
+ /**
109
+ * The list of status of ecs invocation in a single instance. Valid values: `Pending`, `Running`, `Success`, `Failed`, `Timeout`.
110
+ */
111
+ invocationResultStatuses?: pulumi.Input<pulumi.Input<string>[]>;
112
+ /**
113
+ * File name where to save data source results.
114
+ */
115
+ outputFile?: pulumi.Input<string>;
116
+ }
@@ -0,0 +1,51 @@
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.invocationResultsOutput = exports.invocationResults = 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 invocation results
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.InvocationResults({
17
+ * invocationId: "ivk-ych9y4vujvl8j01c****",
18
+ * invocationResultStatuses: ["Success"],
19
+ * });
20
+ * ```
21
+ */
22
+ function invocationResults(args, opts) {
23
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
24
+ return pulumi.runtime.invoke("volcengine:ecs/invocationResults:InvocationResults", {
25
+ "commandId": args.commandId,
26
+ "instanceId": args.instanceId,
27
+ "invocationId": args.invocationId,
28
+ "invocationResultStatuses": args.invocationResultStatuses,
29
+ "outputFile": args.outputFile,
30
+ }, opts);
31
+ }
32
+ exports.invocationResults = invocationResults;
33
+ /**
34
+ * Use this data source to query detailed information of ecs invocation results
35
+ * ## Example Usage
36
+ *
37
+ * ```typescript
38
+ * import * as pulumi from "@pulumi/pulumi";
39
+ * import * as volcengine from "@pulumi/volcengine";
40
+ *
41
+ * const default = volcengine.ecs.InvocationResults({
42
+ * invocationId: "ivk-ych9y4vujvl8j01c****",
43
+ * invocationResultStatuses: ["Success"],
44
+ * });
45
+ * ```
46
+ */
47
+ function invocationResultsOutput(args, opts) {
48
+ return pulumi.output(args).apply((a) => invocationResults(a, opts));
49
+ }
50
+ exports.invocationResultsOutput = invocationResultsOutput;
51
+ //# sourceMappingURL=invocationResults.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"invocationResults.js","sourceRoot":"","sources":["../../ecs/invocationResults.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;GAaG;AACH,SAAgB,iBAAiB,CAAC,IAA2B,EAAE,IAA2B;IAEtF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,oDAAoD,EAAE;QAC/E,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,cAAc,EAAE,IAAI,CAAC,YAAY;QACjC,0BAA0B,EAAE,IAAI,CAAC,wBAAwB;QACzD,YAAY,EAAE,IAAI,CAAC,UAAU;KAChC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAVD,8CAUC;AA8DD;;;;;;;;;;;;;GAaG;AACH,SAAgB,uBAAuB,CAAC,IAAiC,EAAE,IAA2B;IAClG,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,iBAAiB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC5E,CAAC;AAFD,0DAEC"}
@@ -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
+ }