Skip to content

Commit

Permalink
feat: support to resource for Edge Firewall Functions Instance #patch (
Browse files Browse the repository at this point in the history
…#118)

* feat: support to resource for Edge Firewall Functions Instance #patch
  • Loading branch information
diegoazion authored Oct 18, 2023
1 parent 59a4d09 commit 4b1e892
Show file tree
Hide file tree
Showing 5 changed files with 508 additions and 0 deletions.
65 changes: 65 additions & 0 deletions docs/resources/edge_firewall_edge_functions_instance.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "azion_edge_firewall_edge_functions_instance Resource - terraform-provider-azion"
subcategory: ""
description: |-
---

# azion_edge_firewall_edge_functions_instance (Resource)



## Example Usage

```terraform
resource "azion_edge_firewall_edge_functions_instance" "example" {
edge_firewall_id = 12464
results = {
name = "Terraform Test"
"edge_function_id" : 9359
"args" : jsonencode(
{ a = "b" })
}
}
```

<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `edge_firewall_id` (Number) The edge firewall identifier.
- `results` (Attributes) (see [below for nested schema](#nestedatt--results))

### Read-Only

- `id` (String) The ID of this resource.
- `last_updated` (String) Timestamp of the last Terraform update of the resource.
- `schema_version` (Number)

<a id="nestedatt--results"></a>
### Nested Schema for `results`

Required:

- `edge_function_id` (Number) The edge function identifier.
- `name` (String) Name of the function.

Optional:

- `args` (String) JSON arguments of the function.

Read-Only:

- `id` (Number) The edge function instance identifier.
- `last_editor` (String) Last editor of the edge firewall edge functions instance.
- `last_modified` (String) Last modified timestamp of the edge firewall edge functions instance.

## Import

Import is supported using the following syntax:

```shell
terraform import azion_edge_firewall_edge_functions_instance.example <edge_firewall_id>/<edge_function_instance_id>
```
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
terraform import azion_edge_firewall_edge_functions_instance.example <edge_firewall_id>/<edge_function_instance_id>
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
resource "azion_edge_firewall_edge_functions_instance" "example" {
edge_firewall_id = 12464
results = {
name = "Terraform Test"
"edge_function_id" : 9359
"args" : jsonencode(
{ a = "b" })
}
}
1 change: 1 addition & 0 deletions internal/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ func (p *azionProvider) Resources(_ context.Context) []func() resource.Resource
EdgeFirewallResource,
EnvironmentVariableResource,
WafRuleSetResource,
NewEdgeFirewallEdgeFunctionsInstanceResource,
}
}

Expand Down
Loading

0 comments on commit 4b1e892

Please sign in to comment.