1. Packages
  2. Azure Native
  3. API Docs
  4. automation
  5. Connection
Azure Native v1.103.0 published on Friday, Jun 2, 2023 by Pulumi

azure-native.automation.Connection

Explore with Pulumi AI

azure-native logo
Azure Native v1.103.0 published on Friday, Jun 2, 2023 by Pulumi

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

    Example Usage

    Create or update connection

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var connection = new AzureNative.Automation.Connection("connection", new()
        {
            AutomationAccountName = "myAutomationAccount28",
            ConnectionName = "mysConnection",
            ConnectionType = new AzureNative.Automation.Inputs.ConnectionTypeAssociationPropertyArgs
            {
                Name = "Azure",
            },
            Description = "my description goes here",
            FieldDefinitionValues = 
            {
                { "AutomationCertificateName", "mysCertificateName" },
                { "SubscriptionID", "subid" },
            },
            Name = "mysConnection",
            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.NewConnection(ctx, "connection", &automation.ConnectionArgs{
    			AutomationAccountName: pulumi.String("myAutomationAccount28"),
    			ConnectionName:        pulumi.String("mysConnection"),
    			ConnectionType: &automation.ConnectionTypeAssociationPropertyArgs{
    				Name: pulumi.String("Azure"),
    			},
    			Description: pulumi.String("my description goes here"),
    			FieldDefinitionValues: pulumi.StringMap{
    				"AutomationCertificateName": pulumi.String("mysCertificateName"),
    				"SubscriptionID":            pulumi.String("subid"),
    			},
    			Name:              pulumi.String("mysConnection"),
    			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.Connection;
    import com.pulumi.azurenative.automation.ConnectionArgs;
    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 connection = new Connection("connection", ConnectionArgs.builder()        
                .automationAccountName("myAutomationAccount28")
                .connectionName("mysConnection")
                .connectionType(Map.of("name", "Azure"))
                .description("my description goes here")
                .fieldDefinitionValues(Map.ofEntries(
                    Map.entry("AutomationCertificateName", "mysCertificateName"),
                    Map.entry("SubscriptionID", "subid")
                ))
                .name("mysConnection")
                .resourceGroupName("rg")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    connection = azure_native.automation.Connection("connection",
        automation_account_name="myAutomationAccount28",
        connection_name="mysConnection",
        connection_type=azure_native.automation.ConnectionTypeAssociationPropertyArgs(
            name="Azure",
        ),
        description="my description goes here",
        field_definition_values={
            "AutomationCertificateName": "mysCertificateName",
            "SubscriptionID": "subid",
        },
        name="mysConnection",
        resource_group_name="rg")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const connection = new azure_native.automation.Connection("connection", {
        automationAccountName: "myAutomationAccount28",
        connectionName: "mysConnection",
        connectionType: {
            name: "Azure",
        },
        description: "my description goes here",
        fieldDefinitionValues: {
            AutomationCertificateName: "mysCertificateName",
            SubscriptionID: "subid",
        },
        name: "mysConnection",
        resourceGroupName: "rg",
    });
    
    resources:
      connection:
        type: azure-native:automation:Connection
        properties:
          automationAccountName: myAutomationAccount28
          connectionName: mysConnection
          connectionType:
            name: Azure
          description: my description goes here
          fieldDefinitionValues:
            AutomationCertificateName: mysCertificateName
            SubscriptionID: subid
          name: mysConnection
          resourceGroupName: rg
    

    Create Connection Resource

    new Connection(name: string, args: ConnectionArgs, opts?: CustomResourceOptions);
    @overload
    def Connection(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   automation_account_name: Optional[str] = None,
                   connection_name: Optional[str] = None,
                   connection_type: Optional[ConnectionTypeAssociationPropertyArgs] = None,
                   description: Optional[str] = None,
                   field_definition_values: Optional[Mapping[str, str]] = None,
                   name: Optional[str] = None,
                   resource_group_name: Optional[str] = None)
    @overload
    def Connection(resource_name: str,
                   args: ConnectionArgs,
                   opts: Optional[ResourceOptions] = None)
    func NewConnection(ctx *Context, name string, args ConnectionArgs, opts ...ResourceOption) (*Connection, error)
    public Connection(string name, ConnectionArgs args, CustomResourceOptions? opts = null)
    public Connection(String name, ConnectionArgs args)
    public Connection(String name, ConnectionArgs args, CustomResourceOptions options)
    
    type: azure-native:automation:Connection
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args ConnectionArgs
    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 ConnectionArgs
    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 ConnectionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ConnectionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ConnectionArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    AutomationAccountName string

    The name of the automation account.

    ConnectionType Pulumi.AzureNative.Automation.Inputs.ConnectionTypeAssociationPropertyArgs

    Gets or sets the connectionType of the connection.

    Name string

    Gets or sets the name of the connection.

    ResourceGroupName string

    Name of an Azure Resource group.

    ConnectionName string

    The parameters supplied to the create or update connection operation.

    Description string

    Gets or sets the description of the connection.

    FieldDefinitionValues Dictionary<string, string>

    Gets or sets the field definition properties of the connection.

    AutomationAccountName string

    The name of the automation account.

    ConnectionType ConnectionTypeAssociationPropertyArgs

    Gets or sets the connectionType of the connection.

    Name string

    Gets or sets the name of the connection.

    ResourceGroupName string

    Name of an Azure Resource group.

    ConnectionName string

    The parameters supplied to the create or update connection operation.

    Description string

    Gets or sets the description of the connection.

    FieldDefinitionValues map[string]string

    Gets or sets the field definition properties of the connection.

    automationAccountName String

    The name of the automation account.

    connectionType ConnectionTypeAssociationPropertyArgs

    Gets or sets the connectionType of the connection.

    name String

    Gets or sets the name of the connection.

    resourceGroupName String

    Name of an Azure Resource group.

    connectionName String

    The parameters supplied to the create or update connection operation.

    description String

    Gets or sets the description of the connection.

    fieldDefinitionValues Map<String,String>

    Gets or sets the field definition properties of the connection.

    automationAccountName string

    The name of the automation account.

    connectionType ConnectionTypeAssociationPropertyArgs

    Gets or sets the connectionType of the connection.

    name string

    Gets or sets the name of the connection.

    resourceGroupName string

    Name of an Azure Resource group.

    connectionName string

    The parameters supplied to the create or update connection operation.

    description string

    Gets or sets the description of the connection.

    fieldDefinitionValues {[key: string]: string}

    Gets or sets the field definition properties of the connection.

    automation_account_name str

    The name of the automation account.

    connection_type ConnectionTypeAssociationPropertyArgs

    Gets or sets the connectionType of the connection.

    name str

    Gets or sets the name of the connection.

    resource_group_name str

    Name of an Azure Resource group.

    connection_name str

    The parameters supplied to the create or update connection operation.

    description str

    Gets or sets the description of the connection.

    field_definition_values Mapping[str, str]

    Gets or sets the field definition properties of the connection.

    automationAccountName String

    The name of the automation account.

    connectionType Property Map

    Gets or sets the connectionType of the connection.

    name String

    Gets or sets the name of the connection.

    resourceGroupName String

    Name of an Azure Resource group.

    connectionName String

    The parameters supplied to the create or update connection operation.

    description String

    Gets or sets the description of the connection.

    fieldDefinitionValues Map<String>

    Gets or sets the field definition properties of the connection.

    Outputs

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

    CreationTime string

    Gets the creation time.

    Id string

    The provider-assigned unique ID for this managed resource.

    LastModifiedTime string

    Gets the last modified time.

    Type string

    The type of the resource.

    CreationTime string

    Gets the creation time.

    Id string

    The provider-assigned unique ID for this managed resource.

    LastModifiedTime string

    Gets the last modified time.

    Type string

    The type of the resource.

    creationTime String

    Gets the creation time.

    id String

    The provider-assigned unique ID for this managed resource.

    lastModifiedTime String

    Gets the last modified time.

    type String

    The type of the resource.

    creationTime string

    Gets the creation time.

    id string

    The provider-assigned unique ID for this managed resource.

    lastModifiedTime string

    Gets the last modified time.

    type string

    The type of the resource.

    creation_time str

    Gets the creation time.

    id str

    The provider-assigned unique ID for this managed resource.

    last_modified_time str

    Gets the last modified time.

    type str

    The type of the resource.

    creationTime String

    Gets the creation time.

    id String

    The provider-assigned unique ID for this managed resource.

    lastModifiedTime String

    Gets the last modified time.

    type String

    The type of the resource.

    Supporting Types

    ConnectionTypeAssociationProperty

    Name string

    Gets or sets the name of the connection type.

    Name string

    Gets or sets the name of the connection type.

    name String

    Gets or sets the name of the connection type.

    name string

    Gets or sets the name of the connection type.

    name str

    Gets or sets the name of the connection type.

    name String

    Gets or sets the name of the connection type.

    ConnectionTypeAssociationPropertyResponse

    Name string

    Gets or sets the name of the connection type.

    Name string

    Gets or sets the name of the connection type.

    name String

    Gets or sets the name of the connection type.

    name string

    Gets or sets the name of the connection type.

    name str

    Gets or sets the name of the connection type.

    name String

    Gets or sets the name of the connection type.

    Import

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

    $ pulumi import azure-native:automation:Connection mysConnection /subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/mysConnection 
    

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    Azure Native v1.103.0 published on Friday, Jun 2, 2023 by Pulumi