@pulumi/pulumi 3.124.1-alpha.xf6bdf03 → 3.125.0-alpha.x6215d96
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/asset/archive.d.ts +15 -10
- package/asset/archive.js +15 -9
- package/asset/archive.js.map +1 -1
- package/asset/asset.d.ts +14 -11
- package/asset/asset.js +15 -18
- package/asset/asset.js.map +1 -1
- package/automation/stack.d.ts +10 -2
- package/automation/stack.js +10 -2
- package/automation/stack.js.map +1 -1
- package/dynamic/index.d.ts +67 -35
- package/dynamic/index.js +15 -8
- package/dynamic/index.js.map +1 -1
- package/errors.d.ts +16 -12
- package/errors.js +18 -12
- package/errors.js.map +1 -1
- package/invoke.d.ts +50 -2
- package/iterable/index.d.ts +7 -5
- package/iterable/index.js +7 -5
- package/iterable/index.js.map +1 -1
- package/log/index.d.ts +8 -5
- package/log/index.js +8 -5
- package/log/index.js.map +1 -1
- package/metadata.d.ts +3 -3
- package/metadata.js +3 -3
- package/output.d.ts +119 -91
- package/output.js +73 -46
- package/output.js.map +1 -1
- package/package.json +1 -1
- package/provider/internals.js +3 -1
- package/provider/internals.js.map +1 -1
- package/provider/provider.d.ts +75 -39
- package/provider/server.js +13 -7
- package/provider/server.js.map +1 -1
- package/queryable/index.d.ts +5 -3
- package/resource.d.ts +233 -164
- package/resource.js +160 -97
- package/resource.js.map +1 -1
- package/runtime/asyncIterableUtil.js +26 -17
- package/runtime/asyncIterableUtil.js.map +1 -1
- package/runtime/callbacks.d.ts +5 -0
- package/runtime/callbacks.js +92 -2
- package/runtime/callbacks.js.map +1 -1
- package/runtime/closure/codePaths.d.ts +32 -27
- package/runtime/closure/codePaths.js +23 -15
- package/runtime/closure/codePaths.js.map +1 -1
- package/runtime/closure/createClosure.js +38 -30
- package/runtime/closure/createClosure.js.map +1 -1
- package/runtime/closure/parseFunction.js +26 -15
- package/runtime/closure/parseFunction.js.map +1 -1
- package/runtime/closure/rewriteSuper.js +3 -1
- package/runtime/closure/rewriteSuper.js.map +1 -1
- package/runtime/closure/serializeClosure.d.ts +52 -32
- package/runtime/closure/serializeClosure.js +34 -22
- package/runtime/closure/serializeClosure.js.map +1 -1
- package/runtime/closure/utils.js +6 -2
- package/runtime/closure/utils.js.map +1 -1
- package/runtime/closure/v8.js +18 -9
- package/runtime/closure/v8.js.map +1 -1
- package/runtime/closure/v8Hooks.js +8 -4
- package/runtime/closure/v8Hooks.js.map +1 -1
- package/runtime/config.d.ts +4 -4
- package/runtime/config.js +22 -18
- package/runtime/config.js.map +1 -1
- package/runtime/debuggable.js +17 -6
- package/runtime/debuggable.js.map +1 -1
- package/runtime/invoke.d.ts +23 -14
- package/runtime/invoke.js +27 -18
- package/runtime/invoke.js.map +1 -1
- package/runtime/mocks.d.ts +37 -23
- package/runtime/mocks.js +11 -6
- package/runtime/mocks.js.map +1 -1
- package/runtime/resource.d.ts +21 -15
- package/runtime/resource.js +48 -29
- package/runtime/resource.js.map +1 -1
- package/runtime/rpc.d.ts +71 -43
- package/runtime/rpc.js +85 -47
- package/runtime/rpc.js.map +1 -1
- package/runtime/settings.d.ts +70 -21
- package/runtime/settings.js +85 -42
- package/runtime/settings.js.map +1 -1
- package/runtime/stack.d.ts +27 -14
- package/runtime/stack.js +36 -14
- package/runtime/stack.js.map +1 -1
- package/runtime/state.js +22 -8
- package/runtime/state.js.map +1 -1
- package/stackReference.d.ts +49 -32
- package/stackReference.js +40 -25
- package/stackReference.js.map +1 -1
- package/tests/automation/localWorkspace.spec.js +20 -0
- package/tests/automation/localWorkspace.spec.js.map +1 -1
- package/tsutils.js +6 -2
- package/tsutils.js.map +1 -1
- package/utils.js +15 -6
- package/utils.js.map +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
package/dynamic/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../dynamic/index.ts"],"names":[],"mappings":";AAAA,2CAA2C;AAC3C,EAAE;AAC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,EAAE,CAAC,QAAQ,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC,CAAC;IAE/E,sJAAsJ;IACtJ,OAAO,IAAI,eAAM,CACb,EAAE,EACF,SAAS,CAAC,IAAI,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC,EAC/B,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,EACvC,SAAS,CAAC,IAAI,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,eAAe,CAAC,EAC1C,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CACxC,CAAC;AACN,CAAC;AAED;;;GAGG;AACH,MAAsB,QAAS,SAAQ,QAAQ,CAAC,cAAc;IAC1D;;;;;;;;;;;;;;;;OAgBG;IACH,YACI,QAA0B,EAC1B,IAAY,EACZ,KAAa,EACb,IAAqC,EACrC,MAAe,EACf,OAAe,UAAU;QAEzB,MAAM,WAAW,GAAW,YAAY,CAAC;QACzC,IAAI,KAAK,CAAC,WAAW,CAAC,EAAE;YACpB,MAAM,IAAI,KAAK,CAAC,uDAAuD,CAAC,CAAC;SAC5E;QACD,KAAK,CAAC,WAAW,CAAC,GAAG,iBAAiB,CAAC,QAAQ,CAAC,CAAC;QAEjD,KAAK,CAAC,wBAAwB,MAAM,CAAC,CAAC,CAAC,IAAI,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,IAAI,IAAI,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,CAAC,CAAC;IAC3F,CAAC;CACJ;AAlCD,4BAkCC"}
|
package/errors.d.ts
CHANGED
|
@@ -1,29 +1,33 @@
|
|
|
1
1
|
import { Resource } from "./resource";
|
|
2
2
|
/**
|
|
3
|
-
* RunError can be used for terminating a program abruptly, but
|
|
4
|
-
* than the usual verbose unhandled error logic
|
|
5
|
-
*
|
|
6
|
-
*
|
|
3
|
+
* {@link RunError} can be used for terminating a program abruptly, but
|
|
4
|
+
* resulting in a clean exit rather than the usual verbose unhandled error logic
|
|
5
|
+
* which emits the source program text and complete stack trace. This type
|
|
6
|
+
* should be rarely used. Ideally {@link ResourceError} should always be used so
|
|
7
|
+
* that as many errors as possible can be associated with a resource.
|
|
7
8
|
*/
|
|
8
9
|
export declare class RunError extends Error {
|
|
9
10
|
/**
|
|
10
|
-
* Returns true if the given object is
|
|
11
|
-
* multiple copies of the Pulumi SDK have been loaded into
|
|
11
|
+
* Returns true if the given object is a {@link RunError}. This is designed
|
|
12
|
+
* to work even when multiple copies of the Pulumi SDK have been loaded into
|
|
13
|
+
* the same process.
|
|
12
14
|
*/
|
|
13
15
|
static isInstance(obj: any): obj is RunError;
|
|
14
16
|
}
|
|
15
17
|
/**
|
|
16
|
-
* ResourceError can be used for terminating a program abruptly,
|
|
17
|
-
* problem with a Resource.
|
|
18
|
-
*
|
|
19
|
-
*
|
|
18
|
+
* {@link ResourceError} can be used for terminating a program abruptly,
|
|
19
|
+
* specifically associating the problem with a {@link Resource}. Depending on
|
|
20
|
+
* the nature of the problem, clients can choose whether or not the call stack
|
|
21
|
+
* should be hidden as well. This should be very rare, and would only indicate
|
|
22
|
+
* that presenting the stack to the user would not be useful/be detrimental.
|
|
20
23
|
*/
|
|
21
24
|
export declare class ResourceError extends Error {
|
|
22
25
|
resource: Resource | undefined;
|
|
23
26
|
hideStack?: boolean | undefined;
|
|
24
27
|
/**
|
|
25
|
-
* Returns true if the given object is
|
|
26
|
-
* multiple copies of the Pulumi SDK have been
|
|
28
|
+
* Returns true if the given object is a {@link ResourceError}. This is
|
|
29
|
+
* designed to work even when multiple copies of the Pulumi SDK have been
|
|
30
|
+
* loaded into the same process.
|
|
27
31
|
*/
|
|
28
32
|
static isInstance(obj: any): obj is ResourceError;
|
|
29
33
|
constructor(message: string, resource: Resource | undefined, hideStack?: boolean | undefined);
|
package/errors.js
CHANGED
|
@@ -23,24 +23,27 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
23
23
|
const grpc = __importStar(require("@grpc/grpc-js"));
|
|
24
24
|
const utils = __importStar(require("./utils"));
|
|
25
25
|
/**
|
|
26
|
-
* RunError can be used for terminating a program abruptly, but
|
|
27
|
-
* than the usual verbose unhandled error logic
|
|
28
|
-
*
|
|
29
|
-
*
|
|
26
|
+
* {@link RunError} can be used for terminating a program abruptly, but
|
|
27
|
+
* resulting in a clean exit rather than the usual verbose unhandled error logic
|
|
28
|
+
* which emits the source program text and complete stack trace. This type
|
|
29
|
+
* should be rarely used. Ideally {@link ResourceError} should always be used so
|
|
30
|
+
* that as many errors as possible can be associated with a resource.
|
|
30
31
|
*/
|
|
31
32
|
class RunError extends Error {
|
|
32
33
|
constructor() {
|
|
33
34
|
super(...arguments);
|
|
34
35
|
/**
|
|
35
36
|
* A private field to help with RTTI that works in SxS scenarios.
|
|
37
|
+
*
|
|
36
38
|
* @internal
|
|
37
39
|
*/
|
|
38
40
|
// eslint-disable-next-line @typescript-eslint/naming-convention,no-underscore-dangle,id-blacklist,id-match
|
|
39
41
|
this.__pulumiRunError = true;
|
|
40
42
|
}
|
|
41
43
|
/**
|
|
42
|
-
* Returns true if the given object is
|
|
43
|
-
* multiple copies of the Pulumi SDK have been loaded into
|
|
44
|
+
* Returns true if the given object is a {@link RunError}. This is designed
|
|
45
|
+
* to work even when multiple copies of the Pulumi SDK have been loaded into
|
|
46
|
+
* the same process.
|
|
44
47
|
*/
|
|
45
48
|
static isInstance(obj) {
|
|
46
49
|
return utils.isInstance(obj, "__pulumiRunError");
|
|
@@ -48,10 +51,11 @@ class RunError extends Error {
|
|
|
48
51
|
}
|
|
49
52
|
exports.RunError = RunError;
|
|
50
53
|
/**
|
|
51
|
-
* ResourceError can be used for terminating a program abruptly,
|
|
52
|
-
* problem with a Resource.
|
|
53
|
-
*
|
|
54
|
-
*
|
|
54
|
+
* {@link ResourceError} can be used for terminating a program abruptly,
|
|
55
|
+
* specifically associating the problem with a {@link Resource}. Depending on
|
|
56
|
+
* the nature of the problem, clients can choose whether or not the call stack
|
|
57
|
+
* should be hidden as well. This should be very rare, and would only indicate
|
|
58
|
+
* that presenting the stack to the user would not be useful/be detrimental.
|
|
55
59
|
*/
|
|
56
60
|
class ResourceError extends Error {
|
|
57
61
|
constructor(message, resource, hideStack) {
|
|
@@ -60,14 +64,16 @@ class ResourceError extends Error {
|
|
|
60
64
|
this.hideStack = hideStack;
|
|
61
65
|
/**
|
|
62
66
|
* A private field to help with RTTI that works in SxS scenarios.
|
|
67
|
+
*
|
|
63
68
|
* @internal
|
|
64
69
|
*/
|
|
65
70
|
// eslint-disable-next-line @typescript-eslint/naming-convention, no-underscore-dangle, id-blacklist, id-match
|
|
66
71
|
this.__pulumResourceError = true;
|
|
67
72
|
}
|
|
68
73
|
/**
|
|
69
|
-
* Returns true if the given object is
|
|
70
|
-
* multiple copies of the Pulumi SDK have been
|
|
74
|
+
* Returns true if the given object is a {@link ResourceError}. This is
|
|
75
|
+
* designed to work even when multiple copies of the Pulumi SDK have been
|
|
76
|
+
* loaded into the same process.
|
|
71
77
|
*/
|
|
72
78
|
static isInstance(obj) {
|
|
73
79
|
return utils.isInstance(obj, "__pulumResourceError");
|
package/errors.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../errors.ts"],"names":[],"mappings":";AAAA,2CAA2C;AAC3C,EAAE;AACF,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,iDAAiD;AACjD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;;;;;;;;AAEjC,oDAAsC;AAGtC,+CAAiC;AAEjC
|
|
1
|
+
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../errors.ts"],"names":[],"mappings":";AAAA,2CAA2C;AAC3C,EAAE;AACF,kEAAkE;AAClE,mEAAmE;A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|
+
* {@link InvokeOptions} is a bag of options that control the behavior of a call
|
|
5
|
+
* to `runtime.invoke`.
|
|
6
|
+
*/
|
|
2
7
|
export interface InvokeOptions {
|
|
3
8
|
/**
|
|
4
9
|
* An optional parent to use for default options for this invoke (e.g. the default provider to use).
|
|
@@ -10,8 +15,8 @@ export interface InvokeOptions {
|
|
|
10
15
|
*/
|
|
11
16
|
provider?: ProviderResource;
|
|
12
17
|
/**
|
|
13
|
-
* An optional version, corresponding to the version of the provider plugin
|
|
14
|
-
* invoke.
|
|
18
|
+
* An optional version, corresponding to the version of the provider plugin
|
|
19
|
+
* that should be used when performing this invoke.
|
|
15
20
|
*/
|
|
16
21
|
version?: string;
|
|
17
22
|
/**
|
|
@@ -30,3 +35,46 @@ export interface InvokeOptions {
|
|
|
30
35
|
*/
|
|
31
36
|
async?: boolean;
|
|
32
37
|
}
|
|
38
|
+
/**
|
|
39
|
+
* {@link InvokeTransform} is the callback signature for the `transforms`
|
|
40
|
+
* resource option for invokes. A transform is passed the same set of inputs
|
|
41
|
+
* provided to the {@link Invoke} constructor, and can optionally return back
|
|
42
|
+
* alternate values for the `args` and/or `opts` prior to the invoke actually
|
|
43
|
+
* being executed. The effect will be as though those args and opts were passed
|
|
44
|
+
* in place of the original call to the {@link Invoke}. If the transform
|
|
45
|
+
* returns nil, this indicates
|
|
46
|
+
* that the Invoke
|
|
47
|
+
*/
|
|
48
|
+
export declare type InvokeTransform = (args: InvokeTransformArgs) => Promise<InvokeTransformResult | undefined> | InvokeTransformResult | undefined;
|
|
49
|
+
/**
|
|
50
|
+
* {@link InvokeTransformArgs} is the argument bag passed to a invoke transform.
|
|
51
|
+
*/
|
|
52
|
+
export interface InvokeTransformArgs {
|
|
53
|
+
/**
|
|
54
|
+
* The token of the Invoke.
|
|
55
|
+
*/
|
|
56
|
+
token: string;
|
|
57
|
+
/**
|
|
58
|
+
* The original args passed to the Invoke constructor.
|
|
59
|
+
*/
|
|
60
|
+
args: Inputs;
|
|
61
|
+
/**
|
|
62
|
+
* The original invoke options passed to the Invoke constructor.
|
|
63
|
+
*/
|
|
64
|
+
opts: InvokeOptions;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* {@link InvokeTransformResult} is the result that must be returned by an invoke
|
|
68
|
+
* transform callback. It includes new values to use for the `args` and `opts`
|
|
69
|
+
* of the `Invoke` in place of the originally provided values.
|
|
70
|
+
*/
|
|
71
|
+
export interface InvokeTransformResult {
|
|
72
|
+
/**
|
|
73
|
+
* The new properties to use in place of the original `args`
|
|
74
|
+
*/
|
|
75
|
+
args: Inputs;
|
|
76
|
+
/**
|
|
77
|
+
* The new resource options to use in place of the original `opts`
|
|
78
|
+
*/
|
|
79
|
+
opts: InvokeOptions;
|
|
80
|
+
}
|
package/iterable/index.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { Input, Output } from "../output";
|
|
2
2
|
/**
|
|
3
|
-
* toObject takes an array of T values, and a selector that produces
|
|
4
|
-
* and converts this array into an output
|
|
3
|
+
* {@link toObject} takes an array of T values, and a selector that produces
|
|
4
|
+
* key/value pairs from those inputs, and converts this array into an output
|
|
5
|
+
* object with those keys and values.
|
|
5
6
|
*
|
|
6
7
|
* For instance, given an array as follows
|
|
7
8
|
*
|
|
@@ -16,9 +17,10 @@ export declare function toObject<T, V>(iter: Input<Input<T>[]>, selector: (t: T)
|
|
|
16
17
|
[key: string]: V;
|
|
17
18
|
}>;
|
|
18
19
|
/**
|
|
19
|
-
* groupBy takes an array of T values, and a selector that prduces
|
|
20
|
-
*
|
|
21
|
-
*
|
|
20
|
+
* {@link groupBy} takes an array of T values, and a selector that prduces
|
|
21
|
+
* key/value pairs from those inputs, and converts this array into an output
|
|
22
|
+
* object, with those keys, and where each property is an array of values, in
|
|
23
|
+
* the case that the same key shows up multiple times in the input.
|
|
22
24
|
*
|
|
23
25
|
* For instance, given an array as follows
|
|
24
26
|
*
|
package/iterable/index.js
CHANGED
|
@@ -15,8 +15,9 @@
|
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
const output_1 = require("../output");
|
|
17
17
|
/**
|
|
18
|
-
* toObject takes an array of T values, and a selector that produces
|
|
19
|
-
* and converts this array into an output
|
|
18
|
+
* {@link toObject} takes an array of T values, and a selector that produces
|
|
19
|
+
* key/value pairs from those inputs, and converts this array into an output
|
|
20
|
+
* object with those keys and values.
|
|
20
21
|
*
|
|
21
22
|
* For instance, given an array as follows
|
|
22
23
|
*
|
|
@@ -44,9 +45,10 @@ function toObject(iter, selector) {
|
|
|
44
45
|
}
|
|
45
46
|
exports.toObject = toObject;
|
|
46
47
|
/**
|
|
47
|
-
* groupBy takes an array of T values, and a selector that prduces
|
|
48
|
-
*
|
|
49
|
-
*
|
|
48
|
+
* {@link groupBy} takes an array of T values, and a selector that prduces
|
|
49
|
+
* key/value pairs from those inputs, and converts this array into an output
|
|
50
|
+
* object, with those keys, and where each property is an array of values, in
|
|
51
|
+
* the case that the same key shows up multiple times in the input.
|
|
50
52
|
*
|
|
51
53
|
* For instance, given an array as follows
|
|
52
54
|
*
|
package/iterable/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../iterable/index.ts"],"names":[],"mappings":";AAAA,2CAA2C;AAC3C,EAAE;AACF,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,iDAAiD;AACjD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;AAEjC,sCAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../iterable/index.ts"],"names":[],"mappings":";AAAA,2CAA2C;AAC3C,EAAE;AACF,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,iDAAiD;AACjD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AAC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AC,CAAC,CAAC,CAAC,CAAC;gBACzB,IAAI,CAAC,CAAC,EAAE;oBACJ,CAAC,GAAG,EAAE,CAAC;oBACP,GAAG,CAAM,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;iBACxB;gBACD,CAAC,CAAC,IAAI,CAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;aACvB;YACD,OAAO,GAAG,CAAC;QACf,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACP,CAAC;AAtBD,0BAsBC"}
|
package/log/index.d.ts
CHANGED
|
@@ -1,21 +1,24 @@
|
|
|
1
1
|
import * as resourceTypes from "../resource";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Returns true if any errors have occurred in the program.
|
|
4
4
|
*/
|
|
5
5
|
export declare function hasErrors(): boolean;
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Logs a debug-level message that is generally hidden from end-users.
|
|
8
8
|
*/
|
|
9
9
|
export declare function debug(msg: string, resource?: resourceTypes.Resource, streamId?: number, ephemeral?: boolean): Promise<void>;
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* Logs an informational message that is generally printed to standard output
|
|
12
|
+
* during resource operations.
|
|
12
13
|
*/
|
|
13
14
|
export declare function info(msg: string, resource?: resourceTypes.Resource, streamId?: number, ephemeral?: boolean): Promise<void>;
|
|
14
15
|
/**
|
|
15
|
-
*
|
|
16
|
+
* Logs a warning to indicate that something went wrong, but not
|
|
17
|
+
* catastrophically so.
|
|
16
18
|
*/
|
|
17
19
|
export declare function warn(msg: string, resource?: resourceTypes.Resource, streamId?: number, ephemeral?: boolean): Promise<void>;
|
|
18
20
|
/**
|
|
19
|
-
*
|
|
21
|
+
* Logs a fatal condition. Consider raising an exception after calling error to
|
|
22
|
+
* stop the Pulumi program.
|
|
20
23
|
*/
|
|
21
24
|
export declare function error(msg: string, resource?: resourceTypes.Resource, streamId?: number, ephemeral?: boolean): Promise<void>;
|
package/log/index.js
CHANGED
|
@@ -31,14 +31,14 @@ const messageLevels = {
|
|
|
31
31
|
[engproto.LogSeverity.ERROR]: "error",
|
|
32
32
|
};
|
|
33
33
|
/**
|
|
34
|
-
*
|
|
34
|
+
* Returns true if any errors have occurred in the program.
|
|
35
35
|
*/
|
|
36
36
|
function hasErrors() {
|
|
37
37
|
return state_1.getStore().logErrorCount > 0;
|
|
38
38
|
}
|
|
39
39
|
exports.hasErrors = hasErrors;
|
|
40
40
|
/**
|
|
41
|
-
*
|
|
41
|
+
* Logs a debug-level message that is generally hidden from end-users.
|
|
42
42
|
*/
|
|
43
43
|
function debug(msg, resource, streamId, ephemeral) {
|
|
44
44
|
const engine = settings_1.getEngine();
|
|
@@ -51,7 +51,8 @@ function debug(msg, resource, streamId, ephemeral) {
|
|
|
51
51
|
}
|
|
52
52
|
exports.debug = debug;
|
|
53
53
|
/**
|
|
54
|
-
*
|
|
54
|
+
* Logs an informational message that is generally printed to standard output
|
|
55
|
+
* during resource operations.
|
|
55
56
|
*/
|
|
56
57
|
function info(msg, resource, streamId, ephemeral) {
|
|
57
58
|
const engine = settings_1.getEngine();
|
|
@@ -65,7 +66,8 @@ function info(msg, resource, streamId, ephemeral) {
|
|
|
65
66
|
}
|
|
66
67
|
exports.info = info;
|
|
67
68
|
/**
|
|
68
|
-
*
|
|
69
|
+
* Logs a warning to indicate that something went wrong, but not
|
|
70
|
+
* catastrophically so.
|
|
69
71
|
*/
|
|
70
72
|
function warn(msg, resource, streamId, ephemeral) {
|
|
71
73
|
const engine = settings_1.getEngine();
|
|
@@ -79,7 +81,8 @@ function warn(msg, resource, streamId, ephemeral) {
|
|
|
79
81
|
}
|
|
80
82
|
exports.warn = warn;
|
|
81
83
|
/**
|
|
82
|
-
*
|
|
84
|
+
* Logs a fatal condition. Consider raising an exception after calling error to
|
|
85
|
+
* stop the Pulumi program.
|
|
83
86
|
*/
|
|
84
87
|
function error(msg, resource, streamId, ephemeral) {
|
|
85
88
|
state_1.getStore().logErrorCount++; // remember the error so we can suppress leaks.
|
package/log/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../log/index.ts"],"names":[],"mappings":";AAAA,2CAA2C;AAC3C,EAAE;AACF,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,iDAAiD;AACjD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;;;;;;;;AAKjC,6DAA+C;AAE/C,kDAA8D;AAC9D,4CAA4C;AAE5C,IAAI,OAAO,GAAiB,OAAO,CAAC,OAAO,EAAE,CAAC;AAE9C,MAAM,aAAa,GAAG;IAClB,CAAC,QAAQ,CAAC,WAAW,CAAC,KAAK,CAAC,EAAE,OAAO;IACrC,CAAC,QAAQ,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE,MAAM;IACnC,CAAC,QAAQ,CAAC,WAAW,CAAC,OAAO,CAAC,EAAE,MAAM;IACtC,CAAC,QAAQ,CAAC,WAAW,CAAC,KAAK,CAAC,EAAE,OAAO;CACxC,CAAC;AAEF;;GAEG;AACH,SAAgB,SAAS;IACrB,OAAO,gBAAQ,EAAE,CAAC,aAAa,GAAG,CAAC,CAAC;AACxC,CAAC;AAFD,8BAEC;AAED;;GAEG;AACH,SAAgB,KAAK,CAAC,GAAW,EAAE,QAAiC,EAAE,QAAiB,EAAE,SAAmB;IACxG,MAAM,MAAM,GAAG,oBAAS,EAAE,CAAC;IAC3B,IAAI,MAAM,EAAE;QACR,OAAO,GAAG,CAAC,MAAM,EAAE,QAAQ,CAAC,WAAW,CAAC,KAAK,EAAE,GAAG,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,CAAC,CAAC;KACtF;SAAM;QACH,OAAO,OAAO,CAAC,OAAO,EAAE,CAAC;KAC5B;AACL,CAAC;AAPD,sBAOC;AAED
|
|
1
|
+
{"version":3,"file":"index.js","sourceRo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IAAI,GAAG,KAAK,QAAQ,CAAC,WAAW,CAAC,KAAK,EAAE;YACpC,wEAAwE;YACxE,OAAO,CAAC,KAAK,CACT,2CAA2C,GAAG,wBAAwB,GAAG,wBAAwB,aAAa,CAAC,GAAG,CAAC,EAAE,CACxH,CAAC;SACL;QACD,6FAA6F;QAC7F,SAAS,EAAE,CAAC;IAChB,CAAC,CAAC,CAAC;AACP,CAAC"}
|
package/metadata.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Returns the current organization name.
|
|
3
3
|
*/
|
|
4
4
|
export declare function getOrganization(): string;
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Returns the current project name. Throws an exception if none is registered.
|
|
7
7
|
*/
|
|
8
8
|
export declare function getProject(): string;
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Returns the current stack name. Throws an exception if none is registered.
|
|
11
11
|
*/
|
|
12
12
|
export declare function getStack(): string;
|
package/metadata.js
CHANGED
|
@@ -23,21 +23,21 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
23
23
|
// This file exports metadata about the context in which a program is being run.
|
|
24
24
|
const settings = __importStar(require("./runtime/settings"));
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
26
|
+
* Returns the current organization name.
|
|
27
27
|
*/
|
|
28
28
|
function getOrganization() {
|
|
29
29
|
return settings.getOrganization();
|
|
30
30
|
}
|
|
31
31
|
exports.getOrganization = getOrganization;
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
33
|
+
* Returns the current project name. Throws an exception if none is registered.
|
|
34
34
|
*/
|
|
35
35
|
function getProject() {
|
|
36
36
|
return settings.getProject();
|
|
37
37
|
}
|
|
38
38
|
exports.getProject = getProject;
|
|
39
39
|
/**
|
|
40
|
-
*
|
|
40
|
+
* Returns the current stack name. Throws an exception if none is registered.
|
|
41
41
|
*/
|
|
42
42
|
function getStack() {
|
|
43
43
|
return settings.getStack();
|