public static interface RuleAction.Builder extends SdkPojo, CopyableBuilder<RuleAction.Builder,RuleAction>
| Modifier and Type | Method and Description |
|---|---|
RuleAction.Builder |
allow(AllowAction allow)
Instructs WAF to allow the web request.
|
default RuleAction.Builder |
allow(Consumer<AllowAction.Builder> allow)
Instructs WAF to allow the web request.
|
RuleAction.Builder |
block(BlockAction block)
Instructs WAF to block the web request.
|
default RuleAction.Builder |
block(Consumer<BlockAction.Builder> block)
Instructs WAF to block the web request.
|
RuleAction.Builder |
captcha(CaptchaAction captcha)
Instructs WAF to run a
CAPTCHA check against the web request. |
default RuleAction.Builder |
captcha(Consumer<CaptchaAction.Builder> captcha)
Instructs WAF to run a
CAPTCHA check against the web request. |
RuleAction.Builder |
challenge(ChallengeAction challenge)
Instructs WAF to run a
Challenge check against the web request. |
default RuleAction.Builder |
challenge(Consumer<ChallengeAction.Builder> challenge)
Instructs WAF to run a
Challenge check against the web request. |
default RuleAction.Builder |
count(Consumer<CountAction.Builder> count)
Instructs WAF to count the web request and then continue evaluating the request using the remaining rules in
the web ACL.
|
RuleAction.Builder |
count(CountAction count)
Instructs WAF to count the web request and then continue evaluating the request using the remaining rules in
the web ACL.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildRuleAction.Builder block(BlockAction block)
Instructs WAF to block the web request.
block - Instructs WAF to block the web request.default RuleAction.Builder block(Consumer<BlockAction.Builder> block)
Instructs WAF to block the web request.
This is a convenience method that creates an instance of theBlockAction.Builder avoiding the need to
create one manually via BlockAction.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its result
is passed to block(BlockAction).
block - a consumer that will call methods on BlockAction.Builderblock(BlockAction)RuleAction.Builder allow(AllowAction allow)
Instructs WAF to allow the web request.
allow - Instructs WAF to allow the web request.default RuleAction.Builder allow(Consumer<AllowAction.Builder> allow)
Instructs WAF to allow the web request.
This is a convenience method that creates an instance of theAllowAction.Builder avoiding the need to
create one manually via AllowAction.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its result
is passed to allow(AllowAction).
allow - a consumer that will call methods on AllowAction.Builderallow(AllowAction)RuleAction.Builder count(CountAction count)
Instructs WAF to count the web request and then continue evaluating the request using the remaining rules in the web ACL.
count - Instructs WAF to count the web request and then continue evaluating the request using the remaining
rules in the web ACL.default RuleAction.Builder count(Consumer<CountAction.Builder> count)
Instructs WAF to count the web request and then continue evaluating the request using the remaining rules in the web ACL.
This is a convenience method that creates an instance of theCountAction.Builder avoiding the need to
create one manually via CountAction.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its result
is passed to count(CountAction).
count - a consumer that will call methods on CountAction.Buildercount(CountAction)RuleAction.Builder captcha(CaptchaAction captcha)
Instructs WAF to run a CAPTCHA check against the web request.
captcha - Instructs WAF to run a CAPTCHA check against the web request.default RuleAction.Builder captcha(Consumer<CaptchaAction.Builder> captcha)
Instructs WAF to run a CAPTCHA check against the web request.
CaptchaAction.Builder avoiding the need
to create one manually via CaptchaAction.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to captcha(CaptchaAction).
captcha - a consumer that will call methods on CaptchaAction.Buildercaptcha(CaptchaAction)RuleAction.Builder challenge(ChallengeAction challenge)
Instructs WAF to run a Challenge check against the web request.
challenge - Instructs WAF to run a Challenge check against the web request.default RuleAction.Builder challenge(Consumer<ChallengeAction.Builder> challenge)
Instructs WAF to run a Challenge check against the web request.
ChallengeAction.Builder avoiding the
need to create one manually via ChallengeAction.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to challenge(ChallengeAction).
challenge - a consumer that will call methods on ChallengeAction.Builderchallenge(ChallengeAction)Copyright © 2023. All rights reserved.