alicloud_apig_policy

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

Constructor
{
  name,
  attach_resource_ids,
  attach_resource_type,
  policy_class_name,
  policy_config,
  environment_id ? null,
  gateway_id ? null,
  id ? null,
  policy_name ? null,
  timeouts ? null,
  overrides ? {}
}
Required arguments
  • attach_resource_ids
  • attach_resource_type
  • policy_class_name
  • policy_config
Optional arguments
  • environment_id (defaults to null)
  • gateway_id (defaults to null)
  • id (defaults to null)
  • policy_name (defaults to null)
  • timeouts (defaults to null)
Computed outputs

Read these from the resource's refAttr:

  • policy_class_id
Example
alicloud_apig_policy {
  name = "apig_policy";
  attach_resource_ids = …;  # required
  attach_resource_type = …;  # required
  policy_class_name = …;  # required
  policy_config = …;  # required
}

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