Class ComputeSecurityPolicyRuleRateLimitOptions.Jsii$Proxy
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- com.hashicorp.cdktf.providers.google.compute_security_policy.ComputeSecurityPolicyRuleRateLimitOptions.Jsii$Proxy
-
- All Implemented Interfaces:
ComputeSecurityPolicyRuleRateLimitOptions,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
- ComputeSecurityPolicyRuleRateLimitOptions
@Stability(Stable) @Internal public static final class ComputeSecurityPolicyRuleRateLimitOptions.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements ComputeSecurityPolicyRuleRateLimitOptions
An implementation forComputeSecurityPolicyRuleRateLimitOptions
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
-
Nested classes/interfaces inherited from interface com.hashicorp.cdktf.providers.google.compute_security_policy.ComputeSecurityPolicyRuleRateLimitOptions
ComputeSecurityPolicyRuleRateLimitOptions.Builder, ComputeSecurityPolicyRuleRateLimitOptions.Jsii$Proxy
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedJsii$Proxy(ComputeSecurityPolicyRuleRateLimitOptions.Builder builder)Constructor that initializes the object based on literal property values passed by theComputeSecurityPolicyRuleRateLimitOptions.Builder.protectedJsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)Constructor that initializes the object based on values retrieved from the JsiiObject.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.fasterxml.jackson.databind.JsonNode$jsii$toJson()booleanequals(Object o)NumbergetBanDurationSec()Can only be specified if the action for the rule is "rate_based_ban".ComputeSecurityPolicyRuleRateLimitOptionsBanThresholdgetBanThreshold()ban_threshold block.StringgetConformAction()Action to take for requests that are under the configured rate limit threshold.StringgetEnforceOnKey()Determines the key to enforce the rateLimitThreshold on.StringgetEnforceOnKeyName()Rate limit key name applicable only for the following key types: HTTP_HEADER -- Name of the HTTP header whose value is taken as the key value.StringgetExceedAction()Action to take for requests that are above the configured rate limit threshold, to either deny with a specified HTTP response code, or redirect to a different endpoint.ComputeSecurityPolicyRuleRateLimitOptionsExceedRedirectOptionsgetExceedRedirectOptions()exceed_redirect_options block.ComputeSecurityPolicyRuleRateLimitOptionsRateLimitThresholdgetRateLimitThreshold()rate_limit_threshold block.inthashCode()
-
-
-
Constructor Detail
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.- Parameters:
objRef- Reference to the JSII managed object.
-
Jsii$Proxy
protected Jsii$Proxy(ComputeSecurityPolicyRuleRateLimitOptions.Builder builder)
Constructor that initializes the object based on literal property values passed by theComputeSecurityPolicyRuleRateLimitOptions.Builder.
-
-
Method Detail
-
getConformAction
public final String getConformAction()
Description copied from interface:ComputeSecurityPolicyRuleRateLimitOptionsAction to take for requests that are under the configured rate limit threshold. Valid option is "allow" only.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_security_policy#conform_action ComputeSecurityPolicy#conform_action}
- Specified by:
getConformActionin interfaceComputeSecurityPolicyRuleRateLimitOptions
-
getExceedAction
public final String getExceedAction()
Description copied from interface:ComputeSecurityPolicyRuleRateLimitOptionsAction to take for requests that are above the configured rate limit threshold, to either deny with a specified HTTP response code, or redirect to a different endpoint.Valid options are "deny()" where valid values for status are 403, 404, 429, and 502, and "redirect" where the redirect parameters come from exceedRedirectOptions below. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_security_policy#exceed_action ComputeSecurityPolicy#exceed_action}
- Specified by:
getExceedActionin interfaceComputeSecurityPolicyRuleRateLimitOptions
-
getRateLimitThreshold
public final ComputeSecurityPolicyRuleRateLimitOptionsRateLimitThreshold getRateLimitThreshold()
Description copied from interface:ComputeSecurityPolicyRuleRateLimitOptionsrate_limit_threshold block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_security_policy#rate_limit_threshold ComputeSecurityPolicy#rate_limit_threshold}
- Specified by:
getRateLimitThresholdin interfaceComputeSecurityPolicyRuleRateLimitOptions
-
getBanDurationSec
public final Number getBanDurationSec()
Description copied from interface:ComputeSecurityPolicyRuleRateLimitOptionsCan only be specified if the action for the rule is "rate_based_ban".If specified, determines the time (in seconds) the traffic will continue to be banned by the rate limit after the rate falls below the threshold. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_security_policy#ban_duration_sec ComputeSecurityPolicy#ban_duration_sec}
- Specified by:
getBanDurationSecin interfaceComputeSecurityPolicyRuleRateLimitOptions
-
getBanThreshold
public final ComputeSecurityPolicyRuleRateLimitOptionsBanThreshold getBanThreshold()
Description copied from interface:ComputeSecurityPolicyRuleRateLimitOptionsban_threshold block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_security_policy#ban_threshold ComputeSecurityPolicy#ban_threshold}
- Specified by:
getBanThresholdin interfaceComputeSecurityPolicyRuleRateLimitOptions
-
getEnforceOnKey
public final String getEnforceOnKey()
Description copied from interface:ComputeSecurityPolicyRuleRateLimitOptionsDetermines the key to enforce the rateLimitThreshold on.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_security_policy#enforce_on_key ComputeSecurityPolicy#enforce_on_key}
- Specified by:
getEnforceOnKeyin interfaceComputeSecurityPolicyRuleRateLimitOptions
-
getEnforceOnKeyName
public final String getEnforceOnKeyName()
Description copied from interface:ComputeSecurityPolicyRuleRateLimitOptionsRate limit key name applicable only for the following key types: HTTP_HEADER -- Name of the HTTP header whose value is taken as the key value.HTTP_COOKIE -- Name of the HTTP cookie whose value is taken as the key value. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_security_policy#enforce_on_key_name ComputeSecurityPolicy#enforce_on_key_name}
- Specified by:
getEnforceOnKeyNamein interfaceComputeSecurityPolicyRuleRateLimitOptions
-
getExceedRedirectOptions
public final ComputeSecurityPolicyRuleRateLimitOptionsExceedRedirectOptions getExceedRedirectOptions()
Description copied from interface:ComputeSecurityPolicyRuleRateLimitOptionsexceed_redirect_options block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_security_policy#exceed_redirect_options ComputeSecurityPolicy#exceed_redirect_options}
- Specified by:
getExceedRedirectOptionsin interfaceComputeSecurityPolicyRuleRateLimitOptions
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
- Specified by:
$jsii$toJsonin interfacesoftware.amazon.jsii.JsiiSerializable
-
-