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

com.pulumi.azurenative.eventhub.Namespace 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.azurenative.eventhub;

import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.eventhub.NamespaceArgs;
import com.pulumi.azurenative.eventhub.outputs.EncryptionResponse;
import com.pulumi.azurenative.eventhub.outputs.IdentityResponse;
import com.pulumi.azurenative.eventhub.outputs.PrivateEndpointConnectionResponse;
import com.pulumi.azurenative.eventhub.outputs.SkuResponse;
import com.pulumi.azurenative.eventhub.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.Boolean;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import javax.annotation.Nullable;

/**
 * Single Namespace item in List or Get Operation
 * Azure REST API version: 2022-10-01-preview. Prior API version in Azure Native 1.x: 2017-04-01.
 * 
 * Other available API versions: 2015-08-01, 2023-01-01-preview, 2024-01-01, 2024-05-01-preview.
 * ## Import
 * 
 * An existing resource can be imported using its type token, name, and identifier, e.g.
 * 
 * ```sh
 * $ pulumi import azure-native:eventhub:Namespace NamespaceSample /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName} 
 * ```
 * 
 */
@ResourceType(type="azure-native:eventhub:Namespace")
public class Namespace extends com.pulumi.resources.CustomResource {
    /**
     * Alternate name specified when alias and namespace names are same.
     * 
     */
    @Export(name="alternateName", refs={String.class}, tree="[0]")
    private Output alternateName;

    /**
     * @return Alternate name specified when alias and namespace names are same.
     * 
     */
    public Output> alternateName() {
        return Codegen.optional(this.alternateName);
    }
    /**
     * Cluster ARM ID of the Namespace.
     * 
     */
    @Export(name="clusterArmId", refs={String.class}, tree="[0]")
    private Output clusterArmId;

    /**
     * @return Cluster ARM ID of the Namespace.
     * 
     */
    public Output> clusterArmId() {
        return Codegen.optional(this.clusterArmId);
    }
    /**
     * The time the Namespace was created.
     * 
     */
    @Export(name="createdAt", refs={String.class}, tree="[0]")
    private Output createdAt;

    /**
     * @return The time the Namespace was created.
     * 
     */
    public Output createdAt() {
        return this.createdAt;
    }
    /**
     * This property disables SAS authentication for the Event Hubs namespace.
     * 
     */
    @Export(name="disableLocalAuth", refs={Boolean.class}, tree="[0]")
    private Output disableLocalAuth;

    /**
     * @return This property disables SAS authentication for the Event Hubs namespace.
     * 
     */
    public Output> disableLocalAuth() {
        return Codegen.optional(this.disableLocalAuth);
    }
    /**
     * Properties of BYOK Encryption description
     * 
     */
    @Export(name="encryption", refs={EncryptionResponse.class}, tree="[0]")
    private Output encryption;

    /**
     * @return Properties of BYOK Encryption description
     * 
     */
    public Output> encryption() {
        return Codegen.optional(this.encryption);
    }
    /**
     * Properties of BYOK Identity description
     * 
     */
    @Export(name="identity", refs={IdentityResponse.class}, tree="[0]")
    private Output identity;

    /**
     * @return Properties of BYOK Identity description
     * 
     */
    public Output> identity() {
        return Codegen.optional(this.identity);
    }
    /**
     * Value that indicates whether AutoInflate is enabled for eventhub namespace.
     * 
     */
    @Export(name="isAutoInflateEnabled", refs={Boolean.class}, tree="[0]")
    private Output isAutoInflateEnabled;

    /**
     * @return Value that indicates whether AutoInflate is enabled for eventhub namespace.
     * 
     */
    public Output> isAutoInflateEnabled() {
        return Codegen.optional(this.isAutoInflateEnabled);
    }
    /**
     * Value that indicates whether Kafka is enabled for eventhub namespace.
     * 
     */
    @Export(name="kafkaEnabled", refs={Boolean.class}, tree="[0]")
    private Output kafkaEnabled;

    /**
     * @return Value that indicates whether Kafka is enabled for eventhub namespace.
     * 
     */
    public Output> kafkaEnabled() {
        return Codegen.optional(this.kafkaEnabled);
    }
    /**
     * Resource location.
     * 
     */
    @Export(name="location", refs={String.class}, tree="[0]")
    private Output location;

    /**
     * @return Resource location.
     * 
     */
    public Output> location() {
        return Codegen.optional(this.location);
    }
    /**
     * Upper limit of throughput units when AutoInflate is enabled, value should be within 0 to 20 throughput units. ( '0' if AutoInflateEnabled = true)
     * 
     */
    @Export(name="maximumThroughputUnits", refs={Integer.class}, tree="[0]")
    private Output maximumThroughputUnits;

    /**
     * @return Upper limit of throughput units when AutoInflate is enabled, value should be within 0 to 20 throughput units. ( '0' if AutoInflateEnabled = true)
     * 
     */
    public Output> maximumThroughputUnits() {
        return Codegen.optional(this.maximumThroughputUnits);
    }
    /**
     * Identifier for Azure Insights metrics.
     * 
     */
    @Export(name="metricId", refs={String.class}, tree="[0]")
    private Output metricId;

    /**
     * @return Identifier for Azure Insights metrics.
     * 
     */
    public Output metricId() {
        return this.metricId;
    }
    /**
     * The minimum TLS version for the cluster to support, e.g. '1.2'
     * 
     */
    @Export(name="minimumTlsVersion", refs={String.class}, tree="[0]")
    private Output minimumTlsVersion;

    /**
     * @return The minimum TLS version for the cluster to support, e.g. '1.2'
     * 
     */
    public Output> minimumTlsVersion() {
        return Codegen.optional(this.minimumTlsVersion);
    }
    /**
     * The name of the resource
     * 
     */
    @Export(name="name", refs={String.class}, tree="[0]")
    private Output name;

    /**
     * @return The name of the resource
     * 
     */
    public Output name() {
        return this.name;
    }
    /**
     * List of private endpoint connections.
     * 
     */
    @Export(name="privateEndpointConnections", refs={List.class,PrivateEndpointConnectionResponse.class}, tree="[0,1]")
    private Output> privateEndpointConnections;

    /**
     * @return List of private endpoint connections.
     * 
     */
    public Output>> privateEndpointConnections() {
        return Codegen.optional(this.privateEndpointConnections);
    }
    /**
     * Provisioning state of the Namespace.
     * 
     */
    @Export(name="provisioningState", refs={String.class}, tree="[0]")
    private Output provisioningState;

    /**
     * @return Provisioning state of the Namespace.
     * 
     */
    public Output provisioningState() {
        return this.provisioningState;
    }
    /**
     * This determines if traffic is allowed over public network. By default it is enabled.
     * 
     */
    @Export(name="publicNetworkAccess", refs={String.class}, tree="[0]")
    private Output publicNetworkAccess;

    /**
     * @return This determines if traffic is allowed over public network. By default it is enabled.
     * 
     */
    public Output> publicNetworkAccess() {
        return Codegen.optional(this.publicNetworkAccess);
    }
    /**
     * Endpoint you can use to perform Service Bus operations.
     * 
     */
    @Export(name="serviceBusEndpoint", refs={String.class}, tree="[0]")
    private Output serviceBusEndpoint;

    /**
     * @return Endpoint you can use to perform Service Bus operations.
     * 
     */
    public Output serviceBusEndpoint() {
        return this.serviceBusEndpoint;
    }
    /**
     * Properties of sku resource
     * 
     */
    @Export(name="sku", refs={SkuResponse.class}, tree="[0]")
    private Output sku;

    /**
     * @return Properties of sku resource
     * 
     */
    public Output> sku() {
        return Codegen.optional(this.sku);
    }
    /**
     * Status of the Namespace.
     * 
     */
    @Export(name="status", refs={String.class}, tree="[0]")
    private Output status;

    /**
     * @return Status of the Namespace.
     * 
     */
    public Output status() {
        return this.status;
    }
    /**
     * The system meta data relating to this resource.
     * 
     */
    @Export(name="systemData", refs={SystemDataResponse.class}, tree="[0]")
    private Output systemData;

    /**
     * @return The system meta data relating to this resource.
     * 
     */
    public Output systemData() {
        return this.systemData;
    }
    /**
     * Resource tags.
     * 
     */
    @Export(name="tags", refs={Map.class,String.class}, tree="[0,1,1]")
    private Output> tags;

    /**
     * @return Resource tags.
     * 
     */
    public Output>> tags() {
        return Codegen.optional(this.tags);
    }
    /**
     * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
     * 
     */
    @Export(name="type", refs={String.class}, tree="[0]")
    private Output type;

    /**
     * @return The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
     * 
     */
    public Output type() {
        return this.type;
    }
    /**
     * The time the Namespace was updated.
     * 
     */
    @Export(name="updatedAt", refs={String.class}, tree="[0]")
    private Output updatedAt;

    /**
     * @return The time the Namespace was updated.
     * 
     */
    public Output updatedAt() {
        return this.updatedAt;
    }
    /**
     * Enabling this property creates a Standard Event Hubs Namespace in regions supported availability zones.
     * 
     */
    @Export(name="zoneRedundant", refs={Boolean.class}, tree="[0]")
    private Output zoneRedundant;

    /**
     * @return Enabling this property creates a Standard Event Hubs Namespace in regions supported availability zones.
     * 
     */
    public Output> zoneRedundant() {
        return Codegen.optional(this.zoneRedundant);
    }

    /**
     *
     * @param name The _unique_ name of the resulting resource.
     */
    public Namespace(java.lang.String name) {
        this(name, NamespaceArgs.Empty);
    }
    /**
     *
     * @param name The _unique_ name of the resulting resource.
     * @param args The arguments to use to populate this resource's properties.
     */
    public Namespace(java.lang.String name, NamespaceArgs 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 Namespace(java.lang.String name, NamespaceArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
        super("azure-native:eventhub:Namespace", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false);
    }

    private Namespace(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
        super("azure-native:eventhub:Namespace", name, null, makeResourceOptions(options, id), false);
    }

    private static NamespaceArgs makeArgs(NamespaceArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
        if (options != null && options.getUrn().isPresent()) {
            return null;
        }
        return args == null ? NamespaceArgs.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:eventhub/v20140901:Namespace").build()),
                Output.of(Alias.builder().type("azure-native:eventhub/v20150801:Namespace").build()),
                Output.of(Alias.builder().type("azure-native:eventhub/v20170401:Namespace").build()),
                Output.of(Alias.builder().type("azure-native:eventhub/v20180101preview:Namespace").build()),
                Output.of(Alias.builder().type("azure-native:eventhub/v20210101preview:Namespace").build()),
                Output.of(Alias.builder().type("azure-native:eventhub/v20210601preview:Namespace").build()),
                Output.of(Alias.builder().type("azure-native:eventhub/v20211101:Namespace").build()),
                Output.of(Alias.builder().type("azure-native:eventhub/v20220101preview:Namespace").build()),
                Output.of(Alias.builder().type("azure-native:eventhub/v20221001preview:Namespace").build()),
                Output.of(Alias.builder().type("azure-native:eventhub/v20230101preview:Namespace").build()),
                Output.of(Alias.builder().type("azure-native:eventhub/v20240101:Namespace").build()),
                Output.of(Alias.builder().type("azure-native:eventhub/v20240501preview:Namespace").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 Namespace get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
        return new Namespace(name, id, options);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy