1. Packages
  2. Google Cloud Native
  3. API Docs
  4. compute
  5. compute/alpha
  6. getRegionSecurityPolicy

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

google-native.compute/alpha.getRegionSecurityPolicy

Explore with Pulumi AI

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

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>
Copy
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]
Copy
func LookupRegionSecurityPolicy(ctx *Context, args *LookupRegionSecurityPolicyArgs, opts ...InvokeOption) (*LookupRegionSecurityPolicyResult, error)
func LookupRegionSecurityPolicyOutput(ctx *Context, args *LookupRegionSecurityPolicyOutputArgs, opts ...InvokeOption) LookupRegionSecurityPolicyResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetRegionSecurityPolicyResult> getRegionSecurityPolicy(GetRegionSecurityPolicyArgs args, InvokeOptions options)
public static Output<GetRegionSecurityPolicyResult> getRegionSecurityPolicy(GetRegionSecurityPolicyArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: google-native:compute/alpha:getRegionSecurityPolicy
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Region This property is required. string
SecurityPolicy This property is required. string
Project string
Region This property is required. string
SecurityPolicy This property is required. string
Project string
region This property is required. String
securityPolicy This property is required. String
project String
region This property is required. string
securityPolicy This property is required. string
project string
region This property is required. str
security_policy This property is required. str
project str
region This property is required. String
securityPolicy This property is required. String
project String

getRegionSecurityPolicy Result

The following output properties are available:

AdaptiveProtectionConfig Pulumi.GoogleNative.Compute.Alpha.Outputs.SecurityPolicyAdaptiveProtectionConfigResponse
AdvancedOptionsConfig Pulumi.GoogleNative.Compute.Alpha.Outputs.SecurityPolicyAdvancedOptionsConfigResponse
Associations List<Pulumi.GoogleNative.Compute.Alpha.Outputs.SecurityPolicyAssociationResponse>
A list of associations that belong to this policy.
CloudArmorConfig Pulumi.GoogleNative.Compute.Alpha.Outputs.SecurityPolicyCloudArmorConfigResponse
CreationTimestamp string
Creation timestamp in RFC3339 text format.
DdosProtectionConfig Pulumi.GoogleNative.Compute.Alpha.Outputs.SecurityPolicyDdosProtectionConfigResponse
Description string
An optional description of this resource. Provide this property when you create the resource.
DisplayName string
User-provided name of the Organization security plicy. The name should be unique in the organization in which the security policy is created. This should only be used when SecurityPolicyType is FIREWALL. The name must be 1-63 characters long, and comply with https://www.ietf.org/rfc/rfc1035.txt. 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.
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
LabelFingerprint string
A fingerprint for the labels being applied to this security policy, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels. To see the latest fingerprint, make get() request to the security policy.
Labels Dictionary<string, string>
Labels for this resource. These can only be added or modified by the setLabels method. Each label key/value pair must comply with RFC1035. Label values may be empty.
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.
Parent string
The parent of the security policy.
RecaptchaOptionsConfig Pulumi.GoogleNative.Compute.Alpha.Outputs.SecurityPolicyRecaptchaOptionsConfigResponse
Region string
URL of the region where the regional security policy resides. This field is not applicable to global security policies.
RuleTupleCount int
Total count of all security policy rule tuples. A security policy can not exceed a set number of tuples.
Rules List<Pulumi.GoogleNative.Compute.Alpha.Outputs.SecurityPolicyRuleResponse>
A list of rules that belong to this policy. There must always be a default rule which is a rule with priority 2147483647 and match all condition (for the match condition this means match "" for srcIpRanges and for the networkMatch condition every field must be either match "" or not set). 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.
SelfLinkWithId string
Server-defined URL for this resource with the resource id.
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. - CLOUD_ARMOR_NETWORK: Cloud Armor network policies can be configured to filter packets targeting network load balancing resources such as backend services, target pools, target instances, and instances with external IPs. They filter requests before the request is served from the application. This field can be set only at resource creation time.
UserDefinedFields List<Pulumi.GoogleNative.Compute.Alpha.Outputs.SecurityPolicyUserDefinedFieldResponse>
Definitions of user-defined fields for CLOUD_ARMOR_NETWORK policies. A user-defined field consists of up to 4 bytes extracted from a fixed offset in the packet, relative to the IPv4, IPv6, TCP, or UDP header, with an optional mask to select certain bits. Rules may then specify matching values for these fields. Example: userDefinedFields: - name: "ipv4_fragment_offset" base: IPV4 offset: 6 size: 2 mask: "0x1fff"
AdaptiveProtectionConfig SecurityPolicyAdaptiveProtectionConfigResponse
AdvancedOptionsConfig SecurityPolicyAdvancedOptionsConfigResponse
Associations []SecurityPolicyAssociationResponse
A list of associations that belong to this policy.
CloudArmorConfig SecurityPolicyCloudArmorConfigResponse
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.
DisplayName string
User-provided name of the Organization security plicy. The name should be unique in the organization in which the security policy is created. This should only be used when SecurityPolicyType is FIREWALL. The name must be 1-63 characters long, and comply with https://www.ietf.org/rfc/rfc1035.txt. 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.
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
LabelFingerprint string
A fingerprint for the labels being applied to this security policy, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels. To see the latest fingerprint, make get() request to the security policy.
Labels map[string]string
Labels for this resource. These can only be added or modified by the setLabels method. Each label key/value pair must comply with RFC1035. Label values may be empty.
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.
Parent string
The parent of the security policy.
RecaptchaOptionsConfig SecurityPolicyRecaptchaOptionsConfigResponse
Region string
URL of the region where the regional security policy resides. This field is not applicable to global security policies.
RuleTupleCount int
Total count of all security policy rule tuples. A security policy can not exceed a set number of tuples.
Rules []SecurityPolicyRuleResponse
A list of rules that belong to this policy. There must always be a default rule which is a rule with priority 2147483647 and match all condition (for the match condition this means match "" for srcIpRanges and for the networkMatch condition every field must be either match "" or not set). 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.
SelfLinkWithId string
Server-defined URL for this resource with the resource id.
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. - CLOUD_ARMOR_NETWORK: Cloud Armor network policies can be configured to filter packets targeting network load balancing resources such as backend services, target pools, target instances, and instances with external IPs. They filter requests before the request is served from the application. This field can be set only at resource creation time.
UserDefinedFields []SecurityPolicyUserDefinedFieldResponse
Definitions of user-defined fields for CLOUD_ARMOR_NETWORK policies. A user-defined field consists of up to 4 bytes extracted from a fixed offset in the packet, relative to the IPv4, IPv6, TCP, or UDP header, with an optional mask to select certain bits. Rules may then specify matching values for these fields. Example: userDefinedFields: - name: "ipv4_fragment_offset" base: IPV4 offset: 6 size: 2 mask: "0x1fff"
adaptiveProtectionConfig SecurityPolicyAdaptiveProtectionConfigResponse
advancedOptionsConfig SecurityPolicyAdvancedOptionsConfigResponse
associations List<SecurityPolicyAssociationResponse>
A list of associations that belong to this policy.
cloudArmorConfig SecurityPolicyCloudArmorConfigResponse
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.
displayName String
User-provided name of the Organization security plicy. The name should be unique in the organization in which the security policy is created. This should only be used when SecurityPolicyType is FIREWALL. The name must be 1-63 characters long, and comply with https://www.ietf.org/rfc/rfc1035.txt. 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.
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
labelFingerprint String
A fingerprint for the labels being applied to this security policy, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels. To see the latest fingerprint, make get() request to the security policy.
labels Map<String,String>
Labels for this resource. These can only be added or modified by the setLabels method. Each label key/value pair must comply with RFC1035. Label values may be empty.
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.
parent String
The parent of the security policy.
recaptchaOptionsConfig SecurityPolicyRecaptchaOptionsConfigResponse
region String
URL of the region where the regional security policy resides. This field is not applicable to global security policies.
ruleTupleCount Integer
Total count of all security policy rule tuples. A security policy can not exceed a set number of tuples.
rules List<SecurityPolicyRuleResponse>
A list of rules that belong to this policy. There must always be a default rule which is a rule with priority 2147483647 and match all condition (for the match condition this means match "" for srcIpRanges and for the networkMatch condition every field must be either match "" or not set). 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.
selfLinkWithId String
Server-defined URL for this resource with the resource id.
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. - CLOUD_ARMOR_NETWORK: Cloud Armor network policies can be configured to filter packets targeting network load balancing resources such as backend services, target pools, target instances, and instances with external IPs. They filter requests before the request is served from the application. This field can be set only at resource creation time.
userDefinedFields List<SecurityPolicyUserDefinedFieldResponse>
Definitions of user-defined fields for CLOUD_ARMOR_NETWORK policies. A user-defined field consists of up to 4 bytes extracted from a fixed offset in the packet, relative to the IPv4, IPv6, TCP, or UDP header, with an optional mask to select certain bits. Rules may then specify matching values for these fields. Example: userDefinedFields: - name: "ipv4_fragment_offset" base: IPV4 offset: 6 size: 2 mask: "0x1fff"
adaptiveProtectionConfig SecurityPolicyAdaptiveProtectionConfigResponse
advancedOptionsConfig SecurityPolicyAdvancedOptionsConfigResponse
associations SecurityPolicyAssociationResponse[]
A list of associations that belong to this policy.
cloudArmorConfig SecurityPolicyCloudArmorConfigResponse
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.
displayName string
User-provided name of the Organization security plicy. The name should be unique in the organization in which the security policy is created. This should only be used when SecurityPolicyType is FIREWALL. The name must be 1-63 characters long, and comply with https://www.ietf.org/rfc/rfc1035.txt. 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.
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
labelFingerprint string
A fingerprint for the labels being applied to this security policy, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels. To see the latest fingerprint, make get() request to the security policy.
labels {[key: string]: string}
Labels for this resource. These can only be added or modified by the setLabels method. Each label key/value pair must comply with RFC1035. Label values may be empty.
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.
parent string
The parent of the security policy.
recaptchaOptionsConfig SecurityPolicyRecaptchaOptionsConfigResponse
region string
URL of the region where the regional security policy resides. This field is not applicable to global security policies.
ruleTupleCount number
Total count of all security policy rule tuples. A security policy can not exceed a set number of tuples.
rules SecurityPolicyRuleResponse[]
A list of rules that belong to this policy. There must always be a default rule which is a rule with priority 2147483647 and match all condition (for the match condition this means match "" for srcIpRanges and for the networkMatch condition every field must be either match "" or not set). 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.
selfLinkWithId string
Server-defined URL for this resource with the resource id.
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. - CLOUD_ARMOR_NETWORK: Cloud Armor network policies can be configured to filter packets targeting network load balancing resources such as backend services, target pools, target instances, and instances with external IPs. They filter requests before the request is served from the application. This field can be set only at resource creation time.
userDefinedFields SecurityPolicyUserDefinedFieldResponse[]
Definitions of user-defined fields for CLOUD_ARMOR_NETWORK policies. A user-defined field consists of up to 4 bytes extracted from a fixed offset in the packet, relative to the IPv4, IPv6, TCP, or UDP header, with an optional mask to select certain bits. Rules may then specify matching values for these fields. Example: userDefinedFields: - name: "ipv4_fragment_offset" base: IPV4 offset: 6 size: 2 mask: "0x1fff"
adaptive_protection_config SecurityPolicyAdaptiveProtectionConfigResponse
advanced_options_config SecurityPolicyAdvancedOptionsConfigResponse
associations Sequence[SecurityPolicyAssociationResponse]
A list of associations that belong to this policy.
cloud_armor_config SecurityPolicyCloudArmorConfigResponse
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.
display_name str
User-provided name of the Organization security plicy. The name should be unique in the organization in which the security policy is created. This should only be used when SecurityPolicyType is FIREWALL. The name must be 1-63 characters long, and comply with https://www.ietf.org/rfc/rfc1035.txt. 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.
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
label_fingerprint str
A fingerprint for the labels being applied to this security policy, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels. To see the latest fingerprint, make get() request to the security policy.
labels Mapping[str, str]
Labels for this resource. These can only be added or modified by the setLabels method. Each label key/value pair must comply with RFC1035. Label values may be empty.
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.
parent str
The parent of the security policy.
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.
rule_tuple_count int
Total count of all security policy rule tuples. A security policy can not exceed a set number of tuples.
rules Sequence[SecurityPolicyRuleResponse]
A list of rules that belong to this policy. There must always be a default rule which is a rule with priority 2147483647 and match all condition (for the match condition this means match "" for srcIpRanges and for the networkMatch condition every field must be either match "" or not set). 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.
self_link_with_id str
Server-defined URL for this resource with the resource id.
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. - CLOUD_ARMOR_NETWORK: Cloud Armor network policies can be configured to filter packets targeting network load balancing resources such as backend services, target pools, target instances, and instances with external IPs. They filter requests before the request is served from the application. This field can be set only at resource creation time.
user_defined_fields Sequence[SecurityPolicyUserDefinedFieldResponse]
Definitions of user-defined fields for CLOUD_ARMOR_NETWORK policies. A user-defined field consists of up to 4 bytes extracted from a fixed offset in the packet, relative to the IPv4, IPv6, TCP, or UDP header, with an optional mask to select certain bits. Rules may then specify matching values for these fields. Example: userDefinedFields: - name: "ipv4_fragment_offset" base: IPV4 offset: 6 size: 2 mask: "0x1fff"
adaptiveProtectionConfig Property Map
advancedOptionsConfig Property Map
associations List<Property Map>
A list of associations that belong to this policy.
cloudArmorConfig 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.
displayName String
User-provided name of the Organization security plicy. The name should be unique in the organization in which the security policy is created. This should only be used when SecurityPolicyType is FIREWALL. The name must be 1-63 characters long, and comply with https://www.ietf.org/rfc/rfc1035.txt. 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.
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
labelFingerprint String
A fingerprint for the labels being applied to this security policy, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels. To see the latest fingerprint, make get() request to the security policy.
labels Map<String>
Labels for this resource. These can only be added or modified by the setLabels method. Each label key/value pair must comply with RFC1035. Label values may be empty.
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.
parent String
The parent of the security policy.
recaptchaOptionsConfig Property Map
region String
URL of the region where the regional security policy resides. This field is not applicable to global security policies.
ruleTupleCount Number
Total count of all security policy rule tuples. A security policy can not exceed a set number of tuples.
rules List<Property Map>
A list of rules that belong to this policy. There must always be a default rule which is a rule with priority 2147483647 and match all condition (for the match condition this means match "" for srcIpRanges and for the networkMatch condition every field must be either match "" or not set). 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.
selfLinkWithId String
Server-defined URL for this resource with the resource id.
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. - CLOUD_ARMOR_NETWORK: Cloud Armor network policies can be configured to filter packets targeting network load balancing resources such as backend services, target pools, target instances, and instances with external IPs. They filter requests before the request is served from the application. This field can be set only at resource creation time.
userDefinedFields List<Property Map>
Definitions of user-defined fields for CLOUD_ARMOR_NETWORK policies. A user-defined field consists of up to 4 bytes extracted from a fixed offset in the packet, relative to the IPv4, IPv6, TCP, or UDP header, with an optional mask to select certain bits. Rules may then specify matching values for these fields. Example: userDefinedFields: - name: "ipv4_fragment_offset" base: IPV4 offset: 6 size: 2 mask: "0x1fff"

Supporting Types

ExprResponse

Description This property is required. 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 This property is required. string
Textual representation of an expression in Common Expression Language syntax.
Location This property is required. string
Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
Title This property is required. 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 This property is required. 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 This property is required. string
Textual representation of an expression in Common Expression Language syntax.
Location This property is required. string
Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
Title This property is required. 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 This property is required. 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 This property is required. String
Textual representation of an expression in Common Expression Language syntax.
location This property is required. String
Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
title This property is required. 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 This property is required. 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 This property is required. string
Textual representation of an expression in Common Expression Language syntax.
location This property is required. string
Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
title This property is required. 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 This property is required. 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 This property is required. str
Textual representation of an expression in Common Expression Language syntax.
location This property is required. str
Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
title This property is required. 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 This property is required. 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 This property is required. String
Textual representation of an expression in Common Expression Language syntax.
location This property is required. String
Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
title This property is required. 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.

SecurityPolicyAdaptiveProtectionConfigAutoDeployConfigResponse

ConfidenceThreshold This property is required. double
ExpirationSec This property is required. int
ImpactedBaselineThreshold This property is required. double
LoadThreshold This property is required. double
ConfidenceThreshold This property is required. float64
ExpirationSec This property is required. int
ImpactedBaselineThreshold This property is required. float64
LoadThreshold This property is required. float64
confidenceThreshold This property is required. Double
expirationSec This property is required. Integer
impactedBaselineThreshold This property is required. Double
loadThreshold This property is required. Double
confidenceThreshold This property is required. number
expirationSec This property is required. number
impactedBaselineThreshold This property is required. number
loadThreshold This property is required. number
confidence_threshold This property is required. float
expiration_sec This property is required. int
impacted_baseline_threshold This property is required. float
load_threshold This property is required. float
confidenceThreshold This property is required. Number
expirationSec This property is required. Number
impactedBaselineThreshold This property is required. Number
loadThreshold This property is required. Number

SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigResponse

Enable This property is required. bool
If set to true, enables CAAP for L7 DDoS detection. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
RuleVisibility This property is required. string
Rule visibility can be one of the following: STANDARD - opaque rules. (default) PREMIUM - transparent rules. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
ThresholdConfigs This property is required. List<Pulumi.GoogleNative.Compute.Alpha.Inputs.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigResponse>
Configuration options for layer7 adaptive protection for various customizable thresholds.
Enable This property is required. bool
If set to true, enables CAAP for L7 DDoS detection. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
RuleVisibility This property is required. string
Rule visibility can be one of the following: STANDARD - opaque rules. (default) PREMIUM - transparent rules. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
ThresholdConfigs This property is required. []SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigResponse
Configuration options for layer7 adaptive protection for various customizable thresholds.
enable This property is required. Boolean
If set to true, enables CAAP for L7 DDoS detection. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
ruleVisibility This property is required. String
Rule visibility can be one of the following: STANDARD - opaque rules. (default) PREMIUM - transparent rules. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
thresholdConfigs This property is required. List<SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigResponse>
Configuration options for layer7 adaptive protection for various customizable thresholds.
enable This property is required. boolean
If set to true, enables CAAP for L7 DDoS detection. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
ruleVisibility This property is required. string
Rule visibility can be one of the following: STANDARD - opaque rules. (default) PREMIUM - transparent rules. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
thresholdConfigs This property is required. SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigResponse[]
Configuration options for layer7 adaptive protection for various customizable thresholds.
enable This property is required. bool
If set to true, enables CAAP for L7 DDoS detection. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
rule_visibility This property is required. str
Rule visibility can be one of the following: STANDARD - opaque rules. (default) PREMIUM - transparent rules. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
threshold_configs This property is required. Sequence[SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigResponse]
Configuration options for layer7 adaptive protection for various customizable thresholds.
enable This property is required. Boolean
If set to true, enables CAAP for L7 DDoS detection. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
ruleVisibility This property is required. String
Rule visibility can be one of the following: STANDARD - opaque rules. (default) PREMIUM - transparent rules. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
thresholdConfigs This property is required. List<Property Map>
Configuration options for layer7 adaptive protection for various customizable thresholds.

SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigResponse

AutoDeployConfidenceThreshold This property is required. double
AutoDeployExpirationSec This property is required. int
AutoDeployImpactedBaselineThreshold This property is required. double
AutoDeployLoadThreshold This property is required. double
Name This property is required. string
The name must be 1-63 characters long, and comply with RFC1035. The name must be unique within the security policy.
AutoDeployConfidenceThreshold This property is required. float64
AutoDeployExpirationSec This property is required. int
AutoDeployImpactedBaselineThreshold This property is required. float64
AutoDeployLoadThreshold This property is required. float64
Name This property is required. string
The name must be 1-63 characters long, and comply with RFC1035. The name must be unique within the security policy.
autoDeployConfidenceThreshold This property is required. Double
autoDeployExpirationSec This property is required. Integer
autoDeployImpactedBaselineThreshold This property is required. Double
autoDeployLoadThreshold This property is required. Double
name This property is required. String
The name must be 1-63 characters long, and comply with RFC1035. The name must be unique within the security policy.
autoDeployConfidenceThreshold This property is required. number
autoDeployExpirationSec This property is required. number
autoDeployImpactedBaselineThreshold This property is required. number
autoDeployLoadThreshold This property is required. number
name This property is required. string
The name must be 1-63 characters long, and comply with RFC1035. The name must be unique within the security policy.
auto_deploy_confidence_threshold This property is required. float
auto_deploy_expiration_sec This property is required. int
auto_deploy_impacted_baseline_threshold This property is required. float
auto_deploy_load_threshold This property is required. float
name This property is required. str
The name must be 1-63 characters long, and comply with RFC1035. The name must be unique within the security policy.
autoDeployConfidenceThreshold This property is required. Number
autoDeployExpirationSec This property is required. Number
autoDeployImpactedBaselineThreshold This property is required. Number
autoDeployLoadThreshold This property is required. Number
name This property is required. String
The name must be 1-63 characters long, and comply with RFC1035. The name must be unique within the security policy.

SecurityPolicyAdaptiveProtectionConfigResponse

autoDeployConfig This property is required. Property Map
layer7DdosDefenseConfig This property is required. Property Map
If set to true, enables Cloud Armor Machine Learning.

SecurityPolicyAdvancedOptionsConfigJsonCustomConfigResponse

ContentTypes This property is required. List<string>
A list of custom Content-Type header values to apply the JSON parsing. As per RFC 1341, a Content-Type header value has the following format: Content-Type := type "/" subtype *[";" parameter] When configuring a custom Content-Type header value, only the type/subtype needs to be specified, and the parameters should be excluded.
ContentTypes This property is required. []string
A list of custom Content-Type header values to apply the JSON parsing. As per RFC 1341, a Content-Type header value has the following format: Content-Type := type "/" subtype *[";" parameter] When configuring a custom Content-Type header value, only the type/subtype needs to be specified, and the parameters should be excluded.
contentTypes This property is required. List<String>
A list of custom Content-Type header values to apply the JSON parsing. As per RFC 1341, a Content-Type header value has the following format: Content-Type := type "/" subtype *[";" parameter] When configuring a custom Content-Type header value, only the type/subtype needs to be specified, and the parameters should be excluded.
contentTypes This property is required. string[]
A list of custom Content-Type header values to apply the JSON parsing. As per RFC 1341, a Content-Type header value has the following format: Content-Type := type "/" subtype *[";" parameter] When configuring a custom Content-Type header value, only the type/subtype needs to be specified, and the parameters should be excluded.
content_types This property is required. Sequence[str]
A list of custom Content-Type header values to apply the JSON parsing. As per RFC 1341, a Content-Type header value has the following format: Content-Type := type "/" subtype *[";" parameter] When configuring a custom Content-Type header value, only the type/subtype needs to be specified, and the parameters should be excluded.
contentTypes This property is required. List<String>
A list of custom Content-Type header values to apply the JSON parsing. As per RFC 1341, a Content-Type header value has the following format: Content-Type := type "/" subtype *[";" parameter] When configuring a custom Content-Type header value, only the type/subtype needs to be specified, and the parameters should be excluded.

SecurityPolicyAdvancedOptionsConfigResponse

JsonCustomConfig This property is required. Pulumi.GoogleNative.Compute.Alpha.Inputs.SecurityPolicyAdvancedOptionsConfigJsonCustomConfigResponse
Custom configuration to apply the JSON parsing. Only applicable when json_parsing is set to STANDARD.
JsonParsing This property is required. string
LogLevel This property is required. string
UserIpRequestHeaders This property is required. List<string>
An optional list of case-insensitive request header names to use for resolving the callers client IP address.
JsonCustomConfig This property is required. SecurityPolicyAdvancedOptionsConfigJsonCustomConfigResponse
Custom configuration to apply the JSON parsing. Only applicable when json_parsing is set to STANDARD.
JsonParsing This property is required. string
LogLevel This property is required. string
UserIpRequestHeaders This property is required. []string
An optional list of case-insensitive request header names to use for resolving the callers client IP address.
jsonCustomConfig This property is required. SecurityPolicyAdvancedOptionsConfigJsonCustomConfigResponse
Custom configuration to apply the JSON parsing. Only applicable when json_parsing is set to STANDARD.
jsonParsing This property is required. String
logLevel This property is required. String
userIpRequestHeaders This property is required. List<String>
An optional list of case-insensitive request header names to use for resolving the callers client IP address.
jsonCustomConfig This property is required. SecurityPolicyAdvancedOptionsConfigJsonCustomConfigResponse
Custom configuration to apply the JSON parsing. Only applicable when json_parsing is set to STANDARD.
jsonParsing This property is required. string
logLevel This property is required. string
userIpRequestHeaders This property is required. string[]
An optional list of case-insensitive request header names to use for resolving the callers client IP address.
json_custom_config This property is required. SecurityPolicyAdvancedOptionsConfigJsonCustomConfigResponse
Custom configuration to apply the JSON parsing. Only applicable when json_parsing is set to STANDARD.
json_parsing This property is required. str
log_level This property is required. str
user_ip_request_headers This property is required. Sequence[str]
An optional list of case-insensitive request header names to use for resolving the callers client IP address.
jsonCustomConfig This property is required. Property Map
Custom configuration to apply the JSON parsing. Only applicable when json_parsing is set to STANDARD.
jsonParsing This property is required. String
logLevel This property is required. String
userIpRequestHeaders This property is required. List<String>
An optional list of case-insensitive request header names to use for resolving the callers client IP address.

SecurityPolicyAssociationResponse

AttachmentId This property is required. string
The resource that the security policy is attached to.
DisplayName This property is required. string
The display name of the security policy of the association.
Name This property is required. string
The name for an association.
SecurityPolicyId This property is required. string
The security policy ID of the association.
AttachmentId This property is required. string
The resource that the security policy is attached to.
DisplayName This property is required. string
The display name of the security policy of the association.
Name This property is required. string
The name for an association.
SecurityPolicyId This property is required. string
The security policy ID of the association.
attachmentId This property is required. String
The resource that the security policy is attached to.
displayName This property is required. String
The display name of the security policy of the association.
name This property is required. String
The name for an association.
securityPolicyId This property is required. String
The security policy ID of the association.
attachmentId This property is required. string
The resource that the security policy is attached to.
displayName This property is required. string
The display name of the security policy of the association.
name This property is required. string
The name for an association.
securityPolicyId This property is required. string
The security policy ID of the association.
attachment_id This property is required. str
The resource that the security policy is attached to.
display_name This property is required. str
The display name of the security policy of the association.
name This property is required. str
The name for an association.
security_policy_id This property is required. str
The security policy ID of the association.
attachmentId This property is required. String
The resource that the security policy is attached to.
displayName This property is required. String
The display name of the security policy of the association.
name This property is required. String
The name for an association.
securityPolicyId This property is required. String
The security policy ID of the association.

SecurityPolicyCloudArmorConfigResponse

EnableMl This property is required. bool
If set to true, enables Cloud Armor Machine Learning.
EnableMl This property is required. bool
If set to true, enables Cloud Armor Machine Learning.
enableMl This property is required. Boolean
If set to true, enables Cloud Armor Machine Learning.
enableMl This property is required. boolean
If set to true, enables Cloud Armor Machine Learning.
enable_ml This property is required. bool
If set to true, enables Cloud Armor Machine Learning.
enableMl This property is required. Boolean
If set to true, enables Cloud Armor Machine Learning.

SecurityPolicyDdosProtectionConfigResponse

DdosProtection This property is required. string
DdosProtection This property is required. string
ddosProtection This property is required. String
ddosProtection This property is required. string
ddos_protection This property is required. str
ddosProtection This property is required. String

SecurityPolicyRecaptchaOptionsConfigResponse

RedirectSiteKey This property is required. 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. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
RedirectSiteKey This property is required. 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. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
redirectSiteKey This property is required. 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. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
redirectSiteKey This property is required. 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. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
redirect_site_key This property is required. 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. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
redirectSiteKey This property is required. 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. This field is only supported in Global Security Policies of type CLOUD_ARMOR.

SecurityPolicyRuleHttpHeaderActionHttpHeaderOptionResponse

HeaderName This property is required. string
The name of the header to set.
HeaderValue This property is required. string
The value to set the named header to.
HeaderName This property is required. string
The name of the header to set.
HeaderValue This property is required. string
The value to set the named header to.
headerName This property is required. String
The name of the header to set.
headerValue This property is required. String
The value to set the named header to.
headerName This property is required. string
The name of the header to set.
headerValue This property is required. string
The value to set the named header to.
header_name This property is required. str
The name of the header to set.
header_value This property is required. str
The value to set the named header to.
headerName This property is required. String
The name of the header to set.
headerValue This property is required. String
The value to set the named header to.

SecurityPolicyRuleHttpHeaderActionResponse

RequestHeadersToAdds This property is required. List<Pulumi.GoogleNative.Compute.Alpha.Inputs.SecurityPolicyRuleHttpHeaderActionHttpHeaderOptionResponse>
The list of request headers to add or overwrite if they're already present.
RequestHeadersToAdds This property is required. []SecurityPolicyRuleHttpHeaderActionHttpHeaderOptionResponse
The list of request headers to add or overwrite if they're already present.
requestHeadersToAdds This property is required. List<SecurityPolicyRuleHttpHeaderActionHttpHeaderOptionResponse>
The list of request headers to add or overwrite if they're already present.
requestHeadersToAdds This property is required. SecurityPolicyRuleHttpHeaderActionHttpHeaderOptionResponse[]
The list of request headers to add or overwrite if they're already present.
request_headers_to_adds This property is required. Sequence[SecurityPolicyRuleHttpHeaderActionHttpHeaderOptionResponse]
The list of request headers to add or overwrite if they're already present.
requestHeadersToAdds This property is required. List<Property Map>
The list of request headers to add or overwrite if they're already present.

SecurityPolicyRuleMatcherConfigDestinationPortResponse

IpProtocol This property is required. string
The IP protocol to which this rule applies. The protocol type is required when creating a firewall rule. This value can either be one of the following well known protocol strings (tcp, udp, icmp, esp, ah, ipip, sctp), or the IP protocol number.
Ports This property is required. List<string>
An optional list of ports to which this rule applies. This field is only applicable for UDP or TCP protocol. Each entry must be either an integer or a range. If not specified, this rule applies to connections through any port. Example inputs include: ["22"], ["80","443"], and ["12345-12349"]. This field may only be specified when versioned_expr is set to FIREWALL.
IpProtocol This property is required. string
The IP protocol to which this rule applies. The protocol type is required when creating a firewall rule. This value can either be one of the following well known protocol strings (tcp, udp, icmp, esp, ah, ipip, sctp), or the IP protocol number.
Ports This property is required. []string
An optional list of ports to which this rule applies. This field is only applicable for UDP or TCP protocol. Each entry must be either an integer or a range. If not specified, this rule applies to connections through any port. Example inputs include: ["22"], ["80","443"], and ["12345-12349"]. This field may only be specified when versioned_expr is set to FIREWALL.
ipProtocol This property is required. String
The IP protocol to which this rule applies. The protocol type is required when creating a firewall rule. This value can either be one of the following well known protocol strings (tcp, udp, icmp, esp, ah, ipip, sctp), or the IP protocol number.
ports This property is required. List<String>
An optional list of ports to which this rule applies. This field is only applicable for UDP or TCP protocol. Each entry must be either an integer or a range. If not specified, this rule applies to connections through any port. Example inputs include: ["22"], ["80","443"], and ["12345-12349"]. This field may only be specified when versioned_expr is set to FIREWALL.
ipProtocol This property is required. string
The IP protocol to which this rule applies. The protocol type is required when creating a firewall rule. This value can either be one of the following well known protocol strings (tcp, udp, icmp, esp, ah, ipip, sctp), or the IP protocol number.
ports This property is required. string[]
An optional list of ports to which this rule applies. This field is only applicable for UDP or TCP protocol. Each entry must be either an integer or a range. If not specified, this rule applies to connections through any port. Example inputs include: ["22"], ["80","443"], and ["12345-12349"]. This field may only be specified when versioned_expr is set to FIREWALL.
ip_protocol This property is required. str
The IP protocol to which this rule applies. The protocol type is required when creating a firewall rule. This value can either be one of the following well known protocol strings (tcp, udp, icmp, esp, ah, ipip, sctp), or the IP protocol number.
ports This property is required. Sequence[str]
An optional list of ports to which this rule applies. This field is only applicable for UDP or TCP protocol. Each entry must be either an integer or a range. If not specified, this rule applies to connections through any port. Example inputs include: ["22"], ["80","443"], and ["12345-12349"]. This field may only be specified when versioned_expr is set to FIREWALL.
ipProtocol This property is required. String
The IP protocol to which this rule applies. The protocol type is required when creating a firewall rule. This value can either be one of the following well known protocol strings (tcp, udp, icmp, esp, ah, ipip, sctp), or the IP protocol number.
ports This property is required. List<String>
An optional list of ports to which this rule applies. This field is only applicable for UDP or TCP protocol. Each entry must be either an integer or a range. If not specified, this rule applies to connections through any port. Example inputs include: ["22"], ["80","443"], and ["12345-12349"]. This field may only be specified when versioned_expr is set to FIREWALL.

SecurityPolicyRuleMatcherConfigLayer4ConfigResponse

IpProtocol This property is required. string
The IP protocol to which this rule applies. The protocol type is required when creating a firewall rule. This value can either be one of the following well known protocol strings (tcp, udp, icmp, esp, ah, ipip, sctp), or the IP protocol number.
Ports This property is required. List<string>
An optional list of ports to which this rule applies. This field is only applicable for UDP or TCP protocol. Each entry must be either an integer or a range. If not specified, this rule applies to connections through any port. Example inputs include: ["22"], ["80","443"], and ["12345-12349"]. This field may only be specified when versioned_expr is set to FIREWALL.
IpProtocol This property is required. string
The IP protocol to which this rule applies. The protocol type is required when creating a firewall rule. This value can either be one of the following well known protocol strings (tcp, udp, icmp, esp, ah, ipip, sctp), or the IP protocol number.
Ports This property is required. []string
An optional list of ports to which this rule applies. This field is only applicable for UDP or TCP protocol. Each entry must be either an integer or a range. If not specified, this rule applies to connections through any port. Example inputs include: ["22"], ["80","443"], and ["12345-12349"]. This field may only be specified when versioned_expr is set to FIREWALL.
ipProtocol This property is required. String
The IP protocol to which this rule applies. The protocol type is required when creating a firewall rule. This value can either be one of the following well known protocol strings (tcp, udp, icmp, esp, ah, ipip, sctp), or the IP protocol number.
ports This property is required. List<String>
An optional list of ports to which this rule applies. This field is only applicable for UDP or TCP protocol. Each entry must be either an integer or a range. If not specified, this rule applies to connections through any port. Example inputs include: ["22"], ["80","443"], and ["12345-12349"]. This field may only be specified when versioned_expr is set to FIREWALL.
ipProtocol This property is required. string
The IP protocol to which this rule applies. The protocol type is required when creating a firewall rule. This value can either be one of the following well known protocol strings (tcp, udp, icmp, esp, ah, ipip, sctp), or the IP protocol number.
ports This property is required. string[]
An optional list of ports to which this rule applies. This field is only applicable for UDP or TCP protocol. Each entry must be either an integer or a range. If not specified, this rule applies to connections through any port. Example inputs include: ["22"], ["80","443"], and ["12345-12349"]. This field may only be specified when versioned_expr is set to FIREWALL.
ip_protocol This property is required. str
The IP protocol to which this rule applies. The protocol type is required when creating a firewall rule. This value can either be one of the following well known protocol strings (tcp, udp, icmp, esp, ah, ipip, sctp), or the IP protocol number.
ports This property is required. Sequence[str]
An optional list of ports to which this rule applies. This field is only applicable for UDP or TCP protocol. Each entry must be either an integer or a range. If not specified, this rule applies to connections through any port. Example inputs include: ["22"], ["80","443"], and ["12345-12349"]. This field may only be specified when versioned_expr is set to FIREWALL.
ipProtocol This property is required. String
The IP protocol to which this rule applies. The protocol type is required when creating a firewall rule. This value can either be one of the following well known protocol strings (tcp, udp, icmp, esp, ah, ipip, sctp), or the IP protocol number.
ports This property is required. List<String>
An optional list of ports to which this rule applies. This field is only applicable for UDP or TCP protocol. Each entry must be either an integer or a range. If not specified, this rule applies to connections through any port. Example inputs include: ["22"], ["80","443"], and ["12345-12349"]. This field may only be specified when versioned_expr is set to FIREWALL.

SecurityPolicyRuleMatcherConfigResponse

DestIpRanges This property is required. List<string>
CIDR IP address range. This field may only be specified when versioned_expr is set to FIREWALL.
DestPorts This property is required. List<Pulumi.GoogleNative.Compute.Alpha.Inputs.SecurityPolicyRuleMatcherConfigDestinationPortResponse>
Pairs of IP protocols and ports that the rule should match. This field may only be specified when versioned_expr is set to FIREWALL.
Layer4Configs This property is required. List<Pulumi.GoogleNative.Compute.Alpha.Inputs.SecurityPolicyRuleMatcherConfigLayer4ConfigResponse>
Pairs of IP protocols and ports that the rule should match. This field may only be specified when versioned_expr is set to FIREWALL.
SrcIpRanges This property is required. List<string>
CIDR IP address range. Maximum number of src_ip_ranges allowed is 10.
DestIpRanges This property is required. []string
CIDR IP address range. This field may only be specified when versioned_expr is set to FIREWALL.
DestPorts This property is required. []SecurityPolicyRuleMatcherConfigDestinationPortResponse
Pairs of IP protocols and ports that the rule should match. This field may only be specified when versioned_expr is set to FIREWALL.
Layer4Configs This property is required. []SecurityPolicyRuleMatcherConfigLayer4ConfigResponse
Pairs of IP protocols and ports that the rule should match. This field may only be specified when versioned_expr is set to FIREWALL.
SrcIpRanges This property is required. []string
CIDR IP address range. Maximum number of src_ip_ranges allowed is 10.
destIpRanges This property is required. List<String>
CIDR IP address range. This field may only be specified when versioned_expr is set to FIREWALL.
destPorts This property is required. List<SecurityPolicyRuleMatcherConfigDestinationPortResponse>
Pairs of IP protocols and ports that the rule should match. This field may only be specified when versioned_expr is set to FIREWALL.
layer4Configs This property is required. List<SecurityPolicyRuleMatcherConfigLayer4ConfigResponse>
Pairs of IP protocols and ports that the rule should match. This field may only be specified when versioned_expr is set to FIREWALL.
srcIpRanges This property is required. List<String>
CIDR IP address range. Maximum number of src_ip_ranges allowed is 10.
destIpRanges This property is required. string[]
CIDR IP address range. This field may only be specified when versioned_expr is set to FIREWALL.
destPorts This property is required. SecurityPolicyRuleMatcherConfigDestinationPortResponse[]
Pairs of IP protocols and ports that the rule should match. This field may only be specified when versioned_expr is set to FIREWALL.
layer4Configs This property is required. SecurityPolicyRuleMatcherConfigLayer4ConfigResponse[]
Pairs of IP protocols and ports that the rule should match. This field may only be specified when versioned_expr is set to FIREWALL.
srcIpRanges This property is required. string[]
CIDR IP address range. Maximum number of src_ip_ranges allowed is 10.
dest_ip_ranges This property is required. Sequence[str]
CIDR IP address range. This field may only be specified when versioned_expr is set to FIREWALL.
dest_ports This property is required. Sequence[SecurityPolicyRuleMatcherConfigDestinationPortResponse]
Pairs of IP protocols and ports that the rule should match. This field may only be specified when versioned_expr is set to FIREWALL.
layer4_configs This property is required. Sequence[SecurityPolicyRuleMatcherConfigLayer4ConfigResponse]
Pairs of IP protocols and ports that the rule should match. This field may only be specified when versioned_expr is set to FIREWALL.
src_ip_ranges This property is required. Sequence[str]
CIDR IP address range. Maximum number of src_ip_ranges allowed is 10.
destIpRanges This property is required. List<String>
CIDR IP address range. This field may only be specified when versioned_expr is set to FIREWALL.
destPorts This property is required. List<Property Map>
Pairs of IP protocols and ports that the rule should match. This field may only be specified when versioned_expr is set to FIREWALL.
layer4Configs This property is required. List<Property Map>
Pairs of IP protocols and ports that the rule should match. This field may only be specified when versioned_expr is set to FIREWALL.
srcIpRanges This property is required. List<String>
CIDR IP address range. Maximum number of src_ip_ranges allowed is 10.

SecurityPolicyRuleMatcherExprOptionsRecaptchaOptionsResponse

ActionTokenSiteKeys This property is required. List<string>
A list of site keys to be used during the validation of reCAPTCHA action-tokens. The provided site keys need to be created from reCAPTCHA API under the same project where the security policy is created.
SessionTokenSiteKeys This property is required. List<string>
A list of site keys to be used during the validation of reCAPTCHA session-tokens. The provided site keys need to be created from reCAPTCHA API under the same project where the security policy is created.
ActionTokenSiteKeys This property is required. []string
A list of site keys to be used during the validation of reCAPTCHA action-tokens. The provided site keys need to be created from reCAPTCHA API under the same project where the security policy is created.
SessionTokenSiteKeys This property is required. []string
A list of site keys to be used during the validation of reCAPTCHA session-tokens. The provided site keys need to be created from reCAPTCHA API under the same project where the security policy is created.
actionTokenSiteKeys This property is required. List<String>
A list of site keys to be used during the validation of reCAPTCHA action-tokens. The provided site keys need to be created from reCAPTCHA API under the same project where the security policy is created.
sessionTokenSiteKeys This property is required. List<String>
A list of site keys to be used during the validation of reCAPTCHA session-tokens. The provided site keys need to be created from reCAPTCHA API under the same project where the security policy is created.
actionTokenSiteKeys This property is required. string[]
A list of site keys to be used during the validation of reCAPTCHA action-tokens. The provided site keys need to be created from reCAPTCHA API under the same project where the security policy is created.
sessionTokenSiteKeys This property is required. string[]
A list of site keys to be used during the validation of reCAPTCHA session-tokens. The provided site keys need to be created from reCAPTCHA API under the same project where the security policy is created.
action_token_site_keys This property is required. Sequence[str]
A list of site keys to be used during the validation of reCAPTCHA action-tokens. The provided site keys need to be created from reCAPTCHA API under the same project where the security policy is created.
session_token_site_keys This property is required. Sequence[str]
A list of site keys to be used during the validation of reCAPTCHA session-tokens. The provided site keys need to be created from reCAPTCHA API under the same project where the security policy is created.
actionTokenSiteKeys This property is required. List<String>
A list of site keys to be used during the validation of reCAPTCHA action-tokens. The provided site keys need to be created from reCAPTCHA API under the same project where the security policy is created.
sessionTokenSiteKeys This property is required. List<String>
A list of site keys to be used during the validation of reCAPTCHA session-tokens. The provided site keys need to be created from reCAPTCHA API under the same project where the security policy is created.

SecurityPolicyRuleMatcherExprOptionsResponse

RecaptchaOptions This property is required. Pulumi.GoogleNative.Compute.Alpha.Inputs.SecurityPolicyRuleMatcherExprOptionsRecaptchaOptionsResponse
reCAPTCHA configuration options to be applied for the rule. If the rule does not evaluate reCAPTCHA tokens, this field will have no effect.
RecaptchaOptions This property is required. SecurityPolicyRuleMatcherExprOptionsRecaptchaOptionsResponse
reCAPTCHA configuration options to be applied for the rule. If the rule does not evaluate reCAPTCHA tokens, this field will have no effect.
recaptchaOptions This property is required. SecurityPolicyRuleMatcherExprOptionsRecaptchaOptionsResponse
reCAPTCHA configuration options to be applied for the rule. If the rule does not evaluate reCAPTCHA tokens, this field will have no effect.
recaptchaOptions This property is required. SecurityPolicyRuleMatcherExprOptionsRecaptchaOptionsResponse
reCAPTCHA configuration options to be applied for the rule. If the rule does not evaluate reCAPTCHA tokens, this field will have no effect.
recaptcha_options This property is required. SecurityPolicyRuleMatcherExprOptionsRecaptchaOptionsResponse
reCAPTCHA configuration options to be applied for the rule. If the rule does not evaluate reCAPTCHA tokens, this field will have no effect.
recaptchaOptions This property is required. Property Map
reCAPTCHA configuration options to be applied for the rule. If the rule does not evaluate reCAPTCHA tokens, this field will have no effect.

SecurityPolicyRuleMatcherResponse

Config This property is required. Pulumi.GoogleNative.Compute.Alpha.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 This property is required. Pulumi.GoogleNative.Compute.Alpha.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. Expressions containing evaluateThreatIntelligence require Cloud Armor Managed Protection Plus tier and are not supported in Edge Policies nor in Regional Policies. Expressions containing evaluatePreconfiguredExpr('sourceiplist-*') require Cloud Armor Managed Protection Plus tier and are only supported in Global Security Policies.
ExprOptions This property is required. Pulumi.GoogleNative.Compute.Alpha.Inputs.SecurityPolicyRuleMatcherExprOptionsResponse
The configuration options available when specifying a user defined CEVAL expression (i.e., 'expr').
VersionedExpr This property is required. 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 This property is required. 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 This property is required. 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. Expressions containing evaluateThreatIntelligence require Cloud Armor Managed Protection Plus tier and are not supported in Edge Policies nor in Regional Policies. Expressions containing evaluatePreconfiguredExpr('sourceiplist-*') require Cloud Armor Managed Protection Plus tier and are only supported in Global Security Policies.
ExprOptions This property is required. SecurityPolicyRuleMatcherExprOptionsResponse
The configuration options available when specifying a user defined CEVAL expression (i.e., 'expr').
VersionedExpr This property is required. 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 This property is required. 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 This property is required. 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. Expressions containing evaluateThreatIntelligence require Cloud Armor Managed Protection Plus tier and are not supported in Edge Policies nor in Regional Policies. Expressions containing evaluatePreconfiguredExpr('sourceiplist-*') require Cloud Armor Managed Protection Plus tier and are only supported in Global Security Policies.
exprOptions This property is required. SecurityPolicyRuleMatcherExprOptionsResponse
The configuration options available when specifying a user defined CEVAL expression (i.e., 'expr').
versionedExpr This property is required. 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 This property is required. 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 This property is required. 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. Expressions containing evaluateThreatIntelligence require Cloud Armor Managed Protection Plus tier and are not supported in Edge Policies nor in Regional Policies. Expressions containing evaluatePreconfiguredExpr('sourceiplist-*') require Cloud Armor Managed Protection Plus tier and are only supported in Global Security Policies.
exprOptions This property is required. SecurityPolicyRuleMatcherExprOptionsResponse
The configuration options available when specifying a user defined CEVAL expression (i.e., 'expr').
versionedExpr This property is required. 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 This property is required. 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 This property is required. 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. Expressions containing evaluateThreatIntelligence require Cloud Armor Managed Protection Plus tier and are not supported in Edge Policies nor in Regional Policies. Expressions containing evaluatePreconfiguredExpr('sourceiplist-*') require Cloud Armor Managed Protection Plus tier and are only supported in Global Security Policies.
expr_options This property is required. SecurityPolicyRuleMatcherExprOptionsResponse
The configuration options available when specifying a user defined CEVAL expression (i.e., 'expr').
versioned_expr This property is required. 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 This property is required. 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 This property is required. 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. Expressions containing evaluateThreatIntelligence require Cloud Armor Managed Protection Plus tier and are not supported in Edge Policies nor in Regional Policies. Expressions containing evaluatePreconfiguredExpr('sourceiplist-*') require Cloud Armor Managed Protection Plus tier and are only supported in Global Security Policies.
exprOptions This property is required. Property Map
The configuration options available when specifying a user defined CEVAL expression (i.e., 'expr').
versionedExpr This property is required. 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.

SecurityPolicyRuleNetworkMatcherResponse

DestIpRanges This property is required. List<string>
Destination IPv4/IPv6 addresses or CIDR prefixes, in standard text format.
DestPorts This property is required. List<string>
Destination port numbers for TCP/UDP/SCTP. Each element can be a 16-bit unsigned decimal number (e.g. "80") or range (e.g. "0-1023").
IpProtocols This property is required. List<string>
IPv4 protocol / IPv6 next header (after extension headers). Each element can be an 8-bit unsigned decimal number (e.g. "6"), range (e.g. "253-254"), or one of the following protocol names: "tcp", "udp", "icmp", "esp", "ah", "ipip", or "sctp".
SrcAsns This property is required. List<int>
BGP Autonomous System Number associated with the source IP address.
SrcIpRanges This property is required. List<string>
Source IPv4/IPv6 addresses or CIDR prefixes, in standard text format.
SrcPorts This property is required. List<string>
Source port numbers for TCP/UDP/SCTP. Each element can be a 16-bit unsigned decimal number (e.g. "80") or range (e.g. "0-1023").
SrcRegionCodes This property is required. List<string>
Two-letter ISO 3166-1 alpha-2 country code associated with the source IP address.
UserDefinedFields This property is required. List<Pulumi.GoogleNative.Compute.Alpha.Inputs.SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatchResponse>
User-defined fields. Each element names a defined field and lists the matching values for that field.
DestIpRanges This property is required. []string
Destination IPv4/IPv6 addresses or CIDR prefixes, in standard text format.
DestPorts This property is required. []string
Destination port numbers for TCP/UDP/SCTP. Each element can be a 16-bit unsigned decimal number (e.g. "80") or range (e.g. "0-1023").
IpProtocols This property is required. []string
IPv4 protocol / IPv6 next header (after extension headers). Each element can be an 8-bit unsigned decimal number (e.g. "6"), range (e.g. "253-254"), or one of the following protocol names: "tcp", "udp", "icmp", "esp", "ah", "ipip", or "sctp".
SrcAsns This property is required. []int
BGP Autonomous System Number associated with the source IP address.
SrcIpRanges This property is required. []string
Source IPv4/IPv6 addresses or CIDR prefixes, in standard text format.
SrcPorts This property is required. []string
Source port numbers for TCP/UDP/SCTP. Each element can be a 16-bit unsigned decimal number (e.g. "80") or range (e.g. "0-1023").
SrcRegionCodes This property is required. []string
Two-letter ISO 3166-1 alpha-2 country code associated with the source IP address.
UserDefinedFields This property is required. []SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatchResponse
User-defined fields. Each element names a defined field and lists the matching values for that field.
destIpRanges This property is required. List<String>
Destination IPv4/IPv6 addresses or CIDR prefixes, in standard text format.
destPorts This property is required. List<String>
Destination port numbers for TCP/UDP/SCTP. Each element can be a 16-bit unsigned decimal number (e.g. "80") or range (e.g. "0-1023").
ipProtocols This property is required. List<String>
IPv4 protocol / IPv6 next header (after extension headers). Each element can be an 8-bit unsigned decimal number (e.g. "6"), range (e.g. "253-254"), or one of the following protocol names: "tcp", "udp", "icmp", "esp", "ah", "ipip", or "sctp".
srcAsns This property is required. List<Integer>
BGP Autonomous System Number associated with the source IP address.
srcIpRanges This property is required. List<String>
Source IPv4/IPv6 addresses or CIDR prefixes, in standard text format.
srcPorts This property is required. List<String>
Source port numbers for TCP/UDP/SCTP. Each element can be a 16-bit unsigned decimal number (e.g. "80") or range (e.g. "0-1023").
srcRegionCodes This property is required. List<String>
Two-letter ISO 3166-1 alpha-2 country code associated with the source IP address.
userDefinedFields This property is required. List<SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatchResponse>
User-defined fields. Each element names a defined field and lists the matching values for that field.
destIpRanges This property is required. string[]
Destination IPv4/IPv6 addresses or CIDR prefixes, in standard text format.
destPorts This property is required. string[]
Destination port numbers for TCP/UDP/SCTP. Each element can be a 16-bit unsigned decimal number (e.g. "80") or range (e.g. "0-1023").
ipProtocols This property is required. string[]
IPv4 protocol / IPv6 next header (after extension headers). Each element can be an 8-bit unsigned decimal number (e.g. "6"), range (e.g. "253-254"), or one of the following protocol names: "tcp", "udp", "icmp", "esp", "ah", "ipip", or "sctp".
srcAsns This property is required. number[]
BGP Autonomous System Number associated with the source IP address.
srcIpRanges This property is required. string[]
Source IPv4/IPv6 addresses or CIDR prefixes, in standard text format.
srcPorts This property is required. string[]
Source port numbers for TCP/UDP/SCTP. Each element can be a 16-bit unsigned decimal number (e.g. "80") or range (e.g. "0-1023").
srcRegionCodes This property is required. string[]
Two-letter ISO 3166-1 alpha-2 country code associated with the source IP address.
userDefinedFields This property is required. SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatchResponse[]
User-defined fields. Each element names a defined field and lists the matching values for that field.
dest_ip_ranges This property is required. Sequence[str]
Destination IPv4/IPv6 addresses or CIDR prefixes, in standard text format.
dest_ports This property is required. Sequence[str]
Destination port numbers for TCP/UDP/SCTP. Each element can be a 16-bit unsigned decimal number (e.g. "80") or range (e.g. "0-1023").
ip_protocols This property is required. Sequence[str]
IPv4 protocol / IPv6 next header (after extension headers). Each element can be an 8-bit unsigned decimal number (e.g. "6"), range (e.g. "253-254"), or one of the following protocol names: "tcp", "udp", "icmp", "esp", "ah", "ipip", or "sctp".
src_asns This property is required. Sequence[int]
BGP Autonomous System Number associated with the source IP address.
src_ip_ranges This property is required. Sequence[str]
Source IPv4/IPv6 addresses or CIDR prefixes, in standard text format.
src_ports This property is required. Sequence[str]
Source port numbers for TCP/UDP/SCTP. Each element can be a 16-bit unsigned decimal number (e.g. "80") or range (e.g. "0-1023").
src_region_codes This property is required. Sequence[str]
Two-letter ISO 3166-1 alpha-2 country code associated with the source IP address.
user_defined_fields This property is required. Sequence[SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatchResponse]
User-defined fields. Each element names a defined field and lists the matching values for that field.
destIpRanges This property is required. List<String>
Destination IPv4/IPv6 addresses or CIDR prefixes, in standard text format.
destPorts This property is required. List<String>
Destination port numbers for TCP/UDP/SCTP. Each element can be a 16-bit unsigned decimal number (e.g. "80") or range (e.g. "0-1023").
ipProtocols This property is required. List<String>
IPv4 protocol / IPv6 next header (after extension headers). Each element can be an 8-bit unsigned decimal number (e.g. "6"), range (e.g. "253-254"), or one of the following protocol names: "tcp", "udp", "icmp", "esp", "ah", "ipip", or "sctp".
srcAsns This property is required. List<Number>
BGP Autonomous System Number associated with the source IP address.
srcIpRanges This property is required. List<String>
Source IPv4/IPv6 addresses or CIDR prefixes, in standard text format.
srcPorts This property is required. List<String>
Source port numbers for TCP/UDP/SCTP. Each element can be a 16-bit unsigned decimal number (e.g. "80") or range (e.g. "0-1023").
srcRegionCodes This property is required. List<String>
Two-letter ISO 3166-1 alpha-2 country code associated with the source IP address.
userDefinedFields This property is required. List<Property Map>
User-defined fields. Each element names a defined field and lists the matching values for that field.

SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatchResponse

Name This property is required. string
Name of the user-defined field, as given in the definition.
Values This property is required. List<string>
Matching values of the field. Each element can be a 32-bit unsigned decimal or hexadecimal (starting with "0x") number (e.g. "64") or range (e.g. "0x400-0x7ff").
Name This property is required. string
Name of the user-defined field, as given in the definition.
Values This property is required. []string
Matching values of the field. Each element can be a 32-bit unsigned decimal or hexadecimal (starting with "0x") number (e.g. "64") or range (e.g. "0x400-0x7ff").
name This property is required. String
Name of the user-defined field, as given in the definition.
values This property is required. List<String>
Matching values of the field. Each element can be a 32-bit unsigned decimal or hexadecimal (starting with "0x") number (e.g. "64") or range (e.g. "0x400-0x7ff").
name This property is required. string
Name of the user-defined field, as given in the definition.
values This property is required. string[]
Matching values of the field. Each element can be a 32-bit unsigned decimal or hexadecimal (starting with "0x") number (e.g. "64") or range (e.g. "0x400-0x7ff").
name This property is required. str
Name of the user-defined field, as given in the definition.
values This property is required. Sequence[str]
Matching values of the field. Each element can be a 32-bit unsigned decimal or hexadecimal (starting with "0x") number (e.g. "64") or range (e.g. "0x400-0x7ff").
name This property is required. String
Name of the user-defined field, as given in the definition.
values This property is required. List<String>
Matching values of the field. Each element can be a 32-bit unsigned decimal or hexadecimal (starting with "0x") number (e.g. "64") or range (e.g. "0x400-0x7ff").

SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsResponse

Op This property is required. string
The match operator for the field.
Val This property is required. string
The value of the field.
Op This property is required. string
The match operator for the field.
Val This property is required. string
The value of the field.
op This property is required. String
The match operator for the field.
val This property is required. String
The value of the field.
op This property is required. string
The match operator for the field.
val This property is required. string
The value of the field.
op This property is required. str
The match operator for the field.
val This property is required. str
The value of the field.
op This property is required. String
The match operator for the field.
val This property is required. String
The value of the field.

SecurityPolicyRulePreconfiguredWafConfigExclusionResponse

RequestCookiesToExclude This property is required. List<Pulumi.GoogleNative.Compute.Alpha.Inputs.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsResponse>
A list of request cookie names whose value will be excluded from inspection during preconfigured WAF evaluation.
RequestHeadersToExclude This property is required. List<Pulumi.GoogleNative.Compute.Alpha.Inputs.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsResponse>
A list of request header names whose value will be excluded from inspection during preconfigured WAF evaluation.
RequestQueryParamsToExclude This property is required. List<Pulumi.GoogleNative.Compute.Alpha.Inputs.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsResponse>
A list of request query parameter names whose value will be excluded from inspection during preconfigured WAF evaluation. Note that the parameter can be in the query string or in the POST body.
RequestUrisToExclude This property is required. List<Pulumi.GoogleNative.Compute.Alpha.Inputs.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsResponse>
A list of request URIs from the request line to be excluded from inspection during preconfigured WAF evaluation. When specifying this field, the query or fragment part should be excluded.
TargetRuleIds This property is required. List<string>
A list of target rule IDs under the WAF rule set to apply the preconfigured WAF exclusion. If omitted, it refers to all the rule IDs under the WAF rule set.
TargetRuleSet This property is required. string
Target WAF rule set to apply the preconfigured WAF exclusion.
RequestCookiesToExclude This property is required. []SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsResponse
A list of request cookie names whose value will be excluded from inspection during preconfigured WAF evaluation.
RequestHeadersToExclude This property is required. []SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsResponse
A list of request header names whose value will be excluded from inspection during preconfigured WAF evaluation.
RequestQueryParamsToExclude This property is required. []SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsResponse
A list of request query parameter names whose value will be excluded from inspection during preconfigured WAF evaluation. Note that the parameter can be in the query string or in the POST body.
RequestUrisToExclude This property is required. []SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsResponse
A list of request URIs from the request line to be excluded from inspection during preconfigured WAF evaluation. When specifying this field, the query or fragment part should be excluded.
TargetRuleIds This property is required. []string
A list of target rule IDs under the WAF rule set to apply the preconfigured WAF exclusion. If omitted, it refers to all the rule IDs under the WAF rule set.
TargetRuleSet This property is required. string
Target WAF rule set to apply the preconfigured WAF exclusion.
requestCookiesToExclude This property is required. List<SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsResponse>
A list of request cookie names whose value will be excluded from inspection during preconfigured WAF evaluation.
requestHeadersToExclude This property is required. List<SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsResponse>
A list of request header names whose value will be excluded from inspection during preconfigured WAF evaluation.
requestQueryParamsToExclude This property is required. List<SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsResponse>
A list of request query parameter names whose value will be excluded from inspection during preconfigured WAF evaluation. Note that the parameter can be in the query string or in the POST body.
requestUrisToExclude This property is required. List<SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsResponse>
A list of request URIs from the request line to be excluded from inspection during preconfigured WAF evaluation. When specifying this field, the query or fragment part should be excluded.
targetRuleIds This property is required. List<String>
A list of target rule IDs under the WAF rule set to apply the preconfigured WAF exclusion. If omitted, it refers to all the rule IDs under the WAF rule set.
targetRuleSet This property is required. String
Target WAF rule set to apply the preconfigured WAF exclusion.
requestCookiesToExclude This property is required. SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsResponse[]
A list of request cookie names whose value will be excluded from inspection during preconfigured WAF evaluation.
requestHeadersToExclude This property is required. SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsResponse[]
A list of request header names whose value will be excluded from inspection during preconfigured WAF evaluation.
requestQueryParamsToExclude This property is required. SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsResponse[]
A list of request query parameter names whose value will be excluded from inspection during preconfigured WAF evaluation. Note that the parameter can be in the query string or in the POST body.
requestUrisToExclude This property is required. SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsResponse[]
A list of request URIs from the request line to be excluded from inspection during preconfigured WAF evaluation. When specifying this field, the query or fragment part should be excluded.
targetRuleIds This property is required. string[]
A list of target rule IDs under the WAF rule set to apply the preconfigured WAF exclusion. If omitted, it refers to all the rule IDs under the WAF rule set.
targetRuleSet This property is required. string
Target WAF rule set to apply the preconfigured WAF exclusion.
request_cookies_to_exclude This property is required. Sequence[SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsResponse]
A list of request cookie names whose value will be excluded from inspection during preconfigured WAF evaluation.
request_headers_to_exclude This property is required. Sequence[SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsResponse]
A list of request header names whose value will be excluded from inspection during preconfigured WAF evaluation.
request_query_params_to_exclude This property is required. Sequence[SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsResponse]
A list of request query parameter names whose value will be excluded from inspection during preconfigured WAF evaluation. Note that the parameter can be in the query string or in the POST body.
request_uris_to_exclude This property is required. Sequence[SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsResponse]
A list of request URIs from the request line to be excluded from inspection during preconfigured WAF evaluation. When specifying this field, the query or fragment part should be excluded.
target_rule_ids This property is required. Sequence[str]
A list of target rule IDs under the WAF rule set to apply the preconfigured WAF exclusion. If omitted, it refers to all the rule IDs under the WAF rule set.
target_rule_set This property is required. str
Target WAF rule set to apply the preconfigured WAF exclusion.
requestCookiesToExclude This property is required. List<Property Map>
A list of request cookie names whose value will be excluded from inspection during preconfigured WAF evaluation.
requestHeadersToExclude This property is required. List<Property Map>
A list of request header names whose value will be excluded from inspection during preconfigured WAF evaluation.
requestQueryParamsToExclude This property is required. List<Property Map>
A list of request query parameter names whose value will be excluded from inspection during preconfigured WAF evaluation. Note that the parameter can be in the query string or in the POST body.
requestUrisToExclude This property is required. List<Property Map>
A list of request URIs from the request line to be excluded from inspection during preconfigured WAF evaluation. When specifying this field, the query or fragment part should be excluded.
targetRuleIds This property is required. List<String>
A list of target rule IDs under the WAF rule set to apply the preconfigured WAF exclusion. If omitted, it refers to all the rule IDs under the WAF rule set.
targetRuleSet This property is required. String
Target WAF rule set to apply the preconfigured WAF exclusion.

SecurityPolicyRulePreconfiguredWafConfigResponse

Exclusions This property is required. List<Pulumi.GoogleNative.Compute.Alpha.Inputs.SecurityPolicyRulePreconfiguredWafConfigExclusionResponse>
A list of exclusions to apply during preconfigured WAF evaluation.
Exclusions This property is required. []SecurityPolicyRulePreconfiguredWafConfigExclusionResponse
A list of exclusions to apply during preconfigured WAF evaluation.
exclusions This property is required. List<SecurityPolicyRulePreconfiguredWafConfigExclusionResponse>
A list of exclusions to apply during preconfigured WAF evaluation.
exclusions This property is required. SecurityPolicyRulePreconfiguredWafConfigExclusionResponse[]
A list of exclusions to apply during preconfigured WAF evaluation.
exclusions This property is required. Sequence[SecurityPolicyRulePreconfiguredWafConfigExclusionResponse]
A list of exclusions to apply during preconfigured WAF evaluation.
exclusions This property is required. List<Property Map>
A list of exclusions to apply during preconfigured WAF evaluation.

SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfigResponse

EnforceOnKeyName This property is required. 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.
EnforceOnKeyType This property is required. 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 "enforceOnKeyConfigs" 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.
EnforceOnKeyName This property is required. 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.
EnforceOnKeyType This property is required. 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 "enforceOnKeyConfigs" 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.
enforceOnKeyName This property is required. 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.
enforceOnKeyType This property is required. 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 "enforceOnKeyConfigs" 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.
enforceOnKeyName This property is required. 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.
enforceOnKeyType This property is required. 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 "enforceOnKeyConfigs" 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.
enforce_on_key_name This property is required. 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.
enforce_on_key_type This property is required. 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 "enforceOnKeyConfigs" 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.
enforceOnKeyName This property is required. 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.
enforceOnKeyType This property is required. 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 "enforceOnKeyConfigs" 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.

SecurityPolicyRuleRateLimitOptionsResponse

BanDurationSec This property is required. 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 This property is required. Pulumi.GoogleNative.Compute.Alpha.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 This property is required. string
Action to take for requests that are under the configured rate limit threshold. Valid option is "allow" only.
EnforceOnKey This property is required. 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 "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.
EnforceOnKeyConfigs This property is required. List<Pulumi.GoogleNative.Compute.Alpha.Inputs.SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfigResponse>
If specified, any combination of values of enforce_on_key_type/enforce_on_key_name is treated as the key on which ratelimit threshold/action is enforced. You can specify up to 3 enforce_on_key_configs. If enforce_on_key_configs is specified, enforce_on_key must not be specified.
EnforceOnKeyName This property is required. 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 This property is required. 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. The redirect action is only supported in Global Security Policies of type CLOUD_ARMOR.
ExceedActionRpcStatus This property is required. Pulumi.GoogleNative.Compute.Alpha.Inputs.SecurityPolicyRuleRateLimitOptionsRpcStatusResponse
Specified gRPC response status for proxyless gRPC requests that are above the configured rate limit threshold
ExceedRedirectOptions This property is required. Pulumi.GoogleNative.Compute.Alpha.Inputs.SecurityPolicyRuleRedirectOptionsResponse
Parameters defining the redirect action that is used as the exceed action. Cannot be specified if the exceed action is not redirect. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
RateLimitThreshold This property is required. Pulumi.GoogleNative.Compute.Alpha.Inputs.SecurityPolicyRuleRateLimitOptionsThresholdResponse
Threshold at which to begin ratelimiting.
BanDurationSec This property is required. 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 This property is required. 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 This property is required. string
Action to take for requests that are under the configured rate limit threshold. Valid option is "allow" only.
EnforceOnKey This property is required. 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 "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.
EnforceOnKeyConfigs This property is required. []SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfigResponse
If specified, any combination of values of enforce_on_key_type/enforce_on_key_name is treated as the key on which ratelimit threshold/action is enforced. You can specify up to 3 enforce_on_key_configs. If enforce_on_key_configs is specified, enforce_on_key must not be specified.
EnforceOnKeyName This property is required. 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 This property is required. 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. The redirect action is only supported in Global Security Policies of type CLOUD_ARMOR.
ExceedActionRpcStatus This property is required. SecurityPolicyRuleRateLimitOptionsRpcStatusResponse
Specified gRPC response status for proxyless gRPC requests that are above the configured rate limit threshold
ExceedRedirectOptions This property is required. SecurityPolicyRuleRedirectOptionsResponse
Parameters defining the redirect action that is used as the exceed action. Cannot be specified if the exceed action is not redirect. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
RateLimitThreshold This property is required. SecurityPolicyRuleRateLimitOptionsThresholdResponse
Threshold at which to begin ratelimiting.
banDurationSec This property is required. 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 This property is required. 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 This property is required. String
Action to take for requests that are under the configured rate limit threshold. Valid option is "allow" only.
enforceOnKey This property is required. 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 "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.
enforceOnKeyConfigs This property is required. List<SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfigResponse>
If specified, any combination of values of enforce_on_key_type/enforce_on_key_name is treated as the key on which ratelimit threshold/action is enforced. You can specify up to 3 enforce_on_key_configs. If enforce_on_key_configs is specified, enforce_on_key must not be specified.
enforceOnKeyName This property is required. 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 This property is required. 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. The redirect action is only supported in Global Security Policies of type CLOUD_ARMOR.
exceedActionRpcStatus This property is required. SecurityPolicyRuleRateLimitOptionsRpcStatusResponse
Specified gRPC response status for proxyless gRPC requests that are above the configured rate limit threshold
exceedRedirectOptions This property is required. SecurityPolicyRuleRedirectOptionsResponse
Parameters defining the redirect action that is used as the exceed action. Cannot be specified if the exceed action is not redirect. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
rateLimitThreshold This property is required. SecurityPolicyRuleRateLimitOptionsThresholdResponse
Threshold at which to begin ratelimiting.
banDurationSec This property is required. 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 This property is required. 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 This property is required. string
Action to take for requests that are under the configured rate limit threshold. Valid option is "allow" only.
enforceOnKey This property is required. 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 "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.
enforceOnKeyConfigs This property is required. SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfigResponse[]
If specified, any combination of values of enforce_on_key_type/enforce_on_key_name is treated as the key on which ratelimit threshold/action is enforced. You can specify up to 3 enforce_on_key_configs. If enforce_on_key_configs is specified, enforce_on_key must not be specified.
enforceOnKeyName This property is required. 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 This property is required. 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. The redirect action is only supported in Global Security Policies of type CLOUD_ARMOR.
exceedActionRpcStatus This property is required. SecurityPolicyRuleRateLimitOptionsRpcStatusResponse
Specified gRPC response status for proxyless gRPC requests that are above the configured rate limit threshold
exceedRedirectOptions This property is required. SecurityPolicyRuleRedirectOptionsResponse
Parameters defining the redirect action that is used as the exceed action. Cannot be specified if the exceed action is not redirect. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
rateLimitThreshold This property is required. SecurityPolicyRuleRateLimitOptionsThresholdResponse
Threshold at which to begin ratelimiting.
ban_duration_sec This property is required. 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 This property is required. 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 This property is required. str
Action to take for requests that are under the configured rate limit threshold. Valid option is "allow" only.
enforce_on_key This property is required. 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 "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.
enforce_on_key_configs This property is required. Sequence[SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfigResponse]
If specified, any combination of values of enforce_on_key_type/enforce_on_key_name is treated as the key on which ratelimit threshold/action is enforced. You can specify up to 3 enforce_on_key_configs. If enforce_on_key_configs is specified, enforce_on_key must not be specified.
enforce_on_key_name This property is required. 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 This property is required. 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. The redirect action is only supported in Global Security Policies of type CLOUD_ARMOR.
exceed_action_rpc_status This property is required. SecurityPolicyRuleRateLimitOptionsRpcStatusResponse
Specified gRPC response status for proxyless gRPC requests that are above the configured rate limit threshold
exceed_redirect_options This property is required. SecurityPolicyRuleRedirectOptionsResponse
Parameters defining the redirect action that is used as the exceed action. Cannot be specified if the exceed action is not redirect. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
rate_limit_threshold This property is required. SecurityPolicyRuleRateLimitOptionsThresholdResponse
Threshold at which to begin ratelimiting.
banDurationSec This property is required. 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 This property is required. 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 This property is required. String
Action to take for requests that are under the configured rate limit threshold. Valid option is "allow" only.
enforceOnKey This property is required. 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 "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.
enforceOnKeyConfigs This property is required. List<Property Map>
If specified, any combination of values of enforce_on_key_type/enforce_on_key_name is treated as the key on which ratelimit threshold/action is enforced. You can specify up to 3 enforce_on_key_configs. If enforce_on_key_configs is specified, enforce_on_key must not be specified.
enforceOnKeyName This property is required. 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 This property is required. 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. The redirect action is only supported in Global Security Policies of type CLOUD_ARMOR.
exceedActionRpcStatus This property is required. Property Map
Specified gRPC response status for proxyless gRPC requests that are above the configured rate limit threshold
exceedRedirectOptions This property is required. Property Map
Parameters defining the redirect action that is used as the exceed action. Cannot be specified if the exceed action is not redirect. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
rateLimitThreshold This property is required. Property Map
Threshold at which to begin ratelimiting.

SecurityPolicyRuleRateLimitOptionsRpcStatusResponse

Code This property is required. int
The status code, which should be an enum value of google.rpc.Code.
Message This property is required. string
A developer-facing error message, which should be in English.
Code This property is required. int
The status code, which should be an enum value of google.rpc.Code.
Message This property is required. string
A developer-facing error message, which should be in English.
code This property is required. Integer
The status code, which should be an enum value of google.rpc.Code.
message This property is required. String
A developer-facing error message, which should be in English.
code This property is required. number
The status code, which should be an enum value of google.rpc.Code.
message This property is required. string
A developer-facing error message, which should be in English.
code This property is required. int
The status code, which should be an enum value of google.rpc.Code.
message This property is required. str
A developer-facing error message, which should be in English.
code This property is required. Number
The status code, which should be an enum value of google.rpc.Code.
message This property is required. String
A developer-facing error message, which should be in English.

SecurityPolicyRuleRateLimitOptionsThresholdResponse

Count This property is required. int
Number of HTTP(S) requests for calculating the threshold.
IntervalSec This property is required. int
Interval over which the threshold is computed.
Count This property is required. int
Number of HTTP(S) requests for calculating the threshold.
IntervalSec This property is required. int
Interval over which the threshold is computed.
count This property is required. Integer
Number of HTTP(S) requests for calculating the threshold.
intervalSec This property is required. Integer
Interval over which the threshold is computed.
count This property is required. number
Number of HTTP(S) requests for calculating the threshold.
intervalSec This property is required. number
Interval over which the threshold is computed.
count This property is required. int
Number of HTTP(S) requests for calculating the threshold.
interval_sec This property is required. int
Interval over which the threshold is computed.
count This property is required. Number
Number of HTTP(S) requests for calculating the threshold.
intervalSec This property is required. Number
Interval over which the threshold is computed.

SecurityPolicyRuleRedirectOptionsResponse

Target This property is required. string
Target for the redirect action. This is required if the type is EXTERNAL_302 and cannot be specified for GOOGLE_RECAPTCHA.
Type This property is required. string
Type of the redirect action.
Target This property is required. string
Target for the redirect action. This is required if the type is EXTERNAL_302 and cannot be specified for GOOGLE_RECAPTCHA.
Type This property is required. string
Type of the redirect action.
target This property is required. String
Target for the redirect action. This is required if the type is EXTERNAL_302 and cannot be specified for GOOGLE_RECAPTCHA.
type This property is required. String
Type of the redirect action.
target This property is required. string
Target for the redirect action. This is required if the type is EXTERNAL_302 and cannot be specified for GOOGLE_RECAPTCHA.
type This property is required. string
Type of the redirect action.
target This property is required. str
Target for the redirect action. This is required if the type is EXTERNAL_302 and cannot be specified for GOOGLE_RECAPTCHA.
type This property is required. str
Type of the redirect action.
target This property is required. String
Target for the redirect action. This is required if the type is EXTERNAL_302 and cannot be specified for GOOGLE_RECAPTCHA.
type This property is required. String
Type of the redirect action.

SecurityPolicyRuleResponse

Action This property is required. string
The Action to perform when the rule is matched. The following are the valid actions: - allow: allow access to target. - deny(STATUS): deny access to target, returns the HTTP response code specified. Valid values for STATUS 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. This action is only supported in Global Security Policies of type CLOUD_ARMOR. - 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 This property is required. string
An optional description of this resource. Provide this property when you create the resource.
Direction This property is required. string
The direction in which this rule applies. This field may only be specified when versioned_expr is set to FIREWALL.
EnableLogging This property is required. bool
Denotes whether to enable logging for a particular rule. If logging is enabled, logs will be exported to the configured export destination in Stackdriver. Logs may be exported to BigQuery or Pub/Sub. Note: you cannot enable logging on "goto_next" rules. This field may only be specified when the versioned_expr is set to FIREWALL.
HeaderAction This property is required. Pulumi.GoogleNative.Compute.Alpha.Inputs.SecurityPolicyRuleHttpHeaderActionResponse
Optional, additional actions that are performed on headers. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
Kind This property is required. string
[Output only] Type of the resource. Always compute#securityPolicyRule for security policy rules
Match This property is required. Pulumi.GoogleNative.Compute.Alpha.Inputs.SecurityPolicyRuleMatcherResponse
A match condition that incoming traffic is evaluated against. If it evaluates to true, the corresponding 'action' is enforced.
NetworkMatch This property is required. Pulumi.GoogleNative.Compute.Alpha.Inputs.SecurityPolicyRuleNetworkMatcherResponse
A match condition that incoming packets are evaluated against for CLOUD_ARMOR_NETWORK security policies. If it matches, the corresponding 'action' is enforced. The match criteria for a rule consists of built-in match fields (like 'srcIpRanges') and potentially multiple user-defined match fields ('userDefinedFields'). Field values may be extracted directly from the packet or derived from it (e.g. 'srcRegionCodes'). Some fields may not be present in every packet (e.g. 'srcPorts'). A user-defined field is only present if the base header is found in the packet and the entire field is in bounds. Each match field may specify which values can match it, listing one or more ranges, prefixes, or exact values that are considered a match for the field. A field value must be present in order to match a specified match field. If no match values are specified for a match field, then any field value is considered to match it, and it's not required to be present. For strings specifying '*' is also equivalent to match all. For a packet to match a rule, all specified match fields must match the corresponding field values derived from the packet. Example: networkMatch: srcIpRanges: - "192.0.2.0/24" - "198.51.100.0/24" userDefinedFields: - name: "ipv4_fragment_offset" values: - "1-0x1fff" The above match condition matches packets with a source IP in 192.0.2.0/24 or 198.51.100.0/24 and a user-defined field named "ipv4_fragment_offset" with a value between 1 and 0x1fff inclusive.
PreconfiguredWafConfig This property is required. Pulumi.GoogleNative.Compute.Alpha.Inputs.SecurityPolicyRulePreconfiguredWafConfigResponse
Preconfigured WAF configuration to be applied for the rule. If the rule does not evaluate preconfigured WAF rules, i.e., if evaluatePreconfiguredWaf() is not used, this field will have no effect.
Preview This property is required. bool
If set to true, the specified action is not enforced.
Priority This property is required. 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 This property is required. Pulumi.GoogleNative.Compute.Alpha.Inputs.SecurityPolicyRuleRateLimitOptionsResponse
Must be specified if the action is "rate_based_ban" or "throttle". Cannot be specified for any other actions.
RedirectOptions This property is required. Pulumi.GoogleNative.Compute.Alpha.Inputs.SecurityPolicyRuleRedirectOptionsResponse
Parameters defining the redirect action. Cannot be specified for any other actions. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
RedirectTarget This property is required. string
This must be specified for redirect actions. Cannot be specified for any other actions.
RuleManagedProtectionTier This property is required. string
The minimum managed protection tier required for this rule. [Deprecated] Use requiredManagedProtectionTiers instead.

Deprecated: [Output Only] The minimum managed protection tier required for this rule. [Deprecated] Use requiredManagedProtectionTiers instead.

RuleNumber This property is required. string
Identifier for the rule. This is only unique within the given security policy. This can only be set during rule creation, if rule number is not specified it will be generated by the server.
RuleTupleCount This property is required. int
Calculation of the complexity of a single firewall security policy rule.
TargetResources This property is required. List<string>
A list of network resource URLs to which this rule applies. This field allows you to control which network's VMs get this rule. If this field is left blank, all VMs within the organization will receive the rule. This field may only be specified when versioned_expr is set to FIREWALL.
TargetServiceAccounts This property is required. List<string>
A list of service accounts indicating the sets of instances that are applied with this rule.
Action This property is required. string
The Action to perform when the rule is matched. The following are the valid actions: - allow: allow access to target. - deny(STATUS): deny access to target, returns the HTTP response code specified. Valid values for STATUS 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. This action is only supported in Global Security Policies of type CLOUD_ARMOR. - 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 This property is required. string
An optional description of this resource. Provide this property when you create the resource.
Direction This property is required. string
The direction in which this rule applies. This field may only be specified when versioned_expr is set to FIREWALL.
EnableLogging This property is required. bool
Denotes whether to enable logging for a particular rule. If logging is enabled, logs will be exported to the configured export destination in Stackdriver. Logs may be exported to BigQuery or Pub/Sub. Note: you cannot enable logging on "goto_next" rules. This field may only be specified when the versioned_expr is set to FIREWALL.
HeaderAction This property is required. SecurityPolicyRuleHttpHeaderActionResponse
Optional, additional actions that are performed on headers. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
Kind This property is required. string
[Output only] Type of the resource. Always compute#securityPolicyRule for security policy rules
Match This property is required. SecurityPolicyRuleMatcherResponse
A match condition that incoming traffic is evaluated against. If it evaluates to true, the corresponding 'action' is enforced.
NetworkMatch This property is required. SecurityPolicyRuleNetworkMatcherResponse
A match condition that incoming packets are evaluated against for CLOUD_ARMOR_NETWORK security policies. If it matches, the corresponding 'action' is enforced. The match criteria for a rule consists of built-in match fields (like 'srcIpRanges') and potentially multiple user-defined match fields ('userDefinedFields'). Field values may be extracted directly from the packet or derived from it (e.g. 'srcRegionCodes'). Some fields may not be present in every packet (e.g. 'srcPorts'). A user-defined field is only present if the base header is found in the packet and the entire field is in bounds. Each match field may specify which values can match it, listing one or more ranges, prefixes, or exact values that are considered a match for the field. A field value must be present in order to match a specified match field. If no match values are specified for a match field, then any field value is considered to match it, and it's not required to be present. For strings specifying '*' is also equivalent to match all. For a packet to match a rule, all specified match fields must match the corresponding field values derived from the packet. Example: networkMatch: srcIpRanges: - "192.0.2.0/24" - "198.51.100.0/24" userDefinedFields: - name: "ipv4_fragment_offset" values: - "1-0x1fff" The above match condition matches packets with a source IP in 192.0.2.0/24 or 198.51.100.0/24 and a user-defined field named "ipv4_fragment_offset" with a value between 1 and 0x1fff inclusive.
PreconfiguredWafConfig This property is required. SecurityPolicyRulePreconfiguredWafConfigResponse
Preconfigured WAF configuration to be applied for the rule. If the rule does not evaluate preconfigured WAF rules, i.e., if evaluatePreconfiguredWaf() is not used, this field will have no effect.
Preview This property is required. bool
If set to true, the specified action is not enforced.
Priority This property is required. 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 This property is required. SecurityPolicyRuleRateLimitOptionsResponse
Must be specified if the action is "rate_based_ban" or "throttle". Cannot be specified for any other actions.
RedirectOptions This property is required. SecurityPolicyRuleRedirectOptionsResponse
Parameters defining the redirect action. Cannot be specified for any other actions. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
RedirectTarget This property is required. string
This must be specified for redirect actions. Cannot be specified for any other actions.
RuleManagedProtectionTier This property is required. string
The minimum managed protection tier required for this rule. [Deprecated] Use requiredManagedProtectionTiers instead.

Deprecated: [Output Only] The minimum managed protection tier required for this rule. [Deprecated] Use requiredManagedProtectionTiers instead.

RuleNumber This property is required. string
Identifier for the rule. This is only unique within the given security policy. This can only be set during rule creation, if rule number is not specified it will be generated by the server.
RuleTupleCount This property is required. int
Calculation of the complexity of a single firewall security policy rule.
TargetResources This property is required. []string
A list of network resource URLs to which this rule applies. This field allows you to control which network's VMs get this rule. If this field is left blank, all VMs within the organization will receive the rule. This field may only be specified when versioned_expr is set to FIREWALL.
TargetServiceAccounts This property is required. []string
A list of service accounts indicating the sets of instances that are applied with this rule.
action This property is required. String
The Action to perform when the rule is matched. The following are the valid actions: - allow: allow access to target. - deny(STATUS): deny access to target, returns the HTTP response code specified. Valid values for STATUS 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. This action is only supported in Global Security Policies of type CLOUD_ARMOR. - 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 This property is required. String
An optional description of this resource. Provide this property when you create the resource.
direction This property is required. String
The direction in which this rule applies. This field may only be specified when versioned_expr is set to FIREWALL.
enableLogging This property is required. Boolean
Denotes whether to enable logging for a particular rule. If logging is enabled, logs will be exported to the configured export destination in Stackdriver. Logs may be exported to BigQuery or Pub/Sub. Note: you cannot enable logging on "goto_next" rules. This field may only be specified when the versioned_expr is set to FIREWALL.
headerAction This property is required. SecurityPolicyRuleHttpHeaderActionResponse
Optional, additional actions that are performed on headers. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
kind This property is required. String
[Output only] Type of the resource. Always compute#securityPolicyRule for security policy rules
match This property is required. SecurityPolicyRuleMatcherResponse
A match condition that incoming traffic is evaluated against. If it evaluates to true, the corresponding 'action' is enforced.
networkMatch This property is required. SecurityPolicyRuleNetworkMatcherResponse
A match condition that incoming packets are evaluated against for CLOUD_ARMOR_NETWORK security policies. If it matches, the corresponding 'action' is enforced. The match criteria for a rule consists of built-in match fields (like 'srcIpRanges') and potentially multiple user-defined match fields ('userDefinedFields'). Field values may be extracted directly from the packet or derived from it (e.g. 'srcRegionCodes'). Some fields may not be present in every packet (e.g. 'srcPorts'). A user-defined field is only present if the base header is found in the packet and the entire field is in bounds. Each match field may specify which values can match it, listing one or more ranges, prefixes, or exact values that are considered a match for the field. A field value must be present in order to match a specified match field. If no match values are specified for a match field, then any field value is considered to match it, and it's not required to be present. For strings specifying '*' is also equivalent to match all. For a packet to match a rule, all specified match fields must match the corresponding field values derived from the packet. Example: networkMatch: srcIpRanges: - "192.0.2.0/24" - "198.51.100.0/24" userDefinedFields: - name: "ipv4_fragment_offset" values: - "1-0x1fff" The above match condition matches packets with a source IP in 192.0.2.0/24 or 198.51.100.0/24 and a user-defined field named "ipv4_fragment_offset" with a value between 1 and 0x1fff inclusive.
preconfiguredWafConfig This property is required. SecurityPolicyRulePreconfiguredWafConfigResponse
Preconfigured WAF configuration to be applied for the rule. If the rule does not evaluate preconfigured WAF rules, i.e., if evaluatePreconfiguredWaf() is not used, this field will have no effect.
preview This property is required. Boolean
If set to true, the specified action is not enforced.
priority This property is required. 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 This property is required. SecurityPolicyRuleRateLimitOptionsResponse
Must be specified if the action is "rate_based_ban" or "throttle". Cannot be specified for any other actions.
redirectOptions This property is required. SecurityPolicyRuleRedirectOptionsResponse
Parameters defining the redirect action. Cannot be specified for any other actions. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
redirectTarget This property is required. String
This must be specified for redirect actions. Cannot be specified for any other actions.
ruleManagedProtectionTier This property is required. String
The minimum managed protection tier required for this rule. [Deprecated] Use requiredManagedProtectionTiers instead.

Deprecated: [Output Only] The minimum managed protection tier required for this rule. [Deprecated] Use requiredManagedProtectionTiers instead.

ruleNumber This property is required. String
Identifier for the rule. This is only unique within the given security policy. This can only be set during rule creation, if rule number is not specified it will be generated by the server.
ruleTupleCount This property is required. Integer
Calculation of the complexity of a single firewall security policy rule.
targetResources This property is required. List<String>
A list of network resource URLs to which this rule applies. This field allows you to control which network's VMs get this rule. If this field is left blank, all VMs within the organization will receive the rule. This field may only be specified when versioned_expr is set to FIREWALL.
targetServiceAccounts This property is required. List<String>
A list of service accounts indicating the sets of instances that are applied with this rule.
action This property is required. string
The Action to perform when the rule is matched. The following are the valid actions: - allow: allow access to target. - deny(STATUS): deny access to target, returns the HTTP response code specified. Valid values for STATUS 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. This action is only supported in Global Security Policies of type CLOUD_ARMOR. - 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 This property is required. string
An optional description of this resource. Provide this property when you create the resource.
direction This property is required. string
The direction in which this rule applies. This field may only be specified when versioned_expr is set to FIREWALL.
enableLogging This property is required. boolean
Denotes whether to enable logging for a particular rule. If logging is enabled, logs will be exported to the configured export destination in Stackdriver. Logs may be exported to BigQuery or Pub/Sub. Note: you cannot enable logging on "goto_next" rules. This field may only be specified when the versioned_expr is set to FIREWALL.
headerAction This property is required. SecurityPolicyRuleHttpHeaderActionResponse
Optional, additional actions that are performed on headers. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
kind This property is required. string
[Output only] Type of the resource. Always compute#securityPolicyRule for security policy rules
match This property is required. SecurityPolicyRuleMatcherResponse
A match condition that incoming traffic is evaluated against. If it evaluates to true, the corresponding 'action' is enforced.
networkMatch This property is required. SecurityPolicyRuleNetworkMatcherResponse
A match condition that incoming packets are evaluated against for CLOUD_ARMOR_NETWORK security policies. If it matches, the corresponding 'action' is enforced. The match criteria for a rule consists of built-in match fields (like 'srcIpRanges') and potentially multiple user-defined match fields ('userDefinedFields'). Field values may be extracted directly from the packet or derived from it (e.g. 'srcRegionCodes'). Some fields may not be present in every packet (e.g. 'srcPorts'). A user-defined field is only present if the base header is found in the packet and the entire field is in bounds. Each match field may specify which values can match it, listing one or more ranges, prefixes, or exact values that are considered a match for the field. A field value must be present in order to match a specified match field. If no match values are specified for a match field, then any field value is considered to match it, and it's not required to be present. For strings specifying '*' is also equivalent to match all. For a packet to match a rule, all specified match fields must match the corresponding field values derived from the packet. Example: networkMatch: srcIpRanges: - "192.0.2.0/24" - "198.51.100.0/24" userDefinedFields: - name: "ipv4_fragment_offset" values: - "1-0x1fff" The above match condition matches packets with a source IP in 192.0.2.0/24 or 198.51.100.0/24 and a user-defined field named "ipv4_fragment_offset" with a value between 1 and 0x1fff inclusive.
preconfiguredWafConfig This property is required. SecurityPolicyRulePreconfiguredWafConfigResponse
Preconfigured WAF configuration to be applied for the rule. If the rule does not evaluate preconfigured WAF rules, i.e., if evaluatePreconfiguredWaf() is not used, this field will have no effect.
preview This property is required. boolean
If set to true, the specified action is not enforced.
priority This property is required. 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 This property is required. SecurityPolicyRuleRateLimitOptionsResponse
Must be specified if the action is "rate_based_ban" or "throttle". Cannot be specified for any other actions.
redirectOptions This property is required. SecurityPolicyRuleRedirectOptionsResponse
Parameters defining the redirect action. Cannot be specified for any other actions. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
redirectTarget This property is required. string
This must be specified for redirect actions. Cannot be specified for any other actions.
ruleManagedProtectionTier This property is required. string
The minimum managed protection tier required for this rule. [Deprecated] Use requiredManagedProtectionTiers instead.

Deprecated: [Output Only] The minimum managed protection tier required for this rule. [Deprecated] Use requiredManagedProtectionTiers instead.

ruleNumber This property is required. string
Identifier for the rule. This is only unique within the given security policy. This can only be set during rule creation, if rule number is not specified it will be generated by the server.
ruleTupleCount This property is required. number
Calculation of the complexity of a single firewall security policy rule.
targetResources This property is required. string[]
A list of network resource URLs to which this rule applies. This field allows you to control which network's VMs get this rule. If this field is left blank, all VMs within the organization will receive the rule. This field may only be specified when versioned_expr is set to FIREWALL.
targetServiceAccounts This property is required. string[]
A list of service accounts indicating the sets of instances that are applied with this rule.
action This property is required. str
The Action to perform when the rule is matched. The following are the valid actions: - allow: allow access to target. - deny(STATUS): deny access to target, returns the HTTP response code specified. Valid values for STATUS 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. This action is only supported in Global Security Policies of type CLOUD_ARMOR. - 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 This property is required. str
An optional description of this resource. Provide this property when you create the resource.
direction This property is required. str
The direction in which this rule applies. This field may only be specified when versioned_expr is set to FIREWALL.
enable_logging This property is required. bool
Denotes whether to enable logging for a particular rule. If logging is enabled, logs will be exported to the configured export destination in Stackdriver. Logs may be exported to BigQuery or Pub/Sub. Note: you cannot enable logging on "goto_next" rules. This field may only be specified when the versioned_expr is set to FIREWALL.
header_action This property is required. SecurityPolicyRuleHttpHeaderActionResponse
Optional, additional actions that are performed on headers. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
kind This property is required. str
[Output only] Type of the resource. Always compute#securityPolicyRule for security policy rules
match This property is required. SecurityPolicyRuleMatcherResponse
A match condition that incoming traffic is evaluated against. If it evaluates to true, the corresponding 'action' is enforced.
network_match This property is required. SecurityPolicyRuleNetworkMatcherResponse
A match condition that incoming packets are evaluated against for CLOUD_ARMOR_NETWORK security policies. If it matches, the corresponding 'action' is enforced. The match criteria for a rule consists of built-in match fields (like 'srcIpRanges') and potentially multiple user-defined match fields ('userDefinedFields'). Field values may be extracted directly from the packet or derived from it (e.g. 'srcRegionCodes'). Some fields may not be present in every packet (e.g. 'srcPorts'). A user-defined field is only present if the base header is found in the packet and the entire field is in bounds. Each match field may specify which values can match it, listing one or more ranges, prefixes, or exact values that are considered a match for the field. A field value must be present in order to match a specified match field. If no match values are specified for a match field, then any field value is considered to match it, and it's not required to be present. For strings specifying '*' is also equivalent to match all. For a packet to match a rule, all specified match fields must match the corresponding field values derived from the packet. Example: networkMatch: srcIpRanges: - "192.0.2.0/24" - "198.51.100.0/24" userDefinedFields: - name: "ipv4_fragment_offset" values: - "1-0x1fff" The above match condition matches packets with a source IP in 192.0.2.0/24 or 198.51.100.0/24 and a user-defined field named "ipv4_fragment_offset" with a value between 1 and 0x1fff inclusive.
preconfigured_waf_config This property is required. SecurityPolicyRulePreconfiguredWafConfigResponse
Preconfigured WAF configuration to be applied for the rule. If the rule does not evaluate preconfigured WAF rules, i.e., if evaluatePreconfiguredWaf() is not used, this field will have no effect.
preview This property is required. bool
If set to true, the specified action is not enforced.
priority This property is required. 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 This property is required. SecurityPolicyRuleRateLimitOptionsResponse
Must be specified if the action is "rate_based_ban" or "throttle". Cannot be specified for any other actions.
redirect_options This property is required. SecurityPolicyRuleRedirectOptionsResponse
Parameters defining the redirect action. Cannot be specified for any other actions. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
redirect_target This property is required. str
This must be specified for redirect actions. Cannot be specified for any other actions.
rule_managed_protection_tier This property is required. str
The minimum managed protection tier required for this rule. [Deprecated] Use requiredManagedProtectionTiers instead.

Deprecated: [Output Only] The minimum managed protection tier required for this rule. [Deprecated] Use requiredManagedProtectionTiers instead.

rule_number This property is required. str
Identifier for the rule. This is only unique within the given security policy. This can only be set during rule creation, if rule number is not specified it will be generated by the server.
rule_tuple_count This property is required. int
Calculation of the complexity of a single firewall security policy rule.
target_resources This property is required. Sequence[str]
A list of network resource URLs to which this rule applies. This field allows you to control which network's VMs get this rule. If this field is left blank, all VMs within the organization will receive the rule. This field may only be specified when versioned_expr is set to FIREWALL.
target_service_accounts This property is required. Sequence[str]
A list of service accounts indicating the sets of instances that are applied with this rule.
action This property is required. String
The Action to perform when the rule is matched. The following are the valid actions: - allow: allow access to target. - deny(STATUS): deny access to target, returns the HTTP response code specified. Valid values for STATUS 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. This action is only supported in Global Security Policies of type CLOUD_ARMOR. - 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 This property is required. String
An optional description of this resource. Provide this property when you create the resource.
direction This property is required. String
The direction in which this rule applies. This field may only be specified when versioned_expr is set to FIREWALL.
enableLogging This property is required. Boolean
Denotes whether to enable logging for a particular rule. If logging is enabled, logs will be exported to the configured export destination in Stackdriver. Logs may be exported to BigQuery or Pub/Sub. Note: you cannot enable logging on "goto_next" rules. This field may only be specified when the versioned_expr is set to FIREWALL.
headerAction This property is required. Property Map
Optional, additional actions that are performed on headers. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
kind This property is required. String
[Output only] Type of the resource. Always compute#securityPolicyRule for security policy rules
match This property is required. Property Map
A match condition that incoming traffic is evaluated against. If it evaluates to true, the corresponding 'action' is enforced.
networkMatch This property is required. Property Map
A match condition that incoming packets are evaluated against for CLOUD_ARMOR_NETWORK security policies. If it matches, the corresponding 'action' is enforced. The match criteria for a rule consists of built-in match fields (like 'srcIpRanges') and potentially multiple user-defined match fields ('userDefinedFields'). Field values may be extracted directly from the packet or derived from it (e.g. 'srcRegionCodes'). Some fields may not be present in every packet (e.g. 'srcPorts'). A user-defined field is only present if the base header is found in the packet and the entire field is in bounds. Each match field may specify which values can match it, listing one or more ranges, prefixes, or exact values that are considered a match for the field. A field value must be present in order to match a specified match field. If no match values are specified for a match field, then any field value is considered to match it, and it's not required to be present. For strings specifying '*' is also equivalent to match all. For a packet to match a rule, all specified match fields must match the corresponding field values derived from the packet. Example: networkMatch: srcIpRanges: - "192.0.2.0/24" - "198.51.100.0/24" userDefinedFields: - name: "ipv4_fragment_offset" values: - "1-0x1fff" The above match condition matches packets with a source IP in 192.0.2.0/24 or 198.51.100.0/24 and a user-defined field named "ipv4_fragment_offset" with a value between 1 and 0x1fff inclusive.
preconfiguredWafConfig This property is required. Property Map
Preconfigured WAF configuration to be applied for the rule. If the rule does not evaluate preconfigured WAF rules, i.e., if evaluatePreconfiguredWaf() is not used, this field will have no effect.
preview This property is required. Boolean
If set to true, the specified action is not enforced.
priority This property is required. 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 This property is required. Property Map
Must be specified if the action is "rate_based_ban" or "throttle". Cannot be specified for any other actions.
redirectOptions This property is required. Property Map
Parameters defining the redirect action. Cannot be specified for any other actions. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
redirectTarget This property is required. String
This must be specified for redirect actions. Cannot be specified for any other actions.
ruleManagedProtectionTier This property is required. String
The minimum managed protection tier required for this rule. [Deprecated] Use requiredManagedProtectionTiers instead.

Deprecated: [Output Only] The minimum managed protection tier required for this rule. [Deprecated] Use requiredManagedProtectionTiers instead.

ruleNumber This property is required. String
Identifier for the rule. This is only unique within the given security policy. This can only be set during rule creation, if rule number is not specified it will be generated by the server.
ruleTupleCount This property is required. Number
Calculation of the complexity of a single firewall security policy rule.
targetResources This property is required. List<String>
A list of network resource URLs to which this rule applies. This field allows you to control which network's VMs get this rule. If this field is left blank, all VMs within the organization will receive the rule. This field may only be specified when versioned_expr is set to FIREWALL.
targetServiceAccounts This property is required. List<String>
A list of service accounts indicating the sets of instances that are applied with this rule.

SecurityPolicyUserDefinedFieldResponse

Base This property is required. string
The base relative to which 'offset' is measured. Possible values are: - IPV4: Points to the beginning of the IPv4 header. - IPV6: Points to the beginning of the IPv6 header. - TCP: Points to the beginning of the TCP header, skipping over any IPv4 options or IPv6 extension headers. Not present for non-first fragments. - UDP: Points to the beginning of the UDP header, skipping over any IPv4 options or IPv6 extension headers. Not present for non-first fragments. required
Mask This property is required. string
If specified, apply this mask (bitwise AND) to the field to ignore bits before matching. Encoded as a hexadecimal number (starting with "0x"). The last byte of the field (in network byte order) corresponds to the least significant byte of the mask.
Name This property is required. string
The name of this field. Must be unique within the policy.
Offset This property is required. int
Offset of the first byte of the field (in network byte order) relative to 'base'.
Size This property is required. int
Size of the field in bytes. Valid values: 1-4.
Base This property is required. string
The base relative to which 'offset' is measured. Possible values are: - IPV4: Points to the beginning of the IPv4 header. - IPV6: Points to the beginning of the IPv6 header. - TCP: Points to the beginning of the TCP header, skipping over any IPv4 options or IPv6 extension headers. Not present for non-first fragments. - UDP: Points to the beginning of the UDP header, skipping over any IPv4 options or IPv6 extension headers. Not present for non-first fragments. required
Mask This property is required. string
If specified, apply this mask (bitwise AND) to the field to ignore bits before matching. Encoded as a hexadecimal number (starting with "0x"). The last byte of the field (in network byte order) corresponds to the least significant byte of the mask.
Name This property is required. string
The name of this field. Must be unique within the policy.
Offset This property is required. int
Offset of the first byte of the field (in network byte order) relative to 'base'.
Size This property is required. int
Size of the field in bytes. Valid values: 1-4.
base This property is required. String
The base relative to which 'offset' is measured. Possible values are: - IPV4: Points to the beginning of the IPv4 header. - IPV6: Points to the beginning of the IPv6 header. - TCP: Points to the beginning of the TCP header, skipping over any IPv4 options or IPv6 extension headers. Not present for non-first fragments. - UDP: Points to the beginning of the UDP header, skipping over any IPv4 options or IPv6 extension headers. Not present for non-first fragments. required
mask This property is required. String
If specified, apply this mask (bitwise AND) to the field to ignore bits before matching. Encoded as a hexadecimal number (starting with "0x"). The last byte of the field (in network byte order) corresponds to the least significant byte of the mask.
name This property is required. String
The name of this field. Must be unique within the policy.
offset This property is required. Integer
Offset of the first byte of the field (in network byte order) relative to 'base'.
size This property is required. Integer
Size of the field in bytes. Valid values: 1-4.
base This property is required. string
The base relative to which 'offset' is measured. Possible values are: - IPV4: Points to the beginning of the IPv4 header. - IPV6: Points to the beginning of the IPv6 header. - TCP: Points to the beginning of the TCP header, skipping over any IPv4 options or IPv6 extension headers. Not present for non-first fragments. - UDP: Points to the beginning of the UDP header, skipping over any IPv4 options or IPv6 extension headers. Not present for non-first fragments. required
mask This property is required. string
If specified, apply this mask (bitwise AND) to the field to ignore bits before matching. Encoded as a hexadecimal number (starting with "0x"). The last byte of the field (in network byte order) corresponds to the least significant byte of the mask.
name This property is required. string
The name of this field. Must be unique within the policy.
offset This property is required. number
Offset of the first byte of the field (in network byte order) relative to 'base'.
size This property is required. number
Size of the field in bytes. Valid values: 1-4.
base This property is required. str
The base relative to which 'offset' is measured. Possible values are: - IPV4: Points to the beginning of the IPv4 header. - IPV6: Points to the beginning of the IPv6 header. - TCP: Points to the beginning of the TCP header, skipping over any IPv4 options or IPv6 extension headers. Not present for non-first fragments. - UDP: Points to the beginning of the UDP header, skipping over any IPv4 options or IPv6 extension headers. Not present for non-first fragments. required
mask This property is required. str
If specified, apply this mask (bitwise AND) to the field to ignore bits before matching. Encoded as a hexadecimal number (starting with "0x"). The last byte of the field (in network byte order) corresponds to the least significant byte of the mask.
name This property is required. str
The name of this field. Must be unique within the policy.
offset This property is required. int
Offset of the first byte of the field (in network byte order) relative to 'base'.
size This property is required. int
Size of the field in bytes. Valid values: 1-4.
base This property is required. String
The base relative to which 'offset' is measured. Possible values are: - IPV4: Points to the beginning of the IPv4 header. - IPV6: Points to the beginning of the IPv6 header. - TCP: Points to the beginning of the TCP header, skipping over any IPv4 options or IPv6 extension headers. Not present for non-first fragments. - UDP: Points to the beginning of the UDP header, skipping over any IPv4 options or IPv6 extension headers. Not present for non-first fragments. required
mask This property is required. String
If specified, apply this mask (bitwise AND) to the field to ignore bits before matching. Encoded as a hexadecimal number (starting with "0x"). The last byte of the field (in network byte order) corresponds to the least significant byte of the mask.
name This property is required. String
The name of this field. Must be unique within the policy.
offset This property is required. Number
Offset of the first byte of the field (in network byte order) relative to 'base'.
size This property is required. Number
Size of the field in bytes. Valid values: 1-4.

Package Details

Repository
Google Cloud Native pulumi/pulumi-google-native
License
Apache-2.0

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi