Class: DatadogAPIClient::V2::CloudConfigurationComplianceRuleOptions

Inherits:
Object
  • Object
show all
Includes:
BaseGenericModel
Defined in:
lib/datadog_api_client/v2/models/cloud_configuration_compliance_rule_options.rb

Overview

Options for cloud_configuration rules. Fields ‘resourceType` and `regoRule` are mandatory when managing custom `cloud_configuration` rules.

Instance Attribute Summary collapse

Method Summary

Methods included from BaseGenericModel

included

Instance Attribute Details

#additional_propertiesObject

Returns the value of attribute additional_properties.



37
38
39
# File 'lib/datadog_api_client/v2/models/cloud_configuration_compliance_rule_options.rb', line 37

def additional_properties
  @additional_properties
end

#complex_ruleObject

Whether the rule is a complex one. Must be set to true if ‘regoRule.resourceTypes` contains more than one item. Defaults to false.



28
29
30
# File 'lib/datadog_api_client/v2/models/cloud_configuration_compliance_rule_options.rb', line 28

def complex_rule
  @complex_rule
end

#rego_ruleObject

Rule details.



31
32
33
# File 'lib/datadog_api_client/v2/models/cloud_configuration_compliance_rule_options.rb', line 31

def rego_rule
  @rego_rule
end

#resource_typeObject

Main resource type to be checked by the rule. It should be specified again in ‘regoRule.resourceTypes`.



35
36
37
# File 'lib/datadog_api_client/v2/models/cloud_configuration_compliance_rule_options.rb', line 35

def resource_type
  @resource_type
end