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

com.pulumi.azurenative.servicebus.Namespace Maven / Gradle / Ivy

There is a newer version: 2.78.0
Show newest version
// *** 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.servicebus;

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

/**
 * Description of a namespace resource.
 * Azure REST API version: 2022-01-01-preview. Prior API version in Azure Native 1.x: 2017-04-01.
 * 
 * Other available API versions: 2015-08-01, 2022-10-01-preview, 2023-01-01-preview, 2024-01-01.
 * 
 * ## Example Usage
 * ### NameSpaceCreate
 * 
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.servicebus.Namespace;
 * import com.pulumi.azurenative.servicebus.NamespaceArgs;
 * import com.pulumi.azurenative.servicebus.inputs.SBSkuArgs;
 * 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 namespace = new Namespace("namespace", NamespaceArgs.builder()
 *             .location("South Central US")
 *             .namespaceName("sdk-Namespace2924")
 *             .resourceGroupName("ArunMonocle")
 *             .sku(SBSkuArgs.builder()
 *                 .name("Standard")
 *                 .tier("Standard")
 *                 .build())
 *             .tags(Map.ofEntries(
 *                 Map.entry("tag1", "value1"),
 *                 Map.entry("tag2", "value2")
 *             ))
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* * ## Import * * An existing resource can be imported using its type token, name, and identifier, e.g. * * ```sh * $ pulumi import azure-native:servicebus:Namespace sdk-Namespace-2924 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName} * ``` * */ @ResourceType(type="azure-native:servicebus:Namespace") public class Namespace extends com.pulumi.resources.CustomResource { /** * Alternate name for namespace * */ @Export(name="alternateName", refs={String.class}, tree="[0]") private Output alternateName; /** * @return Alternate name for namespace * */ public Output> alternateName() { return Codegen.optional(this.alternateName); } /** * 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 Service Bus namespace. * */ @Export(name="disableLocalAuth", refs={Boolean.class}, tree="[0]") private Output disableLocalAuth; /** * @return This property disables SAS authentication for the Service Bus 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); } /** * The Geo-location where the resource lives * */ @Export(name="location", refs={String.class}, tree="[0]") private Output location; /** * @return The Geo-location where the resource lives * */ public Output location() { return this.location; } /** * 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); } /** * Resource name * */ @Export(name="name", refs={String.class}, tree="[0]") private Output name; /** * @return Resource name * */ 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 * */ @Export(name="sku", refs={SBSkuResponse.class}, tree="[0]") private Output sku; /** * @return Properties of SKU * */ 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); } /** * Resource type * */ @Export(name="type", refs={String.class}, tree="[0]") private Output type; /** * @return Resource type * */ 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 Premium Service Bus Namespace in regions supported availability zones. * */ @Export(name="zoneRedundant", refs={Boolean.class}, tree="[0]") private Output zoneRedundant; /** * @return Enabling this property creates a Premium Service Bus 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:servicebus: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:servicebus: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:servicebus/v20140901:Namespace").build()), Output.of(Alias.builder().type("azure-native:servicebus/v20150801:Namespace").build()), Output.of(Alias.builder().type("azure-native:servicebus/v20170401:Namespace").build()), Output.of(Alias.builder().type("azure-native:servicebus/v20180101preview:Namespace").build()), Output.of(Alias.builder().type("azure-native:servicebus/v20210101preview:Namespace").build()), Output.of(Alias.builder().type("azure-native:servicebus/v20210601preview:Namespace").build()), Output.of(Alias.builder().type("azure-native:servicebus/v20211101:Namespace").build()), Output.of(Alias.builder().type("azure-native:servicebus/v20220101preview:Namespace").build()), Output.of(Alias.builder().type("azure-native:servicebus/v20221001preview:Namespace").build()), Output.of(Alias.builder().type("azure-native:servicebus/v20230101preview:Namespace").build()), Output.of(Alias.builder().type("azure-native:servicebus/v20240101: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 - 2024 Weber Informatics LLC | Privacy Policy