pulumi-gcp 7.27.0a1718279079__py3-none-any.whl → 7.28.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.
Files changed (59) hide show
  1. pulumi_gcp/__init__.py +59 -0
  2. pulumi_gcp/accesscontextmanager/_inputs.py +58 -74
  3. pulumi_gcp/accesscontextmanager/access_levels.py +0 -20
  4. pulumi_gcp/accesscontextmanager/outputs.py +58 -74
  5. pulumi_gcp/accesscontextmanager/service_perimeter.py +2 -0
  6. pulumi_gcp/bigtable/_inputs.py +40 -0
  7. pulumi_gcp/bigtable/outputs.py +49 -0
  8. pulumi_gcp/bigtable/table.py +54 -0
  9. pulumi_gcp/cloudbuildv2/_inputs.py +383 -0
  10. pulumi_gcp/cloudbuildv2/connection.py +110 -2
  11. pulumi_gcp/cloudbuildv2/outputs.py +421 -0
  12. pulumi_gcp/composer/__init__.py +3 -0
  13. pulumi_gcp/composer/get_user_workloads_config_map.py +190 -0
  14. pulumi_gcp/composer/get_user_workloads_secret.py +188 -0
  15. pulumi_gcp/composer/user_workloads_config_map.py +475 -0
  16. pulumi_gcp/compute/_inputs.py +4 -2
  17. pulumi_gcp/compute/backend_service.py +28 -48
  18. pulumi_gcp/compute/interconnect.py +4 -4
  19. pulumi_gcp/compute/outputs.py +10 -4
  20. pulumi_gcp/compute/region_backend_service.py +35 -48
  21. pulumi_gcp/compute/region_network_endpoint.py +187 -0
  22. pulumi_gcp/compute/region_network_endpoint_group.py +49 -9
  23. pulumi_gcp/compute/region_target_https_proxy.py +7 -14
  24. pulumi_gcp/compute/target_https_proxy.py +28 -14
  25. pulumi_gcp/config/__init__.pyi +2 -0
  26. pulumi_gcp/config/vars.py +4 -0
  27. pulumi_gcp/container/_inputs.py +2 -2
  28. pulumi_gcp/container/outputs.py +4 -4
  29. pulumi_gcp/discoveryengine/_inputs.py +227 -0
  30. pulumi_gcp/discoveryengine/data_store.py +108 -0
  31. pulumi_gcp/discoveryengine/outputs.py +280 -0
  32. pulumi_gcp/edgecontainer/_inputs.py +107 -1
  33. pulumi_gcp/edgecontainer/outputs.py +123 -1
  34. pulumi_gcp/gkehub/_inputs.py +16 -0
  35. pulumi_gcp/gkehub/outputs.py +15 -1
  36. pulumi_gcp/kms/crypto_key.py +2 -6
  37. pulumi_gcp/logging/folder_sink.py +14 -14
  38. pulumi_gcp/logging/organization_sink.py +14 -14
  39. pulumi_gcp/managedkafka/__init__.py +11 -0
  40. pulumi_gcp/managedkafka/_inputs.py +169 -0
  41. pulumi_gcp/managedkafka/cluster.py +807 -0
  42. pulumi_gcp/managedkafka/outputs.py +197 -0
  43. pulumi_gcp/managedkafka/topic.py +599 -0
  44. pulumi_gcp/netapp/__init__.py +1 -0
  45. pulumi_gcp/netapp/active_directory.py +55 -0
  46. pulumi_gcp/netapp/backup.py +903 -0
  47. pulumi_gcp/provider.py +20 -0
  48. pulumi_gcp/pulumi-plugin.json +1 -1
  49. pulumi_gcp/securitycenter/__init__.py +3 -0
  50. pulumi_gcp/securitycenter/_inputs.py +1105 -0
  51. pulumi_gcp/securitycenter/management_folder_security_health_analytics_custom_module.py +725 -0
  52. pulumi_gcp/securitycenter/management_organization_security_health_analytics_custom_module.py +713 -0
  53. pulumi_gcp/securitycenter/management_project_security_health_analytics_custom_module.py +706 -0
  54. pulumi_gcp/securitycenter/outputs.py +1048 -0
  55. pulumi_gcp/vertex/ai_feature_online_store.py +37 -8
  56. {pulumi_gcp-7.27.0a1718279079.dist-info → pulumi_gcp-7.28.0.dist-info}/METADATA +1 -1
  57. {pulumi_gcp-7.27.0a1718279079.dist-info → pulumi_gcp-7.28.0.dist-info}/RECORD +59 -47
  58. {pulumi_gcp-7.27.0a1718279079.dist-info → pulumi_gcp-7.28.0.dist-info}/WHEEL +1 -1
  59. {pulumi_gcp-7.27.0a1718279079.dist-info → pulumi_gcp-7.28.0.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,188 @@
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
+
12
+ __all__ = [
13
+ 'GetUserWorkloadsSecretResult',
14
+ 'AwaitableGetUserWorkloadsSecretResult',
15
+ 'get_user_workloads_secret',
16
+ 'get_user_workloads_secret_output',
17
+ ]
18
+
19
+ @pulumi.output_type
20
+ class GetUserWorkloadsSecretResult:
21
+ """
22
+ A collection of values returned by getUserWorkloadsSecret.
23
+ """
24
+ def __init__(__self__, data=None, environment=None, id=None, name=None, project=None, region=None):
25
+ if data and not isinstance(data, dict):
26
+ raise TypeError("Expected argument 'data' to be a dict")
27
+ pulumi.set(__self__, "data", data)
28
+ if environment and not isinstance(environment, str):
29
+ raise TypeError("Expected argument 'environment' to be a str")
30
+ pulumi.set(__self__, "environment", environment)
31
+ if id and not isinstance(id, str):
32
+ raise TypeError("Expected argument 'id' to be a str")
33
+ pulumi.set(__self__, "id", id)
34
+ if name and not isinstance(name, str):
35
+ raise TypeError("Expected argument 'name' to be a str")
36
+ pulumi.set(__self__, "name", name)
37
+ if project and not isinstance(project, str):
38
+ raise TypeError("Expected argument 'project' to be a str")
39
+ pulumi.set(__self__, "project", project)
40
+ if region and not isinstance(region, str):
41
+ raise TypeError("Expected argument 'region' to be a str")
42
+ pulumi.set(__self__, "region", region)
43
+
44
+ @property
45
+ @pulumi.getter
46
+ def data(self) -> Mapping[str, Any]:
47
+ return pulumi.get(self, "data")
48
+
49
+ @property
50
+ @pulumi.getter
51
+ def environment(self) -> str:
52
+ return pulumi.get(self, "environment")
53
+
54
+ @property
55
+ @pulumi.getter
56
+ def id(self) -> str:
57
+ """
58
+ The provider-assigned unique ID for this managed resource.
59
+ """
60
+ return pulumi.get(self, "id")
61
+
62
+ @property
63
+ @pulumi.getter
64
+ def name(self) -> str:
65
+ return pulumi.get(self, "name")
66
+
67
+ @property
68
+ @pulumi.getter
69
+ def project(self) -> Optional[str]:
70
+ return pulumi.get(self, "project")
71
+
72
+ @property
73
+ @pulumi.getter
74
+ def region(self) -> Optional[str]:
75
+ return pulumi.get(self, "region")
76
+
77
+
78
+ class AwaitableGetUserWorkloadsSecretResult(GetUserWorkloadsSecretResult):
79
+ # pylint: disable=using-constant-test
80
+ def __await__(self):
81
+ if False:
82
+ yield self
83
+ return GetUserWorkloadsSecretResult(
84
+ data=self.data,
85
+ environment=self.environment,
86
+ id=self.id,
87
+ name=self.name,
88
+ project=self.project,
89
+ region=self.region)
90
+
91
+
92
+ def get_user_workloads_secret(environment: Optional[str] = None,
93
+ name: Optional[str] = None,
94
+ project: Optional[str] = None,
95
+ region: Optional[str] = None,
96
+ opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetUserWorkloadsSecretResult:
97
+ """
98
+ ## Example Usage
99
+
100
+ ```python
101
+ import pulumi
102
+ import pulumi_gcp as gcp
103
+ import pulumi_std as std
104
+
105
+ example_environment = gcp.composer.Environment("example",
106
+ name="example-environment",
107
+ config=gcp.composer.EnvironmentConfigArgs(
108
+ software_config=gcp.composer.EnvironmentConfigSoftwareConfigArgs(
109
+ image_version="composer-3-airflow-2",
110
+ ),
111
+ ))
112
+ example_user_workloads_secret = gcp.composer.UserWorkloadsSecret("example",
113
+ environment=example_environment.name,
114
+ name="example-secret",
115
+ data={
116
+ "username": std.base64encode(input="username").result,
117
+ "password": std.base64encode(input="password").result,
118
+ })
119
+ example = example_environment.name.apply(lambda name: gcp.composer.get_user_workloads_secret_output(environment=name,
120
+ name=google_composer_user_workloads_secret["example"]["name"]))
121
+ pulumi.export("debug", example)
122
+ ```
123
+
124
+
125
+ :param str environment: Environment where the Secret is stored.
126
+ :param str name: Name of the Secret.
127
+ :param str project: The ID of the project in which the resource belongs.
128
+ If it is not provided, the provider project is used.
129
+ :param str region: The location or Compute Engine region of the environment.
130
+ """
131
+ __args__ = dict()
132
+ __args__['environment'] = environment
133
+ __args__['name'] = name
134
+ __args__['project'] = project
135
+ __args__['region'] = region
136
+ opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
137
+ __ret__ = pulumi.runtime.invoke('gcp:composer/getUserWorkloadsSecret:getUserWorkloadsSecret', __args__, opts=opts, typ=GetUserWorkloadsSecretResult).value
138
+
139
+ return AwaitableGetUserWorkloadsSecretResult(
140
+ data=pulumi.get(__ret__, 'data'),
141
+ environment=pulumi.get(__ret__, 'environment'),
142
+ id=pulumi.get(__ret__, 'id'),
143
+ name=pulumi.get(__ret__, 'name'),
144
+ project=pulumi.get(__ret__, 'project'),
145
+ region=pulumi.get(__ret__, 'region'))
146
+
147
+
148
+ @_utilities.lift_output_func(get_user_workloads_secret)
149
+ def get_user_workloads_secret_output(environment: Optional[pulumi.Input[str]] = None,
150
+ name: Optional[pulumi.Input[str]] = None,
151
+ project: Optional[pulumi.Input[Optional[str]]] = None,
152
+ region: Optional[pulumi.Input[Optional[str]]] = None,
153
+ opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetUserWorkloadsSecretResult]:
154
+ """
155
+ ## Example Usage
156
+
157
+ ```python
158
+ import pulumi
159
+ import pulumi_gcp as gcp
160
+ import pulumi_std as std
161
+
162
+ example_environment = gcp.composer.Environment("example",
163
+ name="example-environment",
164
+ config=gcp.composer.EnvironmentConfigArgs(
165
+ software_config=gcp.composer.EnvironmentConfigSoftwareConfigArgs(
166
+ image_version="composer-3-airflow-2",
167
+ ),
168
+ ))
169
+ example_user_workloads_secret = gcp.composer.UserWorkloadsSecret("example",
170
+ environment=example_environment.name,
171
+ name="example-secret",
172
+ data={
173
+ "username": std.base64encode(input="username").result,
174
+ "password": std.base64encode(input="password").result,
175
+ })
176
+ example = example_environment.name.apply(lambda name: gcp.composer.get_user_workloads_secret_output(environment=name,
177
+ name=google_composer_user_workloads_secret["example"]["name"]))
178
+ pulumi.export("debug", example)
179
+ ```
180
+
181
+
182
+ :param str environment: Environment where the Secret is stored.
183
+ :param str name: Name of the Secret.
184
+ :param str project: The ID of the project in which the resource belongs.
185
+ If it is not provided, the provider project is used.
186
+ :param str region: The location or Compute Engine region of the environment.
187
+ """
188
+ ...
@@ -0,0 +1,475 @@
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
+
12
+ __all__ = ['UserWorkloadsConfigMapArgs', 'UserWorkloadsConfigMap']
13
+
14
+ @pulumi.input_type
15
+ class UserWorkloadsConfigMapArgs:
16
+ def __init__(__self__, *,
17
+ environment: pulumi.Input[str],
18
+ data: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
19
+ name: Optional[pulumi.Input[str]] = None,
20
+ project: Optional[pulumi.Input[str]] = None,
21
+ region: Optional[pulumi.Input[str]] = None):
22
+ """
23
+ The set of arguments for constructing a UserWorkloadsConfigMap resource.
24
+ :param pulumi.Input[str] environment: Environment where the Kubernetes ConfigMap will be stored and used.
25
+
26
+
27
+ - - -
28
+ :param pulumi.Input[Mapping[str, pulumi.Input[str]]] data: The "data" field of Kubernetes ConfigMap, organized in key-value pairs.
29
+ For details see: https://kubernetes.io/docs/concepts/configuration/configmap/
30
+ :param pulumi.Input[str] name: Name of the Kubernetes ConfigMap.
31
+ :param pulumi.Input[str] project: The ID of the project in which the resource belongs.
32
+ If it is not provided, the provider project is used.
33
+ :param pulumi.Input[str] region: The location or Compute Engine region for the environment.
34
+ """
35
+ pulumi.set(__self__, "environment", environment)
36
+ if data is not None:
37
+ pulumi.set(__self__, "data", data)
38
+ if name is not None:
39
+ pulumi.set(__self__, "name", name)
40
+ if project is not None:
41
+ pulumi.set(__self__, "project", project)
42
+ if region is not None:
43
+ pulumi.set(__self__, "region", region)
44
+
45
+ @property
46
+ @pulumi.getter
47
+ def environment(self) -> pulumi.Input[str]:
48
+ """
49
+ Environment where the Kubernetes ConfigMap will be stored and used.
50
+
51
+
52
+ - - -
53
+ """
54
+ return pulumi.get(self, "environment")
55
+
56
+ @environment.setter
57
+ def environment(self, value: pulumi.Input[str]):
58
+ pulumi.set(self, "environment", value)
59
+
60
+ @property
61
+ @pulumi.getter
62
+ def data(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
63
+ """
64
+ The "data" field of Kubernetes ConfigMap, organized in key-value pairs.
65
+ For details see: https://kubernetes.io/docs/concepts/configuration/configmap/
66
+ """
67
+ return pulumi.get(self, "data")
68
+
69
+ @data.setter
70
+ def data(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
71
+ pulumi.set(self, "data", value)
72
+
73
+ @property
74
+ @pulumi.getter
75
+ def name(self) -> Optional[pulumi.Input[str]]:
76
+ """
77
+ Name of the Kubernetes ConfigMap.
78
+ """
79
+ return pulumi.get(self, "name")
80
+
81
+ @name.setter
82
+ def name(self, value: Optional[pulumi.Input[str]]):
83
+ pulumi.set(self, "name", value)
84
+
85
+ @property
86
+ @pulumi.getter
87
+ def project(self) -> Optional[pulumi.Input[str]]:
88
+ """
89
+ The ID of the project in which the resource belongs.
90
+ If it is not provided, the provider project is used.
91
+ """
92
+ return pulumi.get(self, "project")
93
+
94
+ @project.setter
95
+ def project(self, value: Optional[pulumi.Input[str]]):
96
+ pulumi.set(self, "project", value)
97
+
98
+ @property
99
+ @pulumi.getter
100
+ def region(self) -> Optional[pulumi.Input[str]]:
101
+ """
102
+ The location or Compute Engine region for the environment.
103
+ """
104
+ return pulumi.get(self, "region")
105
+
106
+ @region.setter
107
+ def region(self, value: Optional[pulumi.Input[str]]):
108
+ pulumi.set(self, "region", value)
109
+
110
+
111
+ @pulumi.input_type
112
+ class _UserWorkloadsConfigMapState:
113
+ def __init__(__self__, *,
114
+ data: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
115
+ environment: Optional[pulumi.Input[str]] = None,
116
+ name: Optional[pulumi.Input[str]] = None,
117
+ project: Optional[pulumi.Input[str]] = None,
118
+ region: Optional[pulumi.Input[str]] = None):
119
+ """
120
+ Input properties used for looking up and filtering UserWorkloadsConfigMap resources.
121
+ :param pulumi.Input[Mapping[str, pulumi.Input[str]]] data: The "data" field of Kubernetes ConfigMap, organized in key-value pairs.
122
+ For details see: https://kubernetes.io/docs/concepts/configuration/configmap/
123
+ :param pulumi.Input[str] environment: Environment where the Kubernetes ConfigMap will be stored and used.
124
+
125
+
126
+ - - -
127
+ :param pulumi.Input[str] name: Name of the Kubernetes ConfigMap.
128
+ :param pulumi.Input[str] project: The ID of the project in which the resource belongs.
129
+ If it is not provided, the provider project is used.
130
+ :param pulumi.Input[str] region: The location or Compute Engine region for the environment.
131
+ """
132
+ if data is not None:
133
+ pulumi.set(__self__, "data", data)
134
+ if environment is not None:
135
+ pulumi.set(__self__, "environment", environment)
136
+ if name is not None:
137
+ pulumi.set(__self__, "name", name)
138
+ if project is not None:
139
+ pulumi.set(__self__, "project", project)
140
+ if region is not None:
141
+ pulumi.set(__self__, "region", region)
142
+
143
+ @property
144
+ @pulumi.getter
145
+ def data(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
146
+ """
147
+ The "data" field of Kubernetes ConfigMap, organized in key-value pairs.
148
+ For details see: https://kubernetes.io/docs/concepts/configuration/configmap/
149
+ """
150
+ return pulumi.get(self, "data")
151
+
152
+ @data.setter
153
+ def data(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
154
+ pulumi.set(self, "data", value)
155
+
156
+ @property
157
+ @pulumi.getter
158
+ def environment(self) -> Optional[pulumi.Input[str]]:
159
+ """
160
+ Environment where the Kubernetes ConfigMap will be stored and used.
161
+
162
+
163
+ - - -
164
+ """
165
+ return pulumi.get(self, "environment")
166
+
167
+ @environment.setter
168
+ def environment(self, value: Optional[pulumi.Input[str]]):
169
+ pulumi.set(self, "environment", value)
170
+
171
+ @property
172
+ @pulumi.getter
173
+ def name(self) -> Optional[pulumi.Input[str]]:
174
+ """
175
+ Name of the Kubernetes ConfigMap.
176
+ """
177
+ return pulumi.get(self, "name")
178
+
179
+ @name.setter
180
+ def name(self, value: Optional[pulumi.Input[str]]):
181
+ pulumi.set(self, "name", value)
182
+
183
+ @property
184
+ @pulumi.getter
185
+ def project(self) -> Optional[pulumi.Input[str]]:
186
+ """
187
+ The ID of the project in which the resource belongs.
188
+ If it is not provided, the provider project is used.
189
+ """
190
+ return pulumi.get(self, "project")
191
+
192
+ @project.setter
193
+ def project(self, value: Optional[pulumi.Input[str]]):
194
+ pulumi.set(self, "project", value)
195
+
196
+ @property
197
+ @pulumi.getter
198
+ def region(self) -> Optional[pulumi.Input[str]]:
199
+ """
200
+ The location or Compute Engine region for the environment.
201
+ """
202
+ return pulumi.get(self, "region")
203
+
204
+ @region.setter
205
+ def region(self, value: Optional[pulumi.Input[str]]):
206
+ pulumi.set(self, "region", value)
207
+
208
+
209
+ class UserWorkloadsConfigMap(pulumi.CustomResource):
210
+ @overload
211
+ def __init__(__self__,
212
+ resource_name: str,
213
+ opts: Optional[pulumi.ResourceOptions] = None,
214
+ data: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
215
+ environment: Optional[pulumi.Input[str]] = None,
216
+ name: Optional[pulumi.Input[str]] = None,
217
+ project: Optional[pulumi.Input[str]] = None,
218
+ region: Optional[pulumi.Input[str]] = None,
219
+ __props__=None):
220
+ """
221
+ ## Example Usage
222
+
223
+ ### Composer User Workloads Config Map Basic
224
+
225
+ ```python
226
+ import pulumi
227
+ import pulumi_gcp as gcp
228
+
229
+ environment = gcp.composer.Environment("environment",
230
+ name="test-environment",
231
+ region="us-central1",
232
+ config=gcp.composer.EnvironmentConfigArgs(
233
+ software_config=gcp.composer.EnvironmentConfigSoftwareConfigArgs(
234
+ image_version="composer-3-airflow-2",
235
+ ),
236
+ ))
237
+ config_map = gcp.composer.UserWorkloadsConfigMap("config_map",
238
+ name="test-config-map",
239
+ region="us-central1",
240
+ environment=environment.name,
241
+ data={
242
+ "api_host": "apihost:443",
243
+ })
244
+ ```
245
+
246
+ ## Import
247
+
248
+ UserWorkloadsConfigMap can be imported using any of these accepted formats:
249
+
250
+ * `projects/{{project}}/locations/{{region}}/environments/{{environment}}/userWorkloadsConfigMaps/{{name}}`
251
+
252
+ * `{{project}}/{{region}}/{{environment}}/{{name}}`
253
+
254
+ * `{{region}}/{{environment}}/{{name}}`
255
+
256
+ * `{{environment}}/{{name}}`
257
+
258
+ When using the `pulumi import` command, UserWorkloadsConfigMap can be imported using one of the formats above. For example:
259
+
260
+ ```sh
261
+ $ pulumi import gcp:composer/userWorkloadsConfigMap:UserWorkloadsConfigMap default projects/{{project}}/locations/{{region}}/environments/{{environment}}/userWorkloadsConfigMaps/{{name}}
262
+ ```
263
+
264
+ ```sh
265
+ $ pulumi import gcp:composer/userWorkloadsConfigMap:UserWorkloadsConfigMap default {{project}}/{{region}}/{{environment}}/{{name}}
266
+ ```
267
+
268
+ ```sh
269
+ $ pulumi import gcp:composer/userWorkloadsConfigMap:UserWorkloadsConfigMap default {{region}}/{{environment}}/{{name}}
270
+ ```
271
+
272
+ ```sh
273
+ $ pulumi import gcp:composer/userWorkloadsConfigMap:UserWorkloadsConfigMap default {{environment}}/{{name}}
274
+ ```
275
+
276
+ :param str resource_name: The name of the resource.
277
+ :param pulumi.ResourceOptions opts: Options for the resource.
278
+ :param pulumi.Input[Mapping[str, pulumi.Input[str]]] data: The "data" field of Kubernetes ConfigMap, organized in key-value pairs.
279
+ For details see: https://kubernetes.io/docs/concepts/configuration/configmap/
280
+ :param pulumi.Input[str] environment: Environment where the Kubernetes ConfigMap will be stored and used.
281
+
282
+
283
+ - - -
284
+ :param pulumi.Input[str] name: Name of the Kubernetes ConfigMap.
285
+ :param pulumi.Input[str] project: The ID of the project in which the resource belongs.
286
+ If it is not provided, the provider project is used.
287
+ :param pulumi.Input[str] region: The location or Compute Engine region for the environment.
288
+ """
289
+ ...
290
+ @overload
291
+ def __init__(__self__,
292
+ resource_name: str,
293
+ args: UserWorkloadsConfigMapArgs,
294
+ opts: Optional[pulumi.ResourceOptions] = None):
295
+ """
296
+ ## Example Usage
297
+
298
+ ### Composer User Workloads Config Map Basic
299
+
300
+ ```python
301
+ import pulumi
302
+ import pulumi_gcp as gcp
303
+
304
+ environment = gcp.composer.Environment("environment",
305
+ name="test-environment",
306
+ region="us-central1",
307
+ config=gcp.composer.EnvironmentConfigArgs(
308
+ software_config=gcp.composer.EnvironmentConfigSoftwareConfigArgs(
309
+ image_version="composer-3-airflow-2",
310
+ ),
311
+ ))
312
+ config_map = gcp.composer.UserWorkloadsConfigMap("config_map",
313
+ name="test-config-map",
314
+ region="us-central1",
315
+ environment=environment.name,
316
+ data={
317
+ "api_host": "apihost:443",
318
+ })
319
+ ```
320
+
321
+ ## Import
322
+
323
+ UserWorkloadsConfigMap can be imported using any of these accepted formats:
324
+
325
+ * `projects/{{project}}/locations/{{region}}/environments/{{environment}}/userWorkloadsConfigMaps/{{name}}`
326
+
327
+ * `{{project}}/{{region}}/{{environment}}/{{name}}`
328
+
329
+ * `{{region}}/{{environment}}/{{name}}`
330
+
331
+ * `{{environment}}/{{name}}`
332
+
333
+ When using the `pulumi import` command, UserWorkloadsConfigMap can be imported using one of the formats above. For example:
334
+
335
+ ```sh
336
+ $ pulumi import gcp:composer/userWorkloadsConfigMap:UserWorkloadsConfigMap default projects/{{project}}/locations/{{region}}/environments/{{environment}}/userWorkloadsConfigMaps/{{name}}
337
+ ```
338
+
339
+ ```sh
340
+ $ pulumi import gcp:composer/userWorkloadsConfigMap:UserWorkloadsConfigMap default {{project}}/{{region}}/{{environment}}/{{name}}
341
+ ```
342
+
343
+ ```sh
344
+ $ pulumi import gcp:composer/userWorkloadsConfigMap:UserWorkloadsConfigMap default {{region}}/{{environment}}/{{name}}
345
+ ```
346
+
347
+ ```sh
348
+ $ pulumi import gcp:composer/userWorkloadsConfigMap:UserWorkloadsConfigMap default {{environment}}/{{name}}
349
+ ```
350
+
351
+ :param str resource_name: The name of the resource.
352
+ :param UserWorkloadsConfigMapArgs args: The arguments to use to populate this resource's properties.
353
+ :param pulumi.ResourceOptions opts: Options for the resource.
354
+ """
355
+ ...
356
+ def __init__(__self__, resource_name: str, *args, **kwargs):
357
+ resource_args, opts = _utilities.get_resource_args_opts(UserWorkloadsConfigMapArgs, pulumi.ResourceOptions, *args, **kwargs)
358
+ if resource_args is not None:
359
+ __self__._internal_init(resource_name, opts, **resource_args.__dict__)
360
+ else:
361
+ __self__._internal_init(resource_name, *args, **kwargs)
362
+
363
+ def _internal_init(__self__,
364
+ resource_name: str,
365
+ opts: Optional[pulumi.ResourceOptions] = None,
366
+ data: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
367
+ environment: Optional[pulumi.Input[str]] = None,
368
+ name: Optional[pulumi.Input[str]] = None,
369
+ project: Optional[pulumi.Input[str]] = None,
370
+ region: Optional[pulumi.Input[str]] = None,
371
+ __props__=None):
372
+ opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
373
+ if not isinstance(opts, pulumi.ResourceOptions):
374
+ raise TypeError('Expected resource options to be a ResourceOptions instance')
375
+ if opts.id is None:
376
+ if __props__ is not None:
377
+ raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
378
+ __props__ = UserWorkloadsConfigMapArgs.__new__(UserWorkloadsConfigMapArgs)
379
+
380
+ __props__.__dict__["data"] = data
381
+ if environment is None and not opts.urn:
382
+ raise TypeError("Missing required property 'environment'")
383
+ __props__.__dict__["environment"] = environment
384
+ __props__.__dict__["name"] = name
385
+ __props__.__dict__["project"] = project
386
+ __props__.__dict__["region"] = region
387
+ super(UserWorkloadsConfigMap, __self__).__init__(
388
+ 'gcp:composer/userWorkloadsConfigMap:UserWorkloadsConfigMap',
389
+ resource_name,
390
+ __props__,
391
+ opts)
392
+
393
+ @staticmethod
394
+ def get(resource_name: str,
395
+ id: pulumi.Input[str],
396
+ opts: Optional[pulumi.ResourceOptions] = None,
397
+ data: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
398
+ environment: Optional[pulumi.Input[str]] = None,
399
+ name: Optional[pulumi.Input[str]] = None,
400
+ project: Optional[pulumi.Input[str]] = None,
401
+ region: Optional[pulumi.Input[str]] = None) -> 'UserWorkloadsConfigMap':
402
+ """
403
+ Get an existing UserWorkloadsConfigMap resource's state with the given name, id, and optional extra
404
+ properties used to qualify the lookup.
405
+
406
+ :param str resource_name: The unique name of the resulting resource.
407
+ :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
408
+ :param pulumi.ResourceOptions opts: Options for the resource.
409
+ :param pulumi.Input[Mapping[str, pulumi.Input[str]]] data: The "data" field of Kubernetes ConfigMap, organized in key-value pairs.
410
+ For details see: https://kubernetes.io/docs/concepts/configuration/configmap/
411
+ :param pulumi.Input[str] environment: Environment where the Kubernetes ConfigMap will be stored and used.
412
+
413
+
414
+ - - -
415
+ :param pulumi.Input[str] name: Name of the Kubernetes ConfigMap.
416
+ :param pulumi.Input[str] project: The ID of the project in which the resource belongs.
417
+ If it is not provided, the provider project is used.
418
+ :param pulumi.Input[str] region: The location or Compute Engine region for the environment.
419
+ """
420
+ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
421
+
422
+ __props__ = _UserWorkloadsConfigMapState.__new__(_UserWorkloadsConfigMapState)
423
+
424
+ __props__.__dict__["data"] = data
425
+ __props__.__dict__["environment"] = environment
426
+ __props__.__dict__["name"] = name
427
+ __props__.__dict__["project"] = project
428
+ __props__.__dict__["region"] = region
429
+ return UserWorkloadsConfigMap(resource_name, opts=opts, __props__=__props__)
430
+
431
+ @property
432
+ @pulumi.getter
433
+ def data(self) -> pulumi.Output[Optional[Mapping[str, str]]]:
434
+ """
435
+ The "data" field of Kubernetes ConfigMap, organized in key-value pairs.
436
+ For details see: https://kubernetes.io/docs/concepts/configuration/configmap/
437
+ """
438
+ return pulumi.get(self, "data")
439
+
440
+ @property
441
+ @pulumi.getter
442
+ def environment(self) -> pulumi.Output[str]:
443
+ """
444
+ Environment where the Kubernetes ConfigMap will be stored and used.
445
+
446
+
447
+ - - -
448
+ """
449
+ return pulumi.get(self, "environment")
450
+
451
+ @property
452
+ @pulumi.getter
453
+ def name(self) -> pulumi.Output[str]:
454
+ """
455
+ Name of the Kubernetes ConfigMap.
456
+ """
457
+ return pulumi.get(self, "name")
458
+
459
+ @property
460
+ @pulumi.getter
461
+ def project(self) -> pulumi.Output[str]:
462
+ """
463
+ The ID of the project in which the resource belongs.
464
+ If it is not provided, the provider project is used.
465
+ """
466
+ return pulumi.get(self, "project")
467
+
468
+ @property
469
+ @pulumi.getter
470
+ def region(self) -> pulumi.Output[str]:
471
+ """
472
+ The location or Compute Engine region for the environment.
473
+ """
474
+ return pulumi.get(self, "region")
475
+