import * as pulumi from "@pulumi/pulumi"; /** * * * Manages a Chaos Studio Target. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const exampleResourceGroup = new azure.core.ResourceGroup("example", { * name: "example-resources", * location: "West Europe", * }); * const example = new azure.containerservice.KubernetesCluster("example", { * name: "example", * location: exampleResourceGroup.location, * resourceGroupName: exampleResourceGroup.name, * dnsPrefix: "acctestaksexample", * defaultNodePool: { * name: "example-value", * nodeCount: "example-value", * vmSize: "example-value", * upgradeSettings: { * maxSurge: "example-value", * }, * }, * identity: { * type: "example-value", * }, * }); * const exampleTarget = new azure.chaosstudio.Target("example", { * location: exampleResourceGroup.location, * targetResourceId: example.id, * targetType: "example-value", * }); * ``` * * ## Import * * An existing Chaos Studio Target can be imported into Pulumi using the `resource id`, e.g. * * ```sh * $ pulumi import azure:chaosstudio/target:Target example /{scope}/providers/Microsoft.Chaos/targets/{targetName} * ``` * * * Where `{scope}` is the ID of the Azure Resource under which the Chaos Studio Target exists. For example `/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group`. * * Where `{targetName}` is the name of the Target. For example `targetValue`. */ export declare class Target extends pulumi.CustomResource { /** * Get an existing Target resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: TargetState, opts?: pulumi.CustomResourceOptions): Target; /** * Returns true if the given object is an instance of Target. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is Target; /** * The Azure Region where the Chaos Studio Target should exist. Changing this forces a new Chaos Studio Target to be created. */ readonly location: pulumi.Output; /** * Specifies the Target Resource Id within which this Chaos Studio Target should exist. Changing this forces a new Chaos Studio Target to be created. */ readonly targetResourceId: pulumi.Output; /** * The name of the Chaos Studio Target. This has the format of [publisher]-[targetType] e.g. `Microsoft-StorageAccount`. For supported values please see this Target Type column in [this table](https://learn.microsoft.com/azure/chaos-studio/chaos-studio-fault-providers). Changing this forces a new Chaos Studio Target to be created. */ readonly targetType: pulumi.Output; /** * Create a Target resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: TargetArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Target resources. */ export interface TargetState { /** * The Azure Region where the Chaos Studio Target should exist. Changing this forces a new Chaos Studio Target to be created. */ location?: pulumi.Input; /** * Specifies the Target Resource Id within which this Chaos Studio Target should exist. Changing this forces a new Chaos Studio Target to be created. */ targetResourceId?: pulumi.Input; /** * The name of the Chaos Studio Target. This has the format of [publisher]-[targetType] e.g. `Microsoft-StorageAccount`. For supported values please see this Target Type column in [this table](https://learn.microsoft.com/azure/chaos-studio/chaos-studio-fault-providers). Changing this forces a new Chaos Studio Target to be created. */ targetType?: pulumi.Input; } /** * The set of arguments for constructing a Target resource. */ export interface TargetArgs { /** * The Azure Region where the Chaos Studio Target should exist. Changing this forces a new Chaos Studio Target to be created. */ location?: pulumi.Input; /** * Specifies the Target Resource Id within which this Chaos Studio Target should exist. Changing this forces a new Chaos Studio Target to be created. */ targetResourceId: pulumi.Input; /** * The name of the Chaos Studio Target. This has the format of [publisher]-[targetType] e.g. `Microsoft-StorageAccount`. For supported values please see this Target Type column in [this table](https://learn.microsoft.com/azure/chaos-studio/chaos-studio-fault-providers). Changing this forces a new Chaos Studio Target to be created. */ targetType: pulumi.Input; }