Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Info

Use Utility Class to apply a common logic to custom compliance policies with different types of Input Objects.

Use case: Your company has a tagging policy in place. This policy is used for all object types. If it is necessary to check the presence of three specific tags on objects, you would need to create three different policies in Compliance Engine. Since these policies would have the same logic, you can create and use a utility class instead of coping the logic for three individual policies.

1. Log in to Cloudaware account → select Compliance Engine in the main menu under your username.

...

After the utility class is successfully deployed, you may use its methods in different policies. In this example, we created the a sample method CheckCloudAccountTagsTagUtility.checkAccountTagscheckObjectTags for checking tags on cloud accounts (objects: AWS Account, Azure Subscription, Google Project). We can invoke tag presence validation using this single method.

...