mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
provider/triton: import triton_firewall_rule
This commit is contained in:
parent
e1e1a08569
commit
655bb4b286
@ -13,6 +13,9 @@ func resourceFirewallRule() *schema.Resource {
|
||||
Read: resourceFirewallRuleRead,
|
||||
Update: resourceFirewallRuleUpdate,
|
||||
Delete: resourceFirewallRuleDelete,
|
||||
Importer: &schema.ResourceImporter{
|
||||
State: resourceFirewallRuleImporter,
|
||||
},
|
||||
|
||||
Schema: map[string]*schema.Schema{
|
||||
"rule": {
|
||||
@ -103,3 +106,7 @@ func resourceFirewallRuleDelete(d *schema.ResourceData, meta interface{}) error
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
func resourceFirewallRuleImporter(d *schema.ResourceData, meta interface{}) ([]*schema.ResourceData, error) {
|
||||
return []*schema.ResourceData{d}, nil
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user