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

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

import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.relay.NamespaceArgs;
import com.pulumi.azurenative.relay.outputs.PrivateEndpointConnectionResponse;
import com.pulumi.azurenative.relay.outputs.SkuResponse;
import com.pulumi.azurenative.relay.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;

/**
 * Description of a namespace resource.
 * Azure REST API version: 2021-11-01. Prior API version in Azure Native 1.x: 2017-04-01.
 * 
 * Other available API versions: 2024-01-01.
 * 
 * ## Example Usage
 * ### RelayNamespaceCreate
 * 
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.relay.Namespace;
 * import com.pulumi.azurenative.relay.NamespaceArgs;
 * import com.pulumi.azurenative.relay.inputs.SkuArgs;
 * 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("example-RelayNamespace-5849")
 *             .resourceGroupName("resourcegroup")
 *             .sku(SkuArgs.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:relay:Namespace example-RelayNamespace-5849 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Relay/namespaces/{namespaceName} * ``` * */ @ResourceType(type="azure-native:relay:Namespace") public class Namespace extends com.pulumi.resources.CustomResource { /** * 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; } /** * Resource location. * */ @Export(name="location", refs={String.class}, tree="[0]") private Output location; /** * @return Resource location. * */ 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; } /** * 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; } /** * SKU of the namespace. * */ @Export(name="sku", refs={SkuResponse.class}, tree="[0]") private Output sku; /** * @return SKU of the namespace. * */ 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; } /** * * @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:relay: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:relay: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:relay/v20160701:Namespace").build()), Output.of(Alias.builder().type("azure-native:relay/v20170401:Namespace").build()), Output.of(Alias.builder().type("azure-native:relay/v20180101preview:Namespace").build()), Output.of(Alias.builder().type("azure-native:relay/v20211101:Namespace").build()), Output.of(Alias.builder().type("azure-native:relay/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