pulumi-gcp 8.12.0__py3-none-any.whl → 8.12.0a1734416686__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.
Files changed (48) hide show
  1. pulumi_gcp/__init__.py +0 -32
  2. pulumi_gcp/accesscontextmanager/_inputs.py +29 -0
  3. pulumi_gcp/accesscontextmanager/outputs.py +18 -0
  4. pulumi_gcp/accesscontextmanager/service_perimeter.py +36 -0
  5. pulumi_gcp/artifactregistry/get_repository_iam_policy.py +4 -12
  6. pulumi_gcp/artifactregistry/repository.py +39 -86
  7. pulumi_gcp/artifactregistry/repository_iam_binding.py +14 -42
  8. pulumi_gcp/artifactregistry/repository_iam_member.py +14 -42
  9. pulumi_gcp/artifactregistry/repository_iam_policy.py +14 -42
  10. pulumi_gcp/compute/get_global_forwarding_rule.py +1 -12
  11. pulumi_gcp/compute/global_forwarding_rule.py +2 -114
  12. pulumi_gcp/compute/project_cloud_armor_tier.py +7 -7
  13. pulumi_gcp/firebase/_inputs.py +0 -99
  14. pulumi_gcp/firebase/database_instance.py +6 -24
  15. pulumi_gcp/firebase/hosting_version.py +0 -96
  16. pulumi_gcp/firebase/outputs.py +0 -59
  17. pulumi_gcp/firebase/project.py +6 -6
  18. pulumi_gcp/identityplatform/_inputs.py +6 -6
  19. pulumi_gcp/identityplatform/config.py +2 -2
  20. pulumi_gcp/identityplatform/outputs.py +4 -4
  21. pulumi_gcp/looker/instance.py +14 -35
  22. pulumi_gcp/networkconnectivity/_inputs.py +12 -10
  23. pulumi_gcp/networkconnectivity/outputs.py +8 -6
  24. pulumi_gcp/networksecurity/__init__.py +0 -3
  25. pulumi_gcp/networksecurity/_inputs.py +0 -1903
  26. pulumi_gcp/networksecurity/outputs.py +0 -1393
  27. pulumi_gcp/networkservices/__init__.py +0 -1
  28. pulumi_gcp/oracledatabase/autonomous_database.py +4 -4
  29. pulumi_gcp/orgpolicy/_inputs.py +0 -40
  30. pulumi_gcp/orgpolicy/outputs.py +0 -24
  31. pulumi_gcp/orgpolicy/policy.py +8 -64
  32. pulumi_gcp/pulumi-plugin.json +1 -1
  33. pulumi_gcp/sql/_inputs.py +3 -3
  34. pulumi_gcp/sql/database_instance.py +14 -14
  35. pulumi_gcp/sql/outputs.py +2 -2
  36. pulumi_gcp/storage/_inputs.py +6 -53
  37. pulumi_gcp/storage/outputs.py +4 -33
  38. pulumi_gcp/tpu/_inputs.py +18 -26
  39. pulumi_gcp/tpu/outputs.py +12 -18
  40. pulumi_gcp/tpu/v2_vm.py +0 -63
  41. {pulumi_gcp-8.12.0.dist-info → pulumi_gcp-8.12.0a1734416686.dist-info}/METADATA +1 -1
  42. {pulumi_gcp-8.12.0.dist-info → pulumi_gcp-8.12.0a1734416686.dist-info}/RECORD +44 -48
  43. pulumi_gcp/networksecurity/authz_policy.py +0 -1008
  44. pulumi_gcp/networksecurity/intercept_deployment.py +0 -846
  45. pulumi_gcp/networksecurity/intercept_deployment_group.py +0 -752
  46. pulumi_gcp/networkservices/authz_extension.py +0 -1080
  47. {pulumi_gcp-8.12.0.dist-info → pulumi_gcp-8.12.0a1734416686.dist-info}/WHEEL +0 -0
  48. {pulumi_gcp-8.12.0.dist-info → pulumi_gcp-8.12.0a1734416686.dist-info}/top_level.txt +0 -0
@@ -1,846 +0,0 @@
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
-
17
- __all__ = ['InterceptDeploymentArgs', 'InterceptDeployment']
18
-
19
- @pulumi.input_type
20
- class InterceptDeploymentArgs:
21
- def __init__(__self__, *,
22
- forwarding_rule: pulumi.Input[str],
23
- intercept_deployment_group: pulumi.Input[str],
24
- intercept_deployment_id: pulumi.Input[str],
25
- location: pulumi.Input[str],
26
- labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
27
- project: Optional[pulumi.Input[str]] = None):
28
- """
29
- The set of arguments for constructing a InterceptDeployment resource.
30
- :param pulumi.Input[str] forwarding_rule: Immutable. The regional load balancer which the intercepted traffic should be forwarded
31
- to. Format is:
32
- projects/{project}/regions/{region}/forwardingRules/{forwardingRule}
33
- :param pulumi.Input[str] intercept_deployment_group: Immutable. The Intercept Deployment Group that this resource is part of. Format is:
34
- `projects/{project}/locations/global/interceptDeploymentGroups/{interceptDeploymentGroup}`
35
- :param pulumi.Input[str] intercept_deployment_id: Id of the requesting object
36
- If auto-generating Id server-side, remove this field and
37
- intercept_deployment_id from the method_signature of Create RPC
38
-
39
-
40
- - - -
41
- :param pulumi.Input[str] location: Resource ID segment making up resource `name`. It identifies the resource within its parent collection as described in https://google.aip.dev/122. See documentation for resource type `networksecurity.googleapis.com/InterceptDeployment`.
42
- :param pulumi.Input[Mapping[str, pulumi.Input[str]]] labels: Optional. Labels as key value pairs
43
- **Note**: This field is non-authoritative, and will only manage the labels present in your configuration.
44
- Please refer to the field `effective_labels` for all of the labels present on the resource.
45
- :param pulumi.Input[str] project: The ID of the project in which the resource belongs.
46
- If it is not provided, the provider project is used.
47
- """
48
- pulumi.set(__self__, "forwarding_rule", forwarding_rule)
49
- pulumi.set(__self__, "intercept_deployment_group", intercept_deployment_group)
50
- pulumi.set(__self__, "intercept_deployment_id", intercept_deployment_id)
51
- pulumi.set(__self__, "location", location)
52
- if labels is not None:
53
- pulumi.set(__self__, "labels", labels)
54
- if project is not None:
55
- pulumi.set(__self__, "project", project)
56
-
57
- @property
58
- @pulumi.getter(name="forwardingRule")
59
- def forwarding_rule(self) -> pulumi.Input[str]:
60
- """
61
- Immutable. The regional load balancer which the intercepted traffic should be forwarded
62
- to. Format is:
63
- projects/{project}/regions/{region}/forwardingRules/{forwardingRule}
64
- """
65
- return pulumi.get(self, "forwarding_rule")
66
-
67
- @forwarding_rule.setter
68
- def forwarding_rule(self, value: pulumi.Input[str]):
69
- pulumi.set(self, "forwarding_rule", value)
70
-
71
- @property
72
- @pulumi.getter(name="interceptDeploymentGroup")
73
- def intercept_deployment_group(self) -> pulumi.Input[str]:
74
- """
75
- Immutable. The Intercept Deployment Group that this resource is part of. Format is:
76
- `projects/{project}/locations/global/interceptDeploymentGroups/{interceptDeploymentGroup}`
77
- """
78
- return pulumi.get(self, "intercept_deployment_group")
79
-
80
- @intercept_deployment_group.setter
81
- def intercept_deployment_group(self, value: pulumi.Input[str]):
82
- pulumi.set(self, "intercept_deployment_group", value)
83
-
84
- @property
85
- @pulumi.getter(name="interceptDeploymentId")
86
- def intercept_deployment_id(self) -> pulumi.Input[str]:
87
- """
88
- Id of the requesting object
89
- If auto-generating Id server-side, remove this field and
90
- intercept_deployment_id from the method_signature of Create RPC
91
-
92
-
93
- - - -
94
- """
95
- return pulumi.get(self, "intercept_deployment_id")
96
-
97
- @intercept_deployment_id.setter
98
- def intercept_deployment_id(self, value: pulumi.Input[str]):
99
- pulumi.set(self, "intercept_deployment_id", value)
100
-
101
- @property
102
- @pulumi.getter
103
- def location(self) -> pulumi.Input[str]:
104
- """
105
- Resource ID segment making up resource `name`. It identifies the resource within its parent collection as described in https://google.aip.dev/122. See documentation for resource type `networksecurity.googleapis.com/InterceptDeployment`.
106
- """
107
- return pulumi.get(self, "location")
108
-
109
- @location.setter
110
- def location(self, value: pulumi.Input[str]):
111
- pulumi.set(self, "location", value)
112
-
113
- @property
114
- @pulumi.getter
115
- def labels(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
116
- """
117
- Optional. Labels as key value pairs
118
- **Note**: This field is non-authoritative, and will only manage the labels present in your configuration.
119
- Please refer to the field `effective_labels` for all of the labels present on the resource.
120
- """
121
- return pulumi.get(self, "labels")
122
-
123
- @labels.setter
124
- def labels(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
125
- pulumi.set(self, "labels", value)
126
-
127
- @property
128
- @pulumi.getter
129
- def project(self) -> Optional[pulumi.Input[str]]:
130
- """
131
- The ID of the project in which the resource belongs.
132
- If it is not provided, the provider project is used.
133
- """
134
- return pulumi.get(self, "project")
135
-
136
- @project.setter
137
- def project(self, value: Optional[pulumi.Input[str]]):
138
- pulumi.set(self, "project", value)
139
-
140
-
141
- @pulumi.input_type
142
- class _InterceptDeploymentState:
143
- def __init__(__self__, *,
144
- create_time: Optional[pulumi.Input[str]] = None,
145
- effective_labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
146
- forwarding_rule: Optional[pulumi.Input[str]] = None,
147
- intercept_deployment_group: Optional[pulumi.Input[str]] = None,
148
- intercept_deployment_id: Optional[pulumi.Input[str]] = None,
149
- labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
150
- location: Optional[pulumi.Input[str]] = None,
151
- name: Optional[pulumi.Input[str]] = None,
152
- project: Optional[pulumi.Input[str]] = None,
153
- pulumi_labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
154
- reconciling: Optional[pulumi.Input[bool]] = None,
155
- state: Optional[pulumi.Input[str]] = None,
156
- update_time: Optional[pulumi.Input[str]] = None):
157
- """
158
- Input properties used for looking up and filtering InterceptDeployment resources.
159
- :param pulumi.Input[str] create_time: Create time stamp
160
- :param pulumi.Input[Mapping[str, pulumi.Input[str]]] effective_labels: All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
161
- :param pulumi.Input[str] forwarding_rule: Immutable. The regional load balancer which the intercepted traffic should be forwarded
162
- to. Format is:
163
- projects/{project}/regions/{region}/forwardingRules/{forwardingRule}
164
- :param pulumi.Input[str] intercept_deployment_group: Immutable. The Intercept Deployment Group that this resource is part of. Format is:
165
- `projects/{project}/locations/global/interceptDeploymentGroups/{interceptDeploymentGroup}`
166
- :param pulumi.Input[str] intercept_deployment_id: Id of the requesting object
167
- If auto-generating Id server-side, remove this field and
168
- intercept_deployment_id from the method_signature of Create RPC
169
-
170
-
171
- - - -
172
- :param pulumi.Input[Mapping[str, pulumi.Input[str]]] labels: Optional. Labels as key value pairs
173
- **Note**: This field is non-authoritative, and will only manage the labels present in your configuration.
174
- Please refer to the field `effective_labels` for all of the labels present on the resource.
175
- :param pulumi.Input[str] location: Resource ID segment making up resource `name`. It identifies the resource within its parent collection as described in https://google.aip.dev/122. See documentation for resource type `networksecurity.googleapis.com/InterceptDeployment`.
176
- :param pulumi.Input[str] name: Identifier. The name of the InterceptDeployment.
177
- :param pulumi.Input[str] project: The ID of the project in which the resource belongs.
178
- If it is not provided, the provider project is used.
179
- :param pulumi.Input[Mapping[str, pulumi.Input[str]]] pulumi_labels: The combination of labels configured directly on the resource
180
- and default labels configured on the provider.
181
- :param pulumi.Input[bool] reconciling: Whether reconciling is in progress, recommended per
182
- https://google.aip.dev/128.
183
- :param pulumi.Input[str] state: Current state of the deployment.
184
- Possible values:
185
- STATE_UNSPECIFIED
186
- ACTIVE
187
- CREATING
188
- DELETING
189
- OUT_OF_SYNC
190
- DELETE_FAILED
191
- :param pulumi.Input[str] update_time: Update time stamp
192
- """
193
- if create_time is not None:
194
- pulumi.set(__self__, "create_time", create_time)
195
- if effective_labels is not None:
196
- pulumi.set(__self__, "effective_labels", effective_labels)
197
- if forwarding_rule is not None:
198
- pulumi.set(__self__, "forwarding_rule", forwarding_rule)
199
- if intercept_deployment_group is not None:
200
- pulumi.set(__self__, "intercept_deployment_group", intercept_deployment_group)
201
- if intercept_deployment_id is not None:
202
- pulumi.set(__self__, "intercept_deployment_id", intercept_deployment_id)
203
- if labels is not None:
204
- pulumi.set(__self__, "labels", labels)
205
- if location is not None:
206
- pulumi.set(__self__, "location", location)
207
- if name is not None:
208
- pulumi.set(__self__, "name", name)
209
- if project is not None:
210
- pulumi.set(__self__, "project", project)
211
- if pulumi_labels is not None:
212
- pulumi.set(__self__, "pulumi_labels", pulumi_labels)
213
- if reconciling is not None:
214
- pulumi.set(__self__, "reconciling", reconciling)
215
- if state is not None:
216
- pulumi.set(__self__, "state", state)
217
- if update_time is not None:
218
- pulumi.set(__self__, "update_time", update_time)
219
-
220
- @property
221
- @pulumi.getter(name="createTime")
222
- def create_time(self) -> Optional[pulumi.Input[str]]:
223
- """
224
- Create time stamp
225
- """
226
- return pulumi.get(self, "create_time")
227
-
228
- @create_time.setter
229
- def create_time(self, value: Optional[pulumi.Input[str]]):
230
- pulumi.set(self, "create_time", value)
231
-
232
- @property
233
- @pulumi.getter(name="effectiveLabels")
234
- def effective_labels(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
235
- """
236
- All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
237
- """
238
- return pulumi.get(self, "effective_labels")
239
-
240
- @effective_labels.setter
241
- def effective_labels(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
242
- pulumi.set(self, "effective_labels", value)
243
-
244
- @property
245
- @pulumi.getter(name="forwardingRule")
246
- def forwarding_rule(self) -> Optional[pulumi.Input[str]]:
247
- """
248
- Immutable. The regional load balancer which the intercepted traffic should be forwarded
249
- to. Format is:
250
- projects/{project}/regions/{region}/forwardingRules/{forwardingRule}
251
- """
252
- return pulumi.get(self, "forwarding_rule")
253
-
254
- @forwarding_rule.setter
255
- def forwarding_rule(self, value: Optional[pulumi.Input[str]]):
256
- pulumi.set(self, "forwarding_rule", value)
257
-
258
- @property
259
- @pulumi.getter(name="interceptDeploymentGroup")
260
- def intercept_deployment_group(self) -> Optional[pulumi.Input[str]]:
261
- """
262
- Immutable. The Intercept Deployment Group that this resource is part of. Format is:
263
- `projects/{project}/locations/global/interceptDeploymentGroups/{interceptDeploymentGroup}`
264
- """
265
- return pulumi.get(self, "intercept_deployment_group")
266
-
267
- @intercept_deployment_group.setter
268
- def intercept_deployment_group(self, value: Optional[pulumi.Input[str]]):
269
- pulumi.set(self, "intercept_deployment_group", value)
270
-
271
- @property
272
- @pulumi.getter(name="interceptDeploymentId")
273
- def intercept_deployment_id(self) -> Optional[pulumi.Input[str]]:
274
- """
275
- Id of the requesting object
276
- If auto-generating Id server-side, remove this field and
277
- intercept_deployment_id from the method_signature of Create RPC
278
-
279
-
280
- - - -
281
- """
282
- return pulumi.get(self, "intercept_deployment_id")
283
-
284
- @intercept_deployment_id.setter
285
- def intercept_deployment_id(self, value: Optional[pulumi.Input[str]]):
286
- pulumi.set(self, "intercept_deployment_id", value)
287
-
288
- @property
289
- @pulumi.getter
290
- def labels(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
291
- """
292
- Optional. Labels as key value pairs
293
- **Note**: This field is non-authoritative, and will only manage the labels present in your configuration.
294
- Please refer to the field `effective_labels` for all of the labels present on the resource.
295
- """
296
- return pulumi.get(self, "labels")
297
-
298
- @labels.setter
299
- def labels(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
300
- pulumi.set(self, "labels", value)
301
-
302
- @property
303
- @pulumi.getter
304
- def location(self) -> Optional[pulumi.Input[str]]:
305
- """
306
- Resource ID segment making up resource `name`. It identifies the resource within its parent collection as described in https://google.aip.dev/122. See documentation for resource type `networksecurity.googleapis.com/InterceptDeployment`.
307
- """
308
- return pulumi.get(self, "location")
309
-
310
- @location.setter
311
- def location(self, value: Optional[pulumi.Input[str]]):
312
- pulumi.set(self, "location", value)
313
-
314
- @property
315
- @pulumi.getter
316
- def name(self) -> Optional[pulumi.Input[str]]:
317
- """
318
- Identifier. The name of the InterceptDeployment.
319
- """
320
- return pulumi.get(self, "name")
321
-
322
- @name.setter
323
- def name(self, value: Optional[pulumi.Input[str]]):
324
- pulumi.set(self, "name", value)
325
-
326
- @property
327
- @pulumi.getter
328
- def project(self) -> Optional[pulumi.Input[str]]:
329
- """
330
- The ID of the project in which the resource belongs.
331
- If it is not provided, the provider project is used.
332
- """
333
- return pulumi.get(self, "project")
334
-
335
- @project.setter
336
- def project(self, value: Optional[pulumi.Input[str]]):
337
- pulumi.set(self, "project", value)
338
-
339
- @property
340
- @pulumi.getter(name="pulumiLabels")
341
- def pulumi_labels(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
342
- """
343
- The combination of labels configured directly on the resource
344
- and default labels configured on the provider.
345
- """
346
- return pulumi.get(self, "pulumi_labels")
347
-
348
- @pulumi_labels.setter
349
- def pulumi_labels(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
350
- pulumi.set(self, "pulumi_labels", value)
351
-
352
- @property
353
- @pulumi.getter
354
- def reconciling(self) -> Optional[pulumi.Input[bool]]:
355
- """
356
- Whether reconciling is in progress, recommended per
357
- https://google.aip.dev/128.
358
- """
359
- return pulumi.get(self, "reconciling")
360
-
361
- @reconciling.setter
362
- def reconciling(self, value: Optional[pulumi.Input[bool]]):
363
- pulumi.set(self, "reconciling", value)
364
-
365
- @property
366
- @pulumi.getter
367
- def state(self) -> Optional[pulumi.Input[str]]:
368
- """
369
- Current state of the deployment.
370
- Possible values:
371
- STATE_UNSPECIFIED
372
- ACTIVE
373
- CREATING
374
- DELETING
375
- OUT_OF_SYNC
376
- DELETE_FAILED
377
- """
378
- return pulumi.get(self, "state")
379
-
380
- @state.setter
381
- def state(self, value: Optional[pulumi.Input[str]]):
382
- pulumi.set(self, "state", value)
383
-
384
- @property
385
- @pulumi.getter(name="updateTime")
386
- def update_time(self) -> Optional[pulumi.Input[str]]:
387
- """
388
- Update time stamp
389
- """
390
- return pulumi.get(self, "update_time")
391
-
392
- @update_time.setter
393
- def update_time(self, value: Optional[pulumi.Input[str]]):
394
- pulumi.set(self, "update_time", value)
395
-
396
-
397
- class InterceptDeployment(pulumi.CustomResource):
398
- @overload
399
- def __init__(__self__,
400
- resource_name: str,
401
- opts: Optional[pulumi.ResourceOptions] = None,
402
- forwarding_rule: Optional[pulumi.Input[str]] = None,
403
- intercept_deployment_group: Optional[pulumi.Input[str]] = None,
404
- intercept_deployment_id: Optional[pulumi.Input[str]] = None,
405
- labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
406
- location: Optional[pulumi.Input[str]] = None,
407
- project: Optional[pulumi.Input[str]] = None,
408
- __props__=None):
409
- """
410
- ## Example Usage
411
-
412
- ### Network Security Intercept Deployment Basic
413
-
414
- ```python
415
- import pulumi
416
- import pulumi_gcp as gcp
417
-
418
- network = gcp.compute.Network("network",
419
- name="example-network",
420
- auto_create_subnetworks=False)
421
- subnetwork = gcp.compute.Subnetwork("subnetwork",
422
- name="example-subnet",
423
- region="us-central1",
424
- ip_cidr_range="10.1.0.0/16",
425
- network=network.name)
426
- health_check = gcp.compute.RegionHealthCheck("health_check",
427
- name="example-hc",
428
- region="us-central1",
429
- http_health_check={
430
- "port": 80,
431
- })
432
- backend_service = gcp.compute.RegionBackendService("backend_service",
433
- name="example-bs",
434
- region="us-central1",
435
- health_checks=health_check.id,
436
- protocol="UDP",
437
- load_balancing_scheme="INTERNAL")
438
- forwarding_rule = gcp.compute.ForwardingRule("forwarding_rule",
439
- name="example-fwr",
440
- region="us-central1",
441
- network=network.name,
442
- subnetwork=subnetwork.name,
443
- backend_service=backend_service.id,
444
- load_balancing_scheme="INTERNAL",
445
- ports=["6081"],
446
- ip_protocol="UDP")
447
- deployment_group = gcp.networksecurity.InterceptDeploymentGroup("deployment_group",
448
- intercept_deployment_group_id="example-dg",
449
- location="global",
450
- network=network.id)
451
- default = gcp.networksecurity.InterceptDeployment("default",
452
- intercept_deployment_id="example-deployment",
453
- location="us-central1-a",
454
- forwarding_rule=forwarding_rule.id,
455
- intercept_deployment_group=deployment_group.id,
456
- labels={
457
- "foo": "bar",
458
- })
459
- ```
460
-
461
- ## Import
462
-
463
- InterceptDeployment can be imported using any of these accepted formats:
464
-
465
- * `projects/{{project}}/locations/{{location}}/interceptDeployments/{{intercept_deployment_id}}`
466
-
467
- * `{{project}}/{{location}}/{{intercept_deployment_id}}`
468
-
469
- * `{{location}}/{{intercept_deployment_id}}`
470
-
471
- When using the `pulumi import` command, InterceptDeployment can be imported using one of the formats above. For example:
472
-
473
- ```sh
474
- $ pulumi import gcp:networksecurity/interceptDeployment:InterceptDeployment default projects/{{project}}/locations/{{location}}/interceptDeployments/{{intercept_deployment_id}}
475
- ```
476
-
477
- ```sh
478
- $ pulumi import gcp:networksecurity/interceptDeployment:InterceptDeployment default {{project}}/{{location}}/{{intercept_deployment_id}}
479
- ```
480
-
481
- ```sh
482
- $ pulumi import gcp:networksecurity/interceptDeployment:InterceptDeployment default {{location}}/{{intercept_deployment_id}}
483
- ```
484
-
485
- :param str resource_name: The name of the resource.
486
- :param pulumi.ResourceOptions opts: Options for the resource.
487
- :param pulumi.Input[str] forwarding_rule: Immutable. The regional load balancer which the intercepted traffic should be forwarded
488
- to. Format is:
489
- projects/{project}/regions/{region}/forwardingRules/{forwardingRule}
490
- :param pulumi.Input[str] intercept_deployment_group: Immutable. The Intercept Deployment Group that this resource is part of. Format is:
491
- `projects/{project}/locations/global/interceptDeploymentGroups/{interceptDeploymentGroup}`
492
- :param pulumi.Input[str] intercept_deployment_id: Id of the requesting object
493
- If auto-generating Id server-side, remove this field and
494
- intercept_deployment_id from the method_signature of Create RPC
495
-
496
-
497
- - - -
498
- :param pulumi.Input[Mapping[str, pulumi.Input[str]]] labels: Optional. Labels as key value pairs
499
- **Note**: This field is non-authoritative, and will only manage the labels present in your configuration.
500
- Please refer to the field `effective_labels` for all of the labels present on the resource.
501
- :param pulumi.Input[str] location: Resource ID segment making up resource `name`. It identifies the resource within its parent collection as described in https://google.aip.dev/122. See documentation for resource type `networksecurity.googleapis.com/InterceptDeployment`.
502
- :param pulumi.Input[str] project: The ID of the project in which the resource belongs.
503
- If it is not provided, the provider project is used.
504
- """
505
- ...
506
- @overload
507
- def __init__(__self__,
508
- resource_name: str,
509
- args: InterceptDeploymentArgs,
510
- opts: Optional[pulumi.ResourceOptions] = None):
511
- """
512
- ## Example Usage
513
-
514
- ### Network Security Intercept Deployment Basic
515
-
516
- ```python
517
- import pulumi
518
- import pulumi_gcp as gcp
519
-
520
- network = gcp.compute.Network("network",
521
- name="example-network",
522
- auto_create_subnetworks=False)
523
- subnetwork = gcp.compute.Subnetwork("subnetwork",
524
- name="example-subnet",
525
- region="us-central1",
526
- ip_cidr_range="10.1.0.0/16",
527
- network=network.name)
528
- health_check = gcp.compute.RegionHealthCheck("health_check",
529
- name="example-hc",
530
- region="us-central1",
531
- http_health_check={
532
- "port": 80,
533
- })
534
- backend_service = gcp.compute.RegionBackendService("backend_service",
535
- name="example-bs",
536
- region="us-central1",
537
- health_checks=health_check.id,
538
- protocol="UDP",
539
- load_balancing_scheme="INTERNAL")
540
- forwarding_rule = gcp.compute.ForwardingRule("forwarding_rule",
541
- name="example-fwr",
542
- region="us-central1",
543
- network=network.name,
544
- subnetwork=subnetwork.name,
545
- backend_service=backend_service.id,
546
- load_balancing_scheme="INTERNAL",
547
- ports=["6081"],
548
- ip_protocol="UDP")
549
- deployment_group = gcp.networksecurity.InterceptDeploymentGroup("deployment_group",
550
- intercept_deployment_group_id="example-dg",
551
- location="global",
552
- network=network.id)
553
- default = gcp.networksecurity.InterceptDeployment("default",
554
- intercept_deployment_id="example-deployment",
555
- location="us-central1-a",
556
- forwarding_rule=forwarding_rule.id,
557
- intercept_deployment_group=deployment_group.id,
558
- labels={
559
- "foo": "bar",
560
- })
561
- ```
562
-
563
- ## Import
564
-
565
- InterceptDeployment can be imported using any of these accepted formats:
566
-
567
- * `projects/{{project}}/locations/{{location}}/interceptDeployments/{{intercept_deployment_id}}`
568
-
569
- * `{{project}}/{{location}}/{{intercept_deployment_id}}`
570
-
571
- * `{{location}}/{{intercept_deployment_id}}`
572
-
573
- When using the `pulumi import` command, InterceptDeployment can be imported using one of the formats above. For example:
574
-
575
- ```sh
576
- $ pulumi import gcp:networksecurity/interceptDeployment:InterceptDeployment default projects/{{project}}/locations/{{location}}/interceptDeployments/{{intercept_deployment_id}}
577
- ```
578
-
579
- ```sh
580
- $ pulumi import gcp:networksecurity/interceptDeployment:InterceptDeployment default {{project}}/{{location}}/{{intercept_deployment_id}}
581
- ```
582
-
583
- ```sh
584
- $ pulumi import gcp:networksecurity/interceptDeployment:InterceptDeployment default {{location}}/{{intercept_deployment_id}}
585
- ```
586
-
587
- :param str resource_name: The name of the resource.
588
- :param InterceptDeploymentArgs args: The arguments to use to populate this resource's properties.
589
- :param pulumi.ResourceOptions opts: Options for the resource.
590
- """
591
- ...
592
- def __init__(__self__, resource_name: str, *args, **kwargs):
593
- resource_args, opts = _utilities.get_resource_args_opts(InterceptDeploymentArgs, pulumi.ResourceOptions, *args, **kwargs)
594
- if resource_args is not None:
595
- __self__._internal_init(resource_name, opts, **resource_args.__dict__)
596
- else:
597
- __self__._internal_init(resource_name, *args, **kwargs)
598
-
599
- def _internal_init(__self__,
600
- resource_name: str,
601
- opts: Optional[pulumi.ResourceOptions] = None,
602
- forwarding_rule: Optional[pulumi.Input[str]] = None,
603
- intercept_deployment_group: Optional[pulumi.Input[str]] = None,
604
- intercept_deployment_id: Optional[pulumi.Input[str]] = None,
605
- labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
606
- location: Optional[pulumi.Input[str]] = None,
607
- project: Optional[pulumi.Input[str]] = None,
608
- __props__=None):
609
- opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
610
- if not isinstance(opts, pulumi.ResourceOptions):
611
- raise TypeError('Expected resource options to be a ResourceOptions instance')
612
- if opts.id is None:
613
- if __props__ is not None:
614
- raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
615
- __props__ = InterceptDeploymentArgs.__new__(InterceptDeploymentArgs)
616
-
617
- if forwarding_rule is None and not opts.urn:
618
- raise TypeError("Missing required property 'forwarding_rule'")
619
- __props__.__dict__["forwarding_rule"] = forwarding_rule
620
- if intercept_deployment_group is None and not opts.urn:
621
- raise TypeError("Missing required property 'intercept_deployment_group'")
622
- __props__.__dict__["intercept_deployment_group"] = intercept_deployment_group
623
- if intercept_deployment_id is None and not opts.urn:
624
- raise TypeError("Missing required property 'intercept_deployment_id'")
625
- __props__.__dict__["intercept_deployment_id"] = intercept_deployment_id
626
- __props__.__dict__["labels"] = labels
627
- if location is None and not opts.urn:
628
- raise TypeError("Missing required property 'location'")
629
- __props__.__dict__["location"] = location
630
- __props__.__dict__["project"] = project
631
- __props__.__dict__["create_time"] = None
632
- __props__.__dict__["effective_labels"] = None
633
- __props__.__dict__["name"] = None
634
- __props__.__dict__["pulumi_labels"] = None
635
- __props__.__dict__["reconciling"] = None
636
- __props__.__dict__["state"] = None
637
- __props__.__dict__["update_time"] = None
638
- secret_opts = pulumi.ResourceOptions(additional_secret_outputs=["effectiveLabels", "pulumiLabels"])
639
- opts = pulumi.ResourceOptions.merge(opts, secret_opts)
640
- super(InterceptDeployment, __self__).__init__(
641
- 'gcp:networksecurity/interceptDeployment:InterceptDeployment',
642
- resource_name,
643
- __props__,
644
- opts)
645
-
646
- @staticmethod
647
- def get(resource_name: str,
648
- id: pulumi.Input[str],
649
- opts: Optional[pulumi.ResourceOptions] = None,
650
- create_time: Optional[pulumi.Input[str]] = None,
651
- effective_labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
652
- forwarding_rule: Optional[pulumi.Input[str]] = None,
653
- intercept_deployment_group: Optional[pulumi.Input[str]] = None,
654
- intercept_deployment_id: Optional[pulumi.Input[str]] = None,
655
- labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
656
- location: Optional[pulumi.Input[str]] = None,
657
- name: Optional[pulumi.Input[str]] = None,
658
- project: Optional[pulumi.Input[str]] = None,
659
- pulumi_labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
660
- reconciling: Optional[pulumi.Input[bool]] = None,
661
- state: Optional[pulumi.Input[str]] = None,
662
- update_time: Optional[pulumi.Input[str]] = None) -> 'InterceptDeployment':
663
- """
664
- Get an existing InterceptDeployment resource's state with the given name, id, and optional extra
665
- properties used to qualify the lookup.
666
-
667
- :param str resource_name: The unique name of the resulting resource.
668
- :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
669
- :param pulumi.ResourceOptions opts: Options for the resource.
670
- :param pulumi.Input[str] create_time: Create time stamp
671
- :param pulumi.Input[Mapping[str, pulumi.Input[str]]] effective_labels: All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
672
- :param pulumi.Input[str] forwarding_rule: Immutable. The regional load balancer which the intercepted traffic should be forwarded
673
- to. Format is:
674
- projects/{project}/regions/{region}/forwardingRules/{forwardingRule}
675
- :param pulumi.Input[str] intercept_deployment_group: Immutable. The Intercept Deployment Group that this resource is part of. Format is:
676
- `projects/{project}/locations/global/interceptDeploymentGroups/{interceptDeploymentGroup}`
677
- :param pulumi.Input[str] intercept_deployment_id: Id of the requesting object
678
- If auto-generating Id server-side, remove this field and
679
- intercept_deployment_id from the method_signature of Create RPC
680
-
681
-
682
- - - -
683
- :param pulumi.Input[Mapping[str, pulumi.Input[str]]] labels: Optional. Labels as key value pairs
684
- **Note**: This field is non-authoritative, and will only manage the labels present in your configuration.
685
- Please refer to the field `effective_labels` for all of the labels present on the resource.
686
- :param pulumi.Input[str] location: Resource ID segment making up resource `name`. It identifies the resource within its parent collection as described in https://google.aip.dev/122. See documentation for resource type `networksecurity.googleapis.com/InterceptDeployment`.
687
- :param pulumi.Input[str] name: Identifier. The name of the InterceptDeployment.
688
- :param pulumi.Input[str] project: The ID of the project in which the resource belongs.
689
- If it is not provided, the provider project is used.
690
- :param pulumi.Input[Mapping[str, pulumi.Input[str]]] pulumi_labels: The combination of labels configured directly on the resource
691
- and default labels configured on the provider.
692
- :param pulumi.Input[bool] reconciling: Whether reconciling is in progress, recommended per
693
- https://google.aip.dev/128.
694
- :param pulumi.Input[str] state: Current state of the deployment.
695
- Possible values:
696
- STATE_UNSPECIFIED
697
- ACTIVE
698
- CREATING
699
- DELETING
700
- OUT_OF_SYNC
701
- DELETE_FAILED
702
- :param pulumi.Input[str] update_time: Update time stamp
703
- """
704
- opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
705
-
706
- __props__ = _InterceptDeploymentState.__new__(_InterceptDeploymentState)
707
-
708
- __props__.__dict__["create_time"] = create_time
709
- __props__.__dict__["effective_labels"] = effective_labels
710
- __props__.__dict__["forwarding_rule"] = forwarding_rule
711
- __props__.__dict__["intercept_deployment_group"] = intercept_deployment_group
712
- __props__.__dict__["intercept_deployment_id"] = intercept_deployment_id
713
- __props__.__dict__["labels"] = labels
714
- __props__.__dict__["location"] = location
715
- __props__.__dict__["name"] = name
716
- __props__.__dict__["project"] = project
717
- __props__.__dict__["pulumi_labels"] = pulumi_labels
718
- __props__.__dict__["reconciling"] = reconciling
719
- __props__.__dict__["state"] = state
720
- __props__.__dict__["update_time"] = update_time
721
- return InterceptDeployment(resource_name, opts=opts, __props__=__props__)
722
-
723
- @property
724
- @pulumi.getter(name="createTime")
725
- def create_time(self) -> pulumi.Output[str]:
726
- """
727
- Create time stamp
728
- """
729
- return pulumi.get(self, "create_time")
730
-
731
- @property
732
- @pulumi.getter(name="effectiveLabels")
733
- def effective_labels(self) -> pulumi.Output[Mapping[str, str]]:
734
- """
735
- All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
736
- """
737
- return pulumi.get(self, "effective_labels")
738
-
739
- @property
740
- @pulumi.getter(name="forwardingRule")
741
- def forwarding_rule(self) -> pulumi.Output[str]:
742
- """
743
- Immutable. The regional load balancer which the intercepted traffic should be forwarded
744
- to. Format is:
745
- projects/{project}/regions/{region}/forwardingRules/{forwardingRule}
746
- """
747
- return pulumi.get(self, "forwarding_rule")
748
-
749
- @property
750
- @pulumi.getter(name="interceptDeploymentGroup")
751
- def intercept_deployment_group(self) -> pulumi.Output[str]:
752
- """
753
- Immutable. The Intercept Deployment Group that this resource is part of. Format is:
754
- `projects/{project}/locations/global/interceptDeploymentGroups/{interceptDeploymentGroup}`
755
- """
756
- return pulumi.get(self, "intercept_deployment_group")
757
-
758
- @property
759
- @pulumi.getter(name="interceptDeploymentId")
760
- def intercept_deployment_id(self) -> pulumi.Output[str]:
761
- """
762
- Id of the requesting object
763
- If auto-generating Id server-side, remove this field and
764
- intercept_deployment_id from the method_signature of Create RPC
765
-
766
-
767
- - - -
768
- """
769
- return pulumi.get(self, "intercept_deployment_id")
770
-
771
- @property
772
- @pulumi.getter
773
- def labels(self) -> pulumi.Output[Optional[Mapping[str, str]]]:
774
- """
775
- Optional. Labels as key value pairs
776
- **Note**: This field is non-authoritative, and will only manage the labels present in your configuration.
777
- Please refer to the field `effective_labels` for all of the labels present on the resource.
778
- """
779
- return pulumi.get(self, "labels")
780
-
781
- @property
782
- @pulumi.getter
783
- def location(self) -> pulumi.Output[str]:
784
- """
785
- Resource ID segment making up resource `name`. It identifies the resource within its parent collection as described in https://google.aip.dev/122. See documentation for resource type `networksecurity.googleapis.com/InterceptDeployment`.
786
- """
787
- return pulumi.get(self, "location")
788
-
789
- @property
790
- @pulumi.getter
791
- def name(self) -> pulumi.Output[str]:
792
- """
793
- Identifier. The name of the InterceptDeployment.
794
- """
795
- return pulumi.get(self, "name")
796
-
797
- @property
798
- @pulumi.getter
799
- def project(self) -> pulumi.Output[str]:
800
- """
801
- The ID of the project in which the resource belongs.
802
- If it is not provided, the provider project is used.
803
- """
804
- return pulumi.get(self, "project")
805
-
806
- @property
807
- @pulumi.getter(name="pulumiLabels")
808
- def pulumi_labels(self) -> pulumi.Output[Mapping[str, str]]:
809
- """
810
- The combination of labels configured directly on the resource
811
- and default labels configured on the provider.
812
- """
813
- return pulumi.get(self, "pulumi_labels")
814
-
815
- @property
816
- @pulumi.getter
817
- def reconciling(self) -> pulumi.Output[bool]:
818
- """
819
- Whether reconciling is in progress, recommended per
820
- https://google.aip.dev/128.
821
- """
822
- return pulumi.get(self, "reconciling")
823
-
824
- @property
825
- @pulumi.getter
826
- def state(self) -> pulumi.Output[str]:
827
- """
828
- Current state of the deployment.
829
- Possible values:
830
- STATE_UNSPECIFIED
831
- ACTIVE
832
- CREATING
833
- DELETING
834
- OUT_OF_SYNC
835
- DELETE_FAILED
836
- """
837
- return pulumi.get(self, "state")
838
-
839
- @property
840
- @pulumi.getter(name="updateTime")
841
- def update_time(self) -> pulumi.Output[str]:
842
- """
843
- Update time stamp
844
- """
845
- return pulumi.get(self, "update_time")
846
-