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

com.pulumi.azurenative.loadtestservice.kotlin.LoadTestProfileMappingArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.loadtestservice.kotlin

import com.pulumi.azurenative.loadtestservice.LoadTestProfileMappingArgs.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

/**
 * LoadTest profile mapping resource details
 * Azure REST API version: 2023-12-01-preview.
 * ## Example Usage
 * ### Create a Load Test Profile Mappings resource
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using AzureNative = Pulumi.AzureNative;
 * return await Deployment.RunAsync(() =>
 * {
 *     var loadTestProfileMapping = new AzureNative.LoadTestService.LoadTestProfileMapping("loadTestProfileMapping", new()
 *     {
 *         AzureLoadTestingResourceId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.LoadTestService/loadTests/myLoadTest",
 *         LoadTestProfileMappingName = "myLoadTestProfileMapping",
 *         ResourceUri = "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.Web/sites/sitename",
 *         TestProfileId = "123456",
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	loadtestservice "github.com/pulumi/pulumi-azure-native-sdk/loadtestservice/v2"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		_, err := loadtestservice.NewLoadTestProfileMapping(ctx, "loadTestProfileMapping", &loadtestservice.LoadTestProfileMappingArgs{
 * 			AzureLoadTestingResourceId: pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.LoadTestService/loadTests/myLoadTest"),
 * 			LoadTestProfileMappingName: pulumi.String("myLoadTestProfileMapping"),
 * 			ResourceUri:                pulumi.String("subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.Web/sites/sitename"),
 * 			TestProfileId:              pulumi.String("123456"),
 * 		})
 * 		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.loadtestservice.LoadTestProfileMapping;
 * import com.pulumi.azurenative.loadtestservice.LoadTestProfileMappingArgs;
 * 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 loadTestProfileMapping = new LoadTestProfileMapping("loadTestProfileMapping", LoadTestProfileMappingArgs.builder()
 *             .azureLoadTestingResourceId("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.LoadTestService/loadTests/myLoadTest")
 *             .loadTestProfileMappingName("myLoadTestProfileMapping")
 *             .resourceUri("subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.Web/sites/sitename")
 *             .testProfileId("123456")
 *             .build());
 *     }
 * }
 * ```
 * ## Import
 * An existing resource can be imported using its type token, name, and identifier, e.g.
 * ```sh
 * $ pulumi import azure-native:loadtestservice:LoadTestProfileMapping myLoadTestProfileMapping /{resourceUri}/providers/Microsoft.LoadTestService/loadTestProfileMappings/{loadTestProfileMappingName}
 * ```
 * @property azureLoadTestingResourceId Mapped Azure Load Test resource Id.
 * @property loadTestProfileMappingName Load Test Profile Mapping name
 * @property resourceUri The fully qualified Azure Resource manager identifier of the resource.
 * @property sourceResourceId Mapped source resource Id.
 * @property testProfileId Mapped Azure Load Test resource test-profile-id.
 */
public data class LoadTestProfileMappingArgs(
    public val azureLoadTestingResourceId: Output? = null,
    public val loadTestProfileMappingName: Output? = null,
    public val resourceUri: Output? = null,
    public val sourceResourceId: Output? = null,
    public val testProfileId: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.loadtestservice.LoadTestProfileMappingArgs =
        com.pulumi.azurenative.loadtestservice.LoadTestProfileMappingArgs.builder()
            .azureLoadTestingResourceId(azureLoadTestingResourceId?.applyValue({ args0 -> args0 }))
            .loadTestProfileMappingName(loadTestProfileMappingName?.applyValue({ args0 -> args0 }))
            .resourceUri(resourceUri?.applyValue({ args0 -> args0 }))
            .sourceResourceId(sourceResourceId?.applyValue({ args0 -> args0 }))
            .testProfileId(testProfileId?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [LoadTestProfileMappingArgs].
 */
@PulumiTagMarker
public class LoadTestProfileMappingArgsBuilder internal constructor() {
    private var azureLoadTestingResourceId: Output? = null

    private var loadTestProfileMappingName: Output? = null

    private var resourceUri: Output? = null

    private var sourceResourceId: Output? = null

    private var testProfileId: Output? = null

    /**
     * @param value Mapped Azure Load Test resource Id.
     */
    @JvmName("cgogcsagslddpurx")
    public suspend fun azureLoadTestingResourceId(`value`: Output) {
        this.azureLoadTestingResourceId = value
    }

    /**
     * @param value Load Test Profile Mapping name
     */
    @JvmName("gievnpdtdmorfahf")
    public suspend fun loadTestProfileMappingName(`value`: Output) {
        this.loadTestProfileMappingName = value
    }

    /**
     * @param value The fully qualified Azure Resource manager identifier of the resource.
     */
    @JvmName("xdrctwcfwgsisnry")
    public suspend fun resourceUri(`value`: Output) {
        this.resourceUri = value
    }

    /**
     * @param value Mapped source resource Id.
     */
    @JvmName("idvpbsgrlrdjfmfw")
    public suspend fun sourceResourceId(`value`: Output) {
        this.sourceResourceId = value
    }

    /**
     * @param value Mapped Azure Load Test resource test-profile-id.
     */
    @JvmName("xwdvboaaacfmfcml")
    public suspend fun testProfileId(`value`: Output) {
        this.testProfileId = value
    }

    /**
     * @param value Mapped Azure Load Test resource Id.
     */
    @JvmName("cydytaakadwnamhw")
    public suspend fun azureLoadTestingResourceId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.azureLoadTestingResourceId = mapped
    }

    /**
     * @param value Load Test Profile Mapping name
     */
    @JvmName("mjxqpkjxclxhmito")
    public suspend fun loadTestProfileMappingName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.loadTestProfileMappingName = mapped
    }

    /**
     * @param value The fully qualified Azure Resource manager identifier of the resource.
     */
    @JvmName("ldavbvvlbqlkstpu")
    public suspend fun resourceUri(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resourceUri = mapped
    }

    /**
     * @param value Mapped source resource Id.
     */
    @JvmName("kqswtcjfcbhrivsw")
    public suspend fun sourceResourceId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sourceResourceId = mapped
    }

    /**
     * @param value Mapped Azure Load Test resource test-profile-id.
     */
    @JvmName("ftmxynkgklsgxrsy")
    public suspend fun testProfileId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.testProfileId = mapped
    }

    internal fun build(): LoadTestProfileMappingArgs = LoadTestProfileMappingArgs(
        azureLoadTestingResourceId = azureLoadTestingResourceId,
        loadTestProfileMappingName = loadTestProfileMappingName,
        resourceUri = resourceUri,
        sourceResourceId = sourceResourceId,
        testProfileId = testProfileId,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy