All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azurenative.servicebus.kotlin.DisasterRecoveryConfigArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 2.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.servicebus.kotlin

import com.pulumi.azurenative.servicebus.DisasterRecoveryConfigArgs.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

/**
 * Single item in List or Get Alias(Disaster Recovery configuration) operation
 * Azure REST API version: 2022-01-01-preview. Prior API version in Azure Native 1.x: 2017-04-01.
 * Other available API versions: 2022-10-01-preview, 2023-01-01-preview.
 * ## Example Usage
 * ### SBAliasCreate
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using AzureNative = Pulumi.AzureNative;
 * return await Deployment.RunAsync(() =>
 * {
 *     var disasterRecoveryConfig = new AzureNative.ServiceBus.DisasterRecoveryConfig("disasterRecoveryConfig", new()
 *     {
 *         Alias = "sdk-Namespace-8860",
 *         AlternateName = "alternameforAlias-Namespace-8860",
 *         NamespaceName = "sdk-Namespace-8860",
 *         PartnerNamespace = "sdk-Namespace-37",
 *         ResourceGroupName = "ardsouzatestRG",
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	servicebus "github.com/pulumi/pulumi-azure-native-sdk/servicebus/v2"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		_, err := servicebus.NewDisasterRecoveryConfig(ctx, "disasterRecoveryConfig", &servicebus.DisasterRecoveryConfigArgs{
 * 			Alias:             pulumi.String("sdk-Namespace-8860"),
 * 			AlternateName:     pulumi.String("alternameforAlias-Namespace-8860"),
 * 			NamespaceName:     pulumi.String("sdk-Namespace-8860"),
 * 			PartnerNamespace:  pulumi.String("sdk-Namespace-37"),
 * 			ResourceGroupName: pulumi.String("ardsouzatestRG"),
 * 		})
 * 		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.azurenative.servicebus.DisasterRecoveryConfig;
 * import com.pulumi.azurenative.servicebus.DisasterRecoveryConfigArgs;
 * 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 disasterRecoveryConfig = new DisasterRecoveryConfig("disasterRecoveryConfig", DisasterRecoveryConfigArgs.builder()
 *             .alias("sdk-Namespace-8860")
 *             .alternateName("alternameforAlias-Namespace-8860")
 *             .namespaceName("sdk-Namespace-8860")
 *             .partnerNamespace("sdk-Namespace-37")
 *             .resourceGroupName("ardsouzatestRG")
 *             .build());
 *     }
 * }
 * ```
 * ## Import
 * An existing resource can be imported using its type token, name, and identifier, e.g.
 * ```sh
 * $ pulumi import azure-native:servicebus:DisasterRecoveryConfig sdk-Namespace-8860 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}
 * ```
 * @property alias The Disaster Recovery configuration name
 * @property alternateName Primary/Secondary eventhub namespace name, which is part of GEO DR pairing
 * @property namespaceName The namespace name
 * @property partnerNamespace ARM Id of the Primary/Secondary eventhub namespace name, which is part of GEO DR pairing
 * @property resourceGroupName Name of the Resource group within the Azure subscription.
 */
public data class DisasterRecoveryConfigArgs(
    public val alias: Output? = null,
    public val alternateName: Output? = null,
    public val namespaceName: Output? = null,
    public val partnerNamespace: Output? = null,
    public val resourceGroupName: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.servicebus.DisasterRecoveryConfigArgs =
        com.pulumi.azurenative.servicebus.DisasterRecoveryConfigArgs.builder()
            .alias(alias?.applyValue({ args0 -> args0 }))
            .alternateName(alternateName?.applyValue({ args0 -> args0 }))
            .namespaceName(namespaceName?.applyValue({ args0 -> args0 }))
            .partnerNamespace(partnerNamespace?.applyValue({ args0 -> args0 }))
            .resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [DisasterRecoveryConfigArgs].
 */
@PulumiTagMarker
public class DisasterRecoveryConfigArgsBuilder internal constructor() {
    private var alias: Output? = null

    private var alternateName: Output? = null

    private var namespaceName: Output? = null

    private var partnerNamespace: Output? = null

    private var resourceGroupName: Output? = null

    /**
     * @param value The Disaster Recovery configuration name
     */
    @JvmName("jrftrmcikekyypky")
    public suspend fun alias(`value`: Output) {
        this.alias = value
    }

    /**
     * @param value Primary/Secondary eventhub namespace name, which is part of GEO DR pairing
     */
    @JvmName("lifkvryjmnvvdbfp")
    public suspend fun alternateName(`value`: Output) {
        this.alternateName = value
    }

    /**
     * @param value The namespace name
     */
    @JvmName("pigtnweanorwenxf")
    public suspend fun namespaceName(`value`: Output) {
        this.namespaceName = value
    }

    /**
     * @param value ARM Id of the Primary/Secondary eventhub namespace name, which is part of GEO DR pairing
     */
    @JvmName("pmtwsrosglvptxvh")
    public suspend fun partnerNamespace(`value`: Output) {
        this.partnerNamespace = value
    }

    /**
     * @param value Name of the Resource group within the Azure subscription.
     */
    @JvmName("uetuitenlskvpxxi")
    public suspend fun resourceGroupName(`value`: Output) {
        this.resourceGroupName = value
    }

    /**
     * @param value The Disaster Recovery configuration name
     */
    @JvmName("omcwqrcgwpnfxbqq")
    public suspend fun alias(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.alias = mapped
    }

    /**
     * @param value Primary/Secondary eventhub namespace name, which is part of GEO DR pairing
     */
    @JvmName("fiqybovlfqlkiexk")
    public suspend fun alternateName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.alternateName = mapped
    }

    /**
     * @param value The namespace name
     */
    @JvmName("elrdwjtckwfsalcv")
    public suspend fun namespaceName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.namespaceName = mapped
    }

    /**
     * @param value ARM Id of the Primary/Secondary eventhub namespace name, which is part of GEO DR pairing
     */
    @JvmName("fmnjbovyowsavedo")
    public suspend fun partnerNamespace(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.partnerNamespace = mapped
    }

    /**
     * @param value Name of the Resource group within the Azure subscription.
     */
    @JvmName("krimhmkgkrkhjqjv")
    public suspend fun resourceGroupName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resourceGroupName = mapped
    }

    internal fun build(): DisasterRecoveryConfigArgs = DisasterRecoveryConfigArgs(
        alias = alias,
        alternateName = alternateName,
        namespaceName = namespaceName,
        partnerNamespace = partnerNamespace,
        resourceGroupName = resourceGroupName,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy