
com.pulumi.aws.wafv2.WebAcl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws Show documentation
Show all versions of aws Show documentation
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.aws.wafv2;
import com.pulumi.aws.Utilities;
import com.pulumi.aws.wafv2.WebAclArgs;
import com.pulumi.aws.wafv2.inputs.WebAclState;
import com.pulumi.aws.wafv2.outputs.WebAclAssociationConfig;
import com.pulumi.aws.wafv2.outputs.WebAclCaptchaConfig;
import com.pulumi.aws.wafv2.outputs.WebAclChallengeConfig;
import com.pulumi.aws.wafv2.outputs.WebAclCustomResponseBody;
import com.pulumi.aws.wafv2.outputs.WebAclDefaultAction;
import com.pulumi.aws.wafv2.outputs.WebAclRule;
import com.pulumi.aws.wafv2.outputs.WebAclVisibilityConfig;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Export;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import javax.annotation.Nullable;
@ResourceType(type="aws:wafv2/webAcl:WebAcl")
public class WebAcl extends com.pulumi.resources.CustomResource {
/**
* The URL to use in SDK integrations with managed rule groups.
*
*/
@Export(name="applicationIntegrationUrl", refs={String.class}, tree="[0]")
private Output applicationIntegrationUrl;
/**
* @return The URL to use in SDK integrations with managed rule groups.
*
*/
public Output applicationIntegrationUrl() {
return this.applicationIntegrationUrl;
}
/**
* The ARN of the WAF WebACL.
*
*/
@Export(name="arn", refs={String.class}, tree="[0]")
private Output arn;
/**
* @return The ARN of the WAF WebACL.
*
*/
public Output arn() {
return this.arn;
}
/**
* Specifies custom configurations for the associations between the web ACL and protected resources. See `association_config` below for details.
*
*/
@Export(name="associationConfig", refs={WebAclAssociationConfig.class}, tree="[0]")
private Output* @Nullable */ WebAclAssociationConfig> associationConfig;
/**
* @return Specifies custom configurations for the associations between the web ACL and protected resources. See `association_config` below for details.
*
*/
public Output> associationConfig() {
return Codegen.optional(this.associationConfig);
}
/**
* Web ACL capacity units (WCUs) currently being used by this web ACL.
*
*/
@Export(name="capacity", refs={Integer.class}, tree="[0]")
private Output capacity;
/**
* @return Web ACL capacity units (WCUs) currently being used by this web ACL.
*
*/
public Output capacity() {
return this.capacity;
}
/**
* Specifies how AWS WAF should handle CAPTCHA evaluations on the ACL level (used by [AWS Bot Control](https://docs.aws.amazon.com/waf/latest/developerguide/aws-managed-rule-groups-bot.html)). See `captcha_config` below for details.
*
*/
@Export(name="captchaConfig", refs={WebAclCaptchaConfig.class}, tree="[0]")
private Output* @Nullable */ WebAclCaptchaConfig> captchaConfig;
/**
* @return Specifies how AWS WAF should handle CAPTCHA evaluations on the ACL level (used by [AWS Bot Control](https://docs.aws.amazon.com/waf/latest/developerguide/aws-managed-rule-groups-bot.html)). See `captcha_config` below for details.
*
*/
public Output> captchaConfig() {
return Codegen.optional(this.captchaConfig);
}
/**
* Specifies how AWS WAF should handle Challenge evaluations on the ACL level (used by [AWS Bot Control](https://docs.aws.amazon.com/waf/latest/developerguide/aws-managed-rule-groups-bot.html)). See `challenge_config` below for details.
*
*/
@Export(name="challengeConfig", refs={WebAclChallengeConfig.class}, tree="[0]")
private Output* @Nullable */ WebAclChallengeConfig> challengeConfig;
/**
* @return Specifies how AWS WAF should handle Challenge evaluations on the ACL level (used by [AWS Bot Control](https://docs.aws.amazon.com/waf/latest/developerguide/aws-managed-rule-groups-bot.html)). See `challenge_config` below for details.
*
*/
public Output> challengeConfig() {
return Codegen.optional(this.challengeConfig);
}
/**
* Defines custom response bodies that can be referenced by `custom_response` actions. See `custom_response_body` below for details.
*
*/
@Export(name="customResponseBodies", refs={List.class,WebAclCustomResponseBody.class}, tree="[0,1]")
private Output* @Nullable */ List> customResponseBodies;
/**
* @return Defines custom response bodies that can be referenced by `custom_response` actions. See `custom_response_body` below for details.
*
*/
public Output>> customResponseBodies() {
return Codegen.optional(this.customResponseBodies);
}
/**
* Action to perform if none of the `rules` contained in the WebACL match. See `default_action` below for details.
*
*/
@Export(name="defaultAction", refs={WebAclDefaultAction.class}, tree="[0]")
private Output defaultAction;
/**
* @return Action to perform if none of the `rules` contained in the WebACL match. See `default_action` below for details.
*
*/
public Output defaultAction() {
return this.defaultAction;
}
/**
* Friendly description of the WebACL.
*
*/
@Export(name="description", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> description;
/**
* @return Friendly description of the WebACL.
*
*/
public Output> description() {
return Codegen.optional(this.description);
}
@Export(name="lockToken", refs={String.class}, tree="[0]")
private Output lockToken;
public Output lockToken() {
return this.lockToken;
}
/**
* Friendly name of the WebACL.
*
*/
@Export(name="name", refs={String.class}, tree="[0]")
private Output name;
/**
* @return Friendly name of the WebACL.
*
*/
public Output name() {
return this.name;
}
/**
* Raw JSON string to allow more than three nested statements. Conflicts with `rule` attribute. This is for advanced use cases where more than 3 levels of nested statements are required. **There is no drift detection at this time**. If you use this attribute instead of `rule`, you will be foregoing drift detection. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_CreateWebACL.html) for the JSON structure.
*
*/
@Export(name="ruleJson", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> ruleJson;
/**
* @return Raw JSON string to allow more than three nested statements. Conflicts with `rule` attribute. This is for advanced use cases where more than 3 levels of nested statements are required. **There is no drift detection at this time**. If you use this attribute instead of `rule`, you will be foregoing drift detection. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_CreateWebACL.html) for the JSON structure.
*
*/
public Output> ruleJson() {
return Codegen.optional(this.ruleJson);
}
/**
* Rule blocks used to identify the web requests that you want to `allow`, `block`, or `count`. See `rule` below for details.
*
*/
@Export(name="rules", refs={List.class,WebAclRule.class}, tree="[0,1]")
private Output* @Nullable */ List> rules;
/**
* @return Rule blocks used to identify the web requests that you want to `allow`, `block`, or `count`. See `rule` below for details.
*
*/
public Output>> rules() {
return Codegen.optional(this.rules);
}
/**
* Specifies whether this is for an AWS CloudFront distribution or for a regional application. Valid values are `CLOUDFRONT` or `REGIONAL`. To work with CloudFront, you must also specify the region `us-east-1` (N. Virginia) on the AWS provider.
*
*/
@Export(name="scope", refs={String.class}, tree="[0]")
private Output scope;
/**
* @return Specifies whether this is for an AWS CloudFront distribution or for a regional application. Valid values are `CLOUDFRONT` or `REGIONAL`. To work with CloudFront, you must also specify the region `us-east-1` (N. Virginia) on the AWS provider.
*
*/
public Output scope() {
return this.scope;
}
/**
* Map of key-value pairs to associate with the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
*
*/
@Export(name="tags", refs={Map.class,String.class}, tree="[0,1,1]")
private Output* @Nullable */ Map> tags;
/**
* @return Map of key-value pairs to associate with the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
*
*/
public Output>> tags() {
return Codegen.optional(this.tags);
}
/**
* Map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
*
* @deprecated
* Please use `tags` instead.
*
*/
@Deprecated /* Please use `tags` instead. */
@Export(name="tagsAll", refs={Map.class,String.class}, tree="[0,1,1]")
private Output
© 2015 - 2025 Weber Informatics LLC | Privacy Policy