Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions content/docs/iac/concepts/functions/function-serialization.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ Because of this, almost all JavaScript values can be serialized with very few ex
Pulumi will attempt to reduce the size of a serialized object by removing parts of it that it can prove are not used in a program. For example:

```typescript
const obj = { foo() { console.log("foo called"); } bar() { console.log("bar called") } };
const obj = { foo() { console.log("foo called"); }, bar() { console.log("bar called") } };

const lambda = new aws.lambda.CallbackFunction("mylambda", {
callback: async e => {
Expand All @@ -173,7 +173,7 @@ const lambda = new aws.lambda.CallbackFunction("mylambda", {
In this code, only the `foo` property is used from `obj`. So Pulumi will serialize a value equivalent to `{ foo() { console.log("foo called"); } }`. However, if the code were:

```typescript
const obj = { foo() { console.log("foo called"); this.bar(); } bar() { console.log("bar called") } };
const obj = { foo() { console.log("foo called"); this.bar(); }, bar() { console.log("bar called") } };

const lambda = new aws.lambda.CallbackFunction("mylambda", {
callback: async e => {
Expand Down
4 changes: 2 additions & 2 deletions content/docs/iac/guides/clouds/aws/lambda.md
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ docsBucket.onObjectCreated("docsHandler", new aws.lambda.CallbackFunction("docsH
},

memorySize: 256 /* MB */,
});
}));
```

### Adding/removing files from a function bundle
Expand Down Expand Up @@ -578,7 +578,7 @@ docsBucket.onObjectCreated("docsHandler", (event: aws.s3.BucketEvent) => {
});

// Export the bucket name so it's easy to access.
export docsBucketName = docsBucket.bucketName;
export const docsBucketName = docsBucket.bucketName;
```

After deploying this code, you can run `pulumi logs --follow` to tail the logs:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ const (
"Value": { "Ref": "myVpc" }
}
}
}
}`
)

func main() {
Expand Down Expand Up @@ -543,7 +543,7 @@ func main() {
},
},
pulumi.Import(pulumi.ID("vpc-0e1a74859af1da17f")),
})
)
if err != nil {
return err
}
Expand Down
2 changes: 1 addition & 1 deletion content/docs/idp/concepts/private-registry.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ type PetAbstractedArgs struct {
}

func (f *PetAbstractedArgs) Annotate(a infer.Annotator) {
a.Describe(&f.Size, "This input represents the size of the pet name to generate. Valid values are "small", "medium", "large", "xlarge", or a number representing the length of the pet name.")
a.Describe(&f.Size, "This input represents the size of the pet name to generate. Valid values are \"small\", \"medium\", \"large\", \"xlarge\", or a number representing the length of the pet name.")
}

type PetAbstractedOutputs struct {
Expand Down
6 changes: 3 additions & 3 deletions content/docs/idp/guides/publishing-from-github-actions.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ import (
func TestConstruct(t * testing.T) {

// Configure Mocks: The provider is roughly the same as in our main.go
myProvider, err: = infer.NewProviderBuilder().
myProvider, err := infer.NewProviderBuilder().
WithNamespace("example").
WithComponents(
infer.ComponentF(NewStaticPage),
Expand All @@ -143,7 +143,7 @@ func TestConstruct(t * testing.T) {
require.NoError(t, err)

// Configure Mocks: The Server catches calls to create resources, and returns mock resources instead.
server, err: = integration.NewServer(
server, err := integration.NewServer(
t.Context(),
"example",
semver.MustParse("0.1.0"),
Expand All @@ -167,7 +167,7 @@ func TestConstruct(t * testing.T) {
// test the "static-page-component:index:StaticPage" component
// We try to construct a StaticPage component named "test-static-page"
// The mock will set the endpoint value
resp, err: = server.Construct(p.ConstructRequest {
resp, err := server.Construct(p.ConstructRequest {
Urn: "urn:pulumi:stack::project::static-page-component:index:StaticPage::test-static-page",
Inputs: property.NewMap(map[string] property.Value {
"indexContent": property.New("test content"),
Expand Down
Loading