@checkly/pulumi 2.5.0-alpha.1758735363 → 2.5.0-alpha.1759322016

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 (65) hide show
  1. package/alertChannel.js +26 -26
  2. package/alertChannel.js.map +1 -1
  3. package/check.d.ts +6 -6
  4. package/check.js +69 -69
  5. package/check.js.map +1 -1
  6. package/checkGroup.d.ts +6 -6
  7. package/checkGroup.js +45 -45
  8. package/checkGroup.js.map +1 -1
  9. package/clientCertificate.js +15 -15
  10. package/clientCertificate.js.map +1 -1
  11. package/config/index.js +1 -1
  12. package/config/index.js.map +1 -1
  13. package/config/vars.js +1 -1
  14. package/config/vars.js.map +1 -1
  15. package/dashboard.js +51 -51
  16. package/dashboard.js.map +1 -1
  17. package/environmentVariable.js +12 -12
  18. package/environmentVariable.js.map +1 -1
  19. package/getStaticIps.js +1 -1
  20. package/getStaticIps.js.map +1 -1
  21. package/heartbeatCheck.js +22 -22
  22. package/heartbeatCheck.js.map +1 -1
  23. package/heartbeatMonitor.js +22 -22
  24. package/heartbeatMonitor.js.map +1 -1
  25. package/index.d.ts +1 -3
  26. package/index.js +19 -5
  27. package/index.js.map +1 -1
  28. package/maintenanceWindow.js +18 -18
  29. package/maintenanceWindow.js.map +1 -1
  30. package/package.json +3 -3
  31. package/privateLocation.js +10 -10
  32. package/privateLocation.js.map +1 -1
  33. package/provider.d.ts +17 -3
  34. package/provider.js +12 -7
  35. package/provider.js.map +1 -1
  36. package/snippet.js +7 -7
  37. package/snippet.js.map +1 -1
  38. package/statusPage.js +20 -20
  39. package/statusPage.js.map +1 -1
  40. package/statusPageService.js +4 -4
  41. package/statusPageService.js.map +1 -1
  42. package/tcpCheck.d.ts +3 -3
  43. package/tcpCheck.js +47 -47
  44. package/tcpCheck.js.map +1 -1
  45. package/tcpMonitor.d.ts +3 -3
  46. package/tcpMonitor.js +47 -47
  47. package/tcpMonitor.js.map +1 -1
  48. package/triggerCheck.js +9 -9
  49. package/triggerCheck.js.map +1 -1
  50. package/triggerCheckGroup.js +9 -9
  51. package/triggerCheckGroup.js.map +1 -1
  52. package/types/index.js +1 -1
  53. package/types/index.js.map +1 -1
  54. package/types/input.d.ts +74 -24
  55. package/types/input.js +5 -3
  56. package/types/input.js.map +1 -1
  57. package/types/output.d.ts +74 -24
  58. package/types/output.js +5 -3
  59. package/types/output.js.map +1 -1
  60. package/urlMonitor.d.ts +3 -3
  61. package/urlMonitor.js +45 -45
  62. package/urlMonitor.js.map +1 -1
  63. package/utilities.d.ts +0 -4
  64. package/utilities.js +20 -30
  65. package/utilities.js.map +1 -1
package/types/output.d.ts CHANGED
@@ -234,26 +234,36 @@ export interface CheckGroupEnvironmentVariable {
234
234
  }
235
235
  export interface CheckGroupRetryStrategy {
236
236
  /**
237
- * The number of seconds to wait before the first retry attempt.
237
+ * The number of seconds to wait before the first retry attempt. (Default `60`).
238
238
  */
239
239
  baseBackoffSeconds?: number;
240
240
  /**
241
- * The total amount of time to continue retrying the check (maximum 600 seconds).
241
+ * The total amount of time to continue retrying the check/monitor (maximum 600 seconds). Available when `type` is `FIXED`, `LINEAR`, or `EXPONENTIAL`. (Default `600`).
242
242
  */
243
243
  maxDurationSeconds?: number;
244
244
  /**
245
- * The maximum number of times to retry the check. Value must be between 1 and 10.
245
+ * The maximum number of times to retry the check/monitor. Value must be between `1` and `10`. Available when `type` is `FIXED`, `LINEAR`, or `EXPONENTIAL`. (Default `2`).
246
246
  */
247
247
  maxRetries?: number;
248
248
  /**
249
- * Whether retries should be run in the same region as the initial check run.
249
+ * Apply the retry strategy only if the defined conditions match.
250
+ */
251
+ onlyOn?: outputs.CheckGroupRetryStrategyOnlyOn;
252
+ /**
253
+ * Whether retries should be run in the same region as the initial check/monitor run. (Default `true`).
250
254
  */
251
255
  sameRegion?: boolean;
252
256
  /**
253
- * Determines which type of retry strategy to use. Possible values are `FIXED`, `LINEAR`, or `EXPONENTIAL`.
257
+ * Determines which type of retry strategy to use. Possible values are `FIXED`, `LINEAR`, `EXPONENTIAL`, `SINGLE_RETRY`, and `NO_RETRIES`.
254
258
  */
255
259
  type: string;
256
260
  }
261
+ export interface CheckGroupRetryStrategyOnlyOn {
262
+ /**
263
+ * When `true`, retry only if the cause of the failure is a network error. (Default `false`).
264
+ */
265
+ networkError?: boolean;
266
+ }
257
267
  export interface CheckRequest {
258
268
  /**
259
269
  * A request can have multiple assertions.
@@ -307,26 +317,36 @@ export interface CheckRequestBasicAuth {
307
317
  }
308
318
  export interface CheckRetryStrategy {
309
319
  /**
310
- * The number of seconds to wait before the first retry attempt.
320
+ * The number of seconds to wait before the first retry attempt. (Default `60`).
311
321
  */
312
322
  baseBackoffSeconds?: number;
313
323
  /**
314
- * The total amount of time to continue retrying the check (maximum 600 seconds).
324
+ * The total amount of time to continue retrying the check/monitor (maximum 600 seconds). Available when `type` is `FIXED`, `LINEAR`, or `EXPONENTIAL`. (Default `600`).
315
325
  */
316
326
  maxDurationSeconds?: number;
317
327
  /**
318
- * The maximum number of times to retry the check. Value must be between 1 and 10.
328
+ * The maximum number of times to retry the check/monitor. Value must be between `1` and `10`. Available when `type` is `FIXED`, `LINEAR`, or `EXPONENTIAL`. (Default `2`).
319
329
  */
320
330
  maxRetries?: number;
321
331
  /**
322
- * Whether retries should be run in the same region as the initial check run.
332
+ * Apply the retry strategy only if the defined conditions match.
333
+ */
334
+ onlyOn?: outputs.CheckRetryStrategyOnlyOn;
335
+ /**
336
+ * Whether retries should be run in the same region as the initial check/monitor run. (Default `true`).
323
337
  */
324
338
  sameRegion?: boolean;
325
339
  /**
326
- * Determines which type of retry strategy to use. Possible values are `FIXED`, `LINEAR`, or `EXPONENTIAL`.
340
+ * Determines which type of retry strategy to use. Possible values are `FIXED`, `LINEAR`, `EXPONENTIAL`, `SINGLE_RETRY`, and `NO_RETRIES`.
327
341
  */
328
342
  type: string;
329
343
  }
344
+ export interface CheckRetryStrategyOnlyOn {
345
+ /**
346
+ * When `true`, retry only if the cause of the failure is a network error. (Default `false`).
347
+ */
348
+ networkError?: boolean;
349
+ }
330
350
  export interface CheckTriggerIncident {
331
351
  /**
332
352
  * A detailed description of the incident.
@@ -655,26 +675,36 @@ export interface TcpCheckRequestAssertion {
655
675
  }
656
676
  export interface TcpCheckRetryStrategy {
657
677
  /**
658
- * The number of seconds to wait before the first retry attempt.
678
+ * The number of seconds to wait before the first retry attempt. (Default `60`).
659
679
  */
660
680
  baseBackoffSeconds?: number;
661
681
  /**
662
- * The total amount of time to continue retrying the check (maximum 600 seconds).
682
+ * The total amount of time to continue retrying the check/monitor (maximum 600 seconds). Available when `type` is `FIXED`, `LINEAR`, or `EXPONENTIAL`. (Default `600`).
663
683
  */
664
684
  maxDurationSeconds?: number;
665
685
  /**
666
- * The maximum number of times to retry the check. Value must be between 1 and 10.
686
+ * The maximum number of times to retry the check/monitor. Value must be between `1` and `10`. Available when `type` is `FIXED`, `LINEAR`, or `EXPONENTIAL`. (Default `2`).
667
687
  */
668
688
  maxRetries?: number;
669
689
  /**
670
- * Whether retries should be run in the same region as the initial check run.
690
+ * Apply the retry strategy only if the defined conditions match.
691
+ */
692
+ onlyOn?: outputs.TcpCheckRetryStrategyOnlyOn;
693
+ /**
694
+ * Whether retries should be run in the same region as the initial check/monitor run. (Default `true`).
671
695
  */
672
696
  sameRegion?: boolean;
673
697
  /**
674
- * Determines which type of retry strategy to use. Possible values are `FIXED`, `LINEAR`, or `EXPONENTIAL`.
698
+ * Determines which type of retry strategy to use. Possible values are `FIXED`, `LINEAR`, `EXPONENTIAL`, `SINGLE_RETRY`, and `NO_RETRIES`.
675
699
  */
676
700
  type: string;
677
701
  }
702
+ export interface TcpCheckRetryStrategyOnlyOn {
703
+ /**
704
+ * When `true`, retry only if the cause of the failure is a network error. (Default `false`).
705
+ */
706
+ networkError?: boolean;
707
+ }
678
708
  export interface TcpCheckTriggerIncident {
679
709
  /**
680
710
  * A detailed description of the incident.
@@ -779,26 +809,36 @@ export interface TcpMonitorRequestAssertion {
779
809
  }
780
810
  export interface TcpMonitorRetryStrategy {
781
811
  /**
782
- * The number of seconds to wait before the first retry attempt.
812
+ * The number of seconds to wait before the first retry attempt. (Default `60`).
783
813
  */
784
814
  baseBackoffSeconds?: number;
785
815
  /**
786
- * The total amount of time to continue retrying the check (maximum 600 seconds).
816
+ * The total amount of time to continue retrying the check/monitor (maximum 600 seconds). Available when `type` is `FIXED`, `LINEAR`, or `EXPONENTIAL`. (Default `600`).
787
817
  */
788
818
  maxDurationSeconds?: number;
789
819
  /**
790
- * The maximum number of times to retry the check. Value must be between 1 and 10.
820
+ * The maximum number of times to retry the check/monitor. Value must be between `1` and `10`. Available when `type` is `FIXED`, `LINEAR`, or `EXPONENTIAL`. (Default `2`).
791
821
  */
792
822
  maxRetries?: number;
793
823
  /**
794
- * Whether retries should be run in the same region as the initial check run.
824
+ * Apply the retry strategy only if the defined conditions match.
825
+ */
826
+ onlyOn?: outputs.TcpMonitorRetryStrategyOnlyOn;
827
+ /**
828
+ * Whether retries should be run in the same region as the initial check/monitor run. (Default `true`).
795
829
  */
796
830
  sameRegion?: boolean;
797
831
  /**
798
- * Determines which type of retry strategy to use. Possible values are `FIXED`, `LINEAR`, or `EXPONENTIAL`.
832
+ * Determines which type of retry strategy to use. Possible values are `FIXED`, `LINEAR`, `EXPONENTIAL`, `SINGLE_RETRY`, and `NO_RETRIES`.
799
833
  */
800
834
  type: string;
801
835
  }
836
+ export interface TcpMonitorRetryStrategyOnlyOn {
837
+ /**
838
+ * When `true`, retry only if the cause of the failure is a network error. (Default `false`).
839
+ */
840
+ networkError?: boolean;
841
+ }
802
842
  export interface TcpMonitorTriggerIncident {
803
843
  /**
804
844
  * A detailed description of the incident.
@@ -928,22 +968,32 @@ export interface UrlMonitorRetryStrategy {
928
968
  */
929
969
  baseBackoffSeconds?: number;
930
970
  /**
931
- * The total amount of time to continue retrying the monitor (maximum 600 seconds). (Default `600`).
971
+ * The total amount of time to continue retrying the check/monitor (maximum 600 seconds). Available when `type` is `FIXED`, `LINEAR`, or `EXPONENTIAL`. (Default `600`).
932
972
  */
933
973
  maxDurationSeconds?: number;
934
974
  /**
935
- * The maximum number of times to retry the monitor. Value must be between `1` and `10`. (Default `2`).
975
+ * The maximum number of times to retry the check/monitor. Value must be between `1` and `10`. Available when `type` is `FIXED`, `LINEAR`, or `EXPONENTIAL`. (Default `2`).
936
976
  */
937
977
  maxRetries?: number;
938
978
  /**
939
- * Whether retries should be run in the same region as the initial monitor run. (Default `true`).
979
+ * Apply the retry strategy only if the defined conditions match.
980
+ */
981
+ onlyOn?: outputs.UrlMonitorRetryStrategyOnlyOn;
982
+ /**
983
+ * Whether retries should be run in the same region as the initial check/monitor run. (Default `true`).
940
984
  */
941
985
  sameRegion?: boolean;
942
986
  /**
943
- * Determines which type of retry strategy to use. Possible values are `FIXED`, `LINEAR`, and `EXPONENTIAL`.
987
+ * Determines which type of retry strategy to use. Possible values are `FIXED`, `LINEAR`, `EXPONENTIAL`, `SINGLE_RETRY`, and `NO_RETRIES`.
944
988
  */
945
989
  type: string;
946
990
  }
991
+ export interface UrlMonitorRetryStrategyOnlyOn {
992
+ /**
993
+ * When `true`, retry only if the cause of the failure is a network error. (Default `false`).
994
+ */
995
+ networkError?: boolean;
996
+ }
947
997
  export interface UrlMonitorTriggerIncident {
948
998
  /**
949
999
  * A detailed description of the incident.
package/types/output.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
2
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
3
3
  // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.checkGroupApiCheckDefaultsProvideDefaults = void 0;
@@ -7,8 +7,10 @@ exports.checkGroupApiCheckDefaultsProvideDefaults = void 0;
7
7
  * checkGroupApiCheckDefaultsProvideDefaults sets the appropriate defaults for CheckGroupApiCheckDefaults
8
8
  */
9
9
  function checkGroupApiCheckDefaultsProvideDefaults(val) {
10
- var _a;
11
- return Object.assign(Object.assign({}, val), { url: (_a = (val.url)) !== null && _a !== void 0 ? _a : "" });
10
+ return {
11
+ ...val,
12
+ url: (val.url) ?? "",
13
+ };
12
14
  }
13
15
  exports.checkGroupApiCheckDefaultsProvideDefaults = checkGroupApiCheckDefaultsProvideDefaults;
14
16
  //# sourceMappingURL=output.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"output.js","sourceRoot":"","sources":["../../types/output.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAqOjF;;GAEG;AACH,SAAgB,yCAAyC,CAAC,GAA+B;;IACrF,uCACO,GAAG,KACN,GAAG,EAAE,MAAA,CAAC,GAAG,CAAC,GAAG,CAAC,mCAAI,EAAE,IACtB;AACN,CAAC;AALD,8FAKC"}
1
+ {"version":3,"file":"output.js","sourceRoot":"","sources":["../../types/output.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAqOjF;;GAEG;AACH,SAAgB,yCAAyC,CAAC,GAA+B;IACrF,OAAO;QACH,GAAG,GAAG;QACN,GAAG,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,EAAE;KACvB,CAAC;AACN,CAAC;AALD,8FAKC"}
package/urlMonitor.d.ts CHANGED
@@ -100,7 +100,7 @@ export declare class UrlMonitor extends pulumi.CustomResource {
100
100
  */
101
101
  readonly request: pulumi.Output<outputs.UrlMonitorRequest>;
102
102
  /**
103
- * A strategy for retrying failed monitor runs.
103
+ * A strategy for retrying failed check/monitor runs.
104
104
  */
105
105
  readonly retryStrategy: pulumi.Output<outputs.UrlMonitorRetryStrategy>;
106
106
  /**
@@ -193,7 +193,7 @@ export interface UrlMonitorState {
193
193
  */
194
194
  request?: pulumi.Input<inputs.UrlMonitorRequest>;
195
195
  /**
196
- * A strategy for retrying failed monitor runs.
196
+ * A strategy for retrying failed check/monitor runs.
197
197
  */
198
198
  retryStrategy?: pulumi.Input<inputs.UrlMonitorRetryStrategy>;
199
199
  /**
@@ -278,7 +278,7 @@ export interface UrlMonitorArgs {
278
278
  */
279
279
  request: pulumi.Input<inputs.UrlMonitorRequest>;
280
280
  /**
281
- * A strategy for retrying failed monitor runs.
281
+ * A strategy for retrying failed check/monitor runs.
282
282
  */
283
283
  retryStrategy?: pulumi.Input<inputs.UrlMonitorRetryStrategy>;
284
284
  /**
package/urlMonitor.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
2
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
3
3
  // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.UrlMonitor = void 0;
@@ -42,7 +42,7 @@ class UrlMonitor extends pulumi.CustomResource {
42
42
  * @param opts Optional settings to control the behavior of the CustomResource.
43
43
  */
44
44
  static get(name, id, state, opts) {
45
- return new UrlMonitor(name, state, Object.assign(Object.assign({}, opts), { id: id }));
45
+ return new UrlMonitor(name, state, { ...opts, id: id });
46
46
  }
47
47
  /**
48
48
  * Returns true if the given object is an instance of UrlMonitor. This is designed to work even
@@ -59,58 +59,58 @@ class UrlMonitor extends pulumi.CustomResource {
59
59
  opts = opts || {};
60
60
  if (opts.id) {
61
61
  const state = argsOrState;
62
- resourceInputs["activated"] = state ? state.activated : undefined;
63
- resourceInputs["alertChannelSubscriptions"] = state ? state.alertChannelSubscriptions : undefined;
64
- resourceInputs["alertSettings"] = state ? state.alertSettings : undefined;
65
- resourceInputs["degradedResponseTime"] = state ? state.degradedResponseTime : undefined;
66
- resourceInputs["frequency"] = state ? state.frequency : undefined;
67
- resourceInputs["frequencyOffset"] = state ? state.frequencyOffset : undefined;
68
- resourceInputs["groupId"] = state ? state.groupId : undefined;
69
- resourceInputs["groupOrder"] = state ? state.groupOrder : undefined;
70
- resourceInputs["locations"] = state ? state.locations : undefined;
71
- resourceInputs["maxResponseTime"] = state ? state.maxResponseTime : undefined;
72
- resourceInputs["muted"] = state ? state.muted : undefined;
73
- resourceInputs["name"] = state ? state.name : undefined;
74
- resourceInputs["privateLocations"] = state ? state.privateLocations : undefined;
75
- resourceInputs["request"] = state ? state.request : undefined;
76
- resourceInputs["retryStrategy"] = state ? state.retryStrategy : undefined;
77
- resourceInputs["runParallel"] = state ? state.runParallel : undefined;
78
- resourceInputs["shouldFail"] = state ? state.shouldFail : undefined;
79
- resourceInputs["tags"] = state ? state.tags : undefined;
80
- resourceInputs["triggerIncident"] = state ? state.triggerIncident : undefined;
81
- resourceInputs["useGlobalAlertSettings"] = state ? state.useGlobalAlertSettings : undefined;
62
+ resourceInputs["activated"] = state?.activated;
63
+ resourceInputs["alertChannelSubscriptions"] = state?.alertChannelSubscriptions;
64
+ resourceInputs["alertSettings"] = state?.alertSettings;
65
+ resourceInputs["degradedResponseTime"] = state?.degradedResponseTime;
66
+ resourceInputs["frequency"] = state?.frequency;
67
+ resourceInputs["frequencyOffset"] = state?.frequencyOffset;
68
+ resourceInputs["groupId"] = state?.groupId;
69
+ resourceInputs["groupOrder"] = state?.groupOrder;
70
+ resourceInputs["locations"] = state?.locations;
71
+ resourceInputs["maxResponseTime"] = state?.maxResponseTime;
72
+ resourceInputs["muted"] = state?.muted;
73
+ resourceInputs["name"] = state?.name;
74
+ resourceInputs["privateLocations"] = state?.privateLocations;
75
+ resourceInputs["request"] = state?.request;
76
+ resourceInputs["retryStrategy"] = state?.retryStrategy;
77
+ resourceInputs["runParallel"] = state?.runParallel;
78
+ resourceInputs["shouldFail"] = state?.shouldFail;
79
+ resourceInputs["tags"] = state?.tags;
80
+ resourceInputs["triggerIncident"] = state?.triggerIncident;
81
+ resourceInputs["useGlobalAlertSettings"] = state?.useGlobalAlertSettings;
82
82
  }
83
83
  else {
84
84
  const args = argsOrState;
85
- if ((!args || args.activated === undefined) && !opts.urn) {
85
+ if (args?.activated === undefined && !opts.urn) {
86
86
  throw new Error("Missing required property 'activated'");
87
87
  }
88
- if ((!args || args.frequency === undefined) && !opts.urn) {
88
+ if (args?.frequency === undefined && !opts.urn) {
89
89
  throw new Error("Missing required property 'frequency'");
90
90
  }
91
- if ((!args || args.request === undefined) && !opts.urn) {
91
+ if (args?.request === undefined && !opts.urn) {
92
92
  throw new Error("Missing required property 'request'");
93
93
  }
94
- resourceInputs["activated"] = args ? args.activated : undefined;
95
- resourceInputs["alertChannelSubscriptions"] = args ? args.alertChannelSubscriptions : undefined;
96
- resourceInputs["alertSettings"] = args ? args.alertSettings : undefined;
97
- resourceInputs["degradedResponseTime"] = args ? args.degradedResponseTime : undefined;
98
- resourceInputs["frequency"] = args ? args.frequency : undefined;
99
- resourceInputs["frequencyOffset"] = args ? args.frequencyOffset : undefined;
100
- resourceInputs["groupId"] = args ? args.groupId : undefined;
101
- resourceInputs["groupOrder"] = args ? args.groupOrder : undefined;
102
- resourceInputs["locations"] = args ? args.locations : undefined;
103
- resourceInputs["maxResponseTime"] = args ? args.maxResponseTime : undefined;
104
- resourceInputs["muted"] = args ? args.muted : undefined;
105
- resourceInputs["name"] = args ? args.name : undefined;
106
- resourceInputs["privateLocations"] = args ? args.privateLocations : undefined;
107
- resourceInputs["request"] = args ? args.request : undefined;
108
- resourceInputs["retryStrategy"] = args ? args.retryStrategy : undefined;
109
- resourceInputs["runParallel"] = args ? args.runParallel : undefined;
110
- resourceInputs["shouldFail"] = args ? args.shouldFail : undefined;
111
- resourceInputs["tags"] = args ? args.tags : undefined;
112
- resourceInputs["triggerIncident"] = args ? args.triggerIncident : undefined;
113
- resourceInputs["useGlobalAlertSettings"] = args ? args.useGlobalAlertSettings : undefined;
94
+ resourceInputs["activated"] = args?.activated;
95
+ resourceInputs["alertChannelSubscriptions"] = args?.alertChannelSubscriptions;
96
+ resourceInputs["alertSettings"] = args?.alertSettings;
97
+ resourceInputs["degradedResponseTime"] = args?.degradedResponseTime;
98
+ resourceInputs["frequency"] = args?.frequency;
99
+ resourceInputs["frequencyOffset"] = args?.frequencyOffset;
100
+ resourceInputs["groupId"] = args?.groupId;
101
+ resourceInputs["groupOrder"] = args?.groupOrder;
102
+ resourceInputs["locations"] = args?.locations;
103
+ resourceInputs["maxResponseTime"] = args?.maxResponseTime;
104
+ resourceInputs["muted"] = args?.muted;
105
+ resourceInputs["name"] = args?.name;
106
+ resourceInputs["privateLocations"] = args?.privateLocations;
107
+ resourceInputs["request"] = args?.request;
108
+ resourceInputs["retryStrategy"] = args?.retryStrategy;
109
+ resourceInputs["runParallel"] = args?.runParallel;
110
+ resourceInputs["shouldFail"] = args?.shouldFail;
111
+ resourceInputs["tags"] = args?.tags;
112
+ resourceInputs["triggerIncident"] = args?.triggerIncident;
113
+ resourceInputs["useGlobalAlertSettings"] = args?.useGlobalAlertSettings;
114
114
  }
115
115
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
116
116
  super(UrlMonitor.__pulumiType, name, resourceInputs, opts);
package/urlMonitor.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"urlMonitor.js","sourceRoot":"","sources":["../urlMonitor.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAa,UAAW,SAAQ,MAAM,CAAC,cAAc;IACjD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAuB,EAAE,IAAmC;QACrH,OAAO,IAAI,UAAU,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACjE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,UAAU,CAAC,YAAY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c,CAAC,OAAO,CAAC,GAAG,IAAI,EAAE,KAAK,CAAC;YACtC,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,kBAAkB,CAAC,GAAG,IAAI,EAAE,gBAAgB,CAAC;YAC5D,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,OAAO,CAAC;YAC1C,cAAc,CAAC,eAAe,CAAC,GAAG,IAAI,EAAE,aAAa,CAAC;YACtD,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,EAAE,WAAW,CAAC;YAClD,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;YAChD,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,iBAAiB,CAAC,GAAG,IAAI,EAAE,eAAe,CAAC;YAC1D,cAAc,CAAC,wBAAwB,CAAC,GAAG,IAAI,EAAE,sBAAsB,CAAC;SAC3E;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;;AAhLL,gCAiLC;AAnKG,gBAAgB;AACO,uBAAY,GAAG,qCAAqC,CAAC"}
package/utilities.d.ts CHANGED
@@ -1,8 +1,4 @@
1
- import * as pulumi from "@pulumi/pulumi";
2
1
  export declare function getEnv(...vars: string[]): string | undefined;
3
2
  export declare function getEnvBoolean(...vars: string[]): boolean | undefined;
4
3
  export declare function getEnvNumber(...vars: string[]): number | undefined;
5
4
  export declare function getVersion(): string;
6
- export declare function callAsync<T>(tok: string, props: pulumi.Inputs, res?: pulumi.Resource, opts?: {
7
- property?: string;
8
- }): Promise<T>;
package/utilities.js CHANGED
@@ -1,15 +1,6 @@
1
1
  "use strict";
2
- // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
2
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
3
3
  // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
5
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
6
- return new (P || (P = Promise))(function (resolve, reject) {
7
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
8
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
9
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
10
- step((generator = generator.apply(thisArg, _arguments || [])).next());
11
- });
12
- };
13
4
  Object.defineProperty(exports, "__esModule", { value: true });
14
5
  exports.callAsync = exports.lazyLoad = exports.resourceOptsDefaults = exports.getVersion = exports.getEnvNumber = exports.getEnvBoolean = exports.getEnv = void 0;
15
6
  const runtime = require("@pulumi/pulumi/runtime");
@@ -76,26 +67,25 @@ function lazyLoad(exports, props, loadModule) {
76
67
  }
77
68
  }
78
69
  exports.lazyLoad = lazyLoad;
79
- function callAsync(tok, props, res, opts) {
80
- return __awaiter(this, void 0, void 0, function* () {
81
- const o = runtime.call(tok, props, res);
82
- const value = yield o.promise(true /*withUnknowns*/);
83
- const isKnown = yield o.isKnown;
84
- const isSecret = yield o.isSecret;
85
- const problem = !isKnown ? "an unknown value"
86
- : isSecret ? "a secret value"
87
- : undefined;
88
- // Ingoring o.resources silently. They are typically non-empty, r.f() calls include r as a dependency.
89
- if (problem) {
90
- throw new Error(`Plain resource method "${tok}" incorrectly returned ${problem}. ` +
91
- "This is an error in the provider, please report this to the provider developer.");
92
- }
93
- // Extract a single property if requested.
94
- if (opts && opts.property) {
95
- return value[opts.property];
96
- }
97
- return value;
98
- });
70
+ /** @internal */
71
+ async function callAsync(tok, props, res, opts) {
72
+ const o = runtime.call(tok, props, res);
73
+ const value = await o.promise(true /*withUnknowns*/);
74
+ const isKnown = await o.isKnown;
75
+ const isSecret = await o.isSecret;
76
+ const problem = !isKnown ? "an unknown value"
77
+ : isSecret ? "a secret value"
78
+ : undefined;
79
+ // Ingoring o.resources silently. They are typically non-empty, r.f() calls include r as a dependency.
80
+ if (problem) {
81
+ throw new Error(`Plain resource method "${tok}" incorrectly returned ${problem}. ` +
82
+ "This is an error in the provider, please report this to the provider developer.");
83
+ }
84
+ // Extract a single property if requested.
85
+ if (opts && opts.property) {
86
+ return value[opts.property];
87
+ }
88
+ return value;
99
89
  }
100
90
  exports.callAsync = callAsync;
101
91
  //# sourceMappingURL=utilities.js.map
package/utilities.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"utilities.js","sourceRoot":"","sources":["../utilities.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;;;;;;;;;;AAGjF,kDAAkD;AAGlD,SAAgB,MAAM,CAAC,GAAG,IAAc;IACpC,KAAK,MAAM,CAAC,IAAI,IAAI,EAAE;QAClB,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;QAC7B,IAAI,KAAK,EAAE;YACP,OAAO,KAAK,CAAC;SAChB;KACJ;IACD,OAAO,SAAS,CAAC;AACrB,CAAC;AARD,wBAQC;AAED,SAAgB,aAAa,CAAC,GAAG,IAAc;IAC3C,MAAM,CAAC,GAAG,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC;IAC1B,IAAI,CAAC,KAAK,SAAS,EAAE;QACjB,uGAAuG;QACvG,yDAAyD;QACzD,IAAI,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,KAAK,SAAS,EAAE;YAC1E,OAAO,IAAI,CAAC;SACf;QACD,IAAI,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,OAAO,EAAE,OAAO,EAAE,OAA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