1. Packages
  2. Azure Native v2
  3. API Docs
  4. automation
  5. ConnectionType
These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi

azure-native-v2.automation.ConnectionType

Explore with Pulumi AI

These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi

Definition of the connection type. Azure REST API version: 2022-08-08. Prior API version in Azure Native 1.x: 2019-06-01.

Other available API versions: 2023-05-15-preview, 2023-11-01, 2024-10-23.

Example Usage

Create or update connection type

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var connectionType = new AzureNative.Automation.ConnectionType("connectionType", new()
    {
        AutomationAccountName = "myAutomationAccount22",
        ConnectionTypeName = "myCT",
        FieldDefinitions = 
        {
            { "myBoolField", new AzureNative.Automation.Inputs.FieldDefinitionArgs
            {
                IsEncrypted = false,
                IsOptional = false,
                Type = "bool",
            } },
            { "myStringField", new AzureNative.Automation.Inputs.FieldDefinitionArgs
            {
                IsEncrypted = false,
                IsOptional = false,
                Type = "string",
            } },
            { "myStringFieldEncrypted", new AzureNative.Automation.Inputs.FieldDefinitionArgs
            {
                IsEncrypted = true,
                IsOptional = false,
                Type = "string",
            } },
        },
        IsGlobal = false,
        Name = "myCT",
        ResourceGroupName = "rg",
    });

});
Copy
package main

import (
	automation "github.com/pulumi/pulumi-azure-native-sdk/automation/v2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := automation.NewConnectionType(ctx, "connectionType", &automation.ConnectionTypeArgs{
			AutomationAccountName: pulumi.String("myAutomationAccount22"),
			ConnectionTypeName:    pulumi.String("myCT"),
			FieldDefinitions: automation.FieldDefinitionMap{
				"myBoolField": &automation.FieldDefinitionArgs{
					IsEncrypted: pulumi.Bool(false),
					IsOptional:  pulumi.Bool(false),
					Type:        pulumi.String("bool"),
				},
				"myStringField": &automation.FieldDefinitionArgs{
					IsEncrypted: pulumi.Bool(false),
					IsOptional:  pulumi.Bool(false),
					Type:        pulumi.String("string"),
				},
				"myStringFieldEncrypted": &automation.FieldDefinitionArgs{
					IsEncrypted: pulumi.Bool(true),
					IsOptional:  pulumi.Bool(false),
					Type:        pulumi.String("string"),
				},
			},
			IsGlobal:          pulumi.Bool(false),
			Name:              pulumi.String("myCT"),
			ResourceGroupName: pulumi.String("rg"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.automation.ConnectionType;
import com.pulumi.azurenative.automation.ConnectionTypeArgs;
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 connectionType = new ConnectionType("connectionType", ConnectionTypeArgs.builder()
            .automationAccountName("myAutomationAccount22")
            .connectionTypeName("myCT")
            .fieldDefinitions(Map.ofEntries(
                Map.entry("myBoolField", Map.ofEntries(
                    Map.entry("isEncrypted", false),
                    Map.entry("isOptional", false),
                    Map.entry("type", "bool")
                )),
                Map.entry("myStringField", Map.ofEntries(
                    Map.entry("isEncrypted", false),
                    Map.entry("isOptional", false),
                    Map.entry("type", "string")
                )),
                Map.entry("myStringFieldEncrypted", Map.ofEntries(
                    Map.entry("isEncrypted", true),
                    Map.entry("isOptional", false),
                    Map.entry("type", "string")
                ))
            ))
            .isGlobal(false)
            .name("myCT")
            .resourceGroupName("rg")
            .build());

    }
}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const connectionType = new azure_native.automation.ConnectionType("connectionType", {
    automationAccountName: "myAutomationAccount22",
    connectionTypeName: "myCT",
    fieldDefinitions: {
        myBoolField: {
            isEncrypted: false,
            isOptional: false,
            type: "bool",
        },
        myStringField: {
            isEncrypted: false,
            isOptional: false,
            type: "string",
        },
        myStringFieldEncrypted: {
            isEncrypted: true,
            isOptional: false,
            type: "string",
        },
    },
    isGlobal: false,
    name: "myCT",
    resourceGroupName: "rg",
});
Copy
import pulumi
import pulumi_azure_native as azure_native

connection_type = azure_native.automation.ConnectionType("connectionType",
    automation_account_name="myAutomationAccount22",
    connection_type_name="myCT",
    field_definitions={
        "myBoolField": {
            "is_encrypted": False,
            "is_optional": False,
            "type": "bool",
        },
        "myStringField": {
            "is_encrypted": False,
            "is_optional": False,
            "type": "string",
        },
        "myStringFieldEncrypted": {
            "is_encrypted": True,
            "is_optional": False,
            "type": "string",
        },
    },
    is_global=False,
    name="myCT",
    resource_group_name="rg")
Copy
resources:
  connectionType:
    type: azure-native:automation:ConnectionType
    properties:
      automationAccountName: myAutomationAccount22
      connectionTypeName: myCT
      fieldDefinitions:
        myBoolField:
          isEncrypted: false
          isOptional: false
          type: bool
        myStringField:
          isEncrypted: false
          isOptional: false
          type: string
        myStringFieldEncrypted:
          isEncrypted: true
          isOptional: false
          type: string
      isGlobal: false
      name: myCT
      resourceGroupName: rg
Copy

Create ConnectionType Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new ConnectionType(name: string, args: ConnectionTypeArgs, opts?: CustomResourceOptions);
@overload
def ConnectionType(resource_name: str,
                   args: ConnectionTypeArgs,
                   opts: Optional[ResourceOptions] = None)

@overload
def ConnectionType(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   automation_account_name: Optional[str] = None,
                   field_definitions: Optional[Mapping[str, FieldDefinitionArgs]] = None,
                   name: Optional[str] = None,
                   resource_group_name: Optional[str] = None,
                   connection_type_name: Optional[str] = None,
                   is_global: Optional[bool] = None)
func NewConnectionType(ctx *Context, name string, args ConnectionTypeArgs, opts ...ResourceOption) (*ConnectionType, error)
public ConnectionType(string name, ConnectionTypeArgs args, CustomResourceOptions? opts = null)
public ConnectionType(String name, ConnectionTypeArgs args)
public ConnectionType(String name, ConnectionTypeArgs args, CustomResourceOptions options)
type: azure-native:automation:ConnectionType
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. ConnectionTypeArgs
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. ConnectionTypeArgs
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. ConnectionTypeArgs
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. ConnectionTypeArgs
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. ConnectionTypeArgs
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 connectionTypeResource = new AzureNative.Automation.ConnectionType("connectionTypeResource", new()
{
    AutomationAccountName = "string",
    FieldDefinitions = 
    {
        { "string", 
        {
            { "type", "string" },
            { "isEncrypted", false },
            { "isOptional", false },
        } },
    },
    Name = "string",
    ResourceGroupName = "string",
    ConnectionTypeName = "string",
    IsGlobal = false,
});
Copy
example, err := automation.NewConnectionType(ctx, "connectionTypeResource", &automation.ConnectionTypeArgs{
	AutomationAccountName: "string",
	FieldDefinitions: map[string]interface{}{
		"string": map[string]interface{}{
			"type":        "string",
			"isEncrypted": false,
			"isOptional":  false,
		},
	},
	Name:               "string",
	ResourceGroupName:  "string",
	ConnectionTypeName: "string",
	IsGlobal:           false,
})
Copy
var connectionTypeResource = new ConnectionType("connectionTypeResource", ConnectionTypeArgs.builder()
    .automationAccountName("string")
    .fieldDefinitions(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
    .name("string")
    .resourceGroupName("string")
    .connectionTypeName("string")
    .isGlobal(false)
    .build());
Copy
connection_type_resource = azure_native.automation.ConnectionType("connectionTypeResource",
    automation_account_name=string,
    field_definitions={
        string: {
            type: string,
            isEncrypted: False,
            isOptional: False,
        },
    },
    name=string,
    resource_group_name=string,
    connection_type_name=string,
    is_global=False)
Copy
const connectionTypeResource = new azure_native.automation.ConnectionType("connectionTypeResource", {
    automationAccountName: "string",
    fieldDefinitions: {
        string: {
            type: "string",
            isEncrypted: false,
            isOptional: false,
        },
    },
    name: "string",
    resourceGroupName: "string",
    connectionTypeName: "string",
    isGlobal: false,
});
Copy
type: azure-native:automation:ConnectionType
properties:
    automationAccountName: string
    connectionTypeName: string
    fieldDefinitions:
        string:
            isEncrypted: false
            isOptional: false
            type: string
    isGlobal: false
    name: string
    resourceGroupName: string
Copy

ConnectionType 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 ConnectionType resource accepts the following input properties:

AutomationAccountName
This property is required.
Changes to this property will trigger replacement.
string
The name of the automation account.
FieldDefinitions This property is required. Dictionary<string, Pulumi.AzureNative.Automation.Inputs.FieldDefinitionArgs>
Gets or sets the field definitions of the connection type.
Name This property is required. string
Gets or sets the name of the connection type.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
Name of an Azure Resource group.
ConnectionTypeName Changes to this property will trigger replacement. string
The parameters supplied to the create or update connection type operation.
IsGlobal bool
Gets or sets a Boolean value to indicate if the connection type is global.
AutomationAccountName
This property is required.
Changes to this property will trigger replacement.
string
The name of the automation account.
FieldDefinitions This property is required. map[string]FieldDefinitionArgs
Gets or sets the field definitions of the connection type.
Name This property is required. string
Gets or sets the name of the connection type.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
Name of an Azure Resource group.
ConnectionTypeName Changes to this property will trigger replacement. string
The parameters supplied to the create or update connection type operation.
IsGlobal bool
Gets or sets a Boolean value to indicate if the connection type is global.
automationAccountName
This property is required.
Changes to this property will trigger replacement.
String
The name of the automation account.
fieldDefinitions This property is required. Map<String,FieldDefinitionArgs>
Gets or sets the field definitions of the connection type.
name This property is required. String
Gets or sets the name of the connection type.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
Name of an Azure Resource group.
connectionTypeName Changes to this property will trigger replacement. String
The parameters supplied to the create or update connection type operation.
isGlobal Boolean
Gets or sets a Boolean value to indicate if the connection type is global.
automationAccountName
This property is required.
Changes to this property will trigger replacement.
string
The name of the automation account.
fieldDefinitions This property is required. {[key: string]: FieldDefinitionArgs}
Gets or sets the field definitions of the connection type.
name This property is required. string
Gets or sets the name of the connection type.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
Name of an Azure Resource group.
connectionTypeName Changes to this property will trigger replacement. string
The parameters supplied to the create or update connection type operation.
isGlobal boolean
Gets or sets a Boolean value to indicate if the connection type is global.
automation_account_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the automation account.
field_definitions This property is required. Mapping[str, FieldDefinitionArgs]
Gets or sets the field definitions of the connection type.
name This property is required. str
Gets or sets the name of the connection type.
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
Name of an Azure Resource group.
connection_type_name Changes to this property will trigger replacement. str
The parameters supplied to the create or update connection type operation.
is_global bool
Gets or sets a Boolean value to indicate if the connection type is global.
automationAccountName
This property is required.
Changes to this property will trigger replacement.
String
The name of the automation account.
fieldDefinitions This property is required. Map<Property Map>
Gets or sets the field definitions of the connection type.
name This property is required. String
Gets or sets the name of the connection type.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
Name of an Azure Resource group.
connectionTypeName Changes to this property will trigger replacement. String
The parameters supplied to the create or update connection type operation.
isGlobal Boolean
Gets or sets a Boolean value to indicate if the connection type is global.

Outputs

All input properties are implicitly available as output properties. Additionally, the ConnectionType resource produces the following output properties:

CreationTime string
Gets the creation time.
Id string
The provider-assigned unique ID for this managed resource.
Type string
Resource type
Description string
Gets or sets the description.
LastModifiedTime string
Gets or sets the last modified time.
CreationTime string
Gets the creation time.
Id string
The provider-assigned unique ID for this managed resource.
Type string
Resource type
Description string
Gets or sets the description.
LastModifiedTime string
Gets or sets the last modified time.
creationTime String
Gets the creation time.
id String
The provider-assigned unique ID for this managed resource.
type String
Resource type
description String
Gets or sets the description.
lastModifiedTime String
Gets or sets the last modified time.
creationTime string
Gets the creation time.
id string
The provider-assigned unique ID for this managed resource.
type string
Resource type
description string
Gets or sets the description.
lastModifiedTime string
Gets or sets the last modified time.
creation_time str
Gets the creation time.
id str
The provider-assigned unique ID for this managed resource.
type str
Resource type
description str
Gets or sets the description.
last_modified_time str
Gets or sets the last modified time.
creationTime String
Gets the creation time.
id String
The provider-assigned unique ID for this managed resource.
type String
Resource type
description String
Gets or sets the description.
lastModifiedTime String
Gets or sets the last modified time.

Supporting Types

FieldDefinition
, FieldDefinitionArgs

Type This property is required. string
Gets or sets the type of the connection field definition.
IsEncrypted bool
Gets or sets the isEncrypted flag of the connection field definition.
IsOptional bool
Gets or sets the isOptional flag of the connection field definition.
Type This property is required. string
Gets or sets the type of the connection field definition.
IsEncrypted bool
Gets or sets the isEncrypted flag of the connection field definition.
IsOptional bool
Gets or sets the isOptional flag of the connection field definition.
type This property is required. String
Gets or sets the type of the connection field definition.
isEncrypted Boolean
Gets or sets the isEncrypted flag of the connection field definition.
isOptional Boolean
Gets or sets the isOptional flag of the connection field definition.
type This property is required. string
Gets or sets the type of the connection field definition.
isEncrypted boolean
Gets or sets the isEncrypted flag of the connection field definition.
isOptional boolean
Gets or sets the isOptional flag of the connection field definition.
type This property is required. str
Gets or sets the type of the connection field definition.
is_encrypted bool
Gets or sets the isEncrypted flag of the connection field definition.
is_optional bool
Gets or sets the isOptional flag of the connection field definition.
type This property is required. String
Gets or sets the type of the connection field definition.
isEncrypted Boolean
Gets or sets the isEncrypted flag of the connection field definition.
isOptional Boolean
Gets or sets the isOptional flag of the connection field definition.

FieldDefinitionResponse
, FieldDefinitionResponseArgs

Type This property is required. string
Gets or sets the type of the connection field definition.
IsEncrypted bool
Gets or sets the isEncrypted flag of the connection field definition.
IsOptional bool
Gets or sets the isOptional flag of the connection field definition.
Type This property is required. string
Gets or sets the type of the connection field definition.
IsEncrypted bool
Gets or sets the isEncrypted flag of the connection field definition.
IsOptional bool
Gets or sets the isOptional flag of the connection field definition.
type This property is required. String
Gets or sets the type of the connection field definition.
isEncrypted Boolean
Gets or sets the isEncrypted flag of the connection field definition.
isOptional Boolean
Gets or sets the isOptional flag of the connection field definition.
type This property is required. string
Gets or sets the type of the connection field definition.
isEncrypted boolean
Gets or sets the isEncrypted flag of the connection field definition.
isOptional boolean
Gets or sets the isOptional flag of the connection field definition.
type This property is required. str
Gets or sets the type of the connection field definition.
is_encrypted bool
Gets or sets the isEncrypted flag of the connection field definition.
is_optional bool
Gets or sets the isOptional flag of the connection field definition.
type This property is required. String
Gets or sets the type of the connection field definition.
isEncrypted Boolean
Gets or sets the isEncrypted flag of the connection field definition.
isOptional Boolean
Gets or sets the isOptional flag of the connection field definition.

Import

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

$ pulumi import azure-native:automation:ConnectionType myCT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/connectionTypes/{connectionTypeName} 
Copy

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
These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi