pulumi-gcp 8.2.0a1726671837__py3-none-any.whl → 8.3.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.
- pulumi_gcp/__init__.py +158 -0
- pulumi_gcp/alloydb/_inputs.py +20 -0
- pulumi_gcp/alloydb/instance.py +36 -0
- pulumi_gcp/alloydb/outputs.py +14 -0
- pulumi_gcp/bigquery/__init__.py +1 -0
- pulumi_gcp/bigquery/get_tables.py +143 -0
- pulumi_gcp/bigquery/outputs.py +30 -0
- pulumi_gcp/compute/__init__.py +2 -0
- pulumi_gcp/compute/_inputs.py +12481 -9158
- pulumi_gcp/compute/attached_disk.py +103 -0
- pulumi_gcp/compute/backend_service.py +29 -22
- pulumi_gcp/compute/firewall_policy_with_rules.py +769 -0
- pulumi_gcp/compute/get_instance.py +3 -0
- pulumi_gcp/compute/network_firewall_policy_with_rules.py +826 -0
- pulumi_gcp/compute/outputs.py +3695 -1293
- pulumi_gcp/compute/region_backend_service.py +29 -22
- pulumi_gcp/compute/region_target_http_proxy.py +159 -0
- pulumi_gcp/compute/region_target_https_proxy.py +175 -0
- pulumi_gcp/compute/router_nat.py +27 -66
- pulumi_gcp/compute/service_attachment.py +75 -0
- pulumi_gcp/compute/target_http_proxy.py +49 -28
- pulumi_gcp/compute/target_https_proxy.py +49 -28
- pulumi_gcp/config/__init__.pyi +6 -0
- pulumi_gcp/config/vars.py +12 -0
- pulumi_gcp/container/_inputs.py +168 -99
- pulumi_gcp/container/attached_cluster.py +54 -1
- pulumi_gcp/container/outputs.py +155 -70
- pulumi_gcp/databasemigrationservice/__init__.py +1 -0
- pulumi_gcp/databasemigrationservice/_inputs.py +362 -0
- pulumi_gcp/databasemigrationservice/migration_job.py +1739 -0
- pulumi_gcp/databasemigrationservice/outputs.py +268 -0
- pulumi_gcp/dataproc/get_metastore_service.py +11 -1
- pulumi_gcp/dataproc/metastore_federation.py +8 -8
- pulumi_gcp/dataproc/metastore_service.py +95 -0
- pulumi_gcp/datastream/stream.py +21 -14
- pulumi_gcp/developerconnect/__init__.py +11 -0
- pulumi_gcp/developerconnect/_inputs.py +304 -0
- pulumi_gcp/developerconnect/connection.py +1037 -0
- pulumi_gcp/developerconnect/git_repository_link.py +873 -0
- pulumi_gcp/developerconnect/outputs.py +249 -0
- pulumi_gcp/discoveryengine/__init__.py +1 -0
- pulumi_gcp/discoveryengine/_inputs.py +131 -0
- pulumi_gcp/discoveryengine/outputs.py +131 -0
- pulumi_gcp/discoveryengine/target_site.py +870 -0
- pulumi_gcp/dns/managed_zone.py +1 -1
- pulumi_gcp/filestore/get_instance.py +21 -1
- pulumi_gcp/filestore/instance.py +94 -0
- pulumi_gcp/gkehub/feature_membership.py +140 -62
- pulumi_gcp/gkeonprem/_inputs.py +3 -3
- pulumi_gcp/gkeonprem/outputs.py +2 -2
- pulumi_gcp/healthcare/__init__.py +1 -0
- pulumi_gcp/healthcare/_inputs.py +39 -0
- pulumi_gcp/healthcare/outputs.py +40 -0
- pulumi_gcp/healthcare/workspace.py +465 -0
- pulumi_gcp/looker/instance.py +81 -0
- pulumi_gcp/memorystore/__init__.py +10 -0
- pulumi_gcp/memorystore/_inputs.py +731 -0
- pulumi_gcp/memorystore/instance.py +1663 -0
- pulumi_gcp/memorystore/outputs.py +598 -0
- pulumi_gcp/netapp/_inputs.py +63 -0
- pulumi_gcp/netapp/outputs.py +57 -0
- pulumi_gcp/netapp/storage_pool.py +54 -0
- pulumi_gcp/netapp/volume.py +183 -0
- pulumi_gcp/organizations/folder.py +52 -33
- pulumi_gcp/provider.py +60 -0
- pulumi_gcp/pubsub/subscription.py +43 -7
- pulumi_gcp/pulumi-plugin.json +1 -1
- pulumi_gcp/secretmanager/__init__.py +8 -0
- pulumi_gcp/secretmanager/_inputs.py +308 -0
- pulumi_gcp/secretmanager/get_regional_secret.py +279 -0
- pulumi_gcp/secretmanager/get_regional_secret_iam_policy.py +173 -0
- pulumi_gcp/secretmanager/get_regional_secret_version.py +241 -0
- pulumi_gcp/secretmanager/outputs.py +336 -0
- pulumi_gcp/secretmanager/regional_secret.py +1433 -0
- pulumi_gcp/secretmanager/regional_secret_iam_binding.py +1082 -0
- pulumi_gcp/secretmanager/regional_secret_iam_member.py +1082 -0
- pulumi_gcp/secretmanager/regional_secret_iam_policy.py +901 -0
- pulumi_gcp/secretmanager/regional_secret_version.py +753 -0
- pulumi_gcp/securitycenter/__init__.py +4 -0
- pulumi_gcp/securitycenter/folder_scc_big_query_export.py +795 -0
- pulumi_gcp/securitycenter/organization_scc_big_query_export.py +738 -0
- pulumi_gcp/securitycenter/project_scc_big_query_export.py +749 -0
- pulumi_gcp/securitycenter/v2_organization_scc_big_query_export.py +862 -0
- pulumi_gcp/securitycenter/v2_organization_scc_big_query_exports.py +6 -2
- pulumi_gcp/securitycenter/v2_project_mute_config.py +2 -2
- pulumi_gcp/siteverification/__init__.py +3 -0
- pulumi_gcp/siteverification/_inputs.py +85 -0
- pulumi_gcp/siteverification/outputs.py +57 -0
- pulumi_gcp/siteverification/web_resource.py +398 -0
- pulumi_gcp/spanner/__init__.py +1 -0
- pulumi_gcp/spanner/_inputs.py +129 -0
- pulumi_gcp/spanner/backup_schedule.py +748 -0
- pulumi_gcp/spanner/get_instance.py +11 -1
- pulumi_gcp/spanner/instance.py +56 -0
- pulumi_gcp/spanner/outputs.py +93 -0
- pulumi_gcp/vpcaccess/connector.py +21 -28
- {pulumi_gcp-8.2.0a1726671837.dist-info → pulumi_gcp-8.3.0.dist-info}/METADATA +1 -1
- {pulumi_gcp-8.2.0a1726671837.dist-info → pulumi_gcp-8.3.0.dist-info}/RECORD +100 -69
- {pulumi_gcp-8.2.0a1726671837.dist-info → pulumi_gcp-8.3.0.dist-info}/WHEEL +0 -0
- {pulumi_gcp-8.2.0a1726671837.dist-info → pulumi_gcp-8.3.0.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,173 @@
|
|
1
|
+
# coding=utf-8
|
2
|
+
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
4
|
+
|
5
|
+
import copy
|
6
|
+
import warnings
|
7
|
+
import sys
|
8
|
+
import pulumi
|
9
|
+
import pulumi.runtime
|
10
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
11
|
+
if sys.version_info >= (3, 11):
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
13
|
+
else:
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
15
|
+
from .. import _utilities
|
16
|
+
|
17
|
+
__all__ = [
|
18
|
+
'GetRegionalSecretIamPolicyResult',
|
19
|
+
'AwaitableGetRegionalSecretIamPolicyResult',
|
20
|
+
'get_regional_secret_iam_policy',
|
21
|
+
'get_regional_secret_iam_policy_output',
|
22
|
+
]
|
23
|
+
|
24
|
+
@pulumi.output_type
|
25
|
+
class GetRegionalSecretIamPolicyResult:
|
26
|
+
"""
|
27
|
+
A collection of values returned by getRegionalSecretIamPolicy.
|
28
|
+
"""
|
29
|
+
def __init__(__self__, etag=None, id=None, location=None, policy_data=None, project=None, secret_id=None):
|
30
|
+
if etag and not isinstance(etag, str):
|
31
|
+
raise TypeError("Expected argument 'etag' to be a str")
|
32
|
+
pulumi.set(__self__, "etag", etag)
|
33
|
+
if id and not isinstance(id, str):
|
34
|
+
raise TypeError("Expected argument 'id' to be a str")
|
35
|
+
pulumi.set(__self__, "id", id)
|
36
|
+
if location and not isinstance(location, str):
|
37
|
+
raise TypeError("Expected argument 'location' to be a str")
|
38
|
+
pulumi.set(__self__, "location", location)
|
39
|
+
if policy_data and not isinstance(policy_data, str):
|
40
|
+
raise TypeError("Expected argument 'policy_data' to be a str")
|
41
|
+
pulumi.set(__self__, "policy_data", policy_data)
|
42
|
+
if project and not isinstance(project, str):
|
43
|
+
raise TypeError("Expected argument 'project' to be a str")
|
44
|
+
pulumi.set(__self__, "project", project)
|
45
|
+
if secret_id and not isinstance(secret_id, str):
|
46
|
+
raise TypeError("Expected argument 'secret_id' to be a str")
|
47
|
+
pulumi.set(__self__, "secret_id", secret_id)
|
48
|
+
|
49
|
+
@property
|
50
|
+
@pulumi.getter
|
51
|
+
def etag(self) -> str:
|
52
|
+
"""
|
53
|
+
(Computed) The etag of the IAM policy.
|
54
|
+
"""
|
55
|
+
return pulumi.get(self, "etag")
|
56
|
+
|
57
|
+
@property
|
58
|
+
@pulumi.getter
|
59
|
+
def id(self) -> str:
|
60
|
+
"""
|
61
|
+
The provider-assigned unique ID for this managed resource.
|
62
|
+
"""
|
63
|
+
return pulumi.get(self, "id")
|
64
|
+
|
65
|
+
@property
|
66
|
+
@pulumi.getter
|
67
|
+
def location(self) -> str:
|
68
|
+
return pulumi.get(self, "location")
|
69
|
+
|
70
|
+
@property
|
71
|
+
@pulumi.getter(name="policyData")
|
72
|
+
def policy_data(self) -> str:
|
73
|
+
"""
|
74
|
+
(Required only by `secretmanager.RegionalSecretIamPolicy`) The policy data generated by
|
75
|
+
a `organizations_get_iam_policy` data source.
|
76
|
+
"""
|
77
|
+
return pulumi.get(self, "policy_data")
|
78
|
+
|
79
|
+
@property
|
80
|
+
@pulumi.getter
|
81
|
+
def project(self) -> str:
|
82
|
+
return pulumi.get(self, "project")
|
83
|
+
|
84
|
+
@property
|
85
|
+
@pulumi.getter(name="secretId")
|
86
|
+
def secret_id(self) -> str:
|
87
|
+
return pulumi.get(self, "secret_id")
|
88
|
+
|
89
|
+
|
90
|
+
class AwaitableGetRegionalSecretIamPolicyResult(GetRegionalSecretIamPolicyResult):
|
91
|
+
# pylint: disable=using-constant-test
|
92
|
+
def __await__(self):
|
93
|
+
if False:
|
94
|
+
yield self
|
95
|
+
return GetRegionalSecretIamPolicyResult(
|
96
|
+
etag=self.etag,
|
97
|
+
id=self.id,
|
98
|
+
location=self.location,
|
99
|
+
policy_data=self.policy_data,
|
100
|
+
project=self.project,
|
101
|
+
secret_id=self.secret_id)
|
102
|
+
|
103
|
+
|
104
|
+
def get_regional_secret_iam_policy(location: Optional[str] = None,
|
105
|
+
project: Optional[str] = None,
|
106
|
+
secret_id: Optional[str] = None,
|
107
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetRegionalSecretIamPolicyResult:
|
108
|
+
"""
|
109
|
+
Retrieves the current IAM policy data for regionalsecret
|
110
|
+
|
111
|
+
## example
|
112
|
+
|
113
|
+
```python
|
114
|
+
import pulumi
|
115
|
+
import pulumi_gcp as gcp
|
116
|
+
|
117
|
+
policy = gcp.secretmanager.get_regional_secret_iam_policy(project=regional_secret_basic["project"],
|
118
|
+
location=regional_secret_basic["location"],
|
119
|
+
secret_id=regional_secret_basic["secretId"])
|
120
|
+
```
|
121
|
+
|
122
|
+
|
123
|
+
:param str location: The location of the regional secret. eg us-central1
|
124
|
+
Used to find the parent resource to bind the IAM policy to. If not specified,
|
125
|
+
the value will be parsed from the identifier of the parent resource. If no location is provided in the parent identifier and no
|
126
|
+
location is specified, it is taken from the provider configuration.
|
127
|
+
:param str project: The ID of the project in which the resource belongs.
|
128
|
+
If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used.
|
129
|
+
"""
|
130
|
+
__args__ = dict()
|
131
|
+
__args__['location'] = location
|
132
|
+
__args__['project'] = project
|
133
|
+
__args__['secretId'] = secret_id
|
134
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
135
|
+
__ret__ = pulumi.runtime.invoke('gcp:secretmanager/getRegionalSecretIamPolicy:getRegionalSecretIamPolicy', __args__, opts=opts, typ=GetRegionalSecretIamPolicyResult).value
|
136
|
+
|
137
|
+
return AwaitableGetRegionalSecretIamPolicyResult(
|
138
|
+
etag=pulumi.get(__ret__, 'etag'),
|
139
|
+
id=pulumi.get(__ret__, 'id'),
|
140
|
+
location=pulumi.get(__ret__, 'location'),
|
141
|
+
policy_data=pulumi.get(__ret__, 'policy_data'),
|
142
|
+
project=pulumi.get(__ret__, 'project'),
|
143
|
+
secret_id=pulumi.get(__ret__, 'secret_id'))
|
144
|
+
|
145
|
+
|
146
|
+
@_utilities.lift_output_func(get_regional_secret_iam_policy)
|
147
|
+
def get_regional_secret_iam_policy_output(location: Optional[pulumi.Input[Optional[str]]] = None,
|
148
|
+
project: Optional[pulumi.Input[Optional[str]]] = None,
|
149
|
+
secret_id: Optional[pulumi.Input[str]] = None,
|
150
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetRegionalSecretIamPolicyResult]:
|
151
|
+
"""
|
152
|
+
Retrieves the current IAM policy data for regionalsecret
|
153
|
+
|
154
|
+
## example
|
155
|
+
|
156
|
+
```python
|
157
|
+
import pulumi
|
158
|
+
import pulumi_gcp as gcp
|
159
|
+
|
160
|
+
policy = gcp.secretmanager.get_regional_secret_iam_policy(project=regional_secret_basic["project"],
|
161
|
+
location=regional_secret_basic["location"],
|
162
|
+
secret_id=regional_secret_basic["secretId"])
|
163
|
+
```
|
164
|
+
|
165
|
+
|
166
|
+
:param str location: The location of the regional secret. eg us-central1
|
167
|
+
Used to find the parent resource to bind the IAM policy to. If not specified,
|
168
|
+
the value will be parsed from the identifier of the parent resource. If no location is provided in the parent identifier and no
|
169
|
+
location is specified, it is taken from the provider configuration.
|
170
|
+
:param str project: The ID of the project in which the resource belongs.
|
171
|
+
If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used.
|
172
|
+
"""
|
173
|
+
...
|
@@ -0,0 +1,241 @@
|
|
1
|
+
# coding=utf-8
|
2
|
+
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
4
|
+
|
5
|
+
import copy
|
6
|
+
import warnings
|
7
|
+
import sys
|
8
|
+
import pulumi
|
9
|
+
import pulumi.runtime
|
10
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
11
|
+
if sys.version_info >= (3, 11):
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
13
|
+
else:
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
15
|
+
from .. import _utilities
|
16
|
+
from . import outputs
|
17
|
+
|
18
|
+
__all__ = [
|
19
|
+
'GetRegionalSecretVersionResult',
|
20
|
+
'AwaitableGetRegionalSecretVersionResult',
|
21
|
+
'get_regional_secret_version',
|
22
|
+
'get_regional_secret_version_output',
|
23
|
+
]
|
24
|
+
|
25
|
+
@pulumi.output_type
|
26
|
+
class GetRegionalSecretVersionResult:
|
27
|
+
"""
|
28
|
+
A collection of values returned by getRegionalSecretVersion.
|
29
|
+
"""
|
30
|
+
def __init__(__self__, create_time=None, customer_managed_encryptions=None, destroy_time=None, enabled=None, id=None, location=None, name=None, project=None, secret=None, secret_data=None, version=None):
|
31
|
+
if create_time and not isinstance(create_time, str):
|
32
|
+
raise TypeError("Expected argument 'create_time' to be a str")
|
33
|
+
pulumi.set(__self__, "create_time", create_time)
|
34
|
+
if customer_managed_encryptions and not isinstance(customer_managed_encryptions, list):
|
35
|
+
raise TypeError("Expected argument 'customer_managed_encryptions' to be a list")
|
36
|
+
pulumi.set(__self__, "customer_managed_encryptions", customer_managed_encryptions)
|
37
|
+
if destroy_time and not isinstance(destroy_time, str):
|
38
|
+
raise TypeError("Expected argument 'destroy_time' to be a str")
|
39
|
+
pulumi.set(__self__, "destroy_time", destroy_time)
|
40
|
+
if enabled and not isinstance(enabled, bool):
|
41
|
+
raise TypeError("Expected argument 'enabled' to be a bool")
|
42
|
+
pulumi.set(__self__, "enabled", enabled)
|
43
|
+
if id and not isinstance(id, str):
|
44
|
+
raise TypeError("Expected argument 'id' to be a str")
|
45
|
+
pulumi.set(__self__, "id", id)
|
46
|
+
if location and not isinstance(location, str):
|
47
|
+
raise TypeError("Expected argument 'location' to be a str")
|
48
|
+
pulumi.set(__self__, "location", location)
|
49
|
+
if name and not isinstance(name, str):
|
50
|
+
raise TypeError("Expected argument 'name' to be a str")
|
51
|
+
pulumi.set(__self__, "name", name)
|
52
|
+
if project and not isinstance(project, str):
|
53
|
+
raise TypeError("Expected argument 'project' to be a str")
|
54
|
+
pulumi.set(__self__, "project", project)
|
55
|
+
if secret and not isinstance(secret, str):
|
56
|
+
raise TypeError("Expected argument 'secret' to be a str")
|
57
|
+
pulumi.set(__self__, "secret", secret)
|
58
|
+
if secret_data and not isinstance(secret_data, str):
|
59
|
+
raise TypeError("Expected argument 'secret_data' to be a str")
|
60
|
+
pulumi.set(__self__, "secret_data", secret_data)
|
61
|
+
if version and not isinstance(version, str):
|
62
|
+
raise TypeError("Expected argument 'version' to be a str")
|
63
|
+
pulumi.set(__self__, "version", version)
|
64
|
+
|
65
|
+
@property
|
66
|
+
@pulumi.getter(name="createTime")
|
67
|
+
def create_time(self) -> str:
|
68
|
+
"""
|
69
|
+
The time at which the regional secret was created.
|
70
|
+
"""
|
71
|
+
return pulumi.get(self, "create_time")
|
72
|
+
|
73
|
+
@property
|
74
|
+
@pulumi.getter(name="customerManagedEncryptions")
|
75
|
+
def customer_managed_encryptions(self) -> Sequence['outputs.GetRegionalSecretVersionCustomerManagedEncryptionResult']:
|
76
|
+
"""
|
77
|
+
The customer-managed encryption configuration of the regional secret. Structure is documented below.
|
78
|
+
"""
|
79
|
+
return pulumi.get(self, "customer_managed_encryptions")
|
80
|
+
|
81
|
+
@property
|
82
|
+
@pulumi.getter(name="destroyTime")
|
83
|
+
def destroy_time(self) -> str:
|
84
|
+
"""
|
85
|
+
The time at which the regional secret was destroyed. Only present if state is DESTROYED.
|
86
|
+
"""
|
87
|
+
return pulumi.get(self, "destroy_time")
|
88
|
+
|
89
|
+
@property
|
90
|
+
@pulumi.getter
|
91
|
+
def enabled(self) -> bool:
|
92
|
+
"""
|
93
|
+
True if the current state of the regional SecretVersion is enabled.
|
94
|
+
"""
|
95
|
+
return pulumi.get(self, "enabled")
|
96
|
+
|
97
|
+
@property
|
98
|
+
@pulumi.getter
|
99
|
+
def id(self) -> str:
|
100
|
+
"""
|
101
|
+
The provider-assigned unique ID for this managed resource.
|
102
|
+
"""
|
103
|
+
return pulumi.get(self, "id")
|
104
|
+
|
105
|
+
@property
|
106
|
+
@pulumi.getter
|
107
|
+
def location(self) -> str:
|
108
|
+
return pulumi.get(self, "location")
|
109
|
+
|
110
|
+
@property
|
111
|
+
@pulumi.getter
|
112
|
+
def name(self) -> str:
|
113
|
+
"""
|
114
|
+
The resource name of the regional SecretVersion. Format:
|
115
|
+
`projects/{{project}}/locations/{{location}}/secrets/{{secret_id}}/versions/{{version}}`
|
116
|
+
"""
|
117
|
+
return pulumi.get(self, "name")
|
118
|
+
|
119
|
+
@property
|
120
|
+
@pulumi.getter
|
121
|
+
def project(self) -> str:
|
122
|
+
return pulumi.get(self, "project")
|
123
|
+
|
124
|
+
@property
|
125
|
+
@pulumi.getter
|
126
|
+
def secret(self) -> str:
|
127
|
+
return pulumi.get(self, "secret")
|
128
|
+
|
129
|
+
@property
|
130
|
+
@pulumi.getter(name="secretData")
|
131
|
+
def secret_data(self) -> str:
|
132
|
+
"""
|
133
|
+
The secret data. No larger than 64KiB.
|
134
|
+
"""
|
135
|
+
return pulumi.get(self, "secret_data")
|
136
|
+
|
137
|
+
@property
|
138
|
+
@pulumi.getter
|
139
|
+
def version(self) -> str:
|
140
|
+
return pulumi.get(self, "version")
|
141
|
+
|
142
|
+
|
143
|
+
class AwaitableGetRegionalSecretVersionResult(GetRegionalSecretVersionResult):
|
144
|
+
# pylint: disable=using-constant-test
|
145
|
+
def __await__(self):
|
146
|
+
if False:
|
147
|
+
yield self
|
148
|
+
return GetRegionalSecretVersionResult(
|
149
|
+
create_time=self.create_time,
|
150
|
+
customer_managed_encryptions=self.customer_managed_encryptions,
|
151
|
+
destroy_time=self.destroy_time,
|
152
|
+
enabled=self.enabled,
|
153
|
+
id=self.id,
|
154
|
+
location=self.location,
|
155
|
+
name=self.name,
|
156
|
+
project=self.project,
|
157
|
+
secret=self.secret,
|
158
|
+
secret_data=self.secret_data,
|
159
|
+
version=self.version)
|
160
|
+
|
161
|
+
|
162
|
+
def get_regional_secret_version(location: Optional[str] = None,
|
163
|
+
project: Optional[str] = None,
|
164
|
+
secret: Optional[str] = None,
|
165
|
+
version: Optional[str] = None,
|
166
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetRegionalSecretVersionResult:
|
167
|
+
"""
|
168
|
+
Get the value and metadata from a Secret Manager regional secret version. For more information see the [official documentation](https://cloud.google.com/secret-manager/docs/regional-secrets-overview) and [API](https://cloud.google.com/secret-manager/docs/reference/rest/v1/projects.secrets.versions). If you don't need the metadata (i.e., if you want to use a more limited role to access the regional secret version only), see also the google_secret_manager_regional_secret_version_access datasource.
|
169
|
+
|
170
|
+
## Example Usage
|
171
|
+
|
172
|
+
```python
|
173
|
+
import pulumi
|
174
|
+
import pulumi_gcp as gcp
|
175
|
+
|
176
|
+
basic = gcp.secretmanager.get_regional_secret_version(secret="my-secret",
|
177
|
+
location="us-central1")
|
178
|
+
```
|
179
|
+
|
180
|
+
|
181
|
+
:param str location: Location of Secret Manager regional secret resource.
|
182
|
+
It must be provided when the `secret` field provided consists of only the name of the regional secret.
|
183
|
+
:param str project: The project to get the secret version for. If it
|
184
|
+
is not provided, the provider project is used.
|
185
|
+
:param str secret: The regional secret to get the secret version for.
|
186
|
+
This can be either the reference of the regional secret as in `projects/{{project}}/locations/{{location}}/secrets/{{secret_id}}` or only the name of the regional secret as in `{{secret_id}}`. If only the name of the regional secret is provided, the location must also be provided.
|
187
|
+
:param str version: The version of the regional secret to get. If it
|
188
|
+
is not provided, the latest version is retrieved.
|
189
|
+
"""
|
190
|
+
__args__ = dict()
|
191
|
+
__args__['location'] = location
|
192
|
+
__args__['project'] = project
|
193
|
+
__args__['secret'] = secret
|
194
|
+
__args__['version'] = version
|
195
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
196
|
+
__ret__ = pulumi.runtime.invoke('gcp:secretmanager/getRegionalSecretVersion:getRegionalSecretVersion', __args__, opts=opts, typ=GetRegionalSecretVersionResult).value
|
197
|
+
|
198
|
+
return AwaitableGetRegionalSecretVersionResult(
|
199
|
+
create_time=pulumi.get(__ret__, 'create_time'),
|
200
|
+
customer_managed_encryptions=pulumi.get(__ret__, 'customer_managed_encryptions'),
|
201
|
+
destroy_time=pulumi.get(__ret__, 'destroy_time'),
|
202
|
+
enabled=pulumi.get(__ret__, 'enabled'),
|
203
|
+
id=pulumi.get(__ret__, 'id'),
|
204
|
+
location=pulumi.get(__ret__, 'location'),
|
205
|
+
name=pulumi.get(__ret__, 'name'),
|
206
|
+
project=pulumi.get(__ret__, 'project'),
|
207
|
+
secret=pulumi.get(__ret__, 'secret'),
|
208
|
+
secret_data=pulumi.get(__ret__, 'secret_data'),
|
209
|
+
version=pulumi.get(__ret__, 'version'))
|
210
|
+
|
211
|
+
|
212
|
+
@_utilities.lift_output_func(get_regional_secret_version)
|
213
|
+
def get_regional_secret_version_output(location: Optional[pulumi.Input[Optional[str]]] = None,
|
214
|
+
project: Optional[pulumi.Input[Optional[str]]] = None,
|
215
|
+
secret: Optional[pulumi.Input[str]] = None,
|
216
|
+
version: Optional[pulumi.Input[Optional[str]]] = None,
|
217
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetRegionalSecretVersionResult]:
|
218
|
+
"""
|
219
|
+
Get the value and metadata from a Secret Manager regional secret version. For more information see the [official documentation](https://cloud.google.com/secret-manager/docs/regional-secrets-overview) and [API](https://cloud.google.com/secret-manager/docs/reference/rest/v1/projects.secrets.versions). If you don't need the metadata (i.e., if you want to use a more limited role to access the regional secret version only), see also the google_secret_manager_regional_secret_version_access datasource.
|
220
|
+
|
221
|
+
## Example Usage
|
222
|
+
|
223
|
+
```python
|
224
|
+
import pulumi
|
225
|
+
import pulumi_gcp as gcp
|
226
|
+
|
227
|
+
basic = gcp.secretmanager.get_regional_secret_version(secret="my-secret",
|
228
|
+
location="us-central1")
|
229
|
+
```
|
230
|
+
|
231
|
+
|
232
|
+
:param str location: Location of Secret Manager regional secret resource.
|
233
|
+
It must be provided when the `secret` field provided consists of only the name of the regional secret.
|
234
|
+
:param str project: The project to get the secret version for. If it
|
235
|
+
is not provided, the provider project is used.
|
236
|
+
:param str secret: The regional secret to get the secret version for.
|
237
|
+
This can be either the reference of the regional secret as in `projects/{{project}}/locations/{{location}}/secrets/{{secret_id}}` or only the name of the regional secret as in `{{secret_id}}`. If only the name of the regional secret is provided, the location must also be provided.
|
238
|
+
:param str version: The version of the regional secret to get. If it
|
239
|
+
is not provided, the latest version is retrieved.
|
240
|
+
"""
|
241
|
+
...
|