sparse-intern-71089
03/29/2021, 2:15 PMbrave-planet-10645
03/29/2021, 2:25 PMbrave-planet-10645
03/29/2021, 2:26 PMbrave-planet-10645
03/29/2021, 2:27 PMglamorous-helmet-50600
03/29/2021, 2:27 PMglamorous-helmet-50600
03/29/2021, 2:29 PMglamorous-helmet-50600
03/29/2021, 2:32 PMbrave-planet-10645
03/29/2021, 2:33 PMdependsOn
brave-planet-10645
03/29/2021, 2:34 PMbrave-planet-10645
03/29/2021, 2:35 PMglamorous-helmet-50600
03/29/2021, 2:40 PMglamorous-helmet-50600
03/29/2021, 2:41 PMbrave-planet-10645
03/29/2021, 2:46 PMbrave-planet-10645
03/29/2021, 2:46 PMglamorous-helmet-50600
03/29/2021, 2:47 PMbrave-planet-10645
03/29/2021, 2:47 PMglamorous-helmet-50600
03/29/2021, 2:50 PMvar resourceGroup = new AzureNextGen.Resources.Latest.ResourceGroup("rg-test-dev", new AzureNextGen.Resources.Latest.ResourceGroupArgs {
Location = location,
ResourceGroupName = "rg-test-dev"
});
var myComponent = new MyComponent("my-component", new ComponentResourceOptions {
DependsOn = new InputList<Resource> {
resourceGroup
}
});
So now within MyComponent class, would it be a matter of iterating the inputList and checking for a ResourceGroup type of entry so that I can apply some logic and decide if I need to create one (if none was passed)?glamorous-helmet-50600
03/29/2021, 2:51 PMbrave-planet-10645
03/29/2021, 2:54 PMResourceGroupName
(for example) and then in myComponent you could run the GetResourceGroup method on the list of resourcegroup names... and you could just do this as a List<string>
rather than using our InputList<T>
classglamorous-helmet-50600
03/29/2021, 2:57 PM