Skip to content

fields are statically typed. Make sure all fields are of the correct type #868

@raywonkari

Description

@raywonkari

Describe what happened

Trying to create a NotificationDestination using Pulumi Golang, but seeing this error.

using latest version
github.com/pulumi/pulumi-newrelic/sdk/v5 v5.31.0

error: 1 error occurred:
    * 403 response returned: NOTICE: fields are statically typed. Make sure all fields are of the correct type

Sample program

notificationDestination, err := newrelic.NewNotificationDestination(ctx, destinationName, &newrelic.NotificationDestinationArgs{
	AccountId: pulumi.String(accountId),
	Name:      pulumi.String(destinationName),
	Type:      pulumi.String("WEBHOOK"),
	Properties: newrelic.NotificationDestinationPropertyArray{
		&newrelic.NotificationDestinationPropertyArgs{
			Key:   pulumi.String("url"),
			Value: pulumi.String(webhookUrl),
		},
	},
})

Log output

No response

Affected Resource(s)

No response

Output of pulumi about

some fields are masked

CLI          
Version      3.131.0
Go Version   go1.23.0
Go Compiler  gc

Plugins
KIND      NAME        VERSION
resource  archive     0.0.6
resource  aws         6.29.0
resource  aws-native  0.13.0
resource  cloudflare  5.16.0
resource  cloudflare  3.5.0
resource  command     0.11.1
resource  fastly      8.4.1
language  go          unknown
resource  kubernetes  4.9.1
resource  newrelic    5.31.0
resource  random      4.2.0
resource  tailscale   0.13.3

Host     
OS       darwin
Version  14.6.1
Arch     arm64

This project is written in go: executable='/opt/homebrew/bin/go' version='go version go1.22.2 darwin/arm64'

Current Stack: xxxxxxxxxxx

TYPE                       URN
pulumi:pulumi:Stack        urn:pulumi:newrelic::xxxxxxxx::pulumi:pulumi:Stack::xxxxxxxx-newrelic
pulumi:providers:newrelic  urn:pulumi:newrelic::xxxxxxxx::pulumi:providers:newrelic::default_5_31_0
pulumi:providers:newrelic  urn:pulumi:newrelic::xxxxxxxx::pulumi:providers:newrelic::default_5_17_0


Found no pending operations associated with newrelic

Backend        
Name           work.local
URL            s3://xxxxxxxx
User           raywonkari
Organizations  
Token type     personal

Dependencies:
NAME                                        VERSION
github.com/aws/aws-sdk-go-v2                v1.21.2
github.com/aws/aws-sdk-go-v2/config         v1.15.15
github.com/aws/aws-sdk-go-v2/service/ecs    v1.9.0
github.com/pulumi/pulumi-aws-native/sdk     v0.13.0
github.com/pulumi/pulumi-random/sdk/v4      v4.2.0
github.com/pulumi/pulumi/sdk/v3             v3.129.0
github.com/stretchr/testify                 v1.9.0
github.com/aws/aws-sdk-go                   v1.44.298
github.com/chartmogul/chartmogul-go/v3      v3.1.1
github.com/docker/docker                    v24.0.7+incompatible
github.com/go-git/go-git/v5                 v5.12.0
github.com/opencontainers/image-spec        v1.0.2
github.com/pulumi/pulumi-archive/sdk        v0.0.6
github.com/pulumi/pulumi-aws/sdk/v6         v6.29.0
github.com/pulumi/pulumi-cloudflare/sdk/v5  v5.16.0
github.com/pulumi/pulumi-command/sdk        v0.11.1
github.com/pulumi/pulumi-fastly/sdk/v8      v8.4.1
github.com/pulumi/pulumi-kubernetes/sdk/v4  v4.9.1
github.com/pulumi/pulumi-newrelic/sdk/v5    v5.31.0
github.com/pulumi/pulumi-tailscale/sdk      v0.13.3
github.com/tdewolff/minify/v2               v2.20.16
github.com/pulumi/pulumi-cloudflare/sdk/v3  v3.5.0

Pulumi locates its logs in /var/folders/m_/y8fbgmsd693cgpl3lh22hqth0000gn/T/ by default

Additional context

No response

Contributing

Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).

Metadata

Metadata

Assignees

No one assigned

    Labels

    awaiting-upstreamThe issue cannot be resolved without action in another repository (may be owned by Pulumi).blockedThe issue cannot be resolved without 3rd party action.kind/bugSome behavior is incorrect or out of spec

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions