aws_appautoscaling_policyNivis 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_idscalable_dimensionservice_namespace
Optional arguments
id(defaults tonull)cfg_name(defaults tonull)policy_type(defaults tonull)region(defaults tonull)predictive_scaling_policy_configuration(defaults tonull)step_scaling_policy_configuration(defaults tonull)target_tracking_scaling_policy_configuration(defaults tonull)
Computed outputs
Read these from the resource's refAttr:
alarm_arnsarn
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.