Google Native

Pulumi Official
Package maintained by Pulumi
v0.19.0 published on Thursday, May 19, 2022 by Pulumi

getRegionSecurityPolicy

List all of the ordered rules present in a single specified policy.

Using getRegionSecurityPolicy

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getRegionSecurityPolicy(args: GetRegionSecurityPolicyArgs, opts?: InvokeOptions): Promise<GetRegionSecurityPolicyResult>
function getRegionSecurityPolicyOutput(args: GetRegionSecurityPolicyOutputArgs, opts?: InvokeOptions): Output<GetRegionSecurityPolicyResult>
def get_region_security_policy(project: Optional[str] = None,
                               region: Optional[str] = None,
                               security_policy: Optional[str] = None,
                               opts: Optional[InvokeOptions] = None) -> GetRegionSecurityPolicyResult
def get_region_security_policy_output(project: Optional[pulumi.Input[str]] = None,
                               region: Optional[pulumi.Input[str]] = None,
                               security_policy: Optional[pulumi.Input[str]] = None,
                               opts: Optional[InvokeOptions] = None) -> Output[GetRegionSecurityPolicyResult]
func LookupRegionSecurityPolicy(ctx *Context, args *LookupRegionSecurityPolicyArgs, opts ...InvokeOption) (*LookupRegionSecurityPolicyResult, error)
func LookupRegionSecurityPolicyOutput(ctx *Context, args *LookupRegionSecurityPolicyOutputArgs, opts ...InvokeOption) LookupRegionSecurityPolicyResultOutput

> Note: This function is named LookupRegionSecurityPolicy in the Go SDK.

public static class GetRegionSecurityPolicy 
{
    public static Task<GetRegionSecurityPolicyResult> InvokeAsync(GetRegionSecurityPolicyArgs args, InvokeOptions? opts = null)
    public static Output<GetRegionSecurityPolicyResult> Invoke(GetRegionSecurityPolicyInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetRegionSecurityPolicyResult> getRegionSecurityPolicy(GetRegionSecurityPolicyArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: google-native:compute/v1:getRegionSecurityPolicy
  Arguments:
    # Arguments dictionary

The following arguments are supported:

Region string
SecurityPolicy string
Project string
Region string
SecurityPolicy string
Project string
region String
securityPolicy String
project String
region string
securityPolicy string
project string
region String
securityPolicy String
project String

getRegionSecurityPolicy Result

The following output properties are available:

AdaptiveProtectionConfig Pulumi.GoogleNative.Compute.V1.Outputs.SecurityPolicyAdaptiveProtectionConfigResponse
AdvancedOptionsConfig Pulumi.GoogleNative.Compute.V1.Outputs.SecurityPolicyAdvancedOptionsConfigResponse
CreationTimestamp string

Creation timestamp in RFC3339 text format.

DdosProtectionConfig Pulumi.GoogleNative.Compute.V1.Outputs.SecurityPolicyDdosProtectionConfigResponse
Description string

An optional description of this resource. Provide this property when you create the resource.

Fingerprint string

Specifies a fingerprint for this resource, which is essentially a hash of the metadata's contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update metadata. You must always provide an up-to-date fingerprint hash in order to update or change metadata, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make get() request to the security policy.

Kind string

[Output only] Type of the resource. Always compute#securityPolicyfor security policies

Name string

Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

RecaptchaOptionsConfig Pulumi.GoogleNative.Compute.V1.Outputs.SecurityPolicyRecaptchaOptionsConfigResponse
Region string

URL of the region where the regional security policy resides. This field is not applicable to global security policies.

Rules List<Pulumi.GoogleNative.Compute.V1.Outputs.SecurityPolicyRuleResponse>

A list of rules that belong to this policy. There must always be a default rule (rule with priority 2147483647 and match "*"). If no rules are provided when creating a security policy, a default rule with action "allow" will be added.

SelfLink string

Server-defined URL for the resource.

Type string

The type indicates the intended use of the security policy. - CLOUD_ARMOR: Cloud Armor backend security policies can be configured to filter incoming HTTP requests targeting backend services. They filter requests before they hit the origin servers. - CLOUD_ARMOR_EDGE: Cloud Armor edge security policies can be configured to filter incoming HTTP requests targeting backend services (including Cloud CDN-enabled) as well as backend buckets (Cloud Storage). They filter requests before the request is served from Google's cache. - CLOUD_ARMOR_INTERNAL_SERVICE: Cloud Armor internal service policies can be configured to filter HTTP requests targeting services managed by Traffic Director in a service mesh. They filter requests before the request is served from the application. This field can be set only at resource creation time.

AdaptiveProtectionConfig SecurityPolicyAdaptiveProtectionConfigResponse
AdvancedOptionsConfig SecurityPolicyAdvancedOptionsConfigResponse
CreationTimestamp string

Creation timestamp in RFC3339 text format.

DdosProtectionConfig SecurityPolicyDdosProtectionConfigResponse
Description string

An optional description of this resource. Provide this property when you create the resource.

Fingerprint string

Specifies a fingerprint for this resource, which is essentially a hash of the metadata's contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update metadata. You must always provide an up-to-date fingerprint hash in order to update or change metadata, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make get() request to the security policy.

Kind string

[Output only] Type of the resource. Always compute#securityPolicyfor security policies

Name string

Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

RecaptchaOptionsConfig SecurityPolicyRecaptchaOptionsConfigResponse
Region string

URL of the region where the regional security policy resides. This field is not applicable to global security policies.

Rules []SecurityPolicyRuleResponse

A list of rules that belong to this policy. There must always be a default rule (rule with priority 2147483647 and match "*"). If no rules are provided when creating a security policy, a default rule with action "allow" will be added.

SelfLink string

Server-defined URL for the resource.

Type string

The type indicates the intended use of the security policy. - CLOUD_ARMOR: Cloud Armor backend security policies can be configured to filter incoming HTTP requests targeting backend services. They filter requests before they hit the origin servers. - CLOUD_ARMOR_EDGE: Cloud Armor edge security policies can be configured to filter incoming HTTP requests targeting backend services (including Cloud CDN-enabled) as well as backend buckets (Cloud Storage). They filter requests before the request is served from Google's cache. - CLOUD_ARMOR_INTERNAL_SERVICE: Cloud Armor internal service policies can be configured to filter HTTP requests targeting services managed by Traffic Director in a service mesh. They filter requests before the request is served from the application. This field can be set only at resource creation time.

adaptiveProtectionConfig SecurityPolicyAdaptiveProtectionConfigResponse
advancedOptionsConfig SecurityPolicyAdvancedOptionsConfigResponse
creationTimestamp String

Creation timestamp in RFC3339 text format.

ddosProtectionConfig SecurityPolicyDdosProtectionConfigResponse
description String

An optional description of this resource. Provide this property when you create the resource.

fingerprint String

Specifies a fingerprint for this resource, which is essentially a hash of the metadata's contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update metadata. You must always provide an up-to-date fingerprint hash in order to update or change metadata, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make get() request to the security policy.

kind String

[Output only] Type of the resource. Always compute#securityPolicyfor security policies

name String

Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

recaptchaOptionsConfig SecurityPolicyRecaptchaOptionsConfigResponse
region String

URL of the region where the regional security policy resides. This field is not applicable to global security policies.

rules ListPolicyRuleResponse>

A list of rules that belong to this policy. There must always be a default rule (rule with priority 2147483647 and match "*"). If no rules are provided when creating a security policy, a default rule with action "allow" will be added.

selfLink String

Server-defined URL for the resource.

type String

The type indicates the intended use of the security policy. - CLOUD_ARMOR: Cloud Armor backend security policies can be configured to filter incoming HTTP requests targeting backend services. They filter requests before they hit the origin servers. - CLOUD_ARMOR_EDGE: Cloud Armor edge security policies can be configured to filter incoming HTTP requests targeting backend services (including Cloud CDN-enabled) as well as backend buckets (Cloud Storage). They filter requests before the request is served from Google's cache. - CLOUD_ARMOR_INTERNAL_SERVICE: Cloud Armor internal service policies can be configured to filter HTTP requests targeting services managed by Traffic Director in a service mesh. They filter requests before the request is served from the application. This field can be set only at resource creation time.

adaptiveProtectionConfig SecurityPolicyAdaptiveProtectionConfigResponse
advancedOptionsConfig SecurityPolicyAdvancedOptionsConfigResponse
creationTimestamp string

Creation timestamp in RFC3339 text format.

ddosProtectionConfig SecurityPolicyDdosProtectionConfigResponse
description string

An optional description of this resource. Provide this property when you create the resource.

fingerprint string

Specifies a fingerprint for this resource, which is essentially a hash of the metadata's contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update metadata. You must always provide an up-to-date fingerprint hash in order to update or change metadata, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make get() request to the security policy.

kind string

[Output only] Type of the resource. Always compute#securityPolicyfor security policies

name string

Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

recaptchaOptionsConfig SecurityPolicyRecaptchaOptionsConfigResponse
region string

URL of the region where the regional security policy resides. This field is not applicable to global security policies.

rules SecurityPolicyRuleResponse[]

A list of rules that belong to this policy. There must always be a default rule (rule with priority 2147483647 and match "*"). If no rules are provided when creating a security policy, a default rule with action "allow" will be added.

selfLink string

Server-defined URL for the resource.

type string

The type indicates the intended use of the security policy. - CLOUD_ARMOR: Cloud Armor backend security policies can be configured to filter incoming HTTP requests targeting backend services. They filter requests before they hit the origin servers. - CLOUD_ARMOR_EDGE: Cloud Armor edge security policies can be configured to filter incoming HTTP requests targeting backend services (including Cloud CDN-enabled) as well as backend buckets (Cloud Storage). They filter requests before the request is served from Google's cache. - CLOUD_ARMOR_INTERNAL_SERVICE: Cloud Armor internal service policies can be configured to filter HTTP requests targeting services managed by Traffic Director in a service mesh. They filter requests before the request is served from the application. This field can be set only at resource creation time.

adaptive_protection_config SecurityPolicyAdaptiveProtectionConfigResponse
advanced_options_config SecurityPolicyAdvancedOptionsConfigResponse
creation_timestamp str

Creation timestamp in RFC3339 text format.

ddos_protection_config SecurityPolicyDdosProtectionConfigResponse
description str

An optional description of this resource. Provide this property when you create the resource.

fingerprint str

Specifies a fingerprint for this resource, which is essentially a hash of the metadata's contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update metadata. You must always provide an up-to-date fingerprint hash in order to update or change metadata, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make get() request to the security policy.

kind str

[Output only] Type of the resource. Always compute#securityPolicyfor security policies

name str

Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

recaptcha_options_config SecurityPolicyRecaptchaOptionsConfigResponse
region str

URL of the region where the regional security policy resides. This field is not applicable to global security policies.

rules Sequence[SecurityPolicyRuleResponse]

A list of rules that belong to this policy. There must always be a default rule (rule with priority 2147483647 and match "*"). If no rules are provided when creating a security policy, a default rule with action "allow" will be added.

self_link str

Server-defined URL for the resource.

type str

The type indicates the intended use of the security policy. - CLOUD_ARMOR: Cloud Armor backend security policies can be configured to filter incoming HTTP requests targeting backend services. They filter requests before they hit the origin servers. - CLOUD_ARMOR_EDGE: Cloud Armor edge security policies can be configured to filter incoming HTTP requests targeting backend services (including Cloud CDN-enabled) as well as backend buckets (Cloud Storage). They filter requests before the request is served from Google's cache. - CLOUD_ARMOR_INTERNAL_SERVICE: Cloud Armor internal service policies can be configured to filter HTTP requests targeting services managed by Traffic Director in a service mesh. They filter requests before the request is served from the application. This field can be set only at resource creation time.

adaptiveProtectionConfig Property Map
advancedOptionsConfig Property Map
creationTimestamp String

Creation timestamp in RFC3339 text format.

ddosProtectionConfig Property Map
description String

An optional description of this resource. Provide this property when you create the resource.

fingerprint String

Specifies a fingerprint for this resource, which is essentially a hash of the metadata's contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update metadata. You must always provide an up-to-date fingerprint hash in order to update or change metadata, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make get() request to the security policy.

kind String

[Output only] Type of the resource. Always compute#securityPolicyfor security policies

name String

Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

recaptchaOptionsConfig Property Map
region String

URL of the region where the regional security policy resides. This field is not applicable to global security policies.

rules List

A list of rules that belong to this policy. There must always be a default rule (rule with priority 2147483647 and match "*"). If no rules are provided when creating a security policy, a default rule with action "allow" will be added.

selfLink String

Server-defined URL for the resource.

type String

The type indicates the intended use of the security policy. - CLOUD_ARMOR: Cloud Armor backend security policies can be configured to filter incoming HTTP requests targeting backend services. They filter requests before they hit the origin servers. - CLOUD_ARMOR_EDGE: Cloud Armor edge security policies can be configured to filter incoming HTTP requests targeting backend services (including Cloud CDN-enabled) as well as backend buckets (Cloud Storage). They filter requests before the request is served from Google's cache. - CLOUD_ARMOR_INTERNAL_SERVICE: Cloud Armor internal service policies can be configured to filter HTTP requests targeting services managed by Traffic Director in a service mesh. They filter requests before the request is served from the application. This field can be set only at resource creation time.

Supporting Types

ExprResponse

Description string

Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.

Expression string

Textual representation of an expression in Common Expression Language syntax.

Location string

Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.

Title string

Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.

Description string

Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.

Expression string

Textual representation of an expression in Common Expression Language syntax.

Location string

Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.

Title string

Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.

description String

Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.

expression String

Textual representation of an expression in Common Expression Language syntax.

location String

Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.

title String

Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.

description string

Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.

expression string

Textual representation of an expression in Common Expression Language syntax.

location string

Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.

title string

Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.

description str

Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.

expression str

Textual representation of an expression in Common Expression Language syntax.

location str

Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.

title str

Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.

description String

Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.

expression String

Textual representation of an expression in Common Expression Language syntax.

location String

Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.

title String

Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.

SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigResponse

Enable bool

If set to true, enables CAAP for L7 DDoS detection.

RuleVisibility string

Rule visibility can be one of the following: STANDARD - opaque rules. (default) PREMIUM - transparent rules.

Enable bool

If set to true, enables CAAP for L7 DDoS detection.

RuleVisibility string

Rule visibility can be one of the following: STANDARD - opaque rules. (default) PREMIUM - transparent rules.

enable Boolean

If set to true, enables CAAP for L7 DDoS detection.

ruleVisibility String

Rule visibility can be one of the following: STANDARD - opaque rules. (default) PREMIUM - transparent rules.

enable boolean

If set to true, enables CAAP for L7 DDoS detection.

ruleVisibility string

Rule visibility can be one of the following: STANDARD - opaque rules. (default) PREMIUM - transparent rules.

enable bool

If set to true, enables CAAP for L7 DDoS detection.

rule_visibility str

Rule visibility can be one of the following: STANDARD - opaque rules. (default) PREMIUM - transparent rules.

enable Boolean

If set to true, enables CAAP for L7 DDoS detection.

ruleVisibility String

Rule visibility can be one of the following: STANDARD - opaque rules. (default) PREMIUM - transparent rules.

SecurityPolicyAdaptiveProtectionConfigResponse

layer7DdosDefenseConfig Property Map

If set to true, enables Cloud Armor Machine Learning.

SecurityPolicyAdvancedOptionsConfigResponse

JsonParsing string
LogLevel string
JsonParsing string
LogLevel string
jsonParsing String
logLevel String
jsonParsing string
logLevel string
jsonParsing String
logLevel String

SecurityPolicyDdosProtectionConfigResponse

SecurityPolicyRecaptchaOptionsConfigResponse

RedirectSiteKey string

An optional field to supply a reCAPTCHA site key to be used for all the rules using the redirect action with the type of GOOGLE_RECAPTCHA under the security policy. The specified site key needs to be created from the reCAPTCHA API. The user is responsible for the validity of the specified site key. If not specified, a Google-managed site key is used.

RedirectSiteKey string

An optional field to supply a reCAPTCHA site key to be used for all the rules using the redirect action with the type of GOOGLE_RECAPTCHA under the security policy. The specified site key needs to be created from the reCAPTCHA API. The user is responsible for the validity of the specified site key. If not specified, a Google-managed site key is used.

redirectSiteKey String

An optional field to supply a reCAPTCHA site key to be used for all the rules using the redirect action with the type of GOOGLE_RECAPTCHA under the security policy. The specified site key needs to be created from the reCAPTCHA API. The user is responsible for the validity of the specified site key. If not specified, a Google-managed site key is used.

redirectSiteKey string

An optional field to supply a reCAPTCHA site key to be used for all the rules using the redirect action with the type of GOOGLE_RECAPTCHA under the security policy. The specified site key needs to be created from the reCAPTCHA API. The user is responsible for the validity of the specified site key. If not specified, a Google-managed site key is used.

redirect_site_key str

An optional field to supply a reCAPTCHA site key to be used for all the rules using the redirect action with the type of GOOGLE_RECAPTCHA under the security policy. The specified site key needs to be created from the reCAPTCHA API. The user is responsible for the validity of the specified site key. If not specified, a Google-managed site key is used.

redirectSiteKey String

An optional field to supply a reCAPTCHA site key to be used for all the rules using the redirect action with the type of GOOGLE_RECAPTCHA under the security policy. The specified site key needs to be created from the reCAPTCHA API. The user is responsible for the validity of the specified site key. If not specified, a Google-managed site key is used.

SecurityPolicyRuleHttpHeaderActionHttpHeaderOptionResponse

HeaderName string

The name of the header to set.

HeaderValue string

The value to set the named header to.

HeaderName string

The name of the header to set.

HeaderValue string

The value to set the named header to.

headerName String

The name of the header to set.

headerValue String

The value to set the named header to.

headerName string

The name of the header to set.

headerValue string

The value to set the named header to.

header_name str

The name of the header to set.

header_value str

The value to set the named header to.

headerName String

The name of the header to set.

headerValue String

The value to set the named header to.

SecurityPolicyRuleHttpHeaderActionResponse

RequestHeadersToAdds []SecurityPolicyRuleHttpHeaderActionHttpHeaderOptionResponse

The list of request headers to add or overwrite if they're already present.

requestHeadersToAdds ListPolicyRuleHttpHeaderActionHttpHeaderOptionResponse>

The list of request headers to add or overwrite if they're already present.

requestHeadersToAdds SecurityPolicyRuleHttpHeaderActionHttpHeaderOptionResponse[]

The list of request headers to add or overwrite if they're already present.

request_headers_to_adds Sequence[SecurityPolicyRuleHttpHeaderActionHttpHeaderOptionResponse]

The list of request headers to add or overwrite if they're already present.

requestHeadersToAdds List

The list of request headers to add or overwrite if they're already present.

SecurityPolicyRuleMatcherConfigResponse

SrcIpRanges List<string>

CIDR IP address range. Maximum number of src_ip_ranges allowed is 10.

SrcIpRanges []string

CIDR IP address range. Maximum number of src_ip_ranges allowed is 10.

srcIpRanges List

CIDR IP address range. Maximum number of src_ip_ranges allowed is 10.

srcIpRanges string[]

CIDR IP address range. Maximum number of src_ip_ranges allowed is 10.

src_ip_ranges Sequence[str]

CIDR IP address range. Maximum number of src_ip_ranges allowed is 10.

srcIpRanges List

CIDR IP address range. Maximum number of src_ip_ranges allowed is 10.

SecurityPolicyRuleMatcherResponse

Config Pulumi.GoogleNative.Compute.V1.Inputs.SecurityPolicyRuleMatcherConfigResponse

The configuration options available when specifying versioned_expr. This field must be specified if versioned_expr is specified and cannot be specified if versioned_expr is not specified.

Expr Pulumi.GoogleNative.Compute.V1.Inputs.ExprResponse

User defined CEVAL expression. A CEVAL expression is used to specify match criteria such as origin.ip, source.region_code and contents in the request header.

VersionedExpr string

Preconfigured versioned expression. If this field is specified, config must also be specified. Available preconfigured expressions along with their requirements are: SRC_IPS_V1 - must specify the corresponding src_ip_range field in config.

Config SecurityPolicyRuleMatcherConfigResponse

The configuration options available when specifying versioned_expr. This field must be specified if versioned_expr is specified and cannot be specified if versioned_expr is not specified.

Expr ExprResponse

User defined CEVAL expression. A CEVAL expression is used to specify match criteria such as origin.ip, source.region_code and contents in the request header.

VersionedExpr string

Preconfigured versioned expression. If this field is specified, config must also be specified. Available preconfigured expressions along with their requirements are: SRC_IPS_V1 - must specify the corresponding src_ip_range field in config.

config SecurityPolicyRuleMatcherConfigResponse

The configuration options available when specifying versioned_expr. This field must be specified if versioned_expr is specified and cannot be specified if versioned_expr is not specified.

expr ExprResponse

User defined CEVAL expression. A CEVAL expression is used to specify match criteria such as origin.ip, source.region_code and contents in the request header.

versionedExpr String

Preconfigured versioned expression. If this field is specified, config must also be specified. Available preconfigured expressions along with their requirements are: SRC_IPS_V1 - must specify the corresponding src_ip_range field in config.

config SecurityPolicyRuleMatcherConfigResponse

The configuration options available when specifying versioned_expr. This field must be specified if versioned_expr is specified and cannot be specified if versioned_expr is not specified.

expr ExprResponse

User defined CEVAL expression. A CEVAL expression is used to specify match criteria such as origin.ip, source.region_code and contents in the request header.

versionedExpr string

Preconfigured versioned expression. If this field is specified, config must also be specified. Available preconfigured expressions along with their requirements are: SRC_IPS_V1 - must specify the corresponding src_ip_range field in config.

config SecurityPolicyRuleMatcherConfigResponse

The configuration options available when specifying versioned_expr. This field must be specified if versioned_expr is specified and cannot be specified if versioned_expr is not specified.

expr ExprResponse

User defined CEVAL expression. A CEVAL expression is used to specify match criteria such as origin.ip, source.region_code and contents in the request header.

versioned_expr str

Preconfigured versioned expression. If this field is specified, config must also be specified. Available preconfigured expressions along with their requirements are: SRC_IPS_V1 - must specify the corresponding src_ip_range field in config.

config Property Map

The configuration options available when specifying versioned_expr. This field must be specified if versioned_expr is specified and cannot be specified if versioned_expr is not specified.

expr Property Map

User defined CEVAL expression. A CEVAL expression is used to specify match criteria such as origin.ip, source.region_code and contents in the request header.

versionedExpr String

Preconfigured versioned expression. If this field is specified, config must also be specified. Available preconfigured expressions along with their requirements are: SRC_IPS_V1 - must specify the corresponding src_ip_range field in config.

SecurityPolicyRuleRateLimitOptionsResponse

BanDurationSec int

Can 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.

BanThreshold Pulumi.GoogleNative.Compute.V1.Inputs.SecurityPolicyRuleRateLimitOptionsThresholdResponse

Can only be specified if the action for the rule is "rate_based_ban". If specified, the key will be banned for the configured 'ban_duration_sec' when the number of requests that exceed the 'rate_limit_threshold' also exceed this 'ban_threshold'.

ConformAction string

Action to take for requests that are under the configured rate limit threshold. Valid option is "allow" only.

EnforceOnKey string

Determines the key to enforce the rate_limit_threshold 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 this field 'enforce_on_key' 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 "enforce_on_key_name". 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 "enforce_on_key_name". 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.

EnforceOnKeyName string

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. HTTP_COOKIE -- Name of the HTTP cookie whose value is taken as the key value.

ExceedAction string

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. Valid options are "deny(status)", where valid values for status are 403, 404, 429, and 502, and "redirect" where the redirect parameters come from exceedRedirectOptions below.

ExceedRedirectOptions Pulumi.GoogleNative.Compute.V1.Inputs.SecurityPolicyRuleRedirectOptionsResponse

Parameters defining the redirect action that is used as the exceed action. Cannot be specified if the exceed action is not redirect.

RateLimitThreshold Pulumi.GoogleNative.Compute.V1.Inputs.SecurityPolicyRuleRateLimitOptionsThresholdResponse

Threshold at which to begin ratelimiting.

BanDurationSec int

Can 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.

BanThreshold SecurityPolicyRuleRateLimitOptionsThresholdResponse

Can only be specified if the action for the rule is "rate_based_ban". If specified, the key will be banned for the configured 'ban_duration_sec' when the number of requests that exceed the 'rate_limit_threshold' also exceed this 'ban_threshold'.

ConformAction string

Action to take for requests that are under the configured rate limit threshold. Valid option is "allow" only.

EnforceOnKey string

Determines the key to enforce the rate_limit_threshold 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 this field 'enforce_on_key' 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 "enforce_on_key_name". 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 "enforce_on_key_name". 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.

EnforceOnKeyName string

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. HTTP_COOKIE -- Name of the HTTP cookie whose value is taken as the key value.

ExceedAction string

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. Valid options are "deny(status)", where valid values for status are 403, 404, 429, and 502, and "redirect" where the redirect parameters come from exceedRedirectOptions below.

ExceedRedirectOptions SecurityPolicyRuleRedirectOptionsResponse

Parameters defining the redirect action that is used as the exceed action. Cannot be specified if the exceed action is not redirect.

RateLimitThreshold SecurityPolicyRuleRateLimitOptionsThresholdResponse

Threshold at which to begin ratelimiting.

banDurationSec Integer

Can 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.

banThreshold SecurityPolicyRuleRateLimitOptionsThresholdResponse

Can only be specified if the action for the rule is "rate_based_ban". If specified, the key will be banned for the configured 'ban_duration_sec' when the number of requests that exceed the 'rate_limit_threshold' also exceed this 'ban_threshold'.

conformAction String

Action to take for requests that are under the configured rate limit threshold. Valid option is "allow" only.

enforceOnKey String

Determines the key to enforce the rate_limit_threshold 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 this field 'enforce_on_key' 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 "enforce_on_key_name". 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 "enforce_on_key_name". 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.

enforceOnKeyName String

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. HTTP_COOKIE -- Name of the HTTP cookie whose value is taken as the key value.

exceedAction String

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. Valid options are "deny(status)", where valid values for status are 403, 404, 429, and 502, and "redirect" where the redirect parameters come from exceedRedirectOptions below.

exceedRedirectOptions SecurityPolicyRuleRedirectOptionsResponse

Parameters defining the redirect action that is used as the exceed action. Cannot be specified if the exceed action is not redirect.

rateLimitThreshold SecurityPolicyRuleRateLimitOptionsThresholdResponse

Threshold at which to begin ratelimiting.

banDurationSec number

Can 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.

banThreshold SecurityPolicyRuleRateLimitOptionsThresholdResponse

Can only be specified if the action for the rule is "rate_based_ban". If specified, the key will be banned for the configured 'ban_duration_sec' when the number of requests that exceed the 'rate_limit_threshold' also exceed this 'ban_threshold'.

conformAction string

Action to take for requests that are under the configured rate limit threshold. Valid option is "allow" only.

enforceOnKey string

Determines the key to enforce the rate_limit_threshold 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 this field 'enforce_on_key' 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 "enforce_on_key_name". 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 "enforce_on_key_name". 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.

enforceOnKeyName string

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. HTTP_COOKIE -- Name of the HTTP cookie whose value is taken as the key value.

exceedAction string

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. Valid options are "deny(status)", where valid values for status are 403, 404, 429, and 502, and "redirect" where the redirect parameters come from exceedRedirectOptions below.

exceedRedirectOptions SecurityPolicyRuleRedirectOptionsResponse

Parameters defining the redirect action that is used as the exceed action. Cannot be specified if the exceed action is not redirect.

rateLimitThreshold SecurityPolicyRuleRateLimitOptionsThresholdResponse

Threshold at which to begin ratelimiting.

ban_duration_sec int

Can 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.

ban_threshold SecurityPolicyRuleRateLimitOptionsThresholdResponse

Can only be specified if the action for the rule is "rate_based_ban". If specified, the key will be banned for the configured 'ban_duration_sec' when the number of requests that exceed the 'rate_limit_threshold' also exceed this 'ban_threshold'.

conform_action str

Action to take for requests that are under the configured rate limit threshold. Valid option is "allow" only.

enforce_on_key str

Determines the key to enforce the rate_limit_threshold 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 this field 'enforce_on_key' 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 "enforce_on_key_name". 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 "enforce_on_key_name". 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.

enforce_on_key_name str

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. HTTP_COOKIE -- Name of the HTTP cookie whose value is taken as the key value.

exceed_action str

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. Valid options are "deny(status)", where valid values for status are 403, 404, 429, and 502, and "redirect" where the redirect parameters come from exceedRedirectOptions below.

exceed_redirect_options SecurityPolicyRuleRedirectOptionsResponse

Parameters defining the redirect action that is used as the exceed action. Cannot be specified if the exceed action is not redirect.

rate_limit_threshold SecurityPolicyRuleRateLimitOptionsThresholdResponse

Threshold at which to begin ratelimiting.

banDurationSec Number

Can 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.

banThreshold Property Map

Can only be specified if the action for the rule is "rate_based_ban". If specified, the key will be banned for the configured 'ban_duration_sec' when the number of requests that exceed the 'rate_limit_threshold' also exceed this 'ban_threshold'.

conformAction String

Action to take for requests that are under the configured rate limit threshold. Valid option is "allow" only.

enforceOnKey String

Determines the key to enforce the rate_limit_threshold 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 this field 'enforce_on_key' 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 "enforce_on_key_name". 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 "enforce_on_key_name". 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.

enforceOnKeyName String

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. HTTP_COOKIE -- Name of the HTTP cookie whose value is taken as the key value.

exceedAction String

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. Valid options are "deny(status)", where valid values for status are 403, 404, 429, and 502, and "redirect" where the redirect parameters come from exceedRedirectOptions below.

exceedRedirectOptions Property Map

Parameters defining the redirect action that is used as the exceed action. Cannot be specified if the exceed action is not redirect.

rateLimitThreshold Property Map

Threshold at which to begin ratelimiting.

SecurityPolicyRuleRateLimitOptionsThresholdResponse

Count int

Number of HTTP(S) requests for calculating the threshold.

IntervalSec int

Interval over which the threshold is computed.

Count int

Number of HTTP(S) requests for calculating the threshold.

IntervalSec int

Interval over which the threshold is computed.

count Integer

Number of HTTP(S) requests for calculating the threshold.

intervalSec Integer

Interval over which the threshold is computed.

count number

Number of HTTP(S) requests for calculating the threshold.

intervalSec number

Interval over which the threshold is computed.

count int

Number of HTTP(S) requests for calculating the threshold.

interval_sec int

Interval over which the threshold is computed.

count Number

Number of HTTP(S) requests for calculating the threshold.

intervalSec Number

Interval over which the threshold is computed.

SecurityPolicyRuleRedirectOptionsResponse

Target string

Target for the redirect action. This is required if the type is EXTERNAL_302 and cannot be specified for GOOGLE_RECAPTCHA.

Type string

Type of the redirect action.

Target string

Target for the redirect action. This is required if the type is EXTERNAL_302 and cannot be specified for GOOGLE_RECAPTCHA.

Type string

Type of the redirect action.

target String

Target for the redirect action. This is required if the type is EXTERNAL_302 and cannot be specified for GOOGLE_RECAPTCHA.

type String

Type of the redirect action.

target string

Target for the redirect action. This is required if the type is EXTERNAL_302 and cannot be specified for GOOGLE_RECAPTCHA.

type string

Type of the redirect action.

target str

Target for the redirect action. This is required if the type is EXTERNAL_302 and cannot be specified for GOOGLE_RECAPTCHA.

type str

Type of the redirect action.

target String

Target for the redirect action. This is required if the type is EXTERNAL_302 and cannot be specified for GOOGLE_RECAPTCHA.

type String

Type of the redirect action.

SecurityPolicyRuleResponse

Action string

The Action to perform when the rule is matched. The following are the valid actions: - allow: allow access to target. - deny(): deny access to target, returns the HTTP response code specified (valid values are 403, 404, and 502). - rate_based_ban: limit client traffic to the configured threshold and ban the client if the traffic exceeds the threshold. Configure parameters for this action in RateLimitOptions. Requires rate_limit_options to be set. - redirect: redirect to a different target. This can either be an internal reCAPTCHA redirect, or an external URL-based redirect via a 302 response. Parameters for this action can be configured via redirectOptions. - throttle: limit client traffic to the configured threshold. Configure parameters for this action in rateLimitOptions. Requires rate_limit_options to be set for this.

Description string

An optional description of this resource. Provide this property when you create the resource.

HeaderAction Pulumi.GoogleNative.Compute.V1.Inputs.SecurityPolicyRuleHttpHeaderActionResponse

Optional, additional actions that are performed on headers.

Kind string

[Output only] Type of the resource. Always compute#securityPolicyRule for security policy rules

Match Pulumi.GoogleNative.Compute.V1.Inputs.SecurityPolicyRuleMatcherResponse

A match condition that incoming traffic is evaluated against. If it evaluates to true, the corresponding 'action' is enforced.

Preview bool

If set to true, the specified action is not enforced.

Priority int

An integer indicating the priority of a rule in the list. The priority must be a positive value between 0 and 2147483647. Rules are evaluated from highest to lowest priority where 0 is the highest priority and 2147483647 is the lowest priority.

RateLimitOptions Pulumi.GoogleNative.Compute.V1.Inputs.SecurityPolicyRuleRateLimitOptionsResponse

Must be specified if the action is "rate_based_ban" or "throttle". Cannot be specified for any other actions.

RedirectOptions Pulumi.GoogleNative.Compute.V1.Inputs.SecurityPolicyRuleRedirectOptionsResponse

Parameters defining the redirect action. Cannot be specified for any other actions.

Action string

The Action to perform when the rule is matched. The following are the valid actions: - allow: allow access to target. - deny(): deny access to target, returns the HTTP response code specified (valid values are 403, 404, and 502). - rate_based_ban: limit client traffic to the configured threshold and ban the client if the traffic exceeds the threshold. Configure parameters for this action in RateLimitOptions. Requires rate_limit_options to be set. - redirect: redirect to a different target. This can either be an internal reCAPTCHA redirect, or an external URL-based redirect via a 302 response. Parameters for this action can be configured via redirectOptions. - throttle: limit client traffic to the configured threshold. Configure parameters for this action in rateLimitOptions. Requires rate_limit_options to be set for this.

Description string

An optional description of this resource. Provide this property when you create the resource.

HeaderAction SecurityPolicyRuleHttpHeaderActionResponse

Optional, additional actions that are performed on headers.

Kind string

[Output only] Type of the resource. Always compute#securityPolicyRule for security policy rules

Match SecurityPolicyRuleMatcherResponse

A match condition that incoming traffic is evaluated against. If it evaluates to true, the corresponding 'action' is enforced.

Preview bool

If set to true, the specified action is not enforced.

Priority int

An integer indicating the priority of a rule in the list. The priority must be a positive value between 0 and 2147483647. Rules are evaluated from highest to lowest priority where 0 is the highest priority and 2147483647 is the lowest priority.

RateLimitOptions SecurityPolicyRuleRateLimitOptionsResponse

Must be specified if the action is "rate_based_ban" or "throttle". Cannot be specified for any other actions.

RedirectOptions SecurityPolicyRuleRedirectOptionsResponse

Parameters defining the redirect action. Cannot be specified for any other actions.

action String

The Action to perform when the rule is matched. The following are the valid actions: - allow: allow access to target. - deny(): deny access to target, returns the HTTP response code specified (valid values are 403, 404, and 502). - rate_based_ban: limit client traffic to the configured threshold and ban the client if the traffic exceeds the threshold. Configure parameters for this action in RateLimitOptions. Requires rate_limit_options to be set. - redirect: redirect to a different target. This can either be an internal reCAPTCHA redirect, or an external URL-based redirect via a 302 response. Parameters for this action can be configured via redirectOptions. - throttle: limit client traffic to the configured threshold. Configure parameters for this action in rateLimitOptions. Requires rate_limit_options to be set for this.

description String

An optional description of this resource. Provide this property when you create the resource.

headerAction SecurityPolicyRuleHttpHeaderActionResponse

Optional, additional actions that are performed on headers.

kind String

[Output only] Type of the resource. Always compute#securityPolicyRule for security policy rules

match SecurityPolicyRuleMatcherResponse

A match condition that incoming traffic is evaluated against. If it evaluates to true, the corresponding 'action' is enforced.

preview Boolean

If set to true, the specified action is not enforced.

priority Integer

An integer indicating the priority of a rule in the list. The priority must be a positive value between 0 and 2147483647. Rules are evaluated from highest to lowest priority where 0 is the highest priority and 2147483647 is the lowest priority.

rateLimitOptions SecurityPolicyRuleRateLimitOptionsResponse

Must be specified if the action is "rate_based_ban" or "throttle". Cannot be specified for any other actions.

redirectOptions SecurityPolicyRuleRedirectOptionsResponse

Parameters defining the redirect action. Cannot be specified for any other actions.

action string

The Action to perform when the rule is matched. The following are the valid actions: - allow: allow access to target. - deny(): deny access to target, returns the HTTP response code specified (valid values are 403, 404, and 502). - rate_based_ban: limit client traffic to the configured threshold and ban the client if the traffic exceeds the threshold. Configure parameters for this action in RateLimitOptions. Requires rate_limit_options to be set. - redirect: redirect to a different target. This can either be an internal reCAPTCHA redirect, or an external URL-based redirect via a 302 response. Parameters for this action can be configured via redirectOptions. - throttle: limit client traffic to the configured threshold. Configure parameters for this action in rateLimitOptions. Requires rate_limit_options to be set for this.

description string

An optional description of this resource. Provide this property when you create the resource.

headerAction SecurityPolicyRuleHttpHeaderActionResponse

Optional, additional actions that are performed on headers.

kind string

[Output only] Type of the resource. Always compute#securityPolicyRule for security policy rules

match SecurityPolicyRuleMatcherResponse

A match condition that incoming traffic is evaluated against. If it evaluates to true, the corresponding 'action' is enforced.

preview boolean

If set to true, the specified action is not enforced.

priority number

An integer indicating the priority of a rule in the list. The priority must be a positive value between 0 and 2147483647. Rules are evaluated from highest to lowest priority where 0 is the highest priority and 2147483647 is the lowest priority.

rateLimitOptions SecurityPolicyRuleRateLimitOptionsResponse

Must be specified if the action is "rate_based_ban" or "throttle". Cannot be specified for any other actions.

redirectOptions SecurityPolicyRuleRedirectOptionsResponse

Parameters defining the redirect action. Cannot be specified for any other actions.

action str

The Action to perform when the rule is matched. The following are the valid actions: - allow: allow access to target. - deny(): deny access to target, returns the HTTP response code specified (valid values are 403, 404, and 502). - rate_based_ban: limit client traffic to the configured threshold and ban the client if the traffic exceeds the threshold. Configure parameters for this action in RateLimitOptions. Requires rate_limit_options to be set. - redirect: redirect to a different target. This can either be an internal reCAPTCHA redirect, or an external URL-based redirect via a 302 response. Parameters for this action can be configured via redirectOptions. - throttle: limit client traffic to the configured threshold. Configure parameters for this action in rateLimitOptions. Requires rate_limit_options to be set for this.

description str

An optional description of this resource. Provide this property when you create the resource.

header_action SecurityPolicyRuleHttpHeaderActionResponse

Optional, additional actions that are performed on headers.

kind str

[Output only] Type of the resource. Always compute#securityPolicyRule for security policy rules

match SecurityPolicyRuleMatcherResponse

A match condition that incoming traffic is evaluated against. If it evaluates to true, the corresponding 'action' is enforced.

preview bool

If set to true, the specified action is not enforced.

priority int

An integer indicating the priority of a rule in the list. The priority must be a positive value between 0 and 2147483647. Rules are evaluated from highest to lowest priority where 0 is the highest priority and 2147483647 is the lowest priority.

rate_limit_options SecurityPolicyRuleRateLimitOptionsResponse

Must be specified if the action is "rate_based_ban" or "throttle". Cannot be specified for any other actions.

redirect_options SecurityPolicyRuleRedirectOptionsResponse

Parameters defining the redirect action. Cannot be specified for any other actions.

action String

The Action to perform when the rule is matched. The following are the valid actions: - allow: allow access to target. - deny(): deny access to target, returns the HTTP response code specified (valid values are 403, 404, and 502). - rate_based_ban: limit client traffic to the configured threshold and ban the client if the traffic exceeds the threshold. Configure parameters for this action in RateLimitOptions. Requires rate_limit_options to be set. - redirect: redirect to a different target. This can either be an internal reCAPTCHA redirect, or an external URL-based redirect via a 302 response. Parameters for this action can be configured via redirectOptions. - throttle: limit client traffic to the configured threshold. Configure parameters for this action in rateLimitOptions. Requires rate_limit_options to be set for this.

description String

An optional description of this resource. Provide this property when you create the resource.

headerAction Property Map

Optional, additional actions that are performed on headers.

kind String

[Output only] Type of the resource. Always compute#securityPolicyRule for security policy rules

match Property Map

A match condition that incoming traffic is evaluated against. If it evaluates to true, the corresponding 'action' is enforced.

preview Boolean

If set to true, the specified action is not enforced.

priority Number

An integer indicating the priority of a rule in the list. The priority must be a positive value between 0 and 2147483647. Rules are evaluated from highest to lowest priority where 0 is the highest priority and 2147483647 is the lowest priority.

rateLimitOptions Property Map

Must be specified if the action is "rate_based_ban" or "throttle". Cannot be specified for any other actions.

redirectOptions Property Map

Parameters defining the redirect action. Cannot be specified for any other actions.

Package Details

Repository
https://github.com/pulumi/pulumi-google-native
License
Apache-2.0