Azure Classic

v5.19.0 published on Friday, Sep 16, 2022 by Pulumi

ConnectionType

Manages anAutomation Connection Type.

Example Usage

Coming soon!

Coming soon!

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 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())
            .fieldDefinitions(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
            .build());

    }
}

Coming soon!

Coming soon!

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}
      fieldDefinitions:
        - name: example
          type: string
variables:
  exampleClientConfig:
    Fn::Invoke:
      Function: azure:core:getClientConfig
      Arguments: {}

Create a 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:

AutomationAccountName string

The name of the automation account in which the Connection is created. Changing this forces a new resource to be created.

Fields List<ConnectionTypeFieldArgs>

One or more field blocks as defined below. Changing this forces a new Automation to be created.

ResourceGroupName string

The name of the Resource Group where the Automation should exist. Changing this forces a new Automation to be created.

IsGlobal 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.

AutomationAccountName string

The name of the automation account in which the Connection is created. Changing this forces a new resource to be created.

Fields []ConnectionTypeFieldArgs

One or more field blocks as defined below. Changing this forces a new Automation to be created.

ResourceGroupName string

The name of the Resource Group where the Automation should exist. Changing this forces a new Automation to be created.

IsGlobal 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.

automationAccountName String

The name of the automation account in which the Connection is created. Changing this forces a new resource to be created.

fields List<ConnectionTypeFieldArgs>

One or more field blocks as defined below. Changing this forces a new Automation to be created.

resourceGroupName String

The name of the Resource Group where the Automation should exist. Changing this forces a new Automation to be created.

isGlobal 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.

automationAccountName string

The name of the automation account in which the Connection is created. Changing this forces a new resource to be created.

fields ConnectionTypeFieldArgs[]

One or more field blocks as defined below. Changing this forces a new Automation to be created.

resourceGroupName string

The name of the Resource Group where the Automation should exist. Changing this forces a new Automation to be created.

isGlobal 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_name str

The name of the automation account in which the Connection is created. Changing this forces a new resource to be created.

fields Sequence[ConnectionTypeFieldArgs]

One or more field blocks as defined below. Changing this forces a new Automation to be created.

resource_group_name str

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.

automationAccountName String

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.

resourceGroupName String

The name of the Resource Group where the Automation should exist. Changing this forces a new Automation to be created.

isGlobal 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 an 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.
The following state arguments are supported:
AutomationAccountName string

The name of the automation account in which the Connection is created. Changing this forces a new resource to be created.

Fields List<ConnectionTypeFieldArgs>

One or more field blocks as defined below. Changing this forces a new Automation to be created.

IsGlobal 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.

ResourceGroupName string

The name of the Resource Group where the Automation should exist. Changing this forces a new Automation to be created.

AutomationAccountName string

The name of the automation account in which the Connection is created. Changing this forces a new resource to be created.

Fields []ConnectionTypeFieldArgs

One or more field blocks as defined below. Changing this forces a new Automation to be created.

IsGlobal 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.

ResourceGroupName string

The name of the Resource Group where the Automation should exist. Changing this forces a new Automation to be created.

automationAccountName String

The name of the automation account in which the Connection is created. Changing this forces a new resource to be created.

fields List<ConnectionTypeFieldArgs>

One or more field blocks as defined below. Changing this forces a new Automation to be created.

isGlobal 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.

resourceGroupName String

The name of the Resource Group where the Automation should exist. Changing this forces a new Automation to be created.

automationAccountName string

The name of the automation account in which the Connection is created. Changing this forces a new resource to be created.

fields ConnectionTypeFieldArgs[]

One or more field blocks as defined below. Changing this forces a new Automation to be created.

isGlobal 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.

resourceGroupName string

The name of the Resource Group where the Automation should exist. Changing this forces a new Automation to be created.

automation_account_name str

The name of the automation account in which the Connection is created. Changing this forces a new resource to be created.

fields Sequence[ConnectionTypeFieldArgs]

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_name str

The name of the Resource Group where the Automation should exist. Changing this forces a new Automation to be created.

automationAccountName String

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.

isGlobal 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.

resourceGroupName String

The name of the Resource Group where the Automation should exist. Changing this forces a new Automation to be created.

Supporting Types

ConnectionTypeField

Name string

The name which should be used for this connection field definition.

Type string

The type of the connection field definition.

IsEncrypted bool

Whether to set the isEncrypted flag of the connection field definition.

IsOptional 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.

IsEncrypted bool

Whether to set the isEncrypted flag of the connection field definition.

IsOptional 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.

isEncrypted Boolean

Whether to set the isEncrypted flag of the connection field definition.

isOptional 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.

isEncrypted boolean

Whether to set the isEncrypted flag of the connection field definition.

isOptional 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.

isEncrypted Boolean

Whether to set the isEncrypted flag of the connection field definition.

isOptional 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
https://github.com/pulumi/pulumi-azure
License
Apache-2.0
Notes

This Pulumi package is based on the azurerm Terraform Provider.