1. Packages
  2. Google Cloud Native
  3. API Docs
  4. compute
  5. compute/v1
  6. RegionSecurityPolicy

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/v1.RegionSecurityPolicy

Explore with Pulumi AI

google-native logo

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

    Creates a new policy in the specified project using the data included in the request.

    Create RegionSecurityPolicy Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new RegionSecurityPolicy(name: string, args: RegionSecurityPolicyArgs, opts?: CustomResourceOptions);
    @overload
    def RegionSecurityPolicy(resource_name: str,
                             args: RegionSecurityPolicyArgs,
                             opts: Optional[ResourceOptions] = None)
    
    @overload
    def RegionSecurityPolicy(resource_name: str,
                             opts: Optional[ResourceOptions] = None,
                             region: Optional[str] = None,
                             project: Optional[str] = None,
                             ddos_protection_config: Optional[SecurityPolicyDdosProtectionConfigArgs] = None,
                             description: Optional[str] = None,
                             labels: Optional[Mapping[str, str]] = None,
                             name: Optional[str] = None,
                             adaptive_protection_config: Optional[SecurityPolicyAdaptiveProtectionConfigArgs] = None,
                             recaptcha_options_config: Optional[SecurityPolicyRecaptchaOptionsConfigArgs] = None,
                             advanced_options_config: Optional[SecurityPolicyAdvancedOptionsConfigArgs] = None,
                             request_id: Optional[str] = None,
                             rules: Optional[Sequence[SecurityPolicyRuleArgs]] = None,
                             type: Optional[RegionSecurityPolicyType] = None,
                             user_defined_fields: Optional[Sequence[SecurityPolicyUserDefinedFieldArgs]] = None)
    func NewRegionSecurityPolicy(ctx *Context, name string, args RegionSecurityPolicyArgs, opts ...ResourceOption) (*RegionSecurityPolicy, error)
    public RegionSecurityPolicy(string name, RegionSecurityPolicyArgs args, CustomResourceOptions? opts = null)
    public RegionSecurityPolicy(String name, RegionSecurityPolicyArgs args)
    public RegionSecurityPolicy(String name, RegionSecurityPolicyArgs args, CustomResourceOptions options)
    
    type: google-native:compute/v1:RegionSecurityPolicy
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args RegionSecurityPolicyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args RegionSecurityPolicyArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args RegionSecurityPolicyArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args RegionSecurityPolicyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args RegionSecurityPolicyArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var exampleregionSecurityPolicyResourceResourceFromComputev1 = new GoogleNative.Compute.V1.RegionSecurityPolicy("exampleregionSecurityPolicyResourceResourceFromComputev1", new()
    {
        Region = "string",
        Project = "string",
        DdosProtectionConfig = new GoogleNative.Compute.V1.Inputs.SecurityPolicyDdosProtectionConfigArgs
        {
            DdosProtection = GoogleNative.Compute.V1.SecurityPolicyDdosProtectionConfigDdosProtection.Advanced,
        },
        Description = "string",
        Labels = 
        {
            { "string", "string" },
        },
        Name = "string",
        AdaptiveProtectionConfig = new GoogleNative.Compute.V1.Inputs.SecurityPolicyAdaptiveProtectionConfigArgs
        {
            Layer7DdosDefenseConfig = new GoogleNative.Compute.V1.Inputs.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigArgs
            {
                Enable = false,
                RuleVisibility = GoogleNative.Compute.V1.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigRuleVisibility.Premium,
                ThresholdConfigs = new[]
                {
                    new GoogleNative.Compute.V1.Inputs.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigArgs
                    {
                        AutoDeployConfidenceThreshold = 0,
                        AutoDeployExpirationSec = 0,
                        AutoDeployImpactedBaselineThreshold = 0,
                        AutoDeployLoadThreshold = 0,
                        Name = "string",
                    },
                },
            },
        },
        RecaptchaOptionsConfig = new GoogleNative.Compute.V1.Inputs.SecurityPolicyRecaptchaOptionsConfigArgs
        {
            RedirectSiteKey = "string",
        },
        AdvancedOptionsConfig = new GoogleNative.Compute.V1.Inputs.SecurityPolicyAdvancedOptionsConfigArgs
        {
            JsonCustomConfig = new GoogleNative.Compute.V1.Inputs.SecurityPolicyAdvancedOptionsConfigJsonCustomConfigArgs
            {
                ContentTypes = new[]
                {
                    "string",
                },
            },
            JsonParsing = GoogleNative.Compute.V1.SecurityPolicyAdvancedOptionsConfigJsonParsing.Disabled,
            LogLevel = GoogleNative.Compute.V1.SecurityPolicyAdvancedOptionsConfigLogLevel.Normal,
            UserIpRequestHeaders = new[]
            {
                "string",
            },
        },
        RequestId = "string",
        Rules = new[]
        {
            new GoogleNative.Compute.V1.Inputs.SecurityPolicyRuleArgs
            {
                Action = "string",
                Description = "string",
                HeaderAction = new GoogleNative.Compute.V1.Inputs.SecurityPolicyRuleHttpHeaderActionArgs
                {
                    RequestHeadersToAdds = new[]
                    {
                        new GoogleNative.Compute.V1.Inputs.SecurityPolicyRuleHttpHeaderActionHttpHeaderOptionArgs
                        {
                            HeaderName = "string",
                            HeaderValue = "string",
                        },
                    },
                },
                Match = new GoogleNative.Compute.V1.Inputs.SecurityPolicyRuleMatcherArgs
                {
                    Config = new GoogleNative.Compute.V1.Inputs.SecurityPolicyRuleMatcherConfigArgs
                    {
                        SrcIpRanges = new[]
                        {
                            "string",
                        },
                    },
                    Expr = new GoogleNative.Compute.V1.Inputs.ExprArgs
                    {
                        Description = "string",
                        Expression = "string",
                        Location = "string",
                        Title = "string",
                    },
                    VersionedExpr = GoogleNative.Compute.V1.SecurityPolicyRuleMatcherVersionedExpr.SrcIpsV1,
                },
                NetworkMatch = new GoogleNative.Compute.V1.Inputs.SecurityPolicyRuleNetworkMatcherArgs
                {
                    DestIpRanges = new[]
                    {
                        "string",
                    },
                    DestPorts = new[]
                    {
                        "string",
                    },
                    IpProtocols = new[]
                    {
                        "string",
                    },
                    SrcAsns = new[]
                    {
                        0,
                    },
                    SrcIpRanges = new[]
                    {
                        "string",
                    },
                    SrcPorts = new[]
                    {
                        "string",
                    },
                    SrcRegionCodes = new[]
                    {
                        "string",
                    },
                    UserDefinedFields = new[]
                    {
                        new GoogleNative.Compute.V1.Inputs.SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatchArgs
                        {
                            Name = "string",
                            Values = new[]
                            {
                                "string",
                            },
                        },
                    },
                },
                PreconfiguredWafConfig = new GoogleNative.Compute.V1.Inputs.SecurityPolicyRulePreconfiguredWafConfigArgs
                {
                    Exclusions = new[]
                    {
                        new GoogleNative.Compute.V1.Inputs.SecurityPolicyRulePreconfiguredWafConfigExclusionArgs
                        {
                            RequestCookiesToExclude = new[]
                            {
                                new GoogleNative.Compute.V1.Inputs.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsArgs
                                {
                                    Op = GoogleNative.Compute.V1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsOp.Contains,
                                    Val = "string",
                                },
                            },
                            RequestHeadersToExclude = new[]
                            {
                                new GoogleNative.Compute.V1.Inputs.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsArgs
                                {
                                    Op = GoogleNative.Compute.V1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsOp.Contains,
                                    Val = "string",
                                },
                            },
                            RequestQueryParamsToExclude = new[]
                            {
                                new GoogleNative.Compute.V1.Inputs.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsArgs
                                {
                                    Op = GoogleNative.Compute.V1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsOp.Contains,
                                    Val = "string",
                                },
                            },
                            RequestUrisToExclude = new[]
                            {
                                new GoogleNative.Compute.V1.Inputs.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsArgs
                                {
                                    Op = GoogleNative.Compute.V1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsOp.Contains,
                                    Val = "string",
                                },
                            },
                            TargetRuleIds = new[]
                            {
                                "string",
                            },
                            TargetRuleSet = "string",
                        },
                    },
                },
                Preview = false,
                Priority = 0,
                RateLimitOptions = new GoogleNative.Compute.V1.Inputs.SecurityPolicyRuleRateLimitOptionsArgs
                {
                    BanDurationSec = 0,
                    BanThreshold = new GoogleNative.Compute.V1.Inputs.SecurityPolicyRuleRateLimitOptionsThresholdArgs
                    {
                        Count = 0,
                        IntervalSec = 0,
                    },
                    ConformAction = "string",
                    EnforceOnKey = GoogleNative.Compute.V1.SecurityPolicyRuleRateLimitOptionsEnforceOnKey.All,
                    EnforceOnKeyConfigs = new[]
                    {
                        new GoogleNative.Compute.V1.Inputs.SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfigArgs
                        {
                            EnforceOnKeyName = "string",
                            EnforceOnKeyType = GoogleNative.Compute.V1.SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfigEnforceOnKeyType.All,
                        },
                    },
                    EnforceOnKeyName = "string",
                    ExceedAction = "string",
                    ExceedRedirectOptions = new GoogleNative.Compute.V1.Inputs.SecurityPolicyRuleRedirectOptionsArgs
                    {
                        Target = "string",
                        Type = GoogleNative.Compute.V1.SecurityPolicyRuleRedirectOptionsType.External302,
                    },
                    RateLimitThreshold = new GoogleNative.Compute.V1.Inputs.SecurityPolicyRuleRateLimitOptionsThresholdArgs
                    {
                        Count = 0,
                        IntervalSec = 0,
                    },
                },
                RedirectOptions = new GoogleNative.Compute.V1.Inputs.SecurityPolicyRuleRedirectOptionsArgs
                {
                    Target = "string",
                    Type = GoogleNative.Compute.V1.SecurityPolicyRuleRedirectOptionsType.External302,
                },
            },
        },
        Type = GoogleNative.Compute.V1.RegionSecurityPolicyType.CloudArmor,
        UserDefinedFields = new[]
        {
            new GoogleNative.Compute.V1.Inputs.SecurityPolicyUserDefinedFieldArgs
            {
                Base = GoogleNative.Compute.V1.SecurityPolicyUserDefinedFieldBase.Ipv4,
                Mask = "string",
                Name = "string",
                Offset = 0,
                Size = 0,
            },
        },
    });
    
    example, err := computev1.NewRegionSecurityPolicy(ctx, "exampleregionSecurityPolicyResourceResourceFromComputev1", &computev1.RegionSecurityPolicyArgs{
    Region: pulumi.String("string"),
    Project: pulumi.String("string"),
    DdosProtectionConfig: &compute.SecurityPolicyDdosProtectionConfigArgs{
    DdosProtection: computev1.SecurityPolicyDdosProtectionConfigDdosProtectionAdvanced,
    },
    Description: pulumi.String("string"),
    Labels: pulumi.StringMap{
    "string": pulumi.String("string"),
    },
    Name: pulumi.String("string"),
    AdaptiveProtectionConfig: &compute.SecurityPolicyAdaptiveProtectionConfigArgs{
    Layer7DdosDefenseConfig: &compute.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigArgs{
    Enable: pulumi.Bool(false),
    RuleVisibility: computev1.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigRuleVisibilityPremium,
    ThresholdConfigs: compute.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigArray{
    &compute.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigArgs{
    AutoDeployConfidenceThreshold: pulumi.Float64(0),
    AutoDeployExpirationSec: pulumi.Int(0),
    AutoDeployImpactedBaselineThreshold: pulumi.Float64(0),
    AutoDeployLoadThreshold: pulumi.Float64(0),
    Name: pulumi.String("string"),
    },
    },
    },
    },
    RecaptchaOptionsConfig: &compute.SecurityPolicyRecaptchaOptionsConfigArgs{
    RedirectSiteKey: pulumi.String("string"),
    },
    AdvancedOptionsConfig: &compute.SecurityPolicyAdvancedOptionsConfigArgs{
    JsonCustomConfig: &compute.SecurityPolicyAdvancedOptionsConfigJsonCustomConfigArgs{
    ContentTypes: pulumi.StringArray{
    pulumi.String("string"),
    },
    },
    JsonParsing: computev1.SecurityPolicyAdvancedOptionsConfigJsonParsingDisabled,
    LogLevel: computev1.SecurityPolicyAdvancedOptionsConfigLogLevelNormal,
    UserIpRequestHeaders: pulumi.StringArray{
    pulumi.String("string"),
    },
    },
    RequestId: pulumi.String("string"),
    Rules: compute.SecurityPolicyRuleArray{
    &compute.SecurityPolicyRuleArgs{
    Action: pulumi.String("string"),
    Description: pulumi.String("string"),
    HeaderAction: &compute.SecurityPolicyRuleHttpHeaderActionArgs{
    RequestHeadersToAdds: compute.SecurityPolicyRuleHttpHeaderActionHttpHeaderOptionArray{
    &compute.SecurityPolicyRuleHttpHeaderActionHttpHeaderOptionArgs{
    HeaderName: pulumi.String("string"),
    HeaderValue: pulumi.String("string"),
    },
    },
    },
    Match: &compute.SecurityPolicyRuleMatcherArgs{
    Config: &compute.SecurityPolicyRuleMatcherConfigArgs{
    SrcIpRanges: pulumi.StringArray{
    pulumi.String("string"),
    },
    },
    Expr: &compute.ExprArgs{
    Description: pulumi.String("string"),
    Expression: pulumi.String("string"),
    Location: pulumi.String("string"),
    Title: pulumi.String("string"),
    },
    VersionedExpr: computev1.SecurityPolicyRuleMatcherVersionedExprSrcIpsV1,
    },
    NetworkMatch: &compute.SecurityPolicyRuleNetworkMatcherArgs{
    DestIpRanges: pulumi.StringArray{
    pulumi.String("string"),
    },
    DestPorts: pulumi.StringArray{
    pulumi.String("string"),
    },
    IpProtocols: pulumi.StringArray{
    pulumi.String("string"),
    },
    SrcAsns: pulumi.IntArray{
    pulumi.Int(0),
    },
    SrcIpRanges: pulumi.StringArray{
    pulumi.String("string"),
    },
    SrcPorts: pulumi.StringArray{
    pulumi.String("string"),
    },
    SrcRegionCodes: pulumi.StringArray{
    pulumi.String("string"),
    },
    UserDefinedFields: compute.SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatchArray{
    &compute.SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatchArgs{
    Name: pulumi.String("string"),
    Values: pulumi.StringArray{
    pulumi.String("string"),
    },
    },
    },
    },
    PreconfiguredWafConfig: &compute.SecurityPolicyRulePreconfiguredWafConfigArgs{
    Exclusions: compute.SecurityPolicyRulePreconfiguredWafConfigExclusionArray{
    &compute.SecurityPolicyRulePreconfiguredWafConfigExclusionArgs{
    RequestCookiesToExclude: compute.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsArray{
    &compute.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsArgs{
    Op: computev1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsOpContains,
    Val: pulumi.String("string"),
    },
    },
    RequestHeadersToExclude: compute.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsArray{
    &compute.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsArgs{
    Op: computev1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsOpContains,
    Val: pulumi.String("string"),
    },
    },
    RequestQueryParamsToExclude: compute.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsArray{
    &compute.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsArgs{
    Op: computev1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsOpContains,
    Val: pulumi.String("string"),
    },
    },
    RequestUrisToExclude: compute.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsArray{
    &compute.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsArgs{
    Op: computev1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsOpContains,
    Val: pulumi.String("string"),
    },
    },
    TargetRuleIds: pulumi.StringArray{
    pulumi.String("string"),
    },
    TargetRuleSet: pulumi.String("string"),
    },
    },
    },
    Preview: pulumi.Bool(false),
    Priority: pulumi.Int(0),
    RateLimitOptions: &compute.SecurityPolicyRuleRateLimitOptionsArgs{
    BanDurationSec: pulumi.Int(0),
    BanThreshold: &compute.SecurityPolicyRuleRateLimitOptionsThresholdArgs{
    Count: pulumi.Int(0),
    IntervalSec: pulumi.Int(0),
    },
    ConformAction: pulumi.String("string"),
    EnforceOnKey: computev1.SecurityPolicyRuleRateLimitOptionsEnforceOnKeyAll,
    EnforceOnKeyConfigs: compute.SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfigArray{
    &compute.SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfigArgs{
    EnforceOnKeyName: pulumi.String("string"),
    EnforceOnKeyType: computev1.SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfigEnforceOnKeyTypeAll,
    },
    },
    EnforceOnKeyName: pulumi.String("string"),
    ExceedAction: pulumi.String("string"),
    ExceedRedirectOptions: &compute.SecurityPolicyRuleRedirectOptionsArgs{
    Target: pulumi.String("string"),
    Type: computev1.SecurityPolicyRuleRedirectOptionsTypeExternal302,
    },
    RateLimitThreshold: &compute.SecurityPolicyRuleRateLimitOptionsThresholdArgs{
    Count: pulumi.Int(0),
    IntervalSec: pulumi.Int(0),
    },
    },
    RedirectOptions: &compute.SecurityPolicyRuleRedirectOptionsArgs{
    Target: pulumi.String("string"),
    Type: computev1.SecurityPolicyRuleRedirectOptionsTypeExternal302,
    },
    },
    },
    Type: computev1.RegionSecurityPolicyTypeCloudArmor,
    UserDefinedFields: compute.SecurityPolicyUserDefinedFieldArray{
    &compute.SecurityPolicyUserDefinedFieldArgs{
    Base: computev1.SecurityPolicyUserDefinedFieldBaseIpv4,
    Mask: pulumi.String("string"),
    Name: pulumi.String("string"),
    Offset: pulumi.Int(0),
    Size: pulumi.Int(0),
    },
    },
    })
    
    var exampleregionSecurityPolicyResourceResourceFromComputev1 = new RegionSecurityPolicy("exampleregionSecurityPolicyResourceResourceFromComputev1", RegionSecurityPolicyArgs.builder()
        .region("string")
        .project("string")
        .ddosProtectionConfig(SecurityPolicyDdosProtectionConfigArgs.builder()
            .ddosProtection("ADVANCED")
            .build())
        .description("string")
        .labels(Map.of("string", "string"))
        .name("string")
        .adaptiveProtectionConfig(SecurityPolicyAdaptiveProtectionConfigArgs.builder()
            .layer7DdosDefenseConfig(SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigArgs.builder()
                .enable(false)
                .ruleVisibility("PREMIUM")
                .thresholdConfigs(SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigArgs.builder()
                    .autoDeployConfidenceThreshold(0)
                    .autoDeployExpirationSec(0)
                    .autoDeployImpactedBaselineThreshold(0)
                    .autoDeployLoadThreshold(0)
                    .name("string")
                    .build())
                .build())
            .build())
        .recaptchaOptionsConfig(SecurityPolicyRecaptchaOptionsConfigArgs.builder()
            .redirectSiteKey("string")
            .build())
        .advancedOptionsConfig(SecurityPolicyAdvancedOptionsConfigArgs.builder()
            .jsonCustomConfig(SecurityPolicyAdvancedOptionsConfigJsonCustomConfigArgs.builder()
                .contentTypes("string")
                .build())
            .jsonParsing("DISABLED")
            .logLevel("NORMAL")
            .userIpRequestHeaders("string")
            .build())
        .requestId("string")
        .rules(SecurityPolicyRuleArgs.builder()
            .action("string")
            .description("string")
            .headerAction(SecurityPolicyRuleHttpHeaderActionArgs.builder()
                .requestHeadersToAdds(SecurityPolicyRuleHttpHeaderActionHttpHeaderOptionArgs.builder()
                    .headerName("string")
                    .headerValue("string")
                    .build())
                .build())
            .match(SecurityPolicyRuleMatcherArgs.builder()
                .config(SecurityPolicyRuleMatcherConfigArgs.builder()
                    .srcIpRanges("string")
                    .build())
                .expr(ExprArgs.builder()
                    .description("string")
                    .expression("string")
                    .location("string")
                    .title("string")
                    .build())
                .versionedExpr("SRC_IPS_V1")
                .build())
            .networkMatch(SecurityPolicyRuleNetworkMatcherArgs.builder()
                .destIpRanges("string")
                .destPorts("string")
                .ipProtocols("string")
                .srcAsns(0)
                .srcIpRanges("string")
                .srcPorts("string")
                .srcRegionCodes("string")
                .userDefinedFields(SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatchArgs.builder()
                    .name("string")
                    .values("string")
                    .build())
                .build())
            .preconfiguredWafConfig(SecurityPolicyRulePreconfiguredWafConfigArgs.builder()
                .exclusions(SecurityPolicyRulePreconfiguredWafConfigExclusionArgs.builder()
                    .requestCookiesToExclude(SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsArgs.builder()
                        .op("CONTAINS")
                        .val("string")
                        .build())
                    .requestHeadersToExclude(SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsArgs.builder()
                        .op("CONTAINS")
                        .val("string")
                        .build())
                    .requestQueryParamsToExclude(SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsArgs.builder()
                        .op("CONTAINS")
                        .val("string")
                        .build())
                    .requestUrisToExclude(SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsArgs.builder()
                        .op("CONTAINS")
                        .val("string")
                        .build())
                    .targetRuleIds("string")
                    .targetRuleSet("string")
                    .build())
                .build())
            .preview(false)
            .priority(0)
            .rateLimitOptions(SecurityPolicyRuleRateLimitOptionsArgs.builder()
                .banDurationSec(0)
                .banThreshold(SecurityPolicyRuleRateLimitOptionsThresholdArgs.builder()
                    .count(0)
                    .intervalSec(0)
                    .build())
                .conformAction("string")
                .enforceOnKey("ALL")
                .enforceOnKeyConfigs(SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfigArgs.builder()
                    .enforceOnKeyName("string")
                    .enforceOnKeyType("ALL")
                    .build())
                .enforceOnKeyName("string")
                .exceedAction("string")
                .exceedRedirectOptions(SecurityPolicyRuleRedirectOptionsArgs.builder()
                    .target("string")
                    .type("EXTERNAL_302")
                    .build())
                .rateLimitThreshold(SecurityPolicyRuleRateLimitOptionsThresholdArgs.builder()
                    .count(0)
                    .intervalSec(0)
                    .build())
                .build())
            .redirectOptions(SecurityPolicyRuleRedirectOptionsArgs.builder()
                .target("string")
                .type("EXTERNAL_302")
                .build())
            .build())
        .type("CLOUD_ARMOR")
        .userDefinedFields(SecurityPolicyUserDefinedFieldArgs.builder()
            .base("IPV4")
            .mask("string")
            .name("string")
            .offset(0)
            .size(0)
            .build())
        .build());
    
    exampleregion_security_policy_resource_resource_from_computev1 = google_native.compute.v1.RegionSecurityPolicy("exampleregionSecurityPolicyResourceResourceFromComputev1",
        region="string",
        project="string",
        ddos_protection_config=google_native.compute.v1.SecurityPolicyDdosProtectionConfigArgs(
            ddos_protection=google_native.compute.v1.SecurityPolicyDdosProtectionConfigDdosProtection.ADVANCED,
        ),
        description="string",
        labels={
            "string": "string",
        },
        name="string",
        adaptive_protection_config=google_native.compute.v1.SecurityPolicyAdaptiveProtectionConfigArgs(
            layer7_ddos_defense_config=google_native.compute.v1.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigArgs(
                enable=False,
                rule_visibility=google_native.compute.v1.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigRuleVisibility.PREMIUM,
                threshold_configs=[google_native.compute.v1.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigArgs(
                    auto_deploy_confidence_threshold=0,
                    auto_deploy_expiration_sec=0,
                    auto_deploy_impacted_baseline_threshold=0,
                    auto_deploy_load_threshold=0,
                    name="string",
                )],
            ),
        ),
        recaptcha_options_config=google_native.compute.v1.SecurityPolicyRecaptchaOptionsConfigArgs(
            redirect_site_key="string",
        ),
        advanced_options_config=google_native.compute.v1.SecurityPolicyAdvancedOptionsConfigArgs(
            json_custom_config=google_native.compute.v1.SecurityPolicyAdvancedOptionsConfigJsonCustomConfigArgs(
                content_types=["string"],
            ),
            json_parsing=google_native.compute.v1.SecurityPolicyAdvancedOptionsConfigJsonParsing.DISABLED,
            log_level=google_native.compute.v1.SecurityPolicyAdvancedOptionsConfigLogLevel.NORMAL,
            user_ip_request_headers=["string"],
        ),
        request_id="string",
        rules=[google_native.compute.v1.SecurityPolicyRuleArgs(
            action="string",
            description="string",
            header_action=google_native.compute.v1.SecurityPolicyRuleHttpHeaderActionArgs(
                request_headers_to_adds=[google_native.compute.v1.SecurityPolicyRuleHttpHeaderActionHttpHeaderOptionArgs(
                    header_name="string",
                    header_value="string",
                )],
            ),
            match=google_native.compute.v1.SecurityPolicyRuleMatcherArgs(
                config=google_native.compute.v1.SecurityPolicyRuleMatcherConfigArgs(
                    src_ip_ranges=["string"],
                ),
                expr=google_native.compute.v1.ExprArgs(
                    description="string",
                    expression="string",
                    location="string",
                    title="string",
                ),
                versioned_expr=google_native.compute.v1.SecurityPolicyRuleMatcherVersionedExpr.SRC_IPS_V1,
            ),
            network_match=google_native.compute.v1.SecurityPolicyRuleNetworkMatcherArgs(
                dest_ip_ranges=["string"],
                dest_ports=["string"],
                ip_protocols=["string"],
                src_asns=[0],
                src_ip_ranges=["string"],
                src_ports=["string"],
                src_region_codes=["string"],
                user_defined_fields=[google_native.compute.v1.SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatchArgs(
                    name="string",
                    values=["string"],
                )],
            ),
            preconfigured_waf_config=google_native.compute.v1.SecurityPolicyRulePreconfiguredWafConfigArgs(
                exclusions=[google_native.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionArgs(
                    request_cookies_to_exclude=[google_native.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsArgs(
                        op=google_native.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsOp.CONTAINS,
                        val="string",
                    )],
                    request_headers_to_exclude=[google_native.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsArgs(
                        op=google_native.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsOp.CONTAINS,
                        val="string",
                    )],
                    request_query_params_to_exclude=[google_native.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsArgs(
                        op=google_native.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsOp.CONTAINS,
                        val="string",
                    )],
                    request_uris_to_exclude=[google_native.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsArgs(
                        op=google_native.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsOp.CONTAINS,
                        val="string",
                    )],
                    target_rule_ids=["string"],
                    target_rule_set="string",
                )],
            ),
            preview=False,
            priority=0,
            rate_limit_options=google_native.compute.v1.SecurityPolicyRuleRateLimitOptionsArgs(
                ban_duration_sec=0,
                ban_threshold=google_native.compute.v1.SecurityPolicyRuleRateLimitOptionsThresholdArgs(
                    count=0,
                    interval_sec=0,
                ),
                conform_action="string",
                enforce_on_key=google_native.compute.v1.SecurityPolicyRuleRateLimitOptionsEnforceOnKey.ALL,
                enforce_on_key_configs=[google_native.compute.v1.SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfigArgs(
                    enforce_on_key_name="string",
                    enforce_on_key_type=google_native.compute.v1.SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfigEnforceOnKeyType.ALL,
                )],
                enforce_on_key_name="string",
                exceed_action="string",
                exceed_redirect_options=google_native.compute.v1.SecurityPolicyRuleRedirectOptionsArgs(
                    target="string",
                    type=google_native.compute.v1.SecurityPolicyRuleRedirectOptionsType.EXTERNAL302,
                ),
                rate_limit_threshold=google_native.compute.v1.SecurityPolicyRuleRateLimitOptionsThresholdArgs(
                    count=0,
                    interval_sec=0,
                ),
            ),
            redirect_options=google_native.compute.v1.SecurityPolicyRuleRedirectOptionsArgs(
                target="string",
                type=google_native.compute.v1.SecurityPolicyRuleRedirectOptionsType.EXTERNAL302,
            ),
        )],
        type=google_native.compute.v1.RegionSecurityPolicyType.CLOUD_ARMOR,
        user_defined_fields=[google_native.compute.v1.SecurityPolicyUserDefinedFieldArgs(
            base=google_native.compute.v1.SecurityPolicyUserDefinedFieldBase.IPV4,
            mask="string",
            name="string",
            offset=0,
            size=0,
        )])
    
    const exampleregionSecurityPolicyResourceResourceFromComputev1 = new google_native.compute.v1.RegionSecurityPolicy("exampleregionSecurityPolicyResourceResourceFromComputev1", {
        region: "string",
        project: "string",
        ddosProtectionConfig: {
            ddosProtection: google_native.compute.v1.SecurityPolicyDdosProtectionConfigDdosProtection.Advanced,
        },
        description: "string",
        labels: {
            string: "string",
        },
        name: "string",
        adaptiveProtectionConfig: {
            layer7DdosDefenseConfig: {
                enable: false,
                ruleVisibility: google_native.compute.v1.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigRuleVisibility.Premium,
                thresholdConfigs: [{
                    autoDeployConfidenceThreshold: 0,
                    autoDeployExpirationSec: 0,
                    autoDeployImpactedBaselineThreshold: 0,
                    autoDeployLoadThreshold: 0,
                    name: "string",
                }],
            },
        },
        recaptchaOptionsConfig: {
            redirectSiteKey: "string",
        },
        advancedOptionsConfig: {
            jsonCustomConfig: {
                contentTypes: ["string"],
            },
            jsonParsing: google_native.compute.v1.SecurityPolicyAdvancedOptionsConfigJsonParsing.Disabled,
            logLevel: google_native.compute.v1.SecurityPolicyAdvancedOptionsConfigLogLevel.Normal,
            userIpRequestHeaders: ["string"],
        },
        requestId: "string",
        rules: [{
            action: "string",
            description: "string",
            headerAction: {
                requestHeadersToAdds: [{
                    headerName: "string",
                    headerValue: "string",
                }],
            },
            match: {
                config: {
                    srcIpRanges: ["string"],
                },
                expr: {
                    description: "string",
                    expression: "string",
                    location: "string",
                    title: "string",
                },
                versionedExpr: google_native.compute.v1.SecurityPolicyRuleMatcherVersionedExpr.SrcIpsV1,
            },
            networkMatch: {
                destIpRanges: ["string"],
                destPorts: ["string"],
                ipProtocols: ["string"],
                srcAsns: [0],
                srcIpRanges: ["string"],
                srcPorts: ["string"],
                srcRegionCodes: ["string"],
                userDefinedFields: [{
                    name: "string",
                    values: ["string"],
                }],
            },
            preconfiguredWafConfig: {
                exclusions: [{
                    requestCookiesToExclude: [{
                        op: google_native.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsOp.Contains,
                        val: "string",
                    }],
                    requestHeadersToExclude: [{
                        op: google_native.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsOp.Contains,
                        val: "string",
                    }],
                    requestQueryParamsToExclude: [{
                        op: google_native.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsOp.Contains,
                        val: "string",
                    }],
                    requestUrisToExclude: [{
                        op: google_native.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsOp.Contains,
                        val: "string",
                    }],
                    targetRuleIds: ["string"],
                    targetRuleSet: "string",
                }],
            },
            preview: false,
            priority: 0,
            rateLimitOptions: {
                banDurationSec: 0,
                banThreshold: {
                    count: 0,
                    intervalSec: 0,
                },
                conformAction: "string",
                enforceOnKey: google_native.compute.v1.SecurityPolicyRuleRateLimitOptionsEnforceOnKey.All,
                enforceOnKeyConfigs: [{
                    enforceOnKeyName: "string",
                    enforceOnKeyType: google_native.compute.v1.SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfigEnforceOnKeyType.All,
                }],
                enforceOnKeyName: "string",
                exceedAction: "string",
                exceedRedirectOptions: {
                    target: "string",
                    type: google_native.compute.v1.SecurityPolicyRuleRedirectOptionsType.External302,
                },
                rateLimitThreshold: {
                    count: 0,
                    intervalSec: 0,
                },
            },
            redirectOptions: {
                target: "string",
                type: google_native.compute.v1.SecurityPolicyRuleRedirectOptionsType.External302,
            },
        }],
        type: google_native.compute.v1.RegionSecurityPolicyType.CloudArmor,
        userDefinedFields: [{
            base: google_native.compute.v1.SecurityPolicyUserDefinedFieldBase.Ipv4,
            mask: "string",
            name: "string",
            offset: 0,
            size: 0,
        }],
    });
    
    type: google-native:compute/v1:RegionSecurityPolicy
    properties:
        adaptiveProtectionConfig:
            layer7DdosDefenseConfig:
                enable: false
                ruleVisibility: PREMIUM
                thresholdConfigs:
                    - autoDeployConfidenceThreshold: 0
                      autoDeployExpirationSec: 0
                      autoDeployImpactedBaselineThreshold: 0
                      autoDeployLoadThreshold: 0
                      name: string
        advancedOptionsConfig:
            jsonCustomConfig:
                contentTypes:
                    - string
            jsonParsing: DISABLED
            logLevel: NORMAL
            userIpRequestHeaders:
                - string
        ddosProtectionConfig:
            ddosProtection: ADVANCED
        description: string
        labels:
            string: string
        name: string
        project: string
        recaptchaOptionsConfig:
            redirectSiteKey: string
        region: string
        requestId: string
        rules:
            - action: string
              description: string
              headerAction:
                requestHeadersToAdds:
                    - headerName: string
                      headerValue: string
              match:
                config:
                    srcIpRanges:
                        - string
                expr:
                    description: string
                    expression: string
                    location: string
                    title: string
                versionedExpr: SRC_IPS_V1
              networkMatch:
                destIpRanges:
                    - string
                destPorts:
                    - string
                ipProtocols:
                    - string
                srcAsns:
                    - 0
                srcIpRanges:
                    - string
                srcPorts:
                    - string
                srcRegionCodes:
                    - string
                userDefinedFields:
                    - name: string
                      values:
                        - string
              preconfiguredWafConfig:
                exclusions:
                    - requestCookiesToExclude:
                        - op: CONTAINS
                          val: string
                      requestHeadersToExclude:
                        - op: CONTAINS
                          val: string
                      requestQueryParamsToExclude:
                        - op: CONTAINS
                          val: string
                      requestUrisToExclude:
                        - op: CONTAINS
                          val: string
                      targetRuleIds:
                        - string
                      targetRuleSet: string
              preview: false
              priority: 0
              rateLimitOptions:
                banDurationSec: 0
                banThreshold:
                    count: 0
                    intervalSec: 0
                conformAction: string
                enforceOnKey: ALL
                enforceOnKeyConfigs:
                    - enforceOnKeyName: string
                      enforceOnKeyType: ALL
                enforceOnKeyName: string
                exceedAction: string
                exceedRedirectOptions:
                    target: string
                    type: EXTERNAL_302
                rateLimitThreshold:
                    count: 0
                    intervalSec: 0
              redirectOptions:
                target: string
                type: EXTERNAL_302
        type: CLOUD_ARMOR
        userDefinedFields:
            - base: IPV4
              mask: string
              name: string
              offset: 0
              size: 0
    

    RegionSecurityPolicy Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The RegionSecurityPolicy resource accepts the following input properties:

    Region string
    AdaptiveProtectionConfig Pulumi.GoogleNative.Compute.V1.Inputs.SecurityPolicyAdaptiveProtectionConfig
    AdvancedOptionsConfig Pulumi.GoogleNative.Compute.V1.Inputs.SecurityPolicyAdvancedOptionsConfig
    DdosProtectionConfig Pulumi.GoogleNative.Compute.V1.Inputs.SecurityPolicyDdosProtectionConfig
    Description string
    An optional description of this resource. Provide this property when you create the resource.
    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.
    Project string
    RecaptchaOptionsConfig Pulumi.GoogleNative.Compute.V1.Inputs.SecurityPolicyRecaptchaOptionsConfig
    RequestId string
    An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    Rules List<Pulumi.GoogleNative.Compute.V1.Inputs.SecurityPolicyRule>
    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.
    Type Pulumi.GoogleNative.Compute.V1.RegionSecurityPolicyType
    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.V1.Inputs.SecurityPolicyUserDefinedField>
    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"
    Region string
    AdaptiveProtectionConfig SecurityPolicyAdaptiveProtectionConfigArgs
    AdvancedOptionsConfig SecurityPolicyAdvancedOptionsConfigArgs
    DdosProtectionConfig SecurityPolicyDdosProtectionConfigArgs
    Description string
    An optional description of this resource. Provide this property when you create the resource.
    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.
    Project string
    RecaptchaOptionsConfig SecurityPolicyRecaptchaOptionsConfigArgs
    RequestId string
    An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    Rules []SecurityPolicyRuleArgs
    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.
    Type RegionSecurityPolicyType
    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 []SecurityPolicyUserDefinedFieldArgs
    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"
    region String
    adaptiveProtectionConfig SecurityPolicyAdaptiveProtectionConfig
    advancedOptionsConfig SecurityPolicyAdvancedOptionsConfig
    ddosProtectionConfig SecurityPolicyDdosProtectionConfig
    description String
    An optional description of this resource. Provide this property when you create the resource.
    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.
    project String
    recaptchaOptionsConfig SecurityPolicyRecaptchaOptionsConfig
    requestId String
    An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    rules List<SecurityPolicyRule>
    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.
    type RegionSecurityPolicyType
    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<SecurityPolicyUserDefinedField>
    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"
    region string
    adaptiveProtectionConfig SecurityPolicyAdaptiveProtectionConfig
    advancedOptionsConfig SecurityPolicyAdvancedOptionsConfig
    ddosProtectionConfig SecurityPolicyDdosProtectionConfig
    description string
    An optional description of this resource. Provide this property when you create the resource.
    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.
    project string
    recaptchaOptionsConfig SecurityPolicyRecaptchaOptionsConfig
    requestId string
    An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    rules SecurityPolicyRule[]
    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.
    type RegionSecurityPolicyType
    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 SecurityPolicyUserDefinedField[]
    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"
    region str
    adaptive_protection_config SecurityPolicyAdaptiveProtectionConfigArgs
    advanced_options_config SecurityPolicyAdvancedOptionsConfigArgs
    ddos_protection_config SecurityPolicyDdosProtectionConfigArgs
    description str
    An optional description of this resource. Provide this property when you create the resource.
    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.
    project str
    recaptcha_options_config SecurityPolicyRecaptchaOptionsConfigArgs
    request_id str
    An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    rules Sequence[SecurityPolicyRuleArgs]
    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.
    type RegionSecurityPolicyType
    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[SecurityPolicyUserDefinedFieldArgs]
    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"
    region String
    adaptiveProtectionConfig Property Map
    advancedOptionsConfig Property Map
    ddosProtectionConfig Property Map
    description String
    An optional description of this resource. Provide this property when you create the resource.
    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.
    project String
    recaptchaOptionsConfig Property Map
    requestId String
    An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    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.
    type "CLOUD_ARMOR" | "CLOUD_ARMOR_EDGE" | "CLOUD_ARMOR_NETWORK"
    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"

    Outputs

    All input properties are implicitly available as output properties. Additionally, the RegionSecurityPolicy resource produces the following output properties:

    CreationTimestamp string
    Creation timestamp in RFC3339 text format.
    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.
    Id string
    The provider-assigned unique ID for this managed resource.
    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.
    SelfLink string
    Server-defined URL for the resource.
    CreationTimestamp string
    Creation timestamp in RFC3339 text format.
    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.
    Id string
    The provider-assigned unique ID for this managed resource.
    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.
    SelfLink string
    Server-defined URL for the resource.
    creationTimestamp String
    Creation timestamp in RFC3339 text format.
    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.
    id String
    The provider-assigned unique ID for this managed resource.
    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.
    selfLink String
    Server-defined URL for the resource.
    creationTimestamp string
    Creation timestamp in RFC3339 text format.
    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.
    id string
    The provider-assigned unique ID for this managed resource.
    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.
    selfLink string
    Server-defined URL for the resource.
    creation_timestamp str
    Creation timestamp in RFC3339 text format.
    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.
    id str
    The provider-assigned unique ID for this managed resource.
    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.
    self_link str
    Server-defined URL for the resource.
    creationTimestamp String
    Creation timestamp in RFC3339 text format.
    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.
    id String
    The provider-assigned unique ID for this managed resource.
    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.
    selfLink String
    Server-defined URL for the resource.

    Supporting Types

    Expr, ExprArgs

    Description string
    Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
    Expression string
    Textual representation of an expression in Common Expression Language syntax.
    Location string
    Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
    Title string
    Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.
    Description string
    Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
    Expression string
    Textual representation of an expression in Common Expression Language syntax.
    Location string
    Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
    Title string
    Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.
    description String
    Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
    expression String
    Textual representation of an expression in Common Expression Language syntax.
    location String
    Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
    title String
    Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.
    description string
    Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
    expression string
    Textual representation of an expression in Common Expression Language syntax.
    location string
    Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
    title string
    Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.
    description str
    Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
    expression str
    Textual representation of an expression in Common Expression Language syntax.
    location str
    Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
    title str
    Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.
    description String
    Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
    expression String
    Textual representation of an expression in Common Expression Language syntax.
    location String
    Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
    title String
    Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.

    ExprResponse, ExprResponseArgs

    Description string
    Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
    Expression string
    Textual representation of an expression in Common Expression Language syntax.
    Location string
    Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
    Title string
    Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.
    Description string
    Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
    Expression string
    Textual representation of an expression in Common Expression Language syntax.
    Location string
    Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
    Title string
    Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.
    description String
    Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
    expression String
    Textual representation of an expression in Common Expression Language syntax.
    location String
    Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
    title String
    Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.
    description string
    Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
    expression string
    Textual representation of an expression in Common Expression Language syntax.
    location string
    Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
    title string
    Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.
    description str
    Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
    expression str
    Textual representation of an expression in Common Expression Language syntax.
    location str
    Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
    title str
    Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.
    description String
    Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
    expression String
    Textual representation of an expression in Common Expression Language syntax.
    location String
    Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
    title String
    Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.

    RegionSecurityPolicyType, RegionSecurityPolicyTypeArgs

    CloudArmor
    CLOUD_ARMOR
    CloudArmorEdge
    CLOUD_ARMOR_EDGE
    CloudArmorNetwork
    CLOUD_ARMOR_NETWORK
    RegionSecurityPolicyTypeCloudArmor
    CLOUD_ARMOR
    RegionSecurityPolicyTypeCloudArmorEdge
    CLOUD_ARMOR_EDGE
    RegionSecurityPolicyTypeCloudArmorNetwork
    CLOUD_ARMOR_NETWORK
    CloudArmor
    CLOUD_ARMOR
    CloudArmorEdge
    CLOUD_ARMOR_EDGE
    CloudArmorNetwork
    CLOUD_ARMOR_NETWORK
    CloudArmor
    CLOUD_ARMOR
    CloudArmorEdge
    CLOUD_ARMOR_EDGE
    CloudArmorNetwork
    CLOUD_ARMOR_NETWORK
    CLOUD_ARMOR
    CLOUD_ARMOR
    CLOUD_ARMOR_EDGE
    CLOUD_ARMOR_EDGE
    CLOUD_ARMOR_NETWORK
    CLOUD_ARMOR_NETWORK
    "CLOUD_ARMOR"
    CLOUD_ARMOR
    "CLOUD_ARMOR_EDGE"
    CLOUD_ARMOR_EDGE
    "CLOUD_ARMOR_NETWORK"
    CLOUD_ARMOR_NETWORK

    SecurityPolicyAdaptiveProtectionConfig, SecurityPolicyAdaptiveProtectionConfigArgs

    layer7DdosDefenseConfig Property Map
    If set to true, enables Cloud Armor Machine Learning.

    SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig, SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigArgs

    Enable 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 Pulumi.GoogleNative.Compute.V1.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigRuleVisibility
    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 List<Pulumi.GoogleNative.Compute.V1.Inputs.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig>
    Configuration options for layer7 adaptive protection for various customizable thresholds.
    Enable 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 SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigRuleVisibility
    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 []SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig
    Configuration options for layer7 adaptive protection for various customizable thresholds.
    enable 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 SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigRuleVisibility
    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 List<SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig>
    Configuration options for layer7 adaptive protection for various customizable thresholds.
    enable 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 SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigRuleVisibility
    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 SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig[]
    Configuration options for layer7 adaptive protection for various customizable thresholds.
    enable 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 SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigRuleVisibility
    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 Sequence[SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig]
    Configuration options for layer7 adaptive protection for various customizable thresholds.
    enable 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 "PREMIUM" | "STANDARD"
    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 List<Property Map>
    Configuration options for layer7 adaptive protection for various customizable thresholds.

    SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigResponse, SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigResponseArgs

    Enable 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 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 List<Pulumi.GoogleNative.Compute.V1.Inputs.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigResponse>
    Configuration options for layer7 adaptive protection for various customizable thresholds.
    Enable 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 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 []SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigResponse
    Configuration options for layer7 adaptive protection for various customizable thresholds.
    enable 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 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 List<SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigResponse>
    Configuration options for layer7 adaptive protection for various customizable thresholds.
    enable 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 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 SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigResponse[]
    Configuration options for layer7 adaptive protection for various customizable thresholds.
    enable 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 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 Sequence[SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigResponse]
    Configuration options for layer7 adaptive protection for various customizable thresholds.
    enable 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 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 List<Property Map>
    Configuration options for layer7 adaptive protection for various customizable thresholds.

    SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigRuleVisibility, SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigRuleVisibilityArgs

    Premium
    PREMIUM
    Standard
    STANDARD
    SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigRuleVisibilityPremium
    PREMIUM
    SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigRuleVisibilityStandard
    STANDARD
    Premium
    PREMIUM
    Standard
    STANDARD
    Premium
    PREMIUM
    Standard
    STANDARD
    PREMIUM
    PREMIUM
    STANDARD
    STANDARD
    "PREMIUM"
    PREMIUM
    "STANDARD"
    STANDARD

    SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig, SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigArgs

    AutoDeployConfidenceThreshold double
    AutoDeployExpirationSec int
    AutoDeployImpactedBaselineThreshold double
    AutoDeployLoadThreshold double
    Name string
    The name must be 1-63 characters long, and comply with RFC1035. The name must be unique within the security policy.
    AutoDeployConfidenceThreshold float64
    AutoDeployExpirationSec int
    AutoDeployImpactedBaselineThreshold float64
    AutoDeployLoadThreshold float64
    Name string
    The name must be 1-63 characters long, and comply with RFC1035. The name must be unique within the security policy.
    autoDeployConfidenceThreshold Double
    autoDeployExpirationSec Integer
    autoDeployImpactedBaselineThreshold Double
    autoDeployLoadThreshold Double
    name String
    The name must be 1-63 characters long, and comply with RFC1035. The name must be unique within the security policy.
    autoDeployConfidenceThreshold number
    autoDeployExpirationSec number
    autoDeployImpactedBaselineThreshold number
    autoDeployLoadThreshold number
    name 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 float
    auto_deploy_expiration_sec int
    auto_deploy_impacted_baseline_threshold float
    auto_deploy_load_threshold float
    name str
    The name must be 1-63 characters long, and comply with RFC1035. The name must be unique within the security policy.
    autoDeployConfidenceThreshold Number
    autoDeployExpirationSec Number
    autoDeployImpactedBaselineThreshold Number
    autoDeployLoadThreshold Number
    name String
    The name must be 1-63 characters long, and comply with RFC1035. The name must be unique within the security policy.

    SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigResponse, SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigResponseArgs

    AutoDeployConfidenceThreshold double
    AutoDeployExpirationSec int
    AutoDeployImpactedBaselineThreshold double
    AutoDeployLoadThreshold double
    Name string
    The name must be 1-63 characters long, and comply with RFC1035. The name must be unique within the security policy.
    AutoDeployConfidenceThreshold float64
    AutoDeployExpirationSec int
    AutoDeployImpactedBaselineThreshold float64
    AutoDeployLoadThreshold float64
    Name string
    The name must be 1-63 characters long, and comply with RFC1035. The name must be unique within the security policy.
    autoDeployConfidenceThreshold Double
    autoDeployExpirationSec Integer
    autoDeployImpactedBaselineThreshold Double
    autoDeployLoadThreshold Double
    name String
    The name must be 1-63 characters long, and comply with RFC1035. The name must be unique within the security policy.
    autoDeployConfidenceThreshold number
    autoDeployExpirationSec number
    autoDeployImpactedBaselineThreshold number
    autoDeployLoadThreshold number
    name 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 float
    auto_deploy_expiration_sec int
    auto_deploy_impacted_baseline_threshold float
    auto_deploy_load_threshold float
    name str
    The name must be 1-63 characters long, and comply with RFC1035. The name must be unique within the security policy.
    autoDeployConfidenceThreshold Number
    autoDeployExpirationSec Number
    autoDeployImpactedBaselineThreshold Number
    autoDeployLoadThreshold Number
    name String
    The name must be 1-63 characters long, and comply with RFC1035. The name must be unique within the security policy.

    SecurityPolicyAdaptiveProtectionConfigResponse, SecurityPolicyAdaptiveProtectionConfigResponseArgs

    layer7DdosDefenseConfig Property Map
    If set to true, enables Cloud Armor Machine Learning.

    SecurityPolicyAdvancedOptionsConfig, SecurityPolicyAdvancedOptionsConfigArgs

    JsonCustomConfig Pulumi.GoogleNative.Compute.V1.Inputs.SecurityPolicyAdvancedOptionsConfigJsonCustomConfig
    Custom configuration to apply the JSON parsing. Only applicable when json_parsing is set to STANDARD.
    JsonParsing Pulumi.GoogleNative.Compute.V1.SecurityPolicyAdvancedOptionsConfigJsonParsing
    LogLevel Pulumi.GoogleNative.Compute.V1.SecurityPolicyAdvancedOptionsConfigLogLevel
    UserIpRequestHeaders List<string>
    An optional list of case-insensitive request header names to use for resolving the callers client IP address.
    JsonCustomConfig SecurityPolicyAdvancedOptionsConfigJsonCustomConfig
    Custom configuration to apply the JSON parsing. Only applicable when json_parsing is set to STANDARD.
    JsonParsing SecurityPolicyAdvancedOptionsConfigJsonParsing
    LogLevel SecurityPolicyAdvancedOptionsConfigLogLevel
    UserIpRequestHeaders []string
    An optional list of case-insensitive request header names to use for resolving the callers client IP address.
    jsonCustomConfig SecurityPolicyAdvancedOptionsConfigJsonCustomConfig
    Custom configuration to apply the JSON parsing. Only applicable when json_parsing is set to STANDARD.
    jsonParsing SecurityPolicyAdvancedOptionsConfigJsonParsing
    logLevel SecurityPolicyAdvancedOptionsConfigLogLevel
    userIpRequestHeaders List<String>
    An optional list of case-insensitive request header names to use for resolving the callers client IP address.
    jsonCustomConfig SecurityPolicyAdvancedOptionsConfigJsonCustomConfig
    Custom configuration to apply the JSON parsing. Only applicable when json_parsing is set to STANDARD.
    jsonParsing SecurityPolicyAdvancedOptionsConfigJsonParsing
    logLevel SecurityPolicyAdvancedOptionsConfigLogLevel
    userIpRequestHeaders string[]
    An optional list of case-insensitive request header names to use for resolving the callers client IP address.
    json_custom_config SecurityPolicyAdvancedOptionsConfigJsonCustomConfig
    Custom configuration to apply the JSON parsing. Only applicable when json_parsing is set to STANDARD.
    json_parsing SecurityPolicyAdvancedOptionsConfigJsonParsing
    log_level SecurityPolicyAdvancedOptionsConfigLogLevel
    user_ip_request_headers Sequence[str]
    An optional list of case-insensitive request header names to use for resolving the callers client IP address.
    jsonCustomConfig Property Map
    Custom configuration to apply the JSON parsing. Only applicable when json_parsing is set to STANDARD.
    jsonParsing "DISABLED" | "STANDARD" | "STANDARD_WITH_GRAPHQL"
    logLevel "NORMAL" | "VERBOSE"
    userIpRequestHeaders List<String>
    An optional list of case-insensitive request header names to use for resolving the callers client IP address.

    SecurityPolicyAdvancedOptionsConfigJsonCustomConfig, SecurityPolicyAdvancedOptionsConfigJsonCustomConfigArgs

    ContentTypes 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 []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 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 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 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 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.

    SecurityPolicyAdvancedOptionsConfigJsonCustomConfigResponse, SecurityPolicyAdvancedOptionsConfigJsonCustomConfigResponseArgs

    ContentTypes 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 []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 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 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 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 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.

    SecurityPolicyAdvancedOptionsConfigJsonParsing, SecurityPolicyAdvancedOptionsConfigJsonParsingArgs

    Disabled
    DISABLED
    Standard
    STANDARD
    StandardWithGraphql
    STANDARD_WITH_GRAPHQL
    SecurityPolicyAdvancedOptionsConfigJsonParsingDisabled
    DISABLED
    SecurityPolicyAdvancedOptionsConfigJsonParsingStandard
    STANDARD
    SecurityPolicyAdvancedOptionsConfigJsonParsingStandardWithGraphql
    STANDARD_WITH_GRAPHQL
    Disabled
    DISABLED
    Standard
    STANDARD
    StandardWithGraphql
    STANDARD_WITH_GRAPHQL
    Disabled
    DISABLED
    Standard
    STANDARD
    StandardWithGraphql
    STANDARD_WITH_GRAPHQL
    DISABLED
    DISABLED
    STANDARD
    STANDARD
    STANDARD_WITH_GRAPHQL
    STANDARD_WITH_GRAPHQL
    "DISABLED"
    DISABLED
    "STANDARD"
    STANDARD
    "STANDARD_WITH_GRAPHQL"
    STANDARD_WITH_GRAPHQL

    SecurityPolicyAdvancedOptionsConfigLogLevel, SecurityPolicyAdvancedOptionsConfigLogLevelArgs

    Normal
    NORMAL
    Verbose
    VERBOSE
    SecurityPolicyAdvancedOptionsConfigLogLevelNormal
    NORMAL
    SecurityPolicyAdvancedOptionsConfigLogLevelVerbose
    VERBOSE
    Normal
    NORMAL
    Verbose
    VERBOSE
    Normal
    NORMAL
    Verbose
    VERBOSE
    NORMAL
    NORMAL
    VERBOSE
    VERBOSE
    "NORMAL"
    NORMAL
    "VERBOSE"
    VERBOSE

    SecurityPolicyAdvancedOptionsConfigResponse, SecurityPolicyAdvancedOptionsConfigResponseArgs

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

    SecurityPolicyDdosProtectionConfig, SecurityPolicyDdosProtectionConfigArgs

    SecurityPolicyDdosProtectionConfigDdosProtection, SecurityPolicyDdosProtectionConfigDdosProtectionArgs

    Advanced
    ADVANCED
    Standard
    STANDARD
    SecurityPolicyDdosProtectionConfigDdosProtectionAdvanced
    ADVANCED
    SecurityPolicyDdosProtectionConfigDdosProtectionStandard
    STANDARD
    Advanced
    ADVANCED
    Standard
    STANDARD
    Advanced
    ADVANCED
    Standard
    STANDARD
    ADVANCED
    ADVANCED
    STANDARD
    STANDARD
    "ADVANCED"
    ADVANCED
    "STANDARD"
    STANDARD

    SecurityPolicyDdosProtectionConfigResponse, SecurityPolicyDdosProtectionConfigResponseArgs

    SecurityPolicyRecaptchaOptionsConfig, SecurityPolicyRecaptchaOptionsConfigArgs

    RedirectSiteKey string
    An optional field to supply a reCAPTCHA site key to be used for all the rules using the redirect action with the type of GOOGLE_RECAPTCHA under the security policy. The specified site key needs to be created from the reCAPTCHA API. The user is responsible for the validity of the specified site key. If not specified, a Google-managed site key is used. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
    RedirectSiteKey string
    An optional field to supply a reCAPTCHA site key to be used for all the rules using the redirect action with the type of GOOGLE_RECAPTCHA under the security policy. The specified site key needs to be created from the reCAPTCHA API. The user is responsible for the validity of the specified site key. If not specified, a Google-managed site key is used. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
    redirectSiteKey String
    An optional field to supply a reCAPTCHA site key to be used for all the rules using the redirect action with the type of GOOGLE_RECAPTCHA under the security policy. The specified site key needs to be created from the reCAPTCHA API. The user is responsible for the validity of the specified site key. If not specified, a Google-managed site key is used. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
    redirectSiteKey string
    An optional field to supply a reCAPTCHA site key to be used for all the rules using the redirect action with the type of GOOGLE_RECAPTCHA under the security policy. The specified site key needs to be created from the reCAPTCHA API. The user is responsible for the validity of the specified site key. If not specified, a Google-managed site key is used. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
    redirect_site_key str
    An optional field to supply a reCAPTCHA site key to be used for all the rules using the redirect action with the type of GOOGLE_RECAPTCHA under the security policy. The specified site key needs to be created from the reCAPTCHA API. The user is responsible for the validity of the specified site key. If not specified, a Google-managed site key is used. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
    redirectSiteKey String
    An optional field to supply a reCAPTCHA site key to be used for all the rules using the redirect action with the type of GOOGLE_RECAPTCHA under the security policy. The specified site key needs to be created from the reCAPTCHA API. The user is responsible for the validity of the specified site key. If not specified, a Google-managed site key is used. This field is only supported in Global Security Policies of type CLOUD_ARMOR.

    SecurityPolicyRecaptchaOptionsConfigResponse, SecurityPolicyRecaptchaOptionsConfigResponseArgs

    RedirectSiteKey string
    An optional field to supply a reCAPTCHA site key to be used for all the rules using the redirect action with the type of GOOGLE_RECAPTCHA under the security policy. The specified site key needs to be created from the reCAPTCHA API. The user is responsible for the validity of the specified site key. If not specified, a Google-managed site key is used. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
    RedirectSiteKey string
    An optional field to supply a reCAPTCHA site key to be used for all the rules using the redirect action with the type of GOOGLE_RECAPTCHA under the security policy. The specified site key needs to be created from the reCAPTCHA API. The user is responsible for the validity of the specified site key. If not specified, a Google-managed site key is used. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
    redirectSiteKey String
    An optional field to supply a reCAPTCHA site key to be used for all the rules using the redirect action with the type of GOOGLE_RECAPTCHA under the security policy. The specified site key needs to be created from the reCAPTCHA API. The user is responsible for the validity of the specified site key. If not specified, a Google-managed site key is used. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
    redirectSiteKey string
    An optional field to supply a reCAPTCHA site key to be used for all the rules using the redirect action with the type of GOOGLE_RECAPTCHA under the security policy. The specified site key needs to be created from the reCAPTCHA API. The user is responsible for the validity of the specified site key. If not specified, a Google-managed site key is used. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
    redirect_site_key str
    An optional field to supply a reCAPTCHA site key to be used for all the rules using the redirect action with the type of GOOGLE_RECAPTCHA under the security policy. The specified site key needs to be created from the reCAPTCHA API. The user is responsible for the validity of the specified site key. If not specified, a Google-managed site key is used. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
    redirectSiteKey String
    An optional field to supply a reCAPTCHA site key to be used for all the rules using the redirect action with the type of GOOGLE_RECAPTCHA under the security policy. The specified site key needs to be created from the reCAPTCHA API. The user is responsible for the validity of the specified site key. If not specified, a Google-managed site key is used. This field is only supported in Global Security Policies of type CLOUD_ARMOR.

    SecurityPolicyRule, SecurityPolicyRuleArgs

    Action 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 string
    An optional description of this resource. Provide this property when you create the resource.
    HeaderAction Pulumi.GoogleNative.Compute.V1.Inputs.SecurityPolicyRuleHttpHeaderAction
    Optional, additional actions that are performed on headers. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
    Match Pulumi.GoogleNative.Compute.V1.Inputs.SecurityPolicyRuleMatcher
    A match condition that incoming traffic is evaluated against. If it evaluates to true, the corresponding 'action' is enforced.
    NetworkMatch Pulumi.GoogleNative.Compute.V1.Inputs.SecurityPolicyRuleNetworkMatcher
    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 Pulumi.GoogleNative.Compute.V1.Inputs.SecurityPolicyRulePreconfiguredWafConfig
    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 bool
    If set to true, the specified action is not enforced.
    Priority int
    An integer indicating the priority of a rule in the list. The priority must be a positive value between 0 and 2147483647. Rules are evaluated from highest to lowest priority where 0 is the highest priority and 2147483647 is the lowest priority.
    RateLimitOptions Pulumi.GoogleNative.Compute.V1.Inputs.SecurityPolicyRuleRateLimitOptions
    Must be specified if the action is "rate_based_ban" or "throttle". Cannot be specified for any other actions.
    RedirectOptions Pulumi.GoogleNative.Compute.V1.Inputs.SecurityPolicyRuleRedirectOptions
    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.
    Action 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 string
    An optional description of this resource. Provide this property when you create the resource.
    HeaderAction SecurityPolicyRuleHttpHeaderAction
    Optional, additional actions that are performed on headers. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
    Match SecurityPolicyRuleMatcher
    A match condition that incoming traffic is evaluated against. If it evaluates to true, the corresponding 'action' is enforced.
    NetworkMatch SecurityPolicyRuleNetworkMatcher
    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 SecurityPolicyRulePreconfiguredWafConfig
    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 bool
    If set to true, the specified action is not enforced.
    Priority int
    An integer indicating the priority of a rule in the list. The priority must be a positive value between 0 and 2147483647. Rules are evaluated from highest to lowest priority where 0 is the highest priority and 2147483647 is the lowest priority.
    RateLimitOptions SecurityPolicyRuleRateLimitOptions
    Must be specified if the action is "rate_based_ban" or "throttle". Cannot be specified for any other actions.
    RedirectOptions SecurityPolicyRuleRedirectOptions
    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.
    action 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 String
    An optional description of this resource. Provide this property when you create the resource.
    headerAction SecurityPolicyRuleHttpHeaderAction
    Optional, additional actions that are performed on headers. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
    match SecurityPolicyRuleMatcher
    A match condition that incoming traffic is evaluated against. If it evaluates to true, the corresponding 'action' is enforced.
    networkMatch SecurityPolicyRuleNetworkMatcher
    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 SecurityPolicyRulePreconfiguredWafConfig
    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 Boolean
    If set to true, the specified action is not enforced.
    priority Integer
    An integer indicating the priority of a rule in the list. The priority must be a positive value between 0 and 2147483647. Rules are evaluated from highest to lowest priority where 0 is the highest priority and 2147483647 is the lowest priority.
    rateLimitOptions SecurityPolicyRuleRateLimitOptions
    Must be specified if the action is "rate_based_ban" or "throttle". Cannot be specified for any other actions.
    redirectOptions SecurityPolicyRuleRedirectOptions
    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.
    action 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 string
    An optional description of this resource. Provide this property when you create the resource.
    headerAction SecurityPolicyRuleHttpHeaderAction
    Optional, additional actions that are performed on headers. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
    match SecurityPolicyRuleMatcher
    A match condition that incoming traffic is evaluated against. If it evaluates to true, the corresponding 'action' is enforced.
    networkMatch SecurityPolicyRuleNetworkMatcher
    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 SecurityPolicyRulePreconfiguredWafConfig
    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 boolean
    If set to true, the specified action is not enforced.
    priority number
    An integer indicating the priority of a rule in the list. The priority must be a positive value between 0 and 2147483647. Rules are evaluated from highest to lowest priority where 0 is the highest priority and 2147483647 is the lowest priority.
    rateLimitOptions SecurityPolicyRuleRateLimitOptions
    Must be specified if the action is "rate_based_ban" or "throttle". Cannot be specified for any other actions.
    redirectOptions SecurityPolicyRuleRedirectOptions
    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.
    action 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 str
    An optional description of this resource. Provide this property when you create the resource.
    header_action SecurityPolicyRuleHttpHeaderAction
    Optional, additional actions that are performed on headers. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
    match SecurityPolicyRuleMatcher
    A match condition that incoming traffic is evaluated against. If it evaluates to true, the corresponding 'action' is enforced.
    network_match SecurityPolicyRuleNetworkMatcher
    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 SecurityPolicyRulePreconfiguredWafConfig
    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 bool
    If set to true, the specified action is not enforced.
    priority int
    An integer indicating the priority of a rule in the list. The priority must be a positive value between 0 and 2147483647. Rules are evaluated from highest to lowest priority where 0 is the highest priority and 2147483647 is the lowest priority.
    rate_limit_options SecurityPolicyRuleRateLimitOptions
    Must be specified if the action is "rate_based_ban" or "throttle". Cannot be specified for any other actions.
    redirect_options SecurityPolicyRuleRedirectOptions
    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.
    action 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 String
    An optional description of this resource. Provide this property when you create the resource.
    headerAction Property Map
    Optional, additional actions that are performed on headers. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
    match Property Map
    A match condition that incoming traffic is evaluated against. If it evaluates to true, the corresponding 'action' is enforced.
    networkMatch 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 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 Boolean
    If set to true, the specified action is not enforced.
    priority Number
    An integer indicating the priority of a rule in the list. The priority must be a positive value between 0 and 2147483647. Rules are evaluated from highest to lowest priority where 0 is the highest priority and 2147483647 is the lowest priority.
    rateLimitOptions Property Map
    Must be specified if the action is "rate_based_ban" or "throttle". Cannot be specified for any other actions.
    redirectOptions Property Map
    Parameters defining the redirect action. Cannot be specified for any other actions. This field is only supported in Global Security Policies of type CLOUD_ARMOR.

    SecurityPolicyRuleHttpHeaderAction, SecurityPolicyRuleHttpHeaderActionArgs

    RequestHeadersToAdds List<Pulumi.GoogleNative.Compute.V1.Inputs.SecurityPolicyRuleHttpHeaderActionHttpHeaderOption>
    The list of request headers to add or overwrite if they're already present.
    RequestHeadersToAdds []SecurityPolicyRuleHttpHeaderActionHttpHeaderOption
    The list of request headers to add or overwrite if they're already present.
    requestHeadersToAdds List<SecurityPolicyRuleHttpHeaderActionHttpHeaderOption>
    The list of request headers to add or overwrite if they're already present.
    requestHeadersToAdds SecurityPolicyRuleHttpHeaderActionHttpHeaderOption[]
    The list of request headers to add or overwrite if they're already present.
    request_headers_to_adds Sequence[SecurityPolicyRuleHttpHeaderActionHttpHeaderOption]
    The list of request headers to add or overwrite if they're already present.
    requestHeadersToAdds List<Property Map>
    The list of request headers to add or overwrite if they're already present.

    SecurityPolicyRuleHttpHeaderActionHttpHeaderOption, SecurityPolicyRuleHttpHeaderActionHttpHeaderOptionArgs

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

    SecurityPolicyRuleHttpHeaderActionHttpHeaderOptionResponse, SecurityPolicyRuleHttpHeaderActionHttpHeaderOptionResponseArgs

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

    SecurityPolicyRuleHttpHeaderActionResponse, SecurityPolicyRuleHttpHeaderActionResponseArgs

    RequestHeadersToAdds []SecurityPolicyRuleHttpHeaderActionHttpHeaderOptionResponse
    The list of request headers to add or overwrite if they're already present.
    requestHeadersToAdds List<SecurityPolicyRuleHttpHeaderActionHttpHeaderOptionResponse>
    The list of request headers to add or overwrite if they're already present.
    requestHeadersToAdds SecurityPolicyRuleHttpHeaderActionHttpHeaderOptionResponse[]
    The list of request headers to add or overwrite if they're already present.
    request_headers_to_adds Sequence[SecurityPolicyRuleHttpHeaderActionHttpHeaderOptionResponse]
    The list of request headers to add or overwrite if they're already present.
    requestHeadersToAdds List<Property Map>
    The list of request headers to add or overwrite if they're already present.

    SecurityPolicyRuleMatcher, SecurityPolicyRuleMatcherArgs

    Config Pulumi.GoogleNative.Compute.V1.Inputs.SecurityPolicyRuleMatcherConfig
    The configuration options available when specifying versioned_expr. This field must be specified if versioned_expr is specified and cannot be specified if versioned_expr is not specified.
    Expr Pulumi.GoogleNative.Compute.V1.Inputs.Expr
    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.
    VersionedExpr Pulumi.GoogleNative.Compute.V1.SecurityPolicyRuleMatcherVersionedExpr
    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 SecurityPolicyRuleMatcherConfig
    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 Expr
    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.
    VersionedExpr SecurityPolicyRuleMatcherVersionedExpr
    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 SecurityPolicyRuleMatcherConfig
    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 Expr
    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.
    versionedExpr SecurityPolicyRuleMatcherVersionedExpr
    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 SecurityPolicyRuleMatcherConfig
    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 Expr
    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.
    versionedExpr SecurityPolicyRuleMatcherVersionedExpr
    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 SecurityPolicyRuleMatcherConfig
    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 Expr
    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.
    versioned_expr SecurityPolicyRuleMatcherVersionedExpr
    Preconfigured versioned expression. If this field is specified, config must also be specified. Available preconfigured expressions along with their requirements are: SRC_IPS_V1 - must specify the corresponding src_ip_range field in config.
    config Property Map
    The configuration options available when specifying versioned_expr. This field must be specified if versioned_expr is specified and cannot be specified if versioned_expr is not specified.
    expr Property Map
    User defined CEVAL expression. A CEVAL expression is used to specify match criteria such as origin.ip, source.region_code and contents in the request header. 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.
    versionedExpr "SRC_IPS_V1"
    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.

    SecurityPolicyRuleMatcherConfig, SecurityPolicyRuleMatcherConfigArgs

    SrcIpRanges List<string>
    CIDR IP address range. Maximum number of src_ip_ranges allowed is 10.
    SrcIpRanges []string
    CIDR IP address range. Maximum number of src_ip_ranges allowed is 10.
    srcIpRanges List<String>
    CIDR IP address range. Maximum number of src_ip_ranges allowed is 10.
    srcIpRanges string[]
    CIDR IP address range. Maximum number of src_ip_ranges allowed is 10.
    src_ip_ranges Sequence[str]
    CIDR IP address range. Maximum number of src_ip_ranges allowed is 10.
    srcIpRanges List<String>
    CIDR IP address range. Maximum number of src_ip_ranges allowed is 10.

    SecurityPolicyRuleMatcherConfigResponse, SecurityPolicyRuleMatcherConfigResponseArgs

    SrcIpRanges List<string>
    CIDR IP address range. Maximum number of src_ip_ranges allowed is 10.
    SrcIpRanges []string
    CIDR IP address range. Maximum number of src_ip_ranges allowed is 10.
    srcIpRanges List<String>
    CIDR IP address range. Maximum number of src_ip_ranges allowed is 10.
    srcIpRanges string[]
    CIDR IP address range. Maximum number of src_ip_ranges allowed is 10.
    src_ip_ranges Sequence[str]
    CIDR IP address range. Maximum number of src_ip_ranges allowed is 10.
    srcIpRanges List<String>
    CIDR IP address range. Maximum number of src_ip_ranges allowed is 10.

    SecurityPolicyRuleMatcherResponse, SecurityPolicyRuleMatcherResponseArgs

    Config Pulumi.GoogleNative.Compute.V1.Inputs.SecurityPolicyRuleMatcherConfigResponse
    The configuration options available when specifying versioned_expr. This field must be specified if versioned_expr is specified and cannot be specified if versioned_expr is not specified.
    Expr Pulumi.GoogleNative.Compute.V1.Inputs.ExprResponse
    User defined CEVAL expression. A CEVAL expression is used to specify match criteria such as origin.ip, source.region_code and contents in the request header. 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.
    VersionedExpr string
    Preconfigured versioned expression. If this field is specified, config must also be specified. Available preconfigured expressions along with their requirements are: SRC_IPS_V1 - must specify the corresponding src_ip_range field in config.
    Config SecurityPolicyRuleMatcherConfigResponse
    The configuration options available when specifying versioned_expr. This field must be specified if versioned_expr is specified and cannot be specified if versioned_expr is not specified.
    Expr ExprResponse
    User defined CEVAL expression. A CEVAL expression is used to specify match criteria such as origin.ip, source.region_code and contents in the request header. 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.
    VersionedExpr string
    Preconfigured versioned expression. If this field is specified, config must also be specified. Available preconfigured expressions along with their requirements are: SRC_IPS_V1 - must specify the corresponding src_ip_range field in config.
    config SecurityPolicyRuleMatcherConfigResponse
    The configuration options available when specifying versioned_expr. This field must be specified if versioned_expr is specified and cannot be specified if versioned_expr is not specified.
    expr ExprResponse
    User defined CEVAL expression. A CEVAL expression is used to specify match criteria such as origin.ip, source.region_code and contents in the request header. 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.
    versionedExpr String
    Preconfigured versioned expression. If this field is specified, config must also be specified. Available preconfigured expressions along with their requirements are: SRC_IPS_V1 - must specify the corresponding src_ip_range field in config.
    config SecurityPolicyRuleMatcherConfigResponse
    The configuration options available when specifying versioned_expr. This field must be specified if versioned_expr is specified and cannot be specified if versioned_expr is not specified.
    expr ExprResponse
    User defined CEVAL expression. A CEVAL expression is used to specify match criteria such as origin.ip, source.region_code and contents in the request header. 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.
    versionedExpr string
    Preconfigured versioned expression. If this field is specified, config must also be specified. Available preconfigured expressions along with their requirements are: SRC_IPS_V1 - must specify the corresponding src_ip_range field in config.
    config SecurityPolicyRuleMatcherConfigResponse
    The configuration options available when specifying versioned_expr. This field must be specified if versioned_expr is specified and cannot be specified if versioned_expr is not specified.
    expr ExprResponse
    User defined CEVAL expression. A CEVAL expression is used to specify match criteria such as origin.ip, source.region_code and contents in the request header. 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.
    versioned_expr str
    Preconfigured versioned expression. If this field is specified, config must also be specified. Available preconfigured expressions along with their requirements are: SRC_IPS_V1 - must specify the corresponding src_ip_range field in config.
    config Property Map
    The configuration options available when specifying versioned_expr. This field must be specified if versioned_expr is specified and cannot be specified if versioned_expr is not specified.
    expr Property Map
    User defined CEVAL expression. A CEVAL expression is used to specify match criteria such as origin.ip, source.region_code and contents in the request header. 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.
    versionedExpr String
    Preconfigured versioned expression. If this field is specified, config must also be specified. Available preconfigured expressions along with their requirements are: SRC_IPS_V1 - must specify the corresponding src_ip_range field in config.

    SecurityPolicyRuleMatcherVersionedExpr, SecurityPolicyRuleMatcherVersionedExprArgs

    SrcIpsV1
    SRC_IPS_V1Matches the source IP address of a request to the IP ranges supplied in config.
    SecurityPolicyRuleMatcherVersionedExprSrcIpsV1
    SRC_IPS_V1Matches the source IP address of a request to the IP ranges supplied in config.
    SrcIpsV1
    SRC_IPS_V1Matches the source IP address of a request to the IP ranges supplied in config.
    SrcIpsV1
    SRC_IPS_V1Matches the source IP address of a request to the IP ranges supplied in config.
    SRC_IPS_V1
    SRC_IPS_V1Matches the source IP address of a request to the IP ranges supplied in config.
    "SRC_IPS_V1"
    SRC_IPS_V1Matches the source IP address of a request to the IP ranges supplied in config.

    SecurityPolicyRuleNetworkMatcher, SecurityPolicyRuleNetworkMatcherArgs

    DestIpRanges List<string>
    Destination IPv4/IPv6 addresses or CIDR prefixes, in standard text format.
    DestPorts 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 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 List<int>
    BGP Autonomous System Number associated with the source IP address.
    SrcIpRanges List<string>
    Source IPv4/IPv6 addresses or CIDR prefixes, in standard text format.
    SrcPorts 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 List<string>
    Two-letter ISO 3166-1 alpha-2 country code associated with the source IP address.
    UserDefinedFields List<Pulumi.GoogleNative.Compute.V1.Inputs.SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch>
    User-defined fields. Each element names a defined field and lists the matching values for that field.
    DestIpRanges []string
    Destination IPv4/IPv6 addresses or CIDR prefixes, in standard text format.
    DestPorts []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 []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 []int
    BGP Autonomous System Number associated with the source IP address.
    SrcIpRanges []string
    Source IPv4/IPv6 addresses or CIDR prefixes, in standard text format.
    SrcPorts []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 []string
    Two-letter ISO 3166-1 alpha-2 country code associated with the source IP address.
    UserDefinedFields []SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch
    User-defined fields. Each element names a defined field and lists the matching values for that field.
    destIpRanges List<String>
    Destination IPv4/IPv6 addresses or CIDR prefixes, in standard text format.
    destPorts 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 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 List<Integer>
    BGP Autonomous System Number associated with the source IP address.
    srcIpRanges List<String>
    Source IPv4/IPv6 addresses or CIDR prefixes, in standard text format.
    srcPorts 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 List<String>
    Two-letter ISO 3166-1 alpha-2 country code associated with the source IP address.
    userDefinedFields List<SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch>
    User-defined fields. Each element names a defined field and lists the matching values for that field.
    destIpRanges string[]
    Destination IPv4/IPv6 addresses or CIDR prefixes, in standard text format.
    destPorts 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 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 number[]
    BGP Autonomous System Number associated with the source IP address.
    srcIpRanges string[]
    Source IPv4/IPv6 addresses or CIDR prefixes, in standard text format.
    srcPorts 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 string[]
    Two-letter ISO 3166-1 alpha-2 country code associated with the source IP address.
    userDefinedFields SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch[]
    User-defined fields. Each element names a defined field and lists the matching values for that field.
    dest_ip_ranges Sequence[str]
    Destination IPv4/IPv6 addresses or CIDR prefixes, in standard text format.
    dest_ports 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 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 Sequence[int]
    BGP Autonomous System Number associated with the source IP address.
    src_ip_ranges Sequence[str]
    Source IPv4/IPv6 addresses or CIDR prefixes, in standard text format.
    src_ports 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 Sequence[str]
    Two-letter ISO 3166-1 alpha-2 country code associated with the source IP address.
    user_defined_fields Sequence[SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch]
    User-defined fields. Each element names a defined field and lists the matching values for that field.
    destIpRanges List<String>
    Destination IPv4/IPv6 addresses or CIDR prefixes, in standard text format.
    destPorts 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 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 List<Number>
    BGP Autonomous System Number associated with the source IP address.
    srcIpRanges List<String>
    Source IPv4/IPv6 addresses or CIDR prefixes, in standard text format.
    srcPorts 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 List<String>
    Two-letter ISO 3166-1 alpha-2 country code associated with the source IP address.
    userDefinedFields List<Property Map>
    User-defined fields. Each element names a defined field and lists the matching values for that field.

    SecurityPolicyRuleNetworkMatcherResponse, SecurityPolicyRuleNetworkMatcherResponseArgs

    DestIpRanges List<string>
    Destination IPv4/IPv6 addresses or CIDR prefixes, in standard text format.
    DestPorts 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 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 List<int>
    BGP Autonomous System Number associated with the source IP address.
    SrcIpRanges List<string>
    Source IPv4/IPv6 addresses or CIDR prefixes, in standard text format.
    SrcPorts 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 List<string>
    Two-letter ISO 3166-1 alpha-2 country code associated with the source IP address.
    UserDefinedFields List<Pulumi.GoogleNative.Compute.V1.Inputs.SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatchResponse>
    User-defined fields. Each element names a defined field and lists the matching values for that field.
    DestIpRanges []string
    Destination IPv4/IPv6 addresses or CIDR prefixes, in standard text format.
    DestPorts []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 []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 []int
    BGP Autonomous System Number associated with the source IP address.
    SrcIpRanges []string
    Source IPv4/IPv6 addresses or CIDR prefixes, in standard text format.
    SrcPorts []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 []string
    Two-letter ISO 3166-1 alpha-2 country code associated with the source IP address.
    UserDefinedFields []SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatchResponse
    User-defined fields. Each element names a defined field and lists the matching values for that field.
    destIpRanges List<String>
    Destination IPv4/IPv6 addresses or CIDR prefixes, in standard text format.
    destPorts 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 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 List<Integer>
    BGP Autonomous System Number associated with the source IP address.
    srcIpRanges List<String>
    Source IPv4/IPv6 addresses or CIDR prefixes, in standard text format.
    srcPorts 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 List<String>
    Two-letter ISO 3166-1 alpha-2 country code associated with the source IP address.
    userDefinedFields List<SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatchResponse>
    User-defined fields. Each element names a defined field and lists the matching values for that field.
    destIpRanges string[]
    Destination IPv4/IPv6 addresses or CIDR prefixes, in standard text format.
    destPorts 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 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 number[]
    BGP Autonomous System Number associated with the source IP address.
    srcIpRanges string[]
    Source IPv4/IPv6 addresses or CIDR prefixes, in standard text format.
    srcPorts 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 string[]
    Two-letter ISO 3166-1 alpha-2 country code associated with the source IP address.
    userDefinedFields SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatchResponse[]
    User-defined fields. Each element names a defined field and lists the matching values for that field.
    dest_ip_ranges Sequence[str]
    Destination IPv4/IPv6 addresses or CIDR prefixes, in standard text format.
    dest_ports 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 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 Sequence[int]
    BGP Autonomous System Number associated with the source IP address.
    src_ip_ranges Sequence[str]
    Source IPv4/IPv6 addresses or CIDR prefixes, in standard text format.
    src_ports 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 Sequence[str]
    Two-letter ISO 3166-1 alpha-2 country code associated with the source IP address.
    user_defined_fields Sequence[SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatchResponse]
    User-defined fields. Each element names a defined field and lists the matching values for that field.
    destIpRanges List<String>
    Destination IPv4/IPv6 addresses or CIDR prefixes, in standard text format.
    destPorts 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 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 List<Number>
    BGP Autonomous System Number associated with the source IP address.
    srcIpRanges List<String>
    Source IPv4/IPv6 addresses or CIDR prefixes, in standard text format.
    srcPorts 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 List<String>
    Two-letter ISO 3166-1 alpha-2 country code associated with the source IP address.
    userDefinedFields List<Property Map>
    User-defined fields. Each element names a defined field and lists the matching values for that field.

    SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch, SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatchArgs

    Name string
    Name of the user-defined field, as given in the definition.
    Values 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 string
    Name of the user-defined field, as given in the definition.
    Values []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 String
    Name of the user-defined field, as given in the definition.
    values 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 string
    Name of the user-defined field, as given in the definition.
    values 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 str
    Name of the user-defined field, as given in the definition.
    values 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 String
    Name of the user-defined field, as given in the definition.
    values 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").

    SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatchResponse, SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatchResponseArgs

    Name string
    Name of the user-defined field, as given in the definition.
    Values 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 string
    Name of the user-defined field, as given in the definition.
    Values []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 String
    Name of the user-defined field, as given in the definition.
    values 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 string
    Name of the user-defined field, as given in the definition.
    values 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 str
    Name of the user-defined field, as given in the definition.
    values 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 String
    Name of the user-defined field, as given in the definition.
    values 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").

    SecurityPolicyRulePreconfiguredWafConfig, SecurityPolicyRulePreconfiguredWafConfigArgs

    Exclusions []SecurityPolicyRulePreconfiguredWafConfigExclusion
    A list of exclusions to apply during preconfigured WAF evaluation.
    exclusions List<SecurityPolicyRulePreconfiguredWafConfigExclusion>
    A list of exclusions to apply during preconfigured WAF evaluation.
    exclusions SecurityPolicyRulePreconfiguredWafConfigExclusion[]
    A list of exclusions to apply during preconfigured WAF evaluation.
    exclusions Sequence[SecurityPolicyRulePreconfiguredWafConfigExclusion]
    A list of exclusions to apply during preconfigured WAF evaluation.
    exclusions List<Property Map>
    A list of exclusions to apply during preconfigured WAF evaluation.

    SecurityPolicyRulePreconfiguredWafConfigExclusion, SecurityPolicyRulePreconfiguredWafConfigExclusionArgs

    RequestCookiesToExclude List<Pulumi.GoogleNative.Compute.V1.Inputs.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams>
    A list of request cookie names whose value will be excluded from inspection during preconfigured WAF evaluation.
    RequestHeadersToExclude List<Pulumi.GoogleNative.Compute.V1.Inputs.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams>
    A list of request header names whose value will be excluded from inspection during preconfigured WAF evaluation.
    RequestQueryParamsToExclude List<Pulumi.GoogleNative.Compute.V1.Inputs.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams>
    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 List<Pulumi.GoogleNative.Compute.V1.Inputs.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams>
    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 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 string
    Target WAF rule set to apply the preconfigured WAF exclusion.
    RequestCookiesToExclude []SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams
    A list of request cookie names whose value will be excluded from inspection during preconfigured WAF evaluation.
    RequestHeadersToExclude []SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams
    A list of request header names whose value will be excluded from inspection during preconfigured WAF evaluation.
    RequestQueryParamsToExclude []SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams
    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 []SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams
    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 []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 string
    Target WAF rule set to apply the preconfigured WAF exclusion.
    requestCookiesToExclude List<SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams>
    A list of request cookie names whose value will be excluded from inspection during preconfigured WAF evaluation.
    requestHeadersToExclude List<SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams>
    A list of request header names whose value will be excluded from inspection during preconfigured WAF evaluation.
    requestQueryParamsToExclude List<SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams>
    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 List<SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams>
    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 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 String
    Target WAF rule set to apply the preconfigured WAF exclusion.
    requestCookiesToExclude SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams[]
    A list of request cookie names whose value will be excluded from inspection during preconfigured WAF evaluation.
    requestHeadersToExclude SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams[]
    A list of request header names whose value will be excluded from inspection during preconfigured WAF evaluation.
    requestQueryParamsToExclude SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams[]
    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 SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams[]
    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 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 string
    Target WAF rule set to apply the preconfigured WAF exclusion.
    request_cookies_to_exclude Sequence[SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams]
    A list of request cookie names whose value will be excluded from inspection during preconfigured WAF evaluation.
    request_headers_to_exclude Sequence[SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams]
    A list of request header names whose value will be excluded from inspection during preconfigured WAF evaluation.
    request_query_params_to_exclude Sequence[SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams]
    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 Sequence[SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams]
    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 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 str
    Target WAF rule set to apply the preconfigured WAF exclusion.
    requestCookiesToExclude List<Property Map>
    A list of request cookie names whose value will be excluded from inspection during preconfigured WAF evaluation.
    requestHeadersToExclude List<Property Map>
    A list of request header names whose value will be excluded from inspection during preconfigured WAF evaluation.
    requestQueryParamsToExclude 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 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 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 String
    Target WAF rule set to apply the preconfigured WAF exclusion.

    SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams, SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsArgs

    Op SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsOp
    The match operator for the field.
    Val string
    The value of the field.
    op SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsOp
    The match operator for the field.
    val String
    The value of the field.
    op SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsOp
    The match operator for the field.
    val string
    The value of the field.
    op SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsOp
    The match operator for the field.
    val str
    The value of the field.
    op "CONTAINS" | "ENDS_WITH" | "EQUALS" | "EQUALS_ANY" | "STARTS_WITH"
    The match operator for the field.
    val String
    The value of the field.

    SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsOp, SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsOpArgs

    Contains
    CONTAINSThe operator matches if the field value contains the specified value.
    EndsWith
    ENDS_WITHThe operator matches if the field value ends with the specified value.
    EqualsValue
    EQUALSThe operator matches if the field value equals the specified value.
    EqualsAny
    EQUALS_ANYThe operator matches if the field value is any value.
    StartsWith
    STARTS_WITHThe operator matches if the field value starts with the specified value.
    SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsOpContains
    CONTAINSThe operator matches if the field value contains the specified value.
    SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsOpEndsWith
    ENDS_WITHThe operator matches if the field value ends with the specified value.
    SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsOpEquals
    EQUALSThe operator matches if the field value equals the specified value.
    SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsOpEqualsAny
    EQUALS_ANYThe operator matches if the field value is any value.
    SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsOpStartsWith
    STARTS_WITHThe operator matches if the field value starts with the specified value.
    Contains
    CONTAINSThe operator matches if the field value contains the specified value.
    EndsWith
    ENDS_WITHThe operator matches if the field value ends with the specified value.
    Equals
    EQUALSThe operator matches if the field value equals the specified value.
    EqualsAny
    EQUALS_ANYThe operator matches if the field value is any value.
    StartsWith
    STARTS_WITHThe operator matches if the field value starts with the specified value.
    Contains
    CONTAINSThe operator matches if the field value contains the specified value.
    EndsWith
    ENDS_WITHThe operator matches if the field value ends with the specified value.
    Equals
    EQUALSThe operator matches if the field value equals the specified value.
    EqualsAny
    EQUALS_ANYThe operator matches if the field value is any value.
    StartsWith
    STARTS_WITHThe operator matches if the field value starts with the specified value.
    CONTAINS
    CONTAINSThe operator matches if the field value contains the specified value.
    ENDS_WITH
    ENDS_WITHThe operator matches if the field value ends with the specified value.
    EQUALS
    EQUALSThe operator matches if the field value equals the specified value.
    EQUALS_ANY
    EQUALS_ANYThe operator matches if the field value is any value.
    STARTS_WITH
    STARTS_WITHThe operator matches if the field value starts with the specified value.
    "CONTAINS"
    CONTAINSThe operator matches if the field value contains the specified value.
    "ENDS_WITH"
    ENDS_WITHThe operator matches if the field value ends with the specified value.
    "EQUALS"
    EQUALSThe operator matches if the field value equals the specified value.
    "EQUALS_ANY"
    EQUALS_ANYThe operator matches if the field value is any value.
    "STARTS_WITH"
    STARTS_WITHThe operator matches if the field value starts with the specified value.

    SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsResponse, SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsResponseArgs

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

    SecurityPolicyRulePreconfiguredWafConfigExclusionResponse, SecurityPolicyRulePreconfiguredWafConfigExclusionResponseArgs

    RequestCookiesToExclude List<Pulumi.GoogleNative.Compute.V1.Inputs.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsResponse>
    A list of request cookie names whose value will be excluded from inspection during preconfigured WAF evaluation.
    RequestHeadersToExclude List<Pulumi.GoogleNative.Compute.V1.Inputs.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsResponse>
    A list of request header names whose value will be excluded from inspection during preconfigured WAF evaluation.
    RequestQueryParamsToExclude List<Pulumi.GoogleNative.Compute.V1.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 List<Pulumi.GoogleNative.Compute.V1.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 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 string
    Target WAF rule set to apply the preconfigured WAF exclusion.
    RequestCookiesToExclude []SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsResponse
    A list of request cookie names whose value will be excluded from inspection during preconfigured WAF evaluation.
    RequestHeadersToExclude []SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsResponse
    A list of request header names whose value will be excluded from inspection during preconfigured WAF evaluation.
    RequestQueryParamsToExclude []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 []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 []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 string
    Target WAF rule set to apply the preconfigured WAF exclusion.
    requestCookiesToExclude List<SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsResponse>
    A list of request cookie names whose value will be excluded from inspection during preconfigured WAF evaluation.
    requestHeadersToExclude List<SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsResponse>
    A list of request header names whose value will be excluded from inspection during preconfigured WAF evaluation.
    requestQueryParamsToExclude 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 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 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 String
    Target WAF rule set to apply the preconfigured WAF exclusion.
    requestCookiesToExclude SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsResponse[]
    A list of request cookie names whose value will be excluded from inspection during preconfigured WAF evaluation.
    requestHeadersToExclude SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsResponse[]
    A list of request header names whose value will be excluded from inspection during preconfigured WAF evaluation.
    requestQueryParamsToExclude 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 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 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 string
    Target WAF rule set to apply the preconfigured WAF exclusion.
    request_cookies_to_exclude Sequence[SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsResponse]
    A list of request cookie names whose value will be excluded from inspection during preconfigured WAF evaluation.
    request_headers_to_exclude Sequence[SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsResponse]
    A list of request header names whose value will be excluded from inspection during preconfigured WAF evaluation.
    request_query_params_to_exclude 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 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 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 str
    Target WAF rule set to apply the preconfigured WAF exclusion.
    requestCookiesToExclude List<Property Map>
    A list of request cookie names whose value will be excluded from inspection during preconfigured WAF evaluation.
    requestHeadersToExclude List<Property Map>
    A list of request header names whose value will be excluded from inspection during preconfigured WAF evaluation.
    requestQueryParamsToExclude 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 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 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 String
    Target WAF rule set to apply the preconfigured WAF exclusion.

    SecurityPolicyRulePreconfiguredWafConfigResponse, SecurityPolicyRulePreconfiguredWafConfigResponseArgs

    Exclusions []SecurityPolicyRulePreconfiguredWafConfigExclusionResponse
    A list of exclusions to apply during preconfigured WAF evaluation.
    exclusions List<SecurityPolicyRulePreconfiguredWafConfigExclusionResponse>
    A list of exclusions to apply during preconfigured WAF evaluation.
    exclusions SecurityPolicyRulePreconfiguredWafConfigExclusionResponse[]
    A list of exclusions to apply during preconfigured WAF evaluation.
    exclusions Sequence[SecurityPolicyRulePreconfiguredWafConfigExclusionResponse]
    A list of exclusions to apply during preconfigured WAF evaluation.
    exclusions List<Property Map>
    A list of exclusions to apply during preconfigured WAF evaluation.

    SecurityPolicyRuleRateLimitOptions, SecurityPolicyRuleRateLimitOptionsArgs

    BanDurationSec int
    Can only be specified if the action for the rule is "rate_based_ban". If specified, determines the time (in seconds) the traffic will continue to be banned by the rate limit after the rate falls below the threshold.
    BanThreshold Pulumi.GoogleNative.Compute.V1.Inputs.SecurityPolicyRuleRateLimitOptionsThreshold
    Can only be specified if the action for the rule is "rate_based_ban". If specified, the key will be banned for the configured 'ban_duration_sec' when the number of requests that exceed the 'rate_limit_threshold' also exceed this 'ban_threshold'.
    ConformAction string
    Action to take for requests that are under the configured rate limit threshold. Valid option is "allow" only.
    EnforceOnKey Pulumi.GoogleNative.Compute.V1.SecurityPolicyRuleRateLimitOptionsEnforceOnKey
    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 List<Pulumi.GoogleNative.Compute.V1.Inputs.SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig>
    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 string
    Rate limit key name applicable only for the following key types: HTTP_HEADER -- Name of the HTTP header whose value is taken as the key value. HTTP_COOKIE -- Name of the HTTP cookie whose value is taken as the key value.
    ExceedAction string
    Action to take for requests that are above the configured rate limit threshold, to either deny with a specified HTTP response code, or redirect to a different endpoint. Valid options are deny(STATUS), where valid values for STATUS are 403, 404, 429, and 502, and redirect, where the redirect parameters come from exceedRedirectOptions below. The redirect action is only supported in Global Security Policies of type CLOUD_ARMOR.
    ExceedRedirectOptions Pulumi.GoogleNative.Compute.V1.Inputs.SecurityPolicyRuleRedirectOptions
    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 Pulumi.GoogleNative.Compute.V1.Inputs.SecurityPolicyRuleRateLimitOptionsThreshold
    Threshold at which to begin ratelimiting.
    BanDurationSec int
    Can only be specified if the action for the rule is "rate_based_ban". If specified, determines the time (in seconds) the traffic will continue to be banned by the rate limit after the rate falls below the threshold.
    BanThreshold SecurityPolicyRuleRateLimitOptionsThreshold
    Can only be specified if the action for the rule is "rate_based_ban". If specified, the key will be banned for the configured 'ban_duration_sec' when the number of requests that exceed the 'rate_limit_threshold' also exceed this 'ban_threshold'.
    ConformAction string
    Action to take for requests that are under the configured rate limit threshold. Valid option is "allow" only.
    EnforceOnKey SecurityPolicyRuleRateLimitOptionsEnforceOnKey
    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 []SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig
    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 string
    Rate limit key name applicable only for the following key types: HTTP_HEADER -- Name of the HTTP header whose value is taken as the key value. HTTP_COOKIE -- Name of the HTTP cookie whose value is taken as the key value.
    ExceedAction string
    Action to take for requests that are above the configured rate limit threshold, to either deny with a specified HTTP response code, or redirect to a different endpoint. Valid options are deny(STATUS), where valid values for STATUS are 403, 404, 429, and 502, and redirect, where the redirect parameters come from exceedRedirectOptions below. The redirect action is only supported in Global Security Policies of type CLOUD_ARMOR.
    ExceedRedirectOptions SecurityPolicyRuleRedirectOptions
    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 SecurityPolicyRuleRateLimitOptionsThreshold
    Threshold at which to begin ratelimiting.
    banDurationSec Integer
    Can only be specified if the action for the rule is "rate_based_ban". If specified, determines the time (in seconds) the traffic will continue to be banned by the rate limit after the rate falls below the threshold.
    banThreshold SecurityPolicyRuleRateLimitOptionsThreshold
    Can only be specified if the action for the rule is "rate_based_ban". If specified, the key will be banned for the configured 'ban_duration_sec' when the number of requests that exceed the 'rate_limit_threshold' also exceed this 'ban_threshold'.
    conformAction String
    Action to take for requests that are under the configured rate limit threshold. Valid option is "allow" only.
    enforceOnKey SecurityPolicyRuleRateLimitOptionsEnforceOnKey
    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 List<SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig>
    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 String
    Rate limit key name applicable only for the following key types: HTTP_HEADER -- Name of the HTTP header whose value is taken as the key value. HTTP_COOKIE -- Name of the HTTP cookie whose value is taken as the key value.
    exceedAction String
    Action to take for requests that are above the configured rate limit threshold, to either deny with a specified HTTP response code, or redirect to a different endpoint. Valid options are deny(STATUS), where valid values for STATUS are 403, 404, 429, and 502, and redirect, where the redirect parameters come from exceedRedirectOptions below. The redirect action is only supported in Global Security Policies of type CLOUD_ARMOR.
    exceedRedirectOptions SecurityPolicyRuleRedirectOptions
    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 SecurityPolicyRuleRateLimitOptionsThreshold
    Threshold at which to begin ratelimiting.
    banDurationSec number
    Can only be specified if the action for the rule is "rate_based_ban". If specified, determines the time (in seconds) the traffic will continue to be banned by the rate limit after the rate falls below the threshold.
    banThreshold SecurityPolicyRuleRateLimitOptionsThreshold
    Can only be specified if the action for the rule is "rate_based_ban". If specified, the key will be banned for the configured 'ban_duration_sec' when the number of requests that exceed the 'rate_limit_threshold' also exceed this 'ban_threshold'.
    conformAction string
    Action to take for requests that are under the configured rate limit threshold. Valid option is "allow" only.
    enforceOnKey SecurityPolicyRuleRateLimitOptionsEnforceOnKey
    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 SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig[]
    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 string
    Rate limit key name applicable only for the following key types: HTTP_HEADER -- Name of the HTTP header whose value is taken as the key value. HTTP_COOKIE -- Name of the HTTP cookie whose value is taken as the key value.
    exceedAction string
    Action to take for requests that are above the configured rate limit threshold, to either deny with a specified HTTP response code, or redirect to a different endpoint. Valid options are deny(STATUS), where valid values for STATUS are 403, 404, 429, and 502, and redirect, where the redirect parameters come from exceedRedirectOptions below. The redirect action is only supported in Global Security Policies of type CLOUD_ARMOR.
    exceedRedirectOptions SecurityPolicyRuleRedirectOptions
    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 SecurityPolicyRuleRateLimitOptionsThreshold
    Threshold at which to begin ratelimiting.
    ban_duration_sec int
    Can only be specified if the action for the rule is "rate_based_ban". If specified, determines the time (in seconds) the traffic will continue to be banned by the rate limit after the rate falls below the threshold.
    ban_threshold SecurityPolicyRuleRateLimitOptionsThreshold
    Can only be specified if the action for the rule is "rate_based_ban". If specified, the key will be banned for the configured 'ban_duration_sec' when the number of requests that exceed the 'rate_limit_threshold' also exceed this 'ban_threshold'.
    conform_action str
    Action to take for requests that are under the configured rate limit threshold. Valid option is "allow" only.
    enforce_on_key SecurityPolicyRuleRateLimitOptionsEnforceOnKey
    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 Sequence[SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig]
    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 str
    Rate limit key name applicable only for the following key types: HTTP_HEADER -- Name of the HTTP header whose value is taken as the key value. HTTP_COOKIE -- Name of the HTTP cookie whose value is taken as the key value.
    exceed_action str
    Action to take for requests that are above the configured rate limit threshold, to either deny with a specified HTTP response code, or redirect to a different endpoint. Valid options are deny(STATUS), where valid values for STATUS are 403, 404, 429, and 502, and redirect, where the redirect parameters come from exceedRedirectOptions below. The redirect action is only supported in Global Security Policies of type CLOUD_ARMOR.
    exceed_redirect_options SecurityPolicyRuleRedirectOptions
    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 SecurityPolicyRuleRateLimitOptionsThreshold
    Threshold at which to begin ratelimiting.
    banDurationSec Number
    Can only be specified if the action for the rule is "rate_based_ban". If specified, determines the time (in seconds) the traffic will continue to be banned by the rate limit after the rate falls below the threshold.
    banThreshold Property Map
    Can only be specified if the action for the rule is "rate_based_ban". If specified, the key will be banned for the configured 'ban_duration_sec' when the number of requests that exceed the 'rate_limit_threshold' also exceed this 'ban_threshold'.
    conformAction String
    Action to take for requests that are under the configured rate limit threshold. Valid option is "allow" only.
    enforceOnKey "ALL" | "HTTP_COOKIE" | "HTTP_HEADER" | "HTTP_PATH" | "IP" | "REGION_CODE" | "SNI" | "XFF_IP"
    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 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 String
    Rate limit key name applicable only for the following key types: HTTP_HEADER -- Name of the HTTP header whose value is taken as the key value. HTTP_COOKIE -- Name of the HTTP cookie whose value is taken as the key value.
    exceedAction String
    Action to take for requests that are above the configured rate limit threshold, to either deny with a specified HTTP response code, or redirect to a different endpoint. Valid options are deny(STATUS), where valid values for STATUS are 403, 404, 429, and 502, and redirect, where the redirect parameters come from exceedRedirectOptions below. The redirect action is only supported in Global Security Policies of type CLOUD_ARMOR.
    exceedRedirectOptions Property Map
    Parameters defining the redirect action that is used as the exceed action. Cannot be specified if the exceed action is not redirect. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
    rateLimitThreshold Property Map
    Threshold at which to begin ratelimiting.

    SecurityPolicyRuleRateLimitOptionsEnforceOnKey, SecurityPolicyRuleRateLimitOptionsEnforceOnKeyArgs

    All
    ALL
    HttpCookie
    HTTP_COOKIE
    HttpHeader
    HTTP_HEADER
    HttpPath
    HTTP_PATH
    Ip
    IP
    RegionCode
    REGION_CODE
    Sni
    SNI
    XffIp
    XFF_IP
    SecurityPolicyRuleRateLimitOptionsEnforceOnKeyAll
    ALL
    SecurityPolicyRuleRateLimitOptionsEnforceOnKeyHttpCookie
    HTTP_COOKIE
    SecurityPolicyRuleRateLimitOptionsEnforceOnKeyHttpHeader
    HTTP_HEADER
    SecurityPolicyRuleRateLimitOptionsEnforceOnKeyHttpPath
    HTTP_PATH
    SecurityPolicyRuleRateLimitOptionsEnforceOnKeyIp
    IP
    SecurityPolicyRuleRateLimitOptionsEnforceOnKeyRegionCode
    REGION_CODE
    SecurityPolicyRuleRateLimitOptionsEnforceOnKeySni
    SNI
    SecurityPolicyRuleRateLimitOptionsEnforceOnKeyXffIp
    XFF_IP
    All
    ALL
    HttpCookie
    HTTP_COOKIE
    HttpHeader
    HTTP_HEADER
    HttpPath
    HTTP_PATH
    Ip
    IP
    RegionCode
    REGION_CODE
    Sni
    SNI
    XffIp
    XFF_IP
    All
    ALL
    HttpCookie
    HTTP_COOKIE
    HttpHeader
    HTTP_HEADER
    HttpPath
    HTTP_PATH
    Ip
    IP
    RegionCode
    REGION_CODE
    Sni
    SNI
    XffIp
    XFF_IP
    ALL
    ALL
    HTTP_COOKIE
    HTTP_COOKIE
    HTTP_HEADER
    HTTP_HEADER
    HTTP_PATH
    HTTP_PATH
    IP
    IP
    REGION_CODE
    REGION_CODE
    SNI
    SNI
    XFF_IP
    XFF_IP
    "ALL"
    ALL
    "HTTP_COOKIE"
    HTTP_COOKIE
    "HTTP_HEADER"
    HTTP_HEADER
    "HTTP_PATH"
    HTTP_PATH
    "IP"
    IP
    "REGION_CODE"
    REGION_CODE
    "SNI"
    SNI
    "XFF_IP"
    XFF_IP

    SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig, SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfigArgs

    EnforceOnKeyName string
    Rate limit key name applicable only for the following key types: HTTP_HEADER -- Name of the HTTP header whose value is taken as the key value. HTTP_COOKIE -- Name of the HTTP cookie whose value is taken as the key value.
    EnforceOnKeyType Pulumi.GoogleNative.Compute.V1.SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfigEnforceOnKeyType
    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 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 SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfigEnforceOnKeyType
    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 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 SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfigEnforceOnKeyType
    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 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 SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfigEnforceOnKeyType
    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 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 SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfigEnforceOnKeyType
    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 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 "ALL" | "HTTP_COOKIE" | "HTTP_HEADER" | "HTTP_PATH" | "IP" | "REGION_CODE" | "SNI" | "XFF_IP"
    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.

    SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfigEnforceOnKeyType, SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfigEnforceOnKeyTypeArgs

    All
    ALL
    HttpCookie
    HTTP_COOKIE
    HttpHeader
    HTTP_HEADER
    HttpPath
    HTTP_PATH
    Ip
    IP
    RegionCode
    REGION_CODE
    Sni
    SNI
    XffIp
    XFF_IP
    SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfigEnforceOnKeyTypeAll
    ALL
    SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfigEnforceOnKeyTypeHttpCookie
    HTTP_COOKIE
    SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfigEnforceOnKeyTypeHttpHeader
    HTTP_HEADER
    SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfigEnforceOnKeyTypeHttpPath
    HTTP_PATH
    SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfigEnforceOnKeyTypeIp
    IP
    SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfigEnforceOnKeyTypeRegionCode
    REGION_CODE
    SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfigEnforceOnKeyTypeSni
    SNI
    SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfigEnforceOnKeyTypeXffIp
    XFF_IP
    All
    ALL
    HttpCookie
    HTTP_COOKIE
    HttpHeader
    HTTP_HEADER
    HttpPath
    HTTP_PATH
    Ip
    IP
    RegionCode
    REGION_CODE
    Sni
    SNI
    XffIp
    XFF_IP
    All
    ALL
    HttpCookie
    HTTP_COOKIE
    HttpHeader
    HTTP_HEADER
    HttpPath
    HTTP_PATH
    Ip
    IP
    RegionCode
    REGION_CODE
    Sni
    SNI
    XffIp
    XFF_IP
    ALL
    ALL
    HTTP_COOKIE
    HTTP_COOKIE
    HTTP_HEADER
    HTTP_HEADER
    HTTP_PATH
    HTTP_PATH
    IP
    IP
    REGION_CODE
    REGION_CODE
    SNI
    SNI
    XFF_IP
    XFF_IP
    "ALL"
    ALL
    "HTTP_COOKIE"
    HTTP_COOKIE
    "HTTP_HEADER"
    HTTP_HEADER
    "HTTP_PATH"
    HTTP_PATH
    "IP"
    IP
    "REGION_CODE"
    REGION_CODE
    "SNI"
    SNI
    "XFF_IP"
    XFF_IP

    SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfigResponse, SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfigResponseArgs

    EnforceOnKeyName string
    Rate limit key name applicable only for the following key types: HTTP_HEADER -- Name of the HTTP header whose value is taken as the key value. HTTP_COOKIE -- Name of the HTTP cookie whose value is taken as the key value.
    EnforceOnKeyType 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 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 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 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 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 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 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 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 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 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 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, SecurityPolicyRuleRateLimitOptionsResponseArgs

    BanDurationSec int
    Can only be specified if the action for the rule is "rate_based_ban". If specified, determines the time (in seconds) the traffic will continue to be banned by the rate limit after the rate falls below the threshold.
    BanThreshold Pulumi.GoogleNative.Compute.V1.Inputs.SecurityPolicyRuleRateLimitOptionsThresholdResponse
    Can only be specified if the action for the rule is "rate_based_ban". If specified, the key will be banned for the configured 'ban_duration_sec' when the number of requests that exceed the 'rate_limit_threshold' also exceed this 'ban_threshold'.
    ConformAction string
    Action to take for requests that are under the configured rate limit threshold. Valid option is "allow" only.
    EnforceOnKey string
    Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "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 List<Pulumi.GoogleNative.Compute.V1.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 string
    Rate limit key name applicable only for the following key types: HTTP_HEADER -- Name of the HTTP header whose value is taken as the key value. HTTP_COOKIE -- Name of the HTTP cookie whose value is taken as the key value.
    ExceedAction string
    Action to take for requests that are above the configured rate limit threshold, to either deny with a specified HTTP response code, or redirect to a different endpoint. Valid options are deny(STATUS), where valid values for STATUS are 403, 404, 429, and 502, and redirect, where the redirect parameters come from exceedRedirectOptions below. The redirect action is only supported in Global Security Policies of type CLOUD_ARMOR.
    ExceedRedirectOptions Pulumi.GoogleNative.Compute.V1.Inputs.SecurityPolicyRuleRedirectOptionsResponse
    Parameters defining the redirect action that is used as the exceed action. Cannot be specified if the exceed action is not redirect. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
    RateLimitThreshold Pulumi.GoogleNative.Compute.V1.Inputs.SecurityPolicyRuleRateLimitOptionsThresholdResponse
    Threshold at which to begin ratelimiting.
    BanDurationSec int
    Can only be specified if the action for the rule is "rate_based_ban". If specified, determines the time (in seconds) the traffic will continue to be banned by the rate limit after the rate falls below the threshold.
    BanThreshold SecurityPolicyRuleRateLimitOptionsThresholdResponse
    Can only be specified if the action for the rule is "rate_based_ban". If specified, the key will be banned for the configured 'ban_duration_sec' when the number of requests that exceed the 'rate_limit_threshold' also exceed this 'ban_threshold'.
    ConformAction string
    Action to take for requests that are under the configured rate limit threshold. Valid option is "allow" only.
    EnforceOnKey string
    Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "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 []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 string
    Rate limit key name applicable only for the following key types: HTTP_HEADER -- Name of the HTTP header whose value is taken as the key value. HTTP_COOKIE -- Name of the HTTP cookie whose value is taken as the key value.
    ExceedAction string
    Action to take for requests that are above the configured rate limit threshold, to either deny with a specified HTTP response code, or redirect to a different endpoint. Valid options are deny(STATUS), where valid values for STATUS are 403, 404, 429, and 502, and redirect, where the redirect parameters come from exceedRedirectOptions below. The redirect action is only supported in Global Security Policies of type CLOUD_ARMOR.
    ExceedRedirectOptions 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 SecurityPolicyRuleRateLimitOptionsThresholdResponse
    Threshold at which to begin ratelimiting.
    banDurationSec Integer
    Can only be specified if the action for the rule is "rate_based_ban". If specified, determines the time (in seconds) the traffic will continue to be banned by the rate limit after the rate falls below the threshold.
    banThreshold SecurityPolicyRuleRateLimitOptionsThresholdResponse
    Can only be specified if the action for the rule is "rate_based_ban". If specified, the key will be banned for the configured 'ban_duration_sec' when the number of requests that exceed the 'rate_limit_threshold' also exceed this 'ban_threshold'.
    conformAction String
    Action to take for requests that are under the configured rate limit threshold. Valid option is "allow" only.
    enforceOnKey String
    Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "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 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 String
    Rate limit key name applicable only for the following key types: HTTP_HEADER -- Name of the HTTP header whose value is taken as the key value. HTTP_COOKIE -- Name of the HTTP cookie whose value is taken as the key value.
    exceedAction String
    Action to take for requests that are above the configured rate limit threshold, to either deny with a specified HTTP response code, or redirect to a different endpoint. Valid options are deny(STATUS), where valid values for STATUS are 403, 404, 429, and 502, and redirect, where the redirect parameters come from exceedRedirectOptions below. The redirect action is only supported in Global Security Policies of type CLOUD_ARMOR.
    exceedRedirectOptions 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 SecurityPolicyRuleRateLimitOptionsThresholdResponse
    Threshold at which to begin ratelimiting.
    banDurationSec number
    Can only be specified if the action for the rule is "rate_based_ban". If specified, determines the time (in seconds) the traffic will continue to be banned by the rate limit after the rate falls below the threshold.
    banThreshold SecurityPolicyRuleRateLimitOptionsThresholdResponse
    Can only be specified if the action for the rule is "rate_based_ban". If specified, the key will be banned for the configured 'ban_duration_sec' when the number of requests that exceed the 'rate_limit_threshold' also exceed this 'ban_threshold'.
    conformAction string
    Action to take for requests that are under the configured rate limit threshold. Valid option is "allow" only.
    enforceOnKey string
    Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "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 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 string
    Rate limit key name applicable only for the following key types: HTTP_HEADER -- Name of the HTTP header whose value is taken as the key value. HTTP_COOKIE -- Name of the HTTP cookie whose value is taken as the key value.
    exceedAction string
    Action to take for requests that are above the configured rate limit threshold, to either deny with a specified HTTP response code, or redirect to a different endpoint. Valid options are deny(STATUS), where valid values for STATUS are 403, 404, 429, and 502, and redirect, where the redirect parameters come from exceedRedirectOptions below. The redirect action is only supported in Global Security Policies of type CLOUD_ARMOR.
    exceedRedirectOptions 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 SecurityPolicyRuleRateLimitOptionsThresholdResponse
    Threshold at which to begin ratelimiting.
    ban_duration_sec int
    Can only be specified if the action for the rule is "rate_based_ban". If specified, determines the time (in seconds) the traffic will continue to be banned by the rate limit after the rate falls below the threshold.
    ban_threshold SecurityPolicyRuleRateLimitOptionsThresholdResponse
    Can only be specified if the action for the rule is "rate_based_ban". If specified, the key will be banned for the configured 'ban_duration_sec' when the number of requests that exceed the 'rate_limit_threshold' also exceed this 'ban_threshold'.
    conform_action str
    Action to take for requests that are under the configured rate limit threshold. Valid option is "allow" only.
    enforce_on_key str
    Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "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 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 str
    Rate limit key name applicable only for the following key types: HTTP_HEADER -- Name of the HTTP header whose value is taken as the key value. HTTP_COOKIE -- Name of the HTTP cookie whose value is taken as the key value.
    exceed_action str
    Action to take for requests that are above the configured rate limit threshold, to either deny with a specified HTTP response code, or redirect to a different endpoint. Valid options are deny(STATUS), where valid values for STATUS are 403, 404, 429, and 502, and redirect, where the redirect parameters come from exceedRedirectOptions below. The redirect action is only supported in Global Security Policies of type CLOUD_ARMOR.
    exceed_redirect_options SecurityPolicyRuleRedirectOptionsResponse
    Parameters defining the redirect action that is used as the exceed action. Cannot be specified if the exceed action is not redirect. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
    rate_limit_threshold SecurityPolicyRuleRateLimitOptionsThresholdResponse
    Threshold at which to begin ratelimiting.
    banDurationSec Number
    Can only be specified if the action for the rule is "rate_based_ban". If specified, determines the time (in seconds) the traffic will continue to be banned by the rate limit after the rate falls below the threshold.
    banThreshold Property Map
    Can only be specified if the action for the rule is "rate_based_ban". If specified, the key will be banned for the configured 'ban_duration_sec' when the number of requests that exceed the 'rate_limit_threshold' also exceed this 'ban_threshold'.
    conformAction String
    Action to take for requests that are under the configured rate limit threshold. Valid option is "allow" only.
    enforceOnKey String
    Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "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 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 String
    Rate limit key name applicable only for the following key types: HTTP_HEADER -- Name of the HTTP header whose value is taken as the key value. HTTP_COOKIE -- Name of the HTTP cookie whose value is taken as the key value.
    exceedAction String
    Action to take for requests that are above the configured rate limit threshold, to either deny with a specified HTTP response code, or redirect to a different endpoint. Valid options are deny(STATUS), where valid values for STATUS are 403, 404, 429, and 502, and redirect, where the redirect parameters come from exceedRedirectOptions below. The redirect action is only supported in Global Security Policies of type CLOUD_ARMOR.
    exceedRedirectOptions Property Map
    Parameters defining the redirect action that is used as the exceed action. Cannot be specified if the exceed action is not redirect. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
    rateLimitThreshold Property Map
    Threshold at which to begin ratelimiting.

    SecurityPolicyRuleRateLimitOptionsThreshold, SecurityPolicyRuleRateLimitOptionsThresholdArgs

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

    SecurityPolicyRuleRateLimitOptionsThresholdResponse, SecurityPolicyRuleRateLimitOptionsThresholdResponseArgs

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

    SecurityPolicyRuleRedirectOptions, SecurityPolicyRuleRedirectOptionsArgs

    Target string
    Target for the redirect action. This is required if the type is EXTERNAL_302 and cannot be specified for GOOGLE_RECAPTCHA.
    Type Pulumi.GoogleNative.Compute.V1.SecurityPolicyRuleRedirectOptionsType
    Type of the redirect action.
    Target string
    Target for the redirect action. This is required if the type is EXTERNAL_302 and cannot be specified for GOOGLE_RECAPTCHA.
    Type SecurityPolicyRuleRedirectOptionsType
    Type of the redirect action.
    target String
    Target for the redirect action. This is required if the type is EXTERNAL_302 and cannot be specified for GOOGLE_RECAPTCHA.
    type SecurityPolicyRuleRedirectOptionsType
    Type of the redirect action.
    target string
    Target for the redirect action. This is required if the type is EXTERNAL_302 and cannot be specified for GOOGLE_RECAPTCHA.
    type SecurityPolicyRuleRedirectOptionsType
    Type of the redirect action.
    target str
    Target for the redirect action. This is required if the type is EXTERNAL_302 and cannot be specified for GOOGLE_RECAPTCHA.
    type SecurityPolicyRuleRedirectOptionsType
    Type of the redirect action.
    target String
    Target for the redirect action. This is required if the type is EXTERNAL_302 and cannot be specified for GOOGLE_RECAPTCHA.
    type "EXTERNAL_302" | "GOOGLE_RECAPTCHA"
    Type of the redirect action.

    SecurityPolicyRuleRedirectOptionsResponse, SecurityPolicyRuleRedirectOptionsResponseArgs

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

    SecurityPolicyRuleRedirectOptionsType, SecurityPolicyRuleRedirectOptionsTypeArgs

    External302
    EXTERNAL_302
    GoogleRecaptcha
    GOOGLE_RECAPTCHA
    SecurityPolicyRuleRedirectOptionsTypeExternal302
    EXTERNAL_302
    SecurityPolicyRuleRedirectOptionsTypeGoogleRecaptcha
    GOOGLE_RECAPTCHA
    External302
    EXTERNAL_302
    GoogleRecaptcha
    GOOGLE_RECAPTCHA
    External302
    EXTERNAL_302
    GoogleRecaptcha
    GOOGLE_RECAPTCHA
    EXTERNAL302
    EXTERNAL_302
    GOOGLE_RECAPTCHA
    GOOGLE_RECAPTCHA
    "EXTERNAL_302"
    EXTERNAL_302
    "GOOGLE_RECAPTCHA"
    GOOGLE_RECAPTCHA

    SecurityPolicyRuleResponse, SecurityPolicyRuleResponseArgs

    Action 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 string
    An optional description of this resource. Provide this property when you create the resource.
    HeaderAction Pulumi.GoogleNative.Compute.V1.Inputs.SecurityPolicyRuleHttpHeaderActionResponse
    Optional, additional actions that are performed on headers. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
    Kind string
    [Output only] Type of the resource. Always compute#securityPolicyRule for security policy rules
    Match Pulumi.GoogleNative.Compute.V1.Inputs.SecurityPolicyRuleMatcherResponse
    A match condition that incoming traffic is evaluated against. If it evaluates to true, the corresponding 'action' is enforced.
    NetworkMatch Pulumi.GoogleNative.Compute.V1.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 Pulumi.GoogleNative.Compute.V1.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 bool
    If set to true, the specified action is not enforced.
    Priority int
    An integer indicating the priority of a rule in the list. The priority must be a positive value between 0 and 2147483647. Rules are evaluated from highest to lowest priority where 0 is the highest priority and 2147483647 is the lowest priority.
    RateLimitOptions Pulumi.GoogleNative.Compute.V1.Inputs.SecurityPolicyRuleRateLimitOptionsResponse
    Must be specified if the action is "rate_based_ban" or "throttle". Cannot be specified for any other actions.
    RedirectOptions Pulumi.GoogleNative.Compute.V1.Inputs.SecurityPolicyRuleRedirectOptionsResponse
    Parameters defining the redirect action. Cannot be specified for any other actions. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
    Action 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 string
    An optional description of this resource. Provide this property when you create the resource.
    HeaderAction SecurityPolicyRuleHttpHeaderActionResponse
    Optional, additional actions that are performed on headers. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
    Kind string
    [Output only] Type of the resource. Always compute#securityPolicyRule for security policy rules
    Match SecurityPolicyRuleMatcherResponse
    A match condition that incoming traffic is evaluated against. If it evaluates to true, the corresponding 'action' is enforced.
    NetworkMatch 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 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 bool
    If set to true, the specified action is not enforced.
    Priority int
    An integer indicating the priority of a rule in the list. The priority must be a positive value between 0 and 2147483647. Rules are evaluated from highest to lowest priority where 0 is the highest priority and 2147483647 is the lowest priority.
    RateLimitOptions SecurityPolicyRuleRateLimitOptionsResponse
    Must be specified if the action is "rate_based_ban" or "throttle". Cannot be specified for any other actions.
    RedirectOptions SecurityPolicyRuleRedirectOptionsResponse
    Parameters defining the redirect action. Cannot be specified for any other actions. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
    action 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 String
    An optional description of this resource. Provide this property when you create the resource.
    headerAction SecurityPolicyRuleHttpHeaderActionResponse
    Optional, additional actions that are performed on headers. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
    kind String
    [Output only] Type of the resource. Always compute#securityPolicyRule for security policy rules
    match SecurityPolicyRuleMatcherResponse
    A match condition that incoming traffic is evaluated against. If it evaluates to true, the corresponding 'action' is enforced.
    networkMatch 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 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 Boolean
    If set to true, the specified action is not enforced.
    priority Integer
    An integer indicating the priority of a rule in the list. The priority must be a positive value between 0 and 2147483647. Rules are evaluated from highest to lowest priority where 0 is the highest priority and 2147483647 is the lowest priority.
    rateLimitOptions SecurityPolicyRuleRateLimitOptionsResponse
    Must be specified if the action is "rate_based_ban" or "throttle". Cannot be specified for any other actions.
    redirectOptions SecurityPolicyRuleRedirectOptionsResponse
    Parameters defining the redirect action. Cannot be specified for any other actions. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
    action 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 string
    An optional description of this resource. Provide this property when you create the resource.
    headerAction SecurityPolicyRuleHttpHeaderActionResponse
    Optional, additional actions that are performed on headers. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
    kind string
    [Output only] Type of the resource. Always compute#securityPolicyRule for security policy rules
    match SecurityPolicyRuleMatcherResponse
    A match condition that incoming traffic is evaluated against. If it evaluates to true, the corresponding 'action' is enforced.
    networkMatch 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 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 boolean
    If set to true, the specified action is not enforced.
    priority number
    An integer indicating the priority of a rule in the list. The priority must be a positive value between 0 and 2147483647. Rules are evaluated from highest to lowest priority where 0 is the highest priority and 2147483647 is the lowest priority.
    rateLimitOptions SecurityPolicyRuleRateLimitOptionsResponse
    Must be specified if the action is "rate_based_ban" or "throttle". Cannot be specified for any other actions.
    redirectOptions SecurityPolicyRuleRedirectOptionsResponse
    Parameters defining the redirect action. Cannot be specified for any other actions. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
    action 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 str
    An optional description of this resource. Provide this property when you create the resource.
    header_action SecurityPolicyRuleHttpHeaderActionResponse
    Optional, additional actions that are performed on headers. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
    kind str
    [Output only] Type of the resource. Always compute#securityPolicyRule for security policy rules
    match SecurityPolicyRuleMatcherResponse
    A match condition that incoming traffic is evaluated against. If it evaluates to true, the corresponding 'action' is enforced.
    network_match 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 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 bool
    If set to true, the specified action is not enforced.
    priority int
    An integer indicating the priority of a rule in the list. The priority must be a positive value between 0 and 2147483647. Rules are evaluated from highest to lowest priority where 0 is the highest priority and 2147483647 is the lowest priority.
    rate_limit_options SecurityPolicyRuleRateLimitOptionsResponse
    Must be specified if the action is "rate_based_ban" or "throttle". Cannot be specified for any other actions.
    redirect_options SecurityPolicyRuleRedirectOptionsResponse
    Parameters defining the redirect action. Cannot be specified for any other actions. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
    action 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 String
    An optional description of this resource. Provide this property when you create the resource.
    headerAction Property Map
    Optional, additional actions that are performed on headers. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
    kind String
    [Output only] Type of the resource. Always compute#securityPolicyRule for security policy rules
    match Property Map
    A match condition that incoming traffic is evaluated against. If it evaluates to true, the corresponding 'action' is enforced.
    networkMatch 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 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 Boolean
    If set to true, the specified action is not enforced.
    priority Number
    An integer indicating the priority of a rule in the list. The priority must be a positive value between 0 and 2147483647. Rules are evaluated from highest to lowest priority where 0 is the highest priority and 2147483647 is the lowest priority.
    rateLimitOptions Property Map
    Must be specified if the action is "rate_based_ban" or "throttle". Cannot be specified for any other actions.
    redirectOptions Property Map
    Parameters defining the redirect action. Cannot be specified for any other actions. This field is only supported in Global Security Policies of type CLOUD_ARMOR.

    SecurityPolicyUserDefinedField, SecurityPolicyUserDefinedFieldArgs

    Base Pulumi.GoogleNative.Compute.V1.SecurityPolicyUserDefinedFieldBase
    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 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 string
    The name of this field. Must be unique within the policy.
    Offset int
    Offset of the first byte of the field (in network byte order) relative to 'base'.
    Size int
    Size of the field in bytes. Valid values: 1-4.
    Base SecurityPolicyUserDefinedFieldBase
    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 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 string
    The name of this field. Must be unique within the policy.
    Offset int
    Offset of the first byte of the field (in network byte order) relative to 'base'.
    Size int
    Size of the field in bytes. Valid values: 1-4.
    base SecurityPolicyUserDefinedFieldBase
    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 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 String
    The name of this field. Must be unique within the policy.
    offset Integer
    Offset of the first byte of the field (in network byte order) relative to 'base'.
    size Integer
    Size of the field in bytes. Valid values: 1-4.
    base SecurityPolicyUserDefinedFieldBase
    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 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 string
    The name of this field. Must be unique within the policy.
    offset number
    Offset of the first byte of the field (in network byte order) relative to 'base'.
    size number
    Size of the field in bytes. Valid values: 1-4.
    base SecurityPolicyUserDefinedFieldBase
    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 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 str
    The name of this field. Must be unique within the policy.
    offset int
    Offset of the first byte of the field (in network byte order) relative to 'base'.
    size int
    Size of the field in bytes. Valid values: 1-4.
    base "IPV4" | "IPV6" | "TCP" | "UDP"
    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 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 String
    The name of this field. Must be unique within the policy.
    offset Number
    Offset of the first byte of the field (in network byte order) relative to 'base'.
    size Number
    Size of the field in bytes. Valid values: 1-4.

    SecurityPolicyUserDefinedFieldBase, SecurityPolicyUserDefinedFieldBaseArgs

    Ipv4
    IPV4
    Ipv6
    IPV6
    Tcp
    TCP
    Udp
    UDP
    SecurityPolicyUserDefinedFieldBaseIpv4
    IPV4
    SecurityPolicyUserDefinedFieldBaseIpv6
    IPV6
    SecurityPolicyUserDefinedFieldBaseTcp
    TCP
    SecurityPolicyUserDefinedFieldBaseUdp
    UDP
    Ipv4
    IPV4
    Ipv6
    IPV6
    Tcp
    TCP
    Udp
    UDP
    Ipv4
    IPV4
    Ipv6
    IPV6
    Tcp
    TCP
    Udp
    UDP
    IPV4
    IPV4
    IPV6
    IPV6
    TCP
    TCP
    UDP
    UDP
    "IPV4"
    IPV4
    "IPV6"
    IPV6
    "TCP"
    TCP
    "UDP"
    UDP

    SecurityPolicyUserDefinedFieldResponse, SecurityPolicyUserDefinedFieldResponseArgs

    Base 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 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 string
    The name of this field. Must be unique within the policy.
    Offset int
    Offset of the first byte of the field (in network byte order) relative to 'base'.
    Size int
    Size of the field in bytes. Valid values: 1-4.
    Base 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 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 string
    The name of this field. Must be unique within the policy.
    Offset int
    Offset of the first byte of the field (in network byte order) relative to 'base'.
    Size int
    Size of the field in bytes. Valid values: 1-4.
    base 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 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 String
    The name of this field. Must be unique within the policy.
    offset Integer
    Offset of the first byte of the field (in network byte order) relative to 'base'.
    size Integer
    Size of the field in bytes. Valid values: 1-4.
    base 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 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 string
    The name of this field. Must be unique within the policy.
    offset number
    Offset of the first byte of the field (in network byte order) relative to 'base'.
    size number
    Size of the field in bytes. Valid values: 1-4.
    base 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 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 str
    The name of this field. Must be unique within the policy.
    offset int
    Offset of the first byte of the field (in network byte order) relative to 'base'.
    size int
    Size of the field in bytes. Valid values: 1-4.
    base 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 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 String
    The name of this field. Must be unique within the policy.
    offset Number
    Offset of the first byte of the field (in network byte order) relative to 'base'.
    size 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-native logo

    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