1. Packages
  2. Azure Classic
  3. API Docs
  4. eventhub
  5. NamespaceSchemaGroup

We recommend using Azure Native.

Azure Classic v5.70.0 published on Wednesday, Mar 27, 2024 by Pulumi

azure.eventhub.NamespaceSchemaGroup

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure Classic v5.70.0 published on Wednesday, Mar 27, 2024 by Pulumi

    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/v5/go/azure/core"
    	"github.com/pulumi/pulumi-azure/sdk/v5/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

    new NamespaceSchemaGroup(name: string, args: NamespaceSchemaGroupArgs, opts?: CustomResourceOptions);
    @overload
    def NamespaceSchemaGroup(resource_name: str,
                             opts: Optional[ResourceOptions] = None,
                             name: Optional[str] = None,
                             namespace_id: Optional[str] = None,
                             schema_compatibility: Optional[str] = None,
                             schema_type: Optional[str] = None)
    @overload
    def NamespaceSchemaGroup(resource_name: str,
                             args: NamespaceSchemaGroupArgs,
                             opts: Optional[ResourceOptions] = 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.
    
    
    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.

    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

    The NamespaceSchemaGroup resource accepts the following input properties:

    NamespaceId string
    Specifies the ID of the EventHub Namespace. Changing this forces a new resource to be created.
    SchemaCompatibility string
    Specifies the compatibility of this schema group. Possible values are None, Backward, Forward. Changing this forces a new resource to be created.
    SchemaType 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.
    NamespaceId string
    Specifies the ID of the EventHub Namespace. Changing this forces a new resource to be created.
    SchemaCompatibility string
    Specifies the compatibility of this schema group. Possible values are None, Backward, Forward. Changing this forces a new resource to be created.
    SchemaType 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.
    namespaceId String
    Specifies the ID of the EventHub Namespace. Changing this forces a new resource to be created.
    schemaCompatibility String
    Specifies the compatibility of this schema group. Possible values are None, Backward, Forward. Changing this forces a new resource to be created.
    schemaType 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.
    namespaceId string
    Specifies the ID of the EventHub Namespace. Changing this forces a new resource to be created.
    schemaCompatibility string
    Specifies the compatibility of this schema group. Possible values are None, Backward, Forward. Changing this forces a new resource to be created.
    schemaType 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.
    namespaceId String
    Specifies the ID of the EventHub Namespace. Changing this forces a new resource to be created.
    schemaCompatibility String
    Specifies the compatibility of this schema group. Possible values are None, Backward, Forward. Changing this forces a new resource to be created.
    schemaType 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.
    The following state arguments are supported:
    Name string
    Specifies the name of this schema group. Changing this forces a new resource to be created.
    NamespaceId string
    Specifies the ID of the EventHub Namespace. Changing this forces a new resource to be created.
    SchemaCompatibility string
    Specifies the compatibility of this schema group. Possible values are None, Backward, Forward. Changing this forces a new resource to be created.
    SchemaType 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.
    NamespaceId string
    Specifies the ID of the EventHub Namespace. Changing this forces a new resource to be created.
    SchemaCompatibility string
    Specifies the compatibility of this schema group. Possible values are None, Backward, Forward. Changing this forces a new resource to be created.
    SchemaType 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.
    namespaceId String
    Specifies the ID of the EventHub Namespace. Changing this forces a new resource to be created.
    schemaCompatibility String
    Specifies the compatibility of this schema group. Possible values are None, Backward, Forward. Changing this forces a new resource to be created.
    schemaType 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.
    namespaceId string
    Specifies the ID of the EventHub Namespace. Changing this forces a new resource to be created.
    schemaCompatibility string
    Specifies the compatibility of this schema group. Possible values are None, Backward, Forward. Changing this forces a new resource to be created.
    schemaType 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.
    namespaceId String
    Specifies the ID of the EventHub Namespace. Changing this forces a new resource to be created.
    schemaCompatibility String
    Specifies the compatibility of this schema group. Possible values are None, Backward, Forward. Changing this forces a new resource to be created.
    schemaType 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
    

    Package Details

    Repository
    Azure Classic pulumi/pulumi-azure
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the azurerm Terraform Provider.
    azure logo

    We recommend using Azure Native.

    Azure Classic v5.70.0 published on Wednesday, Mar 27, 2024 by Pulumi