sparse-intern-71089
09/15/2023, 3:11 PMlittle-library-54601
09/15/2023, 3:59 PMwitty-vegetable-61961
09/15/2023, 4:01 PMlittle-library-54601
09/15/2023, 4:08 PMclass Program
{
static Task<int> Main() => Deployment.RunAsync<ApiResourcesStack>();
}
The constructor of ApiResourcesStack
(the class I referred to as "primary") instantiates the classes defined in other files, e.g.
var sqlResources = new AzureSqlResources(rgName, envSuffix, envTagName);
Typically, the object returned from one of those new <class>
calls has properties passed to a subsequent new <class>
call.
That primary file does not itself define/create any resources - it relies on the other classes. But that primary class does handle the [Output]
properties.
Of course, this is just the way that I've chosen to do it. There are assuredly other ways.witty-vegetable-61961
09/15/2023, 4:09 PMlittle-library-54601
09/15/2023, 4:12 PMnew <PulumiResourceClass>("name", new <PulumiResourceClassArgs>
{
// set properties
});
IOW, basic C# using the Pulumi constructs, types, API, etc.stocky-restaurant-98004
09/15/2023, 5:29 PM