Compartilhar via


CDKExtensions.AddConstruct<T> Method

Definition

Adds and build an AWS CDK construct as resource.

public static Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.AWS.CDK.IConstructResource<T>> AddConstruct<T> (this Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.AWS.CDK.IResourceWithConstruct> builder, string name, Aspire.Hosting.AWS.CDK.ConstructBuilderDelegate<T> constructBuilder) where T : Constructs.Construct;
static member AddConstruct : Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.AWS.CDK.IResourceWithConstruct> * string * Aspire.Hosting.AWS.CDK.ConstructBuilderDelegate<'T (requires 'T :> Constructs.Construct)> -> Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.AWS.CDK.IConstructResource<'T>> (requires 'T :> Constructs.Construct)
<Extension()>
Public Function AddConstruct(Of T As Construct) (builder As IResourceBuilder(Of IResourceWithConstruct), name As String, constructBuilder As ConstructBuilderDelegate(Of T)) As IResourceBuilder(Of IConstructResource(Of T))

Type Parameters

T

Parameters

builder
IResourceBuilder<IResourceWithConstruct>

The construct resource builder.

name
String

The name of the resource.

constructBuilder
ConstructBuilderDelegate<T>

The construct builder delegate.

Returns

Applies to