generated from hashicorp/terraform-provider-scaffolding
-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2178 from quixoticmonk/docs-auto-wave3
docs: autogenerated documentation by bedrock
- Loading branch information
Showing
83 changed files
with
4,517 additions
and
47 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
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
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
|
||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "awscc_ce_anomaly_subscription Resource - terraform-provider-awscc" | ||
subcategory: "" | ||
description: |- | ||
|
@@ -10,7 +10,48 @@ description: |- | |
|
||
AWS Cost Anomaly Detection leverages advanced Machine Learning technologies to identify anomalous spend and root causes, so you can quickly take action. Create subscription to be notified | ||
|
||
|
||
## Example Usage | ||
|
||
### Cost Anomaly Detection and Notification | ||
|
||
Creates a daily Cost Explorer anomaly subscription that monitors service-level cost anomalies and notifies via email when the cost impact threshold exceeds $100. | ||
|
||
~> This example is generated by LLM using Amazon Bedrock and validated using terraform validate, apply and destroy. While we strive for accuracy and quality, please note that the information provided may not be entirely error-free or up-to-date. We recommend independently verifying the content. | ||
|
||
```terraform | ||
# Get AWS Account ID | ||
data "aws_caller_identity" "current" {} | ||
# Get current AWS Region | ||
data "aws_region" "current" {} | ||
# Create a Cost anomaly monitor first | ||
resource "awscc_ce_anomaly_monitor" "example" { | ||
monitor_name = "example-monitor" | ||
monitor_type = "DIMENSIONAL" | ||
monitor_dimension = "SERVICE" | ||
resource_tags = [{ | ||
key = "Modified By" | ||
value = "AWSCC" | ||
}] | ||
} | ||
# Create the anomaly subscription | ||
resource "awscc_ce_anomaly_subscription" "example" { | ||
subscription_name = "example-subscription" | ||
frequency = "DAILY" | ||
monitor_arn_list = [awscc_ce_anomaly_monitor.example.monitor_arn] | ||
threshold = 100 | ||
subscribers = [{ | ||
type = "EMAIL" | ||
address = "[email protected]" | ||
}] | ||
resource_tags = [{ | ||
key = "Modified By" | ||
value = "AWSCC" | ||
}] | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
Oops, something went wrong.