pulumi-gcp 7.25.0__py3-none-any.whl → 7.25.0a1717104660__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 -88
- pulumi_gcp/appengine/_inputs.py +0 -18
- pulumi_gcp/appengine/domain_mapping.py +1 -1
- pulumi_gcp/appengine/outputs.py +0 -16
- pulumi_gcp/bigquery/_inputs.py +2 -286
- pulumi_gcp/bigquery/outputs.py +2 -289
- pulumi_gcp/bigquery/table.py +35 -77
- pulumi_gcp/cloudfunctionsv2/function.py +4 -0
- pulumi_gcp/cloudrun/_inputs.py +4 -80
- pulumi_gcp/cloudrun/outputs.py +4 -137
- pulumi_gcp/composer/user_workloads_secret.py +4 -4
- pulumi_gcp/compute/__init__.py +0 -1
- pulumi_gcp/compute/_inputs.py +176 -398
- pulumi_gcp/compute/instance_group_membership.py +2 -2
- pulumi_gcp/compute/interconnect_attachment.py +0 -82
- pulumi_gcp/compute/network_endpoint.py +2 -2
- pulumi_gcp/compute/network_endpoint_list.py +2 -2
- pulumi_gcp/compute/outputs.py +161 -609
- pulumi_gcp/compute/region_ssl_policy.py +40 -39
- pulumi_gcp/compute/security_policy_rule.py +1 -55
- pulumi_gcp/container/_inputs.py +0 -560
- pulumi_gcp/container/outputs.py +51 -1106
- pulumi_gcp/dataplex/__init__.py +0 -10
- pulumi_gcp/dataplex/_inputs.py +0 -160
- pulumi_gcp/dataplex/outputs.py +0 -112
- pulumi_gcp/datastream/connection_profile.py +0 -47
- pulumi_gcp/datastream/private_connection.py +0 -47
- pulumi_gcp/datastream/stream.py +0 -47
- pulumi_gcp/kms/__init__.py +0 -2
- pulumi_gcp/networkservices/__init__.py +0 -1
- pulumi_gcp/networkservices/_inputs.py +27 -245
- pulumi_gcp/networkservices/lb_traffic_extension.py +14 -28
- pulumi_gcp/networkservices/outputs.py +20 -251
- pulumi_gcp/orgpolicy/policy.py +2 -2
- pulumi_gcp/pubsub/_inputs.py +0 -16
- pulumi_gcp/pubsub/outputs.py +0 -25
- pulumi_gcp/pubsub/subscription.py +4 -8
- pulumi_gcp/pulumi-plugin.json +1 -1
- pulumi_gcp/sql/user.py +4 -4
- pulumi_gcp/tpu/_inputs.py +2 -2
- pulumi_gcp/tpu/outputs.py +2 -2
- {pulumi_gcp-7.25.0.dist-info → pulumi_gcp-7.25.0a1717104660.dist-info}/METADATA +1 -1
- {pulumi_gcp-7.25.0.dist-info → pulumi_gcp-7.25.0a1717104660.dist-info}/RECORD +45 -59
- pulumi_gcp/compute/get_subnetworks.py +0 -157
- pulumi_gcp/dataplex/aspect_type.py +0 -1077
- pulumi_gcp/dataplex/aspect_type_iam_binding.py +0 -765
- pulumi_gcp/dataplex/aspect_type_iam_member.py +0 -765
- pulumi_gcp/dataplex/aspect_type_iam_policy.py +0 -604
- pulumi_gcp/dataplex/entry_group.py +0 -722
- pulumi_gcp/dataplex/entry_group_iam_binding.py +0 -765
- pulumi_gcp/dataplex/entry_group_iam_member.py +0 -765
- pulumi_gcp/dataplex/entry_group_iam_policy.py +0 -604
- pulumi_gcp/dataplex/get_aspect_type_iam_policy.py +0 -164
- pulumi_gcp/dataplex/get_entry_group_iam_policy.py +0 -164
- pulumi_gcp/kms/autokey_config.py +0 -366
- pulumi_gcp/kms/key_handle.py +0 -548
- pulumi_gcp/networkservices/lb_route_extension.py +0 -663
- {pulumi_gcp-7.25.0.dist-info → pulumi_gcp-7.25.0a1717104660.dist-info}/WHEEL +0 -0
- {pulumi_gcp-7.25.0.dist-info → pulumi_gcp-7.25.0a1717104660.dist-info}/top_level.txt +0 -0
@@ -1,164 +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 pulumi
|
8
|
-
import pulumi.runtime
|
9
|
-
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
10
|
-
from .. import _utilities
|
11
|
-
|
12
|
-
__all__ = [
|
13
|
-
'GetAspectTypeIamPolicyResult',
|
14
|
-
'AwaitableGetAspectTypeIamPolicyResult',
|
15
|
-
'get_aspect_type_iam_policy',
|
16
|
-
'get_aspect_type_iam_policy_output',
|
17
|
-
]
|
18
|
-
|
19
|
-
@pulumi.output_type
|
20
|
-
class GetAspectTypeIamPolicyResult:
|
21
|
-
"""
|
22
|
-
A collection of values returned by getAspectTypeIamPolicy.
|
23
|
-
"""
|
24
|
-
def __init__(__self__, aspect_type_id=None, etag=None, id=None, location=None, policy_data=None, project=None):
|
25
|
-
if aspect_type_id and not isinstance(aspect_type_id, str):
|
26
|
-
raise TypeError("Expected argument 'aspect_type_id' to be a str")
|
27
|
-
pulumi.set(__self__, "aspect_type_id", aspect_type_id)
|
28
|
-
if etag and not isinstance(etag, str):
|
29
|
-
raise TypeError("Expected argument 'etag' to be a str")
|
30
|
-
pulumi.set(__self__, "etag", etag)
|
31
|
-
if id and not isinstance(id, str):
|
32
|
-
raise TypeError("Expected argument 'id' to be a str")
|
33
|
-
pulumi.set(__self__, "id", id)
|
34
|
-
if location and not isinstance(location, str):
|
35
|
-
raise TypeError("Expected argument 'location' to be a str")
|
36
|
-
pulumi.set(__self__, "location", location)
|
37
|
-
if policy_data and not isinstance(policy_data, str):
|
38
|
-
raise TypeError("Expected argument 'policy_data' to be a str")
|
39
|
-
pulumi.set(__self__, "policy_data", policy_data)
|
40
|
-
if project and not isinstance(project, str):
|
41
|
-
raise TypeError("Expected argument 'project' to be a str")
|
42
|
-
pulumi.set(__self__, "project", project)
|
43
|
-
|
44
|
-
@property
|
45
|
-
@pulumi.getter(name="aspectTypeId")
|
46
|
-
def aspect_type_id(self) -> str:
|
47
|
-
return pulumi.get(self, "aspect_type_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 `dataplex.AspectTypeIamPolicy`) 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
|
-
|
85
|
-
class AwaitableGetAspectTypeIamPolicyResult(GetAspectTypeIamPolicyResult):
|
86
|
-
# pylint: disable=using-constant-test
|
87
|
-
def __await__(self):
|
88
|
-
if False:
|
89
|
-
yield self
|
90
|
-
return GetAspectTypeIamPolicyResult(
|
91
|
-
aspect_type_id=self.aspect_type_id,
|
92
|
-
etag=self.etag,
|
93
|
-
id=self.id,
|
94
|
-
location=self.location,
|
95
|
-
policy_data=self.policy_data,
|
96
|
-
project=self.project)
|
97
|
-
|
98
|
-
|
99
|
-
def get_aspect_type_iam_policy(aspect_type_id: Optional[str] = None,
|
100
|
-
location: Optional[str] = None,
|
101
|
-
project: Optional[str] = None,
|
102
|
-
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetAspectTypeIamPolicyResult:
|
103
|
-
"""
|
104
|
-
Retrieves the current IAM policy data for aspecttype
|
105
|
-
|
106
|
-
## example
|
107
|
-
|
108
|
-
```python
|
109
|
-
import pulumi
|
110
|
-
import pulumi_gcp as gcp
|
111
|
-
|
112
|
-
policy = gcp.dataplex.get_aspect_type_iam_policy(project=test_aspect_type_basic["project"],
|
113
|
-
location=test_aspect_type_basic["location"],
|
114
|
-
aspect_type_id=test_aspect_type_basic["aspectTypeId"])
|
115
|
-
```
|
116
|
-
|
117
|
-
|
118
|
-
:param str location: The location where aspect type will be created in.
|
119
|
-
Used to find the parent resource to bind the IAM policy to
|
120
|
-
:param str project: The ID of the project in which the resource belongs.
|
121
|
-
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.
|
122
|
-
"""
|
123
|
-
__args__ = dict()
|
124
|
-
__args__['aspectTypeId'] = aspect_type_id
|
125
|
-
__args__['location'] = location
|
126
|
-
__args__['project'] = project
|
127
|
-
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
128
|
-
__ret__ = pulumi.runtime.invoke('gcp:dataplex/getAspectTypeIamPolicy:getAspectTypeIamPolicy', __args__, opts=opts, typ=GetAspectTypeIamPolicyResult).value
|
129
|
-
|
130
|
-
return AwaitableGetAspectTypeIamPolicyResult(
|
131
|
-
aspect_type_id=pulumi.get(__ret__, 'aspect_type_id'),
|
132
|
-
etag=pulumi.get(__ret__, 'etag'),
|
133
|
-
id=pulumi.get(__ret__, 'id'),
|
134
|
-
location=pulumi.get(__ret__, 'location'),
|
135
|
-
policy_data=pulumi.get(__ret__, 'policy_data'),
|
136
|
-
project=pulumi.get(__ret__, 'project'))
|
137
|
-
|
138
|
-
|
139
|
-
@_utilities.lift_output_func(get_aspect_type_iam_policy)
|
140
|
-
def get_aspect_type_iam_policy_output(aspect_type_id: Optional[pulumi.Input[str]] = None,
|
141
|
-
location: Optional[pulumi.Input[Optional[str]]] = None,
|
142
|
-
project: Optional[pulumi.Input[Optional[str]]] = None,
|
143
|
-
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetAspectTypeIamPolicyResult]:
|
144
|
-
"""
|
145
|
-
Retrieves the current IAM policy data for aspecttype
|
146
|
-
|
147
|
-
## example
|
148
|
-
|
149
|
-
```python
|
150
|
-
import pulumi
|
151
|
-
import pulumi_gcp as gcp
|
152
|
-
|
153
|
-
policy = gcp.dataplex.get_aspect_type_iam_policy(project=test_aspect_type_basic["project"],
|
154
|
-
location=test_aspect_type_basic["location"],
|
155
|
-
aspect_type_id=test_aspect_type_basic["aspectTypeId"])
|
156
|
-
```
|
157
|
-
|
158
|
-
|
159
|
-
:param str location: The location where aspect type will be created in.
|
160
|
-
Used to find the parent resource to bind the IAM policy to
|
161
|
-
:param str project: The ID of the project in which the resource belongs.
|
162
|
-
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.
|
163
|
-
"""
|
164
|
-
...
|
@@ -1,164 +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 pulumi
|
8
|
-
import pulumi.runtime
|
9
|
-
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
10
|
-
from .. import _utilities
|
11
|
-
|
12
|
-
__all__ = [
|
13
|
-
'GetEntryGroupIamPolicyResult',
|
14
|
-
'AwaitableGetEntryGroupIamPolicyResult',
|
15
|
-
'get_entry_group_iam_policy',
|
16
|
-
'get_entry_group_iam_policy_output',
|
17
|
-
]
|
18
|
-
|
19
|
-
@pulumi.output_type
|
20
|
-
class GetEntryGroupIamPolicyResult:
|
21
|
-
"""
|
22
|
-
A collection of values returned by getEntryGroupIamPolicy.
|
23
|
-
"""
|
24
|
-
def __init__(__self__, entry_group_id=None, etag=None, id=None, location=None, policy_data=None, project=None):
|
25
|
-
if entry_group_id and not isinstance(entry_group_id, str):
|
26
|
-
raise TypeError("Expected argument 'entry_group_id' to be a str")
|
27
|
-
pulumi.set(__self__, "entry_group_id", entry_group_id)
|
28
|
-
if etag and not isinstance(etag, str):
|
29
|
-
raise TypeError("Expected argument 'etag' to be a str")
|
30
|
-
pulumi.set(__self__, "etag", etag)
|
31
|
-
if id and not isinstance(id, str):
|
32
|
-
raise TypeError("Expected argument 'id' to be a str")
|
33
|
-
pulumi.set(__self__, "id", id)
|
34
|
-
if location and not isinstance(location, str):
|
35
|
-
raise TypeError("Expected argument 'location' to be a str")
|
36
|
-
pulumi.set(__self__, "location", location)
|
37
|
-
if policy_data and not isinstance(policy_data, str):
|
38
|
-
raise TypeError("Expected argument 'policy_data' to be a str")
|
39
|
-
pulumi.set(__self__, "policy_data", policy_data)
|
40
|
-
if project and not isinstance(project, str):
|
41
|
-
raise TypeError("Expected argument 'project' to be a str")
|
42
|
-
pulumi.set(__self__, "project", project)
|
43
|
-
|
44
|
-
@property
|
45
|
-
@pulumi.getter(name="entryGroupId")
|
46
|
-
def entry_group_id(self) -> str:
|
47
|
-
return pulumi.get(self, "entry_group_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 `dataplex.EntryGroupIamPolicy`) 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
|
-
|
85
|
-
class AwaitableGetEntryGroupIamPolicyResult(GetEntryGroupIamPolicyResult):
|
86
|
-
# pylint: disable=using-constant-test
|
87
|
-
def __await__(self):
|
88
|
-
if False:
|
89
|
-
yield self
|
90
|
-
return GetEntryGroupIamPolicyResult(
|
91
|
-
entry_group_id=self.entry_group_id,
|
92
|
-
etag=self.etag,
|
93
|
-
id=self.id,
|
94
|
-
location=self.location,
|
95
|
-
policy_data=self.policy_data,
|
96
|
-
project=self.project)
|
97
|
-
|
98
|
-
|
99
|
-
def get_entry_group_iam_policy(entry_group_id: Optional[str] = None,
|
100
|
-
location: Optional[str] = None,
|
101
|
-
project: Optional[str] = None,
|
102
|
-
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetEntryGroupIamPolicyResult:
|
103
|
-
"""
|
104
|
-
Retrieves the current IAM policy data for entrygroup
|
105
|
-
|
106
|
-
## example
|
107
|
-
|
108
|
-
```python
|
109
|
-
import pulumi
|
110
|
-
import pulumi_gcp as gcp
|
111
|
-
|
112
|
-
policy = gcp.dataplex.get_entry_group_iam_policy(project=test_entry_group_basic["project"],
|
113
|
-
location=test_entry_group_basic["location"],
|
114
|
-
entry_group_id=test_entry_group_basic["entryGroupId"])
|
115
|
-
```
|
116
|
-
|
117
|
-
|
118
|
-
:param str location: The location where entry group will be created in.
|
119
|
-
Used to find the parent resource to bind the IAM policy to
|
120
|
-
:param str project: The ID of the project in which the resource belongs.
|
121
|
-
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.
|
122
|
-
"""
|
123
|
-
__args__ = dict()
|
124
|
-
__args__['entryGroupId'] = entry_group_id
|
125
|
-
__args__['location'] = location
|
126
|
-
__args__['project'] = project
|
127
|
-
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
128
|
-
__ret__ = pulumi.runtime.invoke('gcp:dataplex/getEntryGroupIamPolicy:getEntryGroupIamPolicy', __args__, opts=opts, typ=GetEntryGroupIamPolicyResult).value
|
129
|
-
|
130
|
-
return AwaitableGetEntryGroupIamPolicyResult(
|
131
|
-
entry_group_id=pulumi.get(__ret__, 'entry_group_id'),
|
132
|
-
etag=pulumi.get(__ret__, 'etag'),
|
133
|
-
id=pulumi.get(__ret__, 'id'),
|
134
|
-
location=pulumi.get(__ret__, 'location'),
|
135
|
-
policy_data=pulumi.get(__ret__, 'policy_data'),
|
136
|
-
project=pulumi.get(__ret__, 'project'))
|
137
|
-
|
138
|
-
|
139
|
-
@_utilities.lift_output_func(get_entry_group_iam_policy)
|
140
|
-
def get_entry_group_iam_policy_output(entry_group_id: Optional[pulumi.Input[str]] = None,
|
141
|
-
location: Optional[pulumi.Input[Optional[str]]] = None,
|
142
|
-
project: Optional[pulumi.Input[Optional[str]]] = None,
|
143
|
-
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetEntryGroupIamPolicyResult]:
|
144
|
-
"""
|
145
|
-
Retrieves the current IAM policy data for entrygroup
|
146
|
-
|
147
|
-
## example
|
148
|
-
|
149
|
-
```python
|
150
|
-
import pulumi
|
151
|
-
import pulumi_gcp as gcp
|
152
|
-
|
153
|
-
policy = gcp.dataplex.get_entry_group_iam_policy(project=test_entry_group_basic["project"],
|
154
|
-
location=test_entry_group_basic["location"],
|
155
|
-
entry_group_id=test_entry_group_basic["entryGroupId"])
|
156
|
-
```
|
157
|
-
|
158
|
-
|
159
|
-
:param str location: The location where entry group will be created in.
|
160
|
-
Used to find the parent resource to bind the IAM policy to
|
161
|
-
:param str project: The ID of the project in which the resource belongs.
|
162
|
-
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.
|
163
|
-
"""
|
164
|
-
...
|
pulumi_gcp/kms/autokey_config.py
DELETED
@@ -1,366 +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 pulumi
|
8
|
-
import pulumi.runtime
|
9
|
-
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
10
|
-
from .. import _utilities
|
11
|
-
|
12
|
-
__all__ = ['AutokeyConfigArgs', 'AutokeyConfig']
|
13
|
-
|
14
|
-
@pulumi.input_type
|
15
|
-
class AutokeyConfigArgs:
|
16
|
-
def __init__(__self__, *,
|
17
|
-
folder: pulumi.Input[str],
|
18
|
-
key_project: Optional[pulumi.Input[str]] = None):
|
19
|
-
"""
|
20
|
-
The set of arguments for constructing a AutokeyConfig resource.
|
21
|
-
:param pulumi.Input[str] folder: The folder for which to retrieve config.
|
22
|
-
|
23
|
-
|
24
|
-
- - -
|
25
|
-
:param pulumi.Input[str] key_project: The target key project for a given folder where KMS Autokey will provision a
|
26
|
-
CryptoKey for any new KeyHandle the Developer creates. Should have the form
|
27
|
-
`projects/<project_id_or_number>`.
|
28
|
-
"""
|
29
|
-
pulumi.set(__self__, "folder", folder)
|
30
|
-
if key_project is not None:
|
31
|
-
pulumi.set(__self__, "key_project", key_project)
|
32
|
-
|
33
|
-
@property
|
34
|
-
@pulumi.getter
|
35
|
-
def folder(self) -> pulumi.Input[str]:
|
36
|
-
"""
|
37
|
-
The folder for which to retrieve config.
|
38
|
-
|
39
|
-
|
40
|
-
- - -
|
41
|
-
"""
|
42
|
-
return pulumi.get(self, "folder")
|
43
|
-
|
44
|
-
@folder.setter
|
45
|
-
def folder(self, value: pulumi.Input[str]):
|
46
|
-
pulumi.set(self, "folder", value)
|
47
|
-
|
48
|
-
@property
|
49
|
-
@pulumi.getter(name="keyProject")
|
50
|
-
def key_project(self) -> Optional[pulumi.Input[str]]:
|
51
|
-
"""
|
52
|
-
The target key project for a given folder where KMS Autokey will provision a
|
53
|
-
CryptoKey for any new KeyHandle the Developer creates. Should have the form
|
54
|
-
`projects/<project_id_or_number>`.
|
55
|
-
"""
|
56
|
-
return pulumi.get(self, "key_project")
|
57
|
-
|
58
|
-
@key_project.setter
|
59
|
-
def key_project(self, value: Optional[pulumi.Input[str]]):
|
60
|
-
pulumi.set(self, "key_project", value)
|
61
|
-
|
62
|
-
|
63
|
-
@pulumi.input_type
|
64
|
-
class _AutokeyConfigState:
|
65
|
-
def __init__(__self__, *,
|
66
|
-
folder: Optional[pulumi.Input[str]] = None,
|
67
|
-
key_project: Optional[pulumi.Input[str]] = None):
|
68
|
-
"""
|
69
|
-
Input properties used for looking up and filtering AutokeyConfig resources.
|
70
|
-
:param pulumi.Input[str] folder: The folder for which to retrieve config.
|
71
|
-
|
72
|
-
|
73
|
-
- - -
|
74
|
-
:param pulumi.Input[str] key_project: The target key project for a given folder where KMS Autokey will provision a
|
75
|
-
CryptoKey for any new KeyHandle the Developer creates. Should have the form
|
76
|
-
`projects/<project_id_or_number>`.
|
77
|
-
"""
|
78
|
-
if folder is not None:
|
79
|
-
pulumi.set(__self__, "folder", folder)
|
80
|
-
if key_project is not None:
|
81
|
-
pulumi.set(__self__, "key_project", key_project)
|
82
|
-
|
83
|
-
@property
|
84
|
-
@pulumi.getter
|
85
|
-
def folder(self) -> Optional[pulumi.Input[str]]:
|
86
|
-
"""
|
87
|
-
The folder for which to retrieve config.
|
88
|
-
|
89
|
-
|
90
|
-
- - -
|
91
|
-
"""
|
92
|
-
return pulumi.get(self, "folder")
|
93
|
-
|
94
|
-
@folder.setter
|
95
|
-
def folder(self, value: Optional[pulumi.Input[str]]):
|
96
|
-
pulumi.set(self, "folder", value)
|
97
|
-
|
98
|
-
@property
|
99
|
-
@pulumi.getter(name="keyProject")
|
100
|
-
def key_project(self) -> Optional[pulumi.Input[str]]:
|
101
|
-
"""
|
102
|
-
The target key project for a given folder where KMS Autokey will provision a
|
103
|
-
CryptoKey for any new KeyHandle the Developer creates. Should have the form
|
104
|
-
`projects/<project_id_or_number>`.
|
105
|
-
"""
|
106
|
-
return pulumi.get(self, "key_project")
|
107
|
-
|
108
|
-
@key_project.setter
|
109
|
-
def key_project(self, value: Optional[pulumi.Input[str]]):
|
110
|
-
pulumi.set(self, "key_project", value)
|
111
|
-
|
112
|
-
|
113
|
-
class AutokeyConfig(pulumi.CustomResource):
|
114
|
-
@overload
|
115
|
-
def __init__(__self__,
|
116
|
-
resource_name: str,
|
117
|
-
opts: Optional[pulumi.ResourceOptions] = None,
|
118
|
-
folder: Optional[pulumi.Input[str]] = None,
|
119
|
-
key_project: Optional[pulumi.Input[str]] = None,
|
120
|
-
__props__=None):
|
121
|
-
"""
|
122
|
-
## Example Usage
|
123
|
-
|
124
|
-
### Kms Autokey Config All
|
125
|
-
|
126
|
-
```python
|
127
|
-
import pulumi
|
128
|
-
import pulumi_gcp as gcp
|
129
|
-
import pulumi_time as time
|
130
|
-
|
131
|
-
# Create Folder in GCP Organization
|
132
|
-
autokms_folder = gcp.organizations.Folder("autokms_folder",
|
133
|
-
display_name="my-folder",
|
134
|
-
parent="organizations/123456789")
|
135
|
-
# Create the key project
|
136
|
-
key_project = gcp.organizations.Project("key_project",
|
137
|
-
project_id="key-proj",
|
138
|
-
name="key-proj",
|
139
|
-
folder_id=autokms_folder.folder_id,
|
140
|
-
billing_account="000000-0000000-0000000-000000",
|
141
|
-
opts=pulumi.ResourceOptions(depends_on=[autokms_folder]))
|
142
|
-
# Enable the Cloud KMS API
|
143
|
-
kms_api_service = gcp.projects.Service("kms_api_service",
|
144
|
-
service="cloudkms.googleapis.com",
|
145
|
-
project=key_project.project_id,
|
146
|
-
disable_on_destroy=False,
|
147
|
-
disable_dependent_services=True,
|
148
|
-
opts=pulumi.ResourceOptions(depends_on=[key_project]))
|
149
|
-
# Wait delay after enabling APIs
|
150
|
-
wait_enable_service_api = time.index.Sleep("wait_enable_service_api", create_duration=30s,
|
151
|
-
opts=pulumi.ResourceOptions(depends_on=[kms_api_service]))
|
152
|
-
#Create KMS Service Agent
|
153
|
-
kms_service_agent = gcp.projects.ServiceIdentity("kms_service_agent",
|
154
|
-
service="cloudkms.googleapis.com",
|
155
|
-
project=key_project.number,
|
156
|
-
opts=pulumi.ResourceOptions(depends_on=[wait_enable_service_api]))
|
157
|
-
# Wait delay after creating service agent.
|
158
|
-
wait_service_agent = time.index.Sleep("wait_service_agent", create_duration=10s,
|
159
|
-
opts=pulumi.ResourceOptions(depends_on=[kms_service_agent]))
|
160
|
-
#Grant the KMS Service Agent the Cloud KMS Admin role
|
161
|
-
autokey_project_admin = gcp.projects.IAMMember("autokey_project_admin",
|
162
|
-
project=key_project.project_id,
|
163
|
-
role="roles/cloudkms.admin",
|
164
|
-
member=key_project.number.apply(lambda number: f"serviceAccount:service-{number}@gcp-sa-cloudkms.iam.gserviceaccount.com"),
|
165
|
-
opts=pulumi.ResourceOptions(depends_on=[wait_service_agent]))
|
166
|
-
# Wait delay after granting IAM permissions
|
167
|
-
wait_srv_acc_permissions = time.index.Sleep("wait_srv_acc_permissions", create_duration=10s,
|
168
|
-
opts=pulumi.ResourceOptions(depends_on=[autokey_project_admin]))
|
169
|
-
example_autokeyconfig = gcp.kms.AutokeyConfig("example-autokeyconfig",
|
170
|
-
folder=autokms_folder.folder_id,
|
171
|
-
key_project=key_project.project_id.apply(lambda project_id: f"projects/{project_id}"),
|
172
|
-
opts=pulumi.ResourceOptions(depends_on=[wait_srv_acc_permissions]))
|
173
|
-
```
|
174
|
-
|
175
|
-
## Import
|
176
|
-
|
177
|
-
AutokeyConfig can be imported using any of these accepted formats:
|
178
|
-
|
179
|
-
* `folders/{{folder}}/autokeyConfig`
|
180
|
-
|
181
|
-
* `{{folder}}`
|
182
|
-
|
183
|
-
When using the `pulumi import` command, AutokeyConfig can be imported using one of the formats above. For example:
|
184
|
-
|
185
|
-
```sh
|
186
|
-
$ pulumi import gcp:kms/autokeyConfig:AutokeyConfig default folders/{{folder}}/autokeyConfig
|
187
|
-
```
|
188
|
-
|
189
|
-
```sh
|
190
|
-
$ pulumi import gcp:kms/autokeyConfig:AutokeyConfig default {{folder}}
|
191
|
-
```
|
192
|
-
|
193
|
-
:param str resource_name: The name of the resource.
|
194
|
-
:param pulumi.ResourceOptions opts: Options for the resource.
|
195
|
-
:param pulumi.Input[str] folder: The folder for which to retrieve config.
|
196
|
-
|
197
|
-
|
198
|
-
- - -
|
199
|
-
:param pulumi.Input[str] key_project: The target key project for a given folder where KMS Autokey will provision a
|
200
|
-
CryptoKey for any new KeyHandle the Developer creates. Should have the form
|
201
|
-
`projects/<project_id_or_number>`.
|
202
|
-
"""
|
203
|
-
...
|
204
|
-
@overload
|
205
|
-
def __init__(__self__,
|
206
|
-
resource_name: str,
|
207
|
-
args: AutokeyConfigArgs,
|
208
|
-
opts: Optional[pulumi.ResourceOptions] = None):
|
209
|
-
"""
|
210
|
-
## Example Usage
|
211
|
-
|
212
|
-
### Kms Autokey Config All
|
213
|
-
|
214
|
-
```python
|
215
|
-
import pulumi
|
216
|
-
import pulumi_gcp as gcp
|
217
|
-
import pulumi_time as time
|
218
|
-
|
219
|
-
# Create Folder in GCP Organization
|
220
|
-
autokms_folder = gcp.organizations.Folder("autokms_folder",
|
221
|
-
display_name="my-folder",
|
222
|
-
parent="organizations/123456789")
|
223
|
-
# Create the key project
|
224
|
-
key_project = gcp.organizations.Project("key_project",
|
225
|
-
project_id="key-proj",
|
226
|
-
name="key-proj",
|
227
|
-
folder_id=autokms_folder.folder_id,
|
228
|
-
billing_account="000000-0000000-0000000-000000",
|
229
|
-
opts=pulumi.ResourceOptions(depends_on=[autokms_folder]))
|
230
|
-
# Enable the Cloud KMS API
|
231
|
-
kms_api_service = gcp.projects.Service("kms_api_service",
|
232
|
-
service="cloudkms.googleapis.com",
|
233
|
-
project=key_project.project_id,
|
234
|
-
disable_on_destroy=False,
|
235
|
-
disable_dependent_services=True,
|
236
|
-
opts=pulumi.ResourceOptions(depends_on=[key_project]))
|
237
|
-
# Wait delay after enabling APIs
|
238
|
-
wait_enable_service_api = time.index.Sleep("wait_enable_service_api", create_duration=30s,
|
239
|
-
opts=pulumi.ResourceOptions(depends_on=[kms_api_service]))
|
240
|
-
#Create KMS Service Agent
|
241
|
-
kms_service_agent = gcp.projects.ServiceIdentity("kms_service_agent",
|
242
|
-
service="cloudkms.googleapis.com",
|
243
|
-
project=key_project.number,
|
244
|
-
opts=pulumi.ResourceOptions(depends_on=[wait_enable_service_api]))
|
245
|
-
# Wait delay after creating service agent.
|
246
|
-
wait_service_agent = time.index.Sleep("wait_service_agent", create_duration=10s,
|
247
|
-
opts=pulumi.ResourceOptions(depends_on=[kms_service_agent]))
|
248
|
-
#Grant the KMS Service Agent the Cloud KMS Admin role
|
249
|
-
autokey_project_admin = gcp.projects.IAMMember("autokey_project_admin",
|
250
|
-
project=key_project.project_id,
|
251
|
-
role="roles/cloudkms.admin",
|
252
|
-
member=key_project.number.apply(lambda number: f"serviceAccount:service-{number}@gcp-sa-cloudkms.iam.gserviceaccount.com"),
|
253
|
-
opts=pulumi.ResourceOptions(depends_on=[wait_service_agent]))
|
254
|
-
# Wait delay after granting IAM permissions
|
255
|
-
wait_srv_acc_permissions = time.index.Sleep("wait_srv_acc_permissions", create_duration=10s,
|
256
|
-
opts=pulumi.ResourceOptions(depends_on=[autokey_project_admin]))
|
257
|
-
example_autokeyconfig = gcp.kms.AutokeyConfig("example-autokeyconfig",
|
258
|
-
folder=autokms_folder.folder_id,
|
259
|
-
key_project=key_project.project_id.apply(lambda project_id: f"projects/{project_id}"),
|
260
|
-
opts=pulumi.ResourceOptions(depends_on=[wait_srv_acc_permissions]))
|
261
|
-
```
|
262
|
-
|
263
|
-
## Import
|
264
|
-
|
265
|
-
AutokeyConfig can be imported using any of these accepted formats:
|
266
|
-
|
267
|
-
* `folders/{{folder}}/autokeyConfig`
|
268
|
-
|
269
|
-
* `{{folder}}`
|
270
|
-
|
271
|
-
When using the `pulumi import` command, AutokeyConfig can be imported using one of the formats above. For example:
|
272
|
-
|
273
|
-
```sh
|
274
|
-
$ pulumi import gcp:kms/autokeyConfig:AutokeyConfig default folders/{{folder}}/autokeyConfig
|
275
|
-
```
|
276
|
-
|
277
|
-
```sh
|
278
|
-
$ pulumi import gcp:kms/autokeyConfig:AutokeyConfig default {{folder}}
|
279
|
-
```
|
280
|
-
|
281
|
-
:param str resource_name: The name of the resource.
|
282
|
-
:param AutokeyConfigArgs args: The arguments to use to populate this resource's properties.
|
283
|
-
:param pulumi.ResourceOptions opts: Options for the resource.
|
284
|
-
"""
|
285
|
-
...
|
286
|
-
def __init__(__self__, resource_name: str, *args, **kwargs):
|
287
|
-
resource_args, opts = _utilities.get_resource_args_opts(AutokeyConfigArgs, pulumi.ResourceOptions, *args, **kwargs)
|
288
|
-
if resource_args is not None:
|
289
|
-
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
290
|
-
else:
|
291
|
-
__self__._internal_init(resource_name, *args, **kwargs)
|
292
|
-
|
293
|
-
def _internal_init(__self__,
|
294
|
-
resource_name: str,
|
295
|
-
opts: Optional[pulumi.ResourceOptions] = None,
|
296
|
-
folder: Optional[pulumi.Input[str]] = None,
|
297
|
-
key_project: Optional[pulumi.Input[str]] = None,
|
298
|
-
__props__=None):
|
299
|
-
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
300
|
-
if not isinstance(opts, pulumi.ResourceOptions):
|
301
|
-
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
302
|
-
if opts.id is None:
|
303
|
-
if __props__ is not None:
|
304
|
-
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
305
|
-
__props__ = AutokeyConfigArgs.__new__(AutokeyConfigArgs)
|
306
|
-
|
307
|
-
if folder is None and not opts.urn:
|
308
|
-
raise TypeError("Missing required property 'folder'")
|
309
|
-
__props__.__dict__["folder"] = folder
|
310
|
-
__props__.__dict__["key_project"] = key_project
|
311
|
-
super(AutokeyConfig, __self__).__init__(
|
312
|
-
'gcp:kms/autokeyConfig:AutokeyConfig',
|
313
|
-
resource_name,
|
314
|
-
__props__,
|
315
|
-
opts)
|
316
|
-
|
317
|
-
@staticmethod
|
318
|
-
def get(resource_name: str,
|
319
|
-
id: pulumi.Input[str],
|
320
|
-
opts: Optional[pulumi.ResourceOptions] = None,
|
321
|
-
folder: Optional[pulumi.Input[str]] = None,
|
322
|
-
key_project: Optional[pulumi.Input[str]] = None) -> 'AutokeyConfig':
|
323
|
-
"""
|
324
|
-
Get an existing AutokeyConfig resource's state with the given name, id, and optional extra
|
325
|
-
properties used to qualify the lookup.
|
326
|
-
|
327
|
-
:param str resource_name: The unique name of the resulting resource.
|
328
|
-
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
329
|
-
:param pulumi.ResourceOptions opts: Options for the resource.
|
330
|
-
:param pulumi.Input[str] folder: The folder for which to retrieve config.
|
331
|
-
|
332
|
-
|
333
|
-
- - -
|
334
|
-
:param pulumi.Input[str] key_project: The target key project for a given folder where KMS Autokey will provision a
|
335
|
-
CryptoKey for any new KeyHandle the Developer creates. Should have the form
|
336
|
-
`projects/<project_id_or_number>`.
|
337
|
-
"""
|
338
|
-
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
339
|
-
|
340
|
-
__props__ = _AutokeyConfigState.__new__(_AutokeyConfigState)
|
341
|
-
|
342
|
-
__props__.__dict__["folder"] = folder
|
343
|
-
__props__.__dict__["key_project"] = key_project
|
344
|
-
return AutokeyConfig(resource_name, opts=opts, __props__=__props__)
|
345
|
-
|
346
|
-
@property
|
347
|
-
@pulumi.getter
|
348
|
-
def folder(self) -> pulumi.Output[str]:
|
349
|
-
"""
|
350
|
-
The folder for which to retrieve config.
|
351
|
-
|
352
|
-
|
353
|
-
- - -
|
354
|
-
"""
|
355
|
-
return pulumi.get(self, "folder")
|
356
|
-
|
357
|
-
@property
|
358
|
-
@pulumi.getter(name="keyProject")
|
359
|
-
def key_project(self) -> pulumi.Output[Optional[str]]:
|
360
|
-
"""
|
361
|
-
The target key project for a given folder where KMS Autokey will provision a
|
362
|
-
CryptoKey for any new KeyHandle the Developer creates. Should have the form
|
363
|
-
`projects/<project_id_or_number>`.
|
364
|
-
"""
|
365
|
-
return pulumi.get(self, "key_project")
|
366
|
-
|