azurermAutomationConnectionType
Manages anAutomation Connection Type.
Example Usage
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as azurerm from "./.gen/providers/azurerm";
/*The following providers are missing schema information and might need manual adjustments to synthesize correctly: azurerm.
For a more precise conversion please use the --provider flag in convert.*/
new azurerm.provider.AzurermProvider(this, "azurerm", {
features: [{}],
});
const azurermResourceGroupExample = new azurerm.resourceGroup.ResourceGroup(
this,
"example",
{
location: "West Europe",
name: "resourceGroup-example",
}
);
const dataAzurermClientConfigExample =
new azurerm.dataAzurermClientConfig.DataAzurermClientConfig(
this,
"example_2",
{}
);
/*This allows the Terraform resource name to match the original name. You can remove the call if you don't need them to match.*/
dataAzurermClientConfigExample.overrideLogicalId("example");
const azurermAutomationAccountExample =
new azurerm.automationAccount.AutomationAccount(this, "example_3", {
location: azurermResourceGroupExample.location,
name: "account-example",
resource_group_name: azurermResourceGroupExample.name,
sku_name: "Basic",
});
/*This allows the Terraform resource name to match the original name. You can remove the call if you don't need them to match.*/
azurermAutomationAccountExample.overrideLogicalId("example");
const azurermAutomationConnectionTypeExample =
new azurerm.automationConnectionType.AutomationConnectionType(
this,
"example_4",
{
automation_account_name: azurermAutomationAccountExample.name,
field_definitions: [
{
name: "example",
type: "string",
},
],
name: "example",
resource_group_name: azurermResourceGroupExample.name,
}
);
/*This allows the Terraform resource name to match the original name. You can remove the call if you don't need them to match.*/
azurermAutomationConnectionTypeExample.overrideLogicalId("example");
Arguments Reference
The following arguments are supported:
-
name
- (Required) The name which should be used for this Automation Connection Type. Changing this forces a new Automation to be created. -
resourceGroupName
- (Required) The name of the Resource Group where the Automation should exist. Changing this forces a new Automation to be created. -
automationAccountName
- (Required) The name of the automation account in which the Connection is created. Changing this forces a new resource to be created. -
field
- (Required) One or morefield
blocks as defined below. Changing this forces a new Automation to be created.
isGlobal
- (Optional) Whether the connection type is global. Changing this forces a new Automation to be created.
A field
block supports the following:
-
name
- (Required) The name which should be used for this connection field definition. -
type
- (Required) The type of the connection field definition. -
isEncrypted
- (Optional) Whether to set the isEncrypted flag of the connection field definition. -
isOptional
- (Optional) Whether to set the isOptional flag of the connection field definition.
Attributes Reference
In addition to the Arguments listed above - the following Attributes are exported:
id
- The the Automation Connection Type ID.
Timeouts
The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 30 minutes) Used when creating the Automation.read
- (Defaults to 5 minutes) Used when retrieving the Automation.delete
- (Defaults to 10 minutes) Used when deleting the Automation.
Import
Automations can be imported using the resourceId
, e.g.