Partner Topic Args
Event Grid Partner Topic. Uses Azure REST API version 2025-02-15. In version 2.x of the Azure Native provider, it used API version 2022-06-15. Other available API versions: 2022-06-15, 2023-06-01-preview, 2023-12-15-preview, 2024-06-01-preview, 2024-12-15-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native eventgrid [ApiVersion]
. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.
Example Usage
PartnerTopics_CreateOrUpdate
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var partnerTopic = new AzureNative.EventGrid.PartnerTopic("partnerTopic", new()
{
ExpirationTimeIfNotActivatedUtc = "2022-03-23T23:06:13.109Z",
Location = "westus2",
MessageForActivation = "Example message for activation",
PartnerRegistrationImmutableId = "6f541064-031d-4cc8-9ec3-a3b4fc0f7185",
PartnerTopicFriendlyDescription = "Example description",
PartnerTopicName = "examplePartnerTopicName1",
ResourceGroupName = "examplerg",
Source = "ContosoCorp.Accounts.User1",
});
});
package main
import (
eventgrid "github.com/pulumi/pulumi-azure-native-sdk/eventgrid/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := eventgrid.NewPartnerTopic(ctx, "partnerTopic", &eventgrid.PartnerTopicArgs{
ExpirationTimeIfNotActivatedUtc: pulumi.String("2022-03-23T23:06:13.109Z"),
Location: pulumi.String("westus2"),
MessageForActivation: pulumi.String("Example message for activation"),
PartnerRegistrationImmutableId: pulumi.String("6f541064-031d-4cc8-9ec3-a3b4fc0f7185"),
PartnerTopicFriendlyDescription: pulumi.String("Example description"),
PartnerTopicName: pulumi.String("examplePartnerTopicName1"),
ResourceGroupName: pulumi.String("examplerg"),
Source: pulumi.String("ContosoCorp.Accounts.User1"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.eventgrid.PartnerTopic;
import com.pulumi.azurenative.eventgrid.PartnerTopicArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var partnerTopic = new PartnerTopic("partnerTopic", PartnerTopicArgs.builder()
.expirationTimeIfNotActivatedUtc("2022-03-23T23:06:13.109Z")
.location("westus2")
.messageForActivation("Example message for activation")
.partnerRegistrationImmutableId("6f541064-031d-4cc8-9ec3-a3b4fc0f7185")
.partnerTopicFriendlyDescription("Example description")
.partnerTopicName("examplePartnerTopicName1")
.resourceGroupName("examplerg")
.source("ContosoCorp.Accounts.User1")
.build());
}
}
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:eventgrid:PartnerTopic examplePartnerTopicName1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerTopics/{partnerTopicName}
Constructors
Properties
Activation state of the partner topic.
Event Type information from the corresponding event channel.
Expiration time of the partner topic. If this timer expires while the partner topic is still never activated, the partner topic and corresponding event channel are deleted.
Identity information for the Partner Topic resource.
Context or helpful message that can be used during the approval process by the subscriber.
The immutableId of the corresponding partner registration.
Friendly description about the topic. This can be set by the publisher/partner to show custom description for the customer partner topic. This will be helpful to remove any ambiguity of the origin of creation of the partner topic for the customer.
Name of the partner topic.
The name of the resource group within the user's subscription.