Connection Type Args
data class ConnectionTypeArgs(val automationAccountName: Output<String>? = null, val connectionTypeName: Output<String>? = null, val fieldDefinitions: Output<Map<String, FieldDefinitionArgs>>? = null, val isGlobal: Output<Boolean>? = null, val name: Output<String>? = null, val resourceGroupName: Output<String>? = null) : ConvertibleToJava<ConnectionTypeArgs>
Definition of the connection type. Uses Azure REST API version 2022-08-08. In version 1.x of the Azure Native provider, it used API version 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",
});
});
Content copied to clipboard
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
})
}
Content copied to clipboard
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());
}
}
Content copied to clipboard
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}
Content copied to clipboard
Properties
Link copied to clipboard
The name of the automation account.
Link copied to clipboard
The parameters supplied to the create or update connection type operation.
Link copied to clipboard
Gets or sets the field definitions of the connection type.
Link copied to clipboard
Name of an Azure Resource group.