Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.eventgrid.kotlin
import com.pulumi.azurenative.eventgrid.PartnerTopicArgs.builder
import com.pulumi.azurenative.eventgrid.kotlin.enums.PartnerTopicActivationState
import com.pulumi.azurenative.eventgrid.kotlin.inputs.EventTypeInfoArgs
import com.pulumi.azurenative.eventgrid.kotlin.inputs.EventTypeInfoArgsBuilder
import com.pulumi.azurenative.eventgrid.kotlin.inputs.IdentityInfoArgs
import com.pulumi.azurenative.eventgrid.kotlin.inputs.IdentityInfoArgsBuilder
import com.pulumi.core.Either
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
import kotlin.jvm.JvmName
/**
* Event Grid Partner Topic.
* Azure REST API version: 2022-06-15. Prior API version in Azure Native 1.x: 2021-10-15-preview.
* Other available API versions: 2023-06-01-preview, 2023-12-15-preview, 2024-06-01-preview.
* ## Example Usage
* ### PartnerTopics_CreateOrUpdate
* ```csharp
* 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",
* });
* });
* ```
* ```go
* 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
* })
* }
* ```
* ```java
* 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.
* ```sh
* $ pulumi import azure-native:eventgrid:PartnerTopic examplePartnerTopicName1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerTopics/{partnerTopicName}
* ```
* @property activationState Activation state of the partner topic.
* @property eventTypeInfo Event Type information from the corresponding event channel.
* @property expirationTimeIfNotActivatedUtc 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.
* @property identity Identity information for the Partner Topic resource.
* @property location Location of the resource.
* @property messageForActivation Context or helpful message that can be used during the approval process by the subscriber.
* @property partnerRegistrationImmutableId The immutableId of the corresponding partner registration.
* @property partnerTopicFriendlyDescription 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.
* @property partnerTopicName Name of the partner topic.
* @property resourceGroupName The name of the resource group within the user's subscription.
* @property source Source associated with this partner topic. This represents a unique partner resource.
* @property tags Tags of the resource.
*/
public data class PartnerTopicArgs(
public val activationState: Output>? = null,
public val eventTypeInfo: Output? = null,
public val expirationTimeIfNotActivatedUtc: Output? = null,
public val identity: Output? = null,
public val location: Output? = null,
public val messageForActivation: Output? = null,
public val partnerRegistrationImmutableId: Output? = null,
public val partnerTopicFriendlyDescription: Output? = null,
public val partnerTopicName: Output? = null,
public val resourceGroupName: Output? = null,
public val source: Output? = null,
public val tags: Output