pulumi-gcp 7.23.0a1715621482__py3-none-any.whl → 7.23.0a1715808346__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pulumi_gcp/__init__.py +24 -0
- pulumi_gcp/bigquery/table.py +47 -0
- pulumi_gcp/bigtable/__init__.py +1 -0
- pulumi_gcp/bigtable/_inputs.py +101 -0
- pulumi_gcp/bigtable/authorized_view.py +440 -0
- pulumi_gcp/bigtable/outputs.py +119 -0
- pulumi_gcp/certificateauthority/certificate_template.py +70 -0
- pulumi_gcp/cloudbuildv2/repository.py +2 -2
- pulumi_gcp/clouddeploy/_inputs.py +96 -0
- pulumi_gcp/clouddeploy/custom_target_type.py +46 -0
- pulumi_gcp/clouddeploy/delivery_pipeline.py +7 -7
- pulumi_gcp/clouddeploy/outputs.py +96 -1
- pulumi_gcp/clouddeploy/target.py +54 -7
- pulumi_gcp/compute/_inputs.py +689 -0
- pulumi_gcp/compute/firewall_policy_rule.py +125 -10
- pulumi_gcp/compute/network_firewall_policy_rule.py +125 -10
- pulumi_gcp/compute/outputs.py +684 -0
- pulumi_gcp/compute/region_network_firewall_policy_rule.py +125 -10
- pulumi_gcp/compute/region_security_policy_rule.py +230 -1
- pulumi_gcp/container/_inputs.py +67 -3
- pulumi_gcp/container/outputs.py +93 -4
- pulumi_gcp/dataflow/flex_template_job.py +7 -7
- pulumi_gcp/dataflow/job.py +7 -7
- pulumi_gcp/iam/_inputs.py +191 -2
- pulumi_gcp/iam/outputs.py +197 -2
- pulumi_gcp/iam/workforce_pool_provider.py +245 -0
- pulumi_gcp/integrationconnectors/__init__.py +1 -0
- pulumi_gcp/integrationconnectors/managed_zone.py +753 -0
- pulumi_gcp/networkconnectivity/__init__.py +1 -0
- pulumi_gcp/networkconnectivity/regional_endpoint.py +946 -0
- pulumi_gcp/networksecurity/firewall_endpoint.py +34 -0
- pulumi_gcp/networksecurity/firewall_endpoint_association.py +24 -0
- pulumi_gcp/networksecurity/security_profile.py +16 -0
- pulumi_gcp/networksecurity/security_profile_group.py +18 -0
- pulumi_gcp/networksecurity/tls_inspection_policy.py +16 -0
- pulumi_gcp/orgpolicy/policy.py +2 -2
- pulumi_gcp/pubsub/subscription.py +4 -4
- pulumi_gcp/pulumi-plugin.json +2 -1
- {pulumi_gcp-7.23.0a1715621482.dist-info → pulumi_gcp-7.23.0a1715808346.dist-info}/METADATA +1 -1
- {pulumi_gcp-7.23.0a1715621482.dist-info → pulumi_gcp-7.23.0a1715808346.dist-info}/RECORD +42 -39
- {pulumi_gcp-7.23.0a1715621482.dist-info → pulumi_gcp-7.23.0a1715808346.dist-info}/WHEEL +0 -0
- {pulumi_gcp-7.23.0a1715621482.dist-info → pulumi_gcp-7.23.0a1715808346.dist-info}/top_level.txt +0 -0
@@ -23,8 +23,10 @@ class RegionSecurityPolicyRuleArgs:
|
|
23
23
|
description: Optional[pulumi.Input[str]] = None,
|
24
24
|
match: Optional[pulumi.Input['RegionSecurityPolicyRuleMatchArgs']] = None,
|
25
25
|
network_match: Optional[pulumi.Input['RegionSecurityPolicyRuleNetworkMatchArgs']] = None,
|
26
|
+
preconfigured_waf_config: Optional[pulumi.Input['RegionSecurityPolicyRulePreconfiguredWafConfigArgs']] = None,
|
26
27
|
preview: Optional[pulumi.Input[bool]] = None,
|
27
|
-
project: Optional[pulumi.Input[str]] = None
|
28
|
+
project: Optional[pulumi.Input[str]] = None,
|
29
|
+
rate_limit_options: Optional[pulumi.Input['RegionSecurityPolicyRuleRateLimitOptionsArgs']] = None):
|
28
30
|
"""
|
29
31
|
The set of arguments for constructing a RegionSecurityPolicyRule resource.
|
30
32
|
:param pulumi.Input[str] action: The Action to perform when the rule is matched. The following are the valid actions:
|
@@ -54,9 +56,14 @@ class RegionSecurityPolicyRuleArgs:
|
|
54
56
|
networkMatch: srcIpRanges: - "192.0.2.0/24" - "198.51.100.0/24" userDefinedFields: - name: "ipv4_fragment_offset" values: - "1-0x1fff"
|
55
57
|
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
|
56
58
|
Structure is documented below.
|
59
|
+
:param pulumi.Input['RegionSecurityPolicyRulePreconfiguredWafConfigArgs'] preconfigured_waf_config: Preconfigured WAF configuration to be applied for the rule.
|
60
|
+
If the rule does not evaluate preconfigured WAF rules, i.e., if evaluatePreconfiguredWaf() is not used, this field will have no effect.
|
61
|
+
Structure is documented below.
|
57
62
|
:param pulumi.Input[bool] preview: If set to true, the specified action is not enforced.
|
58
63
|
:param pulumi.Input[str] project: The ID of the project in which the resource belongs.
|
59
64
|
If it is not provided, the provider project is used.
|
65
|
+
:param pulumi.Input['RegionSecurityPolicyRuleRateLimitOptionsArgs'] rate_limit_options: Must be specified if the action is "rate_based_ban" or "throttle". Cannot be specified for any other actions.
|
66
|
+
Structure is documented below.
|
60
67
|
"""
|
61
68
|
pulumi.set(__self__, "action", action)
|
62
69
|
pulumi.set(__self__, "priority", priority)
|
@@ -68,10 +75,14 @@ class RegionSecurityPolicyRuleArgs:
|
|
68
75
|
pulumi.set(__self__, "match", match)
|
69
76
|
if network_match is not None:
|
70
77
|
pulumi.set(__self__, "network_match", network_match)
|
78
|
+
if preconfigured_waf_config is not None:
|
79
|
+
pulumi.set(__self__, "preconfigured_waf_config", preconfigured_waf_config)
|
71
80
|
if preview is not None:
|
72
81
|
pulumi.set(__self__, "preview", preview)
|
73
82
|
if project is not None:
|
74
83
|
pulumi.set(__self__, "project", project)
|
84
|
+
if rate_limit_options is not None:
|
85
|
+
pulumi.set(__self__, "rate_limit_options", rate_limit_options)
|
75
86
|
|
76
87
|
@property
|
77
88
|
@pulumi.getter
|
@@ -177,6 +188,20 @@ class RegionSecurityPolicyRuleArgs:
|
|
177
188
|
def network_match(self, value: Optional[pulumi.Input['RegionSecurityPolicyRuleNetworkMatchArgs']]):
|
178
189
|
pulumi.set(self, "network_match", value)
|
179
190
|
|
191
|
+
@property
|
192
|
+
@pulumi.getter(name="preconfiguredWafConfig")
|
193
|
+
def preconfigured_waf_config(self) -> Optional[pulumi.Input['RegionSecurityPolicyRulePreconfiguredWafConfigArgs']]:
|
194
|
+
"""
|
195
|
+
Preconfigured WAF configuration to be applied for the rule.
|
196
|
+
If the rule does not evaluate preconfigured WAF rules, i.e., if evaluatePreconfiguredWaf() is not used, this field will have no effect.
|
197
|
+
Structure is documented below.
|
198
|
+
"""
|
199
|
+
return pulumi.get(self, "preconfigured_waf_config")
|
200
|
+
|
201
|
+
@preconfigured_waf_config.setter
|
202
|
+
def preconfigured_waf_config(self, value: Optional[pulumi.Input['RegionSecurityPolicyRulePreconfiguredWafConfigArgs']]):
|
203
|
+
pulumi.set(self, "preconfigured_waf_config", value)
|
204
|
+
|
180
205
|
@property
|
181
206
|
@pulumi.getter
|
182
207
|
def preview(self) -> Optional[pulumi.Input[bool]]:
|
@@ -202,6 +227,19 @@ class RegionSecurityPolicyRuleArgs:
|
|
202
227
|
def project(self, value: Optional[pulumi.Input[str]]):
|
203
228
|
pulumi.set(self, "project", value)
|
204
229
|
|
230
|
+
@property
|
231
|
+
@pulumi.getter(name="rateLimitOptions")
|
232
|
+
def rate_limit_options(self) -> Optional[pulumi.Input['RegionSecurityPolicyRuleRateLimitOptionsArgs']]:
|
233
|
+
"""
|
234
|
+
Must be specified if the action is "rate_based_ban" or "throttle". Cannot be specified for any other actions.
|
235
|
+
Structure is documented below.
|
236
|
+
"""
|
237
|
+
return pulumi.get(self, "rate_limit_options")
|
238
|
+
|
239
|
+
@rate_limit_options.setter
|
240
|
+
def rate_limit_options(self, value: Optional[pulumi.Input['RegionSecurityPolicyRuleRateLimitOptionsArgs']]):
|
241
|
+
pulumi.set(self, "rate_limit_options", value)
|
242
|
+
|
205
243
|
|
206
244
|
@pulumi.input_type
|
207
245
|
class _RegionSecurityPolicyRuleState:
|
@@ -210,9 +248,11 @@ class _RegionSecurityPolicyRuleState:
|
|
210
248
|
description: Optional[pulumi.Input[str]] = None,
|
211
249
|
match: Optional[pulumi.Input['RegionSecurityPolicyRuleMatchArgs']] = None,
|
212
250
|
network_match: Optional[pulumi.Input['RegionSecurityPolicyRuleNetworkMatchArgs']] = None,
|
251
|
+
preconfigured_waf_config: Optional[pulumi.Input['RegionSecurityPolicyRulePreconfiguredWafConfigArgs']] = None,
|
213
252
|
preview: Optional[pulumi.Input[bool]] = None,
|
214
253
|
priority: Optional[pulumi.Input[int]] = None,
|
215
254
|
project: Optional[pulumi.Input[str]] = None,
|
255
|
+
rate_limit_options: Optional[pulumi.Input['RegionSecurityPolicyRuleRateLimitOptionsArgs']] = None,
|
216
256
|
region: Optional[pulumi.Input[str]] = None,
|
217
257
|
security_policy: Optional[pulumi.Input[str]] = None):
|
218
258
|
"""
|
@@ -236,12 +276,17 @@ class _RegionSecurityPolicyRuleState:
|
|
236
276
|
networkMatch: srcIpRanges: - "192.0.2.0/24" - "198.51.100.0/24" userDefinedFields: - name: "ipv4_fragment_offset" values: - "1-0x1fff"
|
237
277
|
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
|
238
278
|
Structure is documented below.
|
279
|
+
:param pulumi.Input['RegionSecurityPolicyRulePreconfiguredWafConfigArgs'] preconfigured_waf_config: Preconfigured WAF configuration to be applied for the rule.
|
280
|
+
If the rule does not evaluate preconfigured WAF rules, i.e., if evaluatePreconfiguredWaf() is not used, this field will have no effect.
|
281
|
+
Structure is documented below.
|
239
282
|
:param pulumi.Input[bool] preview: If set to true, the specified action is not enforced.
|
240
283
|
:param pulumi.Input[int] priority: An integer indicating the priority of a rule in the list.
|
241
284
|
The priority must be a positive value between 0 and 2147483647.
|
242
285
|
Rules are evaluated from highest to lowest priority where 0 is the highest priority and 2147483647 is the lowest priority.
|
243
286
|
:param pulumi.Input[str] project: The ID of the project in which the resource belongs.
|
244
287
|
If it is not provided, the provider project is used.
|
288
|
+
:param pulumi.Input['RegionSecurityPolicyRuleRateLimitOptionsArgs'] rate_limit_options: Must be specified if the action is "rate_based_ban" or "throttle". Cannot be specified for any other actions.
|
289
|
+
Structure is documented below.
|
245
290
|
:param pulumi.Input[str] region: The Region in which the created Region Security Policy rule should reside.
|
246
291
|
:param pulumi.Input[str] security_policy: The name of the security policy this rule belongs to.
|
247
292
|
|
@@ -256,12 +301,16 @@ class _RegionSecurityPolicyRuleState:
|
|
256
301
|
pulumi.set(__self__, "match", match)
|
257
302
|
if network_match is not None:
|
258
303
|
pulumi.set(__self__, "network_match", network_match)
|
304
|
+
if preconfigured_waf_config is not None:
|
305
|
+
pulumi.set(__self__, "preconfigured_waf_config", preconfigured_waf_config)
|
259
306
|
if preview is not None:
|
260
307
|
pulumi.set(__self__, "preview", preview)
|
261
308
|
if priority is not None:
|
262
309
|
pulumi.set(__self__, "priority", priority)
|
263
310
|
if project is not None:
|
264
311
|
pulumi.set(__self__, "project", project)
|
312
|
+
if rate_limit_options is not None:
|
313
|
+
pulumi.set(__self__, "rate_limit_options", rate_limit_options)
|
265
314
|
if region is not None:
|
266
315
|
pulumi.set(__self__, "region", region)
|
267
316
|
if security_policy is not None:
|
@@ -330,6 +379,20 @@ class _RegionSecurityPolicyRuleState:
|
|
330
379
|
def network_match(self, value: Optional[pulumi.Input['RegionSecurityPolicyRuleNetworkMatchArgs']]):
|
331
380
|
pulumi.set(self, "network_match", value)
|
332
381
|
|
382
|
+
@property
|
383
|
+
@pulumi.getter(name="preconfiguredWafConfig")
|
384
|
+
def preconfigured_waf_config(self) -> Optional[pulumi.Input['RegionSecurityPolicyRulePreconfiguredWafConfigArgs']]:
|
385
|
+
"""
|
386
|
+
Preconfigured WAF configuration to be applied for the rule.
|
387
|
+
If the rule does not evaluate preconfigured WAF rules, i.e., if evaluatePreconfiguredWaf() is not used, this field will have no effect.
|
388
|
+
Structure is documented below.
|
389
|
+
"""
|
390
|
+
return pulumi.get(self, "preconfigured_waf_config")
|
391
|
+
|
392
|
+
@preconfigured_waf_config.setter
|
393
|
+
def preconfigured_waf_config(self, value: Optional[pulumi.Input['RegionSecurityPolicyRulePreconfiguredWafConfigArgs']]):
|
394
|
+
pulumi.set(self, "preconfigured_waf_config", value)
|
395
|
+
|
333
396
|
@property
|
334
397
|
@pulumi.getter
|
335
398
|
def preview(self) -> Optional[pulumi.Input[bool]]:
|
@@ -369,6 +432,19 @@ class _RegionSecurityPolicyRuleState:
|
|
369
432
|
def project(self, value: Optional[pulumi.Input[str]]):
|
370
433
|
pulumi.set(self, "project", value)
|
371
434
|
|
435
|
+
@property
|
436
|
+
@pulumi.getter(name="rateLimitOptions")
|
437
|
+
def rate_limit_options(self) -> Optional[pulumi.Input['RegionSecurityPolicyRuleRateLimitOptionsArgs']]:
|
438
|
+
"""
|
439
|
+
Must be specified if the action is "rate_based_ban" or "throttle". Cannot be specified for any other actions.
|
440
|
+
Structure is documented below.
|
441
|
+
"""
|
442
|
+
return pulumi.get(self, "rate_limit_options")
|
443
|
+
|
444
|
+
@rate_limit_options.setter
|
445
|
+
def rate_limit_options(self, value: Optional[pulumi.Input['RegionSecurityPolicyRuleRateLimitOptionsArgs']]):
|
446
|
+
pulumi.set(self, "rate_limit_options", value)
|
447
|
+
|
372
448
|
@property
|
373
449
|
@pulumi.getter
|
374
450
|
def region(self) -> Optional[pulumi.Input[str]]:
|
@@ -406,9 +482,11 @@ class RegionSecurityPolicyRule(pulumi.CustomResource):
|
|
406
482
|
description: Optional[pulumi.Input[str]] = None,
|
407
483
|
match: Optional[pulumi.Input[pulumi.InputType['RegionSecurityPolicyRuleMatchArgs']]] = None,
|
408
484
|
network_match: Optional[pulumi.Input[pulumi.InputType['RegionSecurityPolicyRuleNetworkMatchArgs']]] = None,
|
485
|
+
preconfigured_waf_config: Optional[pulumi.Input[pulumi.InputType['RegionSecurityPolicyRulePreconfiguredWafConfigArgs']]] = None,
|
409
486
|
preview: Optional[pulumi.Input[bool]] = None,
|
410
487
|
priority: Optional[pulumi.Input[int]] = None,
|
411
488
|
project: Optional[pulumi.Input[str]] = None,
|
489
|
+
rate_limit_options: Optional[pulumi.Input[pulumi.InputType['RegionSecurityPolicyRuleRateLimitOptionsArgs']]] = None,
|
412
490
|
region: Optional[pulumi.Input[str]] = None,
|
413
491
|
security_policy: Optional[pulumi.Input[str]] = None,
|
414
492
|
__props__=None):
|
@@ -481,6 +559,63 @@ class RegionSecurityPolicyRule(pulumi.CustomResource):
|
|
481
559
|
action="allow",
|
482
560
|
preview=True)
|
483
561
|
```
|
562
|
+
### Region Security Policy Rule With Preconfigured Waf Config
|
563
|
+
|
564
|
+
```python
|
565
|
+
import pulumi
|
566
|
+
import pulumi_gcp as gcp
|
567
|
+
|
568
|
+
default = gcp.compute.RegionSecurityPolicy("default",
|
569
|
+
region="asia-southeast1",
|
570
|
+
name="policyruletest",
|
571
|
+
description="basic region security policy",
|
572
|
+
type="CLOUD_ARMOR")
|
573
|
+
policy_rule = gcp.compute.RegionSecurityPolicyRule("policy_rule",
|
574
|
+
region="asia-southeast1",
|
575
|
+
security_policy=default.name,
|
576
|
+
description="new rule",
|
577
|
+
priority=100,
|
578
|
+
match=gcp.compute.RegionSecurityPolicyRuleMatchArgs(
|
579
|
+
versioned_expr="SRC_IPS_V1",
|
580
|
+
config=gcp.compute.RegionSecurityPolicyRuleMatchConfigArgs(
|
581
|
+
src_ip_ranges=["10.10.0.0/16"],
|
582
|
+
),
|
583
|
+
),
|
584
|
+
preconfigured_waf_config=gcp.compute.RegionSecurityPolicyRulePreconfiguredWafConfigArgs(
|
585
|
+
exclusions=[
|
586
|
+
gcp.compute.RegionSecurityPolicyRulePreconfiguredWafConfigExclusionArgs(
|
587
|
+
request_uris=[gcp.compute.RegionSecurityPolicyRulePreconfiguredWafConfigExclusionRequestUriArgs(
|
588
|
+
operator="STARTS_WITH",
|
589
|
+
value="/admin",
|
590
|
+
)],
|
591
|
+
target_rule_set="rce-stable",
|
592
|
+
),
|
593
|
+
gcp.compute.RegionSecurityPolicyRulePreconfiguredWafConfigExclusionArgs(
|
594
|
+
request_query_params=[
|
595
|
+
gcp.compute.RegionSecurityPolicyRulePreconfiguredWafConfigExclusionRequestQueryParamArgs(
|
596
|
+
operator="CONTAINS",
|
597
|
+
value="password",
|
598
|
+
),
|
599
|
+
gcp.compute.RegionSecurityPolicyRulePreconfiguredWafConfigExclusionRequestQueryParamArgs(
|
600
|
+
operator="STARTS_WITH",
|
601
|
+
value="freeform",
|
602
|
+
),
|
603
|
+
gcp.compute.RegionSecurityPolicyRulePreconfiguredWafConfigExclusionRequestQueryParamArgs(
|
604
|
+
operator="EQUALS",
|
605
|
+
value="description",
|
606
|
+
),
|
607
|
+
],
|
608
|
+
target_rule_set="xss-stable",
|
609
|
+
target_rule_ids=[
|
610
|
+
"owasp-crs-v030001-id941330-xss",
|
611
|
+
"owasp-crs-v030001-id941340-xss",
|
612
|
+
],
|
613
|
+
),
|
614
|
+
],
|
615
|
+
),
|
616
|
+
action="allow",
|
617
|
+
preview=True)
|
618
|
+
```
|
484
619
|
### Region Security Policy Rule With Network Match
|
485
620
|
|
486
621
|
```python
|
@@ -581,12 +716,17 @@ class RegionSecurityPolicyRule(pulumi.CustomResource):
|
|
581
716
|
networkMatch: srcIpRanges: - "192.0.2.0/24" - "198.51.100.0/24" userDefinedFields: - name: "ipv4_fragment_offset" values: - "1-0x1fff"
|
582
717
|
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
|
583
718
|
Structure is documented below.
|
719
|
+
:param pulumi.Input[pulumi.InputType['RegionSecurityPolicyRulePreconfiguredWafConfigArgs']] preconfigured_waf_config: Preconfigured WAF configuration to be applied for the rule.
|
720
|
+
If the rule does not evaluate preconfigured WAF rules, i.e., if evaluatePreconfiguredWaf() is not used, this field will have no effect.
|
721
|
+
Structure is documented below.
|
584
722
|
:param pulumi.Input[bool] preview: If set to true, the specified action is not enforced.
|
585
723
|
:param pulumi.Input[int] priority: An integer indicating the priority of a rule in the list.
|
586
724
|
The priority must be a positive value between 0 and 2147483647.
|
587
725
|
Rules are evaluated from highest to lowest priority where 0 is the highest priority and 2147483647 is the lowest priority.
|
588
726
|
:param pulumi.Input[str] project: The ID of the project in which the resource belongs.
|
589
727
|
If it is not provided, the provider project is used.
|
728
|
+
:param pulumi.Input[pulumi.InputType['RegionSecurityPolicyRuleRateLimitOptionsArgs']] rate_limit_options: Must be specified if the action is "rate_based_ban" or "throttle". Cannot be specified for any other actions.
|
729
|
+
Structure is documented below.
|
590
730
|
:param pulumi.Input[str] region: The Region in which the created Region Security Policy rule should reside.
|
591
731
|
:param pulumi.Input[str] security_policy: The name of the security policy this rule belongs to.
|
592
732
|
|
@@ -668,6 +808,63 @@ class RegionSecurityPolicyRule(pulumi.CustomResource):
|
|
668
808
|
action="allow",
|
669
809
|
preview=True)
|
670
810
|
```
|
811
|
+
### Region Security Policy Rule With Preconfigured Waf Config
|
812
|
+
|
813
|
+
```python
|
814
|
+
import pulumi
|
815
|
+
import pulumi_gcp as gcp
|
816
|
+
|
817
|
+
default = gcp.compute.RegionSecurityPolicy("default",
|
818
|
+
region="asia-southeast1",
|
819
|
+
name="policyruletest",
|
820
|
+
description="basic region security policy",
|
821
|
+
type="CLOUD_ARMOR")
|
822
|
+
policy_rule = gcp.compute.RegionSecurityPolicyRule("policy_rule",
|
823
|
+
region="asia-southeast1",
|
824
|
+
security_policy=default.name,
|
825
|
+
description="new rule",
|
826
|
+
priority=100,
|
827
|
+
match=gcp.compute.RegionSecurityPolicyRuleMatchArgs(
|
828
|
+
versioned_expr="SRC_IPS_V1",
|
829
|
+
config=gcp.compute.RegionSecurityPolicyRuleMatchConfigArgs(
|
830
|
+
src_ip_ranges=["10.10.0.0/16"],
|
831
|
+
),
|
832
|
+
),
|
833
|
+
preconfigured_waf_config=gcp.compute.RegionSecurityPolicyRulePreconfiguredWafConfigArgs(
|
834
|
+
exclusions=[
|
835
|
+
gcp.compute.RegionSecurityPolicyRulePreconfiguredWafConfigExclusionArgs(
|
836
|
+
request_uris=[gcp.compute.RegionSecurityPolicyRulePreconfiguredWafConfigExclusionRequestUriArgs(
|
837
|
+
operator="STARTS_WITH",
|
838
|
+
value="/admin",
|
839
|
+
)],
|
840
|
+
target_rule_set="rce-stable",
|
841
|
+
),
|
842
|
+
gcp.compute.RegionSecurityPolicyRulePreconfiguredWafConfigExclusionArgs(
|
843
|
+
request_query_params=[
|
844
|
+
gcp.compute.RegionSecurityPolicyRulePreconfiguredWafConfigExclusionRequestQueryParamArgs(
|
845
|
+
operator="CONTAINS",
|
846
|
+
value="password",
|
847
|
+
),
|
848
|
+
gcp.compute.RegionSecurityPolicyRulePreconfiguredWafConfigExclusionRequestQueryParamArgs(
|
849
|
+
operator="STARTS_WITH",
|
850
|
+
value="freeform",
|
851
|
+
),
|
852
|
+
gcp.compute.RegionSecurityPolicyRulePreconfiguredWafConfigExclusionRequestQueryParamArgs(
|
853
|
+
operator="EQUALS",
|
854
|
+
value="description",
|
855
|
+
),
|
856
|
+
],
|
857
|
+
target_rule_set="xss-stable",
|
858
|
+
target_rule_ids=[
|
859
|
+
"owasp-crs-v030001-id941330-xss",
|
860
|
+
"owasp-crs-v030001-id941340-xss",
|
861
|
+
],
|
862
|
+
),
|
863
|
+
],
|
864
|
+
),
|
865
|
+
action="allow",
|
866
|
+
preview=True)
|
867
|
+
```
|
671
868
|
### Region Security Policy Rule With Network Match
|
672
869
|
|
673
870
|
```python
|
@@ -766,9 +963,11 @@ class RegionSecurityPolicyRule(pulumi.CustomResource):
|
|
766
963
|
description: Optional[pulumi.Input[str]] = None,
|
767
964
|
match: Optional[pulumi.Input[pulumi.InputType['RegionSecurityPolicyRuleMatchArgs']]] = None,
|
768
965
|
network_match: Optional[pulumi.Input[pulumi.InputType['RegionSecurityPolicyRuleNetworkMatchArgs']]] = None,
|
966
|
+
preconfigured_waf_config: Optional[pulumi.Input[pulumi.InputType['RegionSecurityPolicyRulePreconfiguredWafConfigArgs']]] = None,
|
769
967
|
preview: Optional[pulumi.Input[bool]] = None,
|
770
968
|
priority: Optional[pulumi.Input[int]] = None,
|
771
969
|
project: Optional[pulumi.Input[str]] = None,
|
970
|
+
rate_limit_options: Optional[pulumi.Input[pulumi.InputType['RegionSecurityPolicyRuleRateLimitOptionsArgs']]] = None,
|
772
971
|
region: Optional[pulumi.Input[str]] = None,
|
773
972
|
security_policy: Optional[pulumi.Input[str]] = None,
|
774
973
|
__props__=None):
|
@@ -786,11 +985,13 @@ class RegionSecurityPolicyRule(pulumi.CustomResource):
|
|
786
985
|
__props__.__dict__["description"] = description
|
787
986
|
__props__.__dict__["match"] = match
|
788
987
|
__props__.__dict__["network_match"] = network_match
|
988
|
+
__props__.__dict__["preconfigured_waf_config"] = preconfigured_waf_config
|
789
989
|
__props__.__dict__["preview"] = preview
|
790
990
|
if priority is None and not opts.urn:
|
791
991
|
raise TypeError("Missing required property 'priority'")
|
792
992
|
__props__.__dict__["priority"] = priority
|
793
993
|
__props__.__dict__["project"] = project
|
994
|
+
__props__.__dict__["rate_limit_options"] = rate_limit_options
|
794
995
|
if region is None and not opts.urn:
|
795
996
|
raise TypeError("Missing required property 'region'")
|
796
997
|
__props__.__dict__["region"] = region
|
@@ -811,9 +1012,11 @@ class RegionSecurityPolicyRule(pulumi.CustomResource):
|
|
811
1012
|
description: Optional[pulumi.Input[str]] = None,
|
812
1013
|
match: Optional[pulumi.Input[pulumi.InputType['RegionSecurityPolicyRuleMatchArgs']]] = None,
|
813
1014
|
network_match: Optional[pulumi.Input[pulumi.InputType['RegionSecurityPolicyRuleNetworkMatchArgs']]] = None,
|
1015
|
+
preconfigured_waf_config: Optional[pulumi.Input[pulumi.InputType['RegionSecurityPolicyRulePreconfiguredWafConfigArgs']]] = None,
|
814
1016
|
preview: Optional[pulumi.Input[bool]] = None,
|
815
1017
|
priority: Optional[pulumi.Input[int]] = None,
|
816
1018
|
project: Optional[pulumi.Input[str]] = None,
|
1019
|
+
rate_limit_options: Optional[pulumi.Input[pulumi.InputType['RegionSecurityPolicyRuleRateLimitOptionsArgs']]] = None,
|
817
1020
|
region: Optional[pulumi.Input[str]] = None,
|
818
1021
|
security_policy: Optional[pulumi.Input[str]] = None) -> 'RegionSecurityPolicyRule':
|
819
1022
|
"""
|
@@ -842,12 +1045,17 @@ class RegionSecurityPolicyRule(pulumi.CustomResource):
|
|
842
1045
|
networkMatch: srcIpRanges: - "192.0.2.0/24" - "198.51.100.0/24" userDefinedFields: - name: "ipv4_fragment_offset" values: - "1-0x1fff"
|
843
1046
|
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
|
844
1047
|
Structure is documented below.
|
1048
|
+
:param pulumi.Input[pulumi.InputType['RegionSecurityPolicyRulePreconfiguredWafConfigArgs']] preconfigured_waf_config: Preconfigured WAF configuration to be applied for the rule.
|
1049
|
+
If the rule does not evaluate preconfigured WAF rules, i.e., if evaluatePreconfiguredWaf() is not used, this field will have no effect.
|
1050
|
+
Structure is documented below.
|
845
1051
|
:param pulumi.Input[bool] preview: If set to true, the specified action is not enforced.
|
846
1052
|
:param pulumi.Input[int] priority: An integer indicating the priority of a rule in the list.
|
847
1053
|
The priority must be a positive value between 0 and 2147483647.
|
848
1054
|
Rules are evaluated from highest to lowest priority where 0 is the highest priority and 2147483647 is the lowest priority.
|
849
1055
|
:param pulumi.Input[str] project: The ID of the project in which the resource belongs.
|
850
1056
|
If it is not provided, the provider project is used.
|
1057
|
+
:param pulumi.Input[pulumi.InputType['RegionSecurityPolicyRuleRateLimitOptionsArgs']] rate_limit_options: Must be specified if the action is "rate_based_ban" or "throttle". Cannot be specified for any other actions.
|
1058
|
+
Structure is documented below.
|
851
1059
|
:param pulumi.Input[str] region: The Region in which the created Region Security Policy rule should reside.
|
852
1060
|
:param pulumi.Input[str] security_policy: The name of the security policy this rule belongs to.
|
853
1061
|
|
@@ -862,9 +1070,11 @@ class RegionSecurityPolicyRule(pulumi.CustomResource):
|
|
862
1070
|
__props__.__dict__["description"] = description
|
863
1071
|
__props__.__dict__["match"] = match
|
864
1072
|
__props__.__dict__["network_match"] = network_match
|
1073
|
+
__props__.__dict__["preconfigured_waf_config"] = preconfigured_waf_config
|
865
1074
|
__props__.__dict__["preview"] = preview
|
866
1075
|
__props__.__dict__["priority"] = priority
|
867
1076
|
__props__.__dict__["project"] = project
|
1077
|
+
__props__.__dict__["rate_limit_options"] = rate_limit_options
|
868
1078
|
__props__.__dict__["region"] = region
|
869
1079
|
__props__.__dict__["security_policy"] = security_policy
|
870
1080
|
return RegionSecurityPolicyRule(resource_name, opts=opts, __props__=__props__)
|
@@ -916,6 +1126,16 @@ class RegionSecurityPolicyRule(pulumi.CustomResource):
|
|
916
1126
|
"""
|
917
1127
|
return pulumi.get(self, "network_match")
|
918
1128
|
|
1129
|
+
@property
|
1130
|
+
@pulumi.getter(name="preconfiguredWafConfig")
|
1131
|
+
def preconfigured_waf_config(self) -> pulumi.Output[Optional['outputs.RegionSecurityPolicyRulePreconfiguredWafConfig']]:
|
1132
|
+
"""
|
1133
|
+
Preconfigured WAF configuration to be applied for the rule.
|
1134
|
+
If the rule does not evaluate preconfigured WAF rules, i.e., if evaluatePreconfiguredWaf() is not used, this field will have no effect.
|
1135
|
+
Structure is documented below.
|
1136
|
+
"""
|
1137
|
+
return pulumi.get(self, "preconfigured_waf_config")
|
1138
|
+
|
919
1139
|
@property
|
920
1140
|
@pulumi.getter
|
921
1141
|
def preview(self) -> pulumi.Output[Optional[bool]]:
|
@@ -943,6 +1163,15 @@ class RegionSecurityPolicyRule(pulumi.CustomResource):
|
|
943
1163
|
"""
|
944
1164
|
return pulumi.get(self, "project")
|
945
1165
|
|
1166
|
+
@property
|
1167
|
+
@pulumi.getter(name="rateLimitOptions")
|
1168
|
+
def rate_limit_options(self) -> pulumi.Output[Optional['outputs.RegionSecurityPolicyRuleRateLimitOptions']]:
|
1169
|
+
"""
|
1170
|
+
Must be specified if the action is "rate_based_ban" or "throttle". Cannot be specified for any other actions.
|
1171
|
+
Structure is documented below.
|
1172
|
+
"""
|
1173
|
+
return pulumi.get(self, "rate_limit_options")
|
1174
|
+
|
946
1175
|
@property
|
947
1176
|
@pulumi.getter
|
948
1177
|
def region(self) -> pulumi.Output[str]:
|
pulumi_gcp/container/_inputs.py
CHANGED
@@ -4551,14 +4551,18 @@ class ClusterDefaultSnatStatusArgs:
|
|
4551
4551
|
@pulumi.input_type
|
4552
4552
|
class ClusterDnsConfigArgs:
|
4553
4553
|
def __init__(__self__, *,
|
4554
|
+
additive_vpc_scope_dns_domain: Optional[pulumi.Input[str]] = None,
|
4554
4555
|
cluster_dns: Optional[pulumi.Input[str]] = None,
|
4555
4556
|
cluster_dns_domain: Optional[pulumi.Input[str]] = None,
|
4556
4557
|
cluster_dns_scope: Optional[pulumi.Input[str]] = None):
|
4557
4558
|
"""
|
4559
|
+
:param pulumi.Input[str] additive_vpc_scope_dns_domain: This will enable Cloud DNS additive VPC scope. Must provide a domain name that is unique within the VPC. For this to work `cluster_dns = "CLOUD_DNS"` and `cluster_dns_scope = "CLUSTER_SCOPE"` must both be set as well.
|
4558
4560
|
:param pulumi.Input[str] cluster_dns: Which in-cluster DNS provider should be used. `PROVIDER_UNSPECIFIED` (default) or `PLATFORM_DEFAULT` or `CLOUD_DNS`.
|
4559
4561
|
:param pulumi.Input[str] cluster_dns_domain: The suffix used for all cluster service records.
|
4560
4562
|
:param pulumi.Input[str] cluster_dns_scope: The scope of access to cluster DNS records. `DNS_SCOPE_UNSPECIFIED` (default) or `CLUSTER_SCOPE` or `VPC_SCOPE`.
|
4561
4563
|
"""
|
4564
|
+
if additive_vpc_scope_dns_domain is not None:
|
4565
|
+
pulumi.set(__self__, "additive_vpc_scope_dns_domain", additive_vpc_scope_dns_domain)
|
4562
4566
|
if cluster_dns is not None:
|
4563
4567
|
pulumi.set(__self__, "cluster_dns", cluster_dns)
|
4564
4568
|
if cluster_dns_domain is not None:
|
@@ -4566,6 +4570,18 @@ class ClusterDnsConfigArgs:
|
|
4566
4570
|
if cluster_dns_scope is not None:
|
4567
4571
|
pulumi.set(__self__, "cluster_dns_scope", cluster_dns_scope)
|
4568
4572
|
|
4573
|
+
@property
|
4574
|
+
@pulumi.getter(name="additiveVpcScopeDnsDomain")
|
4575
|
+
def additive_vpc_scope_dns_domain(self) -> Optional[pulumi.Input[str]]:
|
4576
|
+
"""
|
4577
|
+
This will enable Cloud DNS additive VPC scope. Must provide a domain name that is unique within the VPC. For this to work `cluster_dns = "CLOUD_DNS"` and `cluster_dns_scope = "CLUSTER_SCOPE"` must both be set as well.
|
4578
|
+
"""
|
4579
|
+
return pulumi.get(self, "additive_vpc_scope_dns_domain")
|
4580
|
+
|
4581
|
+
@additive_vpc_scope_dns_domain.setter
|
4582
|
+
def additive_vpc_scope_dns_domain(self, value: Optional[pulumi.Input[str]]):
|
4583
|
+
pulumi.set(self, "additive_vpc_scope_dns_domain", value)
|
4584
|
+
|
4569
4585
|
@property
|
4570
4586
|
@pulumi.getter(name="clusterDns")
|
4571
4587
|
def cluster_dns(self) -> Optional[pulumi.Input[str]]:
|
@@ -6445,11 +6461,15 @@ class ClusterNodeConfigArgs:
|
|
6445
6461
|
@pulumi.input_type
|
6446
6462
|
class ClusterNodeConfigAdvancedMachineFeaturesArgs:
|
6447
6463
|
def __init__(__self__, *,
|
6448
|
-
threads_per_core: pulumi.Input[int]
|
6464
|
+
threads_per_core: pulumi.Input[int],
|
6465
|
+
enable_nested_virtualization: Optional[pulumi.Input[bool]] = None):
|
6449
6466
|
"""
|
6450
6467
|
:param pulumi.Input[int] threads_per_core: The number of threads per physical core. To disable simultaneous multithreading (SMT) set this to 1. If unset, the maximum number of threads supported per core by the underlying processor is assumed.
|
6468
|
+
:param pulumi.Input[bool] enable_nested_virtualization: Defines whether the instance should have nested virtualization enabled. Defaults to false.
|
6451
6469
|
"""
|
6452
6470
|
pulumi.set(__self__, "threads_per_core", threads_per_core)
|
6471
|
+
if enable_nested_virtualization is not None:
|
6472
|
+
pulumi.set(__self__, "enable_nested_virtualization", enable_nested_virtualization)
|
6453
6473
|
|
6454
6474
|
@property
|
6455
6475
|
@pulumi.getter(name="threadsPerCore")
|
@@ -6463,6 +6483,18 @@ class ClusterNodeConfigAdvancedMachineFeaturesArgs:
|
|
6463
6483
|
def threads_per_core(self, value: pulumi.Input[int]):
|
6464
6484
|
pulumi.set(self, "threads_per_core", value)
|
6465
6485
|
|
6486
|
+
@property
|
6487
|
+
@pulumi.getter(name="enableNestedVirtualization")
|
6488
|
+
def enable_nested_virtualization(self) -> Optional[pulumi.Input[bool]]:
|
6489
|
+
"""
|
6490
|
+
Defines whether the instance should have nested virtualization enabled. Defaults to false.
|
6491
|
+
"""
|
6492
|
+
return pulumi.get(self, "enable_nested_virtualization")
|
6493
|
+
|
6494
|
+
@enable_nested_virtualization.setter
|
6495
|
+
def enable_nested_virtualization(self, value: Optional[pulumi.Input[bool]]):
|
6496
|
+
pulumi.set(self, "enable_nested_virtualization", value)
|
6497
|
+
|
6466
6498
|
|
6467
6499
|
@pulumi.input_type
|
6468
6500
|
class ClusterNodeConfigConfidentialNodesArgs:
|
@@ -8949,11 +8981,15 @@ class ClusterNodePoolNodeConfigArgs:
|
|
8949
8981
|
@pulumi.input_type
|
8950
8982
|
class ClusterNodePoolNodeConfigAdvancedMachineFeaturesArgs:
|
8951
8983
|
def __init__(__self__, *,
|
8952
|
-
threads_per_core: pulumi.Input[int]
|
8984
|
+
threads_per_core: pulumi.Input[int],
|
8985
|
+
enable_nested_virtualization: Optional[pulumi.Input[bool]] = None):
|
8953
8986
|
"""
|
8954
8987
|
:param pulumi.Input[int] threads_per_core: The number of threads per physical core. To disable simultaneous multithreading (SMT) set this to 1. If unset, the maximum number of threads supported per core by the underlying processor is assumed.
|
8988
|
+
:param pulumi.Input[bool] enable_nested_virtualization: Defines whether the instance should have nested virtualization enabled. Defaults to false.
|
8955
8989
|
"""
|
8956
8990
|
pulumi.set(__self__, "threads_per_core", threads_per_core)
|
8991
|
+
if enable_nested_virtualization is not None:
|
8992
|
+
pulumi.set(__self__, "enable_nested_virtualization", enable_nested_virtualization)
|
8957
8993
|
|
8958
8994
|
@property
|
8959
8995
|
@pulumi.getter(name="threadsPerCore")
|
@@ -8967,6 +9003,18 @@ class ClusterNodePoolNodeConfigAdvancedMachineFeaturesArgs:
|
|
8967
9003
|
def threads_per_core(self, value: pulumi.Input[int]):
|
8968
9004
|
pulumi.set(self, "threads_per_core", value)
|
8969
9005
|
|
9006
|
+
@property
|
9007
|
+
@pulumi.getter(name="enableNestedVirtualization")
|
9008
|
+
def enable_nested_virtualization(self) -> Optional[pulumi.Input[bool]]:
|
9009
|
+
"""
|
9010
|
+
Defines whether the instance should have nested virtualization enabled. Defaults to false.
|
9011
|
+
"""
|
9012
|
+
return pulumi.get(self, "enable_nested_virtualization")
|
9013
|
+
|
9014
|
+
@enable_nested_virtualization.setter
|
9015
|
+
def enable_nested_virtualization(self, value: Optional[pulumi.Input[bool]]):
|
9016
|
+
pulumi.set(self, "enable_nested_virtualization", value)
|
9017
|
+
|
8970
9018
|
|
8971
9019
|
@pulumi.input_type
|
8972
9020
|
class ClusterNodePoolNodeConfigConfidentialNodesArgs:
|
@@ -11812,11 +11860,15 @@ class NodePoolNodeConfigArgs:
|
|
11812
11860
|
@pulumi.input_type
|
11813
11861
|
class NodePoolNodeConfigAdvancedMachineFeaturesArgs:
|
11814
11862
|
def __init__(__self__, *,
|
11815
|
-
threads_per_core: pulumi.Input[int]
|
11863
|
+
threads_per_core: pulumi.Input[int],
|
11864
|
+
enable_nested_virtualization: Optional[pulumi.Input[bool]] = None):
|
11816
11865
|
"""
|
11817
11866
|
:param pulumi.Input[int] threads_per_core: The number of threads per physical core. To disable simultaneous multithreading (SMT) set this to 1. If unset, the maximum number of threads supported per core by the underlying processor is assumed.
|
11867
|
+
:param pulumi.Input[bool] enable_nested_virtualization: Whether the node should have nested virtualization enabled.
|
11818
11868
|
"""
|
11819
11869
|
pulumi.set(__self__, "threads_per_core", threads_per_core)
|
11870
|
+
if enable_nested_virtualization is not None:
|
11871
|
+
pulumi.set(__self__, "enable_nested_virtualization", enable_nested_virtualization)
|
11820
11872
|
|
11821
11873
|
@property
|
11822
11874
|
@pulumi.getter(name="threadsPerCore")
|
@@ -11830,6 +11882,18 @@ class NodePoolNodeConfigAdvancedMachineFeaturesArgs:
|
|
11830
11882
|
def threads_per_core(self, value: pulumi.Input[int]):
|
11831
11883
|
pulumi.set(self, "threads_per_core", value)
|
11832
11884
|
|
11885
|
+
@property
|
11886
|
+
@pulumi.getter(name="enableNestedVirtualization")
|
11887
|
+
def enable_nested_virtualization(self) -> Optional[pulumi.Input[bool]]:
|
11888
|
+
"""
|
11889
|
+
Whether the node should have nested virtualization enabled.
|
11890
|
+
"""
|
11891
|
+
return pulumi.get(self, "enable_nested_virtualization")
|
11892
|
+
|
11893
|
+
@enable_nested_virtualization.setter
|
11894
|
+
def enable_nested_virtualization(self, value: Optional[pulumi.Input[bool]]):
|
11895
|
+
pulumi.set(self, "enable_nested_virtualization", value)
|
11896
|
+
|
11833
11897
|
|
11834
11898
|
@pulumi.input_type
|
11835
11899
|
class NodePoolNodeConfigConfidentialNodesArgs:
|