azure-native-v2.workloads.Connector
Explore with Pulumi AI
Define the connector resource. Azure REST API version: 2023-10-01-preview.
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
This property is required. string - The unique name of the resource.
- args
This property is required. ConnectorArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name
This property is required. str - The unique name of the resource.
- args
This property is required. 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
This property is required. string - The unique name of the resource.
- args
This property is required. ConnectorArgs - The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. ConnectorArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name
This property is required. String - The unique name of the resource.
- args
This property is required. 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 =
{
{ "type", "string" },
{ "userAssignedIdentities", new[]
{
"string",
} },
},
Location = "string",
ManagedResourceGroupConfiguration =
{
{ "name", "string" },
},
Tags =
{
{ "string", "string" },
},
});
example, err := workloads.NewConnector(ctx, "exampleconnectorResourceResourceFromWorkloads", &workloads.ConnectorArgs{
ResourceGroupName: "string",
SourceResourceId: "string",
ConnectorName: "string",
Identity: map[string]interface{}{
"type": "string",
"userAssignedIdentities": []string{
"string",
},
},
Location: "string",
ManagedResourceGroupConfiguration: map[string]interface{}{
"name": "string",
},
Tags: map[string]interface{}{
"string": "string",
},
})
var exampleconnectorResourceResourceFromWorkloads = new Connector("exampleconnectorResourceResourceFromWorkloads", ConnectorArgs.builder()
.resourceGroupName("string")
.sourceResourceId("string")
.connectorName("string")
.identity(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.location("string")
.managedResourceGroupConfiguration(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.tags(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.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,
userAssignedIdentities: [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 Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group. The name is case insensitive.
- Source
Resource Id This property is required. Changes to this property will trigger replacement.
- Defines the ID of the connector's source resource.
- Connector
Name Changes to this property will trigger replacement.
- The name of the connector resource
- Identity
Pulumi.
Azure Native. Workloads. Inputs. User Assigned Service Identity - Managed service identity (user assigned identities)
- Location
Changes to this property will trigger replacement.
- 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 Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group. The name is case insensitive.
- Source
Resource Id This property is required. Changes to this property will trigger replacement.
- Defines the ID of the connector's source resource.
- Connector
Name Changes to this property will trigger replacement.
- The name of the connector resource
- Identity
User
Assigned Service Identity Args - Managed service identity (user assigned identities)
- Location
Changes to this property will trigger replacement.
- The geo-location where the resource lives
- Managed
Resource ManagedGroup Configuration RGConfiguration Args - Managed resource group configuration
- map[string]string
- Resource tags.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group. The name is case insensitive.
- source
Resource Id This property is required. Changes to this property will trigger replacement.
- Defines the ID of the connector's source resource.
- connector
Name Changes to this property will trigger replacement.
- The name of the connector resource
- identity
User
Assigned Service Identity - Managed service identity (user assigned identities)
- location
Changes to this property will trigger replacement.
- The geo-location where the resource lives
- managed
Resource ManagedGroup Configuration RGConfiguration - Managed resource group configuration
- Map<String,String>
- Resource tags.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group. The name is case insensitive.
- source
Resource Id This property is required. Changes to this property will trigger replacement.
- Defines the ID of the connector's source resource.
- connector
Name Changes to this property will trigger replacement.
- The name of the connector resource
- identity
User
Assigned Service Identity - Managed service identity (user assigned identities)
- location
Changes to this property will trigger replacement.
- The geo-location where the resource lives
- managed
Resource ManagedGroup Configuration RGConfiguration - Managed resource group configuration
- {[key: string]: string}
- Resource tags.
- resource_
group_ name This property is required. Changes to this property will trigger replacement.
- The name of the resource group. The name is case insensitive.
- source_
resource_ id This property is required. Changes to this property will trigger replacement.
- Defines the ID of the connector's source resource.
- connector_
name Changes to this property will trigger replacement.
- The name of the connector resource
- identity
User
Assigned Service Identity Args - Managed service identity (user assigned identities)
- location
Changes to this property will trigger replacement.
- The geo-location where the resource lives
- managed_
resource_ Managedgroup_ configuration RGConfiguration Args - Managed resource group configuration
- Mapping[str, str]
- Resource tags.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group. The name is case insensitive.
- source
Resource Id This property is required. Changes to this property will trigger replacement.
- Defines the ID of the connector's source resource.
- connector
Name Changes to this property will trigger replacement.
- The name of the connector resource
- identity Property Map
- Managed service identity (user assigned identities)
- location
Changes to this property will trigger replacement.
- 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
This property is required. string - Service specific error code which serves as the substatus for the HTTP error code.
- Details
This property is required. List<Pulumi.Azure Native. Workloads. Inputs. Connector Error Definition Response> - Internal error details.
- Message
This property is required. string - Description of the error.
- Code
This property is required. string - Service specific error code which serves as the substatus for the HTTP error code.
- Details
This property is required. []ConnectorError Definition Response - Internal error details.
- Message
This property is required. string - Description of the error.
- code
This property is required. String - Service specific error code which serves as the substatus for the HTTP error code.
- details
This property is required. List<ConnectorError Definition Response> - Internal error details.
- message
This property is required. String - Description of the error.
- code
This property is required. string - Service specific error code which serves as the substatus for the HTTP error code.
- details
This property is required. ConnectorError Definition Response[] - Internal error details.
- message
This property is required. string - Description of the error.
- code
This property is required. str - Service specific error code which serves as the substatus for the HTTP error code.
- details
This property is required. Sequence[ConnectorError Definition Response] - Internal error details.
- message
This property is required. str - Description of the error.
- code
This property is required. String - Service specific error code which serves as the substatus for the HTTP error code.
- details
This property is required. List<Property Map> - Internal error details.
- message
This property is required. 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 This property is required. string - The client ID of the assigned identity.
- Principal
Id This property is required. string - The principal ID of the assigned identity.
- Client
Id This property is required. string - The client ID of the assigned identity.
- Principal
Id This property is required. string - The principal ID of the assigned identity.
- client
Id This property is required. String - The client ID of the assigned identity.
- principal
Id This property is required. String - The principal ID of the assigned identity.
- client
Id This property is required. string - The client ID of the assigned identity.
- principal
Id This property is required. string - The principal ID of the assigned identity.
- client_
id This property is required. str - The client ID of the assigned identity.
- principal_
id This property is required. str - The principal ID of the assigned identity.
- client
Id This property is required. String - The client ID of the assigned identity.
- principal
Id This property is required. String - The principal ID of the assigned identity.
UserAssignedServiceIdentity, UserAssignedServiceIdentityArgs
- Type
This property is required. string | Pulumi.Azure Native. Workloads. Managed Service Identity Type - Type of manage identity
- User
Assigned List<string>Identities - User assigned identities dictionary
- Type
This property is required. string | ManagedService Identity Type - Type of manage identity
- User
Assigned []stringIdentities - User assigned identities dictionary
- type
This property is required. String | ManagedService Identity Type - Type of manage identity
- user
Assigned List<String>Identities - User assigned identities dictionary
- type
This property is required. string | ManagedService Identity Type - Type of manage identity
- user
Assigned string[]Identities - User assigned identities dictionary
- type
This property is required. str | ManagedService Identity Type - Type of manage identity
- user_
assigned_ Sequence[str]identities - User assigned identities dictionary
- type
This property is required. String | "None" | "UserAssigned" - Type of manage identity
- user
Assigned List<String>Identities - User assigned identities dictionary
UserAssignedServiceIdentityResponse, UserAssignedServiceIdentityResponseArgs
- Type
This property is required. string - Type of manage identity
- User
Assigned Dictionary<string, Pulumi.Identities Azure Native. Workloads. Inputs. User Assigned Identity Response> - User assigned identities dictionary
- Type
This property is required. string - Type of manage identity
- User
Assigned map[string]UserIdentities Assigned Identity Response - User assigned identities dictionary
- type
This property is required. String - Type of manage identity
- user
Assigned Map<String,UserIdentities Assigned Identity Response> - User assigned identities dictionary
- type
This property is required. string - Type of manage identity
- user
Assigned {[key: string]: UserIdentities Assigned Identity Response} - User assigned identities dictionary
- type
This property is required. str - Type of manage identity
- user_
assigned_ Mapping[str, Useridentities Assigned Identity Response] - User assigned identities dictionary
- type
This property is required. 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-v2 pulumi/pulumi-azure-native
- License
- Apache-2.0