aws_cloudwatch_query_definition

Nivis Nix constructor for the aws_cloudwatch_query_definition resource (provider aws). This reference is derived from the provider binary's own schema via nivis gen — it always matches the real provider.

Constructor
{
  name,
  query_string,
  id ? null,
  log_group_names ? null,
  cfg_name ? null,
  region ? null,
  overrides ? {}
}
Required arguments
  • query_string
Optional arguments
  • id (defaults to null)
  • log_group_names (defaults to null)
  • cfg_name (defaults to null)
  • region (defaults to null)
Computed outputs

Read these from the resource's refAttr:

  • arn
  • query_definition_id
Example
aws_cloudwatch_query_definition {
  name = "cloudwatch_query_definition";
  query_string = …;  # required
}

The reference for every provider is generated from the provider's own schema, not copied from its documentation.