azure-native.relay.Namespace
Explore with Pulumi AI
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:
- Resource
Group stringName - Name of the Resource group within the Azure subscription.
- Location string
- Resource location.
- Namespace
Name string - The namespace name
- Sku
Pulumi.
Azure Native. Relay. Inputs. Sku - SKU of the namespace.
- Dictionary<string, string>
- Resource tags.
- Resource
Group stringName - Name of the Resource group within the Azure subscription.
- Location string
- Resource location.
- Namespace
Name string - The namespace name
- Sku
Sku
Args - SKU of the namespace.
- map[string]string
- Resource tags.
- resource
Group StringName - Name of the Resource group within the Azure subscription.
- location String
- Resource location.
- namespace
Name String - The namespace name
- sku Sku
- SKU of the namespace.
- Map<String,String>
- Resource tags.
- resource
Group stringName - Name of the Resource group within the Azure subscription.
- location string
- Resource location.
- namespace
Name string - The namespace name
- sku Sku
- SKU of the namespace.
- {[key: string]: string}
- Resource tags.
- resource_
group_ strname - Name of the Resource group within the Azure subscription.
- location str
- Resource location.
- namespace_
name str - The namespace name
- sku
Sku
Args - SKU of the namespace.
- Mapping[str, str]
- Resource tags.
- resource
Group StringName - Name of the Resource group within the Azure subscription.
- location String
- Resource location.
- namespace
Name String - The namespace name
- sku Property Map
- SKU of the namespace.
- Map<String>
- Resource tags.
Outputs
All input properties are implicitly available as output properties. Additionally, the Namespace resource produces the following output properties:
- Created
At string - The time the namespace was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Metric
Id string - Identifier for Azure Insights metrics.
- Name string
- Resource name.
- Provisioning
State string - Service
Bus stringEndpoint - Endpoint you can use to perform Service Bus operations.
- Type string
- Resource type.
- Updated
At string - The time the namespace was updated.
- Created
At string - The time the namespace was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Metric
Id string - Identifier for Azure Insights metrics.
- Name string
- Resource name.
- Provisioning
State string - Service
Bus stringEndpoint - Endpoint you can use to perform Service Bus operations.
- Type string
- Resource type.
- Updated
At string - The time the namespace was updated.
- created
At String - The time the namespace was created.
- id String
- The provider-assigned unique ID for this managed resource.
- metric
Id String - Identifier for Azure Insights metrics.
- name String
- Resource name.
- provisioning
State String - service
Bus StringEndpoint - Endpoint you can use to perform Service Bus operations.
- type String
- Resource type.
- updated
At String - The time the namespace was updated.
- created
At string - The time the namespace was created.
- id string
- The provider-assigned unique ID for this managed resource.
- metric
Id string - Identifier for Azure Insights metrics.
- name string
- Resource name.
- provisioning
State string - service
Bus stringEndpoint - Endpoint you can use to perform Service Bus operations.
- type string
- Resource type.
- updated
At 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_ strendpoint - Endpoint you can use to perform Service Bus operations.
- type str
- Resource type.
- updated_
at str - The time the namespace was updated.
- created
At String - The time the namespace was created.
- id String
- The provider-assigned unique ID for this managed resource.
- metric
Id String - Identifier for Azure Insights metrics.
- name String
- Resource name.
- provisioning
State String - service
Bus StringEndpoint - Endpoint you can use to perform Service Bus operations.
- type String
- Resource type.
- updated
At String - The time the namespace was updated.
Supporting Types
Sku, SkuArgs
- Name
Pulumi.
Azure Native. Relay. Sku Name - Name of this SKU.
- Tier
Pulumi.
Azure Native. Relay. Sku Tier - The tier of this SKU.
- name "Standard"
- Name of this SKU.
- tier "Standard"
- The tier of this SKU.
SkuName, SkuNameArgs
- Standard
- Standard
- Sku
Name Standard - Standard
- Standard
- Standard
- Standard
- Standard
- STANDARD
- Standard
- "Standard"
- Standard
SkuResponse, SkuResponseArgs
SkuTier, SkuTierArgs
- Standard
- Standard
- Sku
Tier Standard - 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