Skip to content

Commit

Permalink
cloudprovider: update description for CW scrape job regions field (#1829
Browse files Browse the repository at this point in the history
)
  • Loading branch information
tristanburgess authored Oct 4, 2024
1 parent f34d38e commit ab4b7c1
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ data "grafana_cloud_provider_aws_cloudwatch_scrape_job" "test" {
- `enabled` (Boolean) Whether the CloudWatch Scrape Job is enabled or not.
- `export_tags` (Boolean) When enabled, AWS resource tags are exported as Prometheus labels to metrics formatted as `aws_<service_name>_info`.
- `id` (String) The Terraform Resource ID. This has the format "{{ stack_id }}:{{ name }}".
- `regions` (Set of String) A set of AWS region names that this CloudWatch Scrape Job applies to.
- `regions` (Set of String) A set of AWS region names that this CloudWatch Scrape Job applies to. This must be a subset of the regions that are configured in the associated AWS Account resource.
- `service` (Block List) One or more configuration blocks to dictate what this CloudWatch Scrape Job should scrape. Each block must have a distinct `name` attribute. When accessing this as an attribute reference, it is a list of objects. (see [below for nested schema](#nestedblock--service))

<a id="nestedblock--custom_namespace"></a>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Read-Only:
- `export_tags` (Boolean) When enabled, AWS resource tags are exported as Prometheus labels to metrics formatted as `aws_<service_name>_info`.
- `id` (String) The Terraform Resource ID. This has the format "{{ stack_id }}:{{ name }}".
- `name` (String) The name of the CloudWatch Scrape Job. Part of the Terraform Resource ID.
- `regions` (Set of String) A set of AWS region names that this CloudWatch Scrape Job applies to.
- `regions` (Set of String) A set of AWS region names that this CloudWatch Scrape Job applies to. This must be a subset of the regions that are configured in the associated AWS Account resource.
- `service` (Block List) One or more configuration blocks to dictate what this CloudWatch Scrape Job should scrape. Each block must have a distinct `name` attribute. When accessing this as an attribute reference, it is a list of objects. (see [below for nested schema](#nestedblock--scrape_job--service))
- `stack_id` (String) The Stack ID of the Grafana Cloud instance. Part of the Terraform Resource ID.

Expand Down
2 changes: 1 addition & 1 deletion docs/resources/cloud_provider_aws_cloudwatch_scrape_job.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ resource "grafana_cloud_provider_aws_cloudwatch_scrape_job" "test" {

- `aws_account_resource_id` (String) The ID assigned by the Grafana Cloud Provider API to an AWS Account resource that should be associated with this CloudWatch Scrape Job.
- `name` (String) The name of the CloudWatch Scrape Job. Part of the Terraform Resource ID.
- `regions` (Set of String) A set of AWS region names that this CloudWatch Scrape Job applies to.
- `regions` (Set of String) A set of AWS region names that this CloudWatch Scrape Job applies to. This must be a subset of the regions that are configured in the associated AWS Account resource.
- `stack_id` (String) The Stack ID of the Grafana Cloud instance. Part of the Terraform Resource ID.

### Optional
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ var (
Computed: true,
},
"regions": schema.SetAttribute{
Description: "A set of AWS region names that this CloudWatch Scrape Job applies to.",
Description: "A set of AWS region names that this CloudWatch Scrape Job applies to. This must be a subset of the regions that are configured in the associated AWS Account resource.",
Computed: true,
ElementType: types.StringType,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ func (r *resourceAWSCloudWatchScrapeJob) Schema(ctx context.Context, req resourc
Required: true,
},
"regions": schema.SetAttribute{
Description: "A set of AWS region names that this CloudWatch Scrape Job applies to.",
Description: "A set of AWS region names that this CloudWatch Scrape Job applies to. This must be a subset of the regions that are configured in the associated AWS Account resource.",
Required: true,
Validators: []validator.Set{
setvalidator.SizeAtLeast(1),
Expand Down

0 comments on commit ab4b7c1

Please sign in to comment.