Class CustomPolicyDetails

    • Method Detail

      • policyRuntime

        public final String policyRuntime()

        The runtime system for your Config Custom Policy rule. Guard is a policy-as-code language that allows you to write policies that are enforced by Config Custom Policy rules. For more information about Guard, see the Guard GitHub Repository.

        Returns:
        The runtime system for your Config Custom Policy rule. Guard is a policy-as-code language that allows you to write policies that are enforced by Config Custom Policy rules. For more information about Guard, see the Guard GitHub Repository.
      • policyText

        public final String policyText()

        The policy definition containing the logic for your Config Custom Policy rule.

        Returns:
        The policy definition containing the logic for your Config Custom Policy rule.
      • enableDebugLogDelivery

        public final Boolean enableDebugLogDelivery()

        The boolean expression for enabling debug logging for your Config Custom Policy rule. The default value is false.

        Returns:
        The boolean expression for enabling debug logging for your Config Custom Policy rule. The default value is false.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)