pulumi/tests/testdata/codegen/logical-name-pp/dotnet/logical-name.cs

22 lines
566 B
C#
Raw Normal View History

using System.Collections.Generic;
2023-03-24 11:43:46 +00:00
using System.Linq;
using Pulumi;
using Random = Pulumi.Random;
return await Deployment.RunAsync(() =>
{
2023-01-04 22:12:40 +00:00
var config = new Config();
var configLexicalName = config.Require("cC-Charlie_charlie.😃⁉️");
var resourceLexicalName = new Random.RandomPet("aA-Alpha_alpha.🤯⁉️", new()
{
Prefix = configLexicalName,
});
return new Dictionary<string, object?>
{
["bB-Beta_beta.💜⁉"] = resourceLexicalName.Id,
["dD-Delta_delta.🔥⁉"] = resourceLexicalName.Id,
};
});