共用方式為


CloudFormationExtensions.AddAWSCloudFormationTemplate Method

Definition

Overloads

AddAWSCloudFormationTemplate(IDistributedApplicationBuilder, String, String)

Add a CloudFormation stack for provisioning application resources.

AddAWSCloudFormationTemplate(IDistributedApplicationBuilder, String, String, String)

Add a CloudFormation stack for provisioning application resources.

AddAWSCloudFormationTemplate(IDistributedApplicationBuilder, String, String)

Source:
CloudFormationExtensions.cs

Add a CloudFormation stack for provisioning application resources.

public static Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.AWS.CloudFormation.ICloudFormationTemplateResource> AddAWSCloudFormationTemplate (this Aspire.Hosting.IDistributedApplicationBuilder builder, string stackName, string templatePath);
static member AddAWSCloudFormationTemplate : Aspire.Hosting.IDistributedApplicationBuilder * string * string -> Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.AWS.CloudFormation.ICloudFormationTemplateResource>
<Extension()>
Public Function AddAWSCloudFormationTemplate (builder As IDistributedApplicationBuilder, stackName As String, templatePath As String) As IResourceBuilder(Of ICloudFormationTemplateResource)

Parameters

stackName
String

The name of the CloudFormation stack.

templatePath
String

The path to the CloudFormation template that defines the CloudFormation stack.

Returns

Applies to

AddAWSCloudFormationTemplate(IDistributedApplicationBuilder, String, String, String)

Source:
CloudFormationExtensions.cs

Add a CloudFormation stack for provisioning application resources.

public static Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.AWS.CloudFormation.ICloudFormationTemplateResource> AddAWSCloudFormationTemplate (this Aspire.Hosting.IDistributedApplicationBuilder builder, string name, string templatePath, string? stackName = default);
static member AddAWSCloudFormationTemplate : Aspire.Hosting.IDistributedApplicationBuilder * string * string * string -> Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.AWS.CloudFormation.ICloudFormationTemplateResource>
<Extension()>
Public Function AddAWSCloudFormationTemplate (builder As IDistributedApplicationBuilder, name As String, templatePath As String, Optional stackName As String = Nothing) As IResourceBuilder(Of ICloudFormationTemplateResource)

Parameters

name
String

The name of the resource.

templatePath
String

The path to the CloudFormation template that defines the CloudFormation stack.

stackName
String

The name of the CloudFormation stack. If not specified, the CloudFormation stack name will be the resource name prefixed with 'Aspire-'

Returns

Applies to