ComputeSecurityPolicySecurityPolicyRuleRedirectOptions class

rule.redirect_options -- redirect target shape, also reused as rate_limit_options.exceed_redirect_options. Two flavors: 'EXTERNAL_302' requires target (an HTTPS URL Cloud Armor 302s to); 'GOOGLE_RECAPTCHA' swaps the request for a Google-hosted reCAPTCHA challenge and MUST NOT set target.

Annotations
  • @immutable

Constructors

ComputeSecurityPolicySecurityPolicyRuleRedirectOptions({required TfArg<String> type, TfArg<String>? target})
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
target → TfArg<String>?
HTTPS redirect target. Required for EXTERNAL_302; rejected for GOOGLE_RECAPTCHA.
final
type → TfArg<String>
'EXTERNAL_302' or 'GOOGLE_RECAPTCHA'. Surfaced as a raw string to avoid yet another enum for a binary choice; validate with a comment at the call site.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toArgMap() Map<String, Object?>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited