-
Notifications
You must be signed in to change notification settings - Fork 4.6k
/
resource_arm_automation_variable_string.go
42 lines (33 loc) · 1.38 KB
/
resource_arm_automation_variable_string.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
package azurerm
import (
"time"
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
"github.com/terraform-providers/terraform-provider-azurerm/azurerm/helpers/validate"
)
func resourceArmAutomationVariableString() *schema.Resource {
return &schema.Resource{
Create: resourceArmAutomationVariableStringCreateUpdate,
Read: resourceArmAutomationVariableStringRead,
Update: resourceArmAutomationVariableStringCreateUpdate,
Delete: resourceArmAutomationVariableStringDelete,
Importer: &schema.ResourceImporter{
State: schema.ImportStatePassthrough,
},
Timeouts: &schema.ResourceTimeout{
Create: schema.DefaultTimeout(30 * time.Minute),
Read: schema.DefaultTimeout(5 * time.Minute),
Update: schema.DefaultTimeout(30 * time.Minute),
Delete: schema.DefaultTimeout(30 * time.Minute),
},
Schema: resourceAutomationVariableCommonSchema(schema.TypeString, validate.NoEmptyStrings),
}
}
func resourceArmAutomationVariableStringCreateUpdate(d *schema.ResourceData, meta interface{}) error {
return resourceAutomationVariableCreateUpdate(d, meta, "String")
}
func resourceArmAutomationVariableStringRead(d *schema.ResourceData, meta interface{}) error {
return resourceAutomationVariableRead(d, meta, "String")
}
func resourceArmAutomationVariableStringDelete(d *schema.ResourceData, meta interface{}) error {
return resourceAutomationVariableDelete(d, meta, "String")
}