CloudFormationExtensions.WithReference Method

Definition

Overloads

WithReference(IResourceBuilder<ICloudFormationStackResource>, IAmazonCloudFormation)

Override the CloudFormation service client the ICloudFormationStackResource would create to interact with the CloudFormation service. This can be used for pointing the CloudFormation service client to a non-standard CloudFormation endpoint like an emulator.

WithReference(IResourceBuilder<ICloudFormationStackResource>, IAWSSDKConfig)

The AWS SDK service client configuration used to create the CloudFormation service client.

WithReference(IResourceBuilder<ICloudFormationTemplateResource>, IAmazonCloudFormation)

Override the CloudFormation service client the ICloudFormationTemplateResource would create to interact with the CloudFormation service. This can be used for pointing the CloudFormation service client to a non-standard CloudFormation endpoint like an emulator.

WithReference(IResourceBuilder<ICloudFormationTemplateResource>, IAWSSDKConfig)

The AWS SDK service client configuration used to create the CloudFormation service client.

WithReference<TDestination>(IResourceBuilder<TDestination>, IAmazonCloudFormation)

Override the CloudFormation service client the ICloudFormationStackResource would create to interact with the CloudFormation service. This can be used for pointing the CloudFormation service client to a non-standard CloudFormation endpoint like an emulator.

WithReference<TDestination>(IResourceBuilder<TDestination>, IAWSSDKConfig)

The AWS SDK service client configuration used to create the CloudFormation service client.

WithReference<TDestination>(IResourceBuilder<TDestination>, IResourceBuilder<ICloudFormationResource>, String)

Add a reference of a CloudFormations stack to a project. The output parameters of the CloudFormation stack are added to the project IConfiguration.

WithReference(IResourceBuilder<ICloudFormationStackResource>, IAmazonCloudFormation)

Source:
CloudFormationExtensions.cs

Override the CloudFormation service client the ICloudFormationStackResource would create to interact with the CloudFormation service. This can be used for pointing the CloudFormation service client to a non-standard CloudFormation endpoint like an emulator.

C#
public static Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.AWS.CloudFormation.ICloudFormationStackResource> WithReference(this Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.AWS.CloudFormation.ICloudFormationStackResource> builder, Amazon.CloudFormation.IAmazonCloudFormation cloudFormationClient);

Parameters

cloudFormationClient
Amazon.CloudFormation.IAmazonCloudFormation

The AWS CloudFormation service client.

Returns

Applies to

.NET Aspire 8.0.0
Produit Versions
.NET Aspire 8.0.0

WithReference(IResourceBuilder<ICloudFormationStackResource>, IAWSSDKConfig)

Source:
CloudFormationExtensions.cs

The AWS SDK service client configuration used to create the CloudFormation service client.

C#
public static Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.AWS.CloudFormation.ICloudFormationStackResource> WithReference(this Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.AWS.CloudFormation.ICloudFormationStackResource> builder, Aspire.Hosting.AWS.IAWSSDKConfig awsSdkConfig);

Parameters

awsSdkConfig
IAWSSDKConfig

The name of the AWS credential profile.

Returns

Applies to

.NET Aspire 8.0.0
Produit Versions
.NET Aspire 8.0.0

WithReference(IResourceBuilder<ICloudFormationTemplateResource>, IAmazonCloudFormation)

Source:
CloudFormationExtensions.cs

Override the CloudFormation service client the ICloudFormationTemplateResource would create to interact with the CloudFormation service. This can be used for pointing the CloudFormation service client to a non-standard CloudFormation endpoint like an emulator.

C#
public static Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.AWS.CloudFormation.ICloudFormationTemplateResource> WithReference(this Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.AWS.CloudFormation.ICloudFormationTemplateResource> builder, Amazon.CloudFormation.IAmazonCloudFormation cloudFormationClient);

Parameters

cloudFormationClient
Amazon.CloudFormation.IAmazonCloudFormation

The AWS CloudFormation service client.

Returns

Applies to

.NET Aspire 8.0.0
Produit Versions
.NET Aspire 8.0.0

WithReference(IResourceBuilder<ICloudFormationTemplateResource>, IAWSSDKConfig)

Source:
CloudFormationExtensions.cs

The AWS SDK service client configuration used to create the CloudFormation service client.

C#
public static Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.AWS.CloudFormation.ICloudFormationTemplateResource> WithReference(this Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.AWS.CloudFormation.ICloudFormationTemplateResource> builder, Aspire.Hosting.AWS.IAWSSDKConfig awsSdkConfig);

Parameters

awsSdkConfig
IAWSSDKConfig

The name of the AWS credential profile.

Returns

Applies to

.NET Aspire 8.0.0
Produit Versions
.NET Aspire 8.0.0

WithReference<TDestination>(IResourceBuilder<TDestination>, IAmazonCloudFormation)

Source:
CloudFormationExtensions.cs

Override the CloudFormation service client the ICloudFormationStackResource would create to interact with the CloudFormation service. This can be used for pointing the CloudFormation service client to a non-standard CloudFormation endpoint like an emulator.

C#
public static Aspire.Hosting.ApplicationModel.IResourceBuilder<TDestination> WithReference<TDestination>(this Aspire.Hosting.ApplicationModel.IResourceBuilder<TDestination> builder, Amazon.CloudFormation.IAmazonCloudFormation cloudFormationClient) where TDestination : Aspire.Hosting.AWS.CloudFormation.ICloudFormationResource;

Type Parameters

TDestination

Parameters

builder
IResourceBuilder<TDestination>
cloudFormationClient
Amazon.CloudFormation.IAmazonCloudFormation

The AWS CloudFormation service client.

Returns

IResourceBuilder<TDestination>

Applies to

.NET Aspire 9.0.0
Produit Versions
.NET Aspire 9.0.0

WithReference<TDestination>(IResourceBuilder<TDestination>, IAWSSDKConfig)

Source:
CloudFormationExtensions.cs

The AWS SDK service client configuration used to create the CloudFormation service client.

C#
public static Aspire.Hosting.ApplicationModel.IResourceBuilder<TDestination> WithReference<TDestination>(this Aspire.Hosting.ApplicationModel.IResourceBuilder<TDestination> builder, Aspire.Hosting.AWS.IAWSSDKConfig awsSdkConfig) where TDestination : Aspire.Hosting.AWS.CloudFormation.ICloudFormationResource;

Type Parameters

TDestination

Parameters

builder
IResourceBuilder<TDestination>
awsSdkConfig
IAWSSDKConfig

The name of the AWS credential profile.

Returns

IResourceBuilder<TDestination>

Applies to

.NET Aspire 9.0.0
Produit Versions
.NET Aspire 9.0.0

WithReference<TDestination>(IResourceBuilder<TDestination>, IResourceBuilder<ICloudFormationResource>, String)

Source:
CloudFormationExtensions.cs
Source:
CloudFormationExtensions.cs

Add a reference of a CloudFormations stack to a project. The output parameters of the CloudFormation stack are added to the project IConfiguration.

C#
public static Aspire.Hosting.ApplicationModel.IResourceBuilder<TDestination> WithReference<TDestination>(this Aspire.Hosting.ApplicationModel.IResourceBuilder<TDestination> builder, Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.AWS.CloudFormation.ICloudFormationResource> cloudFormationResourceBuilder, string configSection = "AWS::Resources") where TDestination : Aspire.Hosting.ApplicationModel.IResourceWithEnvironment;
C#
public static Aspire.Hosting.ApplicationModel.IResourceBuilder<TDestination> WithReference<TDestination>(this Aspire.Hosting.ApplicationModel.IResourceBuilder<TDestination> builder, Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.AWS.CloudFormation.ICloudFormationResource> cloudFormationResourceBuilder, string configSection = "AWS:Resources") where TDestination : Aspire.Hosting.ApplicationModel.IResourceWithEnvironment;

Type Parameters

TDestination

Parameters

builder
IResourceBuilder<TDestination>
cloudFormationResourceBuilder
IResourceBuilder<ICloudFormationResource>

The CloudFormation resource.

configSection
String

The config section in IConfiguration to add the output parameters.

Returns

IResourceBuilder<TDestination>

Applies to

.NET Aspire 9.0.0 et .NET Aspire 8.0.0
Produit Versions
.NET Aspire 8.0.0, 9.0.0