azure-native.automation.ConnectionType
Explore with Pulumi AI
Definition of the connection type. 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 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/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
})
}
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": {
"is_encrypted": False,
"is_optional": False,
"type": "bool",
},
"myStringField": {
"is_encrypted": False,
"is_optional": False,
"type": "string",
},
"myStringFieldEncrypted": {
"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", new AzureNative.Automation.Inputs.FieldDefinitionArgs
{
Type = "string",
IsEncrypted = false,
IsOptional = false,
} },
},
Name = "string",
ResourceGroupName = "string",
ConnectionTypeName = "string",
IsGlobal = false,
});
example, err := automation.NewConnectionType(ctx, "connectionTypeResource", &automation.ConnectionTypeArgs{
AutomationAccountName: pulumi.String("string"),
FieldDefinitions: automation.FieldDefinitionMap{
"string": &automation.FieldDefinitionArgs{
Type: pulumi.String("string"),
IsEncrypted: pulumi.Bool(false),
IsOptional: pulumi.Bool(false),
},
},
Name: pulumi.String("string"),
ResourceGroupName: pulumi.String("string"),
ConnectionTypeName: pulumi.String("string"),
IsGlobal: pulumi.Bool(false),
})
var connectionTypeResource = new ConnectionType("connectionTypeResource", ConnectionTypeArgs.builder()
.automationAccountName("string")
.fieldDefinitions(Map.of("string", Map.ofEntries(
Map.entry("type", "string"),
Map.entry("isEncrypted", false),
Map.entry("isOptional", false)
)))
.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",
"is_encrypted": False,
"is_optional": 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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ConnectionType resource accepts the following input properties:
- Automation
Account stringName - The name of the automation account.
- Field
Definitions Dictionary<string, Pulumi.Azure Native. Automation. Inputs. Field Definition Args> - Gets or sets the field definitions of the connection type.
- Name string
- Gets or sets the name of the connection type.
- Resource
Group stringName - Name of an Azure Resource group.
- Connection
Type stringName - 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.
- Automation
Account stringName - The name of the automation account.
- Field
Definitions map[string]FieldDefinition Args - Gets or sets the field definitions of the connection type.
- Name string
- Gets or sets the name of the connection type.
- Resource
Group stringName - Name of an Azure Resource group.
- Connection
Type stringName - 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.
- automation
Account StringName - The name of the automation account.
- field
Definitions Map<String,FieldDefinition Args> - Gets or sets the field definitions of the connection type.
- name String
- Gets or sets the name of the connection type.
- resource
Group StringName - Name of an Azure Resource group.
- connection
Type StringName - The parameters supplied to the create or update connection type operation.
- is
Global Boolean - Gets or sets a Boolean value to indicate if the connection type is global.
- automation
Account stringName - The name of the automation account.
- field
Definitions {[key: string]: FieldDefinition Args} - Gets or sets the field definitions of the connection type.
- name string
- Gets or sets the name of the connection type.
- resource
Group stringName - Name of an Azure Resource group.
- connection
Type stringName - The parameters supplied to the create or update connection type operation.
- is
Global boolean - Gets or sets a Boolean value to indicate if the connection type is global.
- automation_
account_ strname - The name of the automation account.
- field_
definitions Mapping[str, FieldDefinition Args] - Gets or sets the field definitions of the connection type.
- name str
- Gets or sets the name of the connection type.
- resource_
group_ strname - Name of an Azure Resource group.
- connection_
type_ strname - 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.
- automation
Account StringName - The name of the automation account.
- field
Definitions Map<Property Map> - Gets or sets the field definitions of the connection type.
- name String
- Gets or sets the name of the connection type.
- resource
Group StringName - Name of an Azure Resource group.
- connection
Type StringName - The parameters supplied to the create or update connection type operation.
- is
Global 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:
- Creation
Time 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.
- Last
Modified stringTime - Gets or sets the last modified time.
- Creation
Time 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.
- Last
Modified stringTime - Gets or sets the last modified time.
- creation
Time 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.
- last
Modified StringTime - Gets or sets the last modified time.
- creation
Time 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.
- last
Modified stringTime - 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_ strtime - Gets or sets the last modified time.
- creation
Time 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.
- last
Modified StringTime - Gets or sets the last modified time.
Supporting Types
FieldDefinition, FieldDefinitionArgs
- Type string
- 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.
- 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.
- is
Encrypted Boolean - Gets or sets the isEncrypted flag of the connection field definition.
- is
Optional Boolean - Gets or sets the isOptional flag of the connection field definition.
- type string
- Gets or sets the type of the connection field definition.
- is
Encrypted boolean - Gets or sets the isEncrypted flag of the connection field definition.
- is
Optional 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.
- is
Encrypted Boolean - Gets or sets the isEncrypted flag of the connection field definition.
- is
Optional 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.
- 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.
- 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.
- is
Encrypted Boolean - Gets or sets the isEncrypted flag of the connection field definition.
- is
Optional Boolean - Gets or sets the isOptional flag of the connection field definition.
- type string
- Gets or sets the type of the connection field definition.
- is
Encrypted boolean - Gets or sets the isEncrypted flag of the connection field definition.
- is
Optional 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.
- is
Encrypted Boolean - Gets or sets the isEncrypted flag of the connection field definition.
- is
Optional 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/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/connectionTypes/{connectionTypeName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0