We recommend using Azure Native.
azure.automation.ConnectionType
Explore with Pulumi AI
Manages anAutomation Connection Type.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new()
{
Location = "West Europe",
});
var exampleClientConfig = Azure.Core.GetClientConfig.Invoke();
var exampleAccount = new Azure.Automation.Account("exampleAccount", new()
{
Location = exampleResourceGroup.Location,
ResourceGroupName = exampleResourceGroup.Name,
SkuName = "Basic",
});
var exampleConnectionType = new Azure.Automation.ConnectionType("exampleConnectionType", new()
{
ResourceGroupName = exampleResourceGroup.Name,
AutomationAccountName = exampleAccount.Name,
Fields = new[]
{
new Azure.Automation.Inputs.ConnectionTypeFieldArgs
{
Name = "example",
Type = "string",
},
},
});
});
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/automation"
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
Location: pulumi.String("West Europe"),
})
if err != nil {
return err
}
_, err = core.GetClientConfig(ctx, nil, nil)
if err != nil {
return err
}
exampleAccount, err := automation.NewAccount(ctx, "exampleAccount", &automation.AccountArgs{
Location: exampleResourceGroup.Location,
ResourceGroupName: exampleResourceGroup.Name,
SkuName: pulumi.String("Basic"),
})
if err != nil {
return err
}
_, err = automation.NewConnectionType(ctx, "exampleConnectionType", &automation.ConnectionTypeArgs{
ResourceGroupName: exampleResourceGroup.Name,
AutomationAccountName: exampleAccount.Name,
Fields: automation.ConnectionTypeFieldArray{
&automation.ConnectionTypeFieldArgs{
Name: pulumi.String("example"),
Type: pulumi.String("string"),
},
},
})
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.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.core.CoreFunctions;
import com.pulumi.azure.automation.Account;
import com.pulumi.azure.automation.AccountArgs;
import com.pulumi.azure.automation.ConnectionType;
import com.pulumi.azure.automation.ConnectionTypeArgs;
import com.pulumi.azure.automation.inputs.ConnectionTypeFieldArgs;
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 exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.location("West Europe")
.build());
final var exampleClientConfig = CoreFunctions.getClientConfig();
var exampleAccount = new Account("exampleAccount", AccountArgs.builder()
.location(exampleResourceGroup.location())
.resourceGroupName(exampleResourceGroup.name())
.skuName("Basic")
.build());
var exampleConnectionType = new ConnectionType("exampleConnectionType", ConnectionTypeArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.automationAccountName(exampleAccount.name())
.fields(ConnectionTypeFieldArgs.builder()
.name("example")
.type("string")
.build())
.build());
}
}
import pulumi
import pulumi_azure as azure
example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe")
example_client_config = azure.core.get_client_config()
example_account = azure.automation.Account("exampleAccount",
location=example_resource_group.location,
resource_group_name=example_resource_group.name,
sku_name="Basic")
example_connection_type = azure.automation.ConnectionType("exampleConnectionType",
resource_group_name=example_resource_group.name,
automation_account_name=example_account.name,
fields=[azure.automation.ConnectionTypeFieldArgs(
name="example",
type="string",
)])
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West Europe"});
const exampleClientConfig = azure.core.getClientConfig({});
const exampleAccount = new azure.automation.Account("exampleAccount", {
location: exampleResourceGroup.location,
resourceGroupName: exampleResourceGroup.name,
skuName: "Basic",
});
const exampleConnectionType = new azure.automation.ConnectionType("exampleConnectionType", {
resourceGroupName: exampleResourceGroup.name,
automationAccountName: exampleAccount.name,
fields: [{
name: "example",
type: "string",
}],
});
resources:
exampleResourceGroup:
type: azure:core:ResourceGroup
properties:
location: West Europe
exampleAccount:
type: azure:automation:Account
properties:
location: ${exampleResourceGroup.location}
resourceGroupName: ${exampleResourceGroup.name}
skuName: Basic
exampleConnectionType:
type: azure:automation:ConnectionType
properties:
resourceGroupName: ${exampleResourceGroup.name}
automationAccountName: ${exampleAccount.name}
fields:
- name: example
type: string
variables:
exampleClientConfig:
fn::invoke:
Function: azure:core:getClientConfig
Arguments: {}
Create ConnectionType Resource
new ConnectionType(name: string, args: ConnectionTypeArgs, opts?: CustomResourceOptions);
@overload
def ConnectionType(resource_name: str,
opts: Optional[ResourceOptions] = None,
automation_account_name: Optional[str] = None,
fields: Optional[Sequence[ConnectionTypeFieldArgs]] = None,
is_global: Optional[bool] = None,
name: Optional[str] = None,
resource_group_name: Optional[str] = None)
@overload
def ConnectionType(resource_name: str,
args: ConnectionTypeArgs,
opts: Optional[ResourceOptions] = 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:automation:ConnectionType
properties: # The arguments to resource properties.
options: # 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.
- 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.
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
The ConnectionType resource accepts the following input properties:
- Automation
Account stringName The name of the automation account in which the Connection is created. Changing this forces a new resource to be created.
- Fields
List<Connection
Type Field> One or more
field
blocks as defined below. Changing this forces a new Automation to be created.- Resource
Group stringName The name of the Resource Group where the Automation should exist. Changing this forces a new Automation to be created.
- Is
Global bool Whether the connection type is global. Changing this forces a new Automation to be created.
- Name string
The name which should be used for this Automation Connection Type. Changing this forces a new Automation to be created.
- Automation
Account stringName The name of the automation account in which the Connection is created. Changing this forces a new resource to be created.
- Fields
[]Connection
Type Field Args One or more
field
blocks as defined below. Changing this forces a new Automation to be created.- Resource
Group stringName The name of the Resource Group where the Automation should exist. Changing this forces a new Automation to be created.
- Is
Global bool Whether the connection type is global. Changing this forces a new Automation to be created.
- Name string
The name which should be used for this Automation Connection Type. Changing this forces a new Automation to be created.
- automation
Account StringName The name of the automation account in which the Connection is created. Changing this forces a new resource to be created.
- fields
List<Connection
Type Field> One or more
field
blocks as defined below. Changing this forces a new Automation to be created.- resource
Group StringName The name of the Resource Group where the Automation should exist. Changing this forces a new Automation to be created.
- is
Global Boolean Whether the connection type is global. Changing this forces a new Automation to be created.
- name String
The name which should be used for this Automation Connection Type. Changing this forces a new Automation to be created.
- automation
Account stringName The name of the automation account in which the Connection is created. Changing this forces a new resource to be created.
- fields
Connection
Type Field[] One or more
field
blocks as defined below. Changing this forces a new Automation to be created.- resource
Group stringName The name of the Resource Group where the Automation should exist. Changing this forces a new Automation to be created.
- is
Global boolean Whether the connection type is global. Changing this forces a new Automation to be created.
- name string
The name which should be used for this Automation Connection Type. Changing this forces a new Automation to be created.
- automation_
account_ strname The name of the automation account in which the Connection is created. Changing this forces a new resource to be created.
- fields
Sequence[Connection
Type Field Args] One or more
field
blocks as defined below. Changing this forces a new Automation to be created.- resource_
group_ strname The name of the Resource Group where the Automation should exist. Changing this forces a new Automation to be created.
- is_
global bool Whether the connection type is global. Changing this forces a new Automation to be created.
- name str
The name which should be used for this Automation Connection Type. Changing this forces a new Automation to be created.
- automation
Account StringName The name of the automation account in which the Connection is created. Changing this forces a new resource to be created.
- fields List<Property Map>
One or more
field
blocks as defined below. Changing this forces a new Automation to be created.- resource
Group StringName The name of the Resource Group where the Automation should exist. Changing this forces a new Automation to be created.
- is
Global Boolean Whether the connection type is global. Changing this forces a new Automation to be created.
- name String
The name which should be used for this Automation Connection Type. Changing this forces a new Automation to be created.
Outputs
All input properties are implicitly available as output properties. Additionally, the ConnectionType resource produces the following output properties:
- Id string
The provider-assigned unique ID for this managed resource.
- Id string
The provider-assigned unique ID for this managed resource.
- id String
The provider-assigned unique ID for this managed resource.
- id string
The provider-assigned unique ID for this managed resource.
- id str
The provider-assigned unique ID for this managed resource.
- id String
The provider-assigned unique ID for this managed resource.
Look up Existing ConnectionType Resource
Get an existing ConnectionType resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ConnectionTypeState, opts?: CustomResourceOptions): ConnectionType
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
automation_account_name: Optional[str] = None,
fields: Optional[Sequence[ConnectionTypeFieldArgs]] = None,
is_global: Optional[bool] = None,
name: Optional[str] = None,
resource_group_name: Optional[str] = None) -> ConnectionType
func GetConnectionType(ctx *Context, name string, id IDInput, state *ConnectionTypeState, opts ...ResourceOption) (*ConnectionType, error)
public static ConnectionType Get(string name, Input<string> id, ConnectionTypeState? state, CustomResourceOptions? opts = null)
public static ConnectionType get(String name, Output<String> id, ConnectionTypeState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Automation
Account stringName The name of the automation account in which the Connection is created. Changing this forces a new resource to be created.
- Fields
List<Connection
Type Field> One or more
field
blocks as defined below. Changing this forces a new Automation to be created.- Is
Global bool Whether the connection type is global. Changing this forces a new Automation to be created.
- Name string
The name which should be used for this Automation Connection Type. Changing this forces a new Automation to be created.
- Resource
Group stringName The name of the Resource Group where the Automation should exist. Changing this forces a new Automation to be created.
- Automation
Account stringName The name of the automation account in which the Connection is created. Changing this forces a new resource to be created.
- Fields
[]Connection
Type Field Args One or more
field
blocks as defined below. Changing this forces a new Automation to be created.- Is
Global bool Whether the connection type is global. Changing this forces a new Automation to be created.
- Name string
The name which should be used for this Automation Connection Type. Changing this forces a new Automation to be created.
- Resource
Group stringName The name of the Resource Group where the Automation should exist. Changing this forces a new Automation to be created.
- automation
Account StringName The name of the automation account in which the Connection is created. Changing this forces a new resource to be created.
- fields
List<Connection
Type Field> One or more
field
blocks as defined below. Changing this forces a new Automation to be created.- is
Global Boolean Whether the connection type is global. Changing this forces a new Automation to be created.
- name String
The name which should be used for this Automation Connection Type. Changing this forces a new Automation to be created.
- resource
Group StringName The name of the Resource Group where the Automation should exist. Changing this forces a new Automation to be created.
- automation
Account stringName The name of the automation account in which the Connection is created. Changing this forces a new resource to be created.
- fields
Connection
Type Field[] One or more
field
blocks as defined below. Changing this forces a new Automation to be created.- is
Global boolean Whether the connection type is global. Changing this forces a new Automation to be created.
- name string
The name which should be used for this Automation Connection Type. Changing this forces a new Automation to be created.
- resource
Group stringName The name of the Resource Group where the Automation should exist. Changing this forces a new Automation to be created.
- automation_
account_ strname The name of the automation account in which the Connection is created. Changing this forces a new resource to be created.
- fields
Sequence[Connection
Type Field Args] One or more
field
blocks as defined below. Changing this forces a new Automation to be created.- is_
global bool Whether the connection type is global. Changing this forces a new Automation to be created.
- name str
The name which should be used for this Automation Connection Type. Changing this forces a new Automation to be created.
- resource_
group_ strname The name of the Resource Group where the Automation should exist. Changing this forces a new Automation to be created.
- automation
Account StringName The name of the automation account in which the Connection is created. Changing this forces a new resource to be created.
- fields List<Property Map>
One or more
field
blocks as defined below. Changing this forces a new Automation to be created.- is
Global Boolean Whether the connection type is global. Changing this forces a new Automation to be created.
- name String
The name which should be used for this Automation Connection Type. Changing this forces a new Automation to be created.
- resource
Group StringName The name of the Resource Group where the Automation should exist. Changing this forces a new Automation to be created.
Supporting Types
ConnectionTypeField, ConnectionTypeFieldArgs
- Name string
The name which should be used for this connection field definition.
- Type string
The type of the connection field definition.
- Is
Encrypted bool Whether to set the isEncrypted flag of the connection field definition.
- Is
Optional bool Whether to set the isOptional flag of the connection field definition.
- Name string
The name which should be used for this connection field definition.
- Type string
The type of the connection field definition.
- Is
Encrypted bool Whether to set the isEncrypted flag of the connection field definition.
- Is
Optional bool Whether to set the isOptional flag of the connection field definition.
- name String
The name which should be used for this connection field definition.
- type String
The type of the connection field definition.
- is
Encrypted Boolean Whether to set the isEncrypted flag of the connection field definition.
- is
Optional Boolean Whether to set the isOptional flag of the connection field definition.
- name string
The name which should be used for this connection field definition.
- type string
The type of the connection field definition.
- is
Encrypted boolean Whether to set the isEncrypted flag of the connection field definition.
- is
Optional boolean Whether to set the isOptional flag of the connection field definition.
- name str
The name which should be used for this connection field definition.
- type str
The type of the connection field definition.
- is_
encrypted bool Whether to set the isEncrypted flag of the connection field definition.
- is_
optional bool Whether to set the isOptional flag of the connection field definition.
- name String
The name which should be used for this connection field definition.
- type String
The type of the connection field definition.
- is
Encrypted Boolean Whether to set the isEncrypted flag of the connection field definition.
- is
Optional Boolean Whether to set the isOptional flag of the connection field definition.
Import
Automations can be imported using the resource id
, e.g.
$ pulumi import azure:automation/connectionType:ConnectionType example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/group1/providers/Microsoft.Automation/automationAccounts/account1/connectionTypes/type1
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
azurerm
Terraform Provider.