@Generated(value="software.amazon.awssdk:codegen") public final class CreateWebAclRequest extends Wafv2Request implements ToCopyableBuilder<CreateWebAclRequest.Builder,CreateWebAclRequest>
| Modifier and Type | Class and Description |
|---|---|
static interface |
CreateWebAclRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
AssociationConfig |
associationConfig()
Specifies custom configurations for the associations between the web ACL and protected resources.
|
static CreateWebAclRequest.Builder |
builder() |
CaptchaConfig |
captchaConfig()
Specifies how WAF should handle
CAPTCHA evaluations for rules that don't have their own
CaptchaConfig settings. |
ChallengeConfig |
challengeConfig()
Specifies how WAF should handle challenge evaluations for rules that don't have their own
ChallengeConfig settings. |
Map<String,CustomResponseBody> |
customResponseBodies()
A map of custom response keys and content bodies.
|
DefaultAction |
defaultAction()
The action to perform if none of the
Rules contained in the WebACL match. |
String |
description()
A description of the web ACL that helps with identification.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasCustomResponseBodies()
For responses, this returns true if the service returned a value for the CustomResponseBodies property.
|
int |
hashCode() |
boolean |
hasRules()
For responses, this returns true if the service returned a value for the Rules property.
|
boolean |
hasTags()
For responses, this returns true if the service returned a value for the Tags property.
|
boolean |
hasTokenDomains()
For responses, this returns true if the service returned a value for the TokenDomains property.
|
String |
name()
The name of the web ACL.
|
List<Rule> |
rules()
The Rule statements used to identify the web requests that you want to manage.
|
Scope |
scope()
Specifies whether this is for an Amazon CloudFront distribution or for a regional application.
|
String |
scopeAsString()
Specifies whether this is for an Amazon CloudFront distribution or for a regional application.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends CreateWebAclRequest.Builder> |
serializableBuilderClass() |
List<Tag> |
tags()
An array of key:value pairs to associate with the resource.
|
CreateWebAclRequest.Builder |
toBuilder() |
List<String> |
tokenDomains()
Specifies the domains that WAF should accept in a web request token.
|
String |
toString()
Returns a string representation of this object.
|
VisibilityConfig |
visibilityConfig()
Defines and enables Amazon CloudWatch metrics and web request sample collection.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String name()
The name of the web ACL. You cannot change the name of a web ACL after you create it.
public final Scope scope()
Specifies whether this is for an Amazon CloudFront distribution or for a regional application. A regional application can be an Application Load Balancer (ALB), an Amazon API Gateway REST API, an AppSync GraphQL API, an Amazon Cognito user pool, an App Runner service, or an Amazon Web Services Verified Access instance.
To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows:
CLI - Specify the Region when you use the CloudFront scope: --scope=CLOUDFRONT --region=us-east-1.
API and SDKs - For all calls, use the Region endpoint us-east-1.
If the service returns an enum value that is not available in the current SDK version, scope will return
Scope.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
scopeAsString().
To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows:
CLI - Specify the Region when you use the CloudFront scope:
--scope=CLOUDFRONT --region=us-east-1.
API and SDKs - For all calls, use the Region endpoint us-east-1.
Scopepublic final String scopeAsString()
Specifies whether this is for an Amazon CloudFront distribution or for a regional application. A regional application can be an Application Load Balancer (ALB), an Amazon API Gateway REST API, an AppSync GraphQL API, an Amazon Cognito user pool, an App Runner service, or an Amazon Web Services Verified Access instance.
To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows:
CLI - Specify the Region when you use the CloudFront scope: --scope=CLOUDFRONT --region=us-east-1.
API and SDKs - For all calls, use the Region endpoint us-east-1.
If the service returns an enum value that is not available in the current SDK version, scope will return
Scope.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
scopeAsString().
To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows:
CLI - Specify the Region when you use the CloudFront scope:
--scope=CLOUDFRONT --region=us-east-1.
API and SDKs - For all calls, use the Region endpoint us-east-1.
Scopepublic final DefaultAction defaultAction()
The action to perform if none of the Rules contained in the WebACL match.
Rules contained in the WebACL match.public final String description()
A description of the web ACL that helps with identification.
public final boolean hasRules()
isEmpty() method on the property). This is useful
because the SDK will never return a null collection or map, but you may need to differentiate between the service
returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true
if a value for the property was specified in the request builder, and false if a value was not specified.public final List<Rule> rules()
The Rule statements used to identify the web requests that you want to manage. Each rule includes one top-level statement that WAF uses to identify matching web requests, and parameters that govern how WAF handles them.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasRules() method.
public final VisibilityConfig visibilityConfig()
Defines and enables Amazon CloudWatch metrics and web request sample collection.
public final boolean hasTags()
isEmpty() method on the property). This is useful
because the SDK will never return a null collection or map, but you may need to differentiate between the service
returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true
if a value for the property was specified in the request builder, and false if a value was not specified.public final List<Tag> tags()
An array of key:value pairs to associate with the resource.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasTags() method.
public final boolean hasCustomResponseBodies()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final Map<String,CustomResponseBody> customResponseBodies()
A map of custom response keys and content bodies. When you create a rule with a block action, you can send a custom response to the web request. You define these for the web ACL, and then use them in the rules and default actions that you define in the web ACL.
For information about customizing web requests and responses, see Customizing web requests and responses in WAF in the WAF Developer Guide.
For information about the limits on count and size for custom request and response settings, see WAF quotas in the WAF Developer Guide.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasCustomResponseBodies() method.
For information about customizing web requests and responses, see Customizing web requests and responses in WAF in the WAF Developer Guide.
For information about the limits on count and size for custom request and response settings, see WAF quotas in the WAF Developer Guide.
public final CaptchaConfig captchaConfig()
Specifies how WAF should handle CAPTCHA evaluations for rules that don't have their own
CaptchaConfig settings. If you don't specify this, WAF uses its default settings for
CaptchaConfig.
CAPTCHA evaluations for rules that don't have their own
CaptchaConfig settings. If you don't specify this, WAF uses its default settings for
CaptchaConfig.public final ChallengeConfig challengeConfig()
Specifies how WAF should handle challenge evaluations for rules that don't have their own
ChallengeConfig settings. If you don't specify this, WAF uses its default settings for
ChallengeConfig.
ChallengeConfig settings. If you don't specify this, WAF uses its default settings for
ChallengeConfig.public final boolean hasTokenDomains()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<String> tokenDomains()
Specifies the domains that WAF should accept in a web request token. This enables the use of tokens across multiple protected websites. When WAF provides a token, it uses the domain of the Amazon Web Services resource that the web ACL is protecting. If you don't specify a list of token domains, WAF accepts tokens only for the domain of the protected resource. With a token domain list, WAF accepts the resource's host domain plus all domains in the token domain list, including their prefixed subdomains.
Example JSON: "TokenDomains": { "mywebsite.com", "myotherwebsite.com" }
Public suffixes aren't allowed. For example, you can't use usa.gov or co.uk as token
domains.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasTokenDomains() method.
Example JSON: "TokenDomains": { "mywebsite.com", "myotherwebsite.com" }
Public suffixes aren't allowed. For example, you can't use usa.gov or co.uk as
token domains.
public final AssociationConfig associationConfig()
Specifies custom configurations for the associations between the web ACL and protected resources.
Use this to customize the maximum size of the request body that your protected CloudFront distributions forward to WAF for inspection. The default is 16 KB (16,384 bytes).
You are charged additional fees when your protected resources forward body sizes that are larger than the default. For more information, see WAF Pricing.
Use this to customize the maximum size of the request body that your protected CloudFront distributions forward to WAF for inspection. The default is 16 KB (16,384 bytes).
You are charged additional fees when your protected resources forward body sizes that are larger than the default. For more information, see WAF Pricing.
public CreateWebAclRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<CreateWebAclRequest.Builder,CreateWebAclRequest>toBuilder in class Wafv2Requestpublic static CreateWebAclRequest.Builder builder()
public static Class<? extends CreateWebAclRequest.Builder> serializableBuilderClass()
public final int hashCode()
hashCode in class AwsRequestpublic final boolean equals(Object obj)
equals in class AwsRequestpublic final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2023. All rights reserved.