Skip to content

Bedrock Agentcore Control  >  Structures  >  WafConfiguration

WafConfiguration

Structure Class

WafConfiguration dataclass

The Amazon Web Services WAF configuration for the gateway. This configuration controls how the gateway behaves when the associated web ACL cannot be evaluated.

Attributes

failure_mode class-attribute instance-attribute
failure_mode: WafFailureMode | None = None

The failure mode that determines how the gateway handles requests when Amazon Web Services WAF is unreachable or times out. Valid values include:

  • FAIL_CLOSE - The gateway blocks requests when Amazon Web Services WAF cannot be evaluated.

  • FAIL_OPEN - The gateway allows requests when Amazon Web Services WAF cannot be evaluated.