1. Packages
  2. Azure Native v1
  3. API Docs
  4. automation
  5. ConnectionType
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

azure-native.automation.ConnectionType

Explore with Pulumi AI

azure-native-v1 logo
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

    Definition of the connection type. API Version: 2019-06-01.

    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"
    	"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 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": azure_native.automation.FieldDefinitionArgs(
                is_encrypted=False,
                is_optional=False,
                type="bool",
            ),
            "myStringField": azure_native.automation.FieldDefinitionArgs(
                is_encrypted=False,
                is_optional=False,
                type="string",
            ),
            "myStringFieldEncrypted": azure_native.automation.FieldDefinitionArgs(
                is_encrypted=True,
                is_optional=False,
                type="string",
            ),
        },
        is_global=False,
        name="myCT",
        resource_group_name="rg")
    
    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",
    });
    
    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", 
            {
                { "type", "string" },
                { "isEncrypted", false },
                { "isOptional", false },
            } },
        },
        Name = "string",
        ResourceGroupName = "string",
        ConnectionTypeName = "string",
        IsGlobal = false,
    });
    
    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,
    })
    
    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());
    
    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)
    
    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

    The ConnectionType resource accepts the following input properties:

    AutomationAccountName string
    The name of the automation account.
    FieldDefinitions Dictionary<string, Pulumi.AzureNative.Automation.Inputs.FieldDefinitionArgs>
    Gets or sets the field definitions of the connection type.
    Name string
    Gets or sets the name of the connection type.
    ResourceGroupName string
    Name of an Azure Resource group.
    ConnectionTypeName 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 string
    The name of the automation account.
    FieldDefinitions map[string]FieldDefinitionArgs
    Gets or sets the field definitions of the connection type.
    Name string
    Gets or sets the name of the connection type.
    ResourceGroupName string
    Name of an Azure Resource group.
    ConnectionTypeName 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 String
    The name of the automation account.
    fieldDefinitions Map<String,FieldDefinitionArgs>
    Gets or sets the field definitions of the connection type.
    name String
    Gets or sets the name of the connection type.
    resourceGroupName String
    Name of an Azure Resource group.
    connectionTypeName 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 string
    The name of the automation account.
    fieldDefinitions {[key: string]: FieldDefinitionArgs}
    Gets or sets the field definitions of the connection type.
    name string
    Gets or sets the name of the connection type.
    resourceGroupName string
    Name of an Azure Resource group.
    connectionTypeName 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 str
    The name of the automation account.
    field_definitions Mapping[str, FieldDefinitionArgs]
    Gets or sets the field definitions of the connection type.
    name str
    Gets or sets the name of the connection type.
    resource_group_name str
    Name of an Azure Resource group.
    connection_type_name 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 String
    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.
    resourceGroupName String
    Name of an Azure Resource group.
    connectionTypeName 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 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/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount22/connectionTypes/myCT 
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    azure-native-v1 pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native-v1 logo
    These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
    Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi