CDKExtensions.AddConstruct<T> Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.