Skip to content

Commit

Permalink
Add CSharp example language chooser.
Browse files Browse the repository at this point in the history
  • Loading branch information
wparad committed May 31, 2023
1 parent 828349a commit 5e8b6fc
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion docs/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ import (

func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
authressRole, err := Authress.Role(ctx, "sks-cluster", &Authress.RoleArgs{
authressRole, err := Authress.Role(ctx, "TestRole", &Authress.RoleArgs{
RoleId: pulumi.String("test-role"),
Name: pulumi.String("Test Role"),
})
Expand All @@ -98,4 +98,22 @@ func main() {

{{% /choosable %}}

{{% choosable language go %}}

```csharp

using Pulumi;
using Authress = Pulumi.Authress;

await Deployment.RunAsync(() =>
{
var role = new Authress.Role("TestRole", new Authress.RoleArgs
{
RoleId = "test-role",
Name = "Test Role"
});
});

{{% /choosable %}}

{{< /chooser >}}

0 comments on commit 5e8b6fc

Please sign in to comment.