Skip to content

Commit

Permalink
make build_sdks
Browse files Browse the repository at this point in the history
  • Loading branch information
pulumi-bot committed Nov 6, 2024
1 parent 43193b1 commit 5d474c9
Show file tree
Hide file tree
Showing 25 changed files with 104 additions and 122 deletions.
36 changes: 16 additions & 20 deletions docs/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,11 @@ const server = new random.RandomId("server", {
},
byteLength: 8,
});
const serverInstance = new aws.ec2.Instance("server", {
const serverInstance = new aws.ec2/instance.Instance("server", {
tags: {
Name: pulumi.interpolate`web-server ${server.hex}`,
Name: `web-server ${server.hex}`,
},
ami: server.keepers.apply(keepers => keepers?.amiId),
ami: server.keepers?.amiId,
});
```
{{% /choosable %}}
Expand All @@ -81,11 +81,11 @@ server = random.RandomId("server",
"ami_id": ami_id,
},
byte_length=8)
server_instance = aws.ec2.Instance("server",
server_instance = aws.ec2.instance.Instance("server",
tags={
"Name": server.hex.apply(lambda hex: f"web-server {hex}"),
Name: fweb-server {server.hex},
},
ami=server.keepers["amiId"])
ami=server.keepers.ami_id)
```
{{% /choosable %}}
{{% choosable language csharp %}}
Expand All @@ -107,13 +107,13 @@ return await Deployment.RunAsync(() =>
ByteLength = 8,
});

var serverInstance = new Aws.Ec2.Instance("server", new()
var serverInstance = new Aws.Ec2.Instance.Instance("server", new()
{
Tags =
{
{ "Name", server.Hex.Apply(hex => $"web-server {hex}") },
{ "Name", $"web-server {server.Hex}" },
},
Ami = server.Keepers.Apply(keepers => keepers?.AmiId),
Ami = server.Keepers?.AmiId,
});

});
Expand All @@ -127,7 +127,7 @@ package main
import (
"fmt"

"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/ec2"
"github.com/pulumi/pulumi-aws/sdk/go/aws/ec2"
"github.com/pulumi/pulumi-random/sdk/v4/go/random"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
Expand All @@ -143,15 +143,11 @@ func main() {
if err != nil {
return err
}
_, err = ec2.NewInstance(ctx, "server", &ec2.InstanceArgs{
Tags: pulumi.StringMap{
"Name": server.Hex.ApplyT(func(hex string) (string, error) {
return fmt.Sprintf("web-server %v", hex), nil
}).(pulumi.StringOutput),
_, err = ec2 / instance.NewInstance(ctx, "server", &ec2/instance.InstanceArgs{
Tags: map[string]interface{}{
"Name": pulumi.Sprintf("web-server %v", server.Hex),
},
Ami: pulumi.String(server.Keepers.ApplyT(func(keepers map[string]string) (*string, error) {
return &keepers.AmiId, nil
}).(pulumi.StringPtrOutput)),
Ami: server.Keepers.AmiId,
})
if err != nil {
return err
Expand Down Expand Up @@ -209,8 +205,8 @@ public class App {
.build());

var serverInstance = new Instance("serverInstance", InstanceArgs.builder()
.tags(Map.of("Name", server.hex().applyValue(hex -> String.format("web-server %s", hex))))
.ami(server.keepers().applyValue(keepers -> keepers.amiId()))
.tags(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.ami(server.keepers().amiId())
.build());

}
Expand Down
6 changes: 3 additions & 3 deletions sdk/dotnet/RandomId.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions sdk/dotnet/RandomInteger.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions sdk/dotnet/RandomPassword.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions sdk/dotnet/RandomPet.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion sdk/dotnet/RandomShuffle.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 5 additions & 9 deletions sdk/go/random/randomId.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 8 additions & 10 deletions sdk/go/random/randomInteger.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions sdk/go/random/randomPassword.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 5 additions & 9 deletions sdk/go/random/randomPet.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions sdk/go/random/randomShuffle.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion sdk/java/build.gradle

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions sdk/java/src/main/java/com/pulumi/random/RandomId.java

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 2 additions & 6 deletions sdk/java/src/main/java/com/pulumi/random/RandomInteger.java

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions sdk/java/src/main/java/com/pulumi/random/RandomPet.java

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions sdk/nodejs/randomId.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions sdk/nodejs/randomInteger.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions sdk/nodejs/randomPassword.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 5d474c9

Please sign in to comment.