@pulumi/pulumi 3.153.2-alpha.x272ede0 → 3.153.2-alpha.x2d22a7c
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 +27 -3
- package/version.js +1 -1
package/package.json
CHANGED
|
@@ -736,6 +736,22 @@ attach: {
|
|
|
736
736
|
},
|
|
737
737
|
// GetMapping fetches the mapping for this resource provider, if any. A provider should return an empty
|
|
738
738
|
// response (not an error) if it doesn't have a mapping for the given key.
|
|
739
|
+
//
|
|
740
|
+
// `GetMapping` returns mappings designed to aid in [converting programs and state from other
|
|
741
|
+
// ecosystems](converters). It accepts a "conversion key", which effectively corresponds to a source language, such
|
|
742
|
+
// as `terraform`, and a *source provider name*, which is the name of the provider *in the source language*. Given
|
|
743
|
+
// these, it returns source-specific mapping data for the provider requested. As an example, the Pulumi AWS
|
|
744
|
+
// provider, which is bridged from the Terraform AWS provider and thus capable of mapping names between the two,
|
|
745
|
+
// might respond to a call with key `terraform` and source provider name `aws` with mapping data for transforming
|
|
746
|
+
// (among other things) Terraform AWS names such as `aws_s3_bucket` into Pulumi AWS types such as
|
|
747
|
+
// `aws:s3/bucket:Bucket`. If a provider only supports a single source provider, or has some sensible default, it
|
|
748
|
+
// may respond also to a call in which the source provider name is empty (`""`), which will be made when the engine
|
|
749
|
+
// does not have sufficient knowledge to work out which provider offers a specific mapping.
|
|
750
|
+
//
|
|
751
|
+
// In general, it is expected that providers implemented by bridging an equivalent provider from another ecosystem
|
|
752
|
+
// (such as bridged Terraform providers built atop the `pulumi-terraform-bridge`, for instance) implement
|
|
753
|
+
// `GetMapping` to support conversion from that ecosystem into Pulumi using the same logic that underpins the
|
|
754
|
+
// bridging itself.
|
|
739
755
|
getMapping: {
|
|
740
756
|
path: '/pulumirpc.ResourceProvider/GetMapping',
|
|
741
757
|
requestStream: false,
|
|
@@ -747,9 +763,17 @@ getMapping: {
|
|
|
747
763
|
responseSerialize: serialize_pulumirpc_GetMappingResponse,
|
|
748
764
|
responseDeserialize: deserialize_pulumirpc_GetMappingResponse,
|
|
749
765
|
},
|
|
750
|
-
// GetMappings is an optional method
|
|
751
|
-
//
|
|
752
|
-
//
|
|
766
|
+
// `GetMappings` is an optional method designed to aid in [converting programs and state from other
|
|
767
|
+
// ecosystems](converters). `GetMappings` accepts a "conversion key". This corresponds to a source language, for
|
|
768
|
+
// which we want to retrieve mappings for names etc. from that source language into Pulumi. An example key might
|
|
769
|
+
// therefore be `terraform` in the event that we wish to map e.g. Terraform resource names to Pulumi resource types.
|
|
770
|
+
// Given a key, `GetMappings` returns a list of *source provider names* for which calls to `GetMapping` will return
|
|
771
|
+
// mappings. So, continuing the Terraform example, the Pulumi AWS provider, which is bridged from the Terraform AWS
|
|
772
|
+
// provider and thus capable of mapping names between the two, might return the list `["aws"]` in response to a call
|
|
773
|
+
// with key `terraform`.
|
|
774
|
+
//
|
|
775
|
+
// If a provider does not implement `GetMappings`, the engine will fall back to calling `GetMapping` blindly without
|
|
776
|
+
// a source provider name (that is, with the value `""`).
|
|
753
777
|
getMappings: {
|
|
754
778
|
path: '/pulumirpc.ResourceProvider/GetMappings',
|
|
755
779
|
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.153.2-alpha.
|
|
16
|
+
exports.version = "3.153.2-alpha.x2d22a7c";
|
|
17
17
|
//# sourceMappingURL=version.js.map
|