ConnectionType

class ConnectionType : KotlinCustomResource

Definition of the connection type. Uses Azure REST API version 2023-11-01. In version 2.x of the Azure Native provider, it used API version 2022-08-08. Other available API versions: 2015-10-31, 2019-06-01, 2020-01-13-preview, 2022-08-08, 2023-05-15-preview, 2024-10-23. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native automation [ApiVersion]. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.

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/v3"
"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", FieldDefinitionArgs.builder()
.isEncrypted(false)
.isOptional(false)
.type("bool")
.build()),
Map.entry("myStringField", FieldDefinitionArgs.builder()
.isEncrypted(false)
.isOptional(false)
.type("string")
.build()),
Map.entry("myStringFieldEncrypted", FieldDefinitionArgs.builder()
.isEncrypted(true)
.isOptional(false)
.type("string")
.build())
))
.isGlobal(false)
.name("myCT")
.resourceGroupName("rg")
.build());
}
}

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}

Properties

Link copied to clipboard
val azureApiVersion: Output<String>

The Azure API version of the resource.

Link copied to clipboard
val creationTime: Output<String>

Gets the creation time.

Link copied to clipboard
val description: Output<String>?

Gets or sets the description.

Link copied to clipboard

Gets the field definitions of the connection type.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val isGlobal: Output<Boolean>?

Gets or sets a Boolean value to indicate if the connection type is global.

Link copied to clipboard
val lastModifiedTime: Output<String>?

Gets or sets the last modified time.

Link copied to clipboard
val name: Output<String>

Gets the name of the connection type.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val type: Output<String>

Resource type

Link copied to clipboard
val urn: Output<String>