PartnerTopic

class PartnerTopic : KotlinCustomResource

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/v3"
"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}

Properties

Link copied to clipboard
val activationState: Output<String>?

Activation state of the partner topic.

Link copied to clipboard
val azureApiVersion: Output<String>

The Azure API version of the resource.

Link copied to clipboard

Event Type information from the corresponding event channel.

Link copied to clipboard

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.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard

Identity information for the Partner Topic resource.

Link copied to clipboard
val location: Output<String>

Location of the resource.

Link copied to clipboard

Context or helpful message that can be used during the approval process by the subscriber.

Link copied to clipboard
val name: Output<String>

Name of the resource.

Link copied to clipboard

The immutableId of the corresponding partner registration.

Link copied to clipboard

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.

Link copied to clipboard

Provisioning state of the partner topic.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val source: Output<String>?

Source associated with this partner topic. This represents a unique partner resource.

Link copied to clipboard

The system metadata relating to the Event Grid resource.

Link copied to clipboard
val tags: Output<Map<String, String>>?

Tags of the resource.

Link copied to clipboard
val type: Output<String>

Type of the resource.

Link copied to clipboard
val urn: Output<String>