aws_appautoscaling_policy

Nivis Nix constructor for the aws_appautoscaling_policy 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,
  resource_id,
  scalable_dimension,
  service_namespace,
  id ? null,
  cfg_name ? null,
  policy_type ? null,
  region ? null,
  predictive_scaling_policy_configuration ? null,
  step_scaling_policy_configuration ? null,
  target_tracking_scaling_policy_configuration ? null,
  overrides ? {}
}
Required arguments
  • resource_id
  • scalable_dimension
  • service_namespace
Optional arguments
  • id (defaults to null)
  • cfg_name (defaults to null)
  • policy_type (defaults to null)
  • region (defaults to null)
  • predictive_scaling_policy_configuration (defaults to null)
  • step_scaling_policy_configuration (defaults to null)
  • target_tracking_scaling_policy_configuration (defaults to null)
Computed outputs

Read these from the resource's refAttr:

  • alarm_arns
  • arn
Example
aws_appautoscaling_policy {
  name = "appautoscaling_policy";
  resource_id = …;  # required
  scalable_dimension = …;  # required
  service_namespace = …;  # required
}

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