ExperimentArgs

data class ExperimentArgs(val description: Output<String>? = null, val enabledState: Output<Either<String, State>>? = null, val endpointA: Output<EndpointArgs>? = null, val endpointB: Output<EndpointArgs>? = null, val experimentName: Output<String>? = null, val location: Output<String>? = null, val profileName: Output<String>? = null, val resourceGroupName: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<ExperimentArgs>

Defines the properties of an Experiment Uses Azure REST API version 2019-11-01.

Example Usage

Creates an Experiment

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var experiment = new AzureNative.FrontDoor.Experiment("experiment", new()
{
Description = "this is my first experiment!",
EnabledState = AzureNative.FrontDoor.State.Enabled,
EndpointA = new AzureNative.FrontDoor.Inputs.EndpointArgs
{
Endpoint = "endpointA.net",
Name = "endpoint A",
},
EndpointB = new AzureNative.FrontDoor.Inputs.EndpointArgs
{
Endpoint = "endpointB.net",
Name = "endpoint B",
},
ExperimentName = "MyExperiment",
ProfileName = "MyProfile",
ResourceGroupName = "MyResourceGroup",
});
});
package main
import (
frontdoor "github.com/pulumi/pulumi-azure-native-sdk/frontdoor/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := frontdoor.NewExperiment(ctx, "experiment", &frontdoor.ExperimentArgs{
Description: pulumi.String("this is my first experiment!"),
EnabledState: pulumi.String(frontdoor.StateEnabled),
EndpointA: &frontdoor.EndpointArgs{
Endpoint: pulumi.String("endpointA.net"),
Name: pulumi.String("endpoint A"),
},
EndpointB: &frontdoor.EndpointArgs{
Endpoint: pulumi.String("endpointB.net"),
Name: pulumi.String("endpoint B"),
},
ExperimentName: pulumi.String("MyExperiment"),
ProfileName: pulumi.String("MyProfile"),
ResourceGroupName: pulumi.String("MyResourceGroup"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.frontdoor.Experiment;
import com.pulumi.azurenative.frontdoor.ExperimentArgs;
import com.pulumi.azurenative.frontdoor.inputs.EndpointArgs;
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 experiment = new Experiment("experiment", ExperimentArgs.builder()
.description("this is my first experiment!")
.enabledState("Enabled")
.endpointA(EndpointArgs.builder()
.endpoint("endpointA.net")
.name("endpoint A")
.build())
.endpointB(EndpointArgs.builder()
.endpoint("endpointB.net")
.name("endpoint B")
.build())
.experimentName("MyExperiment")
.profileName("MyProfile")
.resourceGroupName("MyResourceGroup")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:frontdoor:Experiment MyExperiment /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/NetworkExperimentProfiles/{profileName}/Experiments/{experimentName}

Constructors

Link copied to clipboard
constructor(description: Output<String>? = null, enabledState: Output<Either<String, State>>? = null, endpointA: Output<EndpointArgs>? = null, endpointB: Output<EndpointArgs>? = null, experimentName: Output<String>? = null, location: Output<String>? = null, profileName: Output<String>? = null, resourceGroupName: Output<String>? = null, tags: Output<Map<String, String>>? = null)

Properties

Link copied to clipboard
val description: Output<String>? = null

The description of the details or intents of the Experiment

Link copied to clipboard
val enabledState: Output<Either<String, State>>? = null

The state of the Experiment

Link copied to clipboard
val endpointA: Output<EndpointArgs>? = null

The endpoint A of an experiment

Link copied to clipboard
val endpointB: Output<EndpointArgs>? = null

The endpoint B of an experiment

Link copied to clipboard
val experimentName: Output<String>? = null

The Experiment identifier associated with the Experiment

Link copied to clipboard
val location: Output<String>? = null

Resource location.

Link copied to clipboard
val profileName: Output<String>? = null

The Profile identifier associated with the Tenant and Partner

Link copied to clipboard
val resourceGroupName: Output<String>? = null

Name of the Resource group within the Azure subscription.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

Resource tags.

Functions

Link copied to clipboard
open override fun toJava(): ExperimentArgs