Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.eventhub.kotlin
import com.pulumi.azure.eventhub.NamespaceSchemaGroupArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* ## Example Usage
*
* ```typescript
* 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",
* });
* ```
* ```python
* 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")
* ```
* ```csharp
* 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",
* });
* });
* ```
* ```go
* 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
* })
* }
* ```
* ```java
* 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());
* }
* }
* ```
* ```yaml
* 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
* ```
*
* ## Import
* Schema Group for a EventHub Namespace can be imported using the `resource id`, e.g.
* ```sh
* $ pulumi import azure:eventhub/namespaceSchemaGroup:NamespaceSchemaGroup example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.EventHub/namespaces/namespace1/schemaGroups/group1
* ```
* @property name Specifies the name of this schema group. Changing this forces a new resource to be created.
* @property namespaceId Specifies the ID of the EventHub Namespace. Changing this forces a new resource to be created.
* @property schemaCompatibility Specifies the compatibility of this schema group. Possible values are `None`, `Backward`, `Forward`. Changing this forces a new resource to be created.
* @property schemaType Specifies the Type of this schema group. Possible values are `Avro`, `Unknown`. Changing this forces a new resource to be created.
*/
public data class NamespaceSchemaGroupArgs(
public val name: Output? = null,
public val namespaceId: Output? = null,
public val schemaCompatibility: Output? = null,
public val schemaType: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.eventhub.NamespaceSchemaGroupArgs =
com.pulumi.azure.eventhub.NamespaceSchemaGroupArgs.builder()
.name(name?.applyValue({ args0 -> args0 }))
.namespaceId(namespaceId?.applyValue({ args0 -> args0 }))
.schemaCompatibility(schemaCompatibility?.applyValue({ args0 -> args0 }))
.schemaType(schemaType?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [NamespaceSchemaGroupArgs].
*/
@PulumiTagMarker
public class NamespaceSchemaGroupArgsBuilder internal constructor() {
private var name: Output? = null
private var namespaceId: Output? = null
private var schemaCompatibility: Output? = null
private var schemaType: Output? = null
/**
* @param value Specifies the name of this schema group. Changing this forces a new resource to be created.
*/
@JvmName("pqovpiobsjsiscqg")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value Specifies the ID of the EventHub Namespace. Changing this forces a new resource to be created.
*/
@JvmName("ameicwsegcsawwde")
public suspend fun namespaceId(`value`: Output) {
this.namespaceId = value
}
/**
* @param value Specifies the compatibility of this schema group. Possible values are `None`, `Backward`, `Forward`. Changing this forces a new resource to be created.
*/
@JvmName("errflobothrfrdom")
public suspend fun schemaCompatibility(`value`: Output) {
this.schemaCompatibility = value
}
/**
* @param value Specifies the Type of this schema group. Possible values are `Avro`, `Unknown`. Changing this forces a new resource to be created.
*/
@JvmName("wqodbrsnnpttggmk")
public suspend fun schemaType(`value`: Output) {
this.schemaType = value
}
/**
* @param value Specifies the name of this schema group. Changing this forces a new resource to be created.
*/
@JvmName("kvobktembdjkvwia")
public suspend fun name(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value Specifies the ID of the EventHub Namespace. Changing this forces a new resource to be created.
*/
@JvmName("swafyegedtqmujyk")
public suspend fun namespaceId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.namespaceId = mapped
}
/**
* @param value Specifies the compatibility of this schema group. Possible values are `None`, `Backward`, `Forward`. Changing this forces a new resource to be created.
*/
@JvmName("clytjnjaanpibasd")
public suspend fun schemaCompatibility(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.schemaCompatibility = mapped
}
/**
* @param value Specifies the Type of this schema group. Possible values are `Avro`, `Unknown`. Changing this forces a new resource to be created.
*/
@JvmName("rtbwcboxhnvwbhhi")
public suspend fun schemaType(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.schemaType = mapped
}
internal fun build(): NamespaceSchemaGroupArgs = NamespaceSchemaGroupArgs(
name = name,
namespaceId = namespaceId,
schemaCompatibility = schemaCompatibility,
schemaType = schemaType,
)
}