Class WafRule
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<WafRule.Builder,WafRule>
Describes a Web Application Firewall (WAF) rule group for a Lightsail distribution. A WAF rule group is a set of rules managed by AWS. The rules inspect viewer requests and block requests that match them.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal WafAcfpConfigAn object that describes the configuration of the account creation fraud prevention rule group.final WafAtpConfigAn object that describes the configuration of the account takeover prevention rule group.final WafBotControlConfigAn object that describes the configuration of the bot control rule group.static WafRule.Builderbuilder()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 Stringname()The name of the WAF rule group (for example,AWSManagedRulesCommonRuleSet).static Class<? extends WafRule.Builder> 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.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
name
The name of the WAF rule group (for example,
AWSManagedRulesCommonRuleSet).For the WAF rule groups that you can specify for each bundle, see the
wafRulesparameter of theCreateDistributionaction.- Returns:
- The name of the WAF rule group (for example,
AWSManagedRulesCommonRuleSet).For the WAF rule groups that you can specify for each bundle, see the
wafRulesparameter of theCreateDistributionaction.
-
atpConfig
An object that describes the configuration of the account takeover prevention rule group.
Constraints:
-
Define this parameter only when the
nameisAWSManagedRulesATPRuleSet. -
This parameter is required when the
nameisAWSManagedRulesATPRuleSet.
- Returns:
- An object that describes the configuration of the account takeover prevention rule group.
Constraints:
-
Define this parameter only when the
nameisAWSManagedRulesATPRuleSet. -
This parameter is required when the
nameisAWSManagedRulesATPRuleSet.
-
-
-
acfpConfig
An object that describes the configuration of the account creation fraud prevention rule group.
Constraints:
-
Define this parameter only when the
nameisAWSManagedRulesACFPRuleSet. -
This parameter is required when the
nameisAWSManagedRulesACFPRuleSet.
- Returns:
- An object that describes the configuration of the account creation fraud prevention rule group.
Constraints:
-
Define this parameter only when the
nameisAWSManagedRulesACFPRuleSet. -
This parameter is required when the
nameisAWSManagedRulesACFPRuleSet.
-
-
-
botControlConfig
An object that describes the configuration of the bot control rule group.
Constraints:
-
Define this parameter only when the
nameisAWSManagedRulesBotControlRuleSet. -
This parameter is required when the
nameisAWSManagedRulesBotControlRuleSet.
- Returns:
- An object that describes the configuration of the bot control rule group.
Constraints:
-
Define this parameter only when the
nameisAWSManagedRulesBotControlRuleSet. -
This parameter is required when the
nameisAWSManagedRulesBotControlRuleSet.
-
-
-
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<WafRule.Builder,WafRule> - 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.
-