PartnerTopicArgs

data class PartnerTopicArgs(val activationState: Output<Either<String, PartnerTopicActivationState>>? = null, val eventTypeInfo: Output<EventTypeInfoArgs>? = null, val expirationTimeIfNotActivatedUtc: Output<String>? = null, val identity: Output<IdentityInfoArgs>? = null, val location: Output<String>? = null, val messageForActivation: Output<String>? = null, val partnerRegistrationImmutableId: Output<String>? = null, val partnerTopicFriendlyDescription: Output<String>? = null, val partnerTopicName: Output<String>? = null, val resourceGroupName: Output<String>? = null, val source: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<PartnerTopicArgs>

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

Link copied to clipboard
constructor(activationState: Output<Either<String, PartnerTopicActivationState>>? = null, eventTypeInfo: Output<EventTypeInfoArgs>? = null, expirationTimeIfNotActivatedUtc: Output<String>? = null, identity: Output<IdentityInfoArgs>? = null, location: Output<String>? = null, messageForActivation: Output<String>? = null, partnerRegistrationImmutableId: Output<String>? = null, partnerTopicFriendlyDescription: Output<String>? = null, partnerTopicName: Output<String>? = null, resourceGroupName: Output<String>? = null, source: Output<String>? = null, tags: Output<Map<String, String>>? = null)

Properties

Link copied to clipboard
val activationState: Output<Either<String, PartnerTopicActivationState>>? = null

Activation state of the partner topic.

Link copied to clipboard
val eventTypeInfo: Output<EventTypeInfoArgs>? = null

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 identity: Output<IdentityInfoArgs>? = null

Identity information for the Partner Topic resource.

Link copied to clipboard
val location: Output<String>? = null

Location of the resource.

Link copied to clipboard
val messageForActivation: Output<String>? = null

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

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
val partnerTopicName: Output<String>? = null

Name of the partner topic.

Link copied to clipboard
val resourceGroupName: Output<String>? = null

The name of the resource group within the user's subscription.

Link copied to clipboard
val source: Output<String>? = null

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

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

Tags of the resource.

Functions

Link copied to clipboard
open override fun toJava(): PartnerTopicArgs