pulumi-gcp 8.35.0a1750142992__py3-none-any.whl → 8.35.0a1750229953__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 +8 -0
- pulumi_gcp/backupdisasterrecovery/backup_plan.py +100 -7
- pulumi_gcp/backupdisasterrecovery/backup_plan_association.py +35 -7
- pulumi_gcp/backupdisasterrecovery/get_backup_plan.py +12 -1
- pulumi_gcp/bigqueryanalyticshub/listing.py +108 -0
- pulumi_gcp/compute/_inputs.py +2028 -175
- pulumi_gcp/compute/disk.py +7 -7
- pulumi_gcp/compute/outputs.py +1483 -110
- pulumi_gcp/compute/region_url_map.py +344 -0
- pulumi_gcp/compute/target_http_proxy.py +118 -0
- pulumi_gcp/compute/target_https_proxy.py +132 -0
- pulumi_gcp/compute/url_map.py +344 -0
- pulumi_gcp/compute/vpn_tunnel.py +178 -0
- pulumi_gcp/dataplex/__init__.py +1 -0
- pulumi_gcp/dataplex/get_data_quality_rules.py +169 -0
- pulumi_gcp/dataplex/outputs.py +420 -0
- pulumi_gcp/diagflow/__init__.py +1 -0
- pulumi_gcp/diagflow/_inputs.py +939 -0
- pulumi_gcp/diagflow/cx_agent.py +34 -0
- pulumi_gcp/diagflow/cx_tool.py +899 -0
- pulumi_gcp/diagflow/outputs.py +780 -0
- pulumi_gcp/firestore/field.py +6 -6
- pulumi_gcp/gkehub/membership_binding.py +6 -6
- pulumi_gcp/gkehub/membership_rbac_role_binding.py +4 -4
- pulumi_gcp/gkehub/namespace.py +4 -4
- pulumi_gcp/gkehub/scope_rbac_role_binding.py +8 -8
- pulumi_gcp/iap/tunnel_dest_group.py +2 -2
- pulumi_gcp/integrationconnectors/_inputs.py +24 -1
- pulumi_gcp/integrationconnectors/managed_zone.py +8 -8
- pulumi_gcp/integrationconnectors/outputs.py +15 -1
- pulumi_gcp/managedkafka/connect_cluster.py +4 -4
- pulumi_gcp/managedkafka/connector.py +4 -4
- pulumi_gcp/netapp/_inputs.py +23 -0
- pulumi_gcp/netapp/outputs.py +16 -0
- pulumi_gcp/netapp/storage_pool.py +108 -0
- pulumi_gcp/networkconnectivity/_inputs.py +71 -1
- pulumi_gcp/networkconnectivity/outputs.py +64 -1
- pulumi_gcp/networkconnectivity/spoke.py +14 -14
- pulumi_gcp/notebooks/runtime.py +4 -0
- pulumi_gcp/orgpolicy/policy.py +2 -2
- pulumi_gcp/pubsub/subscription.py +6 -6
- pulumi_gcp/pulumi-plugin.json +1 -1
- pulumi_gcp/redis/_inputs.py +77 -0
- pulumi_gcp/redis/cluster.py +32 -0
- pulumi_gcp/redis/outputs.py +63 -0
- pulumi_gcp/vertex/ai_endpoint.py +4 -4
- pulumi_gcp/vertex/ai_feature_online_store_featureview.py +4 -4
- pulumi_gcp/vertex/ai_index_endpoint_deployed_index.py +99 -64
- {pulumi_gcp-8.35.0a1750142992.dist-info → pulumi_gcp-8.35.0a1750229953.dist-info}/METADATA +1 -1
- {pulumi_gcp-8.35.0a1750142992.dist-info → pulumi_gcp-8.35.0a1750229953.dist-info}/RECORD +52 -50
- {pulumi_gcp-8.35.0a1750142992.dist-info → pulumi_gcp-8.35.0a1750229953.dist-info}/WHEEL +0 -0
- {pulumi_gcp-8.35.0a1750142992.dist-info → pulumi_gcp-8.35.0a1750229953.dist-info}/top_level.txt +0 -0
pulumi_gcp/compute/outputs.py
CHANGED
@@ -508,6 +508,22 @@ __all__ = [
|
|
508
508
|
'RegionUrlMapDefaultUrlRedirect',
|
509
509
|
'RegionUrlMapHostRule',
|
510
510
|
'RegionUrlMapPathMatcher',
|
511
|
+
'RegionUrlMapPathMatcherDefaultRouteAction',
|
512
|
+
'RegionUrlMapPathMatcherDefaultRouteActionCorsPolicy',
|
513
|
+
'RegionUrlMapPathMatcherDefaultRouteActionFaultInjectionPolicy',
|
514
|
+
'RegionUrlMapPathMatcherDefaultRouteActionFaultInjectionPolicyAbort',
|
515
|
+
'RegionUrlMapPathMatcherDefaultRouteActionFaultInjectionPolicyDelay',
|
516
|
+
'RegionUrlMapPathMatcherDefaultRouteActionFaultInjectionPolicyDelayFixedDelay',
|
517
|
+
'RegionUrlMapPathMatcherDefaultRouteActionMaxStreamDuration',
|
518
|
+
'RegionUrlMapPathMatcherDefaultRouteActionRequestMirrorPolicy',
|
519
|
+
'RegionUrlMapPathMatcherDefaultRouteActionRetryPolicy',
|
520
|
+
'RegionUrlMapPathMatcherDefaultRouteActionRetryPolicyPerTryTimeout',
|
521
|
+
'RegionUrlMapPathMatcherDefaultRouteActionTimeout',
|
522
|
+
'RegionUrlMapPathMatcherDefaultRouteActionUrlRewrite',
|
523
|
+
'RegionUrlMapPathMatcherDefaultRouteActionWeightedBackendService',
|
524
|
+
'RegionUrlMapPathMatcherDefaultRouteActionWeightedBackendServiceHeaderAction',
|
525
|
+
'RegionUrlMapPathMatcherDefaultRouteActionWeightedBackendServiceHeaderActionRequestHeadersToAdd',
|
526
|
+
'RegionUrlMapPathMatcherDefaultRouteActionWeightedBackendServiceHeaderActionResponseHeadersToAdd',
|
511
527
|
'RegionUrlMapPathMatcherDefaultUrlRedirect',
|
512
528
|
'RegionUrlMapPathMatcherPathRule',
|
513
529
|
'RegionUrlMapPathMatcherPathRuleRouteAction',
|
@@ -764,6 +780,10 @@ __all__ = [
|
|
764
780
|
'URLMapPathMatcherRouteRuleRouteActionWeightedBackendServiceHeaderActionResponseHeadersToAdd',
|
765
781
|
'URLMapPathMatcherRouteRuleUrlRedirect',
|
766
782
|
'URLMapTest',
|
783
|
+
'URLMapTestHeader',
|
784
|
+
'VPNTunnelCipherSuite',
|
785
|
+
'VPNTunnelCipherSuitePhase1',
|
786
|
+
'VPNTunnelCipherSuitePhase2',
|
767
787
|
'GetAddressesAddressResult',
|
768
788
|
'GetBackendBucketCdnPolicyResult',
|
769
789
|
'GetBackendBucketCdnPolicyBypassCacheOnRequestHeaderResult',
|
@@ -38395,7 +38415,9 @@ class RegionUrlMapPathMatcher(dict):
|
|
38395
38415
|
@staticmethod
|
38396
38416
|
def __key_warning(key: str):
|
38397
38417
|
suggest = None
|
38398
|
-
if key == "
|
38418
|
+
if key == "defaultRouteAction":
|
38419
|
+
suggest = "default_route_action"
|
38420
|
+
elif key == "defaultService":
|
38399
38421
|
suggest = "default_service"
|
38400
38422
|
elif key == "defaultUrlRedirect":
|
38401
38423
|
suggest = "default_url_redirect"
|
@@ -38405,124 +38427,1243 @@ class RegionUrlMapPathMatcher(dict):
|
|
38405
38427
|
suggest = "route_rules"
|
38406
38428
|
|
38407
38429
|
if suggest:
|
38408
|
-
pulumi.log.warn(f"Key '{key}' not found in RegionUrlMapPathMatcher. Access the value via the '{suggest}' property getter instead.")
|
38430
|
+
pulumi.log.warn(f"Key '{key}' not found in RegionUrlMapPathMatcher. Access the value via the '{suggest}' property getter instead.")
|
38431
|
+
|
38432
|
+
def __getitem__(self, key: str) -> Any:
|
38433
|
+
RegionUrlMapPathMatcher.__key_warning(key)
|
38434
|
+
return super().__getitem__(key)
|
38435
|
+
|
38436
|
+
def get(self, key: str, default = None) -> Any:
|
38437
|
+
RegionUrlMapPathMatcher.__key_warning(key)
|
38438
|
+
return super().get(key, default)
|
38439
|
+
|
38440
|
+
def __init__(__self__, *,
|
38441
|
+
name: builtins.str,
|
38442
|
+
default_route_action: Optional['outputs.RegionUrlMapPathMatcherDefaultRouteAction'] = None,
|
38443
|
+
default_service: Optional[builtins.str] = None,
|
38444
|
+
default_url_redirect: Optional['outputs.RegionUrlMapPathMatcherDefaultUrlRedirect'] = None,
|
38445
|
+
description: Optional[builtins.str] = None,
|
38446
|
+
path_rules: Optional[Sequence['outputs.RegionUrlMapPathMatcherPathRule']] = None,
|
38447
|
+
route_rules: Optional[Sequence['outputs.RegionUrlMapPathMatcherRouteRule']] = None):
|
38448
|
+
"""
|
38449
|
+
:param builtins.str name: The name to which this PathMatcher is referred by the HostRule.
|
38450
|
+
:param 'RegionUrlMapPathMatcherDefaultRouteActionArgs' default_route_action: defaultRouteAction takes effect when none of the pathRules or routeRules match. The load balancer performs
|
38451
|
+
advanced routing actions like URL rewrites, header transformations, etc. prior to forwarding the request
|
38452
|
+
to the selected backend. If defaultRouteAction specifies any weightedBackendServices, defaultService must not be set.
|
38453
|
+
Conversely if defaultService is set, defaultRouteAction cannot contain any weightedBackendServices.
|
38454
|
+
Only one of defaultRouteAction or defaultUrlRedirect must be set.
|
38455
|
+
Structure is documented below.
|
38456
|
+
:param builtins.str default_service: A reference to a RegionBackendService resource. This will be used if
|
38457
|
+
none of the pathRules defined by this PathMatcher is matched by
|
38458
|
+
the URL's path portion.
|
38459
|
+
:param 'RegionUrlMapPathMatcherDefaultUrlRedirectArgs' default_url_redirect: When none of the specified hostRules match, the request is redirected to a URL specified
|
38460
|
+
by defaultUrlRedirect. If defaultUrlRedirect is specified, defaultService or
|
38461
|
+
defaultRouteAction must not be set.
|
38462
|
+
Structure is documented below.
|
38463
|
+
:param builtins.str description: An optional description of this resource.
|
38464
|
+
:param Sequence['RegionUrlMapPathMatcherPathRuleArgs'] path_rules: The list of path rules. Use this list instead of routeRules when routing based
|
38465
|
+
on simple path matching is all that's required. The order by which path rules
|
38466
|
+
are specified does not matter. Matches are always done on the longest-path-first
|
38467
|
+
basis. For example: a pathRule with a path /a/b/c/* will match before /a/b/*
|
38468
|
+
irrespective of the order in which those paths appear in this list. Within a
|
38469
|
+
given pathMatcher, only one of pathRules or routeRules must be set.
|
38470
|
+
Structure is documented below.
|
38471
|
+
:param Sequence['RegionUrlMapPathMatcherRouteRuleArgs'] route_rules: The list of ordered HTTP route rules. Use this list instead of pathRules when
|
38472
|
+
advanced route matching and routing actions are desired. The order of specifying
|
38473
|
+
routeRules matters: the first rule that matches will cause its specified routing
|
38474
|
+
action to take effect. Within a given pathMatcher, only one of pathRules or
|
38475
|
+
routeRules must be set. routeRules are not supported in UrlMaps intended for
|
38476
|
+
External load balancers.
|
38477
|
+
Structure is documented below.
|
38478
|
+
"""
|
38479
|
+
pulumi.set(__self__, "name", name)
|
38480
|
+
if default_route_action is not None:
|
38481
|
+
pulumi.set(__self__, "default_route_action", default_route_action)
|
38482
|
+
if default_service is not None:
|
38483
|
+
pulumi.set(__self__, "default_service", default_service)
|
38484
|
+
if default_url_redirect is not None:
|
38485
|
+
pulumi.set(__self__, "default_url_redirect", default_url_redirect)
|
38486
|
+
if description is not None:
|
38487
|
+
pulumi.set(__self__, "description", description)
|
38488
|
+
if path_rules is not None:
|
38489
|
+
pulumi.set(__self__, "path_rules", path_rules)
|
38490
|
+
if route_rules is not None:
|
38491
|
+
pulumi.set(__self__, "route_rules", route_rules)
|
38492
|
+
|
38493
|
+
@property
|
38494
|
+
@pulumi.getter
|
38495
|
+
def name(self) -> builtins.str:
|
38496
|
+
"""
|
38497
|
+
The name to which this PathMatcher is referred by the HostRule.
|
38498
|
+
"""
|
38499
|
+
return pulumi.get(self, "name")
|
38500
|
+
|
38501
|
+
@property
|
38502
|
+
@pulumi.getter(name="defaultRouteAction")
|
38503
|
+
def default_route_action(self) -> Optional['outputs.RegionUrlMapPathMatcherDefaultRouteAction']:
|
38504
|
+
"""
|
38505
|
+
defaultRouteAction takes effect when none of the pathRules or routeRules match. The load balancer performs
|
38506
|
+
advanced routing actions like URL rewrites, header transformations, etc. prior to forwarding the request
|
38507
|
+
to the selected backend. If defaultRouteAction specifies any weightedBackendServices, defaultService must not be set.
|
38508
|
+
Conversely if defaultService is set, defaultRouteAction cannot contain any weightedBackendServices.
|
38509
|
+
Only one of defaultRouteAction or defaultUrlRedirect must be set.
|
38510
|
+
Structure is documented below.
|
38511
|
+
"""
|
38512
|
+
return pulumi.get(self, "default_route_action")
|
38513
|
+
|
38514
|
+
@property
|
38515
|
+
@pulumi.getter(name="defaultService")
|
38516
|
+
def default_service(self) -> Optional[builtins.str]:
|
38517
|
+
"""
|
38518
|
+
A reference to a RegionBackendService resource. This will be used if
|
38519
|
+
none of the pathRules defined by this PathMatcher is matched by
|
38520
|
+
the URL's path portion.
|
38521
|
+
"""
|
38522
|
+
return pulumi.get(self, "default_service")
|
38523
|
+
|
38524
|
+
@property
|
38525
|
+
@pulumi.getter(name="defaultUrlRedirect")
|
38526
|
+
def default_url_redirect(self) -> Optional['outputs.RegionUrlMapPathMatcherDefaultUrlRedirect']:
|
38527
|
+
"""
|
38528
|
+
When none of the specified hostRules match, the request is redirected to a URL specified
|
38529
|
+
by defaultUrlRedirect. If defaultUrlRedirect is specified, defaultService or
|
38530
|
+
defaultRouteAction must not be set.
|
38531
|
+
Structure is documented below.
|
38532
|
+
"""
|
38533
|
+
return pulumi.get(self, "default_url_redirect")
|
38534
|
+
|
38535
|
+
@property
|
38536
|
+
@pulumi.getter
|
38537
|
+
def description(self) -> Optional[builtins.str]:
|
38538
|
+
"""
|
38539
|
+
An optional description of this resource.
|
38540
|
+
"""
|
38541
|
+
return pulumi.get(self, "description")
|
38542
|
+
|
38543
|
+
@property
|
38544
|
+
@pulumi.getter(name="pathRules")
|
38545
|
+
def path_rules(self) -> Optional[Sequence['outputs.RegionUrlMapPathMatcherPathRule']]:
|
38546
|
+
"""
|
38547
|
+
The list of path rules. Use this list instead of routeRules when routing based
|
38548
|
+
on simple path matching is all that's required. The order by which path rules
|
38549
|
+
are specified does not matter. Matches are always done on the longest-path-first
|
38550
|
+
basis. For example: a pathRule with a path /a/b/c/* will match before /a/b/*
|
38551
|
+
irrespective of the order in which those paths appear in this list. Within a
|
38552
|
+
given pathMatcher, only one of pathRules or routeRules must be set.
|
38553
|
+
Structure is documented below.
|
38554
|
+
"""
|
38555
|
+
return pulumi.get(self, "path_rules")
|
38556
|
+
|
38557
|
+
@property
|
38558
|
+
@pulumi.getter(name="routeRules")
|
38559
|
+
def route_rules(self) -> Optional[Sequence['outputs.RegionUrlMapPathMatcherRouteRule']]:
|
38560
|
+
"""
|
38561
|
+
The list of ordered HTTP route rules. Use this list instead of pathRules when
|
38562
|
+
advanced route matching and routing actions are desired. The order of specifying
|
38563
|
+
routeRules matters: the first rule that matches will cause its specified routing
|
38564
|
+
action to take effect. Within a given pathMatcher, only one of pathRules or
|
38565
|
+
routeRules must be set. routeRules are not supported in UrlMaps intended for
|
38566
|
+
External load balancers.
|
38567
|
+
Structure is documented below.
|
38568
|
+
"""
|
38569
|
+
return pulumi.get(self, "route_rules")
|
38570
|
+
|
38571
|
+
|
38572
|
+
@pulumi.output_type
|
38573
|
+
class RegionUrlMapPathMatcherDefaultRouteAction(dict):
|
38574
|
+
@staticmethod
|
38575
|
+
def __key_warning(key: str):
|
38576
|
+
suggest = None
|
38577
|
+
if key == "corsPolicy":
|
38578
|
+
suggest = "cors_policy"
|
38579
|
+
elif key == "faultInjectionPolicy":
|
38580
|
+
suggest = "fault_injection_policy"
|
38581
|
+
elif key == "maxStreamDuration":
|
38582
|
+
suggest = "max_stream_duration"
|
38583
|
+
elif key == "requestMirrorPolicy":
|
38584
|
+
suggest = "request_mirror_policy"
|
38585
|
+
elif key == "retryPolicy":
|
38586
|
+
suggest = "retry_policy"
|
38587
|
+
elif key == "urlRewrite":
|
38588
|
+
suggest = "url_rewrite"
|
38589
|
+
elif key == "weightedBackendServices":
|
38590
|
+
suggest = "weighted_backend_services"
|
38591
|
+
|
38592
|
+
if suggest:
|
38593
|
+
pulumi.log.warn(f"Key '{key}' not found in RegionUrlMapPathMatcherDefaultRouteAction. Access the value via the '{suggest}' property getter instead.")
|
38594
|
+
|
38595
|
+
def __getitem__(self, key: str) -> Any:
|
38596
|
+
RegionUrlMapPathMatcherDefaultRouteAction.__key_warning(key)
|
38597
|
+
return super().__getitem__(key)
|
38598
|
+
|
38599
|
+
def get(self, key: str, default = None) -> Any:
|
38600
|
+
RegionUrlMapPathMatcherDefaultRouteAction.__key_warning(key)
|
38601
|
+
return super().get(key, default)
|
38602
|
+
|
38603
|
+
def __init__(__self__, *,
|
38604
|
+
cors_policy: Optional['outputs.RegionUrlMapPathMatcherDefaultRouteActionCorsPolicy'] = None,
|
38605
|
+
fault_injection_policy: Optional['outputs.RegionUrlMapPathMatcherDefaultRouteActionFaultInjectionPolicy'] = None,
|
38606
|
+
max_stream_duration: Optional['outputs.RegionUrlMapPathMatcherDefaultRouteActionMaxStreamDuration'] = None,
|
38607
|
+
request_mirror_policy: Optional['outputs.RegionUrlMapPathMatcherDefaultRouteActionRequestMirrorPolicy'] = None,
|
38608
|
+
retry_policy: Optional['outputs.RegionUrlMapPathMatcherDefaultRouteActionRetryPolicy'] = None,
|
38609
|
+
timeout: Optional['outputs.RegionUrlMapPathMatcherDefaultRouteActionTimeout'] = None,
|
38610
|
+
url_rewrite: Optional['outputs.RegionUrlMapPathMatcherDefaultRouteActionUrlRewrite'] = None,
|
38611
|
+
weighted_backend_services: Optional[Sequence['outputs.RegionUrlMapPathMatcherDefaultRouteActionWeightedBackendService']] = None):
|
38612
|
+
"""
|
38613
|
+
:param 'RegionUrlMapPathMatcherDefaultRouteActionCorsPolicyArgs' cors_policy: The specification for allowing client side cross-origin requests. Please see
|
38614
|
+
[W3C Recommendation for Cross Origin Resource Sharing](https://www.w3.org/TR/cors/)
|
38615
|
+
Structure is documented below.
|
38616
|
+
:param 'RegionUrlMapPathMatcherDefaultRouteActionFaultInjectionPolicyArgs' fault_injection_policy: The specification for fault injection introduced into traffic to test the resiliency of clients to backend service failure.
|
38617
|
+
As part of fault injection, when clients send requests to a backend service, delays can be introduced by a load balancer on a percentage of requests before sending those requests to the backend service.
|
38618
|
+
Similarly requests from clients can be aborted by the load balancer for a percentage of requests.
|
38619
|
+
timeout and retryPolicy is ignored by clients that are configured with a faultInjectionPolicy if: 1. The traffic is generated by fault injection AND 2. The fault injection is not a delay fault injection.
|
38620
|
+
Fault injection is not supported with the global external HTTP(S) load balancer (classic). To see which load balancers support fault injection, see Load balancing: [Routing and traffic management features](https://cloud.google.com/load-balancing/docs/features#routing-traffic-management).
|
38621
|
+
Structure is documented below.
|
38622
|
+
:param 'RegionUrlMapPathMatcherDefaultRouteActionMaxStreamDurationArgs' max_stream_duration: Specifies the maximum duration (timeout) for streams on the selected route.
|
38623
|
+
Unlike the `Timeout` field where the timeout duration starts from the time the request
|
38624
|
+
has been fully processed (known as end-of-stream), the duration in this field
|
38625
|
+
is computed from the beginning of the stream until the response has been processed,
|
38626
|
+
including all retries. A stream that does not complete in this duration is closed.
|
38627
|
+
Structure is documented below.
|
38628
|
+
:param 'RegionUrlMapPathMatcherDefaultRouteActionRequestMirrorPolicyArgs' request_mirror_policy: Specifies the policy on how requests intended for the route's backends are shadowed to a separate mirrored backend service.
|
38629
|
+
The load balancer does not wait for responses from the shadow service. Before sending traffic to the shadow service, the host / authority header is suffixed with -shadow.
|
38630
|
+
Not supported when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
|
38631
|
+
Structure is documented below.
|
38632
|
+
:param 'RegionUrlMapPathMatcherDefaultRouteActionRetryPolicyArgs' retry_policy: Specifies the retry policy associated with this route.
|
38633
|
+
Structure is documented below.
|
38634
|
+
:param 'RegionUrlMapPathMatcherDefaultRouteActionTimeoutArgs' timeout: Specifies the timeout for the selected route. Timeout is computed from the time the request has been fully processed (known as end-of-stream) up until the response has been processed. Timeout includes all retries.
|
38635
|
+
If not specified, this field uses the largest timeout among all backend services associated with the route.
|
38636
|
+
Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true.
|
38637
|
+
Structure is documented below.
|
38638
|
+
:param 'RegionUrlMapPathMatcherDefaultRouteActionUrlRewriteArgs' url_rewrite: The spec to modify the URL of the request, before forwarding the request to the matched service.
|
38639
|
+
urlRewrite is the only action supported in UrlMaps for external HTTP(S) load balancers.
|
38640
|
+
Not supported when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
|
38641
|
+
Structure is documented below.
|
38642
|
+
:param Sequence['RegionUrlMapPathMatcherDefaultRouteActionWeightedBackendServiceArgs'] weighted_backend_services: A list of weighted backend services to send traffic to when a route match occurs. The weights determine the fraction of traffic that flows to their corresponding backend service. If all traffic needs to go to a single backend service, there must be one weightedBackendService with weight set to a non-zero number.
|
38643
|
+
After a backend service is identified and before forwarding the request to the backend service, advanced routing actions such as URL rewrites and header transformations are applied depending on additional settings specified in this HttpRouteAction.
|
38644
|
+
Structure is documented below.
|
38645
|
+
"""
|
38646
|
+
if cors_policy is not None:
|
38647
|
+
pulumi.set(__self__, "cors_policy", cors_policy)
|
38648
|
+
if fault_injection_policy is not None:
|
38649
|
+
pulumi.set(__self__, "fault_injection_policy", fault_injection_policy)
|
38650
|
+
if max_stream_duration is not None:
|
38651
|
+
pulumi.set(__self__, "max_stream_duration", max_stream_duration)
|
38652
|
+
if request_mirror_policy is not None:
|
38653
|
+
pulumi.set(__self__, "request_mirror_policy", request_mirror_policy)
|
38654
|
+
if retry_policy is not None:
|
38655
|
+
pulumi.set(__self__, "retry_policy", retry_policy)
|
38656
|
+
if timeout is not None:
|
38657
|
+
pulumi.set(__self__, "timeout", timeout)
|
38658
|
+
if url_rewrite is not None:
|
38659
|
+
pulumi.set(__self__, "url_rewrite", url_rewrite)
|
38660
|
+
if weighted_backend_services is not None:
|
38661
|
+
pulumi.set(__self__, "weighted_backend_services", weighted_backend_services)
|
38662
|
+
|
38663
|
+
@property
|
38664
|
+
@pulumi.getter(name="corsPolicy")
|
38665
|
+
def cors_policy(self) -> Optional['outputs.RegionUrlMapPathMatcherDefaultRouteActionCorsPolicy']:
|
38666
|
+
"""
|
38667
|
+
The specification for allowing client side cross-origin requests. Please see
|
38668
|
+
[W3C Recommendation for Cross Origin Resource Sharing](https://www.w3.org/TR/cors/)
|
38669
|
+
Structure is documented below.
|
38670
|
+
"""
|
38671
|
+
return pulumi.get(self, "cors_policy")
|
38672
|
+
|
38673
|
+
@property
|
38674
|
+
@pulumi.getter(name="faultInjectionPolicy")
|
38675
|
+
def fault_injection_policy(self) -> Optional['outputs.RegionUrlMapPathMatcherDefaultRouteActionFaultInjectionPolicy']:
|
38676
|
+
"""
|
38677
|
+
The specification for fault injection introduced into traffic to test the resiliency of clients to backend service failure.
|
38678
|
+
As part of fault injection, when clients send requests to a backend service, delays can be introduced by a load balancer on a percentage of requests before sending those requests to the backend service.
|
38679
|
+
Similarly requests from clients can be aborted by the load balancer for a percentage of requests.
|
38680
|
+
timeout and retryPolicy is ignored by clients that are configured with a faultInjectionPolicy if: 1. The traffic is generated by fault injection AND 2. The fault injection is not a delay fault injection.
|
38681
|
+
Fault injection is not supported with the global external HTTP(S) load balancer (classic). To see which load balancers support fault injection, see Load balancing: [Routing and traffic management features](https://cloud.google.com/load-balancing/docs/features#routing-traffic-management).
|
38682
|
+
Structure is documented below.
|
38683
|
+
"""
|
38684
|
+
return pulumi.get(self, "fault_injection_policy")
|
38685
|
+
|
38686
|
+
@property
|
38687
|
+
@pulumi.getter(name="maxStreamDuration")
|
38688
|
+
def max_stream_duration(self) -> Optional['outputs.RegionUrlMapPathMatcherDefaultRouteActionMaxStreamDuration']:
|
38689
|
+
"""
|
38690
|
+
Specifies the maximum duration (timeout) for streams on the selected route.
|
38691
|
+
Unlike the `Timeout` field where the timeout duration starts from the time the request
|
38692
|
+
has been fully processed (known as end-of-stream), the duration in this field
|
38693
|
+
is computed from the beginning of the stream until the response has been processed,
|
38694
|
+
including all retries. A stream that does not complete in this duration is closed.
|
38695
|
+
Structure is documented below.
|
38696
|
+
"""
|
38697
|
+
return pulumi.get(self, "max_stream_duration")
|
38698
|
+
|
38699
|
+
@property
|
38700
|
+
@pulumi.getter(name="requestMirrorPolicy")
|
38701
|
+
def request_mirror_policy(self) -> Optional['outputs.RegionUrlMapPathMatcherDefaultRouteActionRequestMirrorPolicy']:
|
38702
|
+
"""
|
38703
|
+
Specifies the policy on how requests intended for the route's backends are shadowed to a separate mirrored backend service.
|
38704
|
+
The load balancer does not wait for responses from the shadow service. Before sending traffic to the shadow service, the host / authority header is suffixed with -shadow.
|
38705
|
+
Not supported when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
|
38706
|
+
Structure is documented below.
|
38707
|
+
"""
|
38708
|
+
return pulumi.get(self, "request_mirror_policy")
|
38709
|
+
|
38710
|
+
@property
|
38711
|
+
@pulumi.getter(name="retryPolicy")
|
38712
|
+
def retry_policy(self) -> Optional['outputs.RegionUrlMapPathMatcherDefaultRouteActionRetryPolicy']:
|
38713
|
+
"""
|
38714
|
+
Specifies the retry policy associated with this route.
|
38715
|
+
Structure is documented below.
|
38716
|
+
"""
|
38717
|
+
return pulumi.get(self, "retry_policy")
|
38718
|
+
|
38719
|
+
@property
|
38720
|
+
@pulumi.getter
|
38721
|
+
def timeout(self) -> Optional['outputs.RegionUrlMapPathMatcherDefaultRouteActionTimeout']:
|
38722
|
+
"""
|
38723
|
+
Specifies the timeout for the selected route. Timeout is computed from the time the request has been fully processed (known as end-of-stream) up until the response has been processed. Timeout includes all retries.
|
38724
|
+
If not specified, this field uses the largest timeout among all backend services associated with the route.
|
38725
|
+
Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true.
|
38726
|
+
Structure is documented below.
|
38727
|
+
"""
|
38728
|
+
return pulumi.get(self, "timeout")
|
38729
|
+
|
38730
|
+
@property
|
38731
|
+
@pulumi.getter(name="urlRewrite")
|
38732
|
+
def url_rewrite(self) -> Optional['outputs.RegionUrlMapPathMatcherDefaultRouteActionUrlRewrite']:
|
38733
|
+
"""
|
38734
|
+
The spec to modify the URL of the request, before forwarding the request to the matched service.
|
38735
|
+
urlRewrite is the only action supported in UrlMaps for external HTTP(S) load balancers.
|
38736
|
+
Not supported when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
|
38737
|
+
Structure is documented below.
|
38738
|
+
"""
|
38739
|
+
return pulumi.get(self, "url_rewrite")
|
38740
|
+
|
38741
|
+
@property
|
38742
|
+
@pulumi.getter(name="weightedBackendServices")
|
38743
|
+
def weighted_backend_services(self) -> Optional[Sequence['outputs.RegionUrlMapPathMatcherDefaultRouteActionWeightedBackendService']]:
|
38744
|
+
"""
|
38745
|
+
A list of weighted backend services to send traffic to when a route match occurs. The weights determine the fraction of traffic that flows to their corresponding backend service. If all traffic needs to go to a single backend service, there must be one weightedBackendService with weight set to a non-zero number.
|
38746
|
+
After a backend service is identified and before forwarding the request to the backend service, advanced routing actions such as URL rewrites and header transformations are applied depending on additional settings specified in this HttpRouteAction.
|
38747
|
+
Structure is documented below.
|
38748
|
+
"""
|
38749
|
+
return pulumi.get(self, "weighted_backend_services")
|
38750
|
+
|
38751
|
+
|
38752
|
+
@pulumi.output_type
|
38753
|
+
class RegionUrlMapPathMatcherDefaultRouteActionCorsPolicy(dict):
|
38754
|
+
@staticmethod
|
38755
|
+
def __key_warning(key: str):
|
38756
|
+
suggest = None
|
38757
|
+
if key == "allowCredentials":
|
38758
|
+
suggest = "allow_credentials"
|
38759
|
+
elif key == "allowHeaders":
|
38760
|
+
suggest = "allow_headers"
|
38761
|
+
elif key == "allowMethods":
|
38762
|
+
suggest = "allow_methods"
|
38763
|
+
elif key == "allowOriginRegexes":
|
38764
|
+
suggest = "allow_origin_regexes"
|
38765
|
+
elif key == "allowOrigins":
|
38766
|
+
suggest = "allow_origins"
|
38767
|
+
elif key == "exposeHeaders":
|
38768
|
+
suggest = "expose_headers"
|
38769
|
+
elif key == "maxAge":
|
38770
|
+
suggest = "max_age"
|
38771
|
+
|
38772
|
+
if suggest:
|
38773
|
+
pulumi.log.warn(f"Key '{key}' not found in RegionUrlMapPathMatcherDefaultRouteActionCorsPolicy. Access the value via the '{suggest}' property getter instead.")
|
38774
|
+
|
38775
|
+
def __getitem__(self, key: str) -> Any:
|
38776
|
+
RegionUrlMapPathMatcherDefaultRouteActionCorsPolicy.__key_warning(key)
|
38777
|
+
return super().__getitem__(key)
|
38778
|
+
|
38779
|
+
def get(self, key: str, default = None) -> Any:
|
38780
|
+
RegionUrlMapPathMatcherDefaultRouteActionCorsPolicy.__key_warning(key)
|
38781
|
+
return super().get(key, default)
|
38782
|
+
|
38783
|
+
def __init__(__self__, *,
|
38784
|
+
allow_credentials: Optional[builtins.bool] = None,
|
38785
|
+
allow_headers: Optional[Sequence[builtins.str]] = None,
|
38786
|
+
allow_methods: Optional[Sequence[builtins.str]] = None,
|
38787
|
+
allow_origin_regexes: Optional[Sequence[builtins.str]] = None,
|
38788
|
+
allow_origins: Optional[Sequence[builtins.str]] = None,
|
38789
|
+
disabled: Optional[builtins.bool] = None,
|
38790
|
+
expose_headers: Optional[Sequence[builtins.str]] = None,
|
38791
|
+
max_age: Optional[builtins.int] = None):
|
38792
|
+
"""
|
38793
|
+
:param builtins.bool allow_credentials: In response to a preflight request, setting this to true indicates that the actual request can include user credentials. This field translates to the Access-Control-Allow-Credentials header.
|
38794
|
+
Default is false.
|
38795
|
+
:param Sequence[builtins.str] allow_headers: Specifies the content for the Access-Control-Allow-Headers header.
|
38796
|
+
:param Sequence[builtins.str] allow_methods: Specifies the content for the Access-Control-Allow-Methods header.
|
38797
|
+
:param Sequence[builtins.str] allow_origin_regexes: Specifies the regualar expression patterns that match allowed origins. For regular expression grammar
|
38798
|
+
please see en.cppreference.com/w/cpp/regex/ecmascript
|
38799
|
+
An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes.
|
38800
|
+
:param Sequence[builtins.str] allow_origins: Specifies the list of origins that will be allowed to do CORS requests.
|
38801
|
+
An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes.
|
38802
|
+
:param builtins.bool disabled: If true, the setting specifies the CORS policy is disabled. The default value of false, which indicates that the CORS policy is in effect.
|
38803
|
+
:param Sequence[builtins.str] expose_headers: Specifies the content for the Access-Control-Expose-Headers header.
|
38804
|
+
:param builtins.int max_age: Specifies how long results of a preflight request can be cached in seconds.
|
38805
|
+
This translates to the Access-Control-Max-Age header.
|
38806
|
+
"""
|
38807
|
+
if allow_credentials is not None:
|
38808
|
+
pulumi.set(__self__, "allow_credentials", allow_credentials)
|
38809
|
+
if allow_headers is not None:
|
38810
|
+
pulumi.set(__self__, "allow_headers", allow_headers)
|
38811
|
+
if allow_methods is not None:
|
38812
|
+
pulumi.set(__self__, "allow_methods", allow_methods)
|
38813
|
+
if allow_origin_regexes is not None:
|
38814
|
+
pulumi.set(__self__, "allow_origin_regexes", allow_origin_regexes)
|
38815
|
+
if allow_origins is not None:
|
38816
|
+
pulumi.set(__self__, "allow_origins", allow_origins)
|
38817
|
+
if disabled is not None:
|
38818
|
+
pulumi.set(__self__, "disabled", disabled)
|
38819
|
+
if expose_headers is not None:
|
38820
|
+
pulumi.set(__self__, "expose_headers", expose_headers)
|
38821
|
+
if max_age is not None:
|
38822
|
+
pulumi.set(__self__, "max_age", max_age)
|
38823
|
+
|
38824
|
+
@property
|
38825
|
+
@pulumi.getter(name="allowCredentials")
|
38826
|
+
def allow_credentials(self) -> Optional[builtins.bool]:
|
38827
|
+
"""
|
38828
|
+
In response to a preflight request, setting this to true indicates that the actual request can include user credentials. This field translates to the Access-Control-Allow-Credentials header.
|
38829
|
+
Default is false.
|
38830
|
+
"""
|
38831
|
+
return pulumi.get(self, "allow_credentials")
|
38832
|
+
|
38833
|
+
@property
|
38834
|
+
@pulumi.getter(name="allowHeaders")
|
38835
|
+
def allow_headers(self) -> Optional[Sequence[builtins.str]]:
|
38836
|
+
"""
|
38837
|
+
Specifies the content for the Access-Control-Allow-Headers header.
|
38838
|
+
"""
|
38839
|
+
return pulumi.get(self, "allow_headers")
|
38840
|
+
|
38841
|
+
@property
|
38842
|
+
@pulumi.getter(name="allowMethods")
|
38843
|
+
def allow_methods(self) -> Optional[Sequence[builtins.str]]:
|
38844
|
+
"""
|
38845
|
+
Specifies the content for the Access-Control-Allow-Methods header.
|
38846
|
+
"""
|
38847
|
+
return pulumi.get(self, "allow_methods")
|
38848
|
+
|
38849
|
+
@property
|
38850
|
+
@pulumi.getter(name="allowOriginRegexes")
|
38851
|
+
def allow_origin_regexes(self) -> Optional[Sequence[builtins.str]]:
|
38852
|
+
"""
|
38853
|
+
Specifies the regualar expression patterns that match allowed origins. For regular expression grammar
|
38854
|
+
please see en.cppreference.com/w/cpp/regex/ecmascript
|
38855
|
+
An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes.
|
38856
|
+
"""
|
38857
|
+
return pulumi.get(self, "allow_origin_regexes")
|
38858
|
+
|
38859
|
+
@property
|
38860
|
+
@pulumi.getter(name="allowOrigins")
|
38861
|
+
def allow_origins(self) -> Optional[Sequence[builtins.str]]:
|
38862
|
+
"""
|
38863
|
+
Specifies the list of origins that will be allowed to do CORS requests.
|
38864
|
+
An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes.
|
38865
|
+
"""
|
38866
|
+
return pulumi.get(self, "allow_origins")
|
38867
|
+
|
38868
|
+
@property
|
38869
|
+
@pulumi.getter
|
38870
|
+
def disabled(self) -> Optional[builtins.bool]:
|
38871
|
+
"""
|
38872
|
+
If true, the setting specifies the CORS policy is disabled. The default value of false, which indicates that the CORS policy is in effect.
|
38873
|
+
"""
|
38874
|
+
return pulumi.get(self, "disabled")
|
38875
|
+
|
38876
|
+
@property
|
38877
|
+
@pulumi.getter(name="exposeHeaders")
|
38878
|
+
def expose_headers(self) -> Optional[Sequence[builtins.str]]:
|
38879
|
+
"""
|
38880
|
+
Specifies the content for the Access-Control-Expose-Headers header.
|
38881
|
+
"""
|
38882
|
+
return pulumi.get(self, "expose_headers")
|
38883
|
+
|
38884
|
+
@property
|
38885
|
+
@pulumi.getter(name="maxAge")
|
38886
|
+
def max_age(self) -> Optional[builtins.int]:
|
38887
|
+
"""
|
38888
|
+
Specifies how long results of a preflight request can be cached in seconds.
|
38889
|
+
This translates to the Access-Control-Max-Age header.
|
38890
|
+
"""
|
38891
|
+
return pulumi.get(self, "max_age")
|
38892
|
+
|
38893
|
+
|
38894
|
+
@pulumi.output_type
|
38895
|
+
class RegionUrlMapPathMatcherDefaultRouteActionFaultInjectionPolicy(dict):
|
38896
|
+
def __init__(__self__, *,
|
38897
|
+
abort: Optional['outputs.RegionUrlMapPathMatcherDefaultRouteActionFaultInjectionPolicyAbort'] = None,
|
38898
|
+
delay: Optional['outputs.RegionUrlMapPathMatcherDefaultRouteActionFaultInjectionPolicyDelay'] = None):
|
38899
|
+
"""
|
38900
|
+
:param 'RegionUrlMapPathMatcherDefaultRouteActionFaultInjectionPolicyAbortArgs' abort: The specification for how client requests are aborted as part of fault injection.
|
38901
|
+
Structure is documented below.
|
38902
|
+
:param 'RegionUrlMapPathMatcherDefaultRouteActionFaultInjectionPolicyDelayArgs' delay: The specification for how client requests are delayed as part of fault injection, before being sent to a backend service.
|
38903
|
+
Structure is documented below.
|
38904
|
+
"""
|
38905
|
+
if abort is not None:
|
38906
|
+
pulumi.set(__self__, "abort", abort)
|
38907
|
+
if delay is not None:
|
38908
|
+
pulumi.set(__self__, "delay", delay)
|
38909
|
+
|
38910
|
+
@property
|
38911
|
+
@pulumi.getter
|
38912
|
+
def abort(self) -> Optional['outputs.RegionUrlMapPathMatcherDefaultRouteActionFaultInjectionPolicyAbort']:
|
38913
|
+
"""
|
38914
|
+
The specification for how client requests are aborted as part of fault injection.
|
38915
|
+
Structure is documented below.
|
38916
|
+
"""
|
38917
|
+
return pulumi.get(self, "abort")
|
38918
|
+
|
38919
|
+
@property
|
38920
|
+
@pulumi.getter
|
38921
|
+
def delay(self) -> Optional['outputs.RegionUrlMapPathMatcherDefaultRouteActionFaultInjectionPolicyDelay']:
|
38922
|
+
"""
|
38923
|
+
The specification for how client requests are delayed as part of fault injection, before being sent to a backend service.
|
38924
|
+
Structure is documented below.
|
38925
|
+
"""
|
38926
|
+
return pulumi.get(self, "delay")
|
38927
|
+
|
38928
|
+
|
38929
|
+
@pulumi.output_type
|
38930
|
+
class RegionUrlMapPathMatcherDefaultRouteActionFaultInjectionPolicyAbort(dict):
|
38931
|
+
@staticmethod
|
38932
|
+
def __key_warning(key: str):
|
38933
|
+
suggest = None
|
38934
|
+
if key == "httpStatus":
|
38935
|
+
suggest = "http_status"
|
38936
|
+
|
38937
|
+
if suggest:
|
38938
|
+
pulumi.log.warn(f"Key '{key}' not found in RegionUrlMapPathMatcherDefaultRouteActionFaultInjectionPolicyAbort. Access the value via the '{suggest}' property getter instead.")
|
38939
|
+
|
38940
|
+
def __getitem__(self, key: str) -> Any:
|
38941
|
+
RegionUrlMapPathMatcherDefaultRouteActionFaultInjectionPolicyAbort.__key_warning(key)
|
38942
|
+
return super().__getitem__(key)
|
38943
|
+
|
38944
|
+
def get(self, key: str, default = None) -> Any:
|
38945
|
+
RegionUrlMapPathMatcherDefaultRouteActionFaultInjectionPolicyAbort.__key_warning(key)
|
38946
|
+
return super().get(key, default)
|
38947
|
+
|
38948
|
+
def __init__(__self__, *,
|
38949
|
+
http_status: Optional[builtins.int] = None,
|
38950
|
+
percentage: Optional[builtins.float] = None):
|
38951
|
+
"""
|
38952
|
+
:param builtins.int http_status: The HTTP status code used to abort the request.
|
38953
|
+
The value must be between 200 and 599 inclusive.
|
38954
|
+
:param builtins.float percentage: The percentage of traffic (connections/operations/requests) which will be aborted as part of fault injection.
|
38955
|
+
The value must be between 0.0 and 100.0 inclusive.
|
38956
|
+
"""
|
38957
|
+
if http_status is not None:
|
38958
|
+
pulumi.set(__self__, "http_status", http_status)
|
38959
|
+
if percentage is not None:
|
38960
|
+
pulumi.set(__self__, "percentage", percentage)
|
38961
|
+
|
38962
|
+
@property
|
38963
|
+
@pulumi.getter(name="httpStatus")
|
38964
|
+
def http_status(self) -> Optional[builtins.int]:
|
38965
|
+
"""
|
38966
|
+
The HTTP status code used to abort the request.
|
38967
|
+
The value must be between 200 and 599 inclusive.
|
38968
|
+
"""
|
38969
|
+
return pulumi.get(self, "http_status")
|
38970
|
+
|
38971
|
+
@property
|
38972
|
+
@pulumi.getter
|
38973
|
+
def percentage(self) -> Optional[builtins.float]:
|
38974
|
+
"""
|
38975
|
+
The percentage of traffic (connections/operations/requests) which will be aborted as part of fault injection.
|
38976
|
+
The value must be between 0.0 and 100.0 inclusive.
|
38977
|
+
"""
|
38978
|
+
return pulumi.get(self, "percentage")
|
38979
|
+
|
38980
|
+
|
38981
|
+
@pulumi.output_type
|
38982
|
+
class RegionUrlMapPathMatcherDefaultRouteActionFaultInjectionPolicyDelay(dict):
|
38983
|
+
@staticmethod
|
38984
|
+
def __key_warning(key: str):
|
38985
|
+
suggest = None
|
38986
|
+
if key == "fixedDelay":
|
38987
|
+
suggest = "fixed_delay"
|
38988
|
+
|
38989
|
+
if suggest:
|
38990
|
+
pulumi.log.warn(f"Key '{key}' not found in RegionUrlMapPathMatcherDefaultRouteActionFaultInjectionPolicyDelay. Access the value via the '{suggest}' property getter instead.")
|
38991
|
+
|
38992
|
+
def __getitem__(self, key: str) -> Any:
|
38993
|
+
RegionUrlMapPathMatcherDefaultRouteActionFaultInjectionPolicyDelay.__key_warning(key)
|
38994
|
+
return super().__getitem__(key)
|
38995
|
+
|
38996
|
+
def get(self, key: str, default = None) -> Any:
|
38997
|
+
RegionUrlMapPathMatcherDefaultRouteActionFaultInjectionPolicyDelay.__key_warning(key)
|
38998
|
+
return super().get(key, default)
|
38999
|
+
|
39000
|
+
def __init__(__self__, *,
|
39001
|
+
fixed_delay: Optional['outputs.RegionUrlMapPathMatcherDefaultRouteActionFaultInjectionPolicyDelayFixedDelay'] = None,
|
39002
|
+
percentage: Optional[builtins.float] = None):
|
39003
|
+
"""
|
39004
|
+
:param 'RegionUrlMapPathMatcherDefaultRouteActionFaultInjectionPolicyDelayFixedDelayArgs' fixed_delay: Specifies the value of the fixed delay interval.
|
39005
|
+
Structure is documented below.
|
39006
|
+
:param builtins.float percentage: The percentage of traffic (connections/operations/requests) on which delay will be introduced as part of fault injection.
|
39007
|
+
The value must be between 0.0 and 100.0 inclusive.
|
39008
|
+
"""
|
39009
|
+
if fixed_delay is not None:
|
39010
|
+
pulumi.set(__self__, "fixed_delay", fixed_delay)
|
39011
|
+
if percentage is not None:
|
39012
|
+
pulumi.set(__self__, "percentage", percentage)
|
39013
|
+
|
39014
|
+
@property
|
39015
|
+
@pulumi.getter(name="fixedDelay")
|
39016
|
+
def fixed_delay(self) -> Optional['outputs.RegionUrlMapPathMatcherDefaultRouteActionFaultInjectionPolicyDelayFixedDelay']:
|
39017
|
+
"""
|
39018
|
+
Specifies the value of the fixed delay interval.
|
39019
|
+
Structure is documented below.
|
39020
|
+
"""
|
39021
|
+
return pulumi.get(self, "fixed_delay")
|
39022
|
+
|
39023
|
+
@property
|
39024
|
+
@pulumi.getter
|
39025
|
+
def percentage(self) -> Optional[builtins.float]:
|
39026
|
+
"""
|
39027
|
+
The percentage of traffic (connections/operations/requests) on which delay will be introduced as part of fault injection.
|
39028
|
+
The value must be between 0.0 and 100.0 inclusive.
|
39029
|
+
"""
|
39030
|
+
return pulumi.get(self, "percentage")
|
39031
|
+
|
39032
|
+
|
39033
|
+
@pulumi.output_type
|
39034
|
+
class RegionUrlMapPathMatcherDefaultRouteActionFaultInjectionPolicyDelayFixedDelay(dict):
|
39035
|
+
def __init__(__self__, *,
|
39036
|
+
nanos: Optional[builtins.int] = None,
|
39037
|
+
seconds: Optional[builtins.str] = None):
|
39038
|
+
"""
|
39039
|
+
:param builtins.int nanos: Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are
|
39040
|
+
represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
|
39041
|
+
:param builtins.str seconds: Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive.
|
39042
|
+
Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
|
39043
|
+
"""
|
39044
|
+
if nanos is not None:
|
39045
|
+
pulumi.set(__self__, "nanos", nanos)
|
39046
|
+
if seconds is not None:
|
39047
|
+
pulumi.set(__self__, "seconds", seconds)
|
39048
|
+
|
39049
|
+
@property
|
39050
|
+
@pulumi.getter
|
39051
|
+
def nanos(self) -> Optional[builtins.int]:
|
39052
|
+
"""
|
39053
|
+
Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are
|
39054
|
+
represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
|
39055
|
+
"""
|
39056
|
+
return pulumi.get(self, "nanos")
|
39057
|
+
|
39058
|
+
@property
|
39059
|
+
@pulumi.getter
|
39060
|
+
def seconds(self) -> Optional[builtins.str]:
|
39061
|
+
"""
|
39062
|
+
Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive.
|
39063
|
+
Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
|
39064
|
+
"""
|
39065
|
+
return pulumi.get(self, "seconds")
|
39066
|
+
|
39067
|
+
|
39068
|
+
@pulumi.output_type
|
39069
|
+
class RegionUrlMapPathMatcherDefaultRouteActionMaxStreamDuration(dict):
|
39070
|
+
def __init__(__self__, *,
|
39071
|
+
seconds: builtins.str,
|
39072
|
+
nanos: Optional[builtins.int] = None):
|
39073
|
+
"""
|
39074
|
+
:param builtins.str seconds: Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive.
|
39075
|
+
Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
|
39076
|
+
:param builtins.int nanos: Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented
|
39077
|
+
with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
|
39078
|
+
"""
|
39079
|
+
pulumi.set(__self__, "seconds", seconds)
|
39080
|
+
if nanos is not None:
|
39081
|
+
pulumi.set(__self__, "nanos", nanos)
|
39082
|
+
|
39083
|
+
@property
|
39084
|
+
@pulumi.getter
|
39085
|
+
def seconds(self) -> builtins.str:
|
39086
|
+
"""
|
39087
|
+
Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive.
|
39088
|
+
Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
|
39089
|
+
"""
|
39090
|
+
return pulumi.get(self, "seconds")
|
39091
|
+
|
39092
|
+
@property
|
39093
|
+
@pulumi.getter
|
39094
|
+
def nanos(self) -> Optional[builtins.int]:
|
39095
|
+
"""
|
39096
|
+
Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented
|
39097
|
+
with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
|
39098
|
+
"""
|
39099
|
+
return pulumi.get(self, "nanos")
|
39100
|
+
|
39101
|
+
|
39102
|
+
@pulumi.output_type
|
39103
|
+
class RegionUrlMapPathMatcherDefaultRouteActionRequestMirrorPolicy(dict):
|
39104
|
+
@staticmethod
|
39105
|
+
def __key_warning(key: str):
|
39106
|
+
suggest = None
|
39107
|
+
if key == "backendService":
|
39108
|
+
suggest = "backend_service"
|
39109
|
+
|
39110
|
+
if suggest:
|
39111
|
+
pulumi.log.warn(f"Key '{key}' not found in RegionUrlMapPathMatcherDefaultRouteActionRequestMirrorPolicy. Access the value via the '{suggest}' property getter instead.")
|
39112
|
+
|
39113
|
+
def __getitem__(self, key: str) -> Any:
|
39114
|
+
RegionUrlMapPathMatcherDefaultRouteActionRequestMirrorPolicy.__key_warning(key)
|
39115
|
+
return super().__getitem__(key)
|
39116
|
+
|
39117
|
+
def get(self, key: str, default = None) -> Any:
|
39118
|
+
RegionUrlMapPathMatcherDefaultRouteActionRequestMirrorPolicy.__key_warning(key)
|
39119
|
+
return super().get(key, default)
|
39120
|
+
|
39121
|
+
def __init__(__self__, *,
|
39122
|
+
backend_service: builtins.str):
|
39123
|
+
"""
|
39124
|
+
:param builtins.str backend_service: The full or partial URL to the RegionBackendService resource being mirrored to.
|
39125
|
+
The backend service configured for a mirroring policy must reference backends that are of the same type as the original backend service matched in the URL map.
|
39126
|
+
Serverless NEG backends are not currently supported as a mirrored backend service.
|
39127
|
+
"""
|
39128
|
+
pulumi.set(__self__, "backend_service", backend_service)
|
39129
|
+
|
39130
|
+
@property
|
39131
|
+
@pulumi.getter(name="backendService")
|
39132
|
+
def backend_service(self) -> builtins.str:
|
39133
|
+
"""
|
39134
|
+
The full or partial URL to the RegionBackendService resource being mirrored to.
|
39135
|
+
The backend service configured for a mirroring policy must reference backends that are of the same type as the original backend service matched in the URL map.
|
39136
|
+
Serverless NEG backends are not currently supported as a mirrored backend service.
|
39137
|
+
"""
|
39138
|
+
return pulumi.get(self, "backend_service")
|
39139
|
+
|
39140
|
+
|
39141
|
+
@pulumi.output_type
|
39142
|
+
class RegionUrlMapPathMatcherDefaultRouteActionRetryPolicy(dict):
|
39143
|
+
@staticmethod
|
39144
|
+
def __key_warning(key: str):
|
39145
|
+
suggest = None
|
39146
|
+
if key == "numRetries":
|
39147
|
+
suggest = "num_retries"
|
39148
|
+
elif key == "perTryTimeout":
|
39149
|
+
suggest = "per_try_timeout"
|
39150
|
+
elif key == "retryConditions":
|
39151
|
+
suggest = "retry_conditions"
|
39152
|
+
|
39153
|
+
if suggest:
|
39154
|
+
pulumi.log.warn(f"Key '{key}' not found in RegionUrlMapPathMatcherDefaultRouteActionRetryPolicy. Access the value via the '{suggest}' property getter instead.")
|
39155
|
+
|
39156
|
+
def __getitem__(self, key: str) -> Any:
|
39157
|
+
RegionUrlMapPathMatcherDefaultRouteActionRetryPolicy.__key_warning(key)
|
39158
|
+
return super().__getitem__(key)
|
39159
|
+
|
39160
|
+
def get(self, key: str, default = None) -> Any:
|
39161
|
+
RegionUrlMapPathMatcherDefaultRouteActionRetryPolicy.__key_warning(key)
|
39162
|
+
return super().get(key, default)
|
39163
|
+
|
39164
|
+
def __init__(__self__, *,
|
39165
|
+
num_retries: Optional[builtins.int] = None,
|
39166
|
+
per_try_timeout: Optional['outputs.RegionUrlMapPathMatcherDefaultRouteActionRetryPolicyPerTryTimeout'] = None,
|
39167
|
+
retry_conditions: Optional[Sequence[builtins.str]] = None):
|
39168
|
+
"""
|
39169
|
+
:param builtins.int num_retries: Specifies the allowed number retries. This number must be > 0. If not specified, defaults to 1.
|
39170
|
+
:param 'RegionUrlMapPathMatcherDefaultRouteActionRetryPolicyPerTryTimeoutArgs' per_try_timeout: Specifies a non-zero timeout per retry attempt.
|
39171
|
+
If not specified, will use the timeout set in HttpRouteAction. If timeout in HttpRouteAction is not set,
|
39172
|
+
will use the largest timeout among all backend services associated with the route.
|
39173
|
+
Structure is documented below.
|
39174
|
+
:param Sequence[builtins.str] retry_conditions: Specifies one or more conditions when this retry policy applies.
|
39175
|
+
Valid values are listed below. Only the following codes are supported when the URL map is bound to target gRPC proxy that has validateForProxyless field set to true: cancelled, deadline-exceeded, internal, resource-exhausted, unavailable.
|
39176
|
+
- 5xx : retry is attempted if the instance or endpoint responds with any 5xx response code, or if the instance or endpoint does not respond at all. For example, disconnects, reset, read timeout, connection failure, and refused streams.
|
39177
|
+
- gateway-error : Similar to 5xx, but only applies to response codes 502, 503 or 504.
|
39178
|
+
- connect-failure : a retry is attempted on failures connecting to the instance or endpoint. For example, connection timeouts.
|
39179
|
+
- retriable-4xx : a retry is attempted if the instance or endpoint responds with a 4xx response code. The only error that you can retry is error code 409.
|
39180
|
+
- refused-stream : a retry is attempted if the instance or endpoint resets the stream with a REFUSED_STREAM error code. This reset type indicates that it is safe to retry.
|
39181
|
+
- cancelled : a retry is attempted if the gRPC status code in the response header is set to cancelled.
|
39182
|
+
- deadline-exceeded : a retry is attempted if the gRPC status code in the response header is set to deadline-exceeded.
|
39183
|
+
- internal : a retry is attempted if the gRPC status code in the response header is set to internal.
|
39184
|
+
- resource-exhausted : a retry is attempted if the gRPC status code in the response header is set to resource-exhausted.
|
39185
|
+
- unavailable : a retry is attempted if the gRPC status code in the response header is set to unavailable.
|
39186
|
+
"""
|
39187
|
+
if num_retries is not None:
|
39188
|
+
pulumi.set(__self__, "num_retries", num_retries)
|
39189
|
+
if per_try_timeout is not None:
|
39190
|
+
pulumi.set(__self__, "per_try_timeout", per_try_timeout)
|
39191
|
+
if retry_conditions is not None:
|
39192
|
+
pulumi.set(__self__, "retry_conditions", retry_conditions)
|
39193
|
+
|
39194
|
+
@property
|
39195
|
+
@pulumi.getter(name="numRetries")
|
39196
|
+
def num_retries(self) -> Optional[builtins.int]:
|
39197
|
+
"""
|
39198
|
+
Specifies the allowed number retries. This number must be > 0. If not specified, defaults to 1.
|
39199
|
+
"""
|
39200
|
+
return pulumi.get(self, "num_retries")
|
39201
|
+
|
39202
|
+
@property
|
39203
|
+
@pulumi.getter(name="perTryTimeout")
|
39204
|
+
def per_try_timeout(self) -> Optional['outputs.RegionUrlMapPathMatcherDefaultRouteActionRetryPolicyPerTryTimeout']:
|
39205
|
+
"""
|
39206
|
+
Specifies a non-zero timeout per retry attempt.
|
39207
|
+
If not specified, will use the timeout set in HttpRouteAction. If timeout in HttpRouteAction is not set,
|
39208
|
+
will use the largest timeout among all backend services associated with the route.
|
39209
|
+
Structure is documented below.
|
39210
|
+
"""
|
39211
|
+
return pulumi.get(self, "per_try_timeout")
|
39212
|
+
|
39213
|
+
@property
|
39214
|
+
@pulumi.getter(name="retryConditions")
|
39215
|
+
def retry_conditions(self) -> Optional[Sequence[builtins.str]]:
|
39216
|
+
"""
|
39217
|
+
Specifies one or more conditions when this retry policy applies.
|
39218
|
+
Valid values are listed below. Only the following codes are supported when the URL map is bound to target gRPC proxy that has validateForProxyless field set to true: cancelled, deadline-exceeded, internal, resource-exhausted, unavailable.
|
39219
|
+
- 5xx : retry is attempted if the instance or endpoint responds with any 5xx response code, or if the instance or endpoint does not respond at all. For example, disconnects, reset, read timeout, connection failure, and refused streams.
|
39220
|
+
- gateway-error : Similar to 5xx, but only applies to response codes 502, 503 or 504.
|
39221
|
+
- connect-failure : a retry is attempted on failures connecting to the instance or endpoint. For example, connection timeouts.
|
39222
|
+
- retriable-4xx : a retry is attempted if the instance or endpoint responds with a 4xx response code. The only error that you can retry is error code 409.
|
39223
|
+
- refused-stream : a retry is attempted if the instance or endpoint resets the stream with a REFUSED_STREAM error code. This reset type indicates that it is safe to retry.
|
39224
|
+
- cancelled : a retry is attempted if the gRPC status code in the response header is set to cancelled.
|
39225
|
+
- deadline-exceeded : a retry is attempted if the gRPC status code in the response header is set to deadline-exceeded.
|
39226
|
+
- internal : a retry is attempted if the gRPC status code in the response header is set to internal.
|
39227
|
+
- resource-exhausted : a retry is attempted if the gRPC status code in the response header is set to resource-exhausted.
|
39228
|
+
- unavailable : a retry is attempted if the gRPC status code in the response header is set to unavailable.
|
39229
|
+
"""
|
39230
|
+
return pulumi.get(self, "retry_conditions")
|
39231
|
+
|
39232
|
+
|
39233
|
+
@pulumi.output_type
|
39234
|
+
class RegionUrlMapPathMatcherDefaultRouteActionRetryPolicyPerTryTimeout(dict):
|
39235
|
+
def __init__(__self__, *,
|
39236
|
+
nanos: Optional[builtins.int] = None,
|
39237
|
+
seconds: Optional[builtins.str] = None):
|
39238
|
+
"""
|
39239
|
+
:param builtins.int nanos: Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are
|
39240
|
+
represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
|
39241
|
+
:param builtins.str seconds: Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive.
|
39242
|
+
Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
|
39243
|
+
"""
|
39244
|
+
if nanos is not None:
|
39245
|
+
pulumi.set(__self__, "nanos", nanos)
|
39246
|
+
if seconds is not None:
|
39247
|
+
pulumi.set(__self__, "seconds", seconds)
|
39248
|
+
|
39249
|
+
@property
|
39250
|
+
@pulumi.getter
|
39251
|
+
def nanos(self) -> Optional[builtins.int]:
|
39252
|
+
"""
|
39253
|
+
Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are
|
39254
|
+
represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
|
39255
|
+
"""
|
39256
|
+
return pulumi.get(self, "nanos")
|
39257
|
+
|
39258
|
+
@property
|
39259
|
+
@pulumi.getter
|
39260
|
+
def seconds(self) -> Optional[builtins.str]:
|
39261
|
+
"""
|
39262
|
+
Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive.
|
39263
|
+
Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
|
39264
|
+
"""
|
39265
|
+
return pulumi.get(self, "seconds")
|
39266
|
+
|
39267
|
+
|
39268
|
+
@pulumi.output_type
|
39269
|
+
class RegionUrlMapPathMatcherDefaultRouteActionTimeout(dict):
|
39270
|
+
def __init__(__self__, *,
|
39271
|
+
nanos: Optional[builtins.int] = None,
|
39272
|
+
seconds: Optional[builtins.str] = None):
|
39273
|
+
"""
|
39274
|
+
:param builtins.int nanos: Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
|
39275
|
+
:param builtins.str seconds: Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
|
39276
|
+
"""
|
39277
|
+
if nanos is not None:
|
39278
|
+
pulumi.set(__self__, "nanos", nanos)
|
39279
|
+
if seconds is not None:
|
39280
|
+
pulumi.set(__self__, "seconds", seconds)
|
39281
|
+
|
39282
|
+
@property
|
39283
|
+
@pulumi.getter
|
39284
|
+
def nanos(self) -> Optional[builtins.int]:
|
39285
|
+
"""
|
39286
|
+
Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
|
39287
|
+
"""
|
39288
|
+
return pulumi.get(self, "nanos")
|
39289
|
+
|
39290
|
+
@property
|
39291
|
+
@pulumi.getter
|
39292
|
+
def seconds(self) -> Optional[builtins.str]:
|
39293
|
+
"""
|
39294
|
+
Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
|
39295
|
+
"""
|
39296
|
+
return pulumi.get(self, "seconds")
|
39297
|
+
|
39298
|
+
|
39299
|
+
@pulumi.output_type
|
39300
|
+
class RegionUrlMapPathMatcherDefaultRouteActionUrlRewrite(dict):
|
39301
|
+
@staticmethod
|
39302
|
+
def __key_warning(key: str):
|
39303
|
+
suggest = None
|
39304
|
+
if key == "hostRewrite":
|
39305
|
+
suggest = "host_rewrite"
|
39306
|
+
elif key == "pathPrefixRewrite":
|
39307
|
+
suggest = "path_prefix_rewrite"
|
39308
|
+
elif key == "pathTemplateRewrite":
|
39309
|
+
suggest = "path_template_rewrite"
|
39310
|
+
|
39311
|
+
if suggest:
|
39312
|
+
pulumi.log.warn(f"Key '{key}' not found in RegionUrlMapPathMatcherDefaultRouteActionUrlRewrite. Access the value via the '{suggest}' property getter instead.")
|
38409
39313
|
|
38410
39314
|
def __getitem__(self, key: str) -> Any:
|
38411
|
-
|
39315
|
+
RegionUrlMapPathMatcherDefaultRouteActionUrlRewrite.__key_warning(key)
|
38412
39316
|
return super().__getitem__(key)
|
38413
39317
|
|
38414
39318
|
def get(self, key: str, default = None) -> Any:
|
38415
|
-
|
39319
|
+
RegionUrlMapPathMatcherDefaultRouteActionUrlRewrite.__key_warning(key)
|
38416
39320
|
return super().get(key, default)
|
38417
39321
|
|
38418
39322
|
def __init__(__self__, *,
|
38419
|
-
|
38420
|
-
|
38421
|
-
|
38422
|
-
description: Optional[builtins.str] = None,
|
38423
|
-
path_rules: Optional[Sequence['outputs.RegionUrlMapPathMatcherPathRule']] = None,
|
38424
|
-
route_rules: Optional[Sequence['outputs.RegionUrlMapPathMatcherRouteRule']] = None):
|
39323
|
+
host_rewrite: Optional[builtins.str] = None,
|
39324
|
+
path_prefix_rewrite: Optional[builtins.str] = None,
|
39325
|
+
path_template_rewrite: Optional[builtins.str] = None):
|
38425
39326
|
"""
|
38426
|
-
:param builtins.str
|
38427
|
-
|
38428
|
-
|
38429
|
-
|
38430
|
-
:param
|
38431
|
-
|
38432
|
-
|
39327
|
+
:param builtins.str host_rewrite: Before forwarding the request to the selected service, the request's host header is replaced with contents of hostRewrite.
|
39328
|
+
The value must be from 1 to 255 characters.
|
39329
|
+
:param builtins.str path_prefix_rewrite: Before forwarding the request to the selected backend service, the matching portion of the request's path is replaced by pathPrefixRewrite.
|
39330
|
+
The value must be from 1 to 1024 characters.
|
39331
|
+
:param builtins.str path_template_rewrite: If specified, the pattern rewrites the URL path (based on the :path header) using the HTTP template syntax.
|
39332
|
+
A corresponding pathTemplateMatch must be specified. Any template variables must exist in the pathTemplateMatch field.
|
39333
|
+
* At least one variable must be specified in the pathTemplateMatch field
|
39334
|
+
* You can omit variables from the rewritten URL
|
39335
|
+
* The * and ** operators cannot be matched unless they have a corresponding variable name - e.g. {format=*} or {var=**}.
|
39336
|
+
For example, a pathTemplateMatch of /static/{format=**} could be rewritten as /static/content/{format} to prefix
|
39337
|
+
/content to the URL. Variables can also be re-ordered in a rewrite, so that /{country}/{format}/{suffix=**} can be
|
39338
|
+
rewritten as /content/{format}/{country}/{suffix}.
|
39339
|
+
At least one non-empty routeRules[].matchRules[].path_template_match is required.
|
39340
|
+
Only one of pathPrefixRewrite or pathTemplateRewrite may be specified.
|
39341
|
+
"""
|
39342
|
+
if host_rewrite is not None:
|
39343
|
+
pulumi.set(__self__, "host_rewrite", host_rewrite)
|
39344
|
+
if path_prefix_rewrite is not None:
|
39345
|
+
pulumi.set(__self__, "path_prefix_rewrite", path_prefix_rewrite)
|
39346
|
+
if path_template_rewrite is not None:
|
39347
|
+
pulumi.set(__self__, "path_template_rewrite", path_template_rewrite)
|
39348
|
+
|
39349
|
+
@property
|
39350
|
+
@pulumi.getter(name="hostRewrite")
|
39351
|
+
def host_rewrite(self) -> Optional[builtins.str]:
|
39352
|
+
"""
|
39353
|
+
Before forwarding the request to the selected service, the request's host header is replaced with contents of hostRewrite.
|
39354
|
+
The value must be from 1 to 255 characters.
|
39355
|
+
"""
|
39356
|
+
return pulumi.get(self, "host_rewrite")
|
39357
|
+
|
39358
|
+
@property
|
39359
|
+
@pulumi.getter(name="pathPrefixRewrite")
|
39360
|
+
def path_prefix_rewrite(self) -> Optional[builtins.str]:
|
39361
|
+
"""
|
39362
|
+
Before forwarding the request to the selected backend service, the matching portion of the request's path is replaced by pathPrefixRewrite.
|
39363
|
+
The value must be from 1 to 1024 characters.
|
39364
|
+
"""
|
39365
|
+
return pulumi.get(self, "path_prefix_rewrite")
|
39366
|
+
|
39367
|
+
@property
|
39368
|
+
@pulumi.getter(name="pathTemplateRewrite")
|
39369
|
+
def path_template_rewrite(self) -> Optional[builtins.str]:
|
39370
|
+
"""
|
39371
|
+
If specified, the pattern rewrites the URL path (based on the :path header) using the HTTP template syntax.
|
39372
|
+
A corresponding pathTemplateMatch must be specified. Any template variables must exist in the pathTemplateMatch field.
|
39373
|
+
* At least one variable must be specified in the pathTemplateMatch field
|
39374
|
+
* You can omit variables from the rewritten URL
|
39375
|
+
* The * and ** operators cannot be matched unless they have a corresponding variable name - e.g. {format=*} or {var=**}.
|
39376
|
+
For example, a pathTemplateMatch of /static/{format=**} could be rewritten as /static/content/{format} to prefix
|
39377
|
+
/content to the URL. Variables can also be re-ordered in a rewrite, so that /{country}/{format}/{suffix=**} can be
|
39378
|
+
rewritten as /content/{format}/{country}/{suffix}.
|
39379
|
+
At least one non-empty routeRules[].matchRules[].path_template_match is required.
|
39380
|
+
Only one of pathPrefixRewrite or pathTemplateRewrite may be specified.
|
39381
|
+
"""
|
39382
|
+
return pulumi.get(self, "path_template_rewrite")
|
39383
|
+
|
39384
|
+
|
39385
|
+
@pulumi.output_type
|
39386
|
+
class RegionUrlMapPathMatcherDefaultRouteActionWeightedBackendService(dict):
|
39387
|
+
@staticmethod
|
39388
|
+
def __key_warning(key: str):
|
39389
|
+
suggest = None
|
39390
|
+
if key == "backendService":
|
39391
|
+
suggest = "backend_service"
|
39392
|
+
elif key == "headerAction":
|
39393
|
+
suggest = "header_action"
|
39394
|
+
|
39395
|
+
if suggest:
|
39396
|
+
pulumi.log.warn(f"Key '{key}' not found in RegionUrlMapPathMatcherDefaultRouteActionWeightedBackendService. Access the value via the '{suggest}' property getter instead.")
|
39397
|
+
|
39398
|
+
def __getitem__(self, key: str) -> Any:
|
39399
|
+
RegionUrlMapPathMatcherDefaultRouteActionWeightedBackendService.__key_warning(key)
|
39400
|
+
return super().__getitem__(key)
|
39401
|
+
|
39402
|
+
def get(self, key: str, default = None) -> Any:
|
39403
|
+
RegionUrlMapPathMatcherDefaultRouteActionWeightedBackendService.__key_warning(key)
|
39404
|
+
return super().get(key, default)
|
39405
|
+
|
39406
|
+
def __init__(__self__, *,
|
39407
|
+
backend_service: Optional[builtins.str] = None,
|
39408
|
+
header_action: Optional['outputs.RegionUrlMapPathMatcherDefaultRouteActionWeightedBackendServiceHeaderAction'] = None,
|
39409
|
+
weight: Optional[builtins.int] = None):
|
39410
|
+
"""
|
39411
|
+
:param builtins.str backend_service: The full or partial URL to the default BackendService resource. Before forwarding the request to backendService, the load balancer applies any relevant headerActions specified as part of this backendServiceWeight.
|
39412
|
+
:param 'RegionUrlMapPathMatcherDefaultRouteActionWeightedBackendServiceHeaderActionArgs' header_action: Specifies changes to request and response headers that need to take effect for the selected backendService.
|
39413
|
+
headerAction specified here take effect before headerAction in the enclosing HttpRouteRule, PathMatcher and UrlMap.
|
39414
|
+
headerAction is not supported for load balancers that have their loadBalancingScheme set to EXTERNAL.
|
39415
|
+
Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true.
|
38433
39416
|
Structure is documented below.
|
38434
|
-
:param builtins.
|
38435
|
-
|
38436
|
-
|
38437
|
-
|
38438
|
-
|
38439
|
-
|
38440
|
-
|
39417
|
+
:param builtins.int weight: Specifies the fraction of traffic sent to a backend service, computed as weight / (sum of all weightedBackendService weights in routeAction) .
|
39418
|
+
The selection of a backend service is determined only for new traffic. Once a user's request has been directed to a backend service, subsequent requests are sent to the same backend service as determined by the backend service's session affinity policy.
|
39419
|
+
The value must be from 0 to 1000.
|
39420
|
+
"""
|
39421
|
+
if backend_service is not None:
|
39422
|
+
pulumi.set(__self__, "backend_service", backend_service)
|
39423
|
+
if header_action is not None:
|
39424
|
+
pulumi.set(__self__, "header_action", header_action)
|
39425
|
+
if weight is not None:
|
39426
|
+
pulumi.set(__self__, "weight", weight)
|
39427
|
+
|
39428
|
+
@property
|
39429
|
+
@pulumi.getter(name="backendService")
|
39430
|
+
def backend_service(self) -> Optional[builtins.str]:
|
39431
|
+
"""
|
39432
|
+
The full or partial URL to the default BackendService resource. Before forwarding the request to backendService, the load balancer applies any relevant headerActions specified as part of this backendServiceWeight.
|
39433
|
+
"""
|
39434
|
+
return pulumi.get(self, "backend_service")
|
39435
|
+
|
39436
|
+
@property
|
39437
|
+
@pulumi.getter(name="headerAction")
|
39438
|
+
def header_action(self) -> Optional['outputs.RegionUrlMapPathMatcherDefaultRouteActionWeightedBackendServiceHeaderAction']:
|
39439
|
+
"""
|
39440
|
+
Specifies changes to request and response headers that need to take effect for the selected backendService.
|
39441
|
+
headerAction specified here take effect before headerAction in the enclosing HttpRouteRule, PathMatcher and UrlMap.
|
39442
|
+
headerAction is not supported for load balancers that have their loadBalancingScheme set to EXTERNAL.
|
39443
|
+
Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true.
|
39444
|
+
Structure is documented below.
|
39445
|
+
"""
|
39446
|
+
return pulumi.get(self, "header_action")
|
39447
|
+
|
39448
|
+
@property
|
39449
|
+
@pulumi.getter
|
39450
|
+
def weight(self) -> Optional[builtins.int]:
|
39451
|
+
"""
|
39452
|
+
Specifies the fraction of traffic sent to a backend service, computed as weight / (sum of all weightedBackendService weights in routeAction) .
|
39453
|
+
The selection of a backend service is determined only for new traffic. Once a user's request has been directed to a backend service, subsequent requests are sent to the same backend service as determined by the backend service's session affinity policy.
|
39454
|
+
The value must be from 0 to 1000.
|
39455
|
+
"""
|
39456
|
+
return pulumi.get(self, "weight")
|
39457
|
+
|
39458
|
+
|
39459
|
+
@pulumi.output_type
|
39460
|
+
class RegionUrlMapPathMatcherDefaultRouteActionWeightedBackendServiceHeaderAction(dict):
|
39461
|
+
@staticmethod
|
39462
|
+
def __key_warning(key: str):
|
39463
|
+
suggest = None
|
39464
|
+
if key == "requestHeadersToAdds":
|
39465
|
+
suggest = "request_headers_to_adds"
|
39466
|
+
elif key == "requestHeadersToRemoves":
|
39467
|
+
suggest = "request_headers_to_removes"
|
39468
|
+
elif key == "responseHeadersToAdds":
|
39469
|
+
suggest = "response_headers_to_adds"
|
39470
|
+
elif key == "responseHeadersToRemoves":
|
39471
|
+
suggest = "response_headers_to_removes"
|
39472
|
+
|
39473
|
+
if suggest:
|
39474
|
+
pulumi.log.warn(f"Key '{key}' not found in RegionUrlMapPathMatcherDefaultRouteActionWeightedBackendServiceHeaderAction. Access the value via the '{suggest}' property getter instead.")
|
39475
|
+
|
39476
|
+
def __getitem__(self, key: str) -> Any:
|
39477
|
+
RegionUrlMapPathMatcherDefaultRouteActionWeightedBackendServiceHeaderAction.__key_warning(key)
|
39478
|
+
return super().__getitem__(key)
|
39479
|
+
|
39480
|
+
def get(self, key: str, default = None) -> Any:
|
39481
|
+
RegionUrlMapPathMatcherDefaultRouteActionWeightedBackendServiceHeaderAction.__key_warning(key)
|
39482
|
+
return super().get(key, default)
|
39483
|
+
|
39484
|
+
def __init__(__self__, *,
|
39485
|
+
request_headers_to_adds: Optional[Sequence['outputs.RegionUrlMapPathMatcherDefaultRouteActionWeightedBackendServiceHeaderActionRequestHeadersToAdd']] = None,
|
39486
|
+
request_headers_to_removes: Optional[Sequence[builtins.str]] = None,
|
39487
|
+
response_headers_to_adds: Optional[Sequence['outputs.RegionUrlMapPathMatcherDefaultRouteActionWeightedBackendServiceHeaderActionResponseHeadersToAdd']] = None,
|
39488
|
+
response_headers_to_removes: Optional[Sequence[builtins.str]] = None):
|
39489
|
+
"""
|
39490
|
+
:param Sequence['RegionUrlMapPathMatcherDefaultRouteActionWeightedBackendServiceHeaderActionRequestHeadersToAddArgs'] request_headers_to_adds: Headers to add to a matching request before forwarding the request to the backendService.
|
38441
39491
|
Structure is documented below.
|
38442
|
-
:param Sequence[
|
38443
|
-
|
38444
|
-
routeRules matters: the first rule that matches will cause its specified routing
|
38445
|
-
action to take effect. Within a given pathMatcher, only one of pathRules or
|
38446
|
-
routeRules must be set. routeRules are not supported in UrlMaps intended for
|
38447
|
-
External load balancers.
|
39492
|
+
:param Sequence[builtins.str] request_headers_to_removes: A list of header names for headers that need to be removed from the request before forwarding the request to the backendService.
|
39493
|
+
:param Sequence['RegionUrlMapPathMatcherDefaultRouteActionWeightedBackendServiceHeaderActionResponseHeadersToAddArgs'] response_headers_to_adds: Headers to add the response before sending the response back to the client.
|
38448
39494
|
Structure is documented below.
|
39495
|
+
:param Sequence[builtins.str] response_headers_to_removes: A list of header names for headers that need to be removed from the response before sending the response back to the client.
|
38449
39496
|
"""
|
38450
|
-
|
38451
|
-
|
38452
|
-
|
38453
|
-
|
38454
|
-
|
38455
|
-
|
38456
|
-
|
38457
|
-
|
38458
|
-
pulumi.set(__self__, "path_rules", path_rules)
|
38459
|
-
if route_rules is not None:
|
38460
|
-
pulumi.set(__self__, "route_rules", route_rules)
|
39497
|
+
if request_headers_to_adds is not None:
|
39498
|
+
pulumi.set(__self__, "request_headers_to_adds", request_headers_to_adds)
|
39499
|
+
if request_headers_to_removes is not None:
|
39500
|
+
pulumi.set(__self__, "request_headers_to_removes", request_headers_to_removes)
|
39501
|
+
if response_headers_to_adds is not None:
|
39502
|
+
pulumi.set(__self__, "response_headers_to_adds", response_headers_to_adds)
|
39503
|
+
if response_headers_to_removes is not None:
|
39504
|
+
pulumi.set(__self__, "response_headers_to_removes", response_headers_to_removes)
|
38461
39505
|
|
38462
39506
|
@property
|
38463
|
-
@pulumi.getter
|
38464
|
-
def
|
39507
|
+
@pulumi.getter(name="requestHeadersToAdds")
|
39508
|
+
def request_headers_to_adds(self) -> Optional[Sequence['outputs.RegionUrlMapPathMatcherDefaultRouteActionWeightedBackendServiceHeaderActionRequestHeadersToAdd']]:
|
38465
39509
|
"""
|
38466
|
-
|
39510
|
+
Headers to add to a matching request before forwarding the request to the backendService.
|
39511
|
+
Structure is documented below.
|
38467
39512
|
"""
|
38468
|
-
return pulumi.get(self, "
|
39513
|
+
return pulumi.get(self, "request_headers_to_adds")
|
38469
39514
|
|
38470
39515
|
@property
|
38471
|
-
@pulumi.getter(name="
|
38472
|
-
def
|
39516
|
+
@pulumi.getter(name="requestHeadersToRemoves")
|
39517
|
+
def request_headers_to_removes(self) -> Optional[Sequence[builtins.str]]:
|
38473
39518
|
"""
|
38474
|
-
A
|
38475
|
-
none of the pathRules defined by this PathMatcher is matched by
|
38476
|
-
the URL's path portion.
|
39519
|
+
A list of header names for headers that need to be removed from the request before forwarding the request to the backendService.
|
38477
39520
|
"""
|
38478
|
-
return pulumi.get(self, "
|
39521
|
+
return pulumi.get(self, "request_headers_to_removes")
|
38479
39522
|
|
38480
39523
|
@property
|
38481
|
-
@pulumi.getter(name="
|
38482
|
-
def
|
39524
|
+
@pulumi.getter(name="responseHeadersToAdds")
|
39525
|
+
def response_headers_to_adds(self) -> Optional[Sequence['outputs.RegionUrlMapPathMatcherDefaultRouteActionWeightedBackendServiceHeaderActionResponseHeadersToAdd']]:
|
38483
39526
|
"""
|
38484
|
-
|
38485
|
-
by defaultUrlRedirect. If defaultUrlRedirect is specified, defaultService or
|
38486
|
-
defaultRouteAction must not be set.
|
39527
|
+
Headers to add the response before sending the response back to the client.
|
38487
39528
|
Structure is documented below.
|
38488
39529
|
"""
|
38489
|
-
return pulumi.get(self, "
|
39530
|
+
return pulumi.get(self, "response_headers_to_adds")
|
39531
|
+
|
39532
|
+
@property
|
39533
|
+
@pulumi.getter(name="responseHeadersToRemoves")
|
39534
|
+
def response_headers_to_removes(self) -> Optional[Sequence[builtins.str]]:
|
39535
|
+
"""
|
39536
|
+
A list of header names for headers that need to be removed from the response before sending the response back to the client.
|
39537
|
+
"""
|
39538
|
+
return pulumi.get(self, "response_headers_to_removes")
|
39539
|
+
|
39540
|
+
|
39541
|
+
@pulumi.output_type
|
39542
|
+
class RegionUrlMapPathMatcherDefaultRouteActionWeightedBackendServiceHeaderActionRequestHeadersToAdd(dict):
|
39543
|
+
@staticmethod
|
39544
|
+
def __key_warning(key: str):
|
39545
|
+
suggest = None
|
39546
|
+
if key == "headerName":
|
39547
|
+
suggest = "header_name"
|
39548
|
+
elif key == "headerValue":
|
39549
|
+
suggest = "header_value"
|
39550
|
+
|
39551
|
+
if suggest:
|
39552
|
+
pulumi.log.warn(f"Key '{key}' not found in RegionUrlMapPathMatcherDefaultRouteActionWeightedBackendServiceHeaderActionRequestHeadersToAdd. Access the value via the '{suggest}' property getter instead.")
|
39553
|
+
|
39554
|
+
def __getitem__(self, key: str) -> Any:
|
39555
|
+
RegionUrlMapPathMatcherDefaultRouteActionWeightedBackendServiceHeaderActionRequestHeadersToAdd.__key_warning(key)
|
39556
|
+
return super().__getitem__(key)
|
39557
|
+
|
39558
|
+
def get(self, key: str, default = None) -> Any:
|
39559
|
+
RegionUrlMapPathMatcherDefaultRouteActionWeightedBackendServiceHeaderActionRequestHeadersToAdd.__key_warning(key)
|
39560
|
+
return super().get(key, default)
|
39561
|
+
|
39562
|
+
def __init__(__self__, *,
|
39563
|
+
header_name: Optional[builtins.str] = None,
|
39564
|
+
header_value: Optional[builtins.str] = None,
|
39565
|
+
replace: Optional[builtins.bool] = None):
|
39566
|
+
"""
|
39567
|
+
:param builtins.str header_name: The name of the header.
|
39568
|
+
:param builtins.str header_value: The value of the header to add.
|
39569
|
+
:param builtins.bool replace: If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header.
|
39570
|
+
The default value is false.
|
39571
|
+
"""
|
39572
|
+
if header_name is not None:
|
39573
|
+
pulumi.set(__self__, "header_name", header_name)
|
39574
|
+
if header_value is not None:
|
39575
|
+
pulumi.set(__self__, "header_value", header_value)
|
39576
|
+
if replace is not None:
|
39577
|
+
pulumi.set(__self__, "replace", replace)
|
39578
|
+
|
39579
|
+
@property
|
39580
|
+
@pulumi.getter(name="headerName")
|
39581
|
+
def header_name(self) -> Optional[builtins.str]:
|
39582
|
+
"""
|
39583
|
+
The name of the header.
|
39584
|
+
"""
|
39585
|
+
return pulumi.get(self, "header_name")
|
39586
|
+
|
39587
|
+
@property
|
39588
|
+
@pulumi.getter(name="headerValue")
|
39589
|
+
def header_value(self) -> Optional[builtins.str]:
|
39590
|
+
"""
|
39591
|
+
The value of the header to add.
|
39592
|
+
"""
|
39593
|
+
return pulumi.get(self, "header_value")
|
38490
39594
|
|
38491
39595
|
@property
|
38492
39596
|
@pulumi.getter
|
38493
|
-
def
|
39597
|
+
def replace(self) -> Optional[builtins.bool]:
|
38494
39598
|
"""
|
38495
|
-
|
39599
|
+
If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header.
|
39600
|
+
The default value is false.
|
38496
39601
|
"""
|
38497
|
-
return pulumi.get(self, "
|
39602
|
+
return pulumi.get(self, "replace")
|
39603
|
+
|
39604
|
+
|
39605
|
+
@pulumi.output_type
|
39606
|
+
class RegionUrlMapPathMatcherDefaultRouteActionWeightedBackendServiceHeaderActionResponseHeadersToAdd(dict):
|
39607
|
+
@staticmethod
|
39608
|
+
def __key_warning(key: str):
|
39609
|
+
suggest = None
|
39610
|
+
if key == "headerName":
|
39611
|
+
suggest = "header_name"
|
39612
|
+
elif key == "headerValue":
|
39613
|
+
suggest = "header_value"
|
39614
|
+
|
39615
|
+
if suggest:
|
39616
|
+
pulumi.log.warn(f"Key '{key}' not found in RegionUrlMapPathMatcherDefaultRouteActionWeightedBackendServiceHeaderActionResponseHeadersToAdd. Access the value via the '{suggest}' property getter instead.")
|
39617
|
+
|
39618
|
+
def __getitem__(self, key: str) -> Any:
|
39619
|
+
RegionUrlMapPathMatcherDefaultRouteActionWeightedBackendServiceHeaderActionResponseHeadersToAdd.__key_warning(key)
|
39620
|
+
return super().__getitem__(key)
|
39621
|
+
|
39622
|
+
def get(self, key: str, default = None) -> Any:
|
39623
|
+
RegionUrlMapPathMatcherDefaultRouteActionWeightedBackendServiceHeaderActionResponseHeadersToAdd.__key_warning(key)
|
39624
|
+
return super().get(key, default)
|
39625
|
+
|
39626
|
+
def __init__(__self__, *,
|
39627
|
+
header_name: Optional[builtins.str] = None,
|
39628
|
+
header_value: Optional[builtins.str] = None,
|
39629
|
+
replace: Optional[builtins.bool] = None):
|
39630
|
+
"""
|
39631
|
+
:param builtins.str header_name: The name of the header.
|
39632
|
+
:param builtins.str header_value: The value of the header to add.
|
39633
|
+
:param builtins.bool replace: If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header.
|
39634
|
+
The default value is false.
|
39635
|
+
"""
|
39636
|
+
if header_name is not None:
|
39637
|
+
pulumi.set(__self__, "header_name", header_name)
|
39638
|
+
if header_value is not None:
|
39639
|
+
pulumi.set(__self__, "header_value", header_value)
|
39640
|
+
if replace is not None:
|
39641
|
+
pulumi.set(__self__, "replace", replace)
|
38498
39642
|
|
38499
39643
|
@property
|
38500
|
-
@pulumi.getter(name="
|
38501
|
-
def
|
39644
|
+
@pulumi.getter(name="headerName")
|
39645
|
+
def header_name(self) -> Optional[builtins.str]:
|
38502
39646
|
"""
|
38503
|
-
The
|
38504
|
-
on simple path matching is all that's required. The order by which path rules
|
38505
|
-
are specified does not matter. Matches are always done on the longest-path-first
|
38506
|
-
basis. For example: a pathRule with a path /a/b/c/* will match before /a/b/*
|
38507
|
-
irrespective of the order in which those paths appear in this list. Within a
|
38508
|
-
given pathMatcher, only one of pathRules or routeRules must be set.
|
38509
|
-
Structure is documented below.
|
39647
|
+
The name of the header.
|
38510
39648
|
"""
|
38511
|
-
return pulumi.get(self, "
|
39649
|
+
return pulumi.get(self, "header_name")
|
38512
39650
|
|
38513
39651
|
@property
|
38514
|
-
@pulumi.getter(name="
|
38515
|
-
def
|
39652
|
+
@pulumi.getter(name="headerValue")
|
39653
|
+
def header_value(self) -> Optional[builtins.str]:
|
38516
39654
|
"""
|
38517
|
-
The
|
38518
|
-
advanced route matching and routing actions are desired. The order of specifying
|
38519
|
-
routeRules matters: the first rule that matches will cause its specified routing
|
38520
|
-
action to take effect. Within a given pathMatcher, only one of pathRules or
|
38521
|
-
routeRules must be set. routeRules are not supported in UrlMaps intended for
|
38522
|
-
External load balancers.
|
38523
|
-
Structure is documented below.
|
39655
|
+
The value of the header to add.
|
38524
39656
|
"""
|
38525
|
-
return pulumi.get(self, "
|
39657
|
+
return pulumi.get(self, "header_value")
|
39658
|
+
|
39659
|
+
@property
|
39660
|
+
@pulumi.getter
|
39661
|
+
def replace(self) -> Optional[builtins.bool]:
|
39662
|
+
"""
|
39663
|
+
If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header.
|
39664
|
+
The default value is false.
|
39665
|
+
"""
|
39666
|
+
return pulumi.get(self, "replace")
|
38526
39667
|
|
38527
39668
|
|
38528
39669
|
@pulumi.output_type
|
@@ -41656,17 +42797,16 @@ class RegionUrlMapPathMatcherRouteRuleRouteActionUrlRewrite(dict):
|
|
41656
42797
|
The value must be from 1 to 255 characters.
|
41657
42798
|
:param builtins.str path_prefix_rewrite: Before forwarding the request to the selected backend service, the matching portion of the request's path is replaced by pathPrefixRewrite.
|
41658
42799
|
The value must be from 1 to 1024 characters.
|
41659
|
-
:param builtins.str path_template_rewrite:
|
41660
|
-
|
41661
|
-
|
41662
|
-
|
41663
|
-
|
41664
|
-
|
41665
|
-
|
41666
|
-
|
41667
|
-
|
41668
|
-
Only one of pathPrefixRewrite
|
41669
|
-
specified.
|
42800
|
+
:param builtins.str path_template_rewrite: If specified, the pattern rewrites the URL path (based on the :path header) using the HTTP template syntax.
|
42801
|
+
A corresponding pathTemplateMatch must be specified. Any template variables must exist in the pathTemplateMatch field.
|
42802
|
+
* At least one variable must be specified in the pathTemplateMatch field
|
42803
|
+
* You can omit variables from the rewritten URL
|
42804
|
+
* The * and ** operators cannot be matched unless they have a corresponding variable name - e.g. {format=*} or {var=**}.
|
42805
|
+
For example, a pathTemplateMatch of /static/{format=**} could be rewritten as /static/content/{format} to prefix
|
42806
|
+
/content to the URL. Variables can also be re-ordered in a rewrite, so that /{country}/{format}/{suffix=**} can be
|
42807
|
+
rewritten as /content/{format}/{country}/{suffix}.
|
42808
|
+
At least one non-empty routeRules[].matchRules[].path_template_match is required.
|
42809
|
+
Only one of pathPrefixRewrite or pathTemplateRewrite may be specified.
|
41670
42810
|
"""
|
41671
42811
|
if host_rewrite is not None:
|
41672
42812
|
pulumi.set(__self__, "host_rewrite", host_rewrite)
|
@@ -41697,17 +42837,16 @@ class RegionUrlMapPathMatcherRouteRuleRouteActionUrlRewrite(dict):
|
|
41697
42837
|
@pulumi.getter(name="pathTemplateRewrite")
|
41698
42838
|
def path_template_rewrite(self) -> Optional[builtins.str]:
|
41699
42839
|
"""
|
41700
|
-
|
41701
|
-
|
41702
|
-
|
41703
|
-
|
41704
|
-
|
41705
|
-
|
41706
|
-
|
41707
|
-
|
41708
|
-
|
41709
|
-
Only one of pathPrefixRewrite
|
41710
|
-
specified.
|
42840
|
+
If specified, the pattern rewrites the URL path (based on the :path header) using the HTTP template syntax.
|
42841
|
+
A corresponding pathTemplateMatch must be specified. Any template variables must exist in the pathTemplateMatch field.
|
42842
|
+
* At least one variable must be specified in the pathTemplateMatch field
|
42843
|
+
* You can omit variables from the rewritten URL
|
42844
|
+
* The * and ** operators cannot be matched unless they have a corresponding variable name - e.g. {format=*} or {var=**}.
|
42845
|
+
For example, a pathTemplateMatch of /static/{format=**} could be rewritten as /static/content/{format} to prefix
|
42846
|
+
/content to the URL. Variables can also be re-ordered in a rewrite, so that /{country}/{format}/{suffix=**} can be
|
42847
|
+
rewritten as /content/{format}/{country}/{suffix}.
|
42848
|
+
At least one non-empty routeRules[].matchRules[].path_template_match is required.
|
42849
|
+
Only one of pathPrefixRewrite or pathTemplateRewrite may be specified.
|
41711
42850
|
"""
|
41712
42851
|
return pulumi.get(self, "path_template_rewrite")
|
41713
42852
|
|
@@ -57201,22 +58340,59 @@ class URLMapPathMatcherRouteRuleUrlRedirect(dict):
|
|
57201
58340
|
|
57202
58341
|
@pulumi.output_type
|
57203
58342
|
class URLMapTest(dict):
|
58343
|
+
@staticmethod
|
58344
|
+
def __key_warning(key: str):
|
58345
|
+
suggest = None
|
58346
|
+
if key == "expectedOutputUrl":
|
58347
|
+
suggest = "expected_output_url"
|
58348
|
+
elif key == "expectedRedirectResponseCode":
|
58349
|
+
suggest = "expected_redirect_response_code"
|
58350
|
+
|
58351
|
+
if suggest:
|
58352
|
+
pulumi.log.warn(f"Key '{key}' not found in URLMapTest. Access the value via the '{suggest}' property getter instead.")
|
58353
|
+
|
58354
|
+
def __getitem__(self, key: str) -> Any:
|
58355
|
+
URLMapTest.__key_warning(key)
|
58356
|
+
return super().__getitem__(key)
|
58357
|
+
|
58358
|
+
def get(self, key: str, default = None) -> Any:
|
58359
|
+
URLMapTest.__key_warning(key)
|
58360
|
+
return super().get(key, default)
|
58361
|
+
|
57204
58362
|
def __init__(__self__, *,
|
57205
58363
|
host: builtins.str,
|
57206
58364
|
path: builtins.str,
|
57207
|
-
|
57208
|
-
|
58365
|
+
description: Optional[builtins.str] = None,
|
58366
|
+
expected_output_url: Optional[builtins.str] = None,
|
58367
|
+
expected_redirect_response_code: Optional[builtins.int] = None,
|
58368
|
+
headers: Optional[Sequence['outputs.URLMapTestHeader']] = None,
|
58369
|
+
service: Optional[builtins.str] = None):
|
57209
58370
|
"""
|
57210
58371
|
:param builtins.str host: Host portion of the URL.
|
57211
58372
|
:param builtins.str path: Path portion of the URL.
|
57212
|
-
:param builtins.str service: The backend service or backend bucket link that should be matched by this test.
|
57213
58373
|
:param builtins.str description: Description of this test case.
|
58374
|
+
:param builtins.str expected_output_url: The expected output URL evaluated by the load balancer containing the scheme, host, path and query parameters.
|
58375
|
+
For rules that forward requests to backends, the test passes only when expectedOutputUrl matches the request forwarded by the load balancer to backends. For rules with urlRewrite, the test verifies that the forwarded request matches hostRewrite and pathPrefixRewrite in the urlRewrite action. When service is specified, expectedOutputUrl`s scheme is ignored.
|
58376
|
+
For rules with urlRedirect, the test passes only if expectedOutputUrl matches the URL in the load balancer's redirect response. If urlRedirect specifies httpsRedirect, the test passes only if the scheme in expectedOutputUrl is also set to HTTPS. If urlRedirect specifies stripQuery, the test passes only if expectedOutputUrl does not contain any query parameters.
|
58377
|
+
expectedOutputUrl is optional when service is specified.
|
58378
|
+
:param builtins.int expected_redirect_response_code: For rules with urlRedirect, the test passes only if expectedRedirectResponseCode matches the HTTP status code in load balancer's redirect response.
|
58379
|
+
expectedRedirectResponseCode cannot be set when service is set.
|
58380
|
+
:param Sequence['URLMapTestHeaderArgs'] headers: HTTP headers for this request.
|
58381
|
+
Structure is documented below.
|
58382
|
+
:param builtins.str service: The backend service or backend bucket link that should be matched by this test.
|
57214
58383
|
"""
|
57215
58384
|
pulumi.set(__self__, "host", host)
|
57216
58385
|
pulumi.set(__self__, "path", path)
|
57217
|
-
pulumi.set(__self__, "service", service)
|
57218
58386
|
if description is not None:
|
57219
58387
|
pulumi.set(__self__, "description", description)
|
58388
|
+
if expected_output_url is not None:
|
58389
|
+
pulumi.set(__self__, "expected_output_url", expected_output_url)
|
58390
|
+
if expected_redirect_response_code is not None:
|
58391
|
+
pulumi.set(__self__, "expected_redirect_response_code", expected_redirect_response_code)
|
58392
|
+
if headers is not None:
|
58393
|
+
pulumi.set(__self__, "headers", headers)
|
58394
|
+
if service is not None:
|
58395
|
+
pulumi.set(__self__, "service", service)
|
57220
58396
|
|
57221
58397
|
@property
|
57222
58398
|
@pulumi.getter
|
@@ -57236,19 +58412,216 @@ class URLMapTest(dict):
|
|
57236
58412
|
|
57237
58413
|
@property
|
57238
58414
|
@pulumi.getter
|
57239
|
-
def
|
58415
|
+
def description(self) -> Optional[builtins.str]:
|
58416
|
+
"""
|
58417
|
+
Description of this test case.
|
58418
|
+
"""
|
58419
|
+
return pulumi.get(self, "description")
|
58420
|
+
|
58421
|
+
@property
|
58422
|
+
@pulumi.getter(name="expectedOutputUrl")
|
58423
|
+
def expected_output_url(self) -> Optional[builtins.str]:
|
58424
|
+
"""
|
58425
|
+
The expected output URL evaluated by the load balancer containing the scheme, host, path and query parameters.
|
58426
|
+
For rules that forward requests to backends, the test passes only when expectedOutputUrl matches the request forwarded by the load balancer to backends. For rules with urlRewrite, the test verifies that the forwarded request matches hostRewrite and pathPrefixRewrite in the urlRewrite action. When service is specified, expectedOutputUrl`s scheme is ignored.
|
58427
|
+
For rules with urlRedirect, the test passes only if expectedOutputUrl matches the URL in the load balancer's redirect response. If urlRedirect specifies httpsRedirect, the test passes only if the scheme in expectedOutputUrl is also set to HTTPS. If urlRedirect specifies stripQuery, the test passes only if expectedOutputUrl does not contain any query parameters.
|
58428
|
+
expectedOutputUrl is optional when service is specified.
|
58429
|
+
"""
|
58430
|
+
return pulumi.get(self, "expected_output_url")
|
58431
|
+
|
58432
|
+
@property
|
58433
|
+
@pulumi.getter(name="expectedRedirectResponseCode")
|
58434
|
+
def expected_redirect_response_code(self) -> Optional[builtins.int]:
|
58435
|
+
"""
|
58436
|
+
For rules with urlRedirect, the test passes only if expectedRedirectResponseCode matches the HTTP status code in load balancer's redirect response.
|
58437
|
+
expectedRedirectResponseCode cannot be set when service is set.
|
58438
|
+
"""
|
58439
|
+
return pulumi.get(self, "expected_redirect_response_code")
|
58440
|
+
|
58441
|
+
@property
|
58442
|
+
@pulumi.getter
|
58443
|
+
def headers(self) -> Optional[Sequence['outputs.URLMapTestHeader']]:
|
58444
|
+
"""
|
58445
|
+
HTTP headers for this request.
|
58446
|
+
Structure is documented below.
|
58447
|
+
"""
|
58448
|
+
return pulumi.get(self, "headers")
|
58449
|
+
|
58450
|
+
@property
|
58451
|
+
@pulumi.getter
|
58452
|
+
def service(self) -> Optional[builtins.str]:
|
57240
58453
|
"""
|
57241
58454
|
The backend service or backend bucket link that should be matched by this test.
|
57242
58455
|
"""
|
57243
58456
|
return pulumi.get(self, "service")
|
57244
58457
|
|
58458
|
+
|
58459
|
+
@pulumi.output_type
|
58460
|
+
class URLMapTestHeader(dict):
|
58461
|
+
def __init__(__self__, *,
|
58462
|
+
name: builtins.str,
|
58463
|
+
value: builtins.str):
|
58464
|
+
"""
|
58465
|
+
:param builtins.str name: Header name.
|
58466
|
+
:param builtins.str value: Header value.
|
58467
|
+
"""
|
58468
|
+
pulumi.set(__self__, "name", name)
|
58469
|
+
pulumi.set(__self__, "value", value)
|
58470
|
+
|
57245
58471
|
@property
|
57246
58472
|
@pulumi.getter
|
57247
|
-
def
|
58473
|
+
def name(self) -> builtins.str:
|
57248
58474
|
"""
|
57249
|
-
|
58475
|
+
Header name.
|
57250
58476
|
"""
|
57251
|
-
return pulumi.get(self, "
|
58477
|
+
return pulumi.get(self, "name")
|
58478
|
+
|
58479
|
+
@property
|
58480
|
+
@pulumi.getter
|
58481
|
+
def value(self) -> builtins.str:
|
58482
|
+
"""
|
58483
|
+
Header value.
|
58484
|
+
"""
|
58485
|
+
return pulumi.get(self, "value")
|
58486
|
+
|
58487
|
+
|
58488
|
+
@pulumi.output_type
|
58489
|
+
class VPNTunnelCipherSuite(dict):
|
58490
|
+
def __init__(__self__, *,
|
58491
|
+
phase1: Optional['outputs.VPNTunnelCipherSuitePhase1'] = None,
|
58492
|
+
phase2: Optional['outputs.VPNTunnelCipherSuitePhase2'] = None):
|
58493
|
+
"""
|
58494
|
+
:param 'VPNTunnelCipherSuitePhase1Args' phase1: Cipher configuration for phase 1 of the IKE protocol.
|
58495
|
+
Structure is documented below.
|
58496
|
+
:param 'VPNTunnelCipherSuitePhase2Args' phase2: Cipher configuration for phase 2 of the IKE protocol.
|
58497
|
+
Structure is documented below.
|
58498
|
+
|
58499
|
+
|
58500
|
+
<a name="nested_cipher_suite_phase1"></a>The `phase1` block supports:
|
58501
|
+
"""
|
58502
|
+
if phase1 is not None:
|
58503
|
+
pulumi.set(__self__, "phase1", phase1)
|
58504
|
+
if phase2 is not None:
|
58505
|
+
pulumi.set(__self__, "phase2", phase2)
|
58506
|
+
|
58507
|
+
@property
|
58508
|
+
@pulumi.getter
|
58509
|
+
def phase1(self) -> Optional['outputs.VPNTunnelCipherSuitePhase1']:
|
58510
|
+
"""
|
58511
|
+
Cipher configuration for phase 1 of the IKE protocol.
|
58512
|
+
Structure is documented below.
|
58513
|
+
"""
|
58514
|
+
return pulumi.get(self, "phase1")
|
58515
|
+
|
58516
|
+
@property
|
58517
|
+
@pulumi.getter
|
58518
|
+
def phase2(self) -> Optional['outputs.VPNTunnelCipherSuitePhase2']:
|
58519
|
+
"""
|
58520
|
+
Cipher configuration for phase 2 of the IKE protocol.
|
58521
|
+
Structure is documented below.
|
58522
|
+
|
58523
|
+
|
58524
|
+
<a name="nested_cipher_suite_phase1"></a>The `phase1` block supports:
|
58525
|
+
"""
|
58526
|
+
return pulumi.get(self, "phase2")
|
58527
|
+
|
58528
|
+
|
58529
|
+
@pulumi.output_type
|
58530
|
+
class VPNTunnelCipherSuitePhase1(dict):
|
58531
|
+
def __init__(__self__, *,
|
58532
|
+
dhs: Optional[Sequence[builtins.str]] = None,
|
58533
|
+
encryptions: Optional[Sequence[builtins.str]] = None,
|
58534
|
+
integrities: Optional[Sequence[builtins.str]] = None,
|
58535
|
+
prves: Optional[Sequence[builtins.str]] = None):
|
58536
|
+
"""
|
58537
|
+
:param Sequence[builtins.str] dhs: Diffie-Hellman groups.
|
58538
|
+
:param Sequence[builtins.str] encryptions: Encryption algorithms.
|
58539
|
+
:param Sequence[builtins.str] integrities: Integrity algorithms.
|
58540
|
+
:param Sequence[builtins.str] prves: Pseudo-random functions.
|
58541
|
+
"""
|
58542
|
+
if dhs is not None:
|
58543
|
+
pulumi.set(__self__, "dhs", dhs)
|
58544
|
+
if encryptions is not None:
|
58545
|
+
pulumi.set(__self__, "encryptions", encryptions)
|
58546
|
+
if integrities is not None:
|
58547
|
+
pulumi.set(__self__, "integrities", integrities)
|
58548
|
+
if prves is not None:
|
58549
|
+
pulumi.set(__self__, "prves", prves)
|
58550
|
+
|
58551
|
+
@property
|
58552
|
+
@pulumi.getter
|
58553
|
+
def dhs(self) -> Optional[Sequence[builtins.str]]:
|
58554
|
+
"""
|
58555
|
+
Diffie-Hellman groups.
|
58556
|
+
"""
|
58557
|
+
return pulumi.get(self, "dhs")
|
58558
|
+
|
58559
|
+
@property
|
58560
|
+
@pulumi.getter
|
58561
|
+
def encryptions(self) -> Optional[Sequence[builtins.str]]:
|
58562
|
+
"""
|
58563
|
+
Encryption algorithms.
|
58564
|
+
"""
|
58565
|
+
return pulumi.get(self, "encryptions")
|
58566
|
+
|
58567
|
+
@property
|
58568
|
+
@pulumi.getter
|
58569
|
+
def integrities(self) -> Optional[Sequence[builtins.str]]:
|
58570
|
+
"""
|
58571
|
+
Integrity algorithms.
|
58572
|
+
"""
|
58573
|
+
return pulumi.get(self, "integrities")
|
58574
|
+
|
58575
|
+
@property
|
58576
|
+
@pulumi.getter
|
58577
|
+
def prves(self) -> Optional[Sequence[builtins.str]]:
|
58578
|
+
"""
|
58579
|
+
Pseudo-random functions.
|
58580
|
+
"""
|
58581
|
+
return pulumi.get(self, "prves")
|
58582
|
+
|
58583
|
+
|
58584
|
+
@pulumi.output_type
|
58585
|
+
class VPNTunnelCipherSuitePhase2(dict):
|
58586
|
+
def __init__(__self__, *,
|
58587
|
+
encryptions: Optional[Sequence[builtins.str]] = None,
|
58588
|
+
integrities: Optional[Sequence[builtins.str]] = None,
|
58589
|
+
pfs: Optional[Sequence[builtins.str]] = None):
|
58590
|
+
"""
|
58591
|
+
:param Sequence[builtins.str] encryptions: Encryption algorithms.
|
58592
|
+
:param Sequence[builtins.str] integrities: Integrity algorithms.
|
58593
|
+
:param Sequence[builtins.str] pfs: Perfect forward secrecy groups.
|
58594
|
+
"""
|
58595
|
+
if encryptions is not None:
|
58596
|
+
pulumi.set(__self__, "encryptions", encryptions)
|
58597
|
+
if integrities is not None:
|
58598
|
+
pulumi.set(__self__, "integrities", integrities)
|
58599
|
+
if pfs is not None:
|
58600
|
+
pulumi.set(__self__, "pfs", pfs)
|
58601
|
+
|
58602
|
+
@property
|
58603
|
+
@pulumi.getter
|
58604
|
+
def encryptions(self) -> Optional[Sequence[builtins.str]]:
|
58605
|
+
"""
|
58606
|
+
Encryption algorithms.
|
58607
|
+
"""
|
58608
|
+
return pulumi.get(self, "encryptions")
|
58609
|
+
|
58610
|
+
@property
|
58611
|
+
@pulumi.getter
|
58612
|
+
def integrities(self) -> Optional[Sequence[builtins.str]]:
|
58613
|
+
"""
|
58614
|
+
Integrity algorithms.
|
58615
|
+
"""
|
58616
|
+
return pulumi.get(self, "integrities")
|
58617
|
+
|
58618
|
+
@property
|
58619
|
+
@pulumi.getter
|
58620
|
+
def pfs(self) -> Optional[Sequence[builtins.str]]:
|
58621
|
+
"""
|
58622
|
+
Perfect forward secrecy groups.
|
58623
|
+
"""
|
58624
|
+
return pulumi.get(self, "pfs")
|
57252
58625
|
|
57253
58626
|
|
57254
58627
|
@pulumi.output_type
|