We recommend using Azure Native.
azure.eventhub.NamespaceSchemaGroup
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = new azure.core.ResourceGroup("example", {
name: "exampleRG-ehn-schemaGroup",
location: "East US",
});
const test = new azure.eventhub.EventHubNamespace("test", {
name: "example-ehn-schemaGroup",
location: testAzurermResourceGroup.location,
resourceGroupName: testAzurermResourceGroup.name,
sku: "Standard",
});
const testNamespaceSchemaGroup = new azure.eventhub.NamespaceSchemaGroup("test", {
name: "example-schemaGroup",
namespaceId: test.id,
schemaCompatibility: "Forward",
schemaType: "Avro",
});
import pulumi
import pulumi_azure as azure
example = azure.core.ResourceGroup("example",
name="exampleRG-ehn-schemaGroup",
location="East US")
test = azure.eventhub.EventHubNamespace("test",
name="example-ehn-schemaGroup",
location=test_azurerm_resource_group["location"],
resource_group_name=test_azurerm_resource_group["name"],
sku="Standard")
test_namespace_schema_group = azure.eventhub.NamespaceSchemaGroup("test",
name="example-schemaGroup",
namespace_id=test.id,
schema_compatibility="Forward",
schema_type="Avro")
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/eventhub"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
Name: pulumi.String("exampleRG-ehn-schemaGroup"),
Location: pulumi.String("East US"),
})
if err != nil {
return err
}
test, err := eventhub.NewEventHubNamespace(ctx, "test", &eventhub.EventHubNamespaceArgs{
Name: pulumi.String("example-ehn-schemaGroup"),
Location: pulumi.Any(testAzurermResourceGroup.Location),
ResourceGroupName: pulumi.Any(testAzurermResourceGroup.Name),
Sku: pulumi.String("Standard"),
})
if err != nil {
return err
}
_, err = eventhub.NewNamespaceSchemaGroup(ctx, "test", &eventhub.NamespaceSchemaGroupArgs{
Name: pulumi.String("example-schemaGroup"),
NamespaceId: test.ID(),
SchemaCompatibility: pulumi.String("Forward"),
SchemaType: pulumi.String("Avro"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = new Azure.Core.ResourceGroup("example", new()
{
Name = "exampleRG-ehn-schemaGroup",
Location = "East US",
});
var test = new Azure.EventHub.EventHubNamespace("test", new()
{
Name = "example-ehn-schemaGroup",
Location = testAzurermResourceGroup.Location,
ResourceGroupName = testAzurermResourceGroup.Name,
Sku = "Standard",
});
var testNamespaceSchemaGroup = new Azure.EventHub.NamespaceSchemaGroup("test", new()
{
Name = "example-schemaGroup",
NamespaceId = test.Id,
SchemaCompatibility = "Forward",
SchemaType = "Avro",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.eventhub.EventHubNamespace;
import com.pulumi.azure.eventhub.EventHubNamespaceArgs;
import com.pulumi.azure.eventhub.NamespaceSchemaGroup;
import com.pulumi.azure.eventhub.NamespaceSchemaGroupArgs;
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 example = new ResourceGroup("example", ResourceGroupArgs.builder()
.name("exampleRG-ehn-schemaGroup")
.location("East US")
.build());
var test = new EventHubNamespace("test", EventHubNamespaceArgs.builder()
.name("example-ehn-schemaGroup")
.location(testAzurermResourceGroup.location())
.resourceGroupName(testAzurermResourceGroup.name())
.sku("Standard")
.build());
var testNamespaceSchemaGroup = new NamespaceSchemaGroup("testNamespaceSchemaGroup", NamespaceSchemaGroupArgs.builder()
.name("example-schemaGroup")
.namespaceId(test.id())
.schemaCompatibility("Forward")
.schemaType("Avro")
.build());
}
}
resources:
example:
type: azure:core:ResourceGroup
properties:
name: exampleRG-ehn-schemaGroup
location: East US
test:
type: azure:eventhub:EventHubNamespace
properties:
name: example-ehn-schemaGroup
location: ${testAzurermResourceGroup.location}
resourceGroupName: ${testAzurermResourceGroup.name}
sku: Standard
testNamespaceSchemaGroup:
type: azure:eventhub:NamespaceSchemaGroup
name: test
properties:
name: example-schemaGroup
namespaceId: ${test.id}
schemaCompatibility: Forward
schemaType: Avro
Create NamespaceSchemaGroup Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new NamespaceSchemaGroup(name: string, args: NamespaceSchemaGroupArgs, opts?: CustomResourceOptions);
@overload
def NamespaceSchemaGroup(resource_name: str,
args: NamespaceSchemaGroupArgs,
opts: Optional[ResourceOptions] = None)
@overload
def NamespaceSchemaGroup(resource_name: str,
opts: Optional[ResourceOptions] = None,
namespace_id: Optional[str] = None,
schema_compatibility: Optional[str] = None,
schema_type: Optional[str] = None,
name: Optional[str] = None)
func NewNamespaceSchemaGroup(ctx *Context, name string, args NamespaceSchemaGroupArgs, opts ...ResourceOption) (*NamespaceSchemaGroup, error)
public NamespaceSchemaGroup(string name, NamespaceSchemaGroupArgs args, CustomResourceOptions? opts = null)
public NamespaceSchemaGroup(String name, NamespaceSchemaGroupArgs args)
public NamespaceSchemaGroup(String name, NamespaceSchemaGroupArgs args, CustomResourceOptions options)
type: azure:eventhub:NamespaceSchemaGroup
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 NamespaceSchemaGroupArgs
- 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 NamespaceSchemaGroupArgs
- 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 NamespaceSchemaGroupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args NamespaceSchemaGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args NamespaceSchemaGroupArgs
- 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 namespaceSchemaGroupResource = new Azure.EventHub.NamespaceSchemaGroup("namespaceSchemaGroupResource", new()
{
NamespaceId = "string",
SchemaCompatibility = "string",
SchemaType = "string",
Name = "string",
});
example, err := eventhub.NewNamespaceSchemaGroup(ctx, "namespaceSchemaGroupResource", &eventhub.NamespaceSchemaGroupArgs{
NamespaceId: pulumi.String("string"),
SchemaCompatibility: pulumi.String("string"),
SchemaType: pulumi.String("string"),
Name: pulumi.String("string"),
})
var namespaceSchemaGroupResource = new NamespaceSchemaGroup("namespaceSchemaGroupResource", NamespaceSchemaGroupArgs.builder()
.namespaceId("string")
.schemaCompatibility("string")
.schemaType("string")
.name("string")
.build());
namespace_schema_group_resource = azure.eventhub.NamespaceSchemaGroup("namespaceSchemaGroupResource",
namespace_id="string",
schema_compatibility="string",
schema_type="string",
name="string")
const namespaceSchemaGroupResource = new azure.eventhub.NamespaceSchemaGroup("namespaceSchemaGroupResource", {
namespaceId: "string",
schemaCompatibility: "string",
schemaType: "string",
name: "string",
});
type: azure:eventhub:NamespaceSchemaGroup
properties:
name: string
namespaceId: string
schemaCompatibility: string
schemaType: string
NamespaceSchemaGroup 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 NamespaceSchemaGroup resource accepts the following input properties:
- Namespace
Id string - Specifies the ID of the EventHub Namespace. Changing this forces a new resource to be created.
- Schema
Compatibility string - Specifies the compatibility of this schema group. Possible values are
None
,Backward
,Forward
. Changing this forces a new resource to be created. - Schema
Type string - Specifies the Type of this schema group. Possible values are
Avro
,Unknown
. Changing this forces a new resource to be created. - Name string
- Specifies the name of this schema group. Changing this forces a new resource to be created.
- Namespace
Id string - Specifies the ID of the EventHub Namespace. Changing this forces a new resource to be created.
- Schema
Compatibility string - Specifies the compatibility of this schema group. Possible values are
None
,Backward
,Forward
. Changing this forces a new resource to be created. - Schema
Type string - Specifies the Type of this schema group. Possible values are
Avro
,Unknown
. Changing this forces a new resource to be created. - Name string
- Specifies the name of this schema group. Changing this forces a new resource to be created.
- namespace
Id String - Specifies the ID of the EventHub Namespace. Changing this forces a new resource to be created.
- schema
Compatibility String - Specifies the compatibility of this schema group. Possible values are
None
,Backward
,Forward
. Changing this forces a new resource to be created. - schema
Type String - Specifies the Type of this schema group. Possible values are
Avro
,Unknown
. Changing this forces a new resource to be created. - name String
- Specifies the name of this schema group. Changing this forces a new resource to be created.
- namespace
Id string - Specifies the ID of the EventHub Namespace. Changing this forces a new resource to be created.
- schema
Compatibility string - Specifies the compatibility of this schema group. Possible values are
None
,Backward
,Forward
. Changing this forces a new resource to be created. - schema
Type string - Specifies the Type of this schema group. Possible values are
Avro
,Unknown
. Changing this forces a new resource to be created. - name string
- Specifies the name of this schema group. Changing this forces a new resource to be created.
- namespace_
id str - Specifies the ID of the EventHub Namespace. Changing this forces a new resource to be created.
- schema_
compatibility str - Specifies the compatibility of this schema group. Possible values are
None
,Backward
,Forward
. Changing this forces a new resource to be created. - schema_
type str - Specifies the Type of this schema group. Possible values are
Avro
,Unknown
. Changing this forces a new resource to be created. - name str
- Specifies the name of this schema group. Changing this forces a new resource to be created.
- namespace
Id String - Specifies the ID of the EventHub Namespace. Changing this forces a new resource to be created.
- schema
Compatibility String - Specifies the compatibility of this schema group. Possible values are
None
,Backward
,Forward
. Changing this forces a new resource to be created. - schema
Type String - Specifies the Type of this schema group. Possible values are
Avro
,Unknown
. Changing this forces a new resource to be created. - name String
- Specifies the name of this schema group. Changing this forces a new resource to be created.
Outputs
All input properties are implicitly available as output properties. Additionally, the NamespaceSchemaGroup resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing NamespaceSchemaGroup Resource
Get an existing NamespaceSchemaGroup resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: NamespaceSchemaGroupState, opts?: CustomResourceOptions): NamespaceSchemaGroup
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
name: Optional[str] = None,
namespace_id: Optional[str] = None,
schema_compatibility: Optional[str] = None,
schema_type: Optional[str] = None) -> NamespaceSchemaGroup
func GetNamespaceSchemaGroup(ctx *Context, name string, id IDInput, state *NamespaceSchemaGroupState, opts ...ResourceOption) (*NamespaceSchemaGroup, error)
public static NamespaceSchemaGroup Get(string name, Input<string> id, NamespaceSchemaGroupState? state, CustomResourceOptions? opts = null)
public static NamespaceSchemaGroup get(String name, Output<String> id, NamespaceSchemaGroupState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Name string
- Specifies the name of this schema group. Changing this forces a new resource to be created.
- Namespace
Id string - Specifies the ID of the EventHub Namespace. Changing this forces a new resource to be created.
- Schema
Compatibility string - Specifies the compatibility of this schema group. Possible values are
None
,Backward
,Forward
. Changing this forces a new resource to be created. - Schema
Type string - Specifies the Type of this schema group. Possible values are
Avro
,Unknown
. Changing this forces a new resource to be created.
- Name string
- Specifies the name of this schema group. Changing this forces a new resource to be created.
- Namespace
Id string - Specifies the ID of the EventHub Namespace. Changing this forces a new resource to be created.
- Schema
Compatibility string - Specifies the compatibility of this schema group. Possible values are
None
,Backward
,Forward
. Changing this forces a new resource to be created. - Schema
Type string - Specifies the Type of this schema group. Possible values are
Avro
,Unknown
. Changing this forces a new resource to be created.
- name String
- Specifies the name of this schema group. Changing this forces a new resource to be created.
- namespace
Id String - Specifies the ID of the EventHub Namespace. Changing this forces a new resource to be created.
- schema
Compatibility String - Specifies the compatibility of this schema group. Possible values are
None
,Backward
,Forward
. Changing this forces a new resource to be created. - schema
Type String - Specifies the Type of this schema group. Possible values are
Avro
,Unknown
. Changing this forces a new resource to be created.
- name string
- Specifies the name of this schema group. Changing this forces a new resource to be created.
- namespace
Id string - Specifies the ID of the EventHub Namespace. Changing this forces a new resource to be created.
- schema
Compatibility string - Specifies the compatibility of this schema group. Possible values are
None
,Backward
,Forward
. Changing this forces a new resource to be created. - schema
Type string - Specifies the Type of this schema group. Possible values are
Avro
,Unknown
. Changing this forces a new resource to be created.
- name str
- Specifies the name of this schema group. Changing this forces a new resource to be created.
- namespace_
id str - Specifies the ID of the EventHub Namespace. Changing this forces a new resource to be created.
- schema_
compatibility str - Specifies the compatibility of this schema group. Possible values are
None
,Backward
,Forward
. Changing this forces a new resource to be created. - schema_
type str - Specifies the Type of this schema group. Possible values are
Avro
,Unknown
. Changing this forces a new resource to be created.
- name String
- Specifies the name of this schema group. Changing this forces a new resource to be created.
- namespace
Id String - Specifies the ID of the EventHub Namespace. Changing this forces a new resource to be created.
- schema
Compatibility String - Specifies the compatibility of this schema group. Possible values are
None
,Backward
,Forward
. Changing this forces a new resource to be created. - schema
Type String - Specifies the Type of this schema group. Possible values are
Avro
,Unknown
. Changing this forces a new resource to be created.
Import
Schema Group for a EventHub Namespace can be imported using the resource id
, e.g.
$ pulumi import azure:eventhub/namespaceSchemaGroup:NamespaceSchemaGroup example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.EventHub/namespaces/namespace1/schemaGroups/group1
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurerm
Terraform Provider.