All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azure.eventhub.Domain Maven / Gradle / Ivy

// *** 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.azure.eventhub;

import com.pulumi.azure.Utilities;
import com.pulumi.azure.eventhub.DomainArgs;
import com.pulumi.azure.eventhub.inputs.DomainState;
import com.pulumi.azure.eventhub.outputs.DomainIdentity;
import com.pulumi.azure.eventhub.outputs.DomainInboundIpRule;
import com.pulumi.azure.eventhub.outputs.DomainInputMappingDefaultValues;
import com.pulumi.azure.eventhub.outputs.DomainInputMappingFields;
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.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import javax.annotation.Nullable;

/**
 * Manages an EventGrid Domain
 * 
 * ## Example Usage
 * 
 * <!--Start PulumiCodeChooser -->
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azure.core.ResourceGroup;
 * import com.pulumi.azure.core.ResourceGroupArgs;
 * import com.pulumi.azure.eventgrid.Domain;
 * import com.pulumi.azure.eventgrid.DomainArgs;
 * 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 example = new ResourceGroup("example", ResourceGroupArgs.builder()
 *             .name("example-resources")
 *             .location("West Europe")
 *             .build());
 * 
 *         var exampleDomain = new Domain("exampleDomain", DomainArgs.builder()
 *             .name("my-eventgrid-domain")
 *             .location(example.location())
 *             .resourceGroupName(example.name())
 *             .tags(Map.of("environment", "Production"))
 *             .build());
 * 
 *     }
 * }
 * }
 * 
* <!--End PulumiCodeChooser --> * * ## Import * * EventGrid Domains can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:eventhub/domain:Domain domain1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.EventGrid/domains/domain1 * ``` * * @deprecated * azure.eventhub.Domain has been deprecated in favor of azure.eventgrid.Domain * */ @Deprecated /* azure.eventhub.Domain has been deprecated in favor of azure.eventgrid.Domain */ @ResourceType(type="azure:eventhub/domain:Domain") public class Domain extends com.pulumi.resources.CustomResource { /** * Whether to create the domain topic when the first event subscription at the scope of the domain topic is created. Defaults to `true`. * */ @Export(name="autoCreateTopicWithFirstSubscription", refs={Boolean.class}, tree="[0]") private Output autoCreateTopicWithFirstSubscription; /** * @return Whether to create the domain topic when the first event subscription at the scope of the domain topic is created. Defaults to `true`. * */ public Output> autoCreateTopicWithFirstSubscription() { return Codegen.optional(this.autoCreateTopicWithFirstSubscription); } /** * Whether to delete the domain topic when the last event subscription at the scope of the domain topic is deleted. Defaults to `true`. * */ @Export(name="autoDeleteTopicWithLastSubscription", refs={Boolean.class}, tree="[0]") private Output autoDeleteTopicWithLastSubscription; /** * @return Whether to delete the domain topic when the last event subscription at the scope of the domain topic is deleted. Defaults to `true`. * */ public Output> autoDeleteTopicWithLastSubscription() { return Codegen.optional(this.autoDeleteTopicWithLastSubscription); } /** * The Endpoint associated with the EventGrid Domain. * */ @Export(name="endpoint", refs={String.class}, tree="[0]") private Output endpoint; /** * @return The Endpoint associated with the EventGrid Domain. * */ public Output endpoint() { return this.endpoint; } /** * An `identity` block as defined below. * */ @Export(name="identity", refs={DomainIdentity.class}, tree="[0]") private Output identity; /** * @return An `identity` block as defined below. * */ public Output> identity() { return Codegen.optional(this.identity); } /** * One or more `inbound_ip_rule` blocks as defined below. * */ @Export(name="inboundIpRules", refs={List.class,DomainInboundIpRule.class}, tree="[0,1]") private Output> inboundIpRules; /** * @return One or more `inbound_ip_rule` blocks as defined below. * */ public Output>> inboundIpRules() { return Codegen.optional(this.inboundIpRules); } /** * A `input_mapping_default_values` block as defined below. Changing this forces a new resource to be created. * */ @Export(name="inputMappingDefaultValues", refs={DomainInputMappingDefaultValues.class}, tree="[0]") private Output inputMappingDefaultValues; /** * @return A `input_mapping_default_values` block as defined below. Changing this forces a new resource to be created. * */ public Output> inputMappingDefaultValues() { return Codegen.optional(this.inputMappingDefaultValues); } /** * A `input_mapping_fields` block as defined below. Changing this forces a new resource to be created. * */ @Export(name="inputMappingFields", refs={DomainInputMappingFields.class}, tree="[0]") private Output inputMappingFields; /** * @return A `input_mapping_fields` block as defined below. Changing this forces a new resource to be created. * */ public Output> inputMappingFields() { return Codegen.optional(this.inputMappingFields); } /** * Specifies the schema in which incoming events will be published to this domain. Allowed values are `CloudEventSchemaV1_0`, `CustomEventSchema`, or `EventGridSchema`. Defaults to `EventGridSchema`. Changing this forces a new resource to be created. * */ @Export(name="inputSchema", refs={String.class}, tree="[0]") private Output inputSchema; /** * @return Specifies the schema in which incoming events will be published to this domain. Allowed values are `CloudEventSchemaV1_0`, `CustomEventSchema`, or `EventGridSchema`. Defaults to `EventGridSchema`. Changing this forces a new resource to be created. * */ public Output> inputSchema() { return Codegen.optional(this.inputSchema); } /** * Whether local authentication methods is enabled for the EventGrid Domain. Defaults to `true`. * */ @Export(name="localAuthEnabled", refs={Boolean.class}, tree="[0]") private Output localAuthEnabled; /** * @return Whether local authentication methods is enabled for the EventGrid Domain. Defaults to `true`. * */ public Output> localAuthEnabled() { return Codegen.optional(this.localAuthEnabled); } /** * Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. * */ @Export(name="location", refs={String.class}, tree="[0]") private Output location; /** * @return Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. * */ public Output location() { return this.location; } /** * Specifies the name of the EventGrid Domain resource. Changing this forces a new resource to be created. * */ @Export(name="name", refs={String.class}, tree="[0]") private Output name; /** * @return Specifies the name of the EventGrid Domain resource. Changing this forces a new resource to be created. * */ public Output name() { return this.name; } /** * The Primary Shared Access Key associated with the EventGrid Domain. * */ @Export(name="primaryAccessKey", refs={String.class}, tree="[0]") private Output primaryAccessKey; /** * @return The Primary Shared Access Key associated with the EventGrid Domain. * */ public Output primaryAccessKey() { return this.primaryAccessKey; } /** * Whether or not public network access is allowed for this server. Defaults to `true`. * */ @Export(name="publicNetworkAccessEnabled", refs={Boolean.class}, tree="[0]") private Output publicNetworkAccessEnabled; /** * @return Whether or not public network access is allowed for this server. Defaults to `true`. * */ public Output> publicNetworkAccessEnabled() { return Codegen.optional(this.publicNetworkAccessEnabled); } /** * The name of the resource group in which the EventGrid Domain exists. Changing this forces a new resource to be created. * */ @Export(name="resourceGroupName", refs={String.class}, tree="[0]") private Output resourceGroupName; /** * @return The name of the resource group in which the EventGrid Domain exists. Changing this forces a new resource to be created. * */ public Output resourceGroupName() { return this.resourceGroupName; } /** * The Secondary Shared Access Key associated with the EventGrid Domain. * */ @Export(name="secondaryAccessKey", refs={String.class}, tree="[0]") private Output secondaryAccessKey; /** * @return The Secondary Shared Access Key associated with the EventGrid Domain. * */ public Output secondaryAccessKey() { return this.secondaryAccessKey; } /** * A mapping of tags to assign to the resource. * */ @Export(name="tags", refs={Map.class,String.class}, tree="[0,1,1]") private Output> tags; /** * @return A mapping of tags to assign to the resource. * */ public Output>> tags() { return Codegen.optional(this.tags); } /** * * @param name The _unique_ name of the resulting resource. */ public Domain(java.lang.String name) { this(name, DomainArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public Domain(java.lang.String name, DomainArgs 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 Domain(java.lang.String name, DomainArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure:eventhub/domain:Domain", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private Domain(java.lang.String name, Output id, @Nullable DomainState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure:eventhub/domain:Domain", name, state, makeResourceOptions(options, id), false); } private static DomainArgs makeArgs(DomainArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? DomainArgs.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()) .additionalSecretOutputs(List.of( "primaryAccessKey", "secondaryAccessKey" )) .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 state * @param options Optional settings to control the behavior of the CustomResource. */ public static Domain get(java.lang.String name, Output id, @Nullable DomainState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new Domain(name, id, state, options); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy