pulumi-consul 3.12.3a1734111860__py3-none-any.whl → 3.13.0a1723008442__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.
Potentially problematic release.
This version of pulumi-consul might be problematic. Click here for more details.
- pulumi_consul/_inputs.py +10 -1573
- pulumi_consul/_utilities.py +1 -1
- pulumi_consul/acl_auth_method.py +5 -10
- pulumi_consul/acl_binding_rule.py +5 -10
- pulumi_consul/acl_policy.py +0 -5
- pulumi_consul/acl_role.py +21 -26
- pulumi_consul/acl_role_policy_attachment.py +0 -5
- pulumi_consul/acl_token.py +15 -20
- pulumi_consul/acl_token_policy_attachment.py +0 -5
- pulumi_consul/acl_token_role_attachment.py +0 -5
- pulumi_consul/admin_partition.py +0 -5
- pulumi_consul/agent_service.py +0 -5
- pulumi_consul/autopilot_config.py +0 -5
- pulumi_consul/catalog_entry.py +5 -10
- pulumi_consul/certificate_authority.py +0 -5
- pulumi_consul/config/__init__.pyi +0 -5
- pulumi_consul/config/outputs.py +0 -5
- pulumi_consul/config/vars.py +0 -5
- pulumi_consul/config_entry.py +0 -5
- pulumi_consul/config_entry_service_defaults.py +30 -35
- pulumi_consul/config_entry_service_intentions.py +48 -53
- pulumi_consul/config_entry_service_resolver.py +60 -65
- pulumi_consul/config_entry_service_router.py +5 -10
- pulumi_consul/config_entry_service_splitter.py +75 -80
- pulumi_consul/config_entry_v2_exported_services.py +0 -5
- pulumi_consul/get_acl_auth_method.py +5 -25
- pulumi_consul/get_acl_policy.py +5 -20
- pulumi_consul/get_acl_role.py +5 -22
- pulumi_consul/get_acl_token.py +5 -25
- pulumi_consul/get_acl_token_secret_id.py +5 -21
- pulumi_consul/get_agent_config.py +5 -17
- pulumi_consul/get_agent_self.py +5 -82
- pulumi_consul/get_autopilot_health.py +5 -16
- pulumi_consul/get_catalog_nodes.py +9 -21
- pulumi_consul/get_catalog_service.py +9 -26
- pulumi_consul/get_catalog_services.py +15 -27
- pulumi_consul/get_config_entry.py +5 -20
- pulumi_consul/get_config_entry_v2_exported_services.py +5 -27
- pulumi_consul/get_datacenters.py +5 -12
- pulumi_consul/get_key_prefix.py +19 -39
- pulumi_consul/get_keys.py +19 -38
- pulumi_consul/get_network_area_members.py +5 -18
- pulumi_consul/get_network_segments.py +5 -16
- pulumi_consul/get_nodes.py +9 -21
- pulumi_consul/get_peering.py +5 -22
- pulumi_consul/get_peerings.py +5 -14
- pulumi_consul/get_service.py +9 -26
- pulumi_consul/get_service_health.py +5 -28
- pulumi_consul/get_services.py +15 -27
- pulumi_consul/intention.py +0 -5
- pulumi_consul/key_prefix.py +15 -20
- pulumi_consul/keys.py +13 -18
- pulumi_consul/license.py +0 -5
- pulumi_consul/namespace.py +0 -5
- pulumi_consul/namespace_policy_attachment.py +0 -5
- pulumi_consul/namespace_role_attachment.py +0 -5
- pulumi_consul/network_area.py +0 -5
- pulumi_consul/node.py +0 -5
- pulumi_consul/outputs.py +0 -5
- pulumi_consul/peering.py +0 -5
- pulumi_consul/peering_token.py +0 -5
- pulumi_consul/prepared_query.py +51 -56
- pulumi_consul/provider.py +6 -11
- pulumi_consul/pulumi-plugin.json +1 -1
- pulumi_consul/service.py +43 -48
- {pulumi_consul-3.12.3a1734111860.dist-info → pulumi_consul-3.13.0a1723008442.dist-info}/METADATA +5 -6
- pulumi_consul-3.13.0a1723008442.dist-info/RECORD +72 -0
- {pulumi_consul-3.12.3a1734111860.dist-info → pulumi_consul-3.13.0a1723008442.dist-info}/WHEEL +1 -1
- pulumi_consul-3.12.3a1734111860.dist-info/RECORD +0 -72
- {pulumi_consul-3.12.3a1734111860.dist-info → pulumi_consul-3.13.0a1723008442.dist-info}/top_level.txt +0 -0
pulumi_consul/get_keys.py
CHANGED
|
@@ -4,14 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
import copy
|
|
6
6
|
import warnings
|
|
7
|
-
import sys
|
|
8
7
|
import pulumi
|
|
9
8
|
import pulumi.runtime
|
|
10
9
|
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
10
|
from . import _utilities
|
|
16
11
|
from . import outputs
|
|
17
12
|
from ._inputs import *
|
|
@@ -139,7 +134,7 @@ class AwaitableGetKeysResult(GetKeysResult):
|
|
|
139
134
|
|
|
140
135
|
def get_keys(datacenter: Optional[str] = None,
|
|
141
136
|
error_on_missing_keys: Optional[bool] = None,
|
|
142
|
-
keys: Optional[Sequence[
|
|
137
|
+
keys: Optional[Sequence[pulumi.InputType['GetKeysKeyArgs']]] = None,
|
|
143
138
|
namespace: Optional[str] = None,
|
|
144
139
|
partition: Optional[str] = None,
|
|
145
140
|
token: Optional[str] = None,
|
|
@@ -155,11 +150,11 @@ def get_keys(datacenter: Optional[str] = None,
|
|
|
155
150
|
import pulumi_consul as consul
|
|
156
151
|
|
|
157
152
|
app = consul.get_keys(datacenter="nyc1",
|
|
158
|
-
keys=[
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
153
|
+
keys=[consul.GetKeysKeyArgs(
|
|
154
|
+
name="ami",
|
|
155
|
+
path="service/app/launch_ami",
|
|
156
|
+
default="ami-1234",
|
|
157
|
+
)])
|
|
163
158
|
# Start our instance with the dynamic ami value
|
|
164
159
|
app_instance = aws.index.Instance("app", ami=app.var.ami)
|
|
165
160
|
```
|
|
@@ -167,7 +162,7 @@ def get_keys(datacenter: Optional[str] = None,
|
|
|
167
162
|
|
|
168
163
|
:param str datacenter: The datacenter to use. This overrides the agent's default datacenter and the datacenter in the provider setup.
|
|
169
164
|
:param bool error_on_missing_keys: Whether to return an error when a key is absent from the KV store and no default is configured. This defaults to `false`.
|
|
170
|
-
:param Sequence[
|
|
165
|
+
:param Sequence[pulumi.InputType['GetKeysKeyArgs']] keys: Specifies a key in Consul to be read. Supported values documented below. Multiple blocks supported.
|
|
171
166
|
:param str namespace: The namespace to lookup the keys.
|
|
172
167
|
:param str partition: The partition to lookup the keys.
|
|
173
168
|
:param str token: The ACL token to use. This overrides the token that the agent provides by default.
|
|
@@ -191,13 +186,16 @@ def get_keys(datacenter: Optional[str] = None,
|
|
|
191
186
|
partition=pulumi.get(__ret__, 'partition'),
|
|
192
187
|
token=pulumi.get(__ret__, 'token'),
|
|
193
188
|
var=pulumi.get(__ret__, 'var'))
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
@_utilities.lift_output_func(get_keys)
|
|
194
192
|
def get_keys_output(datacenter: Optional[pulumi.Input[Optional[str]]] = None,
|
|
195
193
|
error_on_missing_keys: Optional[pulumi.Input[Optional[bool]]] = None,
|
|
196
|
-
keys: Optional[pulumi.Input[Optional[Sequence[
|
|
194
|
+
keys: Optional[pulumi.Input[Optional[Sequence[pulumi.InputType['GetKeysKeyArgs']]]]] = None,
|
|
197
195
|
namespace: Optional[pulumi.Input[Optional[str]]] = None,
|
|
198
196
|
partition: Optional[pulumi.Input[Optional[str]]] = None,
|
|
199
197
|
token: Optional[pulumi.Input[Optional[str]]] = None,
|
|
200
|
-
opts: Optional[
|
|
198
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetKeysResult]:
|
|
201
199
|
"""
|
|
202
200
|
The `Keys` datasource reads values from the Consul key/value store. This is a powerful way to dynamically set values in templates.
|
|
203
201
|
|
|
@@ -209,11 +207,11 @@ def get_keys_output(datacenter: Optional[pulumi.Input[Optional[str]]] = None,
|
|
|
209
207
|
import pulumi_consul as consul
|
|
210
208
|
|
|
211
209
|
app = consul.get_keys(datacenter="nyc1",
|
|
212
|
-
keys=[
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
210
|
+
keys=[consul.GetKeysKeyArgs(
|
|
211
|
+
name="ami",
|
|
212
|
+
path="service/app/launch_ami",
|
|
213
|
+
default="ami-1234",
|
|
214
|
+
)])
|
|
217
215
|
# Start our instance with the dynamic ami value
|
|
218
216
|
app_instance = aws.index.Instance("app", ami=app.var.ami)
|
|
219
217
|
```
|
|
@@ -221,26 +219,9 @@ def get_keys_output(datacenter: Optional[pulumi.Input[Optional[str]]] = None,
|
|
|
221
219
|
|
|
222
220
|
:param str datacenter: The datacenter to use. This overrides the agent's default datacenter and the datacenter in the provider setup.
|
|
223
221
|
:param bool error_on_missing_keys: Whether to return an error when a key is absent from the KV store and no default is configured. This defaults to `false`.
|
|
224
|
-
:param Sequence[
|
|
222
|
+
:param Sequence[pulumi.InputType['GetKeysKeyArgs']] keys: Specifies a key in Consul to be read. Supported values documented below. Multiple blocks supported.
|
|
225
223
|
:param str namespace: The namespace to lookup the keys.
|
|
226
224
|
:param str partition: The partition to lookup the keys.
|
|
227
225
|
:param str token: The ACL token to use. This overrides the token that the agent provides by default.
|
|
228
226
|
"""
|
|
229
|
-
|
|
230
|
-
__args__['datacenter'] = datacenter
|
|
231
|
-
__args__['errorOnMissingKeys'] = error_on_missing_keys
|
|
232
|
-
__args__['keys'] = keys
|
|
233
|
-
__args__['namespace'] = namespace
|
|
234
|
-
__args__['partition'] = partition
|
|
235
|
-
__args__['token'] = token
|
|
236
|
-
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
237
|
-
__ret__ = pulumi.runtime.invoke_output('consul:index/getKeys:getKeys', __args__, opts=opts, typ=GetKeysResult)
|
|
238
|
-
return __ret__.apply(lambda __response__: GetKeysResult(
|
|
239
|
-
datacenter=pulumi.get(__response__, 'datacenter'),
|
|
240
|
-
error_on_missing_keys=pulumi.get(__response__, 'error_on_missing_keys'),
|
|
241
|
-
id=pulumi.get(__response__, 'id'),
|
|
242
|
-
keys=pulumi.get(__response__, 'keys'),
|
|
243
|
-
namespace=pulumi.get(__response__, 'namespace'),
|
|
244
|
-
partition=pulumi.get(__response__, 'partition'),
|
|
245
|
-
token=pulumi.get(__response__, 'token'),
|
|
246
|
-
var=pulumi.get(__response__, 'var')))
|
|
227
|
+
...
|
|
@@ -4,14 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
import copy
|
|
6
6
|
import warnings
|
|
7
|
-
import sys
|
|
8
7
|
import pulumi
|
|
9
8
|
import pulumi.runtime
|
|
10
9
|
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
10
|
from . import _utilities
|
|
16
11
|
from . import outputs
|
|
17
12
|
|
|
@@ -141,10 +136,13 @@ def get_network_area_members(datacenter: Optional[str] = None,
|
|
|
141
136
|
members=pulumi.get(__ret__, 'members'),
|
|
142
137
|
token=pulumi.get(__ret__, 'token'),
|
|
143
138
|
uuid=pulumi.get(__ret__, 'uuid'))
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
@_utilities.lift_output_func(get_network_area_members)
|
|
144
142
|
def get_network_area_members_output(datacenter: Optional[pulumi.Input[Optional[str]]] = None,
|
|
145
143
|
token: Optional[pulumi.Input[Optional[str]]] = None,
|
|
146
144
|
uuid: Optional[pulumi.Input[str]] = None,
|
|
147
|
-
opts: Optional[
|
|
145
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetNetworkAreaMembersResult]:
|
|
148
146
|
"""
|
|
149
147
|
> **NOTE:** This feature requires [Consul Enterprise](https://www.consul.io/docs/enterprise/index.html).
|
|
150
148
|
|
|
@@ -172,15 +170,4 @@ def get_network_area_members_output(datacenter: Optional[pulumi.Input[Optional[s
|
|
|
172
170
|
token that the agent provides by default.
|
|
173
171
|
:param str uuid: The UUID of the area to list.
|
|
174
172
|
"""
|
|
175
|
-
|
|
176
|
-
__args__['datacenter'] = datacenter
|
|
177
|
-
__args__['token'] = token
|
|
178
|
-
__args__['uuid'] = uuid
|
|
179
|
-
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
180
|
-
__ret__ = pulumi.runtime.invoke_output('consul:index/getNetworkAreaMembers:getNetworkAreaMembers', __args__, opts=opts, typ=GetNetworkAreaMembersResult)
|
|
181
|
-
return __ret__.apply(lambda __response__: GetNetworkAreaMembersResult(
|
|
182
|
-
datacenter=pulumi.get(__response__, 'datacenter'),
|
|
183
|
-
id=pulumi.get(__response__, 'id'),
|
|
184
|
-
members=pulumi.get(__response__, 'members'),
|
|
185
|
-
token=pulumi.get(__response__, 'token'),
|
|
186
|
-
uuid=pulumi.get(__response__, 'uuid')))
|
|
173
|
+
...
|
|
@@ -4,14 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
import copy
|
|
6
6
|
import warnings
|
|
7
|
-
import sys
|
|
8
7
|
import pulumi
|
|
9
8
|
import pulumi.runtime
|
|
10
9
|
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
10
|
from . import _utilities
|
|
16
11
|
|
|
17
12
|
__all__ = [
|
|
@@ -120,9 +115,12 @@ def get_network_segments(datacenter: Optional[str] = None,
|
|
|
120
115
|
id=pulumi.get(__ret__, 'id'),
|
|
121
116
|
segments=pulumi.get(__ret__, 'segments'),
|
|
122
117
|
token=pulumi.get(__ret__, 'token'))
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
@_utilities.lift_output_func(get_network_segments)
|
|
123
121
|
def get_network_segments_output(datacenter: Optional[pulumi.Input[Optional[str]]] = None,
|
|
124
122
|
token: Optional[pulumi.Input[Optional[str]]] = None,
|
|
125
|
-
opts: Optional[
|
|
123
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetNetworkSegmentsResult]:
|
|
126
124
|
"""
|
|
127
125
|
> **NOTE:** This feature requires [Consul Enterprise](https://www.consul.io/docs/enterprise/index.html).
|
|
128
126
|
|
|
@@ -145,13 +143,4 @@ def get_network_segments_output(datacenter: Optional[pulumi.Input[Optional[str]]
|
|
|
145
143
|
:param str token: The ACL token to use. This overrides the
|
|
146
144
|
token that the agent provides by default.
|
|
147
145
|
"""
|
|
148
|
-
|
|
149
|
-
__args__['datacenter'] = datacenter
|
|
150
|
-
__args__['token'] = token
|
|
151
|
-
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
152
|
-
__ret__ = pulumi.runtime.invoke_output('consul:index/getNetworkSegments:getNetworkSegments', __args__, opts=opts, typ=GetNetworkSegmentsResult)
|
|
153
|
-
return __ret__.apply(lambda __response__: GetNetworkSegmentsResult(
|
|
154
|
-
datacenter=pulumi.get(__response__, 'datacenter'),
|
|
155
|
-
id=pulumi.get(__response__, 'id'),
|
|
156
|
-
segments=pulumi.get(__response__, 'segments'),
|
|
157
|
-
token=pulumi.get(__response__, 'token')))
|
|
146
|
+
...
|
pulumi_consul/get_nodes.py
CHANGED
|
@@ -4,14 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
import copy
|
|
6
6
|
import warnings
|
|
7
|
-
import sys
|
|
8
7
|
import pulumi
|
|
9
8
|
import pulumi.runtime
|
|
10
9
|
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
10
|
from . import _utilities
|
|
16
11
|
from . import outputs
|
|
17
12
|
from ._inputs import *
|
|
@@ -109,7 +104,7 @@ class AwaitableGetNodesResult(GetNodesResult):
|
|
|
109
104
|
query_options=self.query_options)
|
|
110
105
|
|
|
111
106
|
|
|
112
|
-
def get_nodes(query_options: Optional[Sequence[
|
|
107
|
+
def get_nodes(query_options: Optional[Sequence[pulumi.InputType['GetNodesQueryOptionArgs']]] = None,
|
|
113
108
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetNodesResult:
|
|
114
109
|
"""
|
|
115
110
|
The `get_nodes` data source returns a list of Consul nodes that have
|
|
@@ -118,7 +113,7 @@ def get_nodes(query_options: Optional[Sequence[Union['GetNodesQueryOptionArgs',
|
|
|
118
113
|
nodes from a different WAN-attached Consul datacenter.
|
|
119
114
|
|
|
120
115
|
|
|
121
|
-
:param Sequence[
|
|
116
|
+
:param Sequence[pulumi.InputType['GetNodesQueryOptionArgs']] query_options: See below.
|
|
122
117
|
"""
|
|
123
118
|
__args__ = dict()
|
|
124
119
|
__args__['queryOptions'] = query_options
|
|
@@ -132,8 +127,11 @@ def get_nodes(query_options: Optional[Sequence[Union['GetNodesQueryOptionArgs',
|
|
|
132
127
|
node_names=pulumi.get(__ret__, 'node_names'),
|
|
133
128
|
nodes=pulumi.get(__ret__, 'nodes'),
|
|
134
129
|
query_options=pulumi.get(__ret__, 'query_options'))
|
|
135
|
-
|
|
136
|
-
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
@_utilities.lift_output_func(get_nodes)
|
|
133
|
+
def get_nodes_output(query_options: Optional[pulumi.Input[Optional[Sequence[pulumi.InputType['GetNodesQueryOptionArgs']]]]] = None,
|
|
134
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetNodesResult]:
|
|
137
135
|
"""
|
|
138
136
|
The `get_nodes` data source returns a list of Consul nodes that have
|
|
139
137
|
been registered with the Consul cluster in a given datacenter. By specifying a
|
|
@@ -141,16 +139,6 @@ def get_nodes_output(query_options: Optional[pulumi.Input[Optional[Sequence[Unio
|
|
|
141
139
|
nodes from a different WAN-attached Consul datacenter.
|
|
142
140
|
|
|
143
141
|
|
|
144
|
-
:param Sequence[
|
|
142
|
+
:param Sequence[pulumi.InputType['GetNodesQueryOptionArgs']] query_options: See below.
|
|
145
143
|
"""
|
|
146
|
-
|
|
147
|
-
__args__['queryOptions'] = query_options
|
|
148
|
-
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
149
|
-
__ret__ = pulumi.runtime.invoke_output('consul:index/getNodes:getNodes', __args__, opts=opts, typ=GetNodesResult)
|
|
150
|
-
return __ret__.apply(lambda __response__: GetNodesResult(
|
|
151
|
-
datacenter=pulumi.get(__response__, 'datacenter'),
|
|
152
|
-
id=pulumi.get(__response__, 'id'),
|
|
153
|
-
node_ids=pulumi.get(__response__, 'node_ids'),
|
|
154
|
-
node_names=pulumi.get(__response__, 'node_names'),
|
|
155
|
-
nodes=pulumi.get(__response__, 'nodes'),
|
|
156
|
-
query_options=pulumi.get(__response__, 'query_options')))
|
|
144
|
+
...
|
pulumi_consul/get_peering.py
CHANGED
|
@@ -4,14 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
import copy
|
|
6
6
|
import warnings
|
|
7
|
-
import sys
|
|
8
7
|
import pulumi
|
|
9
8
|
import pulumi.runtime
|
|
10
9
|
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
10
|
from . import _utilities
|
|
16
11
|
|
|
17
12
|
__all__ = [
|
|
@@ -160,9 +155,12 @@ def get_peering(partition: Optional[str] = None,
|
|
|
160
155
|
peer_server_addresses=pulumi.get(__ret__, 'peer_server_addresses'),
|
|
161
156
|
peer_server_name=pulumi.get(__ret__, 'peer_server_name'),
|
|
162
157
|
state=pulumi.get(__ret__, 'state'))
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
@_utilities.lift_output_func(get_peering)
|
|
163
161
|
def get_peering_output(partition: Optional[pulumi.Input[Optional[str]]] = None,
|
|
164
162
|
peer_name: Optional[pulumi.Input[str]] = None,
|
|
165
|
-
opts: Optional[
|
|
163
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetPeeringResult]:
|
|
166
164
|
"""
|
|
167
165
|
## Example Usage
|
|
168
166
|
|
|
@@ -173,19 +171,4 @@ def get_peering_output(partition: Optional[pulumi.Input[Optional[str]]] = None,
|
|
|
173
171
|
basic = consul.get_peering(peer_name="peered-cluster")
|
|
174
172
|
```
|
|
175
173
|
"""
|
|
176
|
-
|
|
177
|
-
__args__['partition'] = partition
|
|
178
|
-
__args__['peerName'] = peer_name
|
|
179
|
-
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
180
|
-
__ret__ = pulumi.runtime.invoke_output('consul:index/getPeering:getPeering', __args__, opts=opts, typ=GetPeeringResult)
|
|
181
|
-
return __ret__.apply(lambda __response__: GetPeeringResult(
|
|
182
|
-
deleted_at=pulumi.get(__response__, 'deleted_at'),
|
|
183
|
-
id=pulumi.get(__response__, 'id'),
|
|
184
|
-
meta=pulumi.get(__response__, 'meta'),
|
|
185
|
-
partition=pulumi.get(__response__, 'partition'),
|
|
186
|
-
peer_ca_pems=pulumi.get(__response__, 'peer_ca_pems'),
|
|
187
|
-
peer_id=pulumi.get(__response__, 'peer_id'),
|
|
188
|
-
peer_name=pulumi.get(__response__, 'peer_name'),
|
|
189
|
-
peer_server_addresses=pulumi.get(__response__, 'peer_server_addresses'),
|
|
190
|
-
peer_server_name=pulumi.get(__response__, 'peer_server_name'),
|
|
191
|
-
state=pulumi.get(__response__, 'state')))
|
|
174
|
+
...
|
pulumi_consul/get_peerings.py
CHANGED
|
@@ -4,14 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
import copy
|
|
6
6
|
import warnings
|
|
7
|
-
import sys
|
|
8
7
|
import pulumi
|
|
9
8
|
import pulumi.runtime
|
|
10
9
|
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
10
|
from . import _utilities
|
|
16
11
|
from . import outputs
|
|
17
12
|
|
|
@@ -89,8 +84,11 @@ def get_peerings(partition: Optional[str] = None,
|
|
|
89
84
|
id=pulumi.get(__ret__, 'id'),
|
|
90
85
|
partition=pulumi.get(__ret__, 'partition'),
|
|
91
86
|
peers=pulumi.get(__ret__, 'peers'))
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
@_utilities.lift_output_func(get_peerings)
|
|
92
90
|
def get_peerings_output(partition: Optional[pulumi.Input[Optional[str]]] = None,
|
|
93
|
-
opts: Optional[
|
|
91
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetPeeringsResult]:
|
|
94
92
|
"""
|
|
95
93
|
## Example Usage
|
|
96
94
|
|
|
@@ -101,11 +99,4 @@ def get_peerings_output(partition: Optional[pulumi.Input[Optional[str]]] = None,
|
|
|
101
99
|
peers = consul.get_peerings()
|
|
102
100
|
```
|
|
103
101
|
"""
|
|
104
|
-
|
|
105
|
-
__args__['partition'] = partition
|
|
106
|
-
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
107
|
-
__ret__ = pulumi.runtime.invoke_output('consul:index/getPeerings:getPeerings', __args__, opts=opts, typ=GetPeeringsResult)
|
|
108
|
-
return __ret__.apply(lambda __response__: GetPeeringsResult(
|
|
109
|
-
id=pulumi.get(__response__, 'id'),
|
|
110
|
-
partition=pulumi.get(__response__, 'partition'),
|
|
111
|
-
peers=pulumi.get(__response__, 'peers')))
|
|
102
|
+
...
|
pulumi_consul/get_service.py
CHANGED
|
@@ -4,14 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
import copy
|
|
6
6
|
import warnings
|
|
7
|
-
import sys
|
|
8
7
|
import pulumi
|
|
9
8
|
import pulumi.runtime
|
|
10
9
|
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
10
|
from . import _utilities
|
|
16
11
|
from . import outputs
|
|
17
12
|
from ._inputs import *
|
|
@@ -122,7 +117,7 @@ class AwaitableGetServiceResult(GetServiceResult):
|
|
|
122
117
|
def get_service(datacenter: Optional[str] = None,
|
|
123
118
|
filter: Optional[str] = None,
|
|
124
119
|
name: Optional[str] = None,
|
|
125
|
-
query_options: Optional[Sequence[
|
|
120
|
+
query_options: Optional[Sequence[pulumi.InputType['GetServiceQueryOptionArgs']]] = None,
|
|
126
121
|
tag: Optional[str] = None,
|
|
127
122
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetServiceResult:
|
|
128
123
|
"""
|
|
@@ -156,7 +151,7 @@ def get_service(datacenter: Optional[str] = None,
|
|
|
156
151
|
empty, the `datacenter` value found in the Consul agent that this provider is
|
|
157
152
|
configured to talk to.
|
|
158
153
|
:param str name: The service name to select.
|
|
159
|
-
:param Sequence[
|
|
154
|
+
:param Sequence[pulumi.InputType['GetServiceQueryOptionArgs']] query_options: See below.
|
|
160
155
|
:param str tag: A single tag that can be used to filter the list of nodes
|
|
161
156
|
to return based on a single matching tag..
|
|
162
157
|
"""
|
|
@@ -177,12 +172,15 @@ def get_service(datacenter: Optional[str] = None,
|
|
|
177
172
|
query_options=pulumi.get(__ret__, 'query_options'),
|
|
178
173
|
services=pulumi.get(__ret__, 'services'),
|
|
179
174
|
tag=pulumi.get(__ret__, 'tag'))
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
@_utilities.lift_output_func(get_service)
|
|
180
178
|
def get_service_output(datacenter: Optional[pulumi.Input[Optional[str]]] = None,
|
|
181
179
|
filter: Optional[pulumi.Input[Optional[str]]] = None,
|
|
182
180
|
name: Optional[pulumi.Input[str]] = None,
|
|
183
|
-
query_options: Optional[pulumi.Input[Optional[Sequence[
|
|
181
|
+
query_options: Optional[pulumi.Input[Optional[Sequence[pulumi.InputType['GetServiceQueryOptionArgs']]]]] = None,
|
|
184
182
|
tag: Optional[pulumi.Input[Optional[str]]] = None,
|
|
185
|
-
opts: Optional[
|
|
183
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetServiceResult]:
|
|
186
184
|
"""
|
|
187
185
|
`Service` provides details about a specific Consul service in a
|
|
188
186
|
given datacenter. The results include a list of nodes advertising the specified
|
|
@@ -214,23 +212,8 @@ def get_service_output(datacenter: Optional[pulumi.Input[Optional[str]]] = None,
|
|
|
214
212
|
empty, the `datacenter` value found in the Consul agent that this provider is
|
|
215
213
|
configured to talk to.
|
|
216
214
|
:param str name: The service name to select.
|
|
217
|
-
:param Sequence[
|
|
215
|
+
:param Sequence[pulumi.InputType['GetServiceQueryOptionArgs']] query_options: See below.
|
|
218
216
|
:param str tag: A single tag that can be used to filter the list of nodes
|
|
219
217
|
to return based on a single matching tag..
|
|
220
218
|
"""
|
|
221
|
-
|
|
222
|
-
__args__['datacenter'] = datacenter
|
|
223
|
-
__args__['filter'] = filter
|
|
224
|
-
__args__['name'] = name
|
|
225
|
-
__args__['queryOptions'] = query_options
|
|
226
|
-
__args__['tag'] = tag
|
|
227
|
-
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
228
|
-
__ret__ = pulumi.runtime.invoke_output('consul:index/getService:getService', __args__, opts=opts, typ=GetServiceResult)
|
|
229
|
-
return __ret__.apply(lambda __response__: GetServiceResult(
|
|
230
|
-
datacenter=pulumi.get(__response__, 'datacenter'),
|
|
231
|
-
filter=pulumi.get(__response__, 'filter'),
|
|
232
|
-
id=pulumi.get(__response__, 'id'),
|
|
233
|
-
name=pulumi.get(__response__, 'name'),
|
|
234
|
-
query_options=pulumi.get(__response__, 'query_options'),
|
|
235
|
-
services=pulumi.get(__response__, 'services'),
|
|
236
|
-
tag=pulumi.get(__response__, 'tag')))
|
|
219
|
+
...
|
|
@@ -4,14 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
import copy
|
|
6
6
|
import warnings
|
|
7
|
-
import sys
|
|
8
7
|
import pulumi
|
|
9
8
|
import pulumi.runtime
|
|
10
9
|
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
10
|
from . import _utilities
|
|
16
11
|
from . import outputs
|
|
17
12
|
|
|
@@ -212,6 +207,9 @@ def get_service_health(datacenter: Optional[str] = None,
|
|
|
212
207
|
results=pulumi.get(__ret__, 'results'),
|
|
213
208
|
tag=pulumi.get(__ret__, 'tag'),
|
|
214
209
|
wait_for=pulumi.get(__ret__, 'wait_for'))
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
@_utilities.lift_output_func(get_service_health)
|
|
215
213
|
def get_service_health_output(datacenter: Optional[pulumi.Input[Optional[str]]] = None,
|
|
216
214
|
filter: Optional[pulumi.Input[Optional[str]]] = None,
|
|
217
215
|
name: Optional[pulumi.Input[str]] = None,
|
|
@@ -220,7 +218,7 @@ def get_service_health_output(datacenter: Optional[pulumi.Input[Optional[str]]]
|
|
|
220
218
|
passing: Optional[pulumi.Input[Optional[bool]]] = None,
|
|
221
219
|
tag: Optional[pulumi.Input[Optional[str]]] = None,
|
|
222
220
|
wait_for: Optional[pulumi.Input[Optional[str]]] = None,
|
|
223
|
-
opts: Optional[
|
|
221
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetServiceHealthResult]:
|
|
224
222
|
"""
|
|
225
223
|
`get_service_health` can be used to get the list of the instances that
|
|
226
224
|
are currently healthy, according to their associated health-checks.
|
|
@@ -244,25 +242,4 @@ def get_service_health_output(datacenter: Optional[pulumi.Input[Optional[str]]]
|
|
|
244
242
|
:param str tag: A single tag that can be used to filter the list to return
|
|
245
243
|
based on a single matching tag.
|
|
246
244
|
"""
|
|
247
|
-
|
|
248
|
-
__args__['datacenter'] = datacenter
|
|
249
|
-
__args__['filter'] = filter
|
|
250
|
-
__args__['name'] = name
|
|
251
|
-
__args__['near'] = near
|
|
252
|
-
__args__['nodeMeta'] = node_meta
|
|
253
|
-
__args__['passing'] = passing
|
|
254
|
-
__args__['tag'] = tag
|
|
255
|
-
__args__['waitFor'] = wait_for
|
|
256
|
-
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
257
|
-
__ret__ = pulumi.runtime.invoke_output('consul:index/getServiceHealth:getServiceHealth', __args__, opts=opts, typ=GetServiceHealthResult)
|
|
258
|
-
return __ret__.apply(lambda __response__: GetServiceHealthResult(
|
|
259
|
-
datacenter=pulumi.get(__response__, 'datacenter'),
|
|
260
|
-
filter=pulumi.get(__response__, 'filter'),
|
|
261
|
-
id=pulumi.get(__response__, 'id'),
|
|
262
|
-
name=pulumi.get(__response__, 'name'),
|
|
263
|
-
near=pulumi.get(__response__, 'near'),
|
|
264
|
-
node_meta=pulumi.get(__response__, 'node_meta'),
|
|
265
|
-
passing=pulumi.get(__response__, 'passing'),
|
|
266
|
-
results=pulumi.get(__response__, 'results'),
|
|
267
|
-
tag=pulumi.get(__response__, 'tag'),
|
|
268
|
-
wait_for=pulumi.get(__response__, 'wait_for')))
|
|
245
|
+
...
|
pulumi_consul/get_services.py
CHANGED
|
@@ -4,14 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
import copy
|
|
6
6
|
import warnings
|
|
7
|
-
import sys
|
|
8
7
|
import pulumi
|
|
9
8
|
import pulumi.runtime
|
|
10
9
|
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
10
|
from . import _utilities
|
|
16
11
|
from . import outputs
|
|
17
12
|
from ._inputs import *
|
|
@@ -105,7 +100,7 @@ class AwaitableGetServicesResult(GetServicesResult):
|
|
|
105
100
|
tags=self.tags)
|
|
106
101
|
|
|
107
102
|
|
|
108
|
-
def get_services(query_options: Optional[Sequence[
|
|
103
|
+
def get_services(query_options: Optional[Sequence[pulumi.InputType['GetServicesQueryOptionArgs']]] = None,
|
|
109
104
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetServicesResult:
|
|
110
105
|
"""
|
|
111
106
|
The `get_services` data source returns a list of Consul services that
|
|
@@ -124,16 +119,16 @@ def get_services(query_options: Optional[Sequence[Union['GetServicesQueryOptionA
|
|
|
124
119
|
import pulumi_example as example
|
|
125
120
|
import pulumi_std as std
|
|
126
121
|
|
|
127
|
-
read_dc1 = consul.get_services(query_options=[
|
|
128
|
-
|
|
129
|
-
|
|
122
|
+
read_dc1 = consul.get_services(query_options=[consul.GetServicesQueryOptionArgs(
|
|
123
|
+
datacenter="dc1",
|
|
124
|
+
)])
|
|
130
125
|
# Set the description to a whitespace delimited list of the services
|
|
131
126
|
app = example.index.Resource("app", description=std.join(separator= ,
|
|
132
127
|
input=names).result)
|
|
133
128
|
```
|
|
134
129
|
|
|
135
130
|
|
|
136
|
-
:param Sequence[
|
|
131
|
+
:param Sequence[pulumi.InputType['GetServicesQueryOptionArgs']] query_options: See below.
|
|
137
132
|
"""
|
|
138
133
|
__args__ = dict()
|
|
139
134
|
__args__['queryOptions'] = query_options
|
|
@@ -147,8 +142,11 @@ def get_services(query_options: Optional[Sequence[Union['GetServicesQueryOptionA
|
|
|
147
142
|
query_options=pulumi.get(__ret__, 'query_options'),
|
|
148
143
|
services=pulumi.get(__ret__, 'services'),
|
|
149
144
|
tags=pulumi.get(__ret__, 'tags'))
|
|
150
|
-
|
|
151
|
-
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
@_utilities.lift_output_func(get_services)
|
|
148
|
+
def get_services_output(query_options: Optional[pulumi.Input[Optional[Sequence[pulumi.InputType['GetServicesQueryOptionArgs']]]]] = None,
|
|
149
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetServicesResult]:
|
|
152
150
|
"""
|
|
153
151
|
The `get_services` data source returns a list of Consul services that
|
|
154
152
|
have been registered with the Consul cluster in a given datacenter. By
|
|
@@ -166,25 +164,15 @@ def get_services_output(query_options: Optional[pulumi.Input[Optional[Sequence[U
|
|
|
166
164
|
import pulumi_example as example
|
|
167
165
|
import pulumi_std as std
|
|
168
166
|
|
|
169
|
-
read_dc1 = consul.get_services(query_options=[
|
|
170
|
-
|
|
171
|
-
|
|
167
|
+
read_dc1 = consul.get_services(query_options=[consul.GetServicesQueryOptionArgs(
|
|
168
|
+
datacenter="dc1",
|
|
169
|
+
)])
|
|
172
170
|
# Set the description to a whitespace delimited list of the services
|
|
173
171
|
app = example.index.Resource("app", description=std.join(separator= ,
|
|
174
172
|
input=names).result)
|
|
175
173
|
```
|
|
176
174
|
|
|
177
175
|
|
|
178
|
-
:param Sequence[
|
|
176
|
+
:param Sequence[pulumi.InputType['GetServicesQueryOptionArgs']] query_options: See below.
|
|
179
177
|
"""
|
|
180
|
-
|
|
181
|
-
__args__['queryOptions'] = query_options
|
|
182
|
-
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
183
|
-
__ret__ = pulumi.runtime.invoke_output('consul:index/getServices:getServices', __args__, opts=opts, typ=GetServicesResult)
|
|
184
|
-
return __ret__.apply(lambda __response__: GetServicesResult(
|
|
185
|
-
datacenter=pulumi.get(__response__, 'datacenter'),
|
|
186
|
-
id=pulumi.get(__response__, 'id'),
|
|
187
|
-
names=pulumi.get(__response__, 'names'),
|
|
188
|
-
query_options=pulumi.get(__response__, 'query_options'),
|
|
189
|
-
services=pulumi.get(__response__, 'services'),
|
|
190
|
-
tags=pulumi.get(__response__, 'tags')))
|
|
178
|
+
...
|
pulumi_consul/intention.py
CHANGED
|
@@ -4,14 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
import copy
|
|
6
6
|
import warnings
|
|
7
|
-
import sys
|
|
8
7
|
import pulumi
|
|
9
8
|
import pulumi.runtime
|
|
10
9
|
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
10
|
from . import _utilities
|
|
16
11
|
|
|
17
12
|
__all__ = ['IntentionArgs', 'Intention']
|