forked from mondoohq/terraform-provider-mondoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into zendesk_integration
- Loading branch information
Showing
10 changed files
with
782 additions
and
3 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,73 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "mondoo_integration_email Resource - terraform-provider-mondoo" | ||
subcategory: "" | ||
description: |- | ||
Send an email to your ticket system, or any recipient. | ||
--- | ||
|
||
# mondoo_integration_email (Resource) | ||
|
||
Send an email to your ticket system, or any recipient. | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
provider "mondoo" { | ||
space = "hungry-poet-123456" | ||
} | ||
# Setup the Email integration | ||
resource "mondoo_integration_email" "email_integration" { | ||
name = "My Email Integration" | ||
recipients = [ | ||
{ | ||
name = "John Doe" | ||
email = "[email protected]" | ||
is_default = true | ||
reference_url = "https://example.com" | ||
}, | ||
{ | ||
name = "Alice Doe" | ||
email = "[email protected]" | ||
is_default = false | ||
reference_url = "https://example.com" | ||
} | ||
] | ||
auto_create = true | ||
auto_close = true | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `name` (String) Name of the integration. | ||
- `recipients` (Attributes List) List of email recipients. (see [below for nested schema](#nestedatt--recipients)) | ||
|
||
### Optional | ||
|
||
- `auto_close` (Boolean) Auto close tickets (defaults to false). | ||
- `auto_create` (Boolean) Auto create tickets (defaults to false). | ||
- `space_id` (String) Mondoo Space Identifier. If it is not provided, the provider space is used. | ||
|
||
### Read-Only | ||
|
||
- `mrn` (String) Integration identifier | ||
|
||
<a id="nestedatt--recipients"></a> | ||
### Nested Schema for `recipients` | ||
|
||
Required: | ||
|
||
- `email` (String) Recipient email address. | ||
- `name` (String) Recipient name. | ||
|
||
Optional: | ||
|
||
- `is_default` (Boolean) Mark this recipient as default. This needs to be set if auto_create is enabled. | ||
- `reference_url` (String) Reference URL for the recipient. |
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,8 @@ | ||
terraform { | ||
required_providers { | ||
mondoo = { | ||
source = "mondoohq/mondoo" | ||
version = ">= 0.19" | ||
} | ||
} | ||
} |
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,26 @@ | ||
provider "mondoo" { | ||
space = "hungry-poet-123456" | ||
} | ||
|
||
# Setup the Email integration | ||
resource "mondoo_integration_email" "email_integration" { | ||
name = "My Email Integration" | ||
|
||
recipients = [ | ||
{ | ||
name = "John Doe" | ||
email = "[email protected]" | ||
is_default = true | ||
reference_url = "https://example.com" | ||
}, | ||
{ | ||
name = "Alice Doe" | ||
email = "[email protected]" | ||
is_default = false | ||
reference_url = "https://example.com" | ||
} | ||
] | ||
|
||
auto_create = true | ||
auto_close = true | ||
} |
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
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
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.