Class RuleScope


  • public final class RuleScope
    extends java.lang.Object
    • Method Detail

      • complianceResourceId

        public java.util.Optional<java.lang.String> complianceResourceId()
        Returns:
        The IDs of the only AWS resource that you want to trigger an evaluation for the rule. If you specify a resource ID, you must specify one resource type for `compliance_resource_types`.
      • complianceResourceTypes

        public java.util.List<java.lang.String> complianceResourceTypes()
        Returns:
        A list of resource types of only those AWS resources that you want to trigger an evaluation for the ruleE.g., `AWS::EC2::Instance`. You can only specify one type if you also specify a resource ID for `compliance_resource_id`. See [relevant part of AWS Docs](http://docs.aws.amazon.com/config/latest/APIReference/API_ResourceIdentifier.html#config-Type-ResourceIdentifier-resourceType) for available types.
      • tagKey

        public java.util.Optional<java.lang.String> tagKey()
        Returns:
        The tag key that is applied to only those AWS resources that you want you want to trigger an evaluation for the rule.
      • tagValue

        public java.util.Optional<java.lang.String> tagValue()
        Returns:
        The tag value applied to only those AWS resources that you want to trigger an evaluation for the rule.