Program conversion#
pulumi/pulumi:proto/pulumi/converter.proto
Services#
🔌 Converter#
Converter is a service for converting between other ecosystems and Pulumi. This is currently unstable and experimental.
📞 ConvertState#
⤵️ ConvertStateRequest ⤴️ ConvertStateResponse
ConvertState converts state from the target ecosystem into a form that can be imported into Pulumi.
📞 ConvertProgram#
⤵️ ConvertProgramRequest ⤴️ ConvertProgramResponse
ConvertProgram converts a program from the target ecosystem into a form that can be used with Pulumi.
📞 ConvertSnippet#
⤵️ ConvertSnippetRequest ⤴️ ConvertSnippetResponse
ConvertSnippet generates a single PCL file from a single source file in the target ecosystem. It is used when callers need to convert a small source fragment, such as an input file, rather than a full Pulumi program.
Messages#
📨 ConvertProgramRequest#
source_directorystringthe source directory containing the program to convert from.
target_directorystringa target directory to write the resulting PCL code and project file to.
mapper_targetstringthe gRPC target of the mapper service.
loader_targetstringThe target of a codegen.LoaderServer to use for loading schemas.
argsstringthe args passed to
pulumi convertfor this conversion. Normally used to specifiy a root file, or conversion options.generated_project_directorystringthe directory where the final generated project for the eventual destination language will be written. use to determine relative paths of any asset that will be copied over. Do not write files to this directory as these files might be overwritten in the project generation process.
📨 ConvertProgramResponse#
diagnosticscodegen.Diagnosticany diagnostics from code generation.
📨 ConvertSnippetRequest#
filenamestringThe name of the source file. This is used for diagnostics.
sourcebytesThe raw bytes of the source file.
target_loaderstringThe target of a codegen.LoaderServer to use for loading schemas.
packagecodegen.GetSchemaRequestThe package description to load which contains the token.
tokenstringThe token to use when converting the snippet. This may be a provider token, such as
pulumi:providers:pkg, a function token, or a resource token.attributesConvertSnippetRequest.AttributesEntryany extra attributes to convert.
resourcesConvertSnippetRequest.ResourcesEntryany external resource references to convert.
📨 AttributesEntry#
📨 ResourceReference#
tokenstringThe resource token for the referenced resource.
packagecodegen.GetSchemaRequestThe package description to load for the referenced resource.
📨 ResourcesEntry#
keystring<No description>
valueConvertSnippetRequest.ResourceReference<No description>
📨 ConvertSnippetResponse#
diagnosticscodegen.DiagnosticAny diagnostics raised by code generation.
filenamestringThe generated PCL filename.
sourcebytesThe generated PCL source code.
attributesConvertSnippetResponse.AttributesEntryany extra attributes to merge into the final pcl result.
resource_namesConvertSnippetResponse.ResourceNamesEntryany external resource names that were rewritten during conversion. The keys are identifiers in the source language and the values are identifiers in the generated PCL.
📨 AttributesEntry#
📨 ResourceNamesEntry#
📨 ConvertStateRequest#
mapper_targetstringthe gRPC target of the mapper service.
argsstringthe args passed to
pulumi importfor this conversion. Normally used to specifiy a state file to import from.loader_targetstringThe target of a codegen.LoaderServer to use for loading schemas.
resolver_targetstringThe target of a 🔌 PackageResolver service the converter can use to resolve package specifications to concrete package dependencies. May be empty on older engines.
📨 ConvertStateResponse#
resourcesResourceImporta list of resources to import.
diagnosticscodegen.Diagnosticany diagnostics from state conversion.
📨 ResourceExtension#
A ResourceExtension describes an extension parameterization to apply to a resource’s (base) provider.
📨 ResourceImport#
A ResourceImport specifies a resource to import.
typestringthe type token for the resource.
namestringthe name of the resource.
idstringthe ID of the resource.
versionstringthe provider version to use for the resource, if any.
pluginDownloadURLstringthe provider PluginDownloadURL to use for the resource, if any.
logical_namestringthe logical name of the resource.
is_componentbooltrue if this is a component resource.
is_remotebooltrue if this is a remote resource. Ignored if is_component is false.
parameterizationResourceParameterizationthe replacement parameterization to use for the resource’s provider, if any. Set when the resource should be imported under a parameterized (e.g. dynamically bridged) provider rather than a plain one.
extensionResourceExtensionthe extension parameterization to apply to the resource’s provider, if any. Unlike a replacement parameterization, the resource’s own type is in the base provider’s package; the extension is a blob applied on top of that provider. Mutually exclusive with parameterization.
parentstringthe name of the resource’s parent, if any. Must reference the name of another resource in the same response; resources without a parent are parented to the stack root.
propertiesstringthe input properties to include when generating code for the resource. Defaults to the resource’s required properties.
providerstringthe name of the resource’s explicit provider, if any. Must reference the name of a provider declared as another resource (of type “pulumi:providers:
”) in the same response; resources without a provider are served by an appropriate default provider. inputsgoogle.protobuf.Structinput properties supplied for the resource, if any. Values the provider’s Read cannot return (e.g. write-only attributes) are taken from here instead. For a provider declared in the response, inputs is its configuration. Secret values are marked with Pulumi’s standard secret signature.
outputsgoogle.protobuf.Structthe resource’s full output state, if any. When set, the resource is imported from these values directly and the provider’s Read is skipped entirely. Secret values are marked with Pulumi’s standard secret signature.
📨 ResourceParameterization#
A ResourceParameterization describes the base plugin that a resource’s parameterized provider is built from. The parameterized package name and version are taken from the resource’s own type and version.