
com.pulumi.azurenative.eventgrid.PartnerTopic Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.azurenative.eventgrid;
import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.eventgrid.PartnerTopicArgs;
import com.pulumi.azurenative.eventgrid.outputs.EventTypeInfoResponse;
import com.pulumi.azurenative.eventgrid.outputs.IdentityInfoResponse;
import com.pulumi.azurenative.eventgrid.outputs.SystemDataResponse;
import com.pulumi.core.Alias;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Export;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import javax.annotation.Nullable;
/**
* 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
*
*
* {@code
* 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}
* ```
*
*/
@ResourceType(type="azure-native:eventgrid:PartnerTopic")
public class PartnerTopic extends com.pulumi.resources.CustomResource {
/**
* Activation state of the partner topic.
*
*/
@Export(name="activationState", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> activationState;
/**
* @return Activation state of the partner topic.
*
*/
public Output> activationState() {
return Codegen.optional(this.activationState);
}
/**
* Event Type information from the corresponding event channel.
*
*/
@Export(name="eventTypeInfo", refs={EventTypeInfoResponse.class}, tree="[0]")
private Output* @Nullable */ EventTypeInfoResponse> eventTypeInfo;
/**
* @return Event Type information from the corresponding event channel.
*
*/
public Output> eventTypeInfo() {
return Codegen.optional(this.eventTypeInfo);
}
/**
* 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.
*
*/
@Export(name="expirationTimeIfNotActivatedUtc", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> expirationTimeIfNotActivatedUtc;
/**
* @return 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.
*
*/
public Output> expirationTimeIfNotActivatedUtc() {
return Codegen.optional(this.expirationTimeIfNotActivatedUtc);
}
/**
* Identity information for the Partner Topic resource.
*
*/
@Export(name="identity", refs={IdentityInfoResponse.class}, tree="[0]")
private Output* @Nullable */ IdentityInfoResponse> identity;
/**
* @return Identity information for the Partner Topic resource.
*
*/
public Output> identity() {
return Codegen.optional(this.identity);
}
/**
* Location of the resource.
*
*/
@Export(name="location", refs={String.class}, tree="[0]")
private Output location;
/**
* @return Location of the resource.
*
*/
public Output location() {
return this.location;
}
/**
* Context or helpful message that can be used during the approval process by the subscriber.
*
*/
@Export(name="messageForActivation", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> messageForActivation;
/**
* @return Context or helpful message that can be used during the approval process by the subscriber.
*
*/
public Output> messageForActivation() {
return Codegen.optional(this.messageForActivation);
}
/**
* Name of the resource.
*
*/
@Export(name="name", refs={String.class}, tree="[0]")
private Output name;
/**
* @return Name of the resource.
*
*/
public Output name() {
return this.name;
}
/**
* The immutableId of the corresponding partner registration.
*
*/
@Export(name="partnerRegistrationImmutableId", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> partnerRegistrationImmutableId;
/**
* @return The immutableId of the corresponding partner registration.
*
*/
public Output> partnerRegistrationImmutableId() {
return Codegen.optional(this.partnerRegistrationImmutableId);
}
/**
* 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.
*
*/
@Export(name="partnerTopicFriendlyDescription", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> partnerTopicFriendlyDescription;
/**
* @return 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.
*
*/
public Output> partnerTopicFriendlyDescription() {
return Codegen.optional(this.partnerTopicFriendlyDescription);
}
/**
* Provisioning state of the partner topic.
*
*/
@Export(name="provisioningState", refs={String.class}, tree="[0]")
private Output provisioningState;
/**
* @return Provisioning state of the partner topic.
*
*/
public Output provisioningState() {
return this.provisioningState;
}
/**
* Source associated with this partner topic. This represents a unique partner resource.
*
*/
@Export(name="source", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> source;
/**
* @return Source associated with this partner topic. This represents a unique partner resource.
*
*/
public Output> source() {
return Codegen.optional(this.source);
}
/**
* The system metadata relating to Partner Topic resource.
*
*/
@Export(name="systemData", refs={SystemDataResponse.class}, tree="[0]")
private Output systemData;
/**
* @return The system metadata relating to Partner Topic resource.
*
*/
public Output systemData() {
return this.systemData;
}
/**
* Tags of the resource.
*
*/
@Export(name="tags", refs={Map.class,String.class}, tree="[0,1,1]")
private Output* @Nullable */ Map> tags;
/**
* @return Tags of the resource.
*
*/
public Output>> tags() {
return Codegen.optional(this.tags);
}
/**
* Type of the resource.
*
*/
@Export(name="type", refs={String.class}, tree="[0]")
private Output type;
/**
* @return Type of the resource.
*
*/
public Output type() {
return this.type;
}
/**
*
* @param name The _unique_ name of the resulting resource.
*/
public PartnerTopic(java.lang.String name) {
this(name, PartnerTopicArgs.Empty);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
*/
public PartnerTopic(java.lang.String name, PartnerTopicArgs args) {
this(name, args, null);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
* @param options A bag of options that control this resource's behavior.
*/
public PartnerTopic(java.lang.String name, PartnerTopicArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure-native:eventgrid:PartnerTopic", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false);
}
private PartnerTopic(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure-native:eventgrid:PartnerTopic", name, null, makeResourceOptions(options, id), false);
}
private static PartnerTopicArgs makeArgs(PartnerTopicArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
if (options != null && options.getUrn().isPresent()) {
return null;
}
return args == null ? PartnerTopicArgs.Empty : args;
}
private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) {
var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder()
.version(Utilities.getVersion())
.aliases(List.of(
Output.of(Alias.builder().type("azure-native:eventgrid/v20211015preview:PartnerTopic").build()),
Output.of(Alias.builder().type("azure-native:eventgrid/v20220615:PartnerTopic").build()),
Output.of(Alias.builder().type("azure-native:eventgrid/v20230601preview:PartnerTopic").build()),
Output.of(Alias.builder().type("azure-native:eventgrid/v20231215preview:PartnerTopic").build()),
Output.of(Alias.builder().type("azure-native:eventgrid/v20240601preview:PartnerTopic").build())
))
.build();
return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id);
}
/**
* Get an existing Host resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param options Optional settings to control the behavior of the CustomResource.
*/
public static PartnerTopic get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
return new PartnerTopic(name, id, options);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy