pulumi-gcp 7.22.0a1715345822__py3-none-any.whl → 7.23.0__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 +35 -0
- pulumi_gcp/alloydb/_inputs.py +139 -0
- pulumi_gcp/alloydb/cluster.py +54 -0
- pulumi_gcp/alloydb/outputs.py +145 -0
- pulumi_gcp/applicationintegration/auth_config.py +2 -6
- pulumi_gcp/applicationintegration/client.py +133 -18
- pulumi_gcp/bigquery/dataset.py +2 -2
- pulumi_gcp/bigquery/job.py +16 -20
- 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/cloudrunv2/job.py +2 -4
- pulumi_gcp/cloudrunv2/service.py +2 -4
- pulumi_gcp/compute/_inputs.py +693 -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 +688 -0
- pulumi_gcp/compute/region_network_firewall_policy_rule.py +125 -10
- pulumi_gcp/compute/region_security_policy_rule.py +230 -1
- pulumi_gcp/compute/router_peer.py +54 -14
- pulumi_gcp/config/__init__.pyi +2 -0
- pulumi_gcp/config/vars.py +4 -0
- pulumi_gcp/container/_inputs.py +236 -3
- pulumi_gcp/container/outputs.py +365 -4
- pulumi_gcp/dataflow/flex_template_job.py +28 -28
- pulumi_gcp/dataflow/job.py +28 -14
- pulumi_gcp/essentialcontacts/document_ai_warehouse_document_schema.py +0 -528
- pulumi_gcp/firebaserules/release.py +2 -2
- 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/privilegedaccessmanager/__init__.py +10 -0
- pulumi_gcp/privilegedaccessmanager/_inputs.py +420 -0
- pulumi_gcp/privilegedaccessmanager/entitlement.py +852 -0
- pulumi_gcp/privilegedaccessmanager/outputs.py +491 -0
- pulumi_gcp/provider.py +20 -0
- pulumi_gcp/pubsub/subscription.py +4 -4
- pulumi_gcp/pulumi-plugin.json +2 -1
- pulumi_gcp/redis/cluster.py +69 -2
- pulumi_gcp/storage/__init__.py +1 -0
- pulumi_gcp/storage/get_buckets.py +138 -0
- pulumi_gcp/storage/outputs.py +63 -0
- {pulumi_gcp-7.22.0a1715345822.dist-info → pulumi_gcp-7.23.0.dist-info}/METADATA +1 -1
- {pulumi_gcp-7.22.0a1715345822.dist-info → pulumi_gcp-7.23.0.dist-info}/RECORD +65 -57
- {pulumi_gcp-7.22.0a1715345822.dist-info → pulumi_gcp-7.23.0.dist-info}/WHEEL +0 -0
- {pulumi_gcp-7.22.0a1715345822.dist-info → pulumi_gcp-7.23.0.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]:
|
@@ -77,8 +77,8 @@ class RouterPeerArgs:
|
|
77
77
|
The address must be in the range 2600:2d00:0:2::/64 or 2600:2d00:0:3::/64.
|
78
78
|
If you do not specify the next hop addresses, Google Cloud automatically
|
79
79
|
assigns unused addresses from the 2600:2d00:0:2::/64 or 2600:2d00:0:3::/64 range for you.
|
80
|
-
:param pulumi.Input['RouterPeerMd5AuthenticationKeyArgs'] md5_authentication_key:
|
81
|
-
|
80
|
+
:param pulumi.Input['RouterPeerMd5AuthenticationKeyArgs'] md5_authentication_key: Configuration for MD5 authentication on the BGP session.
|
81
|
+
Structure is documented below.
|
82
82
|
:param pulumi.Input[str] name: Name of this BGP peer. The name must be 1-63 characters long,
|
83
83
|
and comply with RFC1035. Specifically, the name must be 1-63 characters
|
84
84
|
long and match the regular expression `a-z?` which
|
@@ -338,8 +338,8 @@ class RouterPeerArgs:
|
|
338
338
|
@pulumi.getter(name="md5AuthenticationKey")
|
339
339
|
def md5_authentication_key(self) -> Optional[pulumi.Input['RouterPeerMd5AuthenticationKeyArgs']]:
|
340
340
|
"""
|
341
|
-
|
342
|
-
|
341
|
+
Configuration for MD5 authentication on the BGP session.
|
342
|
+
Structure is documented below.
|
343
343
|
"""
|
344
344
|
return pulumi.get(self, "md5_authentication_key")
|
345
345
|
|
@@ -506,8 +506,8 @@ class _RouterPeerState:
|
|
506
506
|
If you do not specify the next hop addresses, Google Cloud automatically
|
507
507
|
assigns unused addresses from the 2600:2d00:0:2::/64 or 2600:2d00:0:3::/64 range for you.
|
508
508
|
:param pulumi.Input[str] management_type: The resource that configures and manages this BGP peer.
|
509
|
-
:param pulumi.Input['RouterPeerMd5AuthenticationKeyArgs'] md5_authentication_key:
|
510
|
-
|
509
|
+
:param pulumi.Input['RouterPeerMd5AuthenticationKeyArgs'] md5_authentication_key: Configuration for MD5 authentication on the BGP session.
|
510
|
+
Structure is documented below.
|
511
511
|
:param pulumi.Input[str] name: Name of this BGP peer. The name must be 1-63 characters long,
|
512
512
|
and comply with RFC1035. Specifically, the name must be 1-63 characters
|
513
513
|
long and match the regular expression `a-z?` which
|
@@ -762,8 +762,8 @@ class _RouterPeerState:
|
|
762
762
|
@pulumi.getter(name="md5AuthenticationKey")
|
763
763
|
def md5_authentication_key(self) -> Optional[pulumi.Input['RouterPeerMd5AuthenticationKeyArgs']]:
|
764
764
|
"""
|
765
|
-
|
766
|
-
|
765
|
+
Configuration for MD5 authentication on the BGP session.
|
766
|
+
Structure is documented below.
|
767
767
|
"""
|
768
768
|
return pulumi.get(self, "md5_authentication_key")
|
769
769
|
|
@@ -1076,6 +1076,26 @@ class RouterPeer(pulumi.CustomResource):
|
|
1076
1076
|
peer_ip_address=addr_peer.address)
|
1077
1077
|
```
|
1078
1078
|
|
1079
|
+
### Router Peer Md5 Authentication Key
|
1080
|
+
|
1081
|
+
```python
|
1082
|
+
import pulumi
|
1083
|
+
import pulumi_gcp as gcp
|
1084
|
+
|
1085
|
+
foobar = gcp.compute.RouterPeer("foobar",
|
1086
|
+
name="%s-peer",
|
1087
|
+
router=foobar_google_compute_router["name"],
|
1088
|
+
region=foobar_google_compute_router["region"],
|
1089
|
+
peer_asn=65515,
|
1090
|
+
advertised_route_priority=100,
|
1091
|
+
interface=foobar_google_compute_router_interface["name"],
|
1092
|
+
peer_ip_address="169.254.3.2",
|
1093
|
+
md5_authentication_key=gcp.compute.RouterPeerMd5AuthenticationKeyArgs(
|
1094
|
+
name="%s-peer-key",
|
1095
|
+
key="%s-peer-key-value",
|
1096
|
+
))
|
1097
|
+
```
|
1098
|
+
|
1079
1099
|
## Import
|
1080
1100
|
|
1081
1101
|
RouterBgpPeer can be imported using any of these accepted formats:
|
@@ -1139,8 +1159,8 @@ class RouterPeer(pulumi.CustomResource):
|
|
1139
1159
|
The address must be in the range 2600:2d00:0:2::/64 or 2600:2d00:0:3::/64.
|
1140
1160
|
If you do not specify the next hop addresses, Google Cloud automatically
|
1141
1161
|
assigns unused addresses from the 2600:2d00:0:2::/64 or 2600:2d00:0:3::/64 range for you.
|
1142
|
-
:param pulumi.Input[pulumi.InputType['RouterPeerMd5AuthenticationKeyArgs']] md5_authentication_key:
|
1143
|
-
|
1162
|
+
:param pulumi.Input[pulumi.InputType['RouterPeerMd5AuthenticationKeyArgs']] md5_authentication_key: Configuration for MD5 authentication on the BGP session.
|
1163
|
+
Structure is documented below.
|
1144
1164
|
:param pulumi.Input[str] name: Name of this BGP peer. The name must be 1-63 characters long,
|
1145
1165
|
and comply with RFC1035. Specifically, the name must be 1-63 characters
|
1146
1166
|
long and match the regular expression `a-z?` which
|
@@ -1325,6 +1345,26 @@ class RouterPeer(pulumi.CustomResource):
|
|
1325
1345
|
peer_ip_address=addr_peer.address)
|
1326
1346
|
```
|
1327
1347
|
|
1348
|
+
### Router Peer Md5 Authentication Key
|
1349
|
+
|
1350
|
+
```python
|
1351
|
+
import pulumi
|
1352
|
+
import pulumi_gcp as gcp
|
1353
|
+
|
1354
|
+
foobar = gcp.compute.RouterPeer("foobar",
|
1355
|
+
name="%s-peer",
|
1356
|
+
router=foobar_google_compute_router["name"],
|
1357
|
+
region=foobar_google_compute_router["region"],
|
1358
|
+
peer_asn=65515,
|
1359
|
+
advertised_route_priority=100,
|
1360
|
+
interface=foobar_google_compute_router_interface["name"],
|
1361
|
+
peer_ip_address="169.254.3.2",
|
1362
|
+
md5_authentication_key=gcp.compute.RouterPeerMd5AuthenticationKeyArgs(
|
1363
|
+
name="%s-peer-key",
|
1364
|
+
key="%s-peer-key-value",
|
1365
|
+
))
|
1366
|
+
```
|
1367
|
+
|
1328
1368
|
## Import
|
1329
1369
|
|
1330
1370
|
RouterBgpPeer can be imported using any of these accepted formats:
|
@@ -1502,8 +1542,8 @@ class RouterPeer(pulumi.CustomResource):
|
|
1502
1542
|
If you do not specify the next hop addresses, Google Cloud automatically
|
1503
1543
|
assigns unused addresses from the 2600:2d00:0:2::/64 or 2600:2d00:0:3::/64 range for you.
|
1504
1544
|
:param pulumi.Input[str] management_type: The resource that configures and manages this BGP peer.
|
1505
|
-
:param pulumi.Input[pulumi.InputType['RouterPeerMd5AuthenticationKeyArgs']] md5_authentication_key:
|
1506
|
-
|
1545
|
+
:param pulumi.Input[pulumi.InputType['RouterPeerMd5AuthenticationKeyArgs']] md5_authentication_key: Configuration for MD5 authentication on the BGP session.
|
1546
|
+
Structure is documented below.
|
1507
1547
|
:param pulumi.Input[str] name: Name of this BGP peer. The name must be 1-63 characters long,
|
1508
1548
|
and comply with RFC1035. Specifically, the name must be 1-63 characters
|
1509
1549
|
long and match the regular expression `a-z?` which
|
@@ -1688,8 +1728,8 @@ class RouterPeer(pulumi.CustomResource):
|
|
1688
1728
|
@pulumi.getter(name="md5AuthenticationKey")
|
1689
1729
|
def md5_authentication_key(self) -> pulumi.Output[Optional['outputs.RouterPeerMd5AuthenticationKey']]:
|
1690
1730
|
"""
|
1691
|
-
|
1692
|
-
|
1731
|
+
Configuration for MD5 authentication on the BGP session.
|
1732
|
+
Structure is documented below.
|
1693
1733
|
"""
|
1694
1734
|
return pulumi.get(self, "md5_authentication_key")
|
1695
1735
|
|
pulumi_gcp/config/__init__.pyi
CHANGED
pulumi_gcp/config/vars.py
CHANGED
@@ -516,6 +516,10 @@ class _ExportableConfig(types.ModuleType):
|
|
516
516
|
def privateca_custom_endpoint(self) -> Optional[str]:
|
517
517
|
return __config__.get('privatecaCustomEndpoint')
|
518
518
|
|
519
|
+
@property
|
520
|
+
def privileged_access_manager_custom_endpoint(self) -> Optional[str]:
|
521
|
+
return __config__.get('privilegedAccessManagerCustomEndpoint')
|
522
|
+
|
519
523
|
@property
|
520
524
|
def project(self) -> Optional[str]:
|
521
525
|
return __config__.get('project') or _utilities.get_env('GOOGLE_PROJECT', 'GOOGLE_CLOUD_PROJECT', 'GCLOUD_PROJECT', 'CLOUDSDK_CORE_PROJECT')
|