Class ComponentProvider
A provider that can be used to construct components from a given assembly with automatic schema inference.
Inherited Members
Namespace: Pulumi.Experimental.Provider
Assembly: Pulumi.dll
Syntax
public class ComponentProvider : Provider
Constructors
View SourceComponentProvider(Assembly, Metadata, Type[]?)
Creates a new component provider.
Declaration
public ComponentProvider(Assembly componentAssembly, Metadata metadata, Type[]? componentTypes = null)
Parameters
| Type | Name | Description |
|---|---|---|
| Assembly | componentAssembly | The assembly containing component types |
| Metadata | metadata | The metadata for the package |
| Type[] | componentTypes | Optional array of known component types |
Methods
View SourceConstruct(ConstructRequest, CancellationToken)
Constructs a component resource.
Declaration
public override Task<ConstructResponse> Construct(ConstructRequest request, CancellationToken ct)
Parameters
| Type | Name | Description |
|---|---|---|
| ConstructRequest | request | The request containing the component type and inputs |
| CancellationToken | ct | The cancellation token |
Returns
| Type | Description |
|---|---|
| Task<ConstructResponse> | The constructed component resource |
Overrides
Exceptions
| Type | Condition |
|---|---|
| ArgumentException | If the resource type is invalid |
| InvalidOperationException | If the component type is not found or cannot be constructed |
GetSchema(GetSchemaRequest, CancellationToken)
Gets the schema for the components in the assembly.
Declaration
public override Task<GetSchemaResponse> GetSchema(GetSchemaRequest request, CancellationToken ct)
Parameters
| Type | Name | Description |
|---|---|---|
| GetSchemaRequest | request | The request containing the package name |
| CancellationToken | ct | The cancellation token |
Returns
| Type | Description |
|---|---|
| Task<GetSchemaResponse> | The schema for the components in the assembly |