Help Center/ Config/ User Guide/ Resource Compliance/ Built-In Policies/ General Policies/ Resource Type Check by Specifying Allowed Resource Types
Updated on 2025-08-25 GMT+08:00

Resource Type Check by Specifying Allowed Resource Types

Rule Details

Table 1 Rule Details

Parameter

Description

Rule Name

resources-in-allowed-types

Identifier

Resource Type Check by Specifying Allowed Resource Types

Description

If a resource type does not match any of the specified resource types, this resource is non-compliant.

Tag

type

Trigger Type

Configuration change

Filter Type

All resources

Rule Parameters

providerAndTypes: resource types. The value format is ['provider.type'].

Application Scenarios

To prevent service violations, you need to restrict the resource types allowed.

Solution

Ensure that only the allowed resource types are created and delete prohibited resources.

Rule Logic

  • If a resource is an allowed type, this resource is compliant.
  • If a resource is not any allowed type, this resource is non-compliant.