@pulumi/pulumi 3.217.0-alpha.x048035c → 3.217.0-alpha.x1fe6310

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pulumi/pulumi",
3
- "version": "3.217.0-alpha.x048035c",
3
+ "version": "3.217.0-alpha.x1fe6310",
4
4
  "description": "Pulumi's Node.js SDK",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -11,7 +11,7 @@
11
11
  "dependencies": {
12
12
  "@grpc/grpc-js": "^1.10.1",
13
13
  "@logdna/tail-file": "^2.0.6",
14
- "@npmcli/arborist": "^7.3.1",
14
+ "@npmcli/arborist": "^9.0.0",
15
15
  "@opentelemetry/api": "^1.9",
16
16
  "@opentelemetry/exporter-zipkin": "^1.28",
17
17
  "@opentelemetry/instrumentation": "^0.55",
@@ -23,7 +23,7 @@
23
23
  "@types/semver": "^7.5.6",
24
24
  "@types/tmp": "^0.2.6",
25
25
  "execa": "^5.1.0",
26
- "fdir": "^6.1.1",
26
+ "fdir": "^6.5.0",
27
27
  "google-protobuf": "^3.21.4",
28
28
  "got": "^11.8.6",
29
29
  "ini": "^2.0.0",
@@ -527,7 +527,7 @@ getProgramDependencies: {
527
527
  responseDeserialize: deserialize_pulumirpc_GetProgramDependenciesResponse,
528
528
  },
529
529
  // `RunPlugin` is used to execute a program written in this host's language that implements a Pulumi
530
- // [plugin](plugins). It it is plugins what [](pulumirpc.LanguageRuntime.Run) is to programs. Since a plugin is not
530
+ // [plugin](plugins). It is to plugins what [](pulumirpc.LanguageRuntime.Run) is to programs. Since a plugin is not
531
531
  // expected to terminate until instructed/for a long time, this method returns a stream of
532
532
  // [](pulumirpc.RunPluginResponse) messages containing information about standard error and output, as well as the
533
533
  // exit code of the plugin when it does terminate.
@@ -6,6 +6,7 @@
6
6
 
7
7
  import * as grpc from "@grpc/grpc-js";
8
8
  import * as pulumi_provider_pb from "./provider_pb";
9
+ import * as pulumi_alias_pb from "./alias_pb";
9
10
  import * as pulumi_plugin_pb from "./plugin_pb";
10
11
  import * as google_protobuf_empty_pb from "google-protobuf/google/protobuf/empty_pb";
11
12
  import * as google_protobuf_struct_pb from "google-protobuf/google/protobuf/struct_pb";
@@ -18,6 +18,7 @@
18
18
  'use strict';
19
19
  var grpc = require('@grpc/grpc-js');
20
20
  var pulumi_provider_pb = require('./provider_pb.js');
21
+ var pulumi_alias_pb = require('./alias_pb.js');
21
22
  var pulumi_plugin_pb = require('./plugin_pb.js');
22
23
  var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js');
23
24
  var google_protobuf_struct_pb = require('google-protobuf/google/protobuf/struct_pb.js');
@@ -5,6 +5,7 @@
5
5
  /* eslint-disable */
6
6
 
7
7
  import * as jspb from "google-protobuf";
8
+ import * as pulumi_alias_pb from "./alias_pb";
8
9
  import * as pulumi_plugin_pb from "./plugin_pb";
9
10
  import * as google_protobuf_empty_pb from "google-protobuf/google/protobuf/empty_pb";
10
11
  import * as google_protobuf_struct_pb from "google-protobuf/google/protobuf/struct_pb";
@@ -1213,10 +1214,6 @@ export class ConstructRequest extends jspb.Message {
1213
1214
  clearProtect(): void;
1214
1215
  getProtect(): boolean | undefined;
1215
1216
  setProtect(value: boolean): ConstructRequest;
1216
- clearAliasesList(): void;
1217
- getAliasesList(): Array<string>;
1218
- setAliasesList(value: Array<string>): ConstructRequest;
1219
- addAliases(value: string, index?: number): string;
1220
1217
  clearAdditionalsecretoutputsList(): void;
1221
1218
  getAdditionalsecretoutputsList(): Array<string>;
1222
1219
  setAdditionalsecretoutputsList(value: Array<string>): ConstructRequest;
@@ -1259,6 +1256,10 @@ export class ConstructRequest extends jspb.Message {
1259
1256
  getReplaceWithList(): Array<string>;
1260
1257
  setReplaceWithList(value: Array<string>): ConstructRequest;
1261
1258
  addReplaceWith(value: string, index?: number): string;
1259
+ clearAliasesList(): void;
1260
+ getAliasesList(): Array<pulumi_alias_pb.Alias>;
1261
+ setAliasesList(value: Array<pulumi_alias_pb.Alias>): ConstructRequest;
1262
+ addAliases(value?: pulumi_alias_pb.Alias, index?: number): pulumi_alias_pb.Alias;
1262
1263
 
1263
1264
  serializeBinary(): Uint8Array;
1264
1265
  toObject(includeInstance?: boolean): ConstructRequest.AsObject;
@@ -1291,7 +1292,6 @@ export namespace ConstructRequest {
1291
1292
  configsecretkeysList: Array<string>,
1292
1293
  organization: string,
1293
1294
  protect?: boolean,
1294
- aliasesList: Array<string>,
1295
1295
  additionalsecretoutputsList: Array<string>,
1296
1296
  customtimeouts?: ConstructRequest.CustomTimeouts.AsObject,
1297
1297
  deletedwith: string,
@@ -1303,6 +1303,7 @@ export namespace ConstructRequest {
1303
1303
  resourceHooks?: ConstructRequest.ResourceHooksBinding.AsObject,
1304
1304
  stackTraceHandle: string,
1305
1305
  replaceWithList: Array<string>,
1306
+ aliasesList: Array<pulumi_alias_pb.Alias.AsObject>,
1306
1307
  }
1307
1308
 
1308
1309
 
@@ -1379,6 +1380,10 @@ export namespace ConstructRequest {
1379
1380
  getAfterDeleteList(): Array<string>;
1380
1381
  setAfterDeleteList(value: Array<string>): ResourceHooksBinding;
1381
1382
  addAfterDelete(value: string, index?: number): string;
1383
+ clearOnErrorList(): void;
1384
+ getOnErrorList(): Array<string>;
1385
+ setOnErrorList(value: Array<string>): ResourceHooksBinding;
1386
+ addOnError(value: string, index?: number): string;
1382
1387
 
1383
1388
  serializeBinary(): Uint8Array;
1384
1389
  toObject(includeInstance?: boolean): ResourceHooksBinding.AsObject;
@@ -1398,6 +1403,7 @@ export namespace ConstructRequest {
1398
1403
  afterUpdateList: Array<string>,
1399
1404
  beforeDeleteList: Array<string>,
1400
1405
  afterDeleteList: Array<string>,
1406
+ onErrorList: Array<string>,
1401
1407
  }
1402
1408
  }
1403
1409
 
@@ -15,6 +15,8 @@ var jspb = require('google-protobuf');
15
15
  var goog = jspb;
16
16
  var proto = { pulumirpc: { codegen: { }, testing: { } } }, global = proto;
17
17
 
18
+ var pulumi_alias_pb = require('./alias_pb.js');
19
+ goog.object.extend(proto, pulumi_alias_pb);
18
20
  var pulumi_plugin_pb = require('./plugin_pb.js');
19
21
  goog.object.extend(proto, pulumi_plugin_pb);
20
22
  var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js');
@@ -9690,7 +9692,7 @@ proto.pulumirpc.DeleteRequest.prototype.clearOldViewsList = function() {
9690
9692
  * @private {!Array<number>}
9691
9693
  * @const
9692
9694
  */
9693
- proto.pulumirpc.ConstructRequest.repeatedFields_ = [15,16,14,18,22,23,28];
9695
+ proto.pulumirpc.ConstructRequest.repeatedFields_ = [15,16,18,22,23,28,29];
9694
9696
 
9695
9697
 
9696
9698
 
@@ -9739,7 +9741,6 @@ dependenciesList: (f = jspb.Message.getRepeatedField(msg, 15)) == null ? undefin
9739
9741
  configsecretkeysList: (f = jspb.Message.getRepeatedField(msg, 16)) == null ? undefined : f,
9740
9742
  organization: jspb.Message.getFieldWithDefault(msg, 17, ""),
9741
9743
  protect: (f = jspb.Message.getBooleanField(msg, 12)) == null ? undefined : f,
9742
- aliasesList: (f = jspb.Message.getRepeatedField(msg, 14)) == null ? undefined : f,
9743
9744
  additionalsecretoutputsList: (f = jspb.Message.getRepeatedField(msg, 18)) == null ? undefined : f,
9744
9745
  customtimeouts: (f = msg.getCustomtimeouts()) && proto.pulumirpc.ConstructRequest.CustomTimeouts.toObject(includeInstance, f),
9745
9746
  deletedwith: jspb.Message.getFieldWithDefault(msg, 20, ""),
@@ -9750,7 +9751,9 @@ retainondelete: (f = jspb.Message.getBooleanField(msg, 24)) == null ? undefined
9750
9751
  acceptsOutputValues: jspb.Message.getBooleanFieldWithDefault(msg, 25, false),
9751
9752
  resourceHooks: (f = msg.getResourceHooks()) && proto.pulumirpc.ConstructRequest.ResourceHooksBinding.toObject(includeInstance, f),
9752
9753
  stackTraceHandle: jspb.Message.getFieldWithDefault(msg, 27, ""),
9753
- replaceWithList: (f = jspb.Message.getRepeatedField(msg, 28)) == null ? undefined : f
9754
+ replaceWithList: (f = jspb.Message.getRepeatedField(msg, 28)) == null ? undefined : f,
9755
+ aliasesList: jspb.Message.toObjectList(msg.getAliasesList(),
9756
+ pulumi_alias_pb.Alias.toObject, includeInstance)
9754
9757
  };
9755
9758
 
9756
9759
  if (includeInstance) {
@@ -9858,10 +9861,6 @@ proto.pulumirpc.ConstructRequest.deserializeBinaryFromReader = function(msg, rea
9858
9861
  var value = /** @type {boolean} */ (reader.readBool());
9859
9862
  msg.setProtect(value);
9860
9863
  break;
9861
- case 14:
9862
- var value = /** @type {string} */ (reader.readString());
9863
- msg.addAliases(value);
9864
- break;
9865
9864
  case 18:
9866
9865
  var value = /** @type {string} */ (reader.readString());
9867
9866
  msg.addAdditionalsecretoutputs(value);
@@ -9908,6 +9907,11 @@ proto.pulumirpc.ConstructRequest.deserializeBinaryFromReader = function(msg, rea
9908
9907
  var value = /** @type {string} */ (reader.readString());
9909
9908
  msg.addReplaceWith(value);
9910
9909
  break;
9910
+ case 29:
9911
+ var value = new pulumi_alias_pb.Alias;
9912
+ reader.readMessage(value,pulumi_alias_pb.Alias.deserializeBinaryFromReader);
9913
+ msg.addAliases(value);
9914
+ break;
9911
9915
  default:
9912
9916
  reader.skipField();
9913
9917
  break;
@@ -10041,13 +10045,6 @@ proto.pulumirpc.ConstructRequest.serializeBinaryToWriter = function(message, wri
10041
10045
  f
10042
10046
  );
10043
10047
  }
10044
- f = message.getAliasesList();
10045
- if (f.length > 0) {
10046
- writer.writeRepeatedString(
10047
- 14,
10048
- f
10049
- );
10050
- }
10051
10048
  f = message.getAdditionalsecretoutputsList();
10052
10049
  if (f.length > 0) {
10053
10050
  writer.writeRepeatedString(
@@ -10127,6 +10124,14 @@ proto.pulumirpc.ConstructRequest.serializeBinaryToWriter = function(message, wri
10127
10124
  f
10128
10125
  );
10129
10126
  }
10127
+ f = message.getAliasesList();
10128
+ if (f.length > 0) {
10129
+ writer.writeRepeatedMessage(
10130
+ 29,
10131
+ f,
10132
+ pulumi_alias_pb.Alias.serializeBinaryToWriter
10133
+ );
10134
+ }
10130
10135
  };
10131
10136
 
10132
10137
 
@@ -10482,7 +10487,7 @@ proto.pulumirpc.ConstructRequest.CustomTimeouts.prototype.setDelete = function(v
10482
10487
  * @private {!Array<number>}
10483
10488
  * @const
10484
10489
  */
10485
- proto.pulumirpc.ConstructRequest.ResourceHooksBinding.repeatedFields_ = [1,2,3,4,5,6];
10490
+ proto.pulumirpc.ConstructRequest.ResourceHooksBinding.repeatedFields_ = [1,2,3,4,5,6,7];
10486
10491
 
10487
10492
 
10488
10493
 
@@ -10520,7 +10525,8 @@ afterCreateList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined
10520
10525
  beforeUpdateList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
10521
10526
  afterUpdateList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f,
10522
10527
  beforeDeleteList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f,
10523
- afterDeleteList: (f = jspb.Message.getRepeatedField(msg, 6)) == null ? undefined : f
10528
+ afterDeleteList: (f = jspb.Message.getRepeatedField(msg, 6)) == null ? undefined : f,
10529
+ onErrorList: (f = jspb.Message.getRepeatedField(msg, 7)) == null ? undefined : f
10524
10530
  };
10525
10531
 
10526
10532
  if (includeInstance) {
@@ -10581,6 +10587,10 @@ proto.pulumirpc.ConstructRequest.ResourceHooksBinding.deserializeBinaryFromReade
10581
10587
  var value = /** @type {string} */ (reader.readString());
10582
10588
  msg.addAfterDelete(value);
10583
10589
  break;
10590
+ case 7:
10591
+ var value = /** @type {string} */ (reader.readString());
10592
+ msg.addOnError(value);
10593
+ break;
10584
10594
  default:
10585
10595
  reader.skipField();
10586
10596
  break;
@@ -10652,6 +10662,13 @@ proto.pulumirpc.ConstructRequest.ResourceHooksBinding.serializeBinaryToWriter =
10652
10662
  f
10653
10663
  );
10654
10664
  }
10665
+ f = message.getOnErrorList();
10666
+ if (f.length > 0) {
10667
+ writer.writeRepeatedString(
10668
+ 7,
10669
+ f
10670
+ );
10671
+ }
10655
10672
  };
10656
10673
 
10657
10674
 
@@ -10877,6 +10894,43 @@ proto.pulumirpc.ConstructRequest.ResourceHooksBinding.prototype.clearAfterDelete
10877
10894
  };
10878
10895
 
10879
10896
 
10897
+ /**
10898
+ * repeated string on_error = 7;
10899
+ * @return {!Array<string>}
10900
+ */
10901
+ proto.pulumirpc.ConstructRequest.ResourceHooksBinding.prototype.getOnErrorList = function() {
10902
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 7));
10903
+ };
10904
+
10905
+
10906
+ /**
10907
+ * @param {!Array<string>} value
10908
+ * @return {!proto.pulumirpc.ConstructRequest.ResourceHooksBinding} returns this
10909
+ */
10910
+ proto.pulumirpc.ConstructRequest.ResourceHooksBinding.prototype.setOnErrorList = function(value) {
10911
+ return jspb.Message.setField(this, 7, value || []);
10912
+ };
10913
+
10914
+
10915
+ /**
10916
+ * @param {string} value
10917
+ * @param {number=} opt_index
10918
+ * @return {!proto.pulumirpc.ConstructRequest.ResourceHooksBinding} returns this
10919
+ */
10920
+ proto.pulumirpc.ConstructRequest.ResourceHooksBinding.prototype.addOnError = function(value, opt_index) {
10921
+ return jspb.Message.addToRepeatedField(this, 7, value, opt_index);
10922
+ };
10923
+
10924
+
10925
+ /**
10926
+ * Clears the list making it empty but non-null.
10927
+ * @return {!proto.pulumirpc.ConstructRequest.ResourceHooksBinding} returns this
10928
+ */
10929
+ proto.pulumirpc.ConstructRequest.ResourceHooksBinding.prototype.clearOnErrorList = function() {
10930
+ return this.setOnErrorList([]);
10931
+ };
10932
+
10933
+
10880
10934
  /**
10881
10935
  * optional string project = 1;
10882
10936
  * @return {string}
@@ -11255,43 +11309,6 @@ proto.pulumirpc.ConstructRequest.prototype.hasProtect = function() {
11255
11309
  };
11256
11310
 
11257
11311
 
11258
- /**
11259
- * repeated string aliases = 14;
11260
- * @return {!Array<string>}
11261
- */
11262
- proto.pulumirpc.ConstructRequest.prototype.getAliasesList = function() {
11263
- return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 14));
11264
- };
11265
-
11266
-
11267
- /**
11268
- * @param {!Array<string>} value
11269
- * @return {!proto.pulumirpc.ConstructRequest} returns this
11270
- */
11271
- proto.pulumirpc.ConstructRequest.prototype.setAliasesList = function(value) {
11272
- return jspb.Message.setField(this, 14, value || []);
11273
- };
11274
-
11275
-
11276
- /**
11277
- * @param {string} value
11278
- * @param {number=} opt_index
11279
- * @return {!proto.pulumirpc.ConstructRequest} returns this
11280
- */
11281
- proto.pulumirpc.ConstructRequest.prototype.addAliases = function(value, opt_index) {
11282
- return jspb.Message.addToRepeatedField(this, 14, value, opt_index);
11283
- };
11284
-
11285
-
11286
- /**
11287
- * Clears the list making it empty but non-null.
11288
- * @return {!proto.pulumirpc.ConstructRequest} returns this
11289
- */
11290
- proto.pulumirpc.ConstructRequest.prototype.clearAliasesList = function() {
11291
- return this.setAliasesList([]);
11292
- };
11293
-
11294
-
11295
11312
  /**
11296
11313
  * repeated string additionalSecretOutputs = 18;
11297
11314
  * @return {!Array<string>}
@@ -11640,6 +11657,44 @@ proto.pulumirpc.ConstructRequest.prototype.clearReplaceWithList = function() {
11640
11657
  };
11641
11658
 
11642
11659
 
11660
+ /**
11661
+ * repeated Alias aliases = 29;
11662
+ * @return {!Array<!proto.pulumirpc.Alias>}
11663
+ */
11664
+ proto.pulumirpc.ConstructRequest.prototype.getAliasesList = function() {
11665
+ return /** @type{!Array<!proto.pulumirpc.Alias>} */ (
11666
+ jspb.Message.getRepeatedWrapperField(this, pulumi_alias_pb.Alias, 29));
11667
+ };
11668
+
11669
+
11670
+ /**
11671
+ * @param {!Array<!proto.pulumirpc.Alias>} value
11672
+ * @return {!proto.pulumirpc.ConstructRequest} returns this
11673
+ */
11674
+ proto.pulumirpc.ConstructRequest.prototype.setAliasesList = function(value) {
11675
+ return jspb.Message.setRepeatedWrapperField(this, 29, value);
11676
+ };
11677
+
11678
+
11679
+ /**
11680
+ * @param {!proto.pulumirpc.Alias=} opt_value
11681
+ * @param {number=} opt_index
11682
+ * @return {!proto.pulumirpc.Alias}
11683
+ */
11684
+ proto.pulumirpc.ConstructRequest.prototype.addAliases = function(opt_value, opt_index) {
11685
+ return jspb.Message.addToRepeatedWrapperField(this, 29, opt_value, proto.pulumirpc.Alias, opt_index);
11686
+ };
11687
+
11688
+
11689
+ /**
11690
+ * Clears the list making it empty but non-null.
11691
+ * @return {!proto.pulumirpc.ConstructRequest} returns this
11692
+ */
11693
+ proto.pulumirpc.ConstructRequest.prototype.clearAliasesList = function() {
11694
+ return this.setAliasesList([]);
11695
+ };
11696
+
11697
+
11643
11698
 
11644
11699
 
11645
11700
 
@@ -23,6 +23,7 @@ interface IResourceMonitorService extends grpc.ServiceDefinition<grpc.UntypedSer
23
23
  registerStackTransform: IResourceMonitorService_IRegisterStackTransform;
24
24
  registerStackInvokeTransform: IResourceMonitorService_IRegisterStackInvokeTransform;
25
25
  registerResourceHook: IResourceMonitorService_IRegisterResourceHook;
26
+ registerErrorHook: IResourceMonitorService_IRegisterErrorHook;
26
27
  registerPackage: IResourceMonitorService_IRegisterPackage;
27
28
  signalAndWaitForShutdown: IResourceMonitorService_ISignalAndWaitForShutdown;
28
29
  }
@@ -108,6 +109,15 @@ interface IResourceMonitorService_IRegisterResourceHook extends grpc.MethodDefin
108
109
  responseSerialize: grpc.serialize<google_protobuf_empty_pb.Empty>;
109
110
  responseDeserialize: grpc.deserialize<google_protobuf_empty_pb.Empty>;
110
111
  }
112
+ interface IResourceMonitorService_IRegisterErrorHook extends grpc.MethodDefinition<pulumi_resource_pb.RegisterErrorHookRequest, google_protobuf_empty_pb.Empty> {
113
+ path: "/pulumirpc.ResourceMonitor/RegisterErrorHook";
114
+ requestStream: false;
115
+ responseStream: false;
116
+ requestSerialize: grpc.serialize<pulumi_resource_pb.RegisterErrorHookRequest>;
117
+ requestDeserialize: grpc.deserialize<pulumi_resource_pb.RegisterErrorHookRequest>;
118
+ responseSerialize: grpc.serialize<google_protobuf_empty_pb.Empty>;
119
+ responseDeserialize: grpc.deserialize<google_protobuf_empty_pb.Empty>;
120
+ }
111
121
  interface IResourceMonitorService_IRegisterPackage extends grpc.MethodDefinition<pulumi_resource_pb.RegisterPackageRequest, pulumi_resource_pb.RegisterPackageResponse> {
112
122
  path: "/pulumirpc.ResourceMonitor/RegisterPackage";
113
123
  requestStream: false;
@@ -139,6 +149,7 @@ export interface IResourceMonitorServer extends grpc.UntypedServiceImplementatio
139
149
  registerStackTransform: grpc.handleUnaryCall<pulumi_callback_pb.Callback, google_protobuf_empty_pb.Empty>;
140
150
  registerStackInvokeTransform: grpc.handleUnaryCall<pulumi_callback_pb.Callback, google_protobuf_empty_pb.Empty>;
141
151
  registerResourceHook: grpc.handleUnaryCall<pulumi_resource_pb.RegisterResourceHookRequest, google_protobuf_empty_pb.Empty>;
152
+ registerErrorHook: grpc.handleUnaryCall<pulumi_resource_pb.RegisterErrorHookRequest, google_protobuf_empty_pb.Empty>;
142
153
  registerPackage: grpc.handleUnaryCall<pulumi_resource_pb.RegisterPackageRequest, pulumi_resource_pb.RegisterPackageResponse>;
143
154
  signalAndWaitForShutdown: grpc.handleUnaryCall<google_protobuf_empty_pb.Empty, google_protobuf_empty_pb.Empty>;
144
155
  }
@@ -171,6 +182,9 @@ export interface IResourceMonitorClient {
171
182
  registerResourceHook(request: pulumi_resource_pb.RegisterResourceHookRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall;
172
183
  registerResourceHook(request: pulumi_resource_pb.RegisterResourceHookRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall;
173
184
  registerResourceHook(request: pulumi_resource_pb.RegisterResourceHookRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall;
185
+ registerErrorHook(request: pulumi_resource_pb.RegisterErrorHookRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall;
186
+ registerErrorHook(request: pulumi_resource_pb.RegisterErrorHookRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall;
187
+ registerErrorHook(request: pulumi_resource_pb.RegisterErrorHookRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall;
174
188
  registerPackage(request: pulumi_resource_pb.RegisterPackageRequest, callback: (error: grpc.ServiceError | null, response: pulumi_resource_pb.RegisterPackageResponse) => void): grpc.ClientUnaryCall;
175
189
  registerPackage(request: pulumi_resource_pb.RegisterPackageRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: pulumi_resource_pb.RegisterPackageResponse) => void): grpc.ClientUnaryCall;
176
190
  registerPackage(request: pulumi_resource_pb.RegisterPackageRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: pulumi_resource_pb.RegisterPackageResponse) => void): grpc.ClientUnaryCall;
@@ -208,6 +222,9 @@ export class ResourceMonitorClient extends grpc.Client implements IResourceMonit
208
222
  public registerResourceHook(request: pulumi_resource_pb.RegisterResourceHookRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall;
209
223
  public registerResourceHook(request: pulumi_resource_pb.RegisterResourceHookRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall;
210
224
  public registerResourceHook(request: pulumi_resource_pb.RegisterResourceHookRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall;
225
+ public registerErrorHook(request: pulumi_resource_pb.RegisterErrorHookRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall;
226
+ public registerErrorHook(request: pulumi_resource_pb.RegisterErrorHookRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall;
227
+ public registerErrorHook(request: pulumi_resource_pb.RegisterErrorHookRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall;
211
228
  public registerPackage(request: pulumi_resource_pb.RegisterPackageRequest, callback: (error: grpc.ServiceError | null, response: pulumi_resource_pb.RegisterPackageResponse) => void): grpc.ClientUnaryCall;
212
229
  public registerPackage(request: pulumi_resource_pb.RegisterPackageRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: pulumi_resource_pb.RegisterPackageResponse) => void): grpc.ClientUnaryCall;
213
230
  public registerPackage(request: pulumi_resource_pb.RegisterPackageRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: pulumi_resource_pb.RegisterPackageResponse) => void): grpc.ClientUnaryCall;
@@ -91,6 +91,17 @@ function deserialize_pulumirpc_ReadResourceResponse(buffer_arg) {
91
91
  return pulumi_resource_pb.ReadResourceResponse.deserializeBinary(new Uint8Array(buffer_arg));
92
92
  }
93
93
 
94
+ function serialize_pulumirpc_RegisterErrorHookRequest(arg) {
95
+ if (!(arg instanceof pulumi_resource_pb.RegisterErrorHookRequest)) {
96
+ throw new Error('Expected argument of type pulumirpc.RegisterErrorHookRequest');
97
+ }
98
+ return Buffer.from(arg.serializeBinary());
99
+ }
100
+
101
+ function deserialize_pulumirpc_RegisterErrorHookRequest(buffer_arg) {
102
+ return pulumi_resource_pb.RegisterErrorHookRequest.deserializeBinary(new Uint8Array(buffer_arg));
103
+ }
104
+
94
105
  function serialize_pulumirpc_RegisterPackageRequest(arg) {
95
106
  if (!(arg instanceof pulumi_resource_pb.RegisterPackageRequest)) {
96
107
  throw new Error('Expected argument of type pulumirpc.RegisterPackageRequest');
@@ -307,6 +318,20 @@ registerResourceHook: {
307
318
  responseSerialize: serialize_google_protobuf_Empty,
308
319
  responseDeserialize: deserialize_google_protobuf_Empty,
309
320
  },
321
+ // Register an error hook that can be called by the engine when an operation fails and is retryable.
322
+ //
323
+ // Error hooks are a separate type of hook to other life cycle hooks as they have different inputs and outputs.
324
+ registerErrorHook: {
325
+ path: '/pulumirpc.ResourceMonitor/RegisterErrorHook',
326
+ requestStream: false,
327
+ responseStream: false,
328
+ requestType: pulumi_resource_pb.RegisterErrorHookRequest,
329
+ responseType: google_protobuf_empty_pb.Empty,
330
+ requestSerialize: serialize_pulumirpc_RegisterErrorHookRequest,
331
+ requestDeserialize: deserialize_pulumirpc_RegisterErrorHookRequest,
332
+ responseSerialize: serialize_google_protobuf_Empty,
333
+ responseDeserialize: deserialize_google_protobuf_Empty,
334
+ },
310
335
  // Registers a package and allocates a packageRef. The same package can be registered multiple times in Pulumi.
311
336
  // Multiple requests are idempotent and guaranteed to return the same result.
312
337
  registerPackage: {
@@ -416,6 +416,10 @@ export namespace RegisterResourceRequest {
416
416
  getAfterDeleteList(): Array<string>;
417
417
  setAfterDeleteList(value: Array<string>): ResourceHooksBinding;
418
418
  addAfterDelete(value: string, index?: number): string;
419
+ clearOnErrorList(): void;
420
+ getOnErrorList(): Array<string>;
421
+ setOnErrorList(value: Array<string>): ResourceHooksBinding;
422
+ addOnError(value: string, index?: number): string;
419
423
 
420
424
  serializeBinary(): Uint8Array;
421
425
  toObject(includeInstance?: boolean): ResourceHooksBinding.AsObject;
@@ -435,6 +439,7 @@ export namespace RegisterResourceRequest {
435
439
  afterUpdateList: Array<string>,
436
440
  beforeDeleteList: Array<string>,
437
441
  afterDeleteList: Array<string>,
442
+ onErrorList: Array<string>,
438
443
  }
439
444
  }
440
445
 
@@ -1031,6 +1036,90 @@ export namespace ResourceHookResponse {
1031
1036
  }
1032
1037
  }
1033
1038
 
1039
+ export class ErrorHookRequest extends jspb.Message {
1040
+ getUrn(): string;
1041
+ setUrn(value: string): ErrorHookRequest;
1042
+ getId(): string;
1043
+ setId(value: string): ErrorHookRequest;
1044
+ getName(): string;
1045
+ setName(value: string): ErrorHookRequest;
1046
+ getType(): string;
1047
+ setType(value: string): ErrorHookRequest;
1048
+
1049
+ hasNewInputs(): boolean;
1050
+ clearNewInputs(): void;
1051
+ getNewInputs(): google_protobuf_struct_pb.Struct | undefined;
1052
+ setNewInputs(value?: google_protobuf_struct_pb.Struct): ErrorHookRequest;
1053
+
1054
+ hasOldInputs(): boolean;
1055
+ clearOldInputs(): void;
1056
+ getOldInputs(): google_protobuf_struct_pb.Struct | undefined;
1057
+ setOldInputs(value?: google_protobuf_struct_pb.Struct): ErrorHookRequest;
1058
+
1059
+ hasNewOutputs(): boolean;
1060
+ clearNewOutputs(): void;
1061
+ getNewOutputs(): google_protobuf_struct_pb.Struct | undefined;
1062
+ setNewOutputs(value?: google_protobuf_struct_pb.Struct): ErrorHookRequest;
1063
+
1064
+ hasOldOutputs(): boolean;
1065
+ clearOldOutputs(): void;
1066
+ getOldOutputs(): google_protobuf_struct_pb.Struct | undefined;
1067
+ setOldOutputs(value?: google_protobuf_struct_pb.Struct): ErrorHookRequest;
1068
+ getFailedOperation(): string;
1069
+ setFailedOperation(value: string): ErrorHookRequest;
1070
+ clearErrorsList(): void;
1071
+ getErrorsList(): Array<string>;
1072
+ setErrorsList(value: Array<string>): ErrorHookRequest;
1073
+ addErrors(value: string, index?: number): string;
1074
+
1075
+ serializeBinary(): Uint8Array;
1076
+ toObject(includeInstance?: boolean): ErrorHookRequest.AsObject;
1077
+ static toObject(includeInstance: boolean, msg: ErrorHookRequest): ErrorHookRequest.AsObject;
1078
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
1079
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
1080
+ static serializeBinaryToWriter(message: ErrorHookRequest, writer: jspb.BinaryWriter): void;
1081
+ static deserializeBinary(bytes: Uint8Array): ErrorHookRequest;
1082
+ static deserializeBinaryFromReader(message: ErrorHookRequest, reader: jspb.BinaryReader): ErrorHookRequest;
1083
+ }
1084
+
1085
+ export namespace ErrorHookRequest {
1086
+ export type AsObject = {
1087
+ urn: string,
1088
+ id: string,
1089
+ name: string,
1090
+ type: string,
1091
+ newInputs?: google_protobuf_struct_pb.Struct.AsObject,
1092
+ oldInputs?: google_protobuf_struct_pb.Struct.AsObject,
1093
+ newOutputs?: google_protobuf_struct_pb.Struct.AsObject,
1094
+ oldOutputs?: google_protobuf_struct_pb.Struct.AsObject,
1095
+ failedOperation: string,
1096
+ errorsList: Array<string>,
1097
+ }
1098
+ }
1099
+
1100
+ export class ErrorHookResponse extends jspb.Message {
1101
+ getError(): string;
1102
+ setError(value: string): ErrorHookResponse;
1103
+ getRetry(): boolean;
1104
+ setRetry(value: boolean): ErrorHookResponse;
1105
+
1106
+ serializeBinary(): Uint8Array;
1107
+ toObject(includeInstance?: boolean): ErrorHookResponse.AsObject;
1108
+ static toObject(includeInstance: boolean, msg: ErrorHookResponse): ErrorHookResponse.AsObject;
1109
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
1110
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
1111
+ static serializeBinaryToWriter(message: ErrorHookResponse, writer: jspb.BinaryWriter): void;
1112
+ static deserializeBinary(bytes: Uint8Array): ErrorHookResponse;
1113
+ static deserializeBinaryFromReader(message: ErrorHookResponse, reader: jspb.BinaryReader): ErrorHookResponse;
1114
+ }
1115
+
1116
+ export namespace ErrorHookResponse {
1117
+ export type AsObject = {
1118
+ error: string,
1119
+ retry: boolean,
1120
+ }
1121
+ }
1122
+
1034
1123
  export class RegisterPackageRequest extends jspb.Message {
1035
1124
  getName(): string;
1036
1125
  setName(value: string): RegisterPackageRequest;
@@ -1145,6 +1234,32 @@ export namespace RegisterResourceHookRequest {
1145
1234
  }
1146
1235
  }
1147
1236
 
1237
+ export class RegisterErrorHookRequest extends jspb.Message {
1238
+ getName(): string;
1239
+ setName(value: string): RegisterErrorHookRequest;
1240
+
1241
+ hasCallback(): boolean;
1242
+ clearCallback(): void;
1243
+ getCallback(): pulumi_callback_pb.Callback | undefined;
1244
+ setCallback(value?: pulumi_callback_pb.Callback): RegisterErrorHookRequest;
1245
+
1246
+ serializeBinary(): Uint8Array;
1247
+ toObject(includeInstance?: boolean): RegisterErrorHookRequest.AsObject;
1248
+ static toObject(includeInstance: boolean, msg: RegisterErrorHookRequest): RegisterErrorHookRequest.AsObject;
1249
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
1250
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
1251
+ static serializeBinaryToWriter(message: RegisterErrorHookRequest, writer: jspb.BinaryWriter): void;
1252
+ static deserializeBinary(bytes: Uint8Array): RegisterErrorHookRequest;
1253
+ static deserializeBinaryFromReader(message: RegisterErrorHookRequest, reader: jspb.BinaryReader): RegisterErrorHookRequest;
1254
+ }
1255
+
1256
+ export namespace RegisterErrorHookRequest {
1257
+ export type AsObject = {
1258
+ name: string,
1259
+ callback?: pulumi_callback_pb.Callback.AsObject,
1260
+ }
1261
+ }
1262
+
1148
1263
  export enum Result {
1149
1264
  SUCCESS = 0,
1150
1265
  FAIL = 1,