Show / Hide Table of Contents

Class ComponentProvider

A provider that can be used to construct components from a given assembly with automatic schema inference.

Inheritance
object
Provider
ComponentProvider
Inherited Members
Provider.Parameterize(ParameterizeRequest, CancellationToken)
Provider.CheckConfig(CheckRequest, CancellationToken)
Provider.DiffConfig(DiffRequest, CancellationToken)
Provider.Configure(ConfigureRequest, CancellationToken)
Provider.Invoke(InvokeRequest, CancellationToken)
Provider.Create(CreateRequest, CancellationToken)
Provider.Read(ReadRequest, CancellationToken)
Provider.Check(CheckRequest, CancellationToken)
Provider.Diff(DiffRequest, CancellationToken)
Provider.Update(UpdateRequest, CancellationToken)
Provider.Delete(DeleteRequest, CancellationToken)
Provider.Call(CallRequest, CancellationToken)
Provider.Serve(string[], string, Func<IEngine, Provider>, CancellationToken)
Provider.GetHostUri(IHost)
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Pulumi.Experimental.Provider
Assembly: Pulumi.dll
Syntax
public class ComponentProvider : Provider

Constructors

View Source

ComponentProvider(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 Source

Construct(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
Provider.Construct(ConstructRequest, CancellationToken)
Exceptions
Type Condition
ArgumentException

If the resource type is invalid

InvalidOperationException

If the component type is not found or cannot be constructed

View Source

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

Overrides
Provider.GetSchema(GetSchemaRequest, CancellationToken)

Version 3.114.1

  • View Source
Back to top Copyright 2016-2023, Pulumi Corporation.