pulumi/tests/testdata/codegen/aws-secret-pp/go/aws-secret.go

19 lines
372 B
Go

package main
import (
"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/rds"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := rds.NewCluster(ctx, "dbCluster", &rds.ClusterArgs{
MasterPassword: pulumi.ToSecret("foobar").(pulumi.StringOutput),
})
if err != nil {
return err
}
return nil
})
}