azure-native.workloads.Connector
Explore with Pulumi AI
Define the connector resource. Azure REST 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 pulumi
import pulumi_azure_native as azure_native
connector = azure_native.workloads.Connector("connector",
connector_name="C1",
location="westcentralus",
resource_group_name="test-rg",
source_resource_id="/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Workloads/sapVirtualInstances/X00",
tags={})
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const connector = new azure_native.workloads.Connector("connector", {
connectorName: "C1",
location: "westcentralus",
resourceGroupName: "test-rg",
sourceResourceId: "/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Workloads/sapVirtualInstances/X00",
tags: {},
});
resources:
connector:
type: azure-native:workloads:Connector
properties:
connectorName: C1
location: westcentralus
resourceGroupName: test-rg
sourceResourceId: /subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Workloads/sapVirtualInstances/X00
tags: {}
Create Connector Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Connector(name: string, args: ConnectorArgs, opts?: CustomResourceOptions);
@overload
def Connector(resource_name: str,
args: ConnectorArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Connector(resource_name: str,
opts: Optional[ResourceOptions] = None,
resource_group_name: Optional[str] = None,
source_resource_id: Optional[str] = None,
connector_name: Optional[str] = None,
identity: Optional[UserAssignedServiceIdentityArgs] = None,
location: Optional[str] = None,
managed_resource_group_configuration: Optional[ManagedRGConfigurationArgs] = None,
tags: Optional[Mapping[str, str]] = None)
func NewConnector(ctx *Context, name string, args ConnectorArgs, opts ...ResourceOption) (*Connector, error)
public Connector(string name, ConnectorArgs args, CustomResourceOptions? opts = null)
public Connector(String name, ConnectorArgs args)
public Connector(String name, ConnectorArgs args, CustomResourceOptions options)
type: azure-native:workloads:Connector
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ConnectorArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ConnectorArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ConnectorArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ConnectorArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ConnectorArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var exampleconnectorResourceResourceFromWorkloads = new AzureNative.Workloads.Connector("exampleconnectorResourceResourceFromWorkloads", new()
{
ResourceGroupName = "string",
SourceResourceId = "string",
ConnectorName = "string",
Identity = new AzureNative.Workloads.Inputs.UserAssignedServiceIdentityArgs
{
Type = "string",
UserAssignedIdentities = new[]
{
"string",
},
},
Location = "string",
ManagedResourceGroupConfiguration = new AzureNative.Workloads.Inputs.ManagedRGConfigurationArgs
{
Name = "string",
},
Tags =
{
{ "string", "string" },
},
});
example, err := workloads.NewConnector(ctx, "exampleconnectorResourceResourceFromWorkloads", &workloads.ConnectorArgs{
ResourceGroupName: pulumi.String("string"),
SourceResourceId: pulumi.String("string"),
ConnectorName: pulumi.String("string"),
Identity: &workloads.UserAssignedServiceIdentityArgs{
Type: pulumi.String("string"),
UserAssignedIdentities: pulumi.StringArray{
pulumi.String("string"),
},
},
Location: pulumi.String("string"),
ManagedResourceGroupConfiguration: &workloads.ManagedRGConfigurationArgs{
Name: pulumi.String("string"),
},
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var exampleconnectorResourceResourceFromWorkloads = new Connector("exampleconnectorResourceResourceFromWorkloads", ConnectorArgs.builder()
.resourceGroupName("string")
.sourceResourceId("string")
.connectorName("string")
.identity(UserAssignedServiceIdentityArgs.builder()
.type("string")
.userAssignedIdentities("string")
.build())
.location("string")
.managedResourceGroupConfiguration(ManagedRGConfigurationArgs.builder()
.name("string")
.build())
.tags(Map.of("string", "string"))
.build());
exampleconnector_resource_resource_from_workloads = azure_native.workloads.Connector("exampleconnectorResourceResourceFromWorkloads",
resource_group_name="string",
source_resource_id="string",
connector_name="string",
identity={
"type": "string",
"user_assigned_identities": ["string"],
},
location="string",
managed_resource_group_configuration={
"name": "string",
},
tags={
"string": "string",
})
const exampleconnectorResourceResourceFromWorkloads = new azure_native.workloads.Connector("exampleconnectorResourceResourceFromWorkloads", {
resourceGroupName: "string",
sourceResourceId: "string",
connectorName: "string",
identity: {
type: "string",
userAssignedIdentities: ["string"],
},
location: "string",
managedResourceGroupConfiguration: {
name: "string",
},
tags: {
string: "string",
},
});
type: azure-native:workloads:Connector
properties:
connectorName: string
identity:
type: string
userAssignedIdentities:
- string
location: string
managedResourceGroupConfiguration:
name: string
resourceGroupName: string
sourceResourceId: string
tags:
string: string
Connector Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Connector resource accepts the following input properties:
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Source
Resource stringId - Defines the ID of the connector's source resource.
- Connector
Name string - The name of the connector resource
- Identity
Pulumi.
Azure Native. Workloads. Inputs. User Assigned Service Identity - Managed service identity (user assigned identities)
- Location string
- The geo-location where the resource lives
- Managed
Resource Pulumi.Group Configuration Azure Native. Workloads. Inputs. Managed RGConfiguration - Managed resource group configuration
- Dictionary<string, string>
- Resource tags.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Source
Resource stringId - Defines the ID of the connector's source resource.
- Connector
Name string - The name of the connector resource
- Identity
User
Assigned Service Identity Args - Managed service identity (user assigned identities)
- Location string
- The geo-location where the resource lives
- Managed
Resource ManagedGroup Configuration RGConfiguration Args - Managed resource group configuration
- map[string]string
- Resource tags.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- source
Resource StringId - Defines the ID of the connector's source resource.
- connector
Name String - The name of the connector resource
- identity
User
Assigned Service Identity - Managed service identity (user assigned identities)
- location String
- The geo-location where the resource lives
- managed
Resource ManagedGroup Configuration RGConfiguration - Managed resource group configuration
- Map<String,String>
- Resource tags.
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- source
Resource stringId - Defines the ID of the connector's source resource.
- connector
Name string - The name of the connector resource
- identity
User
Assigned Service Identity - Managed service identity (user assigned identities)
- location string
- The geo-location where the resource lives
- managed
Resource ManagedGroup Configuration RGConfiguration - Managed resource group configuration
- {[key: string]: string}
- Resource tags.
- resource_
group_ strname - The name of the resource group. The name is case insensitive.
- source_
resource_ strid - Defines the ID of the connector's source resource.
- connector_
name str - The name of the connector resource
- identity
User
Assigned Service Identity Args - Managed service identity (user assigned identities)
- location str
- The geo-location where the resource lives
- managed_
resource_ Managedgroup_ configuration RGConfiguration Args - Managed resource group configuration
- Mapping[str, str]
- Resource tags.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- source
Resource StringId - Defines the ID of the connector's source resource.
- connector
Name String - The name of the connector resource
- identity Property Map
- Managed service identity (user assigned identities)
- location String
- The geo-location where the resource lives
- managed
Resource Property MapGroup Configuration - Managed resource group configuration
- Map<String>
- Resource tags.
Outputs
All input properties are implicitly available as output properties. Additionally, the Connector resource produces the following output properties:
- Errors
Pulumi.
Azure Native. Workloads. Outputs. Connector Error Definition Response - Indicates any errors on the connector resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- Provisioning
State string - Defines the provisioning states.
- System
Data Pulumi.Azure Native. Workloads. Outputs. System Data Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Errors
Connector
Error Definition Response - Indicates any errors on the connector resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- Provisioning
State string - Defines the provisioning states.
- System
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- errors
Connector
Error Definition Response - Indicates any errors on the connector resource.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- provisioning
State String - Defines the provisioning states.
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- errors
Connector
Error Definition Response - Indicates any errors on the connector resource.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The name of the resource
- provisioning
State string - Defines the provisioning states.
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- errors
Connector
Error Definition Response - Indicates any errors on the connector resource.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- The name of the resource
- provisioning_
state str - Defines the provisioning states.
- system_
data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- errors Property Map
- Indicates any errors on the connector resource.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- provisioning
State String - Defines the provisioning states.
- system
Data Property Map - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Supporting Types
ConnectorErrorDefinitionResponse, ConnectorErrorDefinitionResponseArgs
- Code string
- Service specific error code which serves as the substatus for the HTTP error code.
- Details
List<Pulumi.
Azure Native. Workloads. Inputs. Connector Error Definition Response> - Internal error details.
- Message string
- Description of the error.
- Code string
- Service specific error code which serves as the substatus for the HTTP error code.
- Details
[]Connector
Error Definition Response - Internal error details.
- Message string
- Description of the error.
- code String
- Service specific error code which serves as the substatus for the HTTP error code.
- details
List<Connector
Error Definition Response> - Internal error details.
- message String
- Description of the error.
- code string
- Service specific error code which serves as the substatus for the HTTP error code.
- details
Connector
Error Definition Response[] - Internal error details.
- message string
- Description of the error.
- code str
- Service specific error code which serves as the substatus for the HTTP error code.
- details
Sequence[Connector
Error Definition Response] - Internal error details.
- message str
- Description of the error.
- code String
- Service specific error code which serves as the substatus for the HTTP error code.
- details List<Property Map>
- Internal error details.
- message String
- Description of the error.
ManagedRGConfiguration, ManagedRGConfigurationArgs
- Name string
- Managed resource group name
- Name string
- Managed resource group name
- name String
- Managed resource group name
- name string
- Managed resource group name
- name str
- Managed resource group name
- name String
- Managed resource group name
ManagedRGConfigurationResponse, ManagedRGConfigurationResponseArgs
- Name string
- Managed resource group name
- Name string
- Managed resource group name
- name String
- Managed resource group name
- name string
- Managed resource group name
- name str
- Managed resource group name
- name String
- Managed resource group name
ManagedServiceIdentityType, ManagedServiceIdentityTypeArgs
- None
- None
- User
Assigned - UserAssigned
- Managed
Service Identity Type None - None
- Managed
Service Identity Type User Assigned - UserAssigned
- None
- None
- User
Assigned - UserAssigned
- None
- None
- User
Assigned - UserAssigned
- NONE
- None
- USER_ASSIGNED
- UserAssigned
- "None"
- None
- "User
Assigned" - UserAssigned
SystemDataResponse, SystemDataResponseArgs
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified stringBy Type - The type of identity that last modified the resource.
- created_
at str - The timestamp of resource creation (UTC).
- created_
by str - The identity that created the resource.
- created_
by_ strtype - The type of identity that created the resource.
- last_
modified_ strat - The timestamp of resource last modification (UTC)
- last_
modified_ strby - The identity that last modified the resource.
- last_
modified_ strby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
UserAssignedIdentityResponse, UserAssignedIdentityResponseArgs
- Client
Id string - The client ID of the assigned identity.
- Principal
Id string - The principal ID of the assigned identity.
- Client
Id string - The client ID of the assigned identity.
- Principal
Id string - The principal ID of the assigned identity.
- client
Id String - The client ID of the assigned identity.
- principal
Id String - The principal ID of the assigned identity.
- client
Id string - The client ID of the assigned identity.
- principal
Id string - The principal ID of the assigned identity.
- client_
id str - The client ID of the assigned identity.
- principal_
id str - The principal ID of the assigned identity.
- client
Id String - The client ID of the assigned identity.
- principal
Id String - The principal ID of the assigned identity.
UserAssignedServiceIdentity, UserAssignedServiceIdentityArgs
- Type
string | Pulumi.
Azure Native. Workloads. Managed Service Identity Type - Type of manage identity
- User
Assigned List<string>Identities - User assigned identities dictionary
- Type
string | Managed
Service Identity Type - Type of manage identity
- User
Assigned []stringIdentities - User assigned identities dictionary
- type
String | Managed
Service Identity Type - Type of manage identity
- user
Assigned List<String>Identities - User assigned identities dictionary
- type
string | Managed
Service Identity Type - Type of manage identity
- user
Assigned string[]Identities - User assigned identities dictionary
- type
str | Managed
Service Identity Type - Type of manage identity
- user_
assigned_ Sequence[str]identities - User assigned identities dictionary
- type
String | "None" | "User
Assigned" - Type of manage identity
- user
Assigned List<String>Identities - User assigned identities dictionary
UserAssignedServiceIdentityResponse, UserAssignedServiceIdentityResponseArgs
- Type string
- Type of manage identity
- User
Assigned Dictionary<string, Pulumi.Identities Azure Native. Workloads. Inputs. User Assigned Identity Response> - User assigned identities dictionary
- Type string
- Type of manage identity
- User
Assigned map[string]UserIdentities Assigned Identity Response - User assigned identities dictionary
- type String
- Type of manage identity
- user
Assigned Map<String,UserIdentities Assigned Identity Response> - User assigned identities dictionary
- type string
- Type of manage identity
- user
Assigned {[key: string]: UserIdentities Assigned Identity Response} - User assigned identities dictionary
- type str
- Type of manage identity
- user_
assigned_ Mapping[str, Useridentities Assigned Identity Response] - User assigned identities dictionary
- type String
- Type of manage identity
- user
Assigned Map<Property Map>Identities - User assigned identities dictionary
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}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0