azure-native.automation.Connection
Explore with Pulumi AI
Definition of the connection. 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.
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/v2"
"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 com.pulumi.azurenative.automation.inputs.ConnectionTypeAssociationPropertyArgs;
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(ConnectionTypeAssociationPropertyArgs.builder()
.name("Azure")
.build())
.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
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Connection(name: string, args: ConnectionArgs, opts?: CustomResourceOptions);
@overload
def Connection(resource_name: str,
args: ConnectionArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Connection(resource_name: str,
opts: Optional[ResourceOptions] = None,
automation_account_name: Optional[str] = None,
connection_type: Optional[ConnectionTypeAssociationPropertyArgs] = None,
name: Optional[str] = None,
resource_group_name: Optional[str] = None,
connection_name: Optional[str] = None,
description: Optional[str] = None,
field_definition_values: Optional[Mapping[str, str]] = 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.
Parameters
- 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var connectionResource = new AzureNative.Automation.Connection("connectionResource", new()
{
AutomationAccountName = "string",
ConnectionType = new AzureNative.Automation.Inputs.ConnectionTypeAssociationPropertyArgs
{
Name = "string",
},
Name = "string",
ResourceGroupName = "string",
ConnectionName = "string",
Description = "string",
FieldDefinitionValues =
{
{ "string", "string" },
},
});
example, err := automation.NewConnection(ctx, "connectionResource", &automation.ConnectionArgs{
AutomationAccountName: pulumi.String("string"),
ConnectionType: &automation.ConnectionTypeAssociationPropertyArgs{
Name: pulumi.String("string"),
},
Name: pulumi.String("string"),
ResourceGroupName: pulumi.String("string"),
ConnectionName: pulumi.String("string"),
Description: pulumi.String("string"),
FieldDefinitionValues: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var connectionResource = new Connection("connectionResource", ConnectionArgs.builder()
.automationAccountName("string")
.connectionType(ConnectionTypeAssociationPropertyArgs.builder()
.name("string")
.build())
.name("string")
.resourceGroupName("string")
.connectionName("string")
.description("string")
.fieldDefinitionValues(Map.of("string", "string"))
.build());
connection_resource = azure_native.automation.Connection("connectionResource",
automation_account_name="string",
connection_type=azure_native.automation.ConnectionTypeAssociationPropertyArgs(
name="string",
),
name="string",
resource_group_name="string",
connection_name="string",
description="string",
field_definition_values={
"string": "string",
})
const connectionResource = new azure_native.automation.Connection("connectionResource", {
automationAccountName: "string",
connectionType: {
name: "string",
},
name: "string",
resourceGroupName: "string",
connectionName: "string",
description: "string",
fieldDefinitionValues: {
string: "string",
},
});
type: azure-native:automation:Connection
properties:
automationAccountName: string
connectionName: string
connectionType:
name: string
description: string
fieldDefinitionValues:
string: string
name: string
resourceGroupName: string
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:
- Automation
Account stringName - The name of the automation account.
- Connection
Type Pulumi.Azure Native. Automation. Inputs. Connection Type Association Property - Gets or sets the connectionType of the connection.
- Name string
- Gets or sets the name of the connection.
- Resource
Group stringName - Name of an Azure Resource group.
- Connection
Name string - The parameters supplied to the create or update connection operation.
- Description string
- Gets or sets the description of the connection.
- Field
Definition Dictionary<string, string>Values - Gets or sets the field definition properties of the connection.
- Automation
Account stringName - The name of the automation account.
- Connection
Type ConnectionType Association Property Args - Gets or sets the connectionType of the connection.
- Name string
- Gets or sets the name of the connection.
- Resource
Group stringName - Name of an Azure Resource group.
- Connection
Name string - The parameters supplied to the create or update connection operation.
- Description string
- Gets or sets the description of the connection.
- Field
Definition map[string]stringValues - Gets or sets the field definition properties of the connection.
- automation
Account StringName - The name of the automation account.
- connection
Type ConnectionType Association Property - Gets or sets the connectionType of the connection.
- name String
- Gets or sets the name of the connection.
- resource
Group StringName - Name of an Azure Resource group.
- connection
Name String - The parameters supplied to the create or update connection operation.
- description String
- Gets or sets the description of the connection.
- field
Definition Map<String,String>Values - Gets or sets the field definition properties of the connection.
- automation
Account stringName - The name of the automation account.
- connection
Type ConnectionType Association Property - Gets or sets the connectionType of the connection.
- name string
- Gets or sets the name of the connection.
- resource
Group stringName - Name of an Azure Resource group.
- connection
Name string - The parameters supplied to the create or update connection operation.
- description string
- Gets or sets the description of the connection.
- field
Definition {[key: string]: string}Values - Gets or sets the field definition properties of the connection.
- automation_
account_ strname - The name of the automation account.
- connection_
type ConnectionType Association Property Args - Gets or sets the connectionType of the connection.
- name str
- Gets or sets the name of the connection.
- resource_
group_ strname - 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_ Mapping[str, str]values - Gets or sets the field definition properties of the connection.
- automation
Account StringName - The name of the automation account.
- connection
Type Property Map - Gets or sets the connectionType of the connection.
- name String
- Gets or sets the name of the connection.
- resource
Group StringName - Name of an Azure Resource group.
- connection
Name String - The parameters supplied to the create or update connection operation.
- description String
- Gets or sets the description of the connection.
- field
Definition Map<String>Values - 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:
- Creation
Time string - Gets the creation time.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Modified stringTime - Gets the last modified time.
- Type string
- The type of the resource.
- Creation
Time string - Gets the creation time.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Modified stringTime - Gets the last modified time.
- Type string
- The type of the resource.
- creation
Time String - Gets the creation time.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Modified StringTime - Gets the last modified time.
- type String
- The type of the resource.
- creation
Time string - Gets the creation time.
- id string
- The provider-assigned unique ID for this managed resource.
- last
Modified stringTime - 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_ strtime - Gets the last modified time.
- type str
- The type of the resource.
- creation
Time String - Gets the creation time.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Modified StringTime - Gets the last modified time.
- type String
- The type of the resource.
Supporting Types
ConnectionTypeAssociationProperty, ConnectionTypeAssociationPropertyArgs
- 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, ConnectionTypeAssociationPropertyResponseArgs
- 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/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/connections/{connectionName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0