@pulumi/pulumi 3.138.1-alpha.x3149ab2 → 3.138.1-alpha.x3d8158b
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/cmd/dynamic-provider/config.d.ts +8 -0
- package/cmd/dynamic-provider/config.js +37 -0
- package/cmd/dynamic-provider/config.js.map +1 -0
- package/cmd/dynamic-provider/index.js +291 -238
- package/cmd/dynamic-provider/index.js.map +1 -1
- package/cmd/run/index.js +1 -1
- package/cmd/run/index.js.map +1 -1
- package/cmd/run-plugin/index.d.ts +1 -0
- package/cmd/run-plugin/index.js +123 -0
- package/cmd/run-plugin/index.js.map +1 -0
- package/cmd/run-plugin/run.d.ts +1 -0
- package/cmd/run-plugin/run.js +266 -0
- package/cmd/run-plugin/run.js.map +1 -0
- package/cmd/run-policy-pack/index.js +4 -5
- package/cmd/run-policy-pack/index.js.map +1 -1
- package/cmd/run-policy-pack/run.js +1 -1
- package/cmd/run-policy-pack/run.js.map +1 -1
- package/dynamic/index.d.ts +38 -0
- package/dynamic/index.js.map +1 -1
- package/package.json +1 -1
- package/version.js +1 -1
package/dynamic/index.d.ts
CHANGED
|
@@ -89,11 +89,49 @@ export interface UpdateResult<Outputs = any> {
|
|
|
89
89
|
*/
|
|
90
90
|
readonly outs?: Outputs;
|
|
91
91
|
}
|
|
92
|
+
/**
|
|
93
|
+
* {@link Config} is a bag of configuration values that can be passed to a provider's
|
|
94
|
+
* configure method.
|
|
95
|
+
*
|
|
96
|
+
* Use the Config.get and Config.require methods to retrieve a configuration
|
|
97
|
+
* value by key.
|
|
98
|
+
*/
|
|
99
|
+
export interface Config {
|
|
100
|
+
/**
|
|
101
|
+
* get retrieves a configuration value by key. Returns undefined if the key is not present.
|
|
102
|
+
*
|
|
103
|
+
* @param key
|
|
104
|
+
* The key to lookup in the configuration. If no namespace is provided in the key, the project
|
|
105
|
+
* name will be used as the namespace.
|
|
106
|
+
*/
|
|
107
|
+
get(key: string): string | undefined;
|
|
108
|
+
/**
|
|
109
|
+
* require retrieves a configuration value by key. Returns an error if the key is not present.
|
|
110
|
+
*
|
|
111
|
+
* @param key
|
|
112
|
+
* The key to lookup in the configuration. If no namespace is provided in the key, the project
|
|
113
|
+
* name will be used as the namespace.
|
|
114
|
+
*/
|
|
115
|
+
require(key: string): string;
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* {@link ConfigureRequest} is the input to a provider's configure method.
|
|
119
|
+
*/
|
|
120
|
+
export interface ConfigureRequest {
|
|
121
|
+
/**
|
|
122
|
+
* The stack's configuration.
|
|
123
|
+
*/
|
|
124
|
+
config: Config;
|
|
125
|
+
}
|
|
92
126
|
/**
|
|
93
127
|
* {@link ResourceProvider} represents an object that provides CRUD operations
|
|
94
128
|
* for a particular type of resource.
|
|
95
129
|
*/
|
|
96
130
|
export interface ResourceProvider<Inputs = any, Outputs = any> {
|
|
131
|
+
/**
|
|
132
|
+
* Configures the resource provider.
|
|
133
|
+
*/
|
|
134
|
+
configure?: (req: ConfigureRequest) => Promise<void>;
|
|
97
135
|
/**
|
|
98
136
|
* Validates that the given property bag is valid for a resource of the given type.
|
|
99
137
|
*
|
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;AACF,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,iDAAiD;AACjD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;;;;;;;;AAEjC,sCAAkD;AAClD,sDAAwC;AACxC,8DAAgD;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../dynamic/index.ts"],"names":[],"mappings":";AAAA,2CAA2C;AAC3C,EAAE;AACF,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAA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C,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/package.json
CHANGED
package/version.js
CHANGED
|
@@ -13,5 +13,5 @@
|
|
|
13
13
|
// See the License for the specific language governing permissions and
|
|
14
14
|
// limitations under the License.
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.version = "3.138.1-alpha.
|
|
16
|
+
exports.version = "3.138.1-alpha.x3d8158b";
|
|
17
17
|
//# sourceMappingURL=version.js.map
|