Class ComputeSecurityPolicyRuleRateLimitOptionsA.Jsii$Proxy
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- com.hashicorp.cdktf.providers.google.compute_security_policy_rule.ComputeSecurityPolicyRuleRateLimitOptionsA.Jsii$Proxy
-
- All Implemented Interfaces:
ComputeSecurityPolicyRuleRateLimitOptionsA,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
- ComputeSecurityPolicyRuleRateLimitOptionsA
@Stability(Stable) @Internal public static final class ComputeSecurityPolicyRuleRateLimitOptionsA.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements ComputeSecurityPolicyRuleRateLimitOptionsA
An implementation forComputeSecurityPolicyRuleRateLimitOptionsA
-
-
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_rule.ComputeSecurityPolicyRuleRateLimitOptionsA
ComputeSecurityPolicyRuleRateLimitOptionsA.Builder, ComputeSecurityPolicyRuleRateLimitOptionsA.Jsii$Proxy
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedJsii$Proxy(ComputeSecurityPolicyRuleRateLimitOptionsA.Builder builder)Constructor that initializes the object based on literal property values passed by theComputeSecurityPolicyRuleRateLimitOptionsA.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".ComputeSecurityPolicyRuleRateLimitOptionsBanThresholdAgetBanThreshold()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.ObjectgetEnforceOnKeyConfigs()enforce_on_key_configs block.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.ComputeSecurityPolicyRuleRateLimitOptionsExceedRedirectOptionsAgetExceedRedirectOptions()exceed_redirect_options block.ComputeSecurityPolicyRuleRateLimitOptionsRateLimitThresholdAgetRateLimitThreshold()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(ComputeSecurityPolicyRuleRateLimitOptionsA.Builder builder)
Constructor that initializes the object based on literal property values passed by theComputeSecurityPolicyRuleRateLimitOptionsA.Builder.
-
-
Method Detail
-
getBanDurationSec
public final Number getBanDurationSec()
Description copied from interface:ComputeSecurityPolicyRuleRateLimitOptionsACan 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_rule#ban_duration_sec ComputeSecurityPolicyRuleA#ban_duration_sec}
- Specified by:
getBanDurationSecin interfaceComputeSecurityPolicyRuleRateLimitOptionsA
-
getBanThreshold
public final ComputeSecurityPolicyRuleRateLimitOptionsBanThresholdA getBanThreshold()
Description copied from interface:ComputeSecurityPolicyRuleRateLimitOptionsAban_threshold block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_security_policy_rule#ban_threshold ComputeSecurityPolicyRuleA#ban_threshold}
- Specified by:
getBanThresholdin interfaceComputeSecurityPolicyRuleRateLimitOptionsA
-
getConformAction
public final String getConformAction()
Description copied from interface:ComputeSecurityPolicyRuleRateLimitOptionsAAction 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_rule#conform_action ComputeSecurityPolicyRuleA#conform_action}
- Specified by:
getConformActionin interfaceComputeSecurityPolicyRuleRateLimitOptionsA
-
getEnforceOnKey
public final String getEnforceOnKey()
Description copied from interface:ComputeSecurityPolicyRuleRateLimitOptionsADetermines the key to enforce the rateLimitThreshold on.Possible values are: * ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKey" is not configured. * IP: The source IP address of the request is the key. Each IP has this limit enforced separately. * HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. * XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. * HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. * HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. * SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. * REGION_CODE: The country/region from which the request originates. * TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. * USER_IP: The IP address of the originating client, which is resolved based on "userIpRequestHeaders" configured with the security policy. If there is no "userIpRequestHeaders" configuration or an IP address cannot be resolved from it, the key type defaults to IP. Possible values: ["ALL", "IP", "HTTP_HEADER", "XFF_IP", "HTTP_COOKIE", "HTTP_PATH", "SNI", "REGION_CODE", "TLS_JA3_FINGERPRINT", "USER_IP"] Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_security_policy_rule#enforce_on_key ComputeSecurityPolicyRuleA#enforce_on_key}
- Specified by:
getEnforceOnKeyin interfaceComputeSecurityPolicyRuleRateLimitOptionsA
-
getEnforceOnKeyConfigs
public final Object getEnforceOnKeyConfigs()
Description copied from interface:ComputeSecurityPolicyRuleRateLimitOptionsAenforce_on_key_configs block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_security_policy_rule#enforce_on_key_configs ComputeSecurityPolicyRuleA#enforce_on_key_configs}
- Specified by:
getEnforceOnKeyConfigsin interfaceComputeSecurityPolicyRuleRateLimitOptionsA
-
getEnforceOnKeyName
public final String getEnforceOnKeyName()
Description copied from interface:ComputeSecurityPolicyRuleRateLimitOptionsARate 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_rule#enforce_on_key_name ComputeSecurityPolicyRuleA#enforce_on_key_name}
- Specified by:
getEnforceOnKeyNamein interfaceComputeSecurityPolicyRuleRateLimitOptionsA
-
getExceedAction
public final String getExceedAction()
Description copied from interface:ComputeSecurityPolicyRuleRateLimitOptionsAAction 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(STATUS), where valid values for STATUS are 403, 404, 429, and 502. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_security_policy_rule#exceed_action ComputeSecurityPolicyRuleA#exceed_action}
- Specified by:
getExceedActionin interfaceComputeSecurityPolicyRuleRateLimitOptionsA
-
getExceedRedirectOptions
public final ComputeSecurityPolicyRuleRateLimitOptionsExceedRedirectOptionsA getExceedRedirectOptions()
Description copied from interface:ComputeSecurityPolicyRuleRateLimitOptionsAexceed_redirect_options block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_security_policy_rule#exceed_redirect_options ComputeSecurityPolicyRuleA#exceed_redirect_options}
- Specified by:
getExceedRedirectOptionsin interfaceComputeSecurityPolicyRuleRateLimitOptionsA
-
getRateLimitThreshold
public final ComputeSecurityPolicyRuleRateLimitOptionsRateLimitThresholdA getRateLimitThreshold()
Description copied from interface:ComputeSecurityPolicyRuleRateLimitOptionsArate_limit_threshold block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_security_policy_rule#rate_limit_threshold ComputeSecurityPolicyRuleA#rate_limit_threshold}
- Specified by:
getRateLimitThresholdin interfaceComputeSecurityPolicyRuleRateLimitOptionsA
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
- Specified by:
$jsii$toJsonin interfacesoftware.amazon.jsii.JsiiSerializable
-
-