Class RuleDetail
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<RuleDetail.Builder,RuleDetail>
Contains the full details of a custom detection rule, including its detection logic.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal Stringarn()The Amazon Resource Name (ARN) of the rule.static RuleDetail.Builderbuilder()final InstantThe timestamp when the rule was created.final DetectionRuleDataSourceThe data source that the rule analyzes.final StringThe data source that the rule analyzes.final RuleDefinitionThe detection logic definition for the rule.final StringA description of what the rule detects.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final RuleLanguagelanguage()The language used for the detection logic expression.final StringThe language used for the detection logic expression.final Stringname()The display name of the rule.final StringruleId()The unique identifier for the rule.final RuleSchemaschema()The schema version used by the rule definition.final StringThe schema version used by the rule definition.static Class<? extends RuleDetail.Builder> final Stringservice()The Amazon Web Services service associated with the rule.final DetectionRuleSeverityseverity()The severity level assigned to findings generated by this rule.final StringThe severity level assigned to findings generated by this rule.final Stringtactic()The MITRE ATT&CK tactic associated with the rule.final StringThe MITRE ATT&CK technique associated with the rule.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.final InstantThe timestamp when the rule was last updated.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
ruleId
The unique identifier for the rule.
- Returns:
- The unique identifier for the rule.
-
arn
The Amazon Resource Name (ARN) of the rule.
- Returns:
- The Amazon Resource Name (ARN) of the rule.
-
name
-
description
A description of what the rule detects.
- Returns:
- A description of what the rule detects.
-
severity
The severity level assigned to findings generated by this rule.
If the service returns an enum value that is not available in the current SDK version,
severitywill returnDetectionRuleSeverity.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromseverityAsString().- Returns:
- The severity level assigned to findings generated by this rule.
- See Also:
-
severityAsString
The severity level assigned to findings generated by this rule.
If the service returns an enum value that is not available in the current SDK version,
severitywill returnDetectionRuleSeverity.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromseverityAsString().- Returns:
- The severity level assigned to findings generated by this rule.
- See Also:
-
dataSource
The data source that the rule analyzes.
If the service returns an enum value that is not available in the current SDK version,
dataSourcewill returnDetectionRuleDataSource.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromdataSourceAsString().- Returns:
- The data source that the rule analyzes.
- See Also:
-
dataSourceAsString
The data source that the rule analyzes.
If the service returns an enum value that is not available in the current SDK version,
dataSourcewill returnDetectionRuleDataSource.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromdataSourceAsString().- Returns:
- The data source that the rule analyzes.
- See Also:
-
tactic
The MITRE ATT&CK tactic associated with the rule.
- Returns:
- The MITRE ATT&CK tactic associated with the rule.
-
technique
The MITRE ATT&CK technique associated with the rule.
- Returns:
- The MITRE ATT&CK technique associated with the rule.
-
service
The Amazon Web Services service associated with the rule.
- Returns:
- The Amazon Web Services service associated with the rule.
-
definition
The detection logic definition for the rule.
- Returns:
- The detection logic definition for the rule.
-
language
The language used for the detection logic expression.
If the service returns an enum value that is not available in the current SDK version,
languagewill returnRuleLanguage.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromlanguageAsString().- Returns:
- The language used for the detection logic expression.
- See Also:
-
languageAsString
The language used for the detection logic expression.
If the service returns an enum value that is not available in the current SDK version,
languagewill returnRuleLanguage.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromlanguageAsString().- Returns:
- The language used for the detection logic expression.
- See Also:
-
schema
The schema version used by the rule definition.
If the service returns an enum value that is not available in the current SDK version,
schemawill returnRuleSchema.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromschemaAsString().- Returns:
- The schema version used by the rule definition.
- See Also:
-
schemaAsString
The schema version used by the rule definition.
If the service returns an enum value that is not available in the current SDK version,
schemawill returnRuleSchema.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromschemaAsString().- Returns:
- The schema version used by the rule definition.
- See Also:
-
createdAt
The timestamp when the rule was created.
- Returns:
- The timestamp when the rule was created.
-
updatedAt
The timestamp when the rule was last updated.
- Returns:
- The timestamp when the rule was last updated.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<RuleDetail.Builder,RuleDetail> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-