pulumi-gcp 7.5.0a1704283083__py3-none-any.whl → 7.6.0__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (101) hide show
  1. pulumi_gcp/__init__.py +99 -0
  2. pulumi_gcp/bigqueryanalyticshub/_inputs.py +40 -0
  3. pulumi_gcp/bigqueryanalyticshub/listing.py +117 -3
  4. pulumi_gcp/bigqueryanalyticshub/outputs.py +49 -0
  5. pulumi_gcp/clouddeploy/__init__.py +1 -0
  6. pulumi_gcp/clouddeploy/_inputs.py +239 -0
  7. pulumi_gcp/clouddeploy/automation.py +1103 -0
  8. pulumi_gcp/clouddeploy/outputs.py +246 -0
  9. pulumi_gcp/clouddomains/__init__.py +10 -0
  10. pulumi_gcp/clouddomains/_inputs.py +1098 -0
  11. pulumi_gcp/clouddomains/outputs.py +1156 -0
  12. pulumi_gcp/clouddomains/registration.py +1068 -0
  13. pulumi_gcp/cloudrunv2/job.py +4 -4
  14. pulumi_gcp/composer/_inputs.py +79 -1
  15. pulumi_gcp/composer/outputs.py +131 -4
  16. pulumi_gcp/compute/__init__.py +1 -0
  17. pulumi_gcp/compute/_inputs.py +180 -0
  18. pulumi_gcp/compute/get_instance_template.py +11 -1
  19. pulumi_gcp/compute/get_region_instance_template.py +11 -1
  20. pulumi_gcp/compute/get_reservation.py +212 -0
  21. pulumi_gcp/compute/instance_template.py +47 -0
  22. pulumi_gcp/compute/network_firewall_policy.py +20 -22
  23. pulumi_gcp/compute/outputs.py +325 -0
  24. pulumi_gcp/compute/region_instance_template.py +47 -0
  25. pulumi_gcp/compute/region_network_firewall_policy.py +31 -35
  26. pulumi_gcp/compute/router_peer.py +54 -0
  27. pulumi_gcp/compute/vpn_tunnel.py +8 -4
  28. pulumi_gcp/config/__init__.pyi +2 -0
  29. pulumi_gcp/config/vars.py +4 -0
  30. pulumi_gcp/container/_inputs.py +23 -0
  31. pulumi_gcp/container/aws_node_pool.py +7 -7
  32. pulumi_gcp/container/cluster.py +68 -14
  33. pulumi_gcp/container/get_cluster.py +11 -1
  34. pulumi_gcp/container/outputs.py +49 -0
  35. pulumi_gcp/dataflow/pipeline.py +1 -1
  36. pulumi_gcp/dataproc/_inputs.py +413 -39
  37. pulumi_gcp/dataproc/metastore_service.py +63 -0
  38. pulumi_gcp/dataproc/outputs.py +461 -39
  39. pulumi_gcp/dns/__init__.py +1 -0
  40. pulumi_gcp/dns/_inputs.py +94 -0
  41. pulumi_gcp/dns/get_managed_zones.py +89 -0
  42. pulumi_gcp/dns/outputs.py +62 -0
  43. pulumi_gcp/edgecontainer/vpn_connection.py +10 -10
  44. pulumi_gcp/filestore/__init__.py +1 -0
  45. pulumi_gcp/filestore/get_instance.py +258 -0
  46. pulumi_gcp/filestore/instance.py +7 -7
  47. pulumi_gcp/filestore/outputs.py +126 -0
  48. pulumi_gcp/gkebackup/backup_plan.py +24 -8
  49. pulumi_gcp/gkebackup/restore_plan.py +36 -12
  50. pulumi_gcp/gkebackup/restore_plan_iam_binding.py +36 -12
  51. pulumi_gcp/gkebackup/restore_plan_iam_member.py +36 -12
  52. pulumi_gcp/gkebackup/restore_plan_iam_policy.py +36 -12
  53. pulumi_gcp/gkehub/_inputs.py +502 -2
  54. pulumi_gcp/gkehub/feature.py +34 -0
  55. pulumi_gcp/gkehub/feature_membership.py +177 -0
  56. pulumi_gcp/gkehub/membership.py +18 -6
  57. pulumi_gcp/gkehub/outputs.py +502 -2
  58. pulumi_gcp/gkeonprem/_inputs.py +21 -25
  59. pulumi_gcp/gkeonprem/outputs.py +34 -25
  60. pulumi_gcp/gkeonprem/v_mware_node_pool.py +34 -0
  61. pulumi_gcp/integrationconnectors/__init__.py +1 -0
  62. pulumi_gcp/integrationconnectors/endpoint_attachment.py +669 -0
  63. pulumi_gcp/kms/_inputs.py +42 -0
  64. pulumi_gcp/kms/crypto_key.py +36 -0
  65. pulumi_gcp/kms/get_kms_crypto_key.py +11 -1
  66. pulumi_gcp/kms/outputs.py +62 -0
  67. pulumi_gcp/logging/__init__.py +2 -0
  68. pulumi_gcp/logging/folder_settings.py +490 -0
  69. pulumi_gcp/logging/folder_sink.py +21 -21
  70. pulumi_gcp/logging/organization_settings.py +484 -0
  71. pulumi_gcp/logging/organization_sink.py +21 -21
  72. pulumi_gcp/logging/project_sink.py +7 -14
  73. pulumi_gcp/netapp/__init__.py +3 -0
  74. pulumi_gcp/netapp/active_directory.py +1413 -0
  75. pulumi_gcp/netapp/backup_vault.py +593 -0
  76. pulumi_gcp/netapp/kmsconfig.py +649 -0
  77. pulumi_gcp/orgpolicy/policy.py +28 -0
  78. pulumi_gcp/provider.py +20 -0
  79. pulumi_gcp/pubsub/subscription.py +29 -37
  80. pulumi_gcp/serviceaccount/account.py +47 -0
  81. pulumi_gcp/servicenetworking/connection.py +55 -1
  82. pulumi_gcp/sql/database_instance.py +2 -2
  83. pulumi_gcp/sql/ssl_cert.py +1 -1
  84. pulumi_gcp/sql/user.py +7 -7
  85. pulumi_gcp/storage/transfer_job.py +24 -5
  86. pulumi_gcp/vertex/__init__.py +3 -0
  87. pulumi_gcp/vertex/_inputs.py +339 -0
  88. pulumi_gcp/vertex/ai_feature_group.py +710 -0
  89. pulumi_gcp/vertex/ai_feature_online_store.py +962 -0
  90. pulumi_gcp/vertex/ai_feature_online_store_featureview.py +804 -0
  91. pulumi_gcp/vertex/outputs.py +406 -0
  92. pulumi_gcp/vmwareengine/__init__.py +2 -0
  93. pulumi_gcp/vmwareengine/_inputs.py +84 -0
  94. pulumi_gcp/vmwareengine/external_access_rule.py +947 -0
  95. pulumi_gcp/vmwareengine/get_external_access_rule.py +245 -0
  96. pulumi_gcp/vmwareengine/outputs.py +146 -0
  97. pulumi_gcp/workflows/workflow.py +7 -7
  98. {pulumi_gcp-7.5.0a1704283083.dist-info → pulumi_gcp-7.6.0.dist-info}/METADATA +1 -1
  99. {pulumi_gcp-7.5.0a1704283083.dist-info → pulumi_gcp-7.6.0.dist-info}/RECORD +101 -82
  100. {pulumi_gcp-7.5.0a1704283083.dist-info → pulumi_gcp-7.6.0.dist-info}/WHEEL +0 -0
  101. {pulumi_gcp-7.5.0a1704283083.dist-info → pulumi_gcp-7.6.0.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,484 @@
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__ = ['OrganizationSettingsArgs', 'OrganizationSettings']
13
+
14
+ @pulumi.input_type
15
+ class OrganizationSettingsArgs:
16
+ def __init__(__self__, *,
17
+ organization: pulumi.Input[str],
18
+ disable_default_sink: Optional[pulumi.Input[bool]] = None,
19
+ kms_key_name: Optional[pulumi.Input[str]] = None,
20
+ storage_location: Optional[pulumi.Input[str]] = None):
21
+ """
22
+ The set of arguments for constructing a OrganizationSettings resource.
23
+ :param pulumi.Input[str] organization: The organization for which to retrieve or configure settings.
24
+
25
+
26
+ - - -
27
+ :param pulumi.Input[bool] disable_default_sink: If set to true, the _Default sink in newly created projects and folders will created in a disabled state. This can be used to automatically disable log storage if there is already an aggregated sink configured in the hierarchy. The _Default sink can be re-enabled manually if needed.
28
+ :param pulumi.Input[str] kms_key_name: The resource name for the configured Cloud KMS key.
29
+ :param pulumi.Input[str] storage_location: The storage location that Cloud Logging will use to create new resources when a location is needed but not explicitly provided.
30
+ """
31
+ pulumi.set(__self__, "organization", organization)
32
+ if disable_default_sink is not None:
33
+ pulumi.set(__self__, "disable_default_sink", disable_default_sink)
34
+ if kms_key_name is not None:
35
+ pulumi.set(__self__, "kms_key_name", kms_key_name)
36
+ if storage_location is not None:
37
+ pulumi.set(__self__, "storage_location", storage_location)
38
+
39
+ @property
40
+ @pulumi.getter
41
+ def organization(self) -> pulumi.Input[str]:
42
+ """
43
+ The organization for which to retrieve or configure settings.
44
+
45
+
46
+ - - -
47
+ """
48
+ return pulumi.get(self, "organization")
49
+
50
+ @organization.setter
51
+ def organization(self, value: pulumi.Input[str]):
52
+ pulumi.set(self, "organization", value)
53
+
54
+ @property
55
+ @pulumi.getter(name="disableDefaultSink")
56
+ def disable_default_sink(self) -> Optional[pulumi.Input[bool]]:
57
+ """
58
+ If set to true, the _Default sink in newly created projects and folders will created in a disabled state. This can be used to automatically disable log storage if there is already an aggregated sink configured in the hierarchy. The _Default sink can be re-enabled manually if needed.
59
+ """
60
+ return pulumi.get(self, "disable_default_sink")
61
+
62
+ @disable_default_sink.setter
63
+ def disable_default_sink(self, value: Optional[pulumi.Input[bool]]):
64
+ pulumi.set(self, "disable_default_sink", value)
65
+
66
+ @property
67
+ @pulumi.getter(name="kmsKeyName")
68
+ def kms_key_name(self) -> Optional[pulumi.Input[str]]:
69
+ """
70
+ The resource name for the configured Cloud KMS key.
71
+ """
72
+ return pulumi.get(self, "kms_key_name")
73
+
74
+ @kms_key_name.setter
75
+ def kms_key_name(self, value: Optional[pulumi.Input[str]]):
76
+ pulumi.set(self, "kms_key_name", value)
77
+
78
+ @property
79
+ @pulumi.getter(name="storageLocation")
80
+ def storage_location(self) -> Optional[pulumi.Input[str]]:
81
+ """
82
+ The storage location that Cloud Logging will use to create new resources when a location is needed but not explicitly provided.
83
+ """
84
+ return pulumi.get(self, "storage_location")
85
+
86
+ @storage_location.setter
87
+ def storage_location(self, value: Optional[pulumi.Input[str]]):
88
+ pulumi.set(self, "storage_location", value)
89
+
90
+
91
+ @pulumi.input_type
92
+ class _OrganizationSettingsState:
93
+ def __init__(__self__, *,
94
+ disable_default_sink: Optional[pulumi.Input[bool]] = None,
95
+ kms_key_name: Optional[pulumi.Input[str]] = None,
96
+ kms_service_account_id: Optional[pulumi.Input[str]] = None,
97
+ logging_service_account_id: Optional[pulumi.Input[str]] = None,
98
+ name: Optional[pulumi.Input[str]] = None,
99
+ organization: Optional[pulumi.Input[str]] = None,
100
+ storage_location: Optional[pulumi.Input[str]] = None):
101
+ """
102
+ Input properties used for looking up and filtering OrganizationSettings resources.
103
+ :param pulumi.Input[bool] disable_default_sink: If set to true, the _Default sink in newly created projects and folders will created in a disabled state. This can be used to automatically disable log storage if there is already an aggregated sink configured in the hierarchy. The _Default sink can be re-enabled manually if needed.
104
+ :param pulumi.Input[str] kms_key_name: The resource name for the configured Cloud KMS key.
105
+ :param pulumi.Input[str] kms_service_account_id: The service account that will be used by the Log Router to access your Cloud KMS key.
106
+ :param pulumi.Input[str] logging_service_account_id: The service account for the given container. Sinks use this service account as their writerIdentity if no custom service account is provided.
107
+ :param pulumi.Input[str] name: The resource name of the settings.
108
+ :param pulumi.Input[str] organization: The organization for which to retrieve or configure settings.
109
+
110
+
111
+ - - -
112
+ :param pulumi.Input[str] storage_location: The storage location that Cloud Logging will use to create new resources when a location is needed but not explicitly provided.
113
+ """
114
+ if disable_default_sink is not None:
115
+ pulumi.set(__self__, "disable_default_sink", disable_default_sink)
116
+ if kms_key_name is not None:
117
+ pulumi.set(__self__, "kms_key_name", kms_key_name)
118
+ if kms_service_account_id is not None:
119
+ pulumi.set(__self__, "kms_service_account_id", kms_service_account_id)
120
+ if logging_service_account_id is not None:
121
+ pulumi.set(__self__, "logging_service_account_id", logging_service_account_id)
122
+ if name is not None:
123
+ pulumi.set(__self__, "name", name)
124
+ if organization is not None:
125
+ pulumi.set(__self__, "organization", organization)
126
+ if storage_location is not None:
127
+ pulumi.set(__self__, "storage_location", storage_location)
128
+
129
+ @property
130
+ @pulumi.getter(name="disableDefaultSink")
131
+ def disable_default_sink(self) -> Optional[pulumi.Input[bool]]:
132
+ """
133
+ If set to true, the _Default sink in newly created projects and folders will created in a disabled state. This can be used to automatically disable log storage if there is already an aggregated sink configured in the hierarchy. The _Default sink can be re-enabled manually if needed.
134
+ """
135
+ return pulumi.get(self, "disable_default_sink")
136
+
137
+ @disable_default_sink.setter
138
+ def disable_default_sink(self, value: Optional[pulumi.Input[bool]]):
139
+ pulumi.set(self, "disable_default_sink", value)
140
+
141
+ @property
142
+ @pulumi.getter(name="kmsKeyName")
143
+ def kms_key_name(self) -> Optional[pulumi.Input[str]]:
144
+ """
145
+ The resource name for the configured Cloud KMS key.
146
+ """
147
+ return pulumi.get(self, "kms_key_name")
148
+
149
+ @kms_key_name.setter
150
+ def kms_key_name(self, value: Optional[pulumi.Input[str]]):
151
+ pulumi.set(self, "kms_key_name", value)
152
+
153
+ @property
154
+ @pulumi.getter(name="kmsServiceAccountId")
155
+ def kms_service_account_id(self) -> Optional[pulumi.Input[str]]:
156
+ """
157
+ The service account that will be used by the Log Router to access your Cloud KMS key.
158
+ """
159
+ return pulumi.get(self, "kms_service_account_id")
160
+
161
+ @kms_service_account_id.setter
162
+ def kms_service_account_id(self, value: Optional[pulumi.Input[str]]):
163
+ pulumi.set(self, "kms_service_account_id", value)
164
+
165
+ @property
166
+ @pulumi.getter(name="loggingServiceAccountId")
167
+ def logging_service_account_id(self) -> Optional[pulumi.Input[str]]:
168
+ """
169
+ The service account for the given container. Sinks use this service account as their writerIdentity if no custom service account is provided.
170
+ """
171
+ return pulumi.get(self, "logging_service_account_id")
172
+
173
+ @logging_service_account_id.setter
174
+ def logging_service_account_id(self, value: Optional[pulumi.Input[str]]):
175
+ pulumi.set(self, "logging_service_account_id", value)
176
+
177
+ @property
178
+ @pulumi.getter
179
+ def name(self) -> Optional[pulumi.Input[str]]:
180
+ """
181
+ The resource name of the settings.
182
+ """
183
+ return pulumi.get(self, "name")
184
+
185
+ @name.setter
186
+ def name(self, value: Optional[pulumi.Input[str]]):
187
+ pulumi.set(self, "name", value)
188
+
189
+ @property
190
+ @pulumi.getter
191
+ def organization(self) -> Optional[pulumi.Input[str]]:
192
+ """
193
+ The organization for which to retrieve or configure settings.
194
+
195
+
196
+ - - -
197
+ """
198
+ return pulumi.get(self, "organization")
199
+
200
+ @organization.setter
201
+ def organization(self, value: Optional[pulumi.Input[str]]):
202
+ pulumi.set(self, "organization", value)
203
+
204
+ @property
205
+ @pulumi.getter(name="storageLocation")
206
+ def storage_location(self) -> Optional[pulumi.Input[str]]:
207
+ """
208
+ The storage location that Cloud Logging will use to create new resources when a location is needed but not explicitly provided.
209
+ """
210
+ return pulumi.get(self, "storage_location")
211
+
212
+ @storage_location.setter
213
+ def storage_location(self, value: Optional[pulumi.Input[str]]):
214
+ pulumi.set(self, "storage_location", value)
215
+
216
+
217
+ class OrganizationSettings(pulumi.CustomResource):
218
+ @overload
219
+ def __init__(__self__,
220
+ resource_name: str,
221
+ opts: Optional[pulumi.ResourceOptions] = None,
222
+ disable_default_sink: Optional[pulumi.Input[bool]] = None,
223
+ kms_key_name: Optional[pulumi.Input[str]] = None,
224
+ organization: Optional[pulumi.Input[str]] = None,
225
+ storage_location: Optional[pulumi.Input[str]] = None,
226
+ __props__=None):
227
+ """
228
+ Default resource settings control whether CMEK is required for new log buckets. These settings also determine the storage location for the _Default and _Required log buckets, and whether the _Default sink is enabled or disabled.
229
+
230
+ To get more information about OrganizationSettings, see:
231
+
232
+ * [API documentation](https://cloud.google.com/logging/docs/reference/v2/rest/v2/TopLevel/getSettings)
233
+ * How-to Guides
234
+ * [Configure default settings for organizations and folders](https://cloud.google.com/logging/docs/default-settings)
235
+
236
+ ## Example Usage
237
+ ### Logging Organization Settings All
238
+
239
+ ```python
240
+ import pulumi
241
+ import pulumi_gcp as gcp
242
+
243
+ settings = gcp.logging.get_organization_settings(organization="123456789")
244
+ iam = gcp.kms.CryptoKeyIAMMember("iam",
245
+ crypto_key_id="kms-key",
246
+ role="roles/cloudkms.cryptoKeyEncrypterDecrypter",
247
+ member=f"serviceAccount:{settings.kms_service_account_id}")
248
+ example = gcp.logging.OrganizationSettings("example",
249
+ disable_default_sink=True,
250
+ kms_key_name="kms-key",
251
+ organization="123456789",
252
+ storage_location="us-central1",
253
+ opts=pulumi.ResourceOptions(depends_on=[iam]))
254
+ ```
255
+
256
+ ## Import
257
+
258
+ OrganizationSettings can be imported using any of these accepted formats* `organizations/{{organization}}/settings` * `{{organization}}` In Terraform v1.5.0 and later, use an [`import` block](https://developer.hashicorp.com/terraform/language/import) to import OrganizationSettings using one of the formats above. For exampletf import {
259
+
260
+ id = "organizations/{{organization}}/settings"
261
+
262
+ to = google_logging_organization_settings.default }
263
+
264
+ ```sh
265
+ $ pulumi import gcp:logging/organizationSettings:OrganizationSettings When using the [`terraform import` command](https://developer.hashicorp.com/terraform/cli/commands/import), OrganizationSettings can be imported using one of the formats above. For example
266
+ ```
267
+
268
+ ```sh
269
+ $ pulumi import gcp:logging/organizationSettings:OrganizationSettings default organizations/{{organization}}/settings
270
+ ```
271
+
272
+ ```sh
273
+ $ pulumi import gcp:logging/organizationSettings:OrganizationSettings default {{organization}}
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[bool] disable_default_sink: If set to true, the _Default sink in newly created projects and folders will created in a disabled state. This can be used to automatically disable log storage if there is already an aggregated sink configured in the hierarchy. The _Default sink can be re-enabled manually if needed.
279
+ :param pulumi.Input[str] kms_key_name: The resource name for the configured Cloud KMS key.
280
+ :param pulumi.Input[str] organization: The organization for which to retrieve or configure settings.
281
+
282
+
283
+ - - -
284
+ :param pulumi.Input[str] storage_location: The storage location that Cloud Logging will use to create new resources when a location is needed but not explicitly provided.
285
+ """
286
+ ...
287
+ @overload
288
+ def __init__(__self__,
289
+ resource_name: str,
290
+ args: OrganizationSettingsArgs,
291
+ opts: Optional[pulumi.ResourceOptions] = None):
292
+ """
293
+ Default resource settings control whether CMEK is required for new log buckets. These settings also determine the storage location for the _Default and _Required log buckets, and whether the _Default sink is enabled or disabled.
294
+
295
+ To get more information about OrganizationSettings, see:
296
+
297
+ * [API documentation](https://cloud.google.com/logging/docs/reference/v2/rest/v2/TopLevel/getSettings)
298
+ * How-to Guides
299
+ * [Configure default settings for organizations and folders](https://cloud.google.com/logging/docs/default-settings)
300
+
301
+ ## Example Usage
302
+ ### Logging Organization Settings All
303
+
304
+ ```python
305
+ import pulumi
306
+ import pulumi_gcp as gcp
307
+
308
+ settings = gcp.logging.get_organization_settings(organization="123456789")
309
+ iam = gcp.kms.CryptoKeyIAMMember("iam",
310
+ crypto_key_id="kms-key",
311
+ role="roles/cloudkms.cryptoKeyEncrypterDecrypter",
312
+ member=f"serviceAccount:{settings.kms_service_account_id}")
313
+ example = gcp.logging.OrganizationSettings("example",
314
+ disable_default_sink=True,
315
+ kms_key_name="kms-key",
316
+ organization="123456789",
317
+ storage_location="us-central1",
318
+ opts=pulumi.ResourceOptions(depends_on=[iam]))
319
+ ```
320
+
321
+ ## Import
322
+
323
+ OrganizationSettings can be imported using any of these accepted formats* `organizations/{{organization}}/settings` * `{{organization}}` In Terraform v1.5.0 and later, use an [`import` block](https://developer.hashicorp.com/terraform/language/import) to import OrganizationSettings using one of the formats above. For exampletf import {
324
+
325
+ id = "organizations/{{organization}}/settings"
326
+
327
+ to = google_logging_organization_settings.default }
328
+
329
+ ```sh
330
+ $ pulumi import gcp:logging/organizationSettings:OrganizationSettings When using the [`terraform import` command](https://developer.hashicorp.com/terraform/cli/commands/import), OrganizationSettings can be imported using one of the formats above. For example
331
+ ```
332
+
333
+ ```sh
334
+ $ pulumi import gcp:logging/organizationSettings:OrganizationSettings default organizations/{{organization}}/settings
335
+ ```
336
+
337
+ ```sh
338
+ $ pulumi import gcp:logging/organizationSettings:OrganizationSettings default {{organization}}
339
+ ```
340
+
341
+ :param str resource_name: The name of the resource.
342
+ :param OrganizationSettingsArgs args: The arguments to use to populate this resource's properties.
343
+ :param pulumi.ResourceOptions opts: Options for the resource.
344
+ """
345
+ ...
346
+ def __init__(__self__, resource_name: str, *args, **kwargs):
347
+ resource_args, opts = _utilities.get_resource_args_opts(OrganizationSettingsArgs, pulumi.ResourceOptions, *args, **kwargs)
348
+ if resource_args is not None:
349
+ __self__._internal_init(resource_name, opts, **resource_args.__dict__)
350
+ else:
351
+ __self__._internal_init(resource_name, *args, **kwargs)
352
+
353
+ def _internal_init(__self__,
354
+ resource_name: str,
355
+ opts: Optional[pulumi.ResourceOptions] = None,
356
+ disable_default_sink: Optional[pulumi.Input[bool]] = None,
357
+ kms_key_name: Optional[pulumi.Input[str]] = None,
358
+ organization: Optional[pulumi.Input[str]] = None,
359
+ storage_location: Optional[pulumi.Input[str]] = None,
360
+ __props__=None):
361
+ opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
362
+ if not isinstance(opts, pulumi.ResourceOptions):
363
+ raise TypeError('Expected resource options to be a ResourceOptions instance')
364
+ if opts.id is None:
365
+ if __props__ is not None:
366
+ raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
367
+ __props__ = OrganizationSettingsArgs.__new__(OrganizationSettingsArgs)
368
+
369
+ __props__.__dict__["disable_default_sink"] = disable_default_sink
370
+ __props__.__dict__["kms_key_name"] = kms_key_name
371
+ if organization is None and not opts.urn:
372
+ raise TypeError("Missing required property 'organization'")
373
+ __props__.__dict__["organization"] = organization
374
+ __props__.__dict__["storage_location"] = storage_location
375
+ __props__.__dict__["kms_service_account_id"] = None
376
+ __props__.__dict__["logging_service_account_id"] = None
377
+ __props__.__dict__["name"] = None
378
+ super(OrganizationSettings, __self__).__init__(
379
+ 'gcp:logging/organizationSettings:OrganizationSettings',
380
+ resource_name,
381
+ __props__,
382
+ opts)
383
+
384
+ @staticmethod
385
+ def get(resource_name: str,
386
+ id: pulumi.Input[str],
387
+ opts: Optional[pulumi.ResourceOptions] = None,
388
+ disable_default_sink: Optional[pulumi.Input[bool]] = None,
389
+ kms_key_name: Optional[pulumi.Input[str]] = None,
390
+ kms_service_account_id: Optional[pulumi.Input[str]] = None,
391
+ logging_service_account_id: Optional[pulumi.Input[str]] = None,
392
+ name: Optional[pulumi.Input[str]] = None,
393
+ organization: Optional[pulumi.Input[str]] = None,
394
+ storage_location: Optional[pulumi.Input[str]] = None) -> 'OrganizationSettings':
395
+ """
396
+ Get an existing OrganizationSettings resource's state with the given name, id, and optional extra
397
+ properties used to qualify the lookup.
398
+
399
+ :param str resource_name: The unique name of the resulting resource.
400
+ :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
401
+ :param pulumi.ResourceOptions opts: Options for the resource.
402
+ :param pulumi.Input[bool] disable_default_sink: If set to true, the _Default sink in newly created projects and folders will created in a disabled state. This can be used to automatically disable log storage if there is already an aggregated sink configured in the hierarchy. The _Default sink can be re-enabled manually if needed.
403
+ :param pulumi.Input[str] kms_key_name: The resource name for the configured Cloud KMS key.
404
+ :param pulumi.Input[str] kms_service_account_id: The service account that will be used by the Log Router to access your Cloud KMS key.
405
+ :param pulumi.Input[str] logging_service_account_id: The service account for the given container. Sinks use this service account as their writerIdentity if no custom service account is provided.
406
+ :param pulumi.Input[str] name: The resource name of the settings.
407
+ :param pulumi.Input[str] organization: The organization for which to retrieve or configure settings.
408
+
409
+
410
+ - - -
411
+ :param pulumi.Input[str] storage_location: The storage location that Cloud Logging will use to create new resources when a location is needed but not explicitly provided.
412
+ """
413
+ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
414
+
415
+ __props__ = _OrganizationSettingsState.__new__(_OrganizationSettingsState)
416
+
417
+ __props__.__dict__["disable_default_sink"] = disable_default_sink
418
+ __props__.__dict__["kms_key_name"] = kms_key_name
419
+ __props__.__dict__["kms_service_account_id"] = kms_service_account_id
420
+ __props__.__dict__["logging_service_account_id"] = logging_service_account_id
421
+ __props__.__dict__["name"] = name
422
+ __props__.__dict__["organization"] = organization
423
+ __props__.__dict__["storage_location"] = storage_location
424
+ return OrganizationSettings(resource_name, opts=opts, __props__=__props__)
425
+
426
+ @property
427
+ @pulumi.getter(name="disableDefaultSink")
428
+ def disable_default_sink(self) -> pulumi.Output[bool]:
429
+ """
430
+ If set to true, the _Default sink in newly created projects and folders will created in a disabled state. This can be used to automatically disable log storage if there is already an aggregated sink configured in the hierarchy. The _Default sink can be re-enabled manually if needed.
431
+ """
432
+ return pulumi.get(self, "disable_default_sink")
433
+
434
+ @property
435
+ @pulumi.getter(name="kmsKeyName")
436
+ def kms_key_name(self) -> pulumi.Output[str]:
437
+ """
438
+ The resource name for the configured Cloud KMS key.
439
+ """
440
+ return pulumi.get(self, "kms_key_name")
441
+
442
+ @property
443
+ @pulumi.getter(name="kmsServiceAccountId")
444
+ def kms_service_account_id(self) -> pulumi.Output[str]:
445
+ """
446
+ The service account that will be used by the Log Router to access your Cloud KMS key.
447
+ """
448
+ return pulumi.get(self, "kms_service_account_id")
449
+
450
+ @property
451
+ @pulumi.getter(name="loggingServiceAccountId")
452
+ def logging_service_account_id(self) -> pulumi.Output[str]:
453
+ """
454
+ The service account for the given container. Sinks use this service account as their writerIdentity if no custom service account is provided.
455
+ """
456
+ return pulumi.get(self, "logging_service_account_id")
457
+
458
+ @property
459
+ @pulumi.getter
460
+ def name(self) -> pulumi.Output[str]:
461
+ """
462
+ The resource name of the settings.
463
+ """
464
+ return pulumi.get(self, "name")
465
+
466
+ @property
467
+ @pulumi.getter
468
+ def organization(self) -> pulumi.Output[str]:
469
+ """
470
+ The organization for which to retrieve or configure settings.
471
+
472
+
473
+ - - -
474
+ """
475
+ return pulumi.get(self, "organization")
476
+
477
+ @property
478
+ @pulumi.getter(name="storageLocation")
479
+ def storage_location(self) -> pulumi.Output[str]:
480
+ """
481
+ The storage location that Cloud Logging will use to create new resources when a location is needed but not explicitly provided.
482
+ """
483
+ return pulumi.get(self, "storage_location")
484
+
@@ -27,13 +27,13 @@ class OrganizationSinkArgs:
27
27
  name: Optional[pulumi.Input[str]] = None):
28
28
  """
29
29
  The set of arguments for constructing a OrganizationSink resource.
30
- :param pulumi.Input[str] destination: The destination of the sink (or, in other words, where logs are written to). Can be a
31
- Cloud Storage bucket, a PubSub topic, a BigQuery dataset or a Cloud Logging bucket. Examples:
30
+ :param pulumi.Input[str] destination: The destination of the sink (or, in other words, where logs are written to). Can be a Cloud Storage bucket, a PubSub topic, a BigQuery dataset, a Cloud Logging bucket, or a Google Cloud project. Examples:
32
31
 
33
32
  - `storage.googleapis.com/[GCS_BUCKET]`
34
33
  - `bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]`
35
34
  - `pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]`
36
- - `logging.googleapis.com/projects/[PROJECT_ID]]/locations/global/buckets/[BUCKET_ID]`
35
+ - `logging.googleapis.com/projects/[PROJECT_ID]/locations/global/buckets/[BUCKET_ID]`
36
+ - `logging.googleapis.com/projects/[PROJECT_ID]`
37
37
 
38
38
  The writer associated with the sink must have access to write to the above resource.
39
39
  :param pulumi.Input[str] org_id: The numeric ID of the organization to be exported to the sink.
@@ -69,13 +69,13 @@ class OrganizationSinkArgs:
69
69
  @pulumi.getter
70
70
  def destination(self) -> pulumi.Input[str]:
71
71
  """
72
- The destination of the sink (or, in other words, where logs are written to). Can be a
73
- Cloud Storage bucket, a PubSub topic, a BigQuery dataset or a Cloud Logging bucket. Examples:
72
+ The destination of the sink (or, in other words, where logs are written to). Can be a Cloud Storage bucket, a PubSub topic, a BigQuery dataset, a Cloud Logging bucket, or a Google Cloud project. Examples:
74
73
 
75
74
  - `storage.googleapis.com/[GCS_BUCKET]`
76
75
  - `bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]`
77
76
  - `pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]`
78
- - `logging.googleapis.com/projects/[PROJECT_ID]]/locations/global/buckets/[BUCKET_ID]`
77
+ - `logging.googleapis.com/projects/[PROJECT_ID]/locations/global/buckets/[BUCKET_ID]`
78
+ - `logging.googleapis.com/projects/[PROJECT_ID]`
79
79
 
80
80
  The writer associated with the sink must have access to write to the above resource.
81
81
  """
@@ -202,13 +202,13 @@ class _OrganizationSinkState:
202
202
  Input properties used for looking up and filtering OrganizationSink resources.
203
203
  :param pulumi.Input['OrganizationSinkBigqueryOptionsArgs'] bigquery_options: Options that affect sinks exporting data to BigQuery. Structure documented below.
204
204
  :param pulumi.Input[str] description: A description of this sink. The maximum length of the description is 8000 characters.
205
- :param pulumi.Input[str] destination: The destination of the sink (or, in other words, where logs are written to). Can be a
206
- Cloud Storage bucket, a PubSub topic, a BigQuery dataset or a Cloud Logging bucket. Examples:
205
+ :param pulumi.Input[str] destination: The destination of the sink (or, in other words, where logs are written to). Can be a Cloud Storage bucket, a PubSub topic, a BigQuery dataset, a Cloud Logging bucket, or a Google Cloud project. Examples:
207
206
 
208
207
  - `storage.googleapis.com/[GCS_BUCKET]`
209
208
  - `bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]`
210
209
  - `pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]`
211
- - `logging.googleapis.com/projects/[PROJECT_ID]]/locations/global/buckets/[BUCKET_ID]`
210
+ - `logging.googleapis.com/projects/[PROJECT_ID]/locations/global/buckets/[BUCKET_ID]`
211
+ - `logging.googleapis.com/projects/[PROJECT_ID]`
212
212
 
213
213
  The writer associated with the sink must have access to write to the above resource.
214
214
  :param pulumi.Input[bool] disabled: If set to True, then this sink is disabled and it does not export any log entries.
@@ -272,13 +272,13 @@ class _OrganizationSinkState:
272
272
  @pulumi.getter
273
273
  def destination(self) -> Optional[pulumi.Input[str]]:
274
274
  """
275
- The destination of the sink (or, in other words, where logs are written to). Can be a
276
- Cloud Storage bucket, a PubSub topic, a BigQuery dataset or a Cloud Logging bucket. Examples:
275
+ The destination of the sink (or, in other words, where logs are written to). Can be a Cloud Storage bucket, a PubSub topic, a BigQuery dataset, a Cloud Logging bucket, or a Google Cloud project. Examples:
277
276
 
278
277
  - `storage.googleapis.com/[GCS_BUCKET]`
279
278
  - `bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]`
280
279
  - `pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]`
281
- - `logging.googleapis.com/projects/[PROJECT_ID]]/locations/global/buckets/[BUCKET_ID]`
280
+ - `logging.googleapis.com/projects/[PROJECT_ID]/locations/global/buckets/[BUCKET_ID]`
281
+ - `logging.googleapis.com/projects/[PROJECT_ID]`
282
282
 
283
283
  The writer associated with the sink must have access to write to the above resource.
284
284
  """
@@ -436,13 +436,13 @@ class OrganizationSink(pulumi.CustomResource):
436
436
  :param pulumi.ResourceOptions opts: Options for the resource.
437
437
  :param pulumi.Input[pulumi.InputType['OrganizationSinkBigqueryOptionsArgs']] bigquery_options: Options that affect sinks exporting data to BigQuery. Structure documented below.
438
438
  :param pulumi.Input[str] description: A description of this sink. The maximum length of the description is 8000 characters.
439
- :param pulumi.Input[str] destination: The destination of the sink (or, in other words, where logs are written to). Can be a
440
- Cloud Storage bucket, a PubSub topic, a BigQuery dataset or a Cloud Logging bucket. Examples:
439
+ :param pulumi.Input[str] destination: The destination of the sink (or, in other words, where logs are written to). Can be a Cloud Storage bucket, a PubSub topic, a BigQuery dataset, a Cloud Logging bucket, or a Google Cloud project. Examples:
441
440
 
442
441
  - `storage.googleapis.com/[GCS_BUCKET]`
443
442
  - `bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]`
444
443
  - `pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]`
445
- - `logging.googleapis.com/projects/[PROJECT_ID]]/locations/global/buckets/[BUCKET_ID]`
444
+ - `logging.googleapis.com/projects/[PROJECT_ID]/locations/global/buckets/[BUCKET_ID]`
445
+ - `logging.googleapis.com/projects/[PROJECT_ID]`
446
446
 
447
447
  The writer associated with the sink must have access to write to the above resource.
448
448
  :param pulumi.Input[bool] disabled: If set to True, then this sink is disabled and it does not export any log entries.
@@ -577,13 +577,13 @@ class OrganizationSink(pulumi.CustomResource):
577
577
  :param pulumi.ResourceOptions opts: Options for the resource.
578
578
  :param pulumi.Input[pulumi.InputType['OrganizationSinkBigqueryOptionsArgs']] bigquery_options: Options that affect sinks exporting data to BigQuery. Structure documented below.
579
579
  :param pulumi.Input[str] description: A description of this sink. The maximum length of the description is 8000 characters.
580
- :param pulumi.Input[str] destination: The destination of the sink (or, in other words, where logs are written to). Can be a
581
- Cloud Storage bucket, a PubSub topic, a BigQuery dataset or a Cloud Logging bucket. Examples:
580
+ :param pulumi.Input[str] destination: The destination of the sink (or, in other words, where logs are written to). Can be a Cloud Storage bucket, a PubSub topic, a BigQuery dataset, a Cloud Logging bucket, or a Google Cloud project. Examples:
582
581
 
583
582
  - `storage.googleapis.com/[GCS_BUCKET]`
584
583
  - `bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]`
585
584
  - `pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]`
586
- - `logging.googleapis.com/projects/[PROJECT_ID]]/locations/global/buckets/[BUCKET_ID]`
585
+ - `logging.googleapis.com/projects/[PROJECT_ID]/locations/global/buckets/[BUCKET_ID]`
586
+ - `logging.googleapis.com/projects/[PROJECT_ID]`
587
587
 
588
588
  The writer associated with the sink must have access to write to the above resource.
589
589
  :param pulumi.Input[bool] disabled: If set to True, then this sink is disabled and it does not export any log entries.
@@ -634,13 +634,13 @@ class OrganizationSink(pulumi.CustomResource):
634
634
  @pulumi.getter
635
635
  def destination(self) -> pulumi.Output[str]:
636
636
  """
637
- The destination of the sink (or, in other words, where logs are written to). Can be a
638
- Cloud Storage bucket, a PubSub topic, a BigQuery dataset or a Cloud Logging bucket. Examples:
637
+ The destination of the sink (or, in other words, where logs are written to). Can be a Cloud Storage bucket, a PubSub topic, a BigQuery dataset, a Cloud Logging bucket, or a Google Cloud project. Examples:
639
638
 
640
639
  - `storage.googleapis.com/[GCS_BUCKET]`
641
640
  - `bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]`
642
641
  - `pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]`
643
- - `logging.googleapis.com/projects/[PROJECT_ID]]/locations/global/buckets/[BUCKET_ID]`
642
+ - `logging.googleapis.com/projects/[PROJECT_ID]/locations/global/buckets/[BUCKET_ID]`
643
+ - `logging.googleapis.com/projects/[PROJECT_ID]`
644
644
 
645
645
  The writer associated with the sink must have access to write to the above resource.
646
646
  """