@pulumi/pulumi 3.137.1-alpha.xf146c2e → 3.138.0-alpha.x077d8e3
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 +1 -1
- package/proto/provider_grpc_pb.js +45 -12
- package/version.d.ts +1 -1
- package/version.js +1 -1
package/package.json
CHANGED
|
@@ -353,22 +353,38 @@ function deserialize_pulumirpc_UpdateResponse(buffer_arg) {
|
|
|
353
353
|
}
|
|
354
354
|
|
|
355
355
|
|
|
356
|
-
// ResourceProvider
|
|
357
|
-
//
|
|
356
|
+
// The ResourceProvider service defines a standard interface for [resource providers](providers). A resource provider
|
|
357
|
+
// manages a set of configuration, resources, functions and so on in a single package, and offers methods such as CRUD
|
|
358
|
+
// operations on resources and invocations of functions. Resource providers are primarily managed by the Pulumi engine
|
|
359
|
+
// as part of a deployment in order to interact with the cloud providers underpinning a Pulumi application.
|
|
358
360
|
var ResourceProviderService = exports.ResourceProviderService = {
|
|
359
|
-
// Parameterize
|
|
361
|
+
// `Parameterize` is the primary means of supporting [parameterized providers](parameterized-providers), which allow
|
|
362
|
+
// a caller to change a provider's behavior ahead of its [configuration](pulumirpc.ResourceProvider.Configure) and
|
|
363
|
+
// subsequent use. Where a [](pulumirpc.ResourceProvider.Configure) call allows a caller to influence provider
|
|
364
|
+
// behaviour at a high level (e.g. by specifying the region in which an AWS provider should operate), a
|
|
365
|
+
// `Parameterize` call may change the set of resources and functions that a provider offers (that is, its schema).
|
|
366
|
+
// This is useful in any case where some "set" of providers can be captured by a single implementation that may
|
|
367
|
+
// power fundamentally different schemata -- dynamically bridging Terraform providers, or managing Kubernetes
|
|
368
|
+
// clusters with custom resource definitions, for instance, are good examples. The parameterized package that
|
|
369
|
+
// `Parameterize` yields is known as a *sub-package* of the original (unparameterized) package.
|
|
360
370
|
//
|
|
361
|
-
//
|
|
362
|
-
// resources), or with a replacement package (which does define its own provider resource).
|
|
371
|
+
// `Parameterize` supports two types of parameterization:
|
|
363
372
|
//
|
|
364
|
-
//
|
|
365
|
-
//
|
|
366
|
-
//
|
|
373
|
+
// * *Replacement parameterization*, whereby a `Parameterize` call results in a schema that completely replaces the
|
|
374
|
+
// original provider schema. Bridging a Terraform provider dynamically might be an example of this -- following
|
|
375
|
+
// the call to `Parameterize`, the provider's schema will become that of the Terraform provider that was bridged.
|
|
376
|
+
// Providers that implement replacement parameterization expect a *single* call to `Parameterize`.
|
|
367
377
|
//
|
|
368
|
-
//
|
|
369
|
-
//
|
|
378
|
+
// * *Extension parameterization*, in which a `Parameterize` call results in a schema that is a superset of the
|
|
379
|
+
// original. This is useful in cases where a provider can be extended with additional resources or functions, such
|
|
380
|
+
// as a Kubernetes provider that can be extended with resources representing custom resource definitions.
|
|
381
|
+
// Providers that implement extension parameterization should accept multiple calls to `Parameterize`. Extension
|
|
382
|
+
// packages may even be called multiple times with the same package name, but with different versions. The CRUD
|
|
383
|
+
// operations of extension resources must include the version of which sub-package they correspond to.
|
|
370
384
|
//
|
|
371
|
-
//
|
|
385
|
+
// `Parameterize` should work the same whether it is provided with `ParametersArgs` or `ParametersValue` input. In
|
|
386
|
+
// each case it should return the sub-package name and version (which when a `ParametersValue` is supplied should
|
|
387
|
+
// match the given input).
|
|
372
388
|
parameterize: {
|
|
373
389
|
path: '/pulumirpc.ResourceProvider/Parameterize',
|
|
374
390
|
requestStream: false,
|
|
@@ -392,7 +408,24 @@ getSchema: {
|
|
|
392
408
|
responseSerialize: serialize_pulumirpc_GetSchemaResponse,
|
|
393
409
|
responseDeserialize: deserialize_pulumirpc_GetSchemaResponse,
|
|
394
410
|
},
|
|
395
|
-
// CheckConfig validates
|
|
411
|
+
// `CheckConfig` validates a set of configuration inputs that will be passed to this provider instance.
|
|
412
|
+
// `CheckConfig` is to provider resources what [](pulumirpc.ResourceProvider.Check) is to individual resources, and
|
|
413
|
+
// is the first stage in configuring (that is, eventually executing a [](pulumirpc.ResourceProvider.Configure) call)
|
|
414
|
+
// a provider using user-supplied values. In the case that provider inputs are coming from some source that has been
|
|
415
|
+
// checked previously (e.g. a Pulumi state), it is not necessary to call `CheckConfig`.
|
|
416
|
+
//
|
|
417
|
+
// A `CheckConfig` call returns either a set of checked, known-valid inputs that may subsequently be passed to
|
|
418
|
+
// [](pulumirpc.ResourceProvider.DiffConfig) and/or [](pulumirpc.ResourceProvider.Configure), or a set of errors
|
|
419
|
+
// explaining why the inputs are invalid. In the case that a set of inputs are successfully validated and returned,
|
|
420
|
+
// `CheckConfig` *may also populate default values* for provider configuration, returning them so that they may be
|
|
421
|
+
// passed to a subsequent [](pulumirpc.ResourceProvider.Configure) call and persisted in the Pulumi state. In the
|
|
422
|
+
// case that `CheckConfig` fails and returns a set of errors, it is expected that the caller (typically the Pulumi
|
|
423
|
+
// engine) will fail provider registration.
|
|
424
|
+
//
|
|
425
|
+
// As a rule, the provider inputs returned by a call to `CheckConfig` should preserve the original representation of
|
|
426
|
+
// the properties as present in the program inputs. Though this rule is not required for correctness, violations
|
|
427
|
+
// thereof can negatively impact the end-user experience, as the provider inputs are using for detecting and
|
|
428
|
+
// rendering diffs.
|
|
396
429
|
checkConfig: {
|
|
397
430
|
path: '/pulumirpc.ResourceProvider/CheckConfig',
|
|
398
431
|
requestStream: false,
|
package/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "3.
|
|
1
|
+
export declare const version = "3.138.0";
|
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.
|
|
16
|
+
exports.version = "3.138.0-alpha.x077d8e3";
|
|
17
17
|
//# sourceMappingURL=version.js.map
|