Skip to content
DocsTry Aspire
DocsTry

CDKExtensions Methods

ClassMethods9 members
Supports all classes in the .NET class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all .NET classes; it is the root of the type hierarchy.
AddAWSCDKStack(IDistributedApplicationBuilder, string)Section titled AddAWSCDKStack(IDistributedApplicationBuilder, string)extensionIResourceBuilder<IStackResource>
public static class CDKExtensions
{
public static IResourceBuilder<IStackResource> AddAWSCDKStack(
this IDistributedApplicationBuilder builder,
string name)
{
// ...
}
}
builderIDistributedApplicationBuilder
namestring
AddAWSCDKStack(IDistributedApplicationBuilder, string, string)Section titled AddAWSCDKStack(IDistributedApplicationBuilder, string, string)extensionIResourceBuilder<IStackResource>
public static class CDKExtensions
{
public static IResourceBuilder<IStackResource> AddAWSCDKStack(
this IDistributedApplicationBuilder builder,
string name,
string stackName)
{
// ...
}
}
builderIDistributedApplicationBuilder
namestring
stackNamestring
AddAWSCDKStack(IDistributedApplicationBuilder, string, ConstructBuilderDelegate<T>)Section titled AddAWSCDKStack(IDistributedApplicationBuilder, string, ConstructBuilderDelegate<T>)extensionIResourceBuilder<IStackResource<T>>
public static class CDKExtensions
{
public static IResourceBuilder<IStackResource<T>> AddAWSCDKStack<T>(
this IDistributedApplicationBuilder builder,
string name,
ConstructBuilderDelegate<T> stackBuilder)
{
// ...
}
}
builderIDistributedApplicationBuilder
namestring
AddConstruct(IResourceBuilder<IResourceWithConstruct>, string, ConstructBuilderDelegate<T>)Section titled AddConstruct(IResourceBuilder<IResourceWithConstruct>, string, ConstructBuilderDelegate<T>)extensionIResourceBuilder<IConstructResource<T>>
public static class CDKExtensions
{
public static IResourceBuilder<IConstructResource<T>> AddConstruct<T>(
this IResourceBuilder<IResourceWithConstruct> builder,
string name,
ConstructBuilderDelegate<T> constructBuilder)
{
// ...
}
}
builderIResourceBuilder<IResourceWithConstruct>
namestring
AddOutput(IResourceBuilder<IStackResource<TStack>>, string, ConstructOutputDelegate<TStack>)Section titled AddOutput(IResourceBuilder<IStackResource<TStack>>, string, ConstructOutputDelegate<TStack>)extensionIResourceBuilder<IStackResource<TStack>>
public static class CDKExtensions
{
public static IResourceBuilder<IStackResource<TStack>> AddOutput<TStack>(
this IResourceBuilder<IStackResource<TStack>> builder,
string name,
ConstructOutputDelegate<TStack> output)
{
// ...
}
}
builderIResourceBuilder<IStackResource<TStack>>
namestring
outputConstructOutputDelegate<TStack>
AddOutput(IResourceBuilder<IConstructResource<T>>, string, ConstructOutputDelegate<T>)Section titled AddOutput(IResourceBuilder<IConstructResource<T>>, string, ConstructOutputDelegate<T>)extensionIResourceBuilder<IConstructResource<T>>
public static class CDKExtensions
{
public static IResourceBuilder<IConstructResource<T>> AddOutput<T>(
this IResourceBuilder<IConstructResource<T>> builder,
string name,
ConstructOutputDelegate<T> output)
{
// ...
}
}
builderIResourceBuilder<IConstructResource<T>>
namestring
GetOutput(IResourceBuilder<IConstructResource<T>>, string, ConstructOutputDelegate<T>)Section titled GetOutput(IResourceBuilder<IConstructResource<T>>, string, ConstructOutputDelegate<T>)extensionStackOutputReference
public static class CDKExtensions
{
public static StackOutputReference GetOutput<T>(
this IResourceBuilder<IConstructResource<T>> builder,
string name,
ConstructOutputDelegate<T> output)
{
// ...
}
}
builderIResourceBuilder<IConstructResource<T>>
namestring
WithEnvironment(IResourceBuilder<TDestination>, string, IResourceBuilder<IResourceWithConstruct<TConstruct>>, ConstructOutputDelegate<TConstruct>, string?)Section titled WithEnvironment(IResourceBuilder<TDestination>, string, IResourceBuilder<IResourceWithConstruct<TConstruct>>, ConstructOutputDelegate<TConstruct>, string?)extensionIResourceBuilder<TDestination>
public static class CDKExtensions
{
public static IResourceBuilder<TDestination> WithEnvironment<TDestination, TConstruct>(
this IResourceBuilder<TDestination> builder,
string name,
IResourceBuilder<IResourceWithConstruct<TConstruct>> construct,
ConstructOutputDelegate<TConstruct> outputDelegate,
string? outputName = null)
{
// ...
}
}
builderIResourceBuilder<TDestination>
namestring
constructIResourceBuilder<IResourceWithConstruct<TConstruct>>
outputDelegateConstructOutputDelegate<TConstruct>
outputNamestring?optional
WithReference(IResourceBuilder<TDestination>, IResourceBuilder<IResourceWithConstruct<TConstruct>>, ConstructOutputDelegate<TConstruct>, string, string?)Section titled WithReference(IResourceBuilder<TDestination>, IResourceBuilder<IResourceWithConstruct<TConstruct>>, ConstructOutputDelegate<TConstruct>, string, string?)extensionIResourceBuilder<TDestination>
public static class CDKExtensions
{
public static IResourceBuilder<TDestination> WithReference<TDestination, TConstruct>(
this IResourceBuilder<TDestination> builder,
IResourceBuilder<IResourceWithConstruct<TConstruct>> construct,
ConstructOutputDelegate<TConstruct> outputDelegate,
string outputName,
string? configSection = null)
{
// ...
}
}
builderIResourceBuilder<TDestination>
constructIResourceBuilder<IResourceWithConstruct<TConstruct>>
outputDelegateConstructOutputDelegate<TConstruct>
outputNamestring
configSectionstring?optional