ConnectorArgs

data class ConnectorArgs(val connectorName: Output<String>? = null, val identity: Output<UserAssignedServiceIdentityArgs>? = null, val location: Output<String>? = null, val managedResourceGroupConfiguration: Output<ManagedRGConfigurationArgs>? = null, val resourceGroupName: Output<String>? = null, val sourceResourceId: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<ConnectorArgs>

Define the connector resource. Uses Azure REST API version 2023-10-01-preview. In version 2.x of the Azure Native provider, it used API version 2023-10-01-preview.

Example Usage

Create a connector resource.

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var connector = new AzureNative.Workloads.Connector("connector", new()
{
ConnectorName = "C1",
Location = "westcentralus",
ResourceGroupName = "test-rg",
SourceResourceId = "/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Workloads/sapVirtualInstances/X00",
Tags = null,
});
});
package main
import (
workloads "github.com/pulumi/pulumi-azure-native-sdk/workloads/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := workloads.NewConnector(ctx, "connector", &workloads.ConnectorArgs{
ConnectorName: pulumi.String("C1"),
Location: pulumi.String("westcentralus"),
ResourceGroupName: pulumi.String("test-rg"),
SourceResourceId: pulumi.String("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Workloads/sapVirtualInstances/X00"),
Tags: pulumi.StringMap{},
})
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.workloads.Connector;
import com.pulumi.azurenative.workloads.ConnectorArgs;
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 connector = new Connector("connector", ConnectorArgs.builder()
.connectorName("C1")
.location("westcentralus")
.resourceGroupName("test-rg")
.sourceResourceId("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Workloads/sapVirtualInstances/X00")
.tags()
.build());
}
}

Import

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

$ pulumi import azure-native:workloads:Connector C1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Workloads/connectors/{connectorName}

Constructors

Link copied to clipboard
constructor(connectorName: Output<String>? = null, identity: Output<UserAssignedServiceIdentityArgs>? = null, location: Output<String>? = null, managedResourceGroupConfiguration: Output<ManagedRGConfigurationArgs>? = null, resourceGroupName: Output<String>? = null, sourceResourceId: Output<String>? = null, tags: Output<Map<String, String>>? = null)

Properties

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

The name of the connector resource

Link copied to clipboard

Managed service identity (user assigned identities)

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

The geo-location where the resource lives

Link copied to clipboard

Managed resource group configuration

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 sourceResourceId: Output<String>? = null

Defines the ID of the connector's source resource.

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

Resource tags.

Functions

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