pulumi-gcp 7.33.0a1721974181__py3-none-any.whl → 7.34.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of pulumi-gcp might be problematic. Click here for more details.
- pulumi_gcp/__init__.py +40 -0
- pulumi_gcp/alloydb/_inputs.py +174 -0
- pulumi_gcp/alloydb/instance.py +54 -0
- pulumi_gcp/alloydb/outputs.py +133 -0
- pulumi_gcp/apigee/__init__.py +2 -0
- pulumi_gcp/apigee/environment_keyvaluemaps.py +370 -0
- pulumi_gcp/apigee/environment_keyvaluemaps_entries.py +440 -0
- pulumi_gcp/apigee/instance.py +2 -2
- pulumi_gcp/apigee/nat_address.py +2 -2
- pulumi_gcp/apigee/organization.py +4 -4
- pulumi_gcp/apphub/service_project_attachment.py +11 -11
- pulumi_gcp/bigquery/_inputs.py +36 -0
- pulumi_gcp/bigquery/app_profile.py +54 -0
- pulumi_gcp/bigquery/outputs.py +38 -0
- pulumi_gcp/bigquery/reservation.py +34 -4
- pulumi_gcp/bigquery/table.py +65 -21
- pulumi_gcp/bigtable/table.py +27 -26
- pulumi_gcp/certificateauthority/authority.py +4 -4
- pulumi_gcp/cloudfunctions/function.py +47 -0
- pulumi_gcp/cloudfunctions/get_function.py +11 -1
- pulumi_gcp/cloudfunctionsv2/function.py +2 -2
- pulumi_gcp/cloudrun/_inputs.py +24 -21
- pulumi_gcp/cloudrun/outputs.py +20 -24
- pulumi_gcp/cloudrunv2/_inputs.py +3 -0
- pulumi_gcp/cloudrunv2/outputs.py +4 -0
- pulumi_gcp/compute/__init__.py +2 -0
- pulumi_gcp/compute/_inputs.py +2334 -329
- pulumi_gcp/compute/backend_service.py +6 -0
- pulumi_gcp/compute/outputs.py +1466 -7
- pulumi_gcp/compute/public_advertised_prefix.py +30 -2
- pulumi_gcp/compute/resize_request.py +782 -0
- pulumi_gcp/compute/router_peer.py +437 -0
- pulumi_gcp/compute/router_route_policy.py +616 -0
- pulumi_gcp/compute/service_attachment.py +7 -14
- pulumi_gcp/container/_inputs.py +215 -18
- pulumi_gcp/container/node_pool.py +0 -14
- pulumi_gcp/container/outputs.py +226 -12
- pulumi_gcp/databasemigrationservice/private_connection.py +10 -6
- pulumi_gcp/dataloss/_inputs.py +707 -21
- pulumi_gcp/dataloss/outputs.py +588 -14
- pulumi_gcp/datastore/data_store_index.py +24 -12
- pulumi_gcp/datastream/_inputs.py +83 -3
- pulumi_gcp/datastream/outputs.py +51 -3
- pulumi_gcp/datastream/stream.py +170 -0
- pulumi_gcp/firebase/database_instance.py +8 -8
- pulumi_gcp/firebase/hosting_site.py +8 -8
- pulumi_gcp/firestore/index.py +10 -10
- pulumi_gcp/gkeonprem/_inputs.py +78 -78
- pulumi_gcp/gkeonprem/outputs.py +52 -52
- pulumi_gcp/iap/client.py +4 -4
- pulumi_gcp/integrationconnectors/_inputs.py +30 -30
- pulumi_gcp/integrationconnectors/outputs.py +20 -20
- pulumi_gcp/netapp/volume.py +1 -1
- pulumi_gcp/networkconnectivity/_inputs.py +3 -6
- pulumi_gcp/networkconnectivity/hub.py +60 -49
- pulumi_gcp/networkconnectivity/outputs.py +2 -4
- pulumi_gcp/networkconnectivity/spoke.py +159 -104
- pulumi_gcp/networksecurity/tls_inspection_policy.py +2 -2
- pulumi_gcp/orgpolicy/policy.py +4 -4
- pulumi_gcp/projects/get_project_service.py +11 -1
- pulumi_gcp/projects/service.py +68 -0
- pulumi_gcp/projects/service_identity.py +30 -2
- pulumi_gcp/pubsub/subscription.py +6 -6
- pulumi_gcp/pulumi-plugin.json +1 -1
- pulumi_gcp/securesourcemanager/instance.py +528 -4
- pulumi_gcp/securitycenter/__init__.py +1 -0
- pulumi_gcp/securitycenter/v2_organization_mute_config.py +673 -0
- pulumi_gcp/sql/database_instance.py +2 -2
- pulumi_gcp/vertex/ai_feature_online_store_featureview.py +4 -4
- pulumi_gcp/vmwareengine/get_private_cloud.py +21 -1
- pulumi_gcp/vmwareengine/private_cloud.py +121 -2
- pulumi_gcp/workbench/_inputs.py +77 -0
- pulumi_gcp/workbench/instance.py +18 -4
- pulumi_gcp/workbench/outputs.py +67 -1
- {pulumi_gcp-7.33.0a1721974181.dist-info → pulumi_gcp-7.34.0.dist-info}/METADATA +1 -1
- {pulumi_gcp-7.33.0a1721974181.dist-info → pulumi_gcp-7.34.0.dist-info}/RECORD +78 -73
- {pulumi_gcp-7.33.0a1721974181.dist-info → pulumi_gcp-7.34.0.dist-info}/WHEEL +1 -1
- {pulumi_gcp-7.33.0a1721974181.dist-info → pulumi_gcp-7.34.0.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,616 @@
|
|
1
|
+
# coding=utf-8
|
2
|
+
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
4
|
+
|
5
|
+
import copy
|
6
|
+
import warnings
|
7
|
+
import sys
|
8
|
+
import pulumi
|
9
|
+
import pulumi.runtime
|
10
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
11
|
+
if sys.version_info >= (3, 11):
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
13
|
+
else:
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
15
|
+
from .. import _utilities
|
16
|
+
from . import outputs
|
17
|
+
from ._inputs import *
|
18
|
+
|
19
|
+
__all__ = ['RouterRoutePolicyArgs', 'RouterRoutePolicy']
|
20
|
+
|
21
|
+
@pulumi.input_type
|
22
|
+
class RouterRoutePolicyArgs:
|
23
|
+
def __init__(__self__, *,
|
24
|
+
router: pulumi.Input[str],
|
25
|
+
terms: pulumi.Input[Sequence[pulumi.Input['RouterRoutePolicyTermArgs']]],
|
26
|
+
name: Optional[pulumi.Input[str]] = None,
|
27
|
+
project: Optional[pulumi.Input[str]] = None,
|
28
|
+
region: Optional[pulumi.Input[str]] = None,
|
29
|
+
type: Optional[pulumi.Input[str]] = None):
|
30
|
+
"""
|
31
|
+
The set of arguments for constructing a RouterRoutePolicy resource.
|
32
|
+
:param pulumi.Input[str] router: The name of the Cloud Router in which this route policy will be configured.
|
33
|
+
:param pulumi.Input[Sequence[pulumi.Input['RouterRoutePolicyTermArgs']]] terms: List of terms (the order in the list is not important, they are evaluated in order of priority).
|
34
|
+
Structure is documented below.
|
35
|
+
:param pulumi.Input[str] name: Name of the route policy. This policy's name, which must be a resource ID segment and unique within all policies owned by the Router
|
36
|
+
:param pulumi.Input[str] region: Region where the router and NAT reside.
|
37
|
+
:param pulumi.Input[str] type: This is policy's type, which is one of IMPORT or EXPORT Possible values: ["ROUTE_POLICY_TYPE_IMPORT",
|
38
|
+
"ROUTE_POLICY_TYPE_EXPORT"]
|
39
|
+
"""
|
40
|
+
pulumi.set(__self__, "router", router)
|
41
|
+
pulumi.set(__self__, "terms", terms)
|
42
|
+
if name is not None:
|
43
|
+
pulumi.set(__self__, "name", name)
|
44
|
+
if project is not None:
|
45
|
+
pulumi.set(__self__, "project", project)
|
46
|
+
if region is not None:
|
47
|
+
pulumi.set(__self__, "region", region)
|
48
|
+
if type is not None:
|
49
|
+
pulumi.set(__self__, "type", type)
|
50
|
+
|
51
|
+
@property
|
52
|
+
@pulumi.getter
|
53
|
+
def router(self) -> pulumi.Input[str]:
|
54
|
+
"""
|
55
|
+
The name of the Cloud Router in which this route policy will be configured.
|
56
|
+
"""
|
57
|
+
return pulumi.get(self, "router")
|
58
|
+
|
59
|
+
@router.setter
|
60
|
+
def router(self, value: pulumi.Input[str]):
|
61
|
+
pulumi.set(self, "router", value)
|
62
|
+
|
63
|
+
@property
|
64
|
+
@pulumi.getter
|
65
|
+
def terms(self) -> pulumi.Input[Sequence[pulumi.Input['RouterRoutePolicyTermArgs']]]:
|
66
|
+
"""
|
67
|
+
List of terms (the order in the list is not important, they are evaluated in order of priority).
|
68
|
+
Structure is documented below.
|
69
|
+
"""
|
70
|
+
return pulumi.get(self, "terms")
|
71
|
+
|
72
|
+
@terms.setter
|
73
|
+
def terms(self, value: pulumi.Input[Sequence[pulumi.Input['RouterRoutePolicyTermArgs']]]):
|
74
|
+
pulumi.set(self, "terms", value)
|
75
|
+
|
76
|
+
@property
|
77
|
+
@pulumi.getter
|
78
|
+
def name(self) -> Optional[pulumi.Input[str]]:
|
79
|
+
"""
|
80
|
+
Name of the route policy. This policy's name, which must be a resource ID segment and unique within all policies owned by the Router
|
81
|
+
"""
|
82
|
+
return pulumi.get(self, "name")
|
83
|
+
|
84
|
+
@name.setter
|
85
|
+
def name(self, value: Optional[pulumi.Input[str]]):
|
86
|
+
pulumi.set(self, "name", value)
|
87
|
+
|
88
|
+
@property
|
89
|
+
@pulumi.getter
|
90
|
+
def project(self) -> Optional[pulumi.Input[str]]:
|
91
|
+
return pulumi.get(self, "project")
|
92
|
+
|
93
|
+
@project.setter
|
94
|
+
def project(self, value: Optional[pulumi.Input[str]]):
|
95
|
+
pulumi.set(self, "project", value)
|
96
|
+
|
97
|
+
@property
|
98
|
+
@pulumi.getter
|
99
|
+
def region(self) -> Optional[pulumi.Input[str]]:
|
100
|
+
"""
|
101
|
+
Region where the router and NAT reside.
|
102
|
+
"""
|
103
|
+
return pulumi.get(self, "region")
|
104
|
+
|
105
|
+
@region.setter
|
106
|
+
def region(self, value: Optional[pulumi.Input[str]]):
|
107
|
+
pulumi.set(self, "region", value)
|
108
|
+
|
109
|
+
@property
|
110
|
+
@pulumi.getter
|
111
|
+
def type(self) -> Optional[pulumi.Input[str]]:
|
112
|
+
"""
|
113
|
+
This is policy's type, which is one of IMPORT or EXPORT Possible values: ["ROUTE_POLICY_TYPE_IMPORT",
|
114
|
+
"ROUTE_POLICY_TYPE_EXPORT"]
|
115
|
+
"""
|
116
|
+
return pulumi.get(self, "type")
|
117
|
+
|
118
|
+
@type.setter
|
119
|
+
def type(self, value: Optional[pulumi.Input[str]]):
|
120
|
+
pulumi.set(self, "type", value)
|
121
|
+
|
122
|
+
|
123
|
+
@pulumi.input_type
|
124
|
+
class _RouterRoutePolicyState:
|
125
|
+
def __init__(__self__, *,
|
126
|
+
fingerprint: Optional[pulumi.Input[str]] = None,
|
127
|
+
name: Optional[pulumi.Input[str]] = None,
|
128
|
+
project: Optional[pulumi.Input[str]] = None,
|
129
|
+
region: Optional[pulumi.Input[str]] = None,
|
130
|
+
router: Optional[pulumi.Input[str]] = None,
|
131
|
+
terms: Optional[pulumi.Input[Sequence[pulumi.Input['RouterRoutePolicyTermArgs']]]] = None,
|
132
|
+
type: Optional[pulumi.Input[str]] = None):
|
133
|
+
"""
|
134
|
+
Input properties used for looking up and filtering RouterRoutePolicy resources.
|
135
|
+
:param pulumi.Input[str] fingerprint: The fingerprint used for optimistic locking of this resource. Used
|
136
|
+
internally during updates.
|
137
|
+
:param pulumi.Input[str] name: Name of the route policy. This policy's name, which must be a resource ID segment and unique within all policies owned by the Router
|
138
|
+
:param pulumi.Input[str] region: Region where the router and NAT reside.
|
139
|
+
:param pulumi.Input[str] router: The name of the Cloud Router in which this route policy will be configured.
|
140
|
+
:param pulumi.Input[Sequence[pulumi.Input['RouterRoutePolicyTermArgs']]] terms: List of terms (the order in the list is not important, they are evaluated in order of priority).
|
141
|
+
Structure is documented below.
|
142
|
+
:param pulumi.Input[str] type: This is policy's type, which is one of IMPORT or EXPORT Possible values: ["ROUTE_POLICY_TYPE_IMPORT",
|
143
|
+
"ROUTE_POLICY_TYPE_EXPORT"]
|
144
|
+
"""
|
145
|
+
if fingerprint is not None:
|
146
|
+
pulumi.set(__self__, "fingerprint", fingerprint)
|
147
|
+
if name is not None:
|
148
|
+
pulumi.set(__self__, "name", name)
|
149
|
+
if project is not None:
|
150
|
+
pulumi.set(__self__, "project", project)
|
151
|
+
if region is not None:
|
152
|
+
pulumi.set(__self__, "region", region)
|
153
|
+
if router is not None:
|
154
|
+
pulumi.set(__self__, "router", router)
|
155
|
+
if terms is not None:
|
156
|
+
pulumi.set(__self__, "terms", terms)
|
157
|
+
if type is not None:
|
158
|
+
pulumi.set(__self__, "type", type)
|
159
|
+
|
160
|
+
@property
|
161
|
+
@pulumi.getter
|
162
|
+
def fingerprint(self) -> Optional[pulumi.Input[str]]:
|
163
|
+
"""
|
164
|
+
The fingerprint used for optimistic locking of this resource. Used
|
165
|
+
internally during updates.
|
166
|
+
"""
|
167
|
+
return pulumi.get(self, "fingerprint")
|
168
|
+
|
169
|
+
@fingerprint.setter
|
170
|
+
def fingerprint(self, value: Optional[pulumi.Input[str]]):
|
171
|
+
pulumi.set(self, "fingerprint", value)
|
172
|
+
|
173
|
+
@property
|
174
|
+
@pulumi.getter
|
175
|
+
def name(self) -> Optional[pulumi.Input[str]]:
|
176
|
+
"""
|
177
|
+
Name of the route policy. This policy's name, which must be a resource ID segment and unique within all policies owned by the Router
|
178
|
+
"""
|
179
|
+
return pulumi.get(self, "name")
|
180
|
+
|
181
|
+
@name.setter
|
182
|
+
def name(self, value: Optional[pulumi.Input[str]]):
|
183
|
+
pulumi.set(self, "name", value)
|
184
|
+
|
185
|
+
@property
|
186
|
+
@pulumi.getter
|
187
|
+
def project(self) -> Optional[pulumi.Input[str]]:
|
188
|
+
return pulumi.get(self, "project")
|
189
|
+
|
190
|
+
@project.setter
|
191
|
+
def project(self, value: Optional[pulumi.Input[str]]):
|
192
|
+
pulumi.set(self, "project", value)
|
193
|
+
|
194
|
+
@property
|
195
|
+
@pulumi.getter
|
196
|
+
def region(self) -> Optional[pulumi.Input[str]]:
|
197
|
+
"""
|
198
|
+
Region where the router and NAT reside.
|
199
|
+
"""
|
200
|
+
return pulumi.get(self, "region")
|
201
|
+
|
202
|
+
@region.setter
|
203
|
+
def region(self, value: Optional[pulumi.Input[str]]):
|
204
|
+
pulumi.set(self, "region", value)
|
205
|
+
|
206
|
+
@property
|
207
|
+
@pulumi.getter
|
208
|
+
def router(self) -> Optional[pulumi.Input[str]]:
|
209
|
+
"""
|
210
|
+
The name of the Cloud Router in which this route policy will be configured.
|
211
|
+
"""
|
212
|
+
return pulumi.get(self, "router")
|
213
|
+
|
214
|
+
@router.setter
|
215
|
+
def router(self, value: Optional[pulumi.Input[str]]):
|
216
|
+
pulumi.set(self, "router", value)
|
217
|
+
|
218
|
+
@property
|
219
|
+
@pulumi.getter
|
220
|
+
def terms(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['RouterRoutePolicyTermArgs']]]]:
|
221
|
+
"""
|
222
|
+
List of terms (the order in the list is not important, they are evaluated in order of priority).
|
223
|
+
Structure is documented below.
|
224
|
+
"""
|
225
|
+
return pulumi.get(self, "terms")
|
226
|
+
|
227
|
+
@terms.setter
|
228
|
+
def terms(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['RouterRoutePolicyTermArgs']]]]):
|
229
|
+
pulumi.set(self, "terms", value)
|
230
|
+
|
231
|
+
@property
|
232
|
+
@pulumi.getter
|
233
|
+
def type(self) -> Optional[pulumi.Input[str]]:
|
234
|
+
"""
|
235
|
+
This is policy's type, which is one of IMPORT or EXPORT Possible values: ["ROUTE_POLICY_TYPE_IMPORT",
|
236
|
+
"ROUTE_POLICY_TYPE_EXPORT"]
|
237
|
+
"""
|
238
|
+
return pulumi.get(self, "type")
|
239
|
+
|
240
|
+
@type.setter
|
241
|
+
def type(self, value: Optional[pulumi.Input[str]]):
|
242
|
+
pulumi.set(self, "type", value)
|
243
|
+
|
244
|
+
|
245
|
+
class RouterRoutePolicy(pulumi.CustomResource):
|
246
|
+
@overload
|
247
|
+
def __init__(__self__,
|
248
|
+
resource_name: str,
|
249
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
250
|
+
name: Optional[pulumi.Input[str]] = None,
|
251
|
+
project: Optional[pulumi.Input[str]] = None,
|
252
|
+
region: Optional[pulumi.Input[str]] = None,
|
253
|
+
router: Optional[pulumi.Input[str]] = None,
|
254
|
+
terms: Optional[pulumi.Input[Sequence[pulumi.Input[Union['RouterRoutePolicyTermArgs', 'RouterRoutePolicyTermArgsDict']]]]] = None,
|
255
|
+
type: Optional[pulumi.Input[str]] = None,
|
256
|
+
__props__=None):
|
257
|
+
"""
|
258
|
+
## Example Usage
|
259
|
+
|
260
|
+
### Router Route Policy Export
|
261
|
+
|
262
|
+
```python
|
263
|
+
import pulumi
|
264
|
+
import pulumi_gcp as gcp
|
265
|
+
|
266
|
+
net = gcp.compute.Network("net",
|
267
|
+
name="my-network",
|
268
|
+
auto_create_subnetworks=False)
|
269
|
+
subnet = gcp.compute.Subnetwork("subnet",
|
270
|
+
name="my-subnetwork",
|
271
|
+
network=net.id,
|
272
|
+
ip_cidr_range="10.0.0.0/16",
|
273
|
+
region="us-central1")
|
274
|
+
router = gcp.compute.Router("router",
|
275
|
+
name="my-router",
|
276
|
+
region=subnet.region,
|
277
|
+
network=net.id)
|
278
|
+
rp_export = gcp.compute.RouterRoutePolicy("rp-export",
|
279
|
+
router=router.name,
|
280
|
+
region=router.region,
|
281
|
+
name="my-rp1",
|
282
|
+
type="ROUTE_POLICY_TYPE_EXPORT",
|
283
|
+
terms=[{
|
284
|
+
"priority": 1,
|
285
|
+
"match": {
|
286
|
+
"expression": "destination == '10.0.0.0/12'",
|
287
|
+
},
|
288
|
+
"actions": [{
|
289
|
+
"expression": "accept()",
|
290
|
+
}],
|
291
|
+
}])
|
292
|
+
```
|
293
|
+
### Router Route Policy Import
|
294
|
+
|
295
|
+
```python
|
296
|
+
import pulumi
|
297
|
+
import pulumi_gcp as gcp
|
298
|
+
|
299
|
+
net = gcp.compute.Network("net",
|
300
|
+
name="my-network",
|
301
|
+
auto_create_subnetworks=False)
|
302
|
+
subnet = gcp.compute.Subnetwork("subnet",
|
303
|
+
name="my-subnetwork",
|
304
|
+
network=net.id,
|
305
|
+
ip_cidr_range="10.0.0.0/16",
|
306
|
+
region="us-central1")
|
307
|
+
router = gcp.compute.Router("router",
|
308
|
+
name="my-router",
|
309
|
+
region=subnet.region,
|
310
|
+
network=net.id)
|
311
|
+
rp_import = gcp.compute.RouterRoutePolicy("rp-import",
|
312
|
+
name="my-rp2",
|
313
|
+
router=router.name,
|
314
|
+
region=router.region,
|
315
|
+
type="ROUTE_POLICY_TYPE_IMPORT",
|
316
|
+
terms=[{
|
317
|
+
"priority": 2,
|
318
|
+
"match": {
|
319
|
+
"expression": "destination == '10.0.0.0/12'",
|
320
|
+
},
|
321
|
+
"actions": [{
|
322
|
+
"expression": "accept()",
|
323
|
+
}],
|
324
|
+
}])
|
325
|
+
```
|
326
|
+
|
327
|
+
## Import
|
328
|
+
|
329
|
+
RouterRoutePolicy can be imported using any of these accepted formats:
|
330
|
+
|
331
|
+
* `{{project}}/{{region}}/{{router}}/routePolicies/{{name}}`
|
332
|
+
|
333
|
+
* `{{project}}/{{region}}/{{router}}/{{name}}`
|
334
|
+
|
335
|
+
* `{{region}}/{{router}}/{{name}}`
|
336
|
+
|
337
|
+
* `{{router}}/{{name}}`
|
338
|
+
|
339
|
+
When using the `pulumi import` command, RouterRoutePolicy can be imported using one of the formats above. For example:
|
340
|
+
|
341
|
+
```sh
|
342
|
+
$ pulumi import gcp:compute/routerRoutePolicy:RouterRoutePolicy default {{project}}/{{region}}/{{router}}/routePolicies/{{name}}
|
343
|
+
```
|
344
|
+
|
345
|
+
```sh
|
346
|
+
$ pulumi import gcp:compute/routerRoutePolicy:RouterRoutePolicy default {{project}}/{{region}}/{{router}}/{{name}}
|
347
|
+
```
|
348
|
+
|
349
|
+
```sh
|
350
|
+
$ pulumi import gcp:compute/routerRoutePolicy:RouterRoutePolicy default {{region}}/{{router}}/{{name}}
|
351
|
+
```
|
352
|
+
|
353
|
+
```sh
|
354
|
+
$ pulumi import gcp:compute/routerRoutePolicy:RouterRoutePolicy default {{router}}/{{name}}
|
355
|
+
```
|
356
|
+
|
357
|
+
:param str resource_name: The name of the resource.
|
358
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
359
|
+
:param pulumi.Input[str] name: Name of the route policy. This policy's name, which must be a resource ID segment and unique within all policies owned by the Router
|
360
|
+
:param pulumi.Input[str] region: Region where the router and NAT reside.
|
361
|
+
:param pulumi.Input[str] router: The name of the Cloud Router in which this route policy will be configured.
|
362
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['RouterRoutePolicyTermArgs', 'RouterRoutePolicyTermArgsDict']]]] terms: List of terms (the order in the list is not important, they are evaluated in order of priority).
|
363
|
+
Structure is documented below.
|
364
|
+
:param pulumi.Input[str] type: This is policy's type, which is one of IMPORT or EXPORT Possible values: ["ROUTE_POLICY_TYPE_IMPORT",
|
365
|
+
"ROUTE_POLICY_TYPE_EXPORT"]
|
366
|
+
"""
|
367
|
+
...
|
368
|
+
@overload
|
369
|
+
def __init__(__self__,
|
370
|
+
resource_name: str,
|
371
|
+
args: RouterRoutePolicyArgs,
|
372
|
+
opts: Optional[pulumi.ResourceOptions] = None):
|
373
|
+
"""
|
374
|
+
## Example Usage
|
375
|
+
|
376
|
+
### Router Route Policy Export
|
377
|
+
|
378
|
+
```python
|
379
|
+
import pulumi
|
380
|
+
import pulumi_gcp as gcp
|
381
|
+
|
382
|
+
net = gcp.compute.Network("net",
|
383
|
+
name="my-network",
|
384
|
+
auto_create_subnetworks=False)
|
385
|
+
subnet = gcp.compute.Subnetwork("subnet",
|
386
|
+
name="my-subnetwork",
|
387
|
+
network=net.id,
|
388
|
+
ip_cidr_range="10.0.0.0/16",
|
389
|
+
region="us-central1")
|
390
|
+
router = gcp.compute.Router("router",
|
391
|
+
name="my-router",
|
392
|
+
region=subnet.region,
|
393
|
+
network=net.id)
|
394
|
+
rp_export = gcp.compute.RouterRoutePolicy("rp-export",
|
395
|
+
router=router.name,
|
396
|
+
region=router.region,
|
397
|
+
name="my-rp1",
|
398
|
+
type="ROUTE_POLICY_TYPE_EXPORT",
|
399
|
+
terms=[{
|
400
|
+
"priority": 1,
|
401
|
+
"match": {
|
402
|
+
"expression": "destination == '10.0.0.0/12'",
|
403
|
+
},
|
404
|
+
"actions": [{
|
405
|
+
"expression": "accept()",
|
406
|
+
}],
|
407
|
+
}])
|
408
|
+
```
|
409
|
+
### Router Route Policy Import
|
410
|
+
|
411
|
+
```python
|
412
|
+
import pulumi
|
413
|
+
import pulumi_gcp as gcp
|
414
|
+
|
415
|
+
net = gcp.compute.Network("net",
|
416
|
+
name="my-network",
|
417
|
+
auto_create_subnetworks=False)
|
418
|
+
subnet = gcp.compute.Subnetwork("subnet",
|
419
|
+
name="my-subnetwork",
|
420
|
+
network=net.id,
|
421
|
+
ip_cidr_range="10.0.0.0/16",
|
422
|
+
region="us-central1")
|
423
|
+
router = gcp.compute.Router("router",
|
424
|
+
name="my-router",
|
425
|
+
region=subnet.region,
|
426
|
+
network=net.id)
|
427
|
+
rp_import = gcp.compute.RouterRoutePolicy("rp-import",
|
428
|
+
name="my-rp2",
|
429
|
+
router=router.name,
|
430
|
+
region=router.region,
|
431
|
+
type="ROUTE_POLICY_TYPE_IMPORT",
|
432
|
+
terms=[{
|
433
|
+
"priority": 2,
|
434
|
+
"match": {
|
435
|
+
"expression": "destination == '10.0.0.0/12'",
|
436
|
+
},
|
437
|
+
"actions": [{
|
438
|
+
"expression": "accept()",
|
439
|
+
}],
|
440
|
+
}])
|
441
|
+
```
|
442
|
+
|
443
|
+
## Import
|
444
|
+
|
445
|
+
RouterRoutePolicy can be imported using any of these accepted formats:
|
446
|
+
|
447
|
+
* `{{project}}/{{region}}/{{router}}/routePolicies/{{name}}`
|
448
|
+
|
449
|
+
* `{{project}}/{{region}}/{{router}}/{{name}}`
|
450
|
+
|
451
|
+
* `{{region}}/{{router}}/{{name}}`
|
452
|
+
|
453
|
+
* `{{router}}/{{name}}`
|
454
|
+
|
455
|
+
When using the `pulumi import` command, RouterRoutePolicy can be imported using one of the formats above. For example:
|
456
|
+
|
457
|
+
```sh
|
458
|
+
$ pulumi import gcp:compute/routerRoutePolicy:RouterRoutePolicy default {{project}}/{{region}}/{{router}}/routePolicies/{{name}}
|
459
|
+
```
|
460
|
+
|
461
|
+
```sh
|
462
|
+
$ pulumi import gcp:compute/routerRoutePolicy:RouterRoutePolicy default {{project}}/{{region}}/{{router}}/{{name}}
|
463
|
+
```
|
464
|
+
|
465
|
+
```sh
|
466
|
+
$ pulumi import gcp:compute/routerRoutePolicy:RouterRoutePolicy default {{region}}/{{router}}/{{name}}
|
467
|
+
```
|
468
|
+
|
469
|
+
```sh
|
470
|
+
$ pulumi import gcp:compute/routerRoutePolicy:RouterRoutePolicy default {{router}}/{{name}}
|
471
|
+
```
|
472
|
+
|
473
|
+
:param str resource_name: The name of the resource.
|
474
|
+
:param RouterRoutePolicyArgs args: The arguments to use to populate this resource's properties.
|
475
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
476
|
+
"""
|
477
|
+
...
|
478
|
+
def __init__(__self__, resource_name: str, *args, **kwargs):
|
479
|
+
resource_args, opts = _utilities.get_resource_args_opts(RouterRoutePolicyArgs, pulumi.ResourceOptions, *args, **kwargs)
|
480
|
+
if resource_args is not None:
|
481
|
+
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
482
|
+
else:
|
483
|
+
__self__._internal_init(resource_name, *args, **kwargs)
|
484
|
+
|
485
|
+
def _internal_init(__self__,
|
486
|
+
resource_name: str,
|
487
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
488
|
+
name: Optional[pulumi.Input[str]] = None,
|
489
|
+
project: Optional[pulumi.Input[str]] = None,
|
490
|
+
region: Optional[pulumi.Input[str]] = None,
|
491
|
+
router: Optional[pulumi.Input[str]] = None,
|
492
|
+
terms: Optional[pulumi.Input[Sequence[pulumi.Input[Union['RouterRoutePolicyTermArgs', 'RouterRoutePolicyTermArgsDict']]]]] = None,
|
493
|
+
type: Optional[pulumi.Input[str]] = None,
|
494
|
+
__props__=None):
|
495
|
+
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
496
|
+
if not isinstance(opts, pulumi.ResourceOptions):
|
497
|
+
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
498
|
+
if opts.id is None:
|
499
|
+
if __props__ is not None:
|
500
|
+
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
501
|
+
__props__ = RouterRoutePolicyArgs.__new__(RouterRoutePolicyArgs)
|
502
|
+
|
503
|
+
__props__.__dict__["name"] = name
|
504
|
+
__props__.__dict__["project"] = project
|
505
|
+
__props__.__dict__["region"] = region
|
506
|
+
if router is None and not opts.urn:
|
507
|
+
raise TypeError("Missing required property 'router'")
|
508
|
+
__props__.__dict__["router"] = router
|
509
|
+
if terms is None and not opts.urn:
|
510
|
+
raise TypeError("Missing required property 'terms'")
|
511
|
+
__props__.__dict__["terms"] = terms
|
512
|
+
__props__.__dict__["type"] = type
|
513
|
+
__props__.__dict__["fingerprint"] = None
|
514
|
+
super(RouterRoutePolicy, __self__).__init__(
|
515
|
+
'gcp:compute/routerRoutePolicy:RouterRoutePolicy',
|
516
|
+
resource_name,
|
517
|
+
__props__,
|
518
|
+
opts)
|
519
|
+
|
520
|
+
@staticmethod
|
521
|
+
def get(resource_name: str,
|
522
|
+
id: pulumi.Input[str],
|
523
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
524
|
+
fingerprint: Optional[pulumi.Input[str]] = None,
|
525
|
+
name: Optional[pulumi.Input[str]] = None,
|
526
|
+
project: Optional[pulumi.Input[str]] = None,
|
527
|
+
region: Optional[pulumi.Input[str]] = None,
|
528
|
+
router: Optional[pulumi.Input[str]] = None,
|
529
|
+
terms: Optional[pulumi.Input[Sequence[pulumi.Input[Union['RouterRoutePolicyTermArgs', 'RouterRoutePolicyTermArgsDict']]]]] = None,
|
530
|
+
type: Optional[pulumi.Input[str]] = None) -> 'RouterRoutePolicy':
|
531
|
+
"""
|
532
|
+
Get an existing RouterRoutePolicy resource's state with the given name, id, and optional extra
|
533
|
+
properties used to qualify the lookup.
|
534
|
+
|
535
|
+
:param str resource_name: The unique name of the resulting resource.
|
536
|
+
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
537
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
538
|
+
:param pulumi.Input[str] fingerprint: The fingerprint used for optimistic locking of this resource. Used
|
539
|
+
internally during updates.
|
540
|
+
:param pulumi.Input[str] name: Name of the route policy. This policy's name, which must be a resource ID segment and unique within all policies owned by the Router
|
541
|
+
:param pulumi.Input[str] region: Region where the router and NAT reside.
|
542
|
+
:param pulumi.Input[str] router: The name of the Cloud Router in which this route policy will be configured.
|
543
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['RouterRoutePolicyTermArgs', 'RouterRoutePolicyTermArgsDict']]]] terms: List of terms (the order in the list is not important, they are evaluated in order of priority).
|
544
|
+
Structure is documented below.
|
545
|
+
:param pulumi.Input[str] type: This is policy's type, which is one of IMPORT or EXPORT Possible values: ["ROUTE_POLICY_TYPE_IMPORT",
|
546
|
+
"ROUTE_POLICY_TYPE_EXPORT"]
|
547
|
+
"""
|
548
|
+
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
549
|
+
|
550
|
+
__props__ = _RouterRoutePolicyState.__new__(_RouterRoutePolicyState)
|
551
|
+
|
552
|
+
__props__.__dict__["fingerprint"] = fingerprint
|
553
|
+
__props__.__dict__["name"] = name
|
554
|
+
__props__.__dict__["project"] = project
|
555
|
+
__props__.__dict__["region"] = region
|
556
|
+
__props__.__dict__["router"] = router
|
557
|
+
__props__.__dict__["terms"] = terms
|
558
|
+
__props__.__dict__["type"] = type
|
559
|
+
return RouterRoutePolicy(resource_name, opts=opts, __props__=__props__)
|
560
|
+
|
561
|
+
@property
|
562
|
+
@pulumi.getter
|
563
|
+
def fingerprint(self) -> pulumi.Output[str]:
|
564
|
+
"""
|
565
|
+
The fingerprint used for optimistic locking of this resource. Used
|
566
|
+
internally during updates.
|
567
|
+
"""
|
568
|
+
return pulumi.get(self, "fingerprint")
|
569
|
+
|
570
|
+
@property
|
571
|
+
@pulumi.getter
|
572
|
+
def name(self) -> pulumi.Output[str]:
|
573
|
+
"""
|
574
|
+
Name of the route policy. This policy's name, which must be a resource ID segment and unique within all policies owned by the Router
|
575
|
+
"""
|
576
|
+
return pulumi.get(self, "name")
|
577
|
+
|
578
|
+
@property
|
579
|
+
@pulumi.getter
|
580
|
+
def project(self) -> pulumi.Output[str]:
|
581
|
+
return pulumi.get(self, "project")
|
582
|
+
|
583
|
+
@property
|
584
|
+
@pulumi.getter
|
585
|
+
def region(self) -> pulumi.Output[str]:
|
586
|
+
"""
|
587
|
+
Region where the router and NAT reside.
|
588
|
+
"""
|
589
|
+
return pulumi.get(self, "region")
|
590
|
+
|
591
|
+
@property
|
592
|
+
@pulumi.getter
|
593
|
+
def router(self) -> pulumi.Output[str]:
|
594
|
+
"""
|
595
|
+
The name of the Cloud Router in which this route policy will be configured.
|
596
|
+
"""
|
597
|
+
return pulumi.get(self, "router")
|
598
|
+
|
599
|
+
@property
|
600
|
+
@pulumi.getter
|
601
|
+
def terms(self) -> pulumi.Output[Sequence['outputs.RouterRoutePolicyTerm']]:
|
602
|
+
"""
|
603
|
+
List of terms (the order in the list is not important, they are evaluated in order of priority).
|
604
|
+
Structure is documented below.
|
605
|
+
"""
|
606
|
+
return pulumi.get(self, "terms")
|
607
|
+
|
608
|
+
@property
|
609
|
+
@pulumi.getter
|
610
|
+
def type(self) -> pulumi.Output[Optional[str]]:
|
611
|
+
"""
|
612
|
+
This is policy's type, which is one of IMPORT or EXPORT Possible values: ["ROUTE_POLICY_TYPE_IMPORT",
|
613
|
+
"ROUTE_POLICY_TYPE_EXPORT"]
|
614
|
+
"""
|
615
|
+
return pulumi.get(self, "type")
|
616
|
+
|
@@ -44,8 +44,7 @@ class ServiceAttachmentArgs:
|
|
44
44
|
|
45
45
|
- - -
|
46
46
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] nat_subnets: An array of subnets that is provided for NAT in this service attachment.
|
47
|
-
:param pulumi.Input[str] target_service: The URL of a
|
48
|
-
this service attachment.
|
47
|
+
:param pulumi.Input[str] target_service: The URL of a service serving the endpoint identified by this service attachment.
|
49
48
|
:param pulumi.Input[Sequence[pulumi.Input['ServiceAttachmentConsumerAcceptListArgs']]] consumer_accept_lists: An array of projects that are allowed to connect to this service
|
50
49
|
attachment.
|
51
50
|
Structure is documented below.
|
@@ -136,8 +135,7 @@ class ServiceAttachmentArgs:
|
|
136
135
|
@pulumi.getter(name="targetService")
|
137
136
|
def target_service(self) -> pulumi.Input[str]:
|
138
137
|
"""
|
139
|
-
The URL of a
|
140
|
-
this service attachment.
|
138
|
+
The URL of a service serving the endpoint identified by this service attachment.
|
141
139
|
"""
|
142
140
|
return pulumi.get(self, "target_service")
|
143
141
|
|
@@ -313,8 +311,7 @@ class _ServiceAttachmentState:
|
|
313
311
|
If true, update will affect both PENDING and ACCEPTED/REJECTED PSC endpoints. For example, an ACCEPTED PSC endpoint will be moved to REJECTED if its project is added to the reject list.
|
314
312
|
:param pulumi.Input[str] region: URL of the region where the resource resides.
|
315
313
|
:param pulumi.Input[str] self_link: The URI of the created resource.
|
316
|
-
:param pulumi.Input[str] target_service: The URL of a
|
317
|
-
this service attachment.
|
314
|
+
:param pulumi.Input[str] target_service: The URL of a service serving the endpoint identified by this service attachment.
|
318
315
|
"""
|
319
316
|
if connected_endpoints is not None:
|
320
317
|
pulumi.set(__self__, "connected_endpoints", connected_endpoints)
|
@@ -542,8 +539,7 @@ class _ServiceAttachmentState:
|
|
542
539
|
@pulumi.getter(name="targetService")
|
543
540
|
def target_service(self) -> Optional[pulumi.Input[str]]:
|
544
541
|
"""
|
545
|
-
The URL of a
|
546
|
-
this service attachment.
|
542
|
+
The URL of a service serving the endpoint identified by this service attachment.
|
547
543
|
"""
|
548
544
|
return pulumi.get(self, "target_service")
|
549
545
|
|
@@ -906,8 +902,7 @@ class ServiceAttachment(pulumi.CustomResource):
|
|
906
902
|
If false, connection policy update will only affect existing PENDING PSC endpoints. Existing ACCEPTED/REJECTED endpoints will remain untouched regardless how the connection policy is modified .
|
907
903
|
If true, update will affect both PENDING and ACCEPTED/REJECTED PSC endpoints. For example, an ACCEPTED PSC endpoint will be moved to REJECTED if its project is added to the reject list.
|
908
904
|
:param pulumi.Input[str] region: URL of the region where the resource resides.
|
909
|
-
:param pulumi.Input[str] target_service: The URL of a
|
910
|
-
this service attachment.
|
905
|
+
:param pulumi.Input[str] target_service: The URL of a service serving the endpoint identified by this service attachment.
|
911
906
|
"""
|
912
907
|
...
|
913
908
|
@overload
|
@@ -1346,8 +1341,7 @@ class ServiceAttachment(pulumi.CustomResource):
|
|
1346
1341
|
If true, update will affect both PENDING and ACCEPTED/REJECTED PSC endpoints. For example, an ACCEPTED PSC endpoint will be moved to REJECTED if its project is added to the reject list.
|
1347
1342
|
:param pulumi.Input[str] region: URL of the region where the resource resides.
|
1348
1343
|
:param pulumi.Input[str] self_link: The URI of the created resource.
|
1349
|
-
:param pulumi.Input[str] target_service: The URL of a
|
1350
|
-
this service attachment.
|
1344
|
+
:param pulumi.Input[str] target_service: The URL of a service serving the endpoint identified by this service attachment.
|
1351
1345
|
"""
|
1352
1346
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
1353
1347
|
|
@@ -1509,8 +1503,7 @@ class ServiceAttachment(pulumi.CustomResource):
|
|
1509
1503
|
@pulumi.getter(name="targetService")
|
1510
1504
|
def target_service(self) -> pulumi.Output[str]:
|
1511
1505
|
"""
|
1512
|
-
The URL of a
|
1513
|
-
this service attachment.
|
1506
|
+
The URL of a service serving the endpoint identified by this service attachment.
|
1514
1507
|
"""
|
1515
1508
|
return pulumi.get(self, "target_service")
|
1516
1509
|
|