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,197 @@
|
|
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
|
+
'GetOrganizationSettingsResult',
|
14
|
+
'AwaitableGetOrganizationSettingsResult',
|
15
|
+
'get_organization_settings',
|
16
|
+
'get_organization_settings_output',
|
17
|
+
]
|
18
|
+
|
19
|
+
@pulumi.output_type
|
20
|
+
class GetOrganizationSettingsResult:
|
21
|
+
"""
|
22
|
+
A collection of values returned by getOrganizationSettings.
|
23
|
+
"""
|
24
|
+
def __init__(__self__, disable_default_sink=None, id=None, kms_key_name=None, kms_service_account_id=None, logging_service_account_id=None, name=None, organization=None, storage_location=None):
|
25
|
+
if disable_default_sink and not isinstance(disable_default_sink, bool):
|
26
|
+
raise TypeError("Expected argument 'disable_default_sink' to be a bool")
|
27
|
+
pulumi.set(__self__, "disable_default_sink", disable_default_sink)
|
28
|
+
if id and not isinstance(id, str):
|
29
|
+
raise TypeError("Expected argument 'id' to be a str")
|
30
|
+
pulumi.set(__self__, "id", id)
|
31
|
+
if kms_key_name and not isinstance(kms_key_name, str):
|
32
|
+
raise TypeError("Expected argument 'kms_key_name' to be a str")
|
33
|
+
pulumi.set(__self__, "kms_key_name", kms_key_name)
|
34
|
+
if kms_service_account_id and not isinstance(kms_service_account_id, str):
|
35
|
+
raise TypeError("Expected argument 'kms_service_account_id' to be a str")
|
36
|
+
pulumi.set(__self__, "kms_service_account_id", kms_service_account_id)
|
37
|
+
if logging_service_account_id and not isinstance(logging_service_account_id, str):
|
38
|
+
raise TypeError("Expected argument 'logging_service_account_id' to be a str")
|
39
|
+
pulumi.set(__self__, "logging_service_account_id", logging_service_account_id)
|
40
|
+
if name and not isinstance(name, str):
|
41
|
+
raise TypeError("Expected argument 'name' to be a str")
|
42
|
+
pulumi.set(__self__, "name", name)
|
43
|
+
if organization and not isinstance(organization, str):
|
44
|
+
raise TypeError("Expected argument 'organization' to be a str")
|
45
|
+
pulumi.set(__self__, "organization", organization)
|
46
|
+
if storage_location and not isinstance(storage_location, str):
|
47
|
+
raise TypeError("Expected argument 'storage_location' to be a str")
|
48
|
+
pulumi.set(__self__, "storage_location", storage_location)
|
49
|
+
|
50
|
+
@property
|
51
|
+
@pulumi.getter(name="disableDefaultSink")
|
52
|
+
def disable_default_sink(self) -> bool:
|
53
|
+
"""
|
54
|
+
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.
|
55
|
+
"""
|
56
|
+
return pulumi.get(self, "disable_default_sink")
|
57
|
+
|
58
|
+
@property
|
59
|
+
@pulumi.getter
|
60
|
+
def id(self) -> str:
|
61
|
+
"""
|
62
|
+
The provider-assigned unique ID for this managed resource.
|
63
|
+
"""
|
64
|
+
return pulumi.get(self, "id")
|
65
|
+
|
66
|
+
@property
|
67
|
+
@pulumi.getter(name="kmsKeyName")
|
68
|
+
def kms_key_name(self) -> str:
|
69
|
+
"""
|
70
|
+
The resource name for the configured Cloud KMS key.
|
71
|
+
KMS key name format:
|
72
|
+
`'projects/[PROJECT_ID]/locations/[LOCATION]/keyRings/[KEYRING]/cryptoKeys/[KEY]'`
|
73
|
+
To enable CMEK for the bucket, set this field to a valid kmsKeyName for which the associated service account has the required cloudkms.cryptoKeyEncrypterDecrypter roles assigned for the key.
|
74
|
+
The Cloud KMS key used by the bucket can be updated by changing the kmsKeyName to a new valid key name. Encryption operations that are in progress will be completed with the key that was in use when they started. Decryption operations will be completed using the key that was used at the time of encryption unless access to that key has been revoked.
|
75
|
+
See [Enabling CMEK for Logging Buckets](https://cloud.google.com/logging/docs/routing/managed-encryption-storage) for more information.
|
76
|
+
"""
|
77
|
+
return pulumi.get(self, "kms_key_name")
|
78
|
+
|
79
|
+
@property
|
80
|
+
@pulumi.getter(name="kmsServiceAccountId")
|
81
|
+
def kms_service_account_id(self) -> str:
|
82
|
+
"""
|
83
|
+
The service account associated with a project for which CMEK will apply.
|
84
|
+
Before enabling CMEK for a logging bucket, you must first assign the cloudkms.cryptoKeyEncrypterDecrypter role to the service account associated with the project for which CMEK will apply. See [Enabling CMEK for Logging Buckets](https://cloud.google.com/logging/docs/routing/managed-encryption-storage) for more information.
|
85
|
+
"""
|
86
|
+
return pulumi.get(self, "kms_service_account_id")
|
87
|
+
|
88
|
+
@property
|
89
|
+
@pulumi.getter(name="loggingServiceAccountId")
|
90
|
+
def logging_service_account_id(self) -> str:
|
91
|
+
"""
|
92
|
+
The service account for the given container. Sinks use this service account as their writerIdentity if no custom service account is provided.
|
93
|
+
"""
|
94
|
+
return pulumi.get(self, "logging_service_account_id")
|
95
|
+
|
96
|
+
@property
|
97
|
+
@pulumi.getter
|
98
|
+
def name(self) -> str:
|
99
|
+
"""
|
100
|
+
The resource name of the settings.
|
101
|
+
"""
|
102
|
+
return pulumi.get(self, "name")
|
103
|
+
|
104
|
+
@property
|
105
|
+
@pulumi.getter
|
106
|
+
def organization(self) -> str:
|
107
|
+
return pulumi.get(self, "organization")
|
108
|
+
|
109
|
+
@property
|
110
|
+
@pulumi.getter(name="storageLocation")
|
111
|
+
def storage_location(self) -> str:
|
112
|
+
"""
|
113
|
+
The storage location that Cloud Logging will use to create new resources when a location is needed but not explicitly provided.
|
114
|
+
"""
|
115
|
+
return pulumi.get(self, "storage_location")
|
116
|
+
|
117
|
+
|
118
|
+
class AwaitableGetOrganizationSettingsResult(GetOrganizationSettingsResult):
|
119
|
+
# pylint: disable=using-constant-test
|
120
|
+
def __await__(self):
|
121
|
+
if False:
|
122
|
+
yield self
|
123
|
+
return GetOrganizationSettingsResult(
|
124
|
+
disable_default_sink=self.disable_default_sink,
|
125
|
+
id=self.id,
|
126
|
+
kms_key_name=self.kms_key_name,
|
127
|
+
kms_service_account_id=self.kms_service_account_id,
|
128
|
+
logging_service_account_id=self.logging_service_account_id,
|
129
|
+
name=self.name,
|
130
|
+
organization=self.organization,
|
131
|
+
storage_location=self.storage_location)
|
132
|
+
|
133
|
+
|
134
|
+
def get_organization_settings(organization: Optional[str] = None,
|
135
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetOrganizationSettingsResult:
|
136
|
+
"""
|
137
|
+
Describes the settings associated with a organization.
|
138
|
+
|
139
|
+
To get more information about LoggingOrganizationSettings, see:
|
140
|
+
|
141
|
+
* [API documentation](https://cloud.google.com/logging/docs/reference/v2/rest/v2/organizations/getSettings)
|
142
|
+
* [Configure default settings for organizations and folders](https://cloud.google.com/logging/docs/default-settings).
|
143
|
+
|
144
|
+
## Example Usage
|
145
|
+
### Logging Organization Settings Basic
|
146
|
+
|
147
|
+
```python
|
148
|
+
import pulumi
|
149
|
+
import pulumi_gcp as gcp
|
150
|
+
|
151
|
+
settings = gcp.logging.get_organization_settings(organization="my-organization-name")
|
152
|
+
```
|
153
|
+
|
154
|
+
|
155
|
+
:param str organization: The ID of the organization for which to retrieve settings.
|
156
|
+
"""
|
157
|
+
__args__ = dict()
|
158
|
+
__args__['organization'] = organization
|
159
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
160
|
+
__ret__ = pulumi.runtime.invoke('gcp:logging/getOrganizationSettings:getOrganizationSettings', __args__, opts=opts, typ=GetOrganizationSettingsResult).value
|
161
|
+
|
162
|
+
return AwaitableGetOrganizationSettingsResult(
|
163
|
+
disable_default_sink=pulumi.get(__ret__, 'disable_default_sink'),
|
164
|
+
id=pulumi.get(__ret__, 'id'),
|
165
|
+
kms_key_name=pulumi.get(__ret__, 'kms_key_name'),
|
166
|
+
kms_service_account_id=pulumi.get(__ret__, 'kms_service_account_id'),
|
167
|
+
logging_service_account_id=pulumi.get(__ret__, 'logging_service_account_id'),
|
168
|
+
name=pulumi.get(__ret__, 'name'),
|
169
|
+
organization=pulumi.get(__ret__, 'organization'),
|
170
|
+
storage_location=pulumi.get(__ret__, 'storage_location'))
|
171
|
+
|
172
|
+
|
173
|
+
@_utilities.lift_output_func(get_organization_settings)
|
174
|
+
def get_organization_settings_output(organization: Optional[pulumi.Input[str]] = None,
|
175
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetOrganizationSettingsResult]:
|
176
|
+
"""
|
177
|
+
Describes the settings associated with a organization.
|
178
|
+
|
179
|
+
To get more information about LoggingOrganizationSettings, see:
|
180
|
+
|
181
|
+
* [API documentation](https://cloud.google.com/logging/docs/reference/v2/rest/v2/organizations/getSettings)
|
182
|
+
* [Configure default settings for organizations and folders](https://cloud.google.com/logging/docs/default-settings).
|
183
|
+
|
184
|
+
## Example Usage
|
185
|
+
### Logging Organization Settings Basic
|
186
|
+
|
187
|
+
```python
|
188
|
+
import pulumi
|
189
|
+
import pulumi_gcp as gcp
|
190
|
+
|
191
|
+
settings = gcp.logging.get_organization_settings(organization="my-organization-name")
|
192
|
+
```
|
193
|
+
|
194
|
+
|
195
|
+
:param str organization: The ID of the organization for which to retrieve settings.
|
196
|
+
"""
|
197
|
+
...
|
@@ -0,0 +1,197 @@
|
|
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
|
+
'GetProjectSettingsResult',
|
14
|
+
'AwaitableGetProjectSettingsResult',
|
15
|
+
'get_project_settings',
|
16
|
+
'get_project_settings_output',
|
17
|
+
]
|
18
|
+
|
19
|
+
@pulumi.output_type
|
20
|
+
class GetProjectSettingsResult:
|
21
|
+
"""
|
22
|
+
A collection of values returned by getProjectSettings.
|
23
|
+
"""
|
24
|
+
def __init__(__self__, disable_default_sink=None, id=None, kms_key_name=None, kms_service_account_id=None, logging_service_account_id=None, name=None, project=None, storage_location=None):
|
25
|
+
if disable_default_sink and not isinstance(disable_default_sink, bool):
|
26
|
+
raise TypeError("Expected argument 'disable_default_sink' to be a bool")
|
27
|
+
pulumi.set(__self__, "disable_default_sink", disable_default_sink)
|
28
|
+
if id and not isinstance(id, str):
|
29
|
+
raise TypeError("Expected argument 'id' to be a str")
|
30
|
+
pulumi.set(__self__, "id", id)
|
31
|
+
if kms_key_name and not isinstance(kms_key_name, str):
|
32
|
+
raise TypeError("Expected argument 'kms_key_name' to be a str")
|
33
|
+
pulumi.set(__self__, "kms_key_name", kms_key_name)
|
34
|
+
if kms_service_account_id and not isinstance(kms_service_account_id, str):
|
35
|
+
raise TypeError("Expected argument 'kms_service_account_id' to be a str")
|
36
|
+
pulumi.set(__self__, "kms_service_account_id", kms_service_account_id)
|
37
|
+
if logging_service_account_id and not isinstance(logging_service_account_id, str):
|
38
|
+
raise TypeError("Expected argument 'logging_service_account_id' to be a str")
|
39
|
+
pulumi.set(__self__, "logging_service_account_id", logging_service_account_id)
|
40
|
+
if name and not isinstance(name, str):
|
41
|
+
raise TypeError("Expected argument 'name' to be a str")
|
42
|
+
pulumi.set(__self__, "name", name)
|
43
|
+
if project and not isinstance(project, str):
|
44
|
+
raise TypeError("Expected argument 'project' to be a str")
|
45
|
+
pulumi.set(__self__, "project", project)
|
46
|
+
if storage_location and not isinstance(storage_location, str):
|
47
|
+
raise TypeError("Expected argument 'storage_location' to be a str")
|
48
|
+
pulumi.set(__self__, "storage_location", storage_location)
|
49
|
+
|
50
|
+
@property
|
51
|
+
@pulumi.getter(name="disableDefaultSink")
|
52
|
+
def disable_default_sink(self) -> bool:
|
53
|
+
"""
|
54
|
+
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.
|
55
|
+
"""
|
56
|
+
return pulumi.get(self, "disable_default_sink")
|
57
|
+
|
58
|
+
@property
|
59
|
+
@pulumi.getter
|
60
|
+
def id(self) -> str:
|
61
|
+
"""
|
62
|
+
The provider-assigned unique ID for this managed resource.
|
63
|
+
"""
|
64
|
+
return pulumi.get(self, "id")
|
65
|
+
|
66
|
+
@property
|
67
|
+
@pulumi.getter(name="kmsKeyName")
|
68
|
+
def kms_key_name(self) -> str:
|
69
|
+
"""
|
70
|
+
The resource name for the configured Cloud KMS key.
|
71
|
+
KMS key name format:
|
72
|
+
`'projects/[PROJECT_ID]/locations/[LOCATION]/keyRings/[KEYRING]/cryptoKeys/[KEY]'`
|
73
|
+
To enable CMEK for the bucket, set this field to a valid kmsKeyName for which the associated service account has the required cloudkms.cryptoKeyEncrypterDecrypter roles assigned for the key.
|
74
|
+
The Cloud KMS key used by the bucket can be updated by changing the kmsKeyName to a new valid key name. Encryption operations that are in progress will be completed with the key that was in use when they started. Decryption operations will be completed using the key that was used at the time of encryption unless access to that key has been revoked.
|
75
|
+
See [Enabling CMEK for Logging Buckets](https://cloud.google.com/logging/docs/routing/managed-encryption-storage) for more information.
|
76
|
+
"""
|
77
|
+
return pulumi.get(self, "kms_key_name")
|
78
|
+
|
79
|
+
@property
|
80
|
+
@pulumi.getter(name="kmsServiceAccountId")
|
81
|
+
def kms_service_account_id(self) -> str:
|
82
|
+
"""
|
83
|
+
The service account associated with a project for which CMEK will apply.
|
84
|
+
Before enabling CMEK for a logging bucket, you must first assign the cloudkms.cryptoKeyEncrypterDecrypter role to the service account associated with the project for which CMEK will apply. See [Enabling CMEK for Logging Buckets](https://cloud.google.com/logging/docs/routing/managed-encryption-storage) for more information.
|
85
|
+
"""
|
86
|
+
return pulumi.get(self, "kms_service_account_id")
|
87
|
+
|
88
|
+
@property
|
89
|
+
@pulumi.getter(name="loggingServiceAccountId")
|
90
|
+
def logging_service_account_id(self) -> str:
|
91
|
+
"""
|
92
|
+
The service account for the given container. Sinks use this service account as their writerIdentity if no custom service account is provided.
|
93
|
+
"""
|
94
|
+
return pulumi.get(self, "logging_service_account_id")
|
95
|
+
|
96
|
+
@property
|
97
|
+
@pulumi.getter
|
98
|
+
def name(self) -> str:
|
99
|
+
"""
|
100
|
+
The resource name of the settings.
|
101
|
+
"""
|
102
|
+
return pulumi.get(self, "name")
|
103
|
+
|
104
|
+
@property
|
105
|
+
@pulumi.getter
|
106
|
+
def project(self) -> str:
|
107
|
+
return pulumi.get(self, "project")
|
108
|
+
|
109
|
+
@property
|
110
|
+
@pulumi.getter(name="storageLocation")
|
111
|
+
def storage_location(self) -> str:
|
112
|
+
"""
|
113
|
+
The storage location that Cloud Logging will use to create new resources when a location is needed but not explicitly provided.
|
114
|
+
"""
|
115
|
+
return pulumi.get(self, "storage_location")
|
116
|
+
|
117
|
+
|
118
|
+
class AwaitableGetProjectSettingsResult(GetProjectSettingsResult):
|
119
|
+
# pylint: disable=using-constant-test
|
120
|
+
def __await__(self):
|
121
|
+
if False:
|
122
|
+
yield self
|
123
|
+
return GetProjectSettingsResult(
|
124
|
+
disable_default_sink=self.disable_default_sink,
|
125
|
+
id=self.id,
|
126
|
+
kms_key_name=self.kms_key_name,
|
127
|
+
kms_service_account_id=self.kms_service_account_id,
|
128
|
+
logging_service_account_id=self.logging_service_account_id,
|
129
|
+
name=self.name,
|
130
|
+
project=self.project,
|
131
|
+
storage_location=self.storage_location)
|
132
|
+
|
133
|
+
|
134
|
+
def get_project_settings(project: Optional[str] = None,
|
135
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetProjectSettingsResult:
|
136
|
+
"""
|
137
|
+
Describes the settings associated with a project.
|
138
|
+
|
139
|
+
To get more information about LoggingProjectSettings, see:
|
140
|
+
|
141
|
+
* [API documentation](https://cloud.google.com/logging/docs/reference/v2/rest/v2/projects/getSettings)
|
142
|
+
* [Configure default settings for organizations and folders](https://cloud.google.com/logging/docs/default-settings).
|
143
|
+
|
144
|
+
## Example Usage
|
145
|
+
### Logging Project Settings Basic
|
146
|
+
|
147
|
+
```python
|
148
|
+
import pulumi
|
149
|
+
import pulumi_gcp as gcp
|
150
|
+
|
151
|
+
settings = gcp.logging.get_project_settings(project="my-project-name")
|
152
|
+
```
|
153
|
+
|
154
|
+
|
155
|
+
:param str project: The ID of the project for which to retrieve settings.
|
156
|
+
"""
|
157
|
+
__args__ = dict()
|
158
|
+
__args__['project'] = project
|
159
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
160
|
+
__ret__ = pulumi.runtime.invoke('gcp:logging/getProjectSettings:getProjectSettings', __args__, opts=opts, typ=GetProjectSettingsResult).value
|
161
|
+
|
162
|
+
return AwaitableGetProjectSettingsResult(
|
163
|
+
disable_default_sink=pulumi.get(__ret__, 'disable_default_sink'),
|
164
|
+
id=pulumi.get(__ret__, 'id'),
|
165
|
+
kms_key_name=pulumi.get(__ret__, 'kms_key_name'),
|
166
|
+
kms_service_account_id=pulumi.get(__ret__, 'kms_service_account_id'),
|
167
|
+
logging_service_account_id=pulumi.get(__ret__, 'logging_service_account_id'),
|
168
|
+
name=pulumi.get(__ret__, 'name'),
|
169
|
+
project=pulumi.get(__ret__, 'project'),
|
170
|
+
storage_location=pulumi.get(__ret__, 'storage_location'))
|
171
|
+
|
172
|
+
|
173
|
+
@_utilities.lift_output_func(get_project_settings)
|
174
|
+
def get_project_settings_output(project: Optional[pulumi.Input[str]] = None,
|
175
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetProjectSettingsResult]:
|
176
|
+
"""
|
177
|
+
Describes the settings associated with a project.
|
178
|
+
|
179
|
+
To get more information about LoggingProjectSettings, see:
|
180
|
+
|
181
|
+
* [API documentation](https://cloud.google.com/logging/docs/reference/v2/rest/v2/projects/getSettings)
|
182
|
+
* [Configure default settings for organizations and folders](https://cloud.google.com/logging/docs/default-settings).
|
183
|
+
|
184
|
+
## Example Usage
|
185
|
+
### Logging Project Settings Basic
|
186
|
+
|
187
|
+
```python
|
188
|
+
import pulumi
|
189
|
+
import pulumi_gcp as gcp
|
190
|
+
|
191
|
+
settings = gcp.logging.get_project_settings(project="my-project-name")
|
192
|
+
```
|
193
|
+
|
194
|
+
|
195
|
+
:param str project: The ID of the project for which to retrieve settings.
|
196
|
+
"""
|
197
|
+
...
|
@@ -0,0 +1,8 @@
|
|
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
|
+
from .. import _utilities
|
6
|
+
import typing
|
7
|
+
# Export this package's modules as members:
|
8
|
+
from .group import *
|