Package codegen

Interface MapperGrpc.AsyncService

  • All Known Implementing Classes:
    MapperGrpc.MapperImplBase
    Enclosing class:
    MapperGrpc

    public static interface MapperGrpc.AsyncService
     Mapper provides methods for retrieving mappings that describe how to map names in some source "provider" (e.g. a
     Terraform provider, if we are converting from Terraform) to names in appropriate Pulumi packages. So when converting
     a Terraform program containing code like `resource "aws_s3_bucket" "b" {}`, for instance, we need to know (among
     other things) that the `aws_s3_bucket` Terraform resource type corresponds to the Pulumi type `aws:s3/bucket:Bucket`,
     and thus lives in the `aws` package. This is the kind of information that a Mapper provides.
     
    • Method Detail

      • getMapping

        default void getMapping​(MapperOuterClass.GetMappingRequest request,
                                io.grpc.stub.StreamObserver<MapperOuterClass.GetMappingResponse> responseObserver)
         `GetMapping` returns any available mapping data for the given source provider name (so again, this is e.g. the
         name of a Terraform provider if converting from Terraform). Callers may pass "hints" that describe a Pulumi
         package that is expected to provide the mapping and satisfy the request, which implementations may use to
         optimise their efforts to return the best possible mapping. If no matching mapping exists, implementations should
         return an empty byte array result.