Share via


CDKExtensions Class

Definition

Extension methods for adding AWS CDK as a provisioning resources.

public static class CDKExtensions
type CDKExtensions = class
Public Module CDKExtensions
Inheritance
CDKExtensions

Methods

AddAWSCDKStack(IDistributedApplicationBuilder, String, String)

Adds an AWS CDK stack as resource.

AddAWSCDKStack(IDistributedApplicationBuilder, String)

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

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

Adds and build an AWS CDK stack as resource.

AddConstruct<T>(IResourceBuilder<IResourceWithConstruct>, String, ConstructBuilderDelegate<T>)

Adds and build an AWS CDK construct as resource.

AddOutput<T>(IResourceBuilder<IConstructResource<T>>, String, ConstructOutputDelegate<T>)

Adds a construct reference to an output from the CloudFormation stack.

AddOutput<TStack>(IResourceBuilder<IStackResource<TStack>>, String, ConstructOutputDelegate<TStack>)

Adds a stack reference to an output from the CloudFormation stack.

GetOutput<T>(IResourceBuilder<IConstructResource<T>>, String, ConstructOutputDelegate<T>)

Gets a reference to an output from the CloudFormation stack.

WithEnvironment<TDestination,TConstruct>(IResourceBuilder<TDestination>, String, IResourceBuilder<IResourceWithConstruct<TConstruct>>, ConstructOutputDelegate<TConstruct>, String)

Add an environment variable with a reference of a AWS CDK construct to a project. The output parameters of the CloudFormation stack are added to the project IConfiguration.

WithReference<TDestination,TConstruct>(IResourceBuilder<TDestination>, IResourceBuilder<IResourceWithConstruct<TConstruct>>, ConstructOutputDelegate<TConstruct>, String, String)

Adds a reference of an AWS CDK construct to a project.The output parameters of the construct are added to the project IConfiguration.

Applies to