-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support to resource for Edge Firewall Functions Instance #patch (…
…#118) * feat: support to resource for Edge Firewall Functions Instance #patch
- Loading branch information
1 parent
59a4d09
commit 4b1e892
Showing
5 changed files
with
508 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> | ||
``` |
1 change: 1 addition & 0 deletions
1
examples/resources/azion_edge_firewall_edge_functions_instance/import.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
9 changes: 9 additions & 0 deletions
9
examples/resources/azion_edge_firewall_edge_functions_instance/resource.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" }) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.