共用方式為


CDKExtensions.AddAWSCDKStack Method

Definition

Overloads

AddAWSCDKStack(IDistributedApplicationBuilder, String)

Adds an AWS CDK stack as resource. The CloudFormation stack name will be the resource name prefixed with 'Aspire-'

AddAWSCDKStack(IDistributedApplicationBuilder, String, String)

Adds an AWS CDK stack as resource.

AddAWSCDKStack<T>(IDistributedApplicationBuilder, String, ConstructBuilderDelegate<T>)

Adds and build an AWS CDK stack as resource.

AddAWSCDKStack(IDistributedApplicationBuilder, String)

Source:
CDKExtensions.cs

Adds an AWS CDK stack as resource. The CloudFormation stack name will be the resource name prefixed with 'Aspire-'

public static Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.AWS.CDK.IStackResource> AddAWSCDKStack (this Aspire.Hosting.IDistributedApplicationBuilder builder, string name);
static member AddAWSCDKStack : Aspire.Hosting.IDistributedApplicationBuilder * string -> Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.AWS.CDK.IStackResource>
<Extension()>
Public Function AddAWSCDKStack (builder As IDistributedApplicationBuilder, name As String) As IResourceBuilder(Of IStackResource)

Parameters

name
String

The name of the stack resource.

Returns

Applies to

AddAWSCDKStack(IDistributedApplicationBuilder, String, String)

Source:
CDKExtensions.cs

Adds an AWS CDK stack as resource.

public static Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.AWS.CDK.IStackResource> AddAWSCDKStack (this Aspire.Hosting.IDistributedApplicationBuilder builder, string name, string stackName);
static member AddAWSCDKStack : Aspire.Hosting.IDistributedApplicationBuilder * string * string -> Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.AWS.CDK.IStackResource>
<Extension()>
Public Function AddAWSCDKStack (builder As IDistributedApplicationBuilder, name As String, stackName As String) As IResourceBuilder(Of IStackResource)

Parameters

name
String

The name of the stack resource.

stackName
String

Cloud Formation stack same if different from the resource name.

Returns

Applies to

AddAWSCDKStack<T>(IDistributedApplicationBuilder, String, ConstructBuilderDelegate<T>)

Source:
CDKExtensions.cs

Adds and build an AWS CDK stack as resource.

public static Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.AWS.CDK.IStackResource<T>> AddAWSCDKStack<T> (this Aspire.Hosting.IDistributedApplicationBuilder builder, string name, Aspire.Hosting.AWS.CDK.ConstructBuilderDelegate<T> stackBuilder) where T : Amazon.CDK.Stack;
static member AddAWSCDKStack : Aspire.Hosting.IDistributedApplicationBuilder * string * Aspire.Hosting.AWS.CDK.ConstructBuilderDelegate<'T (requires 'T :> Amazon.CDK.Stack)> -> Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.AWS.CDK.IStackResource<'T>> (requires 'T :> Amazon.CDK.Stack)
<Extension()>
Public Function AddAWSCDKStack(Of T As Stack) (builder As IDistributedApplicationBuilder, name As String, stackBuilder As ConstructBuilderDelegate(Of T)) As IResourceBuilder(Of IStackResource(Of T))

Type Parameters

T

Parameters

name
String

The name of the resource.

stackBuilder
ConstructBuilderDelegate<T>

The stack builder delegate.

Returns

Applies to