azure-native.automation.ConnectionType
Explore with Pulumi AI
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",
    });
});
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
	})
}
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());
    }
}
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",
});
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")
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
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 string
- The unique name of the resource.
- args ConnectionTypeArgs
- 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 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 string
- The unique name of the resource.
- args ConnectionTypeArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ConnectionTypeArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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", new AzureNative.Automation.Inputs.FieldDefinitionArgs
        {
            Type = "string",
            IsEncrypted = false,
            IsOptional = false,
        } },
    },
    Name = "string",
    ResourceGroupName = "string",
    ConnectionTypeName = "string",
    IsGlobal = false,
});
example, err := automation.NewConnectionType(ctx, "connectionTypeResource", &automation.ConnectionTypeArgs{
	AutomationAccountName: pulumi.String("string"),
	FieldDefinitions: automation.FieldDefinitionMap{
		"string": &automation.FieldDefinitionArgs{
			Type:        pulumi.String("string"),
			IsEncrypted: pulumi.Bool(false),
			IsOptional:  pulumi.Bool(false),
		},
	},
	Name:               pulumi.String("string"),
	ResourceGroupName:  pulumi.String("string"),
	ConnectionTypeName: pulumi.String("string"),
	IsGlobal:           pulumi.Bool(false),
})
var connectionTypeResource = new ConnectionType("connectionTypeResource", ConnectionTypeArgs.builder()
    .automationAccountName("string")
    .fieldDefinitions(Map.of("string", Map.ofEntries(
        Map.entry("type", "string"),
        Map.entry("isEncrypted", false),
        Map.entry("isOptional", false)
    )))
    .name("string")
    .resourceGroupName("string")
    .connectionTypeName("string")
    .isGlobal(false)
    .build());
connection_type_resource = azure_native.automation.ConnectionType("connectionTypeResource",
    automation_account_name="string",
    field_definitions={
        "string": {
            "type": "string",
            "is_encrypted": False,
            "is_optional": False,
        },
    },
    name="string",
    resource_group_name="string",
    connection_type_name="string",
    is_global=False)
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,
});
type: azure-native:automation:ConnectionType
properties:
    automationAccountName: string
    connectionTypeName: string
    fieldDefinitions:
        string:
            isEncrypted: false
            isOptional: false
            type: string
    isGlobal: false
    name: string
    resourceGroupName: string
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:
- AutomationAccount stringName 
- The name of the automation account.
- FieldDefinitions Dictionary<string, Pulumi.Azure Native. Automation. Inputs. Field Definition Args> 
- Gets or sets the field definitions of the connection type.
- Name string
- Gets or sets the name of the connection type.
- ResourceGroup stringName 
- Name of an Azure Resource group.
- ConnectionType stringName 
- 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.
- AutomationAccount stringName 
- The name of the automation account.
- FieldDefinitions map[string]FieldDefinition Args 
- Gets or sets the field definitions of the connection type.
- Name string
- Gets or sets the name of the connection type.
- ResourceGroup stringName 
- Name of an Azure Resource group.
- ConnectionType stringName 
- 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.
- automationAccount StringName 
- The name of the automation account.
- fieldDefinitions Map<String,FieldDefinition Args> 
- Gets or sets the field definitions of the connection type.
- name String
- Gets or sets the name of the connection type.
- resourceGroup StringName 
- Name of an Azure Resource group.
- connectionType StringName 
- 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.
- automationAccount stringName 
- The name of the automation account.
- fieldDefinitions {[key: string]: FieldDefinition Args} 
- Gets or sets the field definitions of the connection type.
- name string
- Gets or sets the name of the connection type.
- resourceGroup stringName 
- Name of an Azure Resource group.
- connectionType stringName 
- 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_ strname 
- The name of the automation account.
- field_definitions Mapping[str, FieldDefinition Args] 
- Gets or sets the field definitions of the connection type.
- name str
- Gets or sets the name of the connection type.
- resource_group_ strname 
- Name of an Azure Resource group.
- connection_type_ strname 
- 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.
- automationAccount StringName 
- The name of the automation account.
- fieldDefinitions Map<Property Map>
- Gets or sets the field definitions of the connection type.
- name String
- Gets or sets the name of the connection type.
- resourceGroup StringName 
- Name of an Azure Resource group.
- connectionType StringName 
- 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.
- LastModified stringTime 
- 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.
- LastModified stringTime 
- 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.
- lastModified StringTime 
- 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.
- lastModified stringTime 
- 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_ strtime 
- 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.
- lastModified StringTime 
- Gets or sets the last modified time.
Supporting Types
FieldDefinition, FieldDefinitionArgs    
- Type 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 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 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 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 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 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 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 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 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 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 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 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} 
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0