azure-native-v2.automation.Connection
Explore with Pulumi AI
Definition of the connection. 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, 2024-10-23.
Create Connection Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Connection(name: string, args: ConnectionArgs, opts?: CustomResourceOptions);
@overload
def Connection(resource_name: str,
args: ConnectionArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Connection(resource_name: str,
opts: Optional[ResourceOptions] = None,
automation_account_name: Optional[str] = None,
connection_type: Optional[ConnectionTypeAssociationPropertyArgs] = None,
name: Optional[str] = None,
resource_group_name: Optional[str] = None,
connection_name: Optional[str] = None,
description: Optional[str] = None,
field_definition_values: Optional[Mapping[str, str]] = None)
func NewConnection(ctx *Context, name string, args ConnectionArgs, opts ...ResourceOption) (*Connection, error)
public Connection(string name, ConnectionArgs args, CustomResourceOptions? opts = null)
public Connection(String name, ConnectionArgs args)
public Connection(String name, ConnectionArgs args, CustomResourceOptions options)
type: azure-native:automation:Connection
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name
This property is required. string - The unique name of the resource.
- args
This property is required. ConnectionArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name
This property is required. str - The unique name of the resource.
- args
This property is required. ConnectionArgs - The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. ConnectionArgs - The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. ConnectionArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name
This property is required. String - The unique name of the resource.
- args
This property is required. ConnectionArgs - 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 connectionResource = new AzureNative.Automation.Connection("connectionResource", new()
{
AutomationAccountName = "string",
ConnectionType =
{
{ "name", "string" },
},
Name = "string",
ResourceGroupName = "string",
ConnectionName = "string",
Description = "string",
FieldDefinitionValues =
{
{ "string", "string" },
},
});
example, err := automation.NewConnection(ctx, "connectionResource", &automation.ConnectionArgs{
AutomationAccountName: "string",
ConnectionType: map[string]interface{}{
"name": "string",
},
Name: "string",
ResourceGroupName: "string",
ConnectionName: "string",
Description: "string",
FieldDefinitionValues: map[string]interface{}{
"string": "string",
},
})
var connectionResource = new Connection("connectionResource", ConnectionArgs.builder()
.automationAccountName("string")
.connectionType(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.name("string")
.resourceGroupName("string")
.connectionName("string")
.description("string")
.fieldDefinitionValues(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.build());
connection_resource = azure_native.automation.Connection("connectionResource",
automation_account_name=string,
connection_type={
name: string,
},
name=string,
resource_group_name=string,
connection_name=string,
description=string,
field_definition_values={
string: string,
})
const connectionResource = new azure_native.automation.Connection("connectionResource", {
automationAccountName: "string",
connectionType: {
name: "string",
},
name: "string",
resourceGroupName: "string",
connectionName: "string",
description: "string",
fieldDefinitionValues: {
string: "string",
},
});
type: azure-native:automation:Connection
properties:
automationAccountName: string
connectionName: string
connectionType:
name: string
description: string
fieldDefinitionValues:
string: string
name: string
resourceGroupName: string
Connection 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 Connection resource accepts the following input properties:
- Automation
Account Name This property is required. Changes to this property will trigger replacement.
- The name of the automation account.
- Connection
Type This property is required. Pulumi.Azure Native. Automation. Inputs. Connection Type Association Property - Gets or sets the connectionType of the connection.
- Name
This property is required. string - Gets or sets the name of the connection.
- Resource
Group Name This property is required. Changes to this property will trigger replacement.
- Name of an Azure Resource group.
- Connection
Name Changes to this property will trigger replacement.
- The parameters supplied to the create or update connection operation.
- Description string
- Gets or sets the description of the connection.
- Field
Definition Dictionary<string, string>Values - Gets or sets the field definition properties of the connection.
- Automation
Account Name This property is required. Changes to this property will trigger replacement.
- The name of the automation account.
- Connection
Type This property is required. ConnectionType Association Property Args - Gets or sets the connectionType of the connection.
- Name
This property is required. string - Gets or sets the name of the connection.
- Resource
Group Name This property is required. Changes to this property will trigger replacement.
- Name of an Azure Resource group.
- Connection
Name Changes to this property will trigger replacement.
- The parameters supplied to the create or update connection operation.
- Description string
- Gets or sets the description of the connection.
- Field
Definition map[string]stringValues - Gets or sets the field definition properties of the connection.
- automation
Account Name This property is required. Changes to this property will trigger replacement.
- The name of the automation account.
- connection
Type This property is required. ConnectionType Association Property - Gets or sets the connectionType of the connection.
- name
This property is required. String - Gets or sets the name of the connection.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- Name of an Azure Resource group.
- connection
Name Changes to this property will trigger replacement.
- The parameters supplied to the create or update connection operation.
- description String
- Gets or sets the description of the connection.
- field
Definition Map<String,String>Values - Gets or sets the field definition properties of the connection.
- automation
Account Name This property is required. Changes to this property will trigger replacement.
- The name of the automation account.
- connection
Type This property is required. ConnectionType Association Property - Gets or sets the connectionType of the connection.
- name
This property is required. string - Gets or sets the name of the connection.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- Name of an Azure Resource group.
- connection
Name Changes to this property will trigger replacement.
- The parameters supplied to the create or update connection operation.
- description string
- Gets or sets the description of the connection.
- field
Definition {[key: string]: string}Values - Gets or sets the field definition properties of the connection.
- automation_
account_ name This property is required. Changes to this property will trigger replacement.
- The name of the automation account.
- connection_
type This property is required. ConnectionType Association Property Args - Gets or sets the connectionType of the connection.
- name
This property is required. str - Gets or sets the name of the connection.
- resource_
group_ name This property is required. Changes to this property will trigger replacement.
- Name of an Azure Resource group.
- connection_
name Changes to this property will trigger replacement.
- The parameters supplied to the create or update connection operation.
- description str
- Gets or sets the description of the connection.
- field_
definition_ Mapping[str, str]values - Gets or sets the field definition properties of the connection.
- automation
Account Name This property is required. Changes to this property will trigger replacement.
- The name of the automation account.
- connection
Type This property is required. Property Map - Gets or sets the connectionType of the connection.
- name
This property is required. String - Gets or sets the name of the connection.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- Name of an Azure Resource group.
- connection
Name Changes to this property will trigger replacement.
- The parameters supplied to the create or update connection operation.
- description String
- Gets or sets the description of the connection.
- field
Definition Map<String>Values - Gets or sets the field definition properties of the connection.
Outputs
All input properties are implicitly available as output properties. Additionally, the Connection resource produces the following output properties:
- Creation
Time string - Gets the creation time.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Modified stringTime - Gets the last modified time.
- Type string
- The type of the resource.
- Creation
Time string - Gets the creation time.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Modified stringTime - Gets the last modified time.
- Type string
- The type of the resource.
- creation
Time String - Gets the creation time.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Modified StringTime - Gets the last modified time.
- type String
- The type of the resource.
- creation
Time string - Gets the creation time.
- id string
- The provider-assigned unique ID for this managed resource.
- last
Modified stringTime - Gets the last modified time.
- type string
- The type of the resource.
- creation_
time str - Gets the creation time.
- id str
- The provider-assigned unique ID for this managed resource.
- last_
modified_ strtime - Gets the last modified time.
- type str
- The type of the resource.
- creation
Time String - Gets the creation time.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Modified StringTime - Gets the last modified time.
- type String
- The type of the resource.
Supporting Types
ConnectionTypeAssociationProperty, ConnectionTypeAssociationPropertyArgs
- Name string
- Gets or sets the name of the connection type.
- Name string
- Gets or sets the name of the connection type.
- name String
- Gets or sets the name of the connection type.
- name string
- Gets or sets the name of the connection type.
- name str
- Gets or sets the name of the connection type.
- name String
- Gets or sets the name of the connection type.
ConnectionTypeAssociationPropertyResponse, ConnectionTypeAssociationPropertyResponseArgs
- Name string
- Gets or sets the name of the connection type.
- Name string
- Gets or sets the name of the connection type.
- name String
- Gets or sets the name of the connection type.
- name string
- Gets or sets the name of the connection type.
- name str
- Gets or sets the name of the connection type.
- name String
- Gets or sets the name of the connection type.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:automation:Connection mysConnection /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/connections/{connectionName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v2 pulumi/pulumi-azure-native
- License
- Apache-2.0