pulumi-gcp 8.1.0__py3-none-any.whl → 8.1.0a1726293903__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 +0 -24
- pulumi_gcp/alloydb/_inputs.py +0 -94
- pulumi_gcp/alloydb/cluster.py +1 -94
- pulumi_gcp/alloydb/outputs.py +0 -79
- pulumi_gcp/assuredworkloads/workload.py +16 -135
- pulumi_gcp/backupdisasterrecovery/__init__.py +0 -1
- pulumi_gcp/bigquery/_inputs.py +0 -33
- pulumi_gcp/bigquery/data_transfer_config.py +6 -134
- pulumi_gcp/bigquery/outputs.py +0 -36
- pulumi_gcp/bigqueryanalyticshub/_inputs.py +7 -169
- pulumi_gcp/bigqueryanalyticshub/data_exchange.py +3 -96
- pulumi_gcp/bigqueryanalyticshub/listing.py +0 -114
- pulumi_gcp/bigqueryanalyticshub/outputs.py +5 -138
- pulumi_gcp/bigtable/_inputs.py +1 -21
- pulumi_gcp/bigtable/outputs.py +1 -13
- pulumi_gcp/bigtable/table.py +0 -34
- pulumi_gcp/certificateauthority/authority.py +7 -14
- pulumi_gcp/certificatemanager/__init__.py +0 -1
- pulumi_gcp/certificatemanager/certificate.py +0 -28
- pulumi_gcp/certificatemanager/outputs.py +0 -322
- pulumi_gcp/cloudbuild/_inputs.py +6 -6
- pulumi_gcp/cloudbuild/outputs.py +4 -4
- pulumi_gcp/cloudrun/_inputs.py +12 -6
- pulumi_gcp/cloudrun/outputs.py +16 -8
- pulumi_gcp/cloudrunv2/_inputs.py +15 -72
- pulumi_gcp/cloudrunv2/outputs.py +16 -82
- pulumi_gcp/cloudrunv2/service.py +4 -50
- pulumi_gcp/cloudtasks/_inputs.py +0 -630
- pulumi_gcp/cloudtasks/outputs.py +0 -479
- pulumi_gcp/cloudtasks/queue.py +0 -238
- pulumi_gcp/compute/_inputs.py +9 -129
- pulumi_gcp/compute/get_instance.py +1 -1
- pulumi_gcp/compute/health_check.py +0 -114
- pulumi_gcp/compute/instance.py +4 -86
- pulumi_gcp/compute/instance_template.py +0 -66
- pulumi_gcp/compute/interconnect.py +21 -28
- pulumi_gcp/compute/node_template.py +0 -93
- pulumi_gcp/compute/outputs.py +6 -108
- pulumi_gcp/compute/target_https_proxy.py +0 -28
- pulumi_gcp/container/_inputs.py +3 -140
- pulumi_gcp/container/attached_cluster.py +7 -7
- pulumi_gcp/container/outputs.py +2 -174
- pulumi_gcp/databasemigrationservice/_inputs.py +148 -176
- pulumi_gcp/databasemigrationservice/connection_profile.py +0 -206
- pulumi_gcp/databasemigrationservice/outputs.py +87 -109
- pulumi_gcp/dataloss/_inputs.py +1 -353
- pulumi_gcp/dataloss/outputs.py +3 -274
- pulumi_gcp/dataproc/_inputs.py +27 -27
- pulumi_gcp/dataproc/outputs.py +18 -18
- pulumi_gcp/datastream/_inputs.py +1 -69
- pulumi_gcp/datastream/outputs.py +2 -44
- pulumi_gcp/datastream/stream.py +7 -194
- pulumi_gcp/discoveryengine/_inputs.py +0 -188
- pulumi_gcp/discoveryengine/data_store.py +14 -14
- pulumi_gcp/discoveryengine/outputs.py +1 -153
- pulumi_gcp/firebase/database_instance.py +7 -7
- pulumi_gcp/gkehub/_inputs.py +1 -25
- pulumi_gcp/gkehub/feature_membership.py +6 -12
- pulumi_gcp/gkehub/outputs.py +1 -17
- pulumi_gcp/iam/_inputs.py +0 -196
- pulumi_gcp/iam/get_workload_identity_pool_provider.py +3 -13
- pulumi_gcp/iam/outputs.py +0 -295
- pulumi_gcp/iam/workload_identity_pool_provider.py +3 -164
- pulumi_gcp/kms/__init__.py +0 -2
- pulumi_gcp/kms/autokey_config.py +2 -10
- pulumi_gcp/kms/outputs.py +0 -164
- pulumi_gcp/netapp/active_directory.py +6 -6
- pulumi_gcp/netapp/backup.py +6 -6
- pulumi_gcp/netapp/backup_policy.py +6 -6
- pulumi_gcp/netapp/backup_vault.py +6 -6
- pulumi_gcp/netapp/storage_pool.py +4 -4
- pulumi_gcp/netapp/volume.py +0 -7
- pulumi_gcp/networkconnectivity/_inputs.py +1 -21
- pulumi_gcp/networkconnectivity/outputs.py +1 -15
- pulumi_gcp/networkconnectivity/spoke.py +0 -8
- pulumi_gcp/networksecurity/client_tls_policy.py +22 -24
- pulumi_gcp/networksecurity/server_tls_policy.py +32 -20
- pulumi_gcp/organizations/get_project.py +3 -13
- pulumi_gcp/organizations/project.py +3 -88
- pulumi_gcp/parallelstore/instance.py +121 -121
- pulumi_gcp/projects/iam_member_remove.py +0 -26
- pulumi_gcp/projects/usage_export_bucket.py +0 -38
- pulumi_gcp/pubsub/_inputs.py +0 -40
- pulumi_gcp/pubsub/outputs.py +1 -51
- pulumi_gcp/pubsub/subscription.py +0 -6
- pulumi_gcp/pulumi-plugin.json +1 -1
- pulumi_gcp/redis/_inputs.py +0 -419
- pulumi_gcp/redis/cluster.py +0 -123
- pulumi_gcp/redis/outputs.py +0 -315
- pulumi_gcp/securitycenter/__init__.py +0 -2
- pulumi_gcp/securitycenter/v2_organization_scc_big_query_exports.py +4 -4
- {pulumi_gcp-8.1.0.dist-info → pulumi_gcp-8.1.0a1726293903.dist-info}/METADATA +1 -1
- {pulumi_gcp-8.1.0.dist-info → pulumi_gcp-8.1.0a1726293903.dist-info}/RECORD +95 -101
- {pulumi_gcp-8.1.0.dist-info → pulumi_gcp-8.1.0a1726293903.dist-info}/WHEEL +1 -1
- pulumi_gcp/backupdisasterrecovery/backup_vault.py +0 -1203
- pulumi_gcp/certificatemanager/get_certificates.py +0 -150
- pulumi_gcp/kms/get_crypto_key_latest_version.py +0 -222
- pulumi_gcp/kms/get_crypto_key_versions.py +0 -175
- pulumi_gcp/securitycenter/v2_folder_scc_big_query_export.py +0 -857
- pulumi_gcp/securitycenter/v2_project_scc_big_query_export.py +0 -796
- {pulumi_gcp-8.1.0.dist-info → pulumi_gcp-8.1.0a1726293903.dist-info}/top_level.txt +0 -0
@@ -1,150 +0,0 @@
|
|
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
|
-
'GetCertificatesResult',
|
20
|
-
'AwaitableGetCertificatesResult',
|
21
|
-
'get_certificates',
|
22
|
-
'get_certificates_output',
|
23
|
-
]
|
24
|
-
|
25
|
-
@pulumi.output_type
|
26
|
-
class GetCertificatesResult:
|
27
|
-
"""
|
28
|
-
A collection of values returned by getCertificates.
|
29
|
-
"""
|
30
|
-
def __init__(__self__, certificates=None, filter=None, id=None, region=None):
|
31
|
-
if certificates and not isinstance(certificates, list):
|
32
|
-
raise TypeError("Expected argument 'certificates' to be a list")
|
33
|
-
pulumi.set(__self__, "certificates", certificates)
|
34
|
-
if filter and not isinstance(filter, str):
|
35
|
-
raise TypeError("Expected argument 'filter' to be a str")
|
36
|
-
pulumi.set(__self__, "filter", filter)
|
37
|
-
if id and not isinstance(id, str):
|
38
|
-
raise TypeError("Expected argument 'id' to be a str")
|
39
|
-
pulumi.set(__self__, "id", id)
|
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 certificates(self) -> Sequence['outputs.GetCertificatesCertificateResult']:
|
47
|
-
return pulumi.get(self, "certificates")
|
48
|
-
|
49
|
-
@property
|
50
|
-
@pulumi.getter
|
51
|
-
def filter(self) -> Optional[str]:
|
52
|
-
return pulumi.get(self, "filter")
|
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 region(self) -> Optional[str]:
|
65
|
-
return pulumi.get(self, "region")
|
66
|
-
|
67
|
-
|
68
|
-
class AwaitableGetCertificatesResult(GetCertificatesResult):
|
69
|
-
# pylint: disable=using-constant-test
|
70
|
-
def __await__(self):
|
71
|
-
if False:
|
72
|
-
yield self
|
73
|
-
return GetCertificatesResult(
|
74
|
-
certificates=self.certificates,
|
75
|
-
filter=self.filter,
|
76
|
-
id=self.id,
|
77
|
-
region=self.region)
|
78
|
-
|
79
|
-
|
80
|
-
def get_certificates(filter: Optional[str] = None,
|
81
|
-
region: Optional[str] = None,
|
82
|
-
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetCertificatesResult:
|
83
|
-
"""
|
84
|
-
List all certificates within Google Certificate Manager for a given project, region or filter.
|
85
|
-
|
86
|
-
## Example Usage
|
87
|
-
|
88
|
-
```python
|
89
|
-
import pulumi
|
90
|
-
import pulumi_gcp as gcp
|
91
|
-
|
92
|
-
default = gcp.certificatemanager.get_certificates()
|
93
|
-
```
|
94
|
-
|
95
|
-
### With A Filter
|
96
|
-
|
97
|
-
```python
|
98
|
-
import pulumi
|
99
|
-
import pulumi_gcp as gcp
|
100
|
-
|
101
|
-
default = gcp.certificatemanager.get_certificates(filter="name:projects/PROJECT_ID/locations/REGION/certificates/certificate-name-*")
|
102
|
-
```
|
103
|
-
|
104
|
-
|
105
|
-
:param str filter: Filter expression to restrict the certificates returned.
|
106
|
-
:param str region: The region in which the resource belongs. If it is not provided, `GLOBAL` is used.
|
107
|
-
"""
|
108
|
-
__args__ = dict()
|
109
|
-
__args__['filter'] = filter
|
110
|
-
__args__['region'] = region
|
111
|
-
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
112
|
-
__ret__ = pulumi.runtime.invoke('gcp:certificatemanager/getCertificates:getCertificates', __args__, opts=opts, typ=GetCertificatesResult).value
|
113
|
-
|
114
|
-
return AwaitableGetCertificatesResult(
|
115
|
-
certificates=pulumi.get(__ret__, 'certificates'),
|
116
|
-
filter=pulumi.get(__ret__, 'filter'),
|
117
|
-
id=pulumi.get(__ret__, 'id'),
|
118
|
-
region=pulumi.get(__ret__, 'region'))
|
119
|
-
|
120
|
-
|
121
|
-
@_utilities.lift_output_func(get_certificates)
|
122
|
-
def get_certificates_output(filter: Optional[pulumi.Input[Optional[str]]] = None,
|
123
|
-
region: Optional[pulumi.Input[Optional[str]]] = None,
|
124
|
-
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetCertificatesResult]:
|
125
|
-
"""
|
126
|
-
List all certificates within Google Certificate Manager for a given project, region or filter.
|
127
|
-
|
128
|
-
## Example Usage
|
129
|
-
|
130
|
-
```python
|
131
|
-
import pulumi
|
132
|
-
import pulumi_gcp as gcp
|
133
|
-
|
134
|
-
default = gcp.certificatemanager.get_certificates()
|
135
|
-
```
|
136
|
-
|
137
|
-
### With A Filter
|
138
|
-
|
139
|
-
```python
|
140
|
-
import pulumi
|
141
|
-
import pulumi_gcp as gcp
|
142
|
-
|
143
|
-
default = gcp.certificatemanager.get_certificates(filter="name:projects/PROJECT_ID/locations/REGION/certificates/certificate-name-*")
|
144
|
-
```
|
145
|
-
|
146
|
-
|
147
|
-
:param str filter: Filter expression to restrict the certificates returned.
|
148
|
-
:param str region: The region in which the resource belongs. If it is not provided, `GLOBAL` is used.
|
149
|
-
"""
|
150
|
-
...
|
@@ -1,222 +0,0 @@
|
|
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
|
-
'GetCryptoKeyLatestVersionResult',
|
20
|
-
'AwaitableGetCryptoKeyLatestVersionResult',
|
21
|
-
'get_crypto_key_latest_version',
|
22
|
-
'get_crypto_key_latest_version_output',
|
23
|
-
]
|
24
|
-
|
25
|
-
@pulumi.output_type
|
26
|
-
class GetCryptoKeyLatestVersionResult:
|
27
|
-
"""
|
28
|
-
A collection of values returned by getCryptoKeyLatestVersion.
|
29
|
-
"""
|
30
|
-
def __init__(__self__, algorithm=None, crypto_key=None, filter=None, id=None, name=None, protection_level=None, public_keys=None, state=None, version=None):
|
31
|
-
if algorithm and not isinstance(algorithm, str):
|
32
|
-
raise TypeError("Expected argument 'algorithm' to be a str")
|
33
|
-
pulumi.set(__self__, "algorithm", algorithm)
|
34
|
-
if crypto_key and not isinstance(crypto_key, str):
|
35
|
-
raise TypeError("Expected argument 'crypto_key' to be a str")
|
36
|
-
pulumi.set(__self__, "crypto_key", crypto_key)
|
37
|
-
if filter and not isinstance(filter, str):
|
38
|
-
raise TypeError("Expected argument 'filter' to be a str")
|
39
|
-
pulumi.set(__self__, "filter", filter)
|
40
|
-
if id and not isinstance(id, str):
|
41
|
-
raise TypeError("Expected argument 'id' to be a str")
|
42
|
-
pulumi.set(__self__, "id", id)
|
43
|
-
if name and not isinstance(name, str):
|
44
|
-
raise TypeError("Expected argument 'name' to be a str")
|
45
|
-
pulumi.set(__self__, "name", name)
|
46
|
-
if protection_level and not isinstance(protection_level, str):
|
47
|
-
raise TypeError("Expected argument 'protection_level' to be a str")
|
48
|
-
pulumi.set(__self__, "protection_level", protection_level)
|
49
|
-
if public_keys and not isinstance(public_keys, list):
|
50
|
-
raise TypeError("Expected argument 'public_keys' to be a list")
|
51
|
-
pulumi.set(__self__, "public_keys", public_keys)
|
52
|
-
if state and not isinstance(state, str):
|
53
|
-
raise TypeError("Expected argument 'state' to be a str")
|
54
|
-
pulumi.set(__self__, "state", state)
|
55
|
-
if version and not isinstance(version, int):
|
56
|
-
raise TypeError("Expected argument 'version' to be a int")
|
57
|
-
pulumi.set(__self__, "version", version)
|
58
|
-
|
59
|
-
@property
|
60
|
-
@pulumi.getter
|
61
|
-
def algorithm(self) -> str:
|
62
|
-
"""
|
63
|
-
The CryptoKeyVersionAlgorithm that this CryptoKeyVersion supports.
|
64
|
-
"""
|
65
|
-
return pulumi.get(self, "algorithm")
|
66
|
-
|
67
|
-
@property
|
68
|
-
@pulumi.getter(name="cryptoKey")
|
69
|
-
def crypto_key(self) -> str:
|
70
|
-
return pulumi.get(self, "crypto_key")
|
71
|
-
|
72
|
-
@property
|
73
|
-
@pulumi.getter
|
74
|
-
def filter(self) -> Optional[str]:
|
75
|
-
return pulumi.get(self, "filter")
|
76
|
-
|
77
|
-
@property
|
78
|
-
@pulumi.getter
|
79
|
-
def id(self) -> str:
|
80
|
-
"""
|
81
|
-
The provider-assigned unique ID for this managed resource.
|
82
|
-
"""
|
83
|
-
return pulumi.get(self, "id")
|
84
|
-
|
85
|
-
@property
|
86
|
-
@pulumi.getter
|
87
|
-
def name(self) -> str:
|
88
|
-
return pulumi.get(self, "name")
|
89
|
-
|
90
|
-
@property
|
91
|
-
@pulumi.getter(name="protectionLevel")
|
92
|
-
def protection_level(self) -> str:
|
93
|
-
"""
|
94
|
-
The ProtectionLevel describing how crypto operations are performed with this CryptoKeyVersion. See the [protection_level reference](https://cloud.google.com/kms/docs/reference/rest/v1/ProtectionLevel) for possible outputs.
|
95
|
-
"""
|
96
|
-
return pulumi.get(self, "protection_level")
|
97
|
-
|
98
|
-
@property
|
99
|
-
@pulumi.getter(name="publicKeys")
|
100
|
-
def public_keys(self) -> Sequence['outputs.GetCryptoKeyLatestVersionPublicKeyResult']:
|
101
|
-
"""
|
102
|
-
If the enclosing CryptoKey has purpose `ASYMMETRIC_SIGN` or `ASYMMETRIC_DECRYPT`, this block contains details about the public key associated to this CryptoKeyVersion. Structure is documented below.
|
103
|
-
"""
|
104
|
-
return pulumi.get(self, "public_keys")
|
105
|
-
|
106
|
-
@property
|
107
|
-
@pulumi.getter
|
108
|
-
def state(self) -> str:
|
109
|
-
"""
|
110
|
-
The current state of the latest CryptoKeyVersion. See the [state reference](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions#CryptoKeyVersion.CryptoKeyVersionState) for possible outputs.
|
111
|
-
"""
|
112
|
-
return pulumi.get(self, "state")
|
113
|
-
|
114
|
-
@property
|
115
|
-
@pulumi.getter
|
116
|
-
def version(self) -> int:
|
117
|
-
return pulumi.get(self, "version")
|
118
|
-
|
119
|
-
|
120
|
-
class AwaitableGetCryptoKeyLatestVersionResult(GetCryptoKeyLatestVersionResult):
|
121
|
-
# pylint: disable=using-constant-test
|
122
|
-
def __await__(self):
|
123
|
-
if False:
|
124
|
-
yield self
|
125
|
-
return GetCryptoKeyLatestVersionResult(
|
126
|
-
algorithm=self.algorithm,
|
127
|
-
crypto_key=self.crypto_key,
|
128
|
-
filter=self.filter,
|
129
|
-
id=self.id,
|
130
|
-
name=self.name,
|
131
|
-
protection_level=self.protection_level,
|
132
|
-
public_keys=self.public_keys,
|
133
|
-
state=self.state,
|
134
|
-
version=self.version)
|
135
|
-
|
136
|
-
|
137
|
-
def get_crypto_key_latest_version(crypto_key: Optional[str] = None,
|
138
|
-
filter: Optional[str] = None,
|
139
|
-
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetCryptoKeyLatestVersionResult:
|
140
|
-
"""
|
141
|
-
Provides access to the latest Google Cloud Platform KMS CryptoKeyVersion in a CryptoKey. For more information see
|
142
|
-
[the official documentation](https://cloud.google.com/kms/docs/object-hierarchy#key_version)
|
143
|
-
and
|
144
|
-
[API](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions).
|
145
|
-
|
146
|
-
## Example Usage
|
147
|
-
|
148
|
-
```python
|
149
|
-
import pulumi
|
150
|
-
import pulumi_gcp as gcp
|
151
|
-
|
152
|
-
my_key_ring = gcp.kms.get_kms_key_ring(name="my-key-ring",
|
153
|
-
location="us-central1")
|
154
|
-
my_crypto_key = gcp.kms.get_kms_crypto_key(name="my-crypto-key",
|
155
|
-
key_ring=my_key_ring.id)
|
156
|
-
my_crypto_key_latest_version = gcp.kms.get_crypto_key_latest_version(crypto_key=my_key["id"])
|
157
|
-
```
|
158
|
-
|
159
|
-
|
160
|
-
:param str crypto_key: The `id` of the Google Cloud Platform CryptoKey to which the key version belongs. This is also the `id` field of the
|
161
|
-
`kms.CryptoKey` resource/datasource.
|
162
|
-
:param str filter: The filter argument is used to add a filter query parameter that limits which type of cryptoKeyVersion is retrieved as the latest by the data source: ?filter={{filter}}. When no value is provided there is no filtering.
|
163
|
-
|
164
|
-
Example filter values if filtering on state.
|
165
|
-
|
166
|
-
* `"state:ENABLED"` will retrieve the latest cryptoKeyVersion that has the state "ENABLED".
|
167
|
-
|
168
|
-
[See the documentation about using filters](https://cloud.google.com/kms/docs/sorting-and-filtering)
|
169
|
-
"""
|
170
|
-
__args__ = dict()
|
171
|
-
__args__['cryptoKey'] = crypto_key
|
172
|
-
__args__['filter'] = filter
|
173
|
-
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
174
|
-
__ret__ = pulumi.runtime.invoke('gcp:kms/getCryptoKeyLatestVersion:getCryptoKeyLatestVersion', __args__, opts=opts, typ=GetCryptoKeyLatestVersionResult).value
|
175
|
-
|
176
|
-
return AwaitableGetCryptoKeyLatestVersionResult(
|
177
|
-
algorithm=pulumi.get(__ret__, 'algorithm'),
|
178
|
-
crypto_key=pulumi.get(__ret__, 'crypto_key'),
|
179
|
-
filter=pulumi.get(__ret__, 'filter'),
|
180
|
-
id=pulumi.get(__ret__, 'id'),
|
181
|
-
name=pulumi.get(__ret__, 'name'),
|
182
|
-
protection_level=pulumi.get(__ret__, 'protection_level'),
|
183
|
-
public_keys=pulumi.get(__ret__, 'public_keys'),
|
184
|
-
state=pulumi.get(__ret__, 'state'),
|
185
|
-
version=pulumi.get(__ret__, 'version'))
|
186
|
-
|
187
|
-
|
188
|
-
@_utilities.lift_output_func(get_crypto_key_latest_version)
|
189
|
-
def get_crypto_key_latest_version_output(crypto_key: Optional[pulumi.Input[str]] = None,
|
190
|
-
filter: Optional[pulumi.Input[Optional[str]]] = None,
|
191
|
-
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetCryptoKeyLatestVersionResult]:
|
192
|
-
"""
|
193
|
-
Provides access to the latest Google Cloud Platform KMS CryptoKeyVersion in a CryptoKey. For more information see
|
194
|
-
[the official documentation](https://cloud.google.com/kms/docs/object-hierarchy#key_version)
|
195
|
-
and
|
196
|
-
[API](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions).
|
197
|
-
|
198
|
-
## Example Usage
|
199
|
-
|
200
|
-
```python
|
201
|
-
import pulumi
|
202
|
-
import pulumi_gcp as gcp
|
203
|
-
|
204
|
-
my_key_ring = gcp.kms.get_kms_key_ring(name="my-key-ring",
|
205
|
-
location="us-central1")
|
206
|
-
my_crypto_key = gcp.kms.get_kms_crypto_key(name="my-crypto-key",
|
207
|
-
key_ring=my_key_ring.id)
|
208
|
-
my_crypto_key_latest_version = gcp.kms.get_crypto_key_latest_version(crypto_key=my_key["id"])
|
209
|
-
```
|
210
|
-
|
211
|
-
|
212
|
-
:param str crypto_key: The `id` of the Google Cloud Platform CryptoKey to which the key version belongs. This is also the `id` field of the
|
213
|
-
`kms.CryptoKey` resource/datasource.
|
214
|
-
:param str filter: The filter argument is used to add a filter query parameter that limits which type of cryptoKeyVersion is retrieved as the latest by the data source: ?filter={{filter}}. When no value is provided there is no filtering.
|
215
|
-
|
216
|
-
Example filter values if filtering on state.
|
217
|
-
|
218
|
-
* `"state:ENABLED"` will retrieve the latest cryptoKeyVersion that has the state "ENABLED".
|
219
|
-
|
220
|
-
[See the documentation about using filters](https://cloud.google.com/kms/docs/sorting-and-filtering)
|
221
|
-
"""
|
222
|
-
...
|
@@ -1,175 +0,0 @@
|
|
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
|
-
'GetCryptoKeyVersionsResult',
|
20
|
-
'AwaitableGetCryptoKeyVersionsResult',
|
21
|
-
'get_crypto_key_versions',
|
22
|
-
'get_crypto_key_versions_output',
|
23
|
-
]
|
24
|
-
|
25
|
-
@pulumi.output_type
|
26
|
-
class GetCryptoKeyVersionsResult:
|
27
|
-
"""
|
28
|
-
A collection of values returned by getCryptoKeyVersions.
|
29
|
-
"""
|
30
|
-
def __init__(__self__, crypto_key=None, filter=None, id=None, public_keys=None, versions=None):
|
31
|
-
if crypto_key and not isinstance(crypto_key, str):
|
32
|
-
raise TypeError("Expected argument 'crypto_key' to be a str")
|
33
|
-
pulumi.set(__self__, "crypto_key", crypto_key)
|
34
|
-
if filter and not isinstance(filter, str):
|
35
|
-
raise TypeError("Expected argument 'filter' to be a str")
|
36
|
-
pulumi.set(__self__, "filter", filter)
|
37
|
-
if id and not isinstance(id, str):
|
38
|
-
raise TypeError("Expected argument 'id' to be a str")
|
39
|
-
pulumi.set(__self__, "id", id)
|
40
|
-
if public_keys and not isinstance(public_keys, list):
|
41
|
-
raise TypeError("Expected argument 'public_keys' to be a list")
|
42
|
-
pulumi.set(__self__, "public_keys", public_keys)
|
43
|
-
if versions and not isinstance(versions, list):
|
44
|
-
raise TypeError("Expected argument 'versions' to be a list")
|
45
|
-
pulumi.set(__self__, "versions", versions)
|
46
|
-
|
47
|
-
@property
|
48
|
-
@pulumi.getter(name="cryptoKey")
|
49
|
-
def crypto_key(self) -> str:
|
50
|
-
return pulumi.get(self, "crypto_key")
|
51
|
-
|
52
|
-
@property
|
53
|
-
@pulumi.getter
|
54
|
-
def filter(self) -> Optional[str]:
|
55
|
-
return pulumi.get(self, "filter")
|
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(name="publicKeys")
|
67
|
-
def public_keys(self) -> Sequence['outputs.GetCryptoKeyVersionsPublicKeyResult']:
|
68
|
-
return pulumi.get(self, "public_keys")
|
69
|
-
|
70
|
-
@property
|
71
|
-
@pulumi.getter
|
72
|
-
def versions(self) -> Sequence['outputs.GetCryptoKeyVersionsVersionResult']:
|
73
|
-
"""
|
74
|
-
A list of all the retrieved crypto key versions from the provided crypto key. This list is influenced by the provided filter argument.
|
75
|
-
"""
|
76
|
-
return pulumi.get(self, "versions")
|
77
|
-
|
78
|
-
|
79
|
-
class AwaitableGetCryptoKeyVersionsResult(GetCryptoKeyVersionsResult):
|
80
|
-
# pylint: disable=using-constant-test
|
81
|
-
def __await__(self):
|
82
|
-
if False:
|
83
|
-
yield self
|
84
|
-
return GetCryptoKeyVersionsResult(
|
85
|
-
crypto_key=self.crypto_key,
|
86
|
-
filter=self.filter,
|
87
|
-
id=self.id,
|
88
|
-
public_keys=self.public_keys,
|
89
|
-
versions=self.versions)
|
90
|
-
|
91
|
-
|
92
|
-
def get_crypto_key_versions(crypto_key: Optional[str] = None,
|
93
|
-
filter: Optional[str] = None,
|
94
|
-
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetCryptoKeyVersionsResult:
|
95
|
-
"""
|
96
|
-
Provides access to Google Cloud Platform KMS CryptoKeyVersions. For more information see
|
97
|
-
[the official documentation](https://cloud.google.com/kms/docs/object-hierarchy#key_version)
|
98
|
-
and
|
99
|
-
[API](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions).
|
100
|
-
|
101
|
-
## Example Usage
|
102
|
-
|
103
|
-
```python
|
104
|
-
import pulumi
|
105
|
-
import pulumi_gcp as gcp
|
106
|
-
|
107
|
-
my_key_ring = gcp.kms.get_kms_key_ring(name="my-key-ring",
|
108
|
-
location="us-central1")
|
109
|
-
my_crypto_key = gcp.kms.get_kms_crypto_key(name="my-crypto-key",
|
110
|
-
key_ring=my_key_ring.id)
|
111
|
-
my_crypto_key_versions = gcp.kms.get_crypto_key_versions(crypto_key=my_key["id"])
|
112
|
-
```
|
113
|
-
|
114
|
-
|
115
|
-
:param str crypto_key: The `id` of the Google Cloud Platform CryptoKey to which the key version belongs. This is also the `id` field of the
|
116
|
-
`kms.CryptoKey` resource/datasource.
|
117
|
-
:param str filter: The filter argument is used to add a filter query parameter that limits which versions are retrieved by the data source: ?filter={{filter}}. When no value is provided there is no filtering.
|
118
|
-
|
119
|
-
Example filter values if filtering on name. Note: names take the form projects/{{project}}/locations/{{location}}/keyRings/{{keyRing}}/cryptoKeys/{{cryptoKey}}/cryptoKeyVersions.
|
120
|
-
|
121
|
-
* `"name:my-key-"` will retrieve cryptoKeyVersions that contain "my-key-" anywhere in their name.
|
122
|
-
* `"name=projects/my-project/locations/global/keyRings/my-key-ring/cryptoKeys/my-key-1/cryptoKeyVersions/my-version-1"` will only retrieve a key with that exact name.
|
123
|
-
|
124
|
-
[See the documentation about using filters](https://cloud.google.com/kms/docs/sorting-and-filtering)
|
125
|
-
"""
|
126
|
-
__args__ = dict()
|
127
|
-
__args__['cryptoKey'] = crypto_key
|
128
|
-
__args__['filter'] = filter
|
129
|
-
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
130
|
-
__ret__ = pulumi.runtime.invoke('gcp:kms/getCryptoKeyVersions:getCryptoKeyVersions', __args__, opts=opts, typ=GetCryptoKeyVersionsResult).value
|
131
|
-
|
132
|
-
return AwaitableGetCryptoKeyVersionsResult(
|
133
|
-
crypto_key=pulumi.get(__ret__, 'crypto_key'),
|
134
|
-
filter=pulumi.get(__ret__, 'filter'),
|
135
|
-
id=pulumi.get(__ret__, 'id'),
|
136
|
-
public_keys=pulumi.get(__ret__, 'public_keys'),
|
137
|
-
versions=pulumi.get(__ret__, 'versions'))
|
138
|
-
|
139
|
-
|
140
|
-
@_utilities.lift_output_func(get_crypto_key_versions)
|
141
|
-
def get_crypto_key_versions_output(crypto_key: Optional[pulumi.Input[str]] = None,
|
142
|
-
filter: Optional[pulumi.Input[Optional[str]]] = None,
|
143
|
-
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetCryptoKeyVersionsResult]:
|
144
|
-
"""
|
145
|
-
Provides access to Google Cloud Platform KMS CryptoKeyVersions. For more information see
|
146
|
-
[the official documentation](https://cloud.google.com/kms/docs/object-hierarchy#key_version)
|
147
|
-
and
|
148
|
-
[API](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions).
|
149
|
-
|
150
|
-
## Example Usage
|
151
|
-
|
152
|
-
```python
|
153
|
-
import pulumi
|
154
|
-
import pulumi_gcp as gcp
|
155
|
-
|
156
|
-
my_key_ring = gcp.kms.get_kms_key_ring(name="my-key-ring",
|
157
|
-
location="us-central1")
|
158
|
-
my_crypto_key = gcp.kms.get_kms_crypto_key(name="my-crypto-key",
|
159
|
-
key_ring=my_key_ring.id)
|
160
|
-
my_crypto_key_versions = gcp.kms.get_crypto_key_versions(crypto_key=my_key["id"])
|
161
|
-
```
|
162
|
-
|
163
|
-
|
164
|
-
:param str crypto_key: The `id` of the Google Cloud Platform CryptoKey to which the key version belongs. This is also the `id` field of the
|
165
|
-
`kms.CryptoKey` resource/datasource.
|
166
|
-
:param str filter: The filter argument is used to add a filter query parameter that limits which versions are retrieved by the data source: ?filter={{filter}}. When no value is provided there is no filtering.
|
167
|
-
|
168
|
-
Example filter values if filtering on name. Note: names take the form projects/{{project}}/locations/{{location}}/keyRings/{{keyRing}}/cryptoKeys/{{cryptoKey}}/cryptoKeyVersions.
|
169
|
-
|
170
|
-
* `"name:my-key-"` will retrieve cryptoKeyVersions that contain "my-key-" anywhere in their name.
|
171
|
-
* `"name=projects/my-project/locations/global/keyRings/my-key-ring/cryptoKeys/my-key-1/cryptoKeyVersions/my-version-1"` will only retrieve a key with that exact name.
|
172
|
-
|
173
|
-
[See the documentation about using filters](https://cloud.google.com/kms/docs/sorting-and-filtering)
|
174
|
-
"""
|
175
|
-
...
|