-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Matthias Theuermann <[email protected]>
- Loading branch information
1 parent
aa6248a
commit e47ffa3
Showing
5 changed files
with
522 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,73 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "mondoo_integration_email Resource - terraform-provider-mondoo" | ||
subcategory: "" | ||
description: |- | ||
Send an email message to your ticket system (or any destination). | ||
--- | ||
|
||
# mondoo_integration_email (Resource) | ||
|
||
Send an email message to your ticket system (or any destination). | ||
|
||
## 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. | ||
- `auto_create` (Boolean) Auto create tickets. | ||
- `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 | ||
} |
Oops, something went wrong.