@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 |
|---|---|
static CreateWebAclRequest.Builder |
builder() |
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()
Returns true if the CustomResponseBodies property was specified by the sender (it may be empty), or false if the
sender did not specify the value (it will be empty).
|
int |
hashCode() |
boolean |
hasRules()
Returns true if the Rules property was specified by the sender (it may be empty), or false if the sender did not
specify the value (it will be empty).
|
boolean |
hasTags()
Returns true if the Tags property was specified by the sender (it may be empty), or false if the sender did not
specify the value (it will be empty).
|
String |
name()
The name of the Web ACL.
|
List<Rule> |
rules()
The Rule statements used to identify the web requests that you want to allow, block, or count.
|
Scope |
scope()
Specifies whether this is for an AWS CloudFront distribution or for a regional application.
|
String |
scopeAsString()
Specifies whether this is for an AWS 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() |
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 AWS CloudFront distribution or for a regional application. A regional application can be an Application Load Balancer (ALB), an API Gateway REST API, or an AppSync GraphQL API.
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 AWS CloudFront distribution or for a regional application. A regional application can be an Application Load Balancer (ALB), an API Gateway REST API, or an AppSync GraphQL API.
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()
public final List<Rule> rules()
The Rule statements used to identify the web requests that you want to allow, block, or count. Each rule includes one top-level statement that AWS WAF uses to identify matching web requests, and parameters that govern how AWS WAF handles them.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasRules() to see if a value was sent in this field.
public final VisibilityConfig visibilityConfig()
Defines and enables Amazon CloudWatch metrics and web request sample collection.
public final boolean hasTags()
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.
You can use hasTags() to see if a value was sent in this field.
public final boolean hasCustomResponseBodies()
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 AWS WAF in the AWS WAF Developer Guide.
For information about the limits on count and size for custom request and response settings, see AWS WAF quotas in the AWS WAF Developer Guide.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasCustomResponseBodies() to see if a value was sent in this field.
For information about customizing web requests and responses, see Customizing web requests and responses in AWS WAF in the AWS WAF Developer Guide.
For information about the limits on count and size for custom request and response settings, see AWS WAF quotas in the AWS WAF Developer Guide.
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 © 2021. All rights reserved.