hello - i'm working on automating new relic alerts...
# general
q
hello - i'm working on automating new relic alerts using the pulumi provider and had a question about one of the provided examples in code. details in thread
The example provided in the code throws an error around
fooAlertChannel.id
and
fooAlertPolicy.id
. here's the sample code provided
Copy code
const fooAlertChannel = new newrelic.AlertChannel("foo", {
        configuration: {
            include_json_attachment: "1",
            recipients: "<mailto:foo@example.com|foo@example.com>",
        },
        type: "email",
    });
const fooAlertPolicy = new newrelic.AlertPolicy("foo", {});
const fooAlertPolicyChannel = new newrelic.AlertPolicyChannel("foo", {
    channelId: fooAlertChannel.id,
    policyId: fooAlertPolicy.id,
});
and here's the error
Copy code
Type 'Output<string>' is not assignable to type 'Input<number>'.
  Type 'Output<string>' is not assignable to type 'OutputInstance<number>'.
how should i reference
fooAlertChannel.id
and
fooAlertPolicy.id
?