@pulumi/pulumi 3.138.0-alpha.x077d8e3 → 3.138.0-alpha.x8bcafb3

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.138.0-alpha.x077d8e3",
3
+ "version": "3.138.0-alpha.x8bcafb3",
4
4
  "description": "Pulumi's Node.js SDK",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -424,7 +424,7 @@ getSchema: {
424
424
  //
425
425
  // As a rule, the provider inputs returned by a call to `CheckConfig` should preserve the original representation of
426
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
427
+ // thereof can negatively impact the end-user experience, as the provider inputs are used for detecting and
428
428
  // rendering diffs.
429
429
  checkConfig: {
430
430
  path: '/pulumirpc.ResourceProvider/CheckConfig',
@@ -437,7 +437,16 @@ checkConfig: {
437
437
  responseSerialize: serialize_pulumirpc_CheckResponse,
438
438
  responseDeserialize: deserialize_pulumirpc_CheckResponse,
439
439
  },
440
- // DiffConfig checks the impact a hypothetical change to this provider's configuration will have on the provider.
440
+ // `DiffConfig` compares an existing ("old") provider configuration with a new configuration and computes the
441
+ // difference (if any) between them. `DiffConfig` is to provider resources what [](pulumirpc.ResourceProvider.Diff)
442
+ // is to individual resources. `DiffConfig` should only be called with values that have at some point been validated
443
+ // by a [](pulumirpc.ResourceProvider.CheckConfig) call. The [](pulumirpc.DiffResponse) returned by a `DiffConfig`
444
+ // call is used primarily to determine whether or not the newly configured provider is capable of managing resources
445
+ // owned by the old provider. If `DiffConfig` indicates that the provider resource needs to be replaced, for
446
+ // instance, then all resources owned by that provider will *also* need to be replaced. Replacement semantics should
447
+ // thus be reserved for changes to configuration properties that are guaranteed to make old resources unmanageable.
448
+ // Changes to an AWS region, for example, will almost certainly require a provider replacement, but changes to an
449
+ // AWS access key, should almost certainly not.
441
450
  diffConfig: {
442
451
  path: '/pulumirpc.ResourceProvider/DiffConfig',
443
452
  requestStream: false,
@@ -449,13 +458,18 @@ diffConfig: {
449
458
  responseSerialize: serialize_pulumirpc_DiffResponse,
450
459
  responseDeserialize: deserialize_pulumirpc_DiffResponse,
451
460
  },
452
- // Configure configures the resource provider with "globals" that control its behavior.
461
+ // `Configure` is the final stage in configuring a provider instance. Callers supply two sets of data:
453
462
  //
454
- // :::{warning}
455
- // ConfigureRequest.args may include secrets. Because ConfigureRequest is sent before
456
- // ConfigureResponse can specify acceptSecrets: false, providers *must* handle secrets from
457
- // ConfigureRequest.args.
458
- // :::
463
+ // * Provider-specific configuration, which is the set of inputs that have been validated by a previous
464
+ // [](pulumirpc.ResourceProvider.CheckConfig) call.
465
+ // * Provider-agnostic ("protocol") configuration, such as whether or not the caller supports secrets.
466
+ //
467
+ // The provider is expected to return its own set of protocol configuration, indicating which features it supports
468
+ // in turn so that the caller and the provider can interact appropriately.
469
+ //
470
+ // Providers may expect a *single* call to `Configure`. If a call to `Configure` is missing required configuration,
471
+ // the provider may return a set of error details containing [](pulumirpc.ConfigureErrorMissingKeys) values to
472
+ // indicate which keys are missing.
459
473
  configure: {
460
474
  path: '/pulumirpc.ResourceProvider/Configure',
461
475
  requestStream: false,
@@ -504,11 +518,18 @@ call: {
504
518
  responseSerialize: serialize_pulumirpc_CallResponse,
505
519
  responseDeserialize: deserialize_pulumirpc_CallResponse,
506
520
  },
507
- // Check validates that the given property bag is valid for a resource of the given type and returns the inputs
508
- // that should be passed to successive calls to Diff, Create, or Update for this resource. As a rule, the provider
509
- // inputs returned by a call to Check should preserve the original representation of the properties as present in
510
- // the program inputs. Though this rule is not required for correctness, violations thereof can negatively impact
511
- // the end-user experience, as the provider inputs are using for detecting and rendering diffs.
521
+ // `Check` validates a set of input properties against a given resource type. A `Check` call returns either a set of
522
+ // checked, known-valid inputs that may subsequently be passed to [](pulumirpc.ResourceProvider.Diff),
523
+ // [](pulumirpc.ResourceProvider.Create), or [](pulumirpc.ResourceProvider.Update); or a set of errors explaining
524
+ // why the inputs are invalid. In the case that a set of inputs are successfully validated and returned, `Check`
525
+ // *may also populate default values* for resource inputs, returning them so that they may be passed to a subsequent
526
+ // call and persisted in the Pulumi state. In the case that `Check` fails and returns a set of errors, it is
527
+ // expected that the caller (typically the Pulumi engine) will fail resource registration.
528
+ //
529
+ // As a rule, the provider inputs returned by a call to `Check` should preserve the original representation of the
530
+ // properties as present in the program inputs. Though this rule is not required for correctness, violations thereof
531
+ // can negatively impact the end-user experience, as the provider inputs are used for detecting and rendering
532
+ // diffs.
512
533
  check: {
513
534
  path: '/pulumirpc.ResourceProvider/Check',
514
535
  requestStream: false,
@@ -520,7 +541,9 @@ check: {
520
541
  responseSerialize: serialize_pulumirpc_CheckResponse,
521
542
  responseDeserialize: deserialize_pulumirpc_CheckResponse,
522
543
  },
523
- // Diff checks what impacts a hypothetical update will have on the resource's properties.
544
+ // `Diff` compares an existing ("old") set of resource properties with a new set of properties and computes the
545
+ // difference (if any) between them. `Diff` should only be called with values that have at some point been validated
546
+ // by a [](pulumirpc.ResourceProvider.Check) call.
524
547
  diff: {
525
548
  path: '/pulumirpc.ResourceProvider/Diff',
526
549
  requestStream: false,
@@ -532,8 +555,14 @@ diff: {
532
555
  responseSerialize: serialize_pulumirpc_DiffResponse,
533
556
  responseDeserialize: deserialize_pulumirpc_DiffResponse,
534
557
  },
535
- // Create allocates a new instance of the provided resource and returns its unique ID afterwards. (The input ID
536
- // must be blank.) If this call fails, the resource must not have been created (i.e., it is "transactional").
558
+ // `Create` provisions a new instance of the specified [(custom) resource](custom-resources). It returns a
559
+ // provider-assigned ID for the resource as well as the output properties that arose from the creation properties.
560
+ // Output properties are typically the union of the resource's input properties and any additional values that were
561
+ // computed or made available during creation.
562
+ //
563
+ // If creation fails, `Create` may return an [](pulumirpc.ErrorResourceInitFailed) error detail explaining why.
564
+ // Moreover, if `Create` does return an error, it must be the case that the resource was *not* created (that is,
565
+ // `Create` can be thought of as transactional or atomic).
537
566
  create: {
538
567
  path: '/pulumirpc.ResourceProvider/Create',
539
568
  requestStream: false,
@@ -545,8 +574,9 @@ create: {
545
574
  responseSerialize: serialize_pulumirpc_CreateResponse,
546
575
  responseDeserialize: deserialize_pulumirpc_CreateResponse,
547
576
  },
548
- // Read the current live state associated with a resource. Enough state must be include in the inputs to uniquely
549
- // identify the resource; this is typically just the resource ID, but may also include some properties.
577
+ // `Read` reads the current live state associated with a resource identified by the supplied state. The given state
578
+ // must be sufficient to uniquely identify the resource. This is typically just the resource ID, but may also
579
+ // include other properties.
550
580
  read: {
551
581
  path: '/pulumirpc.ResourceProvider/Read',
552
582
  requestStream: false,
@@ -558,7 +588,7 @@ read: {
558
588
  responseSerialize: serialize_pulumirpc_ReadResponse,
559
589
  responseDeserialize: deserialize_pulumirpc_ReadResponse,
560
590
  },
561
- // Update updates an existing resource with new values.
591
+ // `Update` updates an existing resource according to a new set of inputs, returning a new set of output properties.
562
592
  update: {
563
593
  path: '/pulumirpc.ResourceProvider/Update',
564
594
  requestStream: false,
@@ -570,7 +600,9 @@ update: {
570
600
  responseSerialize: serialize_pulumirpc_UpdateResponse,
571
601
  responseDeserialize: deserialize_pulumirpc_UpdateResponse,
572
602
  },
573
- // Delete tears down an existing resource with the given ID. If it fails, the resource is assumed to still exist.
603
+ // `Delete` deprovisions an existing resource as specified by its ID. `Delete` should be transactional/atomic -- if
604
+ // a call to `Delete` fails, it must be the case that the resource was *not* deleted and can be assumed to still
605
+ // exist.
574
606
  delete: {
575
607
  path: '/pulumirpc.ResourceProvider/Delete',
576
608
  requestStream: false,
@@ -582,7 +614,20 @@ delete: {
582
614
  responseSerialize: serialize_google_protobuf_Empty,
583
615
  responseDeserialize: deserialize_google_protobuf_Empty,
584
616
  },
585
- // Construct creates a new instance of the provided component resource and returns its state.
617
+ // `Construct` provisions a new [component resource](component-resources). Providers that implement `Construct` are
618
+ // referred to as [component providers](component-providers). `Construct` is to component resources what
619
+ // [](pulumirpc.ResourceProvider.Create) is to [custom resources](custom-resources). Components do not have any
620
+ // lifecycle of their own, and instead embody the lifecycles of the resources that they are composed of. As such,
621
+ // `Construct` is effectively a subprogram whose resources will be persisted in the caller's state. It is
622
+ // consequently passed enough information to manage fully these resources. At a high level, this comprises:
623
+ //
624
+ // * A [](pulumirpc.ResourceMonitor) endpoint which the provider can use to [register](resource-registration) nested
625
+ // custom or component resources that belong to the component.
626
+ //
627
+ // * A set of input properties.
628
+ //
629
+ // * A full set of [resource options](https://www.pulumi.com/docs/iac/concepts/options/) that the component should
630
+ // propagate to resources it registers against the supplied resource monitor.
586
631
  construct: {
587
632
  path: '/pulumirpc.ResourceProvider/Construct',
588
633
  requestStream: false,
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.0-alpha.x077d8e3";
16
+ exports.version = "3.138.0-alpha.x8bcafb3";
17
17
  //# sourceMappingURL=version.js.map