1. Packages
  2. Azure Native v1
  3. API Docs
  4. relay
  5. Namespace
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

azure-native.relay.Namespace

Explore with Pulumi AI

azure-native-v1 logo
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

    Description of a namespace resource. API Version: 2017-04-01.

    Example Usage

    RelayNamespaceCreate

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var @namespace = new AzureNative.Relay.Namespace("namespace", new()
        {
            Location = "West US",
            NamespaceName = "example-RelayNamespace-01",
            ResourceGroupName = "resourcegroup",
            Sku = new AzureNative.Relay.Inputs.SkuArgs
            {
                Name = AzureNative.Relay.SkuName.Standard,
                Tier = AzureNative.Relay.SkuTier.Standard,
            },
            Tags = 
            {
                { "tag1", "value1" },
                { "tag2", "value2" },
            },
        });
    
    });
    
    package main
    
    import (
    	relay "github.com/pulumi/pulumi-azure-native-sdk/relay"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := relay.NewNamespace(ctx, "namespace", &relay.NamespaceArgs{
    			Location:          pulumi.String("West US"),
    			NamespaceName:     pulumi.String("example-RelayNamespace-01"),
    			ResourceGroupName: pulumi.String("resourcegroup"),
    			Sku: &relay.SkuArgs{
    				Name: relay.SkuNameStandard,
    				Tier: relay.SkuTierStandard,
    			},
    			Tags: pulumi.StringMap{
    				"tag1": pulumi.String("value1"),
    				"tag2": pulumi.String("value2"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    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 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("West US")
                .namespaceName("example-RelayNamespace-01")
                .resourceGroupName("resourcegroup")
                .sku(Map.ofEntries(
                    Map.entry("name", "Standard"),
                    Map.entry("tier", "Standard")
                ))
                .tags(Map.ofEntries(
                    Map.entry("tag1", "value1"),
                    Map.entry("tag2", "value2")
                ))
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    namespace = azure_native.relay.Namespace("namespace",
        location="West US",
        namespace_name="example-RelayNamespace-01",
        resource_group_name="resourcegroup",
        sku=azure_native.relay.SkuArgs(
            name=azure_native.relay.SkuName.STANDARD,
            tier=azure_native.relay.SkuTier.STANDARD,
        ),
        tags={
            "tag1": "value1",
            "tag2": "value2",
        })
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const namespace = new azure_native.relay.Namespace("namespace", {
        location: "West US",
        namespaceName: "example-RelayNamespace-01",
        resourceGroupName: "resourcegroup",
        sku: {
            name: azure_native.relay.SkuName.Standard,
            tier: azure_native.relay.SkuTier.Standard,
        },
        tags: {
            tag1: "value1",
            tag2: "value2",
        },
    });
    
    resources:
      namespace:
        type: azure-native:relay:Namespace
        properties:
          location: West US
          namespaceName: example-RelayNamespace-01
          resourceGroupName: resourcegroup
          sku:
            name: Standard
            tier: Standard
          tags:
            tag1: value1
            tag2: value2
    

    Create Namespace Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Namespace(name: string, args: NamespaceArgs, opts?: CustomResourceOptions);
    @overload
    def Namespace(resource_name: str,
                  args: NamespaceArgs,
                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def Namespace(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  resource_group_name: Optional[str] = None,
                  location: Optional[str] = None,
                  namespace_name: Optional[str] = None,
                  sku: Optional[SkuArgs] = None,
                  tags: Optional[Mapping[str, str]] = None)
    func NewNamespace(ctx *Context, name string, args NamespaceArgs, opts ...ResourceOption) (*Namespace, error)
    public Namespace(string name, NamespaceArgs args, CustomResourceOptions? opts = null)
    public Namespace(String name, NamespaceArgs args)
    public Namespace(String name, NamespaceArgs args, CustomResourceOptions options)
    
    type: azure-native:relay:Namespace
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args NamespaceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args NamespaceArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args NamespaceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args NamespaceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args NamespaceArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var examplenamespaceResourceResourceFromRelay = new AzureNative.Relay.Namespace("examplenamespaceResourceResourceFromRelay", new()
    {
        ResourceGroupName = "string",
        Location = "string",
        NamespaceName = "string",
        Sku = 
        {
            { "name", "Standard" },
            { "tier", "Standard" },
        },
        Tags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := relay.NewNamespace(ctx, "examplenamespaceResourceResourceFromRelay", &relay.NamespaceArgs{
    	ResourceGroupName: "string",
    	Location:          "string",
    	NamespaceName:     "string",
    	Sku: map[string]interface{}{
    		"name": "Standard",
    		"tier": "Standard",
    	},
    	Tags: map[string]interface{}{
    		"string": "string",
    	},
    })
    
    var examplenamespaceResourceResourceFromRelay = new Namespace("examplenamespaceResourceResourceFromRelay", NamespaceArgs.builder()
        .resourceGroupName("string")
        .location("string")
        .namespaceName("string")
        .sku(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
        .tags(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
        .build());
    
    examplenamespace_resource_resource_from_relay = azure_native.relay.Namespace("examplenamespaceResourceResourceFromRelay",
        resource_group_name=string,
        location=string,
        namespace_name=string,
        sku={
            name: Standard,
            tier: Standard,
        },
        tags={
            string: string,
        })
    
    const examplenamespaceResourceResourceFromRelay = new azure_native.relay.Namespace("examplenamespaceResourceResourceFromRelay", {
        resourceGroupName: "string",
        location: "string",
        namespaceName: "string",
        sku: {
            name: "Standard",
            tier: "Standard",
        },
        tags: {
            string: "string",
        },
    });
    
    type: azure-native:relay:Namespace
    properties:
        location: string
        namespaceName: string
        resourceGroupName: string
        sku:
            name: Standard
            tier: Standard
        tags:
            string: string
    

    Namespace Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The Namespace resource accepts the following input properties:

    ResourceGroupName string
    Name of the Resource group within the Azure subscription.
    Location string
    Resource location.
    NamespaceName string
    The namespace name
    Sku Pulumi.AzureNative.Relay.Inputs.Sku
    SKU of the namespace.
    Tags Dictionary<string, string>
    Resource tags.
    ResourceGroupName string
    Name of the Resource group within the Azure subscription.
    Location string
    Resource location.
    NamespaceName string
    The namespace name
    Sku SkuArgs
    SKU of the namespace.
    Tags map[string]string
    Resource tags.
    resourceGroupName String
    Name of the Resource group within the Azure subscription.
    location String
    Resource location.
    namespaceName String
    The namespace name
    sku Sku
    SKU of the namespace.
    tags Map<String,String>
    Resource tags.
    resourceGroupName string
    Name of the Resource group within the Azure subscription.
    location string
    Resource location.
    namespaceName string
    The namespace name
    sku Sku
    SKU of the namespace.
    tags {[key: string]: string}
    Resource tags.
    resource_group_name str
    Name of the Resource group within the Azure subscription.
    location str
    Resource location.
    namespace_name str
    The namespace name
    sku SkuArgs
    SKU of the namespace.
    tags Mapping[str, str]
    Resource tags.
    resourceGroupName String
    Name of the Resource group within the Azure subscription.
    location String
    Resource location.
    namespaceName String
    The namespace name
    sku Property Map
    SKU of the namespace.
    tags Map<String>
    Resource tags.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Namespace resource produces the following output properties:

    CreatedAt string
    The time the namespace was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    MetricId string
    Identifier for Azure Insights metrics.
    Name string
    Resource name.
    ProvisioningState string
    ServiceBusEndpoint string
    Endpoint you can use to perform Service Bus operations.
    Type string
    Resource type.
    UpdatedAt string
    The time the namespace was updated.
    CreatedAt string
    The time the namespace was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    MetricId string
    Identifier for Azure Insights metrics.
    Name string
    Resource name.
    ProvisioningState string
    ServiceBusEndpoint string
    Endpoint you can use to perform Service Bus operations.
    Type string
    Resource type.
    UpdatedAt string
    The time the namespace was updated.
    createdAt String
    The time the namespace was created.
    id String
    The provider-assigned unique ID for this managed resource.
    metricId String
    Identifier for Azure Insights metrics.
    name String
    Resource name.
    provisioningState String
    serviceBusEndpoint String
    Endpoint you can use to perform Service Bus operations.
    type String
    Resource type.
    updatedAt String
    The time the namespace was updated.
    createdAt string
    The time the namespace was created.
    id string
    The provider-assigned unique ID for this managed resource.
    metricId string
    Identifier for Azure Insights metrics.
    name string
    Resource name.
    provisioningState string
    serviceBusEndpoint string
    Endpoint you can use to perform Service Bus operations.
    type string
    Resource type.
    updatedAt string
    The time the namespace was updated.
    created_at str
    The time the namespace was created.
    id str
    The provider-assigned unique ID for this managed resource.
    metric_id str
    Identifier for Azure Insights metrics.
    name str
    Resource name.
    provisioning_state str
    service_bus_endpoint str
    Endpoint you can use to perform Service Bus operations.
    type str
    Resource type.
    updated_at str
    The time the namespace was updated.
    createdAt String
    The time the namespace was created.
    id String
    The provider-assigned unique ID for this managed resource.
    metricId String
    Identifier for Azure Insights metrics.
    name String
    Resource name.
    provisioningState String
    serviceBusEndpoint String
    Endpoint you can use to perform Service Bus operations.
    type String
    Resource type.
    updatedAt String
    The time the namespace was updated.

    Supporting Types

    Sku, SkuArgs

    Name SkuName
    Name of this SKU.
    Tier SkuTier
    The tier of this SKU.
    name SkuName
    Name of this SKU.
    tier SkuTier
    The tier of this SKU.
    name SkuName
    Name of this SKU.
    tier SkuTier
    The tier of this SKU.
    name SkuName
    Name of this SKU.
    tier SkuTier
    The tier of this SKU.
    name "Standard"
    Name of this SKU.
    tier "Standard"
    The tier of this SKU.

    SkuName, SkuNameArgs

    Standard
    Standard
    SkuNameStandard
    Standard
    Standard
    Standard
    Standard
    Standard
    STANDARD
    Standard
    "Standard"
    Standard

    SkuResponse, SkuResponseArgs

    Name string
    Name of this SKU.
    Tier string
    The tier of this SKU.
    Name string
    Name of this SKU.
    Tier string
    The tier of this SKU.
    name String
    Name of this SKU.
    tier String
    The tier of this SKU.
    name string
    Name of this SKU.
    tier string
    The tier of this SKU.
    name str
    Name of this SKU.
    tier str
    The tier of this SKU.
    name String
    Name of this SKU.
    tier String
    The tier of this SKU.

    SkuTier, SkuTierArgs

    Standard
    Standard
    SkuTierStandard
    Standard
    Standard
    Standard
    Standard
    Standard
    STANDARD
    Standard
    "Standard"
    Standard

    Import

    An existing resource can be imported using its type token, name, and identifier, e.g.

    $ pulumi import azure-native:relay:Namespace example-RelayNamespace-01 /subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/resourcegroup/providers/Microsoft.Relay/namespaces/example-RelayNamespace-01 
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    azure-native-v1 pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native-v1 logo
    These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
    Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi