Target
A Target resource belonging to an Instance resource. Azure REST 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 = "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",
});
});Content copied to clipboard
package main
import (
"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.ComponentPropertiesArgs{
{
Dependencies: pulumi.StringArray{
pulumi.String("x"),
},
Name: pulumi.String("yhnelpxsobdyurwvhkq"),
Properties: nil,
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("periodic"),
},
ResourceGroupName: pulumi.String("rgopenapi"),
Scope: pulumi.String("lm"),
Tags: nil,
Topologies: []iotoperationsorchestrator.TopologiesPropertiesArgs{
{
Bindings: iotoperationsorchestrator.BindingPropertiesArray{
{
Config: nil,
Provider: pulumi.String("qpwesjlyyggcbehwigbobqum"),
Role: pulumi.String("role"),
},
},
},
},
Version: pulumi.String("prbigsnjltnzqliu"),
})
if err != nil {
return err
}
return nil
})
}Content copied to clipboard
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 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(Map.ofEntries(
Map.entry("dependencies", "x"),
Map.entry("name", "yhnelpxsobdyurwvhkq"),
Map.entry("properties", ),
Map.entry("type", "wiabwsfqhhxru")
))
.extendedLocation(Map.ofEntries(
Map.entry("name", "bjjhfqsplgzdlbdlddleetyg"),
Map.entry("type", "sosibrbmmrfbbyp")
))
.location("pjjkifnrwvzcyohz")
.name("7---s--1-hl-fl-3f0-wfy34e08-4")
.reconciliationPolicy(Map.ofEntries(
Map.entry("interval", "wyrrzydmfgzymvzbppscxyfobku"),
Map.entry("type", "periodic")
))
.resourceGroupName("rgopenapi")
.scope("lm")
.tags()
.topologies(Map.of("bindings", Map.ofEntries(
Map.entry("config", ),
Map.entry("provider", "qpwesjlyyggcbehwigbobqum"),
Map.entry("role", "role")
)))
.version("prbigsnjltnzqliu")
.build());
}
}Content copied to clipboard
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}Content copied to clipboard