alicloud_apig_policyNivis 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_idsattach_resource_typepolicy_class_namepolicy_config
Optional arguments
environment_id(defaults tonull)gateway_id(defaults tonull)id(defaults tonull)policy_name(defaults tonull)timeouts(defaults tonull)
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.