TargetArgs

data class TargetArgs(val components: Output<List<ComponentPropertiesArgs>>? = null, val extendedLocation: Output<ExtendedLocationArgs>? = null, val location: Output<String>? = null, val name: Output<String>? = null, val reconciliationPolicy: Output<ReconciliationPolicyArgs>? = null, val resourceGroupName: Output<String>? = null, val scope: Output<String>? = null, val tags: Output<Map<String, String>>? = null, val topologies: Output<List<TopologiesPropertiesArgs>>? = null, val version: Output<String>? = null) : ConvertibleToJava<TargetArgs>

A Target resource belonging to an Instance resource. Uses Azure REST API version 2023-10-04-preview. In version 2.x of the Azure Native provider, it used API version 2023-10-04-preview.

Example Usage

Targets_CreateOrUpdate - generated by MaximumSet rule - generated by MaximumSet rule

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var target = new AzureNative.IoTOperationsOrchestrator.Target("target", new()
{
Components = new[]
{
new AzureNative.IoTOperationsOrchestrator.Inputs.ComponentPropertiesArgs
{
Dependencies = new[]
{
"x",
},
Name = "yhnelpxsobdyurwvhkq",
Properties = null,
Type = "wiabwsfqhhxru",
},
},
ExtendedLocation = new AzureNative.IoTOperationsOrchestrator.Inputs.ExtendedLocationArgs
{
Name = "bjjhfqsplgzdlbdlddleetyg",
Type = "sosibrbmmrfbbyp",
},
Location = "pjjkifnrwvzcyohz",
Name = "7---s--1-hl-fl-3f0-wfy34e08-4",
ReconciliationPolicy = new AzureNative.IoTOperationsOrchestrator.Inputs.ReconciliationPolicyArgs
{
Interval = "wyrrzydmfgzymvzbppscxyfobku",
Type = AzureNative.IoTOperationsOrchestrator.ReconciliationPolicies.Periodic,
},
ResourceGroupName = "rgopenapi",
Scope = "lm",
Tags = null,
Topologies = new[]
{
new AzureNative.IoTOperationsOrchestrator.Inputs.TopologiesPropertiesArgs
{
Bindings = new[]
{
new AzureNative.IoTOperationsOrchestrator.Inputs.BindingPropertiesArgs
{
Config = null,
Provider = "qpwesjlyyggcbehwigbobqum",
Role = "role",
},
},
},
},
Version = "prbigsnjltnzqliu",
});
});
package main
import (
iotoperationsorchestrator "github.com/pulumi/pulumi-azure-native-sdk/iotoperationsorchestrator/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := iotoperationsorchestrator.NewTarget(ctx, "target", &iotoperationsorchestrator.TargetArgs{
Components: iotoperationsorchestrator.ComponentPropertiesArray{
&iotoperationsorchestrator.ComponentPropertiesArgs{
Dependencies: pulumi.StringArray{
pulumi.String("x"),
},
Name: pulumi.String("yhnelpxsobdyurwvhkq"),
Properties: pulumi.Any(map[string]interface{}{}),
Type: pulumi.String("wiabwsfqhhxru"),
},
},
ExtendedLocation: &iotoperationsorchestrator.ExtendedLocationArgs{
Name: pulumi.String("bjjhfqsplgzdlbdlddleetyg"),
Type: pulumi.String("sosibrbmmrfbbyp"),
},
Location: pulumi.String("pjjkifnrwvzcyohz"),
Name: pulumi.String("7---s--1-hl-fl-3f0-wfy34e08-4"),
ReconciliationPolicy: &iotoperationsorchestrator.ReconciliationPolicyArgs{
Interval: pulumi.String("wyrrzydmfgzymvzbppscxyfobku"),
Type: pulumi.String(iotoperationsorchestrator.ReconciliationPoliciesPeriodic),
},
ResourceGroupName: pulumi.String("rgopenapi"),
Scope: pulumi.String("lm"),
Tags: pulumi.StringMap{},
Topologies: iotoperationsorchestrator.TopologiesPropertiesArray{
&iotoperationsorchestrator.TopologiesPropertiesArgs{
Bindings: iotoperationsorchestrator.BindingPropertiesArray{
&iotoperationsorchestrator.BindingPropertiesArgs{
Config: pulumi.Any(map[string]interface{}{}),
Provider: pulumi.String("qpwesjlyyggcbehwigbobqum"),
Role: pulumi.String("role"),
},
},
},
},
Version: pulumi.String("prbigsnjltnzqliu"),
})
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.iotoperationsorchestrator.Target;
import com.pulumi.azurenative.iotoperationsorchestrator.TargetArgs;
import com.pulumi.azurenative.iotoperationsorchestrator.inputs.ComponentPropertiesArgs;
import com.pulumi.azurenative.iotoperationsorchestrator.inputs.ExtendedLocationArgs;
import com.pulumi.azurenative.iotoperationsorchestrator.inputs.ReconciliationPolicyArgs;
import com.pulumi.azurenative.iotoperationsorchestrator.inputs.TopologiesPropertiesArgs;
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 target = new Target("target", TargetArgs.builder()
.components(ComponentPropertiesArgs.builder()
.dependencies("x")
.name("yhnelpxsobdyurwvhkq")
.properties()
.type("wiabwsfqhhxru")
.build())
.extendedLocation(ExtendedLocationArgs.builder()
.name("bjjhfqsplgzdlbdlddleetyg")
.type("sosibrbmmrfbbyp")
.build())
.location("pjjkifnrwvzcyohz")
.name("7---s--1-hl-fl-3f0-wfy34e08-4")
.reconciliationPolicy(ReconciliationPolicyArgs.builder()
.interval("wyrrzydmfgzymvzbppscxyfobku")
.type("periodic")
.build())
.resourceGroupName("rgopenapi")
.scope("lm")
.tags()
.topologies(TopologiesPropertiesArgs.builder()
.bindings(BindingPropertiesArgs.builder()
.config()
.provider("qpwesjlyyggcbehwigbobqum")
.role("role")
.build())
.build())
.version("prbigsnjltnzqliu")
.build());
}
}

Import

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

$ pulumi import azure-native:iotoperationsorchestrator:Target lrhoqxofrfoihqxmmxadhxeqzsnepc /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperationsOrchestrator/targets/{name}

Constructors

Link copied to clipboard
constructor(components: Output<List<ComponentPropertiesArgs>>? = null, extendedLocation: Output<ExtendedLocationArgs>? = null, location: Output<String>? = null, name: Output<String>? = null, reconciliationPolicy: Output<ReconciliationPolicyArgs>? = null, resourceGroupName: Output<String>? = null, scope: Output<String>? = null, tags: Output<Map<String, String>>? = null, topologies: Output<List<TopologiesPropertiesArgs>>? = null, version: Output<String>? = null)

Properties

Link copied to clipboard

A list of components.

Link copied to clipboard

Edge location of the resource.

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

The geo-location where the resource lives

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

Name of target.

Link copied to clipboard

Reconciliation Policy.

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

The name of the resource group. The name is case insensitive.

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

Deployment scope (such as Kubernetes namespace).

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

Resource tags.

Link copied to clipboard

Defines the device topology for a target or instance.

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

Version of the particular resource.

Functions

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