pulumi-gcp 7.3.0a1702567892__py3-none-any.whl → 7.3.1__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- pulumi_gcp/__init__.py +129 -0
- pulumi_gcp/artifactregistry/_inputs.py +88 -0
- pulumi_gcp/artifactregistry/outputs.py +148 -0
- pulumi_gcp/artifactregistry/repository.py +116 -16
- pulumi_gcp/bigquery/_inputs.py +110 -0
- pulumi_gcp/bigquery/connection.py +123 -3
- pulumi_gcp/bigquery/outputs.py +145 -0
- pulumi_gcp/cloudbuild/_inputs.py +241 -1
- pulumi_gcp/cloudbuild/outputs.py +353 -2
- pulumi_gcp/cloudfunctionsv2/_inputs.py +6 -2
- pulumi_gcp/cloudfunctionsv2/outputs.py +6 -2
- pulumi_gcp/cloudidentity/_inputs.py +54 -5
- pulumi_gcp/cloudidentity/group_membership.py +0 -8
- pulumi_gcp/cloudidentity/outputs.py +99 -4
- pulumi_gcp/cloudrunv2/_inputs.py +8 -4
- pulumi_gcp/cloudrunv2/job.py +44 -0
- pulumi_gcp/cloudrunv2/outputs.py +8 -4
- pulumi_gcp/cloudrunv2/service.py +42 -0
- pulumi_gcp/cloudtasks/queue.py +0 -10
- pulumi_gcp/composer/_inputs.py +17 -4
- pulumi_gcp/composer/outputs.py +20 -4
- pulumi_gcp/compute/_inputs.py +46 -0
- pulumi_gcp/compute/get_global_forwarding_rule.py +11 -1
- pulumi_gcp/compute/global_forwarding_rule.py +69 -0
- pulumi_gcp/compute/outputs.py +75 -0
- pulumi_gcp/config/__init__.pyi +6 -0
- pulumi_gcp/config/vars.py +12 -0
- pulumi_gcp/container/_inputs.py +58 -0
- pulumi_gcp/container/node_pool.py +68 -14
- pulumi_gcp/container/outputs.py +68 -0
- pulumi_gcp/dataform/__init__.py +4 -0
- pulumi_gcp/dataform/_inputs.py +80 -0
- pulumi_gcp/dataform/get_repository_iam_policy.py +144 -0
- pulumi_gcp/dataform/outputs.py +56 -0
- pulumi_gcp/dataform/repository_iam_binding.py +325 -0
- pulumi_gcp/dataform/repository_iam_member.py +325 -0
- pulumi_gcp/dataform/repository_iam_policy.py +254 -0
- pulumi_gcp/dataloss/_inputs.py +29 -26
- pulumi_gcp/dataloss/outputs.py +28 -25
- pulumi_gcp/dataloss/prevention_job_trigger.py +78 -0
- pulumi_gcp/datastream/connection_profile.py +82 -4
- pulumi_gcp/datastream/stream.py +32 -22
- pulumi_gcp/firestore/database.py +146 -28
- pulumi_gcp/gkehub/_inputs.py +821 -3
- pulumi_gcp/gkehub/feature.py +176 -0
- pulumi_gcp/gkehub/feature_membership.py +105 -59
- pulumi_gcp/gkehub/fleet.py +70 -2
- pulumi_gcp/gkehub/outputs.py +819 -3
- pulumi_gcp/gkehub/scope.py +2 -2
- pulumi_gcp/iam/_inputs.py +72 -0
- pulumi_gcp/iam/outputs.py +79 -0
- pulumi_gcp/iam/workforce_pool.py +75 -0
- pulumi_gcp/identityplatform/project_default_config.py +4 -0
- pulumi_gcp/logging/__init__.py +3 -0
- pulumi_gcp/logging/get_folder_settings.py +197 -0
- pulumi_gcp/logging/get_organization_settings.py +197 -0
- pulumi_gcp/logging/get_project_settings.py +197 -0
- pulumi_gcp/migrationcenter/__init__.py +8 -0
- pulumi_gcp/migrationcenter/group.py +652 -0
- pulumi_gcp/netapp/__init__.py +8 -0
- pulumi_gcp/netapp/storage_pool.py +970 -0
- pulumi_gcp/projects/iam_custom_role.py +7 -7
- pulumi_gcp/provider.py +60 -0
- pulumi_gcp/securesourcemanager/__init__.py +14 -0
- pulumi_gcp/securesourcemanager/_inputs.py +94 -0
- pulumi_gcp/securesourcemanager/get_instance_iam_policy.py +168 -0
- pulumi_gcp/securesourcemanager/instance.py +607 -0
- pulumi_gcp/securesourcemanager/instance_iam_binding.py +325 -0
- pulumi_gcp/securesourcemanager/instance_iam_member.py +325 -0
- pulumi_gcp/securesourcemanager/instance_iam_policy.py +254 -0
- pulumi_gcp/securesourcemanager/outputs.py +70 -0
- pulumi_gcp/securitycenter/__init__.py +1 -0
- pulumi_gcp/securitycenter/event_threat_detection_custom_module.py +528 -0
- pulumi_gcp/sql/_inputs.py +2 -2
- pulumi_gcp/sql/database_instance.py +4 -4
- pulumi_gcp/sql/outputs.py +2 -2
- pulumi_gcp/storage/_inputs.py +16 -0
- pulumi_gcp/storage/outputs.py +21 -0
- pulumi_gcp/vertex/__init__.py +4 -0
- pulumi_gcp/vertex/_inputs.py +80 -0
- pulumi_gcp/vertex/ai_endpoint_iam_binding.py +325 -0
- pulumi_gcp/vertex/ai_endpoint_iam_member.py +325 -0
- pulumi_gcp/vertex/ai_endpoint_iam_policy.py +254 -0
- pulumi_gcp/vertex/get_ai_endpoint_iam_policy.py +140 -0
- pulumi_gcp/vertex/outputs.py +56 -0
- pulumi_gcp/vmwareengine/__init__.py +5 -0
- pulumi_gcp/vmwareengine/_inputs.py +104 -2
- pulumi_gcp/vmwareengine/get_network.py +14 -4
- pulumi_gcp/vmwareengine/get_network_peering.py +260 -0
- pulumi_gcp/vmwareengine/get_network_policy.py +228 -0
- pulumi_gcp/vmwareengine/get_nsx_credentials.py +133 -0
- pulumi_gcp/vmwareengine/get_private_cloud.py +14 -4
- pulumi_gcp/vmwareengine/network.py +41 -7
- pulumi_gcp/vmwareengine/network_peering.py +959 -0
- pulumi_gcp/vmwareengine/network_policy.py +836 -0
- pulumi_gcp/vmwareengine/outputs.py +133 -2
- pulumi_gcp/vmwareengine/private_cloud.py +20 -68
- {pulumi_gcp-7.3.0a1702567892.dist-info → pulumi_gcp-7.3.1.dist-info}/METADATA +1 -1
- {pulumi_gcp-7.3.0a1702567892.dist-info → pulumi_gcp-7.3.1.dist-info}/RECORD +101 -72
- {pulumi_gcp-7.3.0a1702567892.dist-info → pulumi_gcp-7.3.1.dist-info}/WHEEL +0 -0
- {pulumi_gcp-7.3.0a1702567892.dist-info → pulumi_gcp-7.3.1.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,836 @@
|
|
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 pulumi
|
8
|
+
import pulumi.runtime
|
9
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
10
|
+
from .. import _utilities
|
11
|
+
from . import outputs
|
12
|
+
from ._inputs import *
|
13
|
+
|
14
|
+
__all__ = ['NetworkPolicyArgs', 'NetworkPolicy']
|
15
|
+
|
16
|
+
@pulumi.input_type
|
17
|
+
class NetworkPolicyArgs:
|
18
|
+
def __init__(__self__, *,
|
19
|
+
edge_services_cidr: pulumi.Input[str],
|
20
|
+
location: pulumi.Input[str],
|
21
|
+
vmware_engine_network: pulumi.Input[str],
|
22
|
+
description: Optional[pulumi.Input[str]] = None,
|
23
|
+
external_ip: Optional[pulumi.Input['NetworkPolicyExternalIpArgs']] = None,
|
24
|
+
internet_access: Optional[pulumi.Input['NetworkPolicyInternetAccessArgs']] = None,
|
25
|
+
name: Optional[pulumi.Input[str]] = None,
|
26
|
+
project: Optional[pulumi.Input[str]] = None):
|
27
|
+
"""
|
28
|
+
The set of arguments for constructing a NetworkPolicy resource.
|
29
|
+
:param pulumi.Input[str] edge_services_cidr: IP address range in CIDR notation used to create internet access and external IP access.
|
30
|
+
An RFC 1918 CIDR block, with a "/26" prefix, is required. The range cannot overlap with any
|
31
|
+
prefixes either in the consumer VPC network or in use by the private clouds attached to that VPC network.
|
32
|
+
:param pulumi.Input[str] location: The resource name of the location (region) to create the new network policy in.
|
33
|
+
Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names.
|
34
|
+
For example: projects/my-project/locations/us-central1
|
35
|
+
:param pulumi.Input[str] vmware_engine_network: The relative resource name of the VMware Engine network. Specify the name in the following form:
|
36
|
+
projects/{project}/locations/{location}/vmwareEngineNetworks/{vmwareEngineNetworkId} where {project}
|
37
|
+
can either be a project number or a project ID.
|
38
|
+
:param pulumi.Input[str] description: User-provided description for this network policy.
|
39
|
+
:param pulumi.Input['NetworkPolicyExternalIpArgs'] external_ip: Network service that allows External IP addresses to be assigned to VMware workloads.
|
40
|
+
This service can only be enabled when internetAccess is also enabled.
|
41
|
+
Structure is documented below.
|
42
|
+
:param pulumi.Input['NetworkPolicyInternetAccessArgs'] internet_access: Network service that allows VMware workloads to access the internet.
|
43
|
+
Structure is documented below.
|
44
|
+
:param pulumi.Input[str] name: The ID of the Network Policy.
|
45
|
+
|
46
|
+
|
47
|
+
- - -
|
48
|
+
:param pulumi.Input[str] project: The ID of the project in which the resource belongs.
|
49
|
+
If it is not provided, the provider project is used.
|
50
|
+
"""
|
51
|
+
pulumi.set(__self__, "edge_services_cidr", edge_services_cidr)
|
52
|
+
pulumi.set(__self__, "location", location)
|
53
|
+
pulumi.set(__self__, "vmware_engine_network", vmware_engine_network)
|
54
|
+
if description is not None:
|
55
|
+
pulumi.set(__self__, "description", description)
|
56
|
+
if external_ip is not None:
|
57
|
+
pulumi.set(__self__, "external_ip", external_ip)
|
58
|
+
if internet_access is not None:
|
59
|
+
pulumi.set(__self__, "internet_access", internet_access)
|
60
|
+
if name is not None:
|
61
|
+
pulumi.set(__self__, "name", name)
|
62
|
+
if project is not None:
|
63
|
+
pulumi.set(__self__, "project", project)
|
64
|
+
|
65
|
+
@property
|
66
|
+
@pulumi.getter(name="edgeServicesCidr")
|
67
|
+
def edge_services_cidr(self) -> pulumi.Input[str]:
|
68
|
+
"""
|
69
|
+
IP address range in CIDR notation used to create internet access and external IP access.
|
70
|
+
An RFC 1918 CIDR block, with a "/26" prefix, is required. The range cannot overlap with any
|
71
|
+
prefixes either in the consumer VPC network or in use by the private clouds attached to that VPC network.
|
72
|
+
"""
|
73
|
+
return pulumi.get(self, "edge_services_cidr")
|
74
|
+
|
75
|
+
@edge_services_cidr.setter
|
76
|
+
def edge_services_cidr(self, value: pulumi.Input[str]):
|
77
|
+
pulumi.set(self, "edge_services_cidr", value)
|
78
|
+
|
79
|
+
@property
|
80
|
+
@pulumi.getter
|
81
|
+
def location(self) -> pulumi.Input[str]:
|
82
|
+
"""
|
83
|
+
The resource name of the location (region) to create the new network policy in.
|
84
|
+
Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names.
|
85
|
+
For example: projects/my-project/locations/us-central1
|
86
|
+
"""
|
87
|
+
return pulumi.get(self, "location")
|
88
|
+
|
89
|
+
@location.setter
|
90
|
+
def location(self, value: pulumi.Input[str]):
|
91
|
+
pulumi.set(self, "location", value)
|
92
|
+
|
93
|
+
@property
|
94
|
+
@pulumi.getter(name="vmwareEngineNetwork")
|
95
|
+
def vmware_engine_network(self) -> pulumi.Input[str]:
|
96
|
+
"""
|
97
|
+
The relative resource name of the VMware Engine network. Specify the name in the following form:
|
98
|
+
projects/{project}/locations/{location}/vmwareEngineNetworks/{vmwareEngineNetworkId} where {project}
|
99
|
+
can either be a project number or a project ID.
|
100
|
+
"""
|
101
|
+
return pulumi.get(self, "vmware_engine_network")
|
102
|
+
|
103
|
+
@vmware_engine_network.setter
|
104
|
+
def vmware_engine_network(self, value: pulumi.Input[str]):
|
105
|
+
pulumi.set(self, "vmware_engine_network", value)
|
106
|
+
|
107
|
+
@property
|
108
|
+
@pulumi.getter
|
109
|
+
def description(self) -> Optional[pulumi.Input[str]]:
|
110
|
+
"""
|
111
|
+
User-provided description for this network policy.
|
112
|
+
"""
|
113
|
+
return pulumi.get(self, "description")
|
114
|
+
|
115
|
+
@description.setter
|
116
|
+
def description(self, value: Optional[pulumi.Input[str]]):
|
117
|
+
pulumi.set(self, "description", value)
|
118
|
+
|
119
|
+
@property
|
120
|
+
@pulumi.getter(name="externalIp")
|
121
|
+
def external_ip(self) -> Optional[pulumi.Input['NetworkPolicyExternalIpArgs']]:
|
122
|
+
"""
|
123
|
+
Network service that allows External IP addresses to be assigned to VMware workloads.
|
124
|
+
This service can only be enabled when internetAccess is also enabled.
|
125
|
+
Structure is documented below.
|
126
|
+
"""
|
127
|
+
return pulumi.get(self, "external_ip")
|
128
|
+
|
129
|
+
@external_ip.setter
|
130
|
+
def external_ip(self, value: Optional[pulumi.Input['NetworkPolicyExternalIpArgs']]):
|
131
|
+
pulumi.set(self, "external_ip", value)
|
132
|
+
|
133
|
+
@property
|
134
|
+
@pulumi.getter(name="internetAccess")
|
135
|
+
def internet_access(self) -> Optional[pulumi.Input['NetworkPolicyInternetAccessArgs']]:
|
136
|
+
"""
|
137
|
+
Network service that allows VMware workloads to access the internet.
|
138
|
+
Structure is documented below.
|
139
|
+
"""
|
140
|
+
return pulumi.get(self, "internet_access")
|
141
|
+
|
142
|
+
@internet_access.setter
|
143
|
+
def internet_access(self, value: Optional[pulumi.Input['NetworkPolicyInternetAccessArgs']]):
|
144
|
+
pulumi.set(self, "internet_access", value)
|
145
|
+
|
146
|
+
@property
|
147
|
+
@pulumi.getter
|
148
|
+
def name(self) -> Optional[pulumi.Input[str]]:
|
149
|
+
"""
|
150
|
+
The ID of the Network Policy.
|
151
|
+
|
152
|
+
|
153
|
+
- - -
|
154
|
+
"""
|
155
|
+
return pulumi.get(self, "name")
|
156
|
+
|
157
|
+
@name.setter
|
158
|
+
def name(self, value: Optional[pulumi.Input[str]]):
|
159
|
+
pulumi.set(self, "name", value)
|
160
|
+
|
161
|
+
@property
|
162
|
+
@pulumi.getter
|
163
|
+
def project(self) -> Optional[pulumi.Input[str]]:
|
164
|
+
"""
|
165
|
+
The ID of the project in which the resource belongs.
|
166
|
+
If it is not provided, the provider project is used.
|
167
|
+
"""
|
168
|
+
return pulumi.get(self, "project")
|
169
|
+
|
170
|
+
@project.setter
|
171
|
+
def project(self, value: Optional[pulumi.Input[str]]):
|
172
|
+
pulumi.set(self, "project", value)
|
173
|
+
|
174
|
+
|
175
|
+
@pulumi.input_type
|
176
|
+
class _NetworkPolicyState:
|
177
|
+
def __init__(__self__, *,
|
178
|
+
create_time: Optional[pulumi.Input[str]] = None,
|
179
|
+
description: Optional[pulumi.Input[str]] = None,
|
180
|
+
edge_services_cidr: Optional[pulumi.Input[str]] = None,
|
181
|
+
external_ip: Optional[pulumi.Input['NetworkPolicyExternalIpArgs']] = None,
|
182
|
+
internet_access: Optional[pulumi.Input['NetworkPolicyInternetAccessArgs']] = None,
|
183
|
+
location: Optional[pulumi.Input[str]] = None,
|
184
|
+
name: Optional[pulumi.Input[str]] = None,
|
185
|
+
project: Optional[pulumi.Input[str]] = None,
|
186
|
+
uid: Optional[pulumi.Input[str]] = None,
|
187
|
+
update_time: Optional[pulumi.Input[str]] = None,
|
188
|
+
vmware_engine_network: Optional[pulumi.Input[str]] = None,
|
189
|
+
vmware_engine_network_canonical: Optional[pulumi.Input[str]] = None):
|
190
|
+
"""
|
191
|
+
Input properties used for looking up and filtering NetworkPolicy resources.
|
192
|
+
:param pulumi.Input[str] create_time: Creation time of this resource.
|
193
|
+
A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and
|
194
|
+
up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
|
195
|
+
:param pulumi.Input[str] description: User-provided description for this network policy.
|
196
|
+
:param pulumi.Input[str] edge_services_cidr: IP address range in CIDR notation used to create internet access and external IP access.
|
197
|
+
An RFC 1918 CIDR block, with a "/26" prefix, is required. The range cannot overlap with any
|
198
|
+
prefixes either in the consumer VPC network or in use by the private clouds attached to that VPC network.
|
199
|
+
:param pulumi.Input['NetworkPolicyExternalIpArgs'] external_ip: Network service that allows External IP addresses to be assigned to VMware workloads.
|
200
|
+
This service can only be enabled when internetAccess is also enabled.
|
201
|
+
Structure is documented below.
|
202
|
+
:param pulumi.Input['NetworkPolicyInternetAccessArgs'] internet_access: Network service that allows VMware workloads to access the internet.
|
203
|
+
Structure is documented below.
|
204
|
+
:param pulumi.Input[str] location: The resource name of the location (region) to create the new network policy in.
|
205
|
+
Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names.
|
206
|
+
For example: projects/my-project/locations/us-central1
|
207
|
+
:param pulumi.Input[str] name: The ID of the Network Policy.
|
208
|
+
|
209
|
+
|
210
|
+
- - -
|
211
|
+
:param pulumi.Input[str] project: The ID of the project in which the resource belongs.
|
212
|
+
If it is not provided, the provider project is used.
|
213
|
+
:param pulumi.Input[str] uid: System-generated unique identifier for the resource.
|
214
|
+
:param pulumi.Input[str] update_time: Last updated time of this resource.
|
215
|
+
A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine
|
216
|
+
fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
|
217
|
+
:param pulumi.Input[str] vmware_engine_network: The relative resource name of the VMware Engine network. Specify the name in the following form:
|
218
|
+
projects/{project}/locations/{location}/vmwareEngineNetworks/{vmwareEngineNetworkId} where {project}
|
219
|
+
can either be a project number or a project ID.
|
220
|
+
:param pulumi.Input[str] vmware_engine_network_canonical: The canonical name of the VMware Engine network in the form:
|
221
|
+
projects/{project_number}/locations/{location}/vmwareEngineNetworks/{vmwareEngineNetworkId}
|
222
|
+
"""
|
223
|
+
if create_time is not None:
|
224
|
+
pulumi.set(__self__, "create_time", create_time)
|
225
|
+
if description is not None:
|
226
|
+
pulumi.set(__self__, "description", description)
|
227
|
+
if edge_services_cidr is not None:
|
228
|
+
pulumi.set(__self__, "edge_services_cidr", edge_services_cidr)
|
229
|
+
if external_ip is not None:
|
230
|
+
pulumi.set(__self__, "external_ip", external_ip)
|
231
|
+
if internet_access is not None:
|
232
|
+
pulumi.set(__self__, "internet_access", internet_access)
|
233
|
+
if location is not None:
|
234
|
+
pulumi.set(__self__, "location", location)
|
235
|
+
if name is not None:
|
236
|
+
pulumi.set(__self__, "name", name)
|
237
|
+
if project is not None:
|
238
|
+
pulumi.set(__self__, "project", project)
|
239
|
+
if uid is not None:
|
240
|
+
pulumi.set(__self__, "uid", uid)
|
241
|
+
if update_time is not None:
|
242
|
+
pulumi.set(__self__, "update_time", update_time)
|
243
|
+
if vmware_engine_network is not None:
|
244
|
+
pulumi.set(__self__, "vmware_engine_network", vmware_engine_network)
|
245
|
+
if vmware_engine_network_canonical is not None:
|
246
|
+
pulumi.set(__self__, "vmware_engine_network_canonical", vmware_engine_network_canonical)
|
247
|
+
|
248
|
+
@property
|
249
|
+
@pulumi.getter(name="createTime")
|
250
|
+
def create_time(self) -> Optional[pulumi.Input[str]]:
|
251
|
+
"""
|
252
|
+
Creation time of this resource.
|
253
|
+
A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and
|
254
|
+
up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
|
255
|
+
"""
|
256
|
+
return pulumi.get(self, "create_time")
|
257
|
+
|
258
|
+
@create_time.setter
|
259
|
+
def create_time(self, value: Optional[pulumi.Input[str]]):
|
260
|
+
pulumi.set(self, "create_time", value)
|
261
|
+
|
262
|
+
@property
|
263
|
+
@pulumi.getter
|
264
|
+
def description(self) -> Optional[pulumi.Input[str]]:
|
265
|
+
"""
|
266
|
+
User-provided description for this network policy.
|
267
|
+
"""
|
268
|
+
return pulumi.get(self, "description")
|
269
|
+
|
270
|
+
@description.setter
|
271
|
+
def description(self, value: Optional[pulumi.Input[str]]):
|
272
|
+
pulumi.set(self, "description", value)
|
273
|
+
|
274
|
+
@property
|
275
|
+
@pulumi.getter(name="edgeServicesCidr")
|
276
|
+
def edge_services_cidr(self) -> Optional[pulumi.Input[str]]:
|
277
|
+
"""
|
278
|
+
IP address range in CIDR notation used to create internet access and external IP access.
|
279
|
+
An RFC 1918 CIDR block, with a "/26" prefix, is required. The range cannot overlap with any
|
280
|
+
prefixes either in the consumer VPC network or in use by the private clouds attached to that VPC network.
|
281
|
+
"""
|
282
|
+
return pulumi.get(self, "edge_services_cidr")
|
283
|
+
|
284
|
+
@edge_services_cidr.setter
|
285
|
+
def edge_services_cidr(self, value: Optional[pulumi.Input[str]]):
|
286
|
+
pulumi.set(self, "edge_services_cidr", value)
|
287
|
+
|
288
|
+
@property
|
289
|
+
@pulumi.getter(name="externalIp")
|
290
|
+
def external_ip(self) -> Optional[pulumi.Input['NetworkPolicyExternalIpArgs']]:
|
291
|
+
"""
|
292
|
+
Network service that allows External IP addresses to be assigned to VMware workloads.
|
293
|
+
This service can only be enabled when internetAccess is also enabled.
|
294
|
+
Structure is documented below.
|
295
|
+
"""
|
296
|
+
return pulumi.get(self, "external_ip")
|
297
|
+
|
298
|
+
@external_ip.setter
|
299
|
+
def external_ip(self, value: Optional[pulumi.Input['NetworkPolicyExternalIpArgs']]):
|
300
|
+
pulumi.set(self, "external_ip", value)
|
301
|
+
|
302
|
+
@property
|
303
|
+
@pulumi.getter(name="internetAccess")
|
304
|
+
def internet_access(self) -> Optional[pulumi.Input['NetworkPolicyInternetAccessArgs']]:
|
305
|
+
"""
|
306
|
+
Network service that allows VMware workloads to access the internet.
|
307
|
+
Structure is documented below.
|
308
|
+
"""
|
309
|
+
return pulumi.get(self, "internet_access")
|
310
|
+
|
311
|
+
@internet_access.setter
|
312
|
+
def internet_access(self, value: Optional[pulumi.Input['NetworkPolicyInternetAccessArgs']]):
|
313
|
+
pulumi.set(self, "internet_access", value)
|
314
|
+
|
315
|
+
@property
|
316
|
+
@pulumi.getter
|
317
|
+
def location(self) -> Optional[pulumi.Input[str]]:
|
318
|
+
"""
|
319
|
+
The resource name of the location (region) to create the new network policy in.
|
320
|
+
Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names.
|
321
|
+
For example: projects/my-project/locations/us-central1
|
322
|
+
"""
|
323
|
+
return pulumi.get(self, "location")
|
324
|
+
|
325
|
+
@location.setter
|
326
|
+
def location(self, value: Optional[pulumi.Input[str]]):
|
327
|
+
pulumi.set(self, "location", value)
|
328
|
+
|
329
|
+
@property
|
330
|
+
@pulumi.getter
|
331
|
+
def name(self) -> Optional[pulumi.Input[str]]:
|
332
|
+
"""
|
333
|
+
The ID of the Network Policy.
|
334
|
+
|
335
|
+
|
336
|
+
- - -
|
337
|
+
"""
|
338
|
+
return pulumi.get(self, "name")
|
339
|
+
|
340
|
+
@name.setter
|
341
|
+
def name(self, value: Optional[pulumi.Input[str]]):
|
342
|
+
pulumi.set(self, "name", value)
|
343
|
+
|
344
|
+
@property
|
345
|
+
@pulumi.getter
|
346
|
+
def project(self) -> Optional[pulumi.Input[str]]:
|
347
|
+
"""
|
348
|
+
The ID of the project in which the resource belongs.
|
349
|
+
If it is not provided, the provider project is used.
|
350
|
+
"""
|
351
|
+
return pulumi.get(self, "project")
|
352
|
+
|
353
|
+
@project.setter
|
354
|
+
def project(self, value: Optional[pulumi.Input[str]]):
|
355
|
+
pulumi.set(self, "project", value)
|
356
|
+
|
357
|
+
@property
|
358
|
+
@pulumi.getter
|
359
|
+
def uid(self) -> Optional[pulumi.Input[str]]:
|
360
|
+
"""
|
361
|
+
System-generated unique identifier for the resource.
|
362
|
+
"""
|
363
|
+
return pulumi.get(self, "uid")
|
364
|
+
|
365
|
+
@uid.setter
|
366
|
+
def uid(self, value: Optional[pulumi.Input[str]]):
|
367
|
+
pulumi.set(self, "uid", value)
|
368
|
+
|
369
|
+
@property
|
370
|
+
@pulumi.getter(name="updateTime")
|
371
|
+
def update_time(self) -> Optional[pulumi.Input[str]]:
|
372
|
+
"""
|
373
|
+
Last updated time of this resource.
|
374
|
+
A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine
|
375
|
+
fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
|
376
|
+
"""
|
377
|
+
return pulumi.get(self, "update_time")
|
378
|
+
|
379
|
+
@update_time.setter
|
380
|
+
def update_time(self, value: Optional[pulumi.Input[str]]):
|
381
|
+
pulumi.set(self, "update_time", value)
|
382
|
+
|
383
|
+
@property
|
384
|
+
@pulumi.getter(name="vmwareEngineNetwork")
|
385
|
+
def vmware_engine_network(self) -> Optional[pulumi.Input[str]]:
|
386
|
+
"""
|
387
|
+
The relative resource name of the VMware Engine network. Specify the name in the following form:
|
388
|
+
projects/{project}/locations/{location}/vmwareEngineNetworks/{vmwareEngineNetworkId} where {project}
|
389
|
+
can either be a project number or a project ID.
|
390
|
+
"""
|
391
|
+
return pulumi.get(self, "vmware_engine_network")
|
392
|
+
|
393
|
+
@vmware_engine_network.setter
|
394
|
+
def vmware_engine_network(self, value: Optional[pulumi.Input[str]]):
|
395
|
+
pulumi.set(self, "vmware_engine_network", value)
|
396
|
+
|
397
|
+
@property
|
398
|
+
@pulumi.getter(name="vmwareEngineNetworkCanonical")
|
399
|
+
def vmware_engine_network_canonical(self) -> Optional[pulumi.Input[str]]:
|
400
|
+
"""
|
401
|
+
The canonical name of the VMware Engine network in the form:
|
402
|
+
projects/{project_number}/locations/{location}/vmwareEngineNetworks/{vmwareEngineNetworkId}
|
403
|
+
"""
|
404
|
+
return pulumi.get(self, "vmware_engine_network_canonical")
|
405
|
+
|
406
|
+
@vmware_engine_network_canonical.setter
|
407
|
+
def vmware_engine_network_canonical(self, value: Optional[pulumi.Input[str]]):
|
408
|
+
pulumi.set(self, "vmware_engine_network_canonical", value)
|
409
|
+
|
410
|
+
|
411
|
+
class NetworkPolicy(pulumi.CustomResource):
|
412
|
+
@overload
|
413
|
+
def __init__(__self__,
|
414
|
+
resource_name: str,
|
415
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
416
|
+
description: Optional[pulumi.Input[str]] = None,
|
417
|
+
edge_services_cidr: Optional[pulumi.Input[str]] = None,
|
418
|
+
external_ip: Optional[pulumi.Input[pulumi.InputType['NetworkPolicyExternalIpArgs']]] = None,
|
419
|
+
internet_access: Optional[pulumi.Input[pulumi.InputType['NetworkPolicyInternetAccessArgs']]] = None,
|
420
|
+
location: Optional[pulumi.Input[str]] = None,
|
421
|
+
name: Optional[pulumi.Input[str]] = None,
|
422
|
+
project: Optional[pulumi.Input[str]] = None,
|
423
|
+
vmware_engine_network: Optional[pulumi.Input[str]] = None,
|
424
|
+
__props__=None):
|
425
|
+
"""
|
426
|
+
Represents a network policy resource. Network policies are regional resources.
|
427
|
+
|
428
|
+
To get more information about NetworkPolicy, see:
|
429
|
+
|
430
|
+
* [API documentation](https://cloud.google.com/vmware-engine/docs/reference/rest/v1/projects.locations.networkPolicies)
|
431
|
+
|
432
|
+
## Example Usage
|
433
|
+
### Vmware Engine Network Policy Basic
|
434
|
+
|
435
|
+
```python
|
436
|
+
import pulumi
|
437
|
+
import pulumi_gcp as gcp
|
438
|
+
|
439
|
+
network_policy_nw = gcp.vmwareengine.Network("network-policy-nw",
|
440
|
+
location="global",
|
441
|
+
type="STANDARD",
|
442
|
+
description="VMwareEngine standard network sample")
|
443
|
+
vmw_engine_network_policy = gcp.vmwareengine.NetworkPolicy("vmw-engine-network-policy",
|
444
|
+
location="us-west1",
|
445
|
+
edge_services_cidr="192.168.30.0/26",
|
446
|
+
vmware_engine_network=network_policy_nw.id)
|
447
|
+
```
|
448
|
+
### Vmware Engine Network Policy Full
|
449
|
+
|
450
|
+
```python
|
451
|
+
import pulumi
|
452
|
+
import pulumi_gcp as gcp
|
453
|
+
|
454
|
+
network_policy_nw = gcp.vmwareengine.Network("network-policy-nw",
|
455
|
+
location="global",
|
456
|
+
type="STANDARD",
|
457
|
+
description="VMwareEngine standard network sample")
|
458
|
+
vmw_engine_network_policy = gcp.vmwareengine.NetworkPolicy("vmw-engine-network-policy",
|
459
|
+
location="us-west1",
|
460
|
+
edge_services_cidr="192.168.30.0/26",
|
461
|
+
vmware_engine_network=network_policy_nw.id,
|
462
|
+
description="Sample Network Policy",
|
463
|
+
internet_access=gcp.vmwareengine.NetworkPolicyInternetAccessArgs(
|
464
|
+
enabled=True,
|
465
|
+
),
|
466
|
+
external_ip=gcp.vmwareengine.NetworkPolicyExternalIpArgs(
|
467
|
+
enabled=True,
|
468
|
+
))
|
469
|
+
```
|
470
|
+
|
471
|
+
## Import
|
472
|
+
|
473
|
+
NetworkPolicy can be imported using any of these accepted formats* `projects/{{project}}/locations/{{location}}/networkPolicies/{{name}}` * `{{project}}/{{location}}/{{name}}` * `{{location}}/{{name}}` In Terraform v1.5.0 and later, use an [`import` block](https://developer.hashicorp.com/terraform/language/import) to import NetworkPolicy using one of the formats above. For exampletf import {
|
474
|
+
|
475
|
+
id = "projects/{{project}}/locations/{{location}}/networkPolicies/{{name}}"
|
476
|
+
|
477
|
+
to = google_vmwareengine_network_policy.default }
|
478
|
+
|
479
|
+
```sh
|
480
|
+
$ pulumi import gcp:vmwareengine/networkPolicy:NetworkPolicy When using the [`terraform import` command](https://developer.hashicorp.com/terraform/cli/commands/import), NetworkPolicy can be imported using one of the formats above. For example
|
481
|
+
```
|
482
|
+
|
483
|
+
```sh
|
484
|
+
$ pulumi import gcp:vmwareengine/networkPolicy:NetworkPolicy default projects/{{project}}/locations/{{location}}/networkPolicies/{{name}}
|
485
|
+
```
|
486
|
+
|
487
|
+
```sh
|
488
|
+
$ pulumi import gcp:vmwareengine/networkPolicy:NetworkPolicy default {{project}}/{{location}}/{{name}}
|
489
|
+
```
|
490
|
+
|
491
|
+
```sh
|
492
|
+
$ pulumi import gcp:vmwareengine/networkPolicy:NetworkPolicy default {{location}}/{{name}}
|
493
|
+
```
|
494
|
+
|
495
|
+
:param str resource_name: The name of the resource.
|
496
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
497
|
+
:param pulumi.Input[str] description: User-provided description for this network policy.
|
498
|
+
:param pulumi.Input[str] edge_services_cidr: IP address range in CIDR notation used to create internet access and external IP access.
|
499
|
+
An RFC 1918 CIDR block, with a "/26" prefix, is required. The range cannot overlap with any
|
500
|
+
prefixes either in the consumer VPC network or in use by the private clouds attached to that VPC network.
|
501
|
+
:param pulumi.Input[pulumi.InputType['NetworkPolicyExternalIpArgs']] external_ip: Network service that allows External IP addresses to be assigned to VMware workloads.
|
502
|
+
This service can only be enabled when internetAccess is also enabled.
|
503
|
+
Structure is documented below.
|
504
|
+
:param pulumi.Input[pulumi.InputType['NetworkPolicyInternetAccessArgs']] internet_access: Network service that allows VMware workloads to access the internet.
|
505
|
+
Structure is documented below.
|
506
|
+
:param pulumi.Input[str] location: The resource name of the location (region) to create the new network policy in.
|
507
|
+
Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names.
|
508
|
+
For example: projects/my-project/locations/us-central1
|
509
|
+
:param pulumi.Input[str] name: The ID of the Network Policy.
|
510
|
+
|
511
|
+
|
512
|
+
- - -
|
513
|
+
:param pulumi.Input[str] project: The ID of the project in which the resource belongs.
|
514
|
+
If it is not provided, the provider project is used.
|
515
|
+
:param pulumi.Input[str] vmware_engine_network: The relative resource name of the VMware Engine network. Specify the name in the following form:
|
516
|
+
projects/{project}/locations/{location}/vmwareEngineNetworks/{vmwareEngineNetworkId} where {project}
|
517
|
+
can either be a project number or a project ID.
|
518
|
+
"""
|
519
|
+
...
|
520
|
+
@overload
|
521
|
+
def __init__(__self__,
|
522
|
+
resource_name: str,
|
523
|
+
args: NetworkPolicyArgs,
|
524
|
+
opts: Optional[pulumi.ResourceOptions] = None):
|
525
|
+
"""
|
526
|
+
Represents a network policy resource. Network policies are regional resources.
|
527
|
+
|
528
|
+
To get more information about NetworkPolicy, see:
|
529
|
+
|
530
|
+
* [API documentation](https://cloud.google.com/vmware-engine/docs/reference/rest/v1/projects.locations.networkPolicies)
|
531
|
+
|
532
|
+
## Example Usage
|
533
|
+
### Vmware Engine Network Policy Basic
|
534
|
+
|
535
|
+
```python
|
536
|
+
import pulumi
|
537
|
+
import pulumi_gcp as gcp
|
538
|
+
|
539
|
+
network_policy_nw = gcp.vmwareengine.Network("network-policy-nw",
|
540
|
+
location="global",
|
541
|
+
type="STANDARD",
|
542
|
+
description="VMwareEngine standard network sample")
|
543
|
+
vmw_engine_network_policy = gcp.vmwareengine.NetworkPolicy("vmw-engine-network-policy",
|
544
|
+
location="us-west1",
|
545
|
+
edge_services_cidr="192.168.30.0/26",
|
546
|
+
vmware_engine_network=network_policy_nw.id)
|
547
|
+
```
|
548
|
+
### Vmware Engine Network Policy Full
|
549
|
+
|
550
|
+
```python
|
551
|
+
import pulumi
|
552
|
+
import pulumi_gcp as gcp
|
553
|
+
|
554
|
+
network_policy_nw = gcp.vmwareengine.Network("network-policy-nw",
|
555
|
+
location="global",
|
556
|
+
type="STANDARD",
|
557
|
+
description="VMwareEngine standard network sample")
|
558
|
+
vmw_engine_network_policy = gcp.vmwareengine.NetworkPolicy("vmw-engine-network-policy",
|
559
|
+
location="us-west1",
|
560
|
+
edge_services_cidr="192.168.30.0/26",
|
561
|
+
vmware_engine_network=network_policy_nw.id,
|
562
|
+
description="Sample Network Policy",
|
563
|
+
internet_access=gcp.vmwareengine.NetworkPolicyInternetAccessArgs(
|
564
|
+
enabled=True,
|
565
|
+
),
|
566
|
+
external_ip=gcp.vmwareengine.NetworkPolicyExternalIpArgs(
|
567
|
+
enabled=True,
|
568
|
+
))
|
569
|
+
```
|
570
|
+
|
571
|
+
## Import
|
572
|
+
|
573
|
+
NetworkPolicy can be imported using any of these accepted formats* `projects/{{project}}/locations/{{location}}/networkPolicies/{{name}}` * `{{project}}/{{location}}/{{name}}` * `{{location}}/{{name}}` In Terraform v1.5.0 and later, use an [`import` block](https://developer.hashicorp.com/terraform/language/import) to import NetworkPolicy using one of the formats above. For exampletf import {
|
574
|
+
|
575
|
+
id = "projects/{{project}}/locations/{{location}}/networkPolicies/{{name}}"
|
576
|
+
|
577
|
+
to = google_vmwareengine_network_policy.default }
|
578
|
+
|
579
|
+
```sh
|
580
|
+
$ pulumi import gcp:vmwareengine/networkPolicy:NetworkPolicy When using the [`terraform import` command](https://developer.hashicorp.com/terraform/cli/commands/import), NetworkPolicy can be imported using one of the formats above. For example
|
581
|
+
```
|
582
|
+
|
583
|
+
```sh
|
584
|
+
$ pulumi import gcp:vmwareengine/networkPolicy:NetworkPolicy default projects/{{project}}/locations/{{location}}/networkPolicies/{{name}}
|
585
|
+
```
|
586
|
+
|
587
|
+
```sh
|
588
|
+
$ pulumi import gcp:vmwareengine/networkPolicy:NetworkPolicy default {{project}}/{{location}}/{{name}}
|
589
|
+
```
|
590
|
+
|
591
|
+
```sh
|
592
|
+
$ pulumi import gcp:vmwareengine/networkPolicy:NetworkPolicy default {{location}}/{{name}}
|
593
|
+
```
|
594
|
+
|
595
|
+
:param str resource_name: The name of the resource.
|
596
|
+
:param NetworkPolicyArgs args: The arguments to use to populate this resource's properties.
|
597
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
598
|
+
"""
|
599
|
+
...
|
600
|
+
def __init__(__self__, resource_name: str, *args, **kwargs):
|
601
|
+
resource_args, opts = _utilities.get_resource_args_opts(NetworkPolicyArgs, pulumi.ResourceOptions, *args, **kwargs)
|
602
|
+
if resource_args is not None:
|
603
|
+
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
604
|
+
else:
|
605
|
+
__self__._internal_init(resource_name, *args, **kwargs)
|
606
|
+
|
607
|
+
def _internal_init(__self__,
|
608
|
+
resource_name: str,
|
609
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
610
|
+
description: Optional[pulumi.Input[str]] = None,
|
611
|
+
edge_services_cidr: Optional[pulumi.Input[str]] = None,
|
612
|
+
external_ip: Optional[pulumi.Input[pulumi.InputType['NetworkPolicyExternalIpArgs']]] = None,
|
613
|
+
internet_access: Optional[pulumi.Input[pulumi.InputType['NetworkPolicyInternetAccessArgs']]] = None,
|
614
|
+
location: Optional[pulumi.Input[str]] = None,
|
615
|
+
name: Optional[pulumi.Input[str]] = None,
|
616
|
+
project: Optional[pulumi.Input[str]] = None,
|
617
|
+
vmware_engine_network: Optional[pulumi.Input[str]] = None,
|
618
|
+
__props__=None):
|
619
|
+
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
620
|
+
if not isinstance(opts, pulumi.ResourceOptions):
|
621
|
+
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
622
|
+
if opts.id is None:
|
623
|
+
if __props__ is not None:
|
624
|
+
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
625
|
+
__props__ = NetworkPolicyArgs.__new__(NetworkPolicyArgs)
|
626
|
+
|
627
|
+
__props__.__dict__["description"] = description
|
628
|
+
if edge_services_cidr is None and not opts.urn:
|
629
|
+
raise TypeError("Missing required property 'edge_services_cidr'")
|
630
|
+
__props__.__dict__["edge_services_cidr"] = edge_services_cidr
|
631
|
+
__props__.__dict__["external_ip"] = external_ip
|
632
|
+
__props__.__dict__["internet_access"] = internet_access
|
633
|
+
if location is None and not opts.urn:
|
634
|
+
raise TypeError("Missing required property 'location'")
|
635
|
+
__props__.__dict__["location"] = location
|
636
|
+
__props__.__dict__["name"] = name
|
637
|
+
__props__.__dict__["project"] = project
|
638
|
+
if vmware_engine_network is None and not opts.urn:
|
639
|
+
raise TypeError("Missing required property 'vmware_engine_network'")
|
640
|
+
__props__.__dict__["vmware_engine_network"] = vmware_engine_network
|
641
|
+
__props__.__dict__["create_time"] = None
|
642
|
+
__props__.__dict__["uid"] = None
|
643
|
+
__props__.__dict__["update_time"] = None
|
644
|
+
__props__.__dict__["vmware_engine_network_canonical"] = None
|
645
|
+
super(NetworkPolicy, __self__).__init__(
|
646
|
+
'gcp:vmwareengine/networkPolicy:NetworkPolicy',
|
647
|
+
resource_name,
|
648
|
+
__props__,
|
649
|
+
opts)
|
650
|
+
|
651
|
+
@staticmethod
|
652
|
+
def get(resource_name: str,
|
653
|
+
id: pulumi.Input[str],
|
654
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
655
|
+
create_time: Optional[pulumi.Input[str]] = None,
|
656
|
+
description: Optional[pulumi.Input[str]] = None,
|
657
|
+
edge_services_cidr: Optional[pulumi.Input[str]] = None,
|
658
|
+
external_ip: Optional[pulumi.Input[pulumi.InputType['NetworkPolicyExternalIpArgs']]] = None,
|
659
|
+
internet_access: Optional[pulumi.Input[pulumi.InputType['NetworkPolicyInternetAccessArgs']]] = None,
|
660
|
+
location: Optional[pulumi.Input[str]] = None,
|
661
|
+
name: Optional[pulumi.Input[str]] = None,
|
662
|
+
project: Optional[pulumi.Input[str]] = None,
|
663
|
+
uid: Optional[pulumi.Input[str]] = None,
|
664
|
+
update_time: Optional[pulumi.Input[str]] = None,
|
665
|
+
vmware_engine_network: Optional[pulumi.Input[str]] = None,
|
666
|
+
vmware_engine_network_canonical: Optional[pulumi.Input[str]] = None) -> 'NetworkPolicy':
|
667
|
+
"""
|
668
|
+
Get an existing NetworkPolicy resource's state with the given name, id, and optional extra
|
669
|
+
properties used to qualify the lookup.
|
670
|
+
|
671
|
+
:param str resource_name: The unique name of the resulting resource.
|
672
|
+
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
673
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
674
|
+
:param pulumi.Input[str] create_time: Creation time of this resource.
|
675
|
+
A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and
|
676
|
+
up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
|
677
|
+
:param pulumi.Input[str] description: User-provided description for this network policy.
|
678
|
+
:param pulumi.Input[str] edge_services_cidr: IP address range in CIDR notation used to create internet access and external IP access.
|
679
|
+
An RFC 1918 CIDR block, with a "/26" prefix, is required. The range cannot overlap with any
|
680
|
+
prefixes either in the consumer VPC network or in use by the private clouds attached to that VPC network.
|
681
|
+
:param pulumi.Input[pulumi.InputType['NetworkPolicyExternalIpArgs']] external_ip: Network service that allows External IP addresses to be assigned to VMware workloads.
|
682
|
+
This service can only be enabled when internetAccess is also enabled.
|
683
|
+
Structure is documented below.
|
684
|
+
:param pulumi.Input[pulumi.InputType['NetworkPolicyInternetAccessArgs']] internet_access: Network service that allows VMware workloads to access the internet.
|
685
|
+
Structure is documented below.
|
686
|
+
:param pulumi.Input[str] location: The resource name of the location (region) to create the new network policy in.
|
687
|
+
Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names.
|
688
|
+
For example: projects/my-project/locations/us-central1
|
689
|
+
:param pulumi.Input[str] name: The ID of the Network Policy.
|
690
|
+
|
691
|
+
|
692
|
+
- - -
|
693
|
+
:param pulumi.Input[str] project: The ID of the project in which the resource belongs.
|
694
|
+
If it is not provided, the provider project is used.
|
695
|
+
:param pulumi.Input[str] uid: System-generated unique identifier for the resource.
|
696
|
+
:param pulumi.Input[str] update_time: Last updated time of this resource.
|
697
|
+
A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine
|
698
|
+
fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
|
699
|
+
:param pulumi.Input[str] vmware_engine_network: The relative resource name of the VMware Engine network. Specify the name in the following form:
|
700
|
+
projects/{project}/locations/{location}/vmwareEngineNetworks/{vmwareEngineNetworkId} where {project}
|
701
|
+
can either be a project number or a project ID.
|
702
|
+
:param pulumi.Input[str] vmware_engine_network_canonical: The canonical name of the VMware Engine network in the form:
|
703
|
+
projects/{project_number}/locations/{location}/vmwareEngineNetworks/{vmwareEngineNetworkId}
|
704
|
+
"""
|
705
|
+
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
706
|
+
|
707
|
+
__props__ = _NetworkPolicyState.__new__(_NetworkPolicyState)
|
708
|
+
|
709
|
+
__props__.__dict__["create_time"] = create_time
|
710
|
+
__props__.__dict__["description"] = description
|
711
|
+
__props__.__dict__["edge_services_cidr"] = edge_services_cidr
|
712
|
+
__props__.__dict__["external_ip"] = external_ip
|
713
|
+
__props__.__dict__["internet_access"] = internet_access
|
714
|
+
__props__.__dict__["location"] = location
|
715
|
+
__props__.__dict__["name"] = name
|
716
|
+
__props__.__dict__["project"] = project
|
717
|
+
__props__.__dict__["uid"] = uid
|
718
|
+
__props__.__dict__["update_time"] = update_time
|
719
|
+
__props__.__dict__["vmware_engine_network"] = vmware_engine_network
|
720
|
+
__props__.__dict__["vmware_engine_network_canonical"] = vmware_engine_network_canonical
|
721
|
+
return NetworkPolicy(resource_name, opts=opts, __props__=__props__)
|
722
|
+
|
723
|
+
@property
|
724
|
+
@pulumi.getter(name="createTime")
|
725
|
+
def create_time(self) -> pulumi.Output[str]:
|
726
|
+
"""
|
727
|
+
Creation time of this resource.
|
728
|
+
A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and
|
729
|
+
up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
|
730
|
+
"""
|
731
|
+
return pulumi.get(self, "create_time")
|
732
|
+
|
733
|
+
@property
|
734
|
+
@pulumi.getter
|
735
|
+
def description(self) -> pulumi.Output[Optional[str]]:
|
736
|
+
"""
|
737
|
+
User-provided description for this network policy.
|
738
|
+
"""
|
739
|
+
return pulumi.get(self, "description")
|
740
|
+
|
741
|
+
@property
|
742
|
+
@pulumi.getter(name="edgeServicesCidr")
|
743
|
+
def edge_services_cidr(self) -> pulumi.Output[str]:
|
744
|
+
"""
|
745
|
+
IP address range in CIDR notation used to create internet access and external IP access.
|
746
|
+
An RFC 1918 CIDR block, with a "/26" prefix, is required. The range cannot overlap with any
|
747
|
+
prefixes either in the consumer VPC network or in use by the private clouds attached to that VPC network.
|
748
|
+
"""
|
749
|
+
return pulumi.get(self, "edge_services_cidr")
|
750
|
+
|
751
|
+
@property
|
752
|
+
@pulumi.getter(name="externalIp")
|
753
|
+
def external_ip(self) -> pulumi.Output['outputs.NetworkPolicyExternalIp']:
|
754
|
+
"""
|
755
|
+
Network service that allows External IP addresses to be assigned to VMware workloads.
|
756
|
+
This service can only be enabled when internetAccess is also enabled.
|
757
|
+
Structure is documented below.
|
758
|
+
"""
|
759
|
+
return pulumi.get(self, "external_ip")
|
760
|
+
|
761
|
+
@property
|
762
|
+
@pulumi.getter(name="internetAccess")
|
763
|
+
def internet_access(self) -> pulumi.Output['outputs.NetworkPolicyInternetAccess']:
|
764
|
+
"""
|
765
|
+
Network service that allows VMware workloads to access the internet.
|
766
|
+
Structure is documented below.
|
767
|
+
"""
|
768
|
+
return pulumi.get(self, "internet_access")
|
769
|
+
|
770
|
+
@property
|
771
|
+
@pulumi.getter
|
772
|
+
def location(self) -> pulumi.Output[str]:
|
773
|
+
"""
|
774
|
+
The resource name of the location (region) to create the new network policy in.
|
775
|
+
Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names.
|
776
|
+
For example: projects/my-project/locations/us-central1
|
777
|
+
"""
|
778
|
+
return pulumi.get(self, "location")
|
779
|
+
|
780
|
+
@property
|
781
|
+
@pulumi.getter
|
782
|
+
def name(self) -> pulumi.Output[str]:
|
783
|
+
"""
|
784
|
+
The ID of the Network Policy.
|
785
|
+
|
786
|
+
|
787
|
+
- - -
|
788
|
+
"""
|
789
|
+
return pulumi.get(self, "name")
|
790
|
+
|
791
|
+
@property
|
792
|
+
@pulumi.getter
|
793
|
+
def project(self) -> pulumi.Output[str]:
|
794
|
+
"""
|
795
|
+
The ID of the project in which the resource belongs.
|
796
|
+
If it is not provided, the provider project is used.
|
797
|
+
"""
|
798
|
+
return pulumi.get(self, "project")
|
799
|
+
|
800
|
+
@property
|
801
|
+
@pulumi.getter
|
802
|
+
def uid(self) -> pulumi.Output[str]:
|
803
|
+
"""
|
804
|
+
System-generated unique identifier for the resource.
|
805
|
+
"""
|
806
|
+
return pulumi.get(self, "uid")
|
807
|
+
|
808
|
+
@property
|
809
|
+
@pulumi.getter(name="updateTime")
|
810
|
+
def update_time(self) -> pulumi.Output[str]:
|
811
|
+
"""
|
812
|
+
Last updated time of this resource.
|
813
|
+
A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine
|
814
|
+
fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
|
815
|
+
"""
|
816
|
+
return pulumi.get(self, "update_time")
|
817
|
+
|
818
|
+
@property
|
819
|
+
@pulumi.getter(name="vmwareEngineNetwork")
|
820
|
+
def vmware_engine_network(self) -> pulumi.Output[str]:
|
821
|
+
"""
|
822
|
+
The relative resource name of the VMware Engine network. Specify the name in the following form:
|
823
|
+
projects/{project}/locations/{location}/vmwareEngineNetworks/{vmwareEngineNetworkId} where {project}
|
824
|
+
can either be a project number or a project ID.
|
825
|
+
"""
|
826
|
+
return pulumi.get(self, "vmware_engine_network")
|
827
|
+
|
828
|
+
@property
|
829
|
+
@pulumi.getter(name="vmwareEngineNetworkCanonical")
|
830
|
+
def vmware_engine_network_canonical(self) -> pulumi.Output[str]:
|
831
|
+
"""
|
832
|
+
The canonical name of the VMware Engine network in the form:
|
833
|
+
projects/{project_number}/locations/{location}/vmwareEngineNetworks/{vmwareEngineNetworkId}
|
834
|
+
"""
|
835
|
+
return pulumi.get(self, "vmware_engine_network_canonical")
|
836
|
+
|