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_agent_self.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__ = [
|
|
@@ -852,7 +847,10 @@ def get_agent_self(opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetA
|
|
|
852
847
|
version=pulumi.get(__ret__, 'version'),
|
|
853
848
|
version_prerelease=pulumi.get(__ret__, 'version_prerelease'),
|
|
854
849
|
version_revision=pulumi.get(__ret__, 'version_revision'))
|
|
855
|
-
|
|
850
|
+
|
|
851
|
+
|
|
852
|
+
@_utilities.lift_output_func(get_agent_self)
|
|
853
|
+
def get_agent_self_output(opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetAgentSelfResult]:
|
|
856
854
|
"""
|
|
857
855
|
> **Warning:** The `get_agent_self` resource has been deprecated and will be removed
|
|
858
856
|
from a future release of the provider. Read the [upgrade instructions](https://www.terraform.io/docs/providers/consul/guides/upgrading.html#deprecation-of-consul_agent_self) for more information.
|
|
@@ -861,79 +859,4 @@ def get_agent_self_output(opts: Optional[Union[pulumi.InvokeOptions, pulumi.Invo
|
|
|
861
859
|
[configuration and status data](https://www.consul.io/docs/agent/http/agent.html#agent_self)
|
|
862
860
|
from the agent specified in the `provider`.
|
|
863
861
|
"""
|
|
864
|
-
|
|
865
|
-
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
866
|
-
__ret__ = pulumi.runtime.invoke_output('consul:index/getAgentSelf:getAgentSelf', __args__, opts=opts, typ=GetAgentSelfResult)
|
|
867
|
-
return __ret__.apply(lambda __response__: GetAgentSelfResult(
|
|
868
|
-
acl_datacenter=pulumi.get(__response__, 'acl_datacenter'),
|
|
869
|
-
acl_default_policy=pulumi.get(__response__, 'acl_default_policy'),
|
|
870
|
-
acl_disabled_ttl=pulumi.get(__response__, 'acl_disabled_ttl'),
|
|
871
|
-
acl_down_policy=pulumi.get(__response__, 'acl_down_policy'),
|
|
872
|
-
acl_enforce08_semantics=pulumi.get(__response__, 'acl_enforce08_semantics'),
|
|
873
|
-
acl_ttl=pulumi.get(__response__, 'acl_ttl'),
|
|
874
|
-
addresses=pulumi.get(__response__, 'addresses'),
|
|
875
|
-
advertise_addr=pulumi.get(__response__, 'advertise_addr'),
|
|
876
|
-
advertise_addr_wan=pulumi.get(__response__, 'advertise_addr_wan'),
|
|
877
|
-
advertise_addrs=pulumi.get(__response__, 'advertise_addrs'),
|
|
878
|
-
atlas_join=pulumi.get(__response__, 'atlas_join'),
|
|
879
|
-
bind_addr=pulumi.get(__response__, 'bind_addr'),
|
|
880
|
-
bootstrap_expect=pulumi.get(__response__, 'bootstrap_expect'),
|
|
881
|
-
bootstrap_mode=pulumi.get(__response__, 'bootstrap_mode'),
|
|
882
|
-
check_deregister_interval_min=pulumi.get(__response__, 'check_deregister_interval_min'),
|
|
883
|
-
check_reap_interval=pulumi.get(__response__, 'check_reap_interval'),
|
|
884
|
-
check_update_interval=pulumi.get(__response__, 'check_update_interval'),
|
|
885
|
-
client_addr=pulumi.get(__response__, 'client_addr'),
|
|
886
|
-
data_dir=pulumi.get(__response__, 'data_dir'),
|
|
887
|
-
datacenter=pulumi.get(__response__, 'datacenter'),
|
|
888
|
-
dev_mode=pulumi.get(__response__, 'dev_mode'),
|
|
889
|
-
dns=pulumi.get(__response__, 'dns'),
|
|
890
|
-
dns_recursors=pulumi.get(__response__, 'dns_recursors'),
|
|
891
|
-
domain=pulumi.get(__response__, 'domain'),
|
|
892
|
-
enable_anonymous_signature=pulumi.get(__response__, 'enable_anonymous_signature'),
|
|
893
|
-
enable_coordinates=pulumi.get(__response__, 'enable_coordinates'),
|
|
894
|
-
enable_debug=pulumi.get(__response__, 'enable_debug'),
|
|
895
|
-
enable_remote_exec=pulumi.get(__response__, 'enable_remote_exec'),
|
|
896
|
-
enable_syslog=pulumi.get(__response__, 'enable_syslog'),
|
|
897
|
-
enable_ui=pulumi.get(__response__, 'enable_ui'),
|
|
898
|
-
enable_update_check=pulumi.get(__response__, 'enable_update_check'),
|
|
899
|
-
id=pulumi.get(__response__, 'id'),
|
|
900
|
-
leave_on_int=pulumi.get(__response__, 'leave_on_int'),
|
|
901
|
-
leave_on_term=pulumi.get(__response__, 'leave_on_term'),
|
|
902
|
-
log_level=pulumi.get(__response__, 'log_level'),
|
|
903
|
-
name=pulumi.get(__response__, 'name'),
|
|
904
|
-
performance=pulumi.get(__response__, 'performance'),
|
|
905
|
-
pid_file=pulumi.get(__response__, 'pid_file'),
|
|
906
|
-
ports=pulumi.get(__response__, 'ports'),
|
|
907
|
-
protocol_version=pulumi.get(__response__, 'protocol_version'),
|
|
908
|
-
reconnect_timeout_lan=pulumi.get(__response__, 'reconnect_timeout_lan'),
|
|
909
|
-
reconnect_timeout_wan=pulumi.get(__response__, 'reconnect_timeout_wan'),
|
|
910
|
-
rejoin_after_leave=pulumi.get(__response__, 'rejoin_after_leave'),
|
|
911
|
-
retry_join_ec2=pulumi.get(__response__, 'retry_join_ec2'),
|
|
912
|
-
retry_join_gce=pulumi.get(__response__, 'retry_join_gce'),
|
|
913
|
-
retry_join_wans=pulumi.get(__response__, 'retry_join_wans'),
|
|
914
|
-
retry_joins=pulumi.get(__response__, 'retry_joins'),
|
|
915
|
-
retry_max_attempts=pulumi.get(__response__, 'retry_max_attempts'),
|
|
916
|
-
retry_max_attempts_wan=pulumi.get(__response__, 'retry_max_attempts_wan'),
|
|
917
|
-
serf_lan_bind_addr=pulumi.get(__response__, 'serf_lan_bind_addr'),
|
|
918
|
-
serf_wan_bind_addr=pulumi.get(__response__, 'serf_wan_bind_addr'),
|
|
919
|
-
server_mode=pulumi.get(__response__, 'server_mode'),
|
|
920
|
-
server_name=pulumi.get(__response__, 'server_name'),
|
|
921
|
-
session_ttl_min=pulumi.get(__response__, 'session_ttl_min'),
|
|
922
|
-
start_join_wans=pulumi.get(__response__, 'start_join_wans'),
|
|
923
|
-
start_joins=pulumi.get(__response__, 'start_joins'),
|
|
924
|
-
syslog_facility=pulumi.get(__response__, 'syslog_facility'),
|
|
925
|
-
tagged_addresses=pulumi.get(__response__, 'tagged_addresses'),
|
|
926
|
-
telemetry=pulumi.get(__response__, 'telemetry'),
|
|
927
|
-
tls_ca_file=pulumi.get(__response__, 'tls_ca_file'),
|
|
928
|
-
tls_cert_file=pulumi.get(__response__, 'tls_cert_file'),
|
|
929
|
-
tls_key_file=pulumi.get(__response__, 'tls_key_file'),
|
|
930
|
-
tls_min_version=pulumi.get(__response__, 'tls_min_version'),
|
|
931
|
-
tls_verify_incoming=pulumi.get(__response__, 'tls_verify_incoming'),
|
|
932
|
-
tls_verify_outgoing=pulumi.get(__response__, 'tls_verify_outgoing'),
|
|
933
|
-
tls_verify_server_hostname=pulumi.get(__response__, 'tls_verify_server_hostname'),
|
|
934
|
-
translate_wan_addrs=pulumi.get(__response__, 'translate_wan_addrs'),
|
|
935
|
-
ui_dir=pulumi.get(__response__, 'ui_dir'),
|
|
936
|
-
unix_sockets=pulumi.get(__response__, 'unix_sockets'),
|
|
937
|
-
version=pulumi.get(__response__, 'version'),
|
|
938
|
-
version_prerelease=pulumi.get(__response__, 'version_prerelease'),
|
|
939
|
-
version_revision=pulumi.get(__response__, 'version_revision')))
|
|
862
|
+
...
|
|
@@ -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
|
|
|
@@ -130,8 +125,11 @@ def get_autopilot_health(datacenter: Optional[str] = None,
|
|
|
130
125
|
healthy=pulumi.get(__ret__, 'healthy'),
|
|
131
126
|
id=pulumi.get(__ret__, 'id'),
|
|
132
127
|
servers=pulumi.get(__ret__, 'servers'))
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
@_utilities.lift_output_func(get_autopilot_health)
|
|
133
131
|
def get_autopilot_health_output(datacenter: Optional[pulumi.Input[Optional[str]]] = None,
|
|
134
|
-
opts: Optional[
|
|
132
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetAutopilotHealthResult]:
|
|
135
133
|
"""
|
|
136
134
|
The `get_autopilot_health` data source returns
|
|
137
135
|
[autopilot health information](https://www.consul.io/api/operator/autopilot.html#read-health)
|
|
@@ -151,13 +149,4 @@ def get_autopilot_health_output(datacenter: Optional[pulumi.Input[Optional[str]]
|
|
|
151
149
|
:param str datacenter: The datacenter to use. This overrides the agent's
|
|
152
150
|
default datacenter and the datacenter in the provider setup.
|
|
153
151
|
"""
|
|
154
|
-
|
|
155
|
-
__args__['datacenter'] = datacenter
|
|
156
|
-
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
157
|
-
__ret__ = pulumi.runtime.invoke_output('consul:index/getAutopilotHealth:getAutopilotHealth', __args__, opts=opts, typ=GetAutopilotHealthResult)
|
|
158
|
-
return __ret__.apply(lambda __response__: GetAutopilotHealthResult(
|
|
159
|
-
datacenter=pulumi.get(__response__, 'datacenter'),
|
|
160
|
-
failure_tolerance=pulumi.get(__response__, 'failure_tolerance'),
|
|
161
|
-
healthy=pulumi.get(__response__, 'healthy'),
|
|
162
|
-
id=pulumi.get(__response__, 'id'),
|
|
163
|
-
servers=pulumi.get(__response__, 'servers')))
|
|
152
|
+
...
|
|
@@ -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 *
|
|
@@ -111,7 +106,7 @@ class AwaitableGetCatalogNodesResult(GetCatalogNodesResult):
|
|
|
111
106
|
query_options=self.query_options)
|
|
112
107
|
|
|
113
108
|
|
|
114
|
-
def get_catalog_nodes(query_options: Optional[Sequence[
|
|
109
|
+
def get_catalog_nodes(query_options: Optional[Sequence[pulumi.InputType['GetCatalogNodesQueryOptionArgs']]] = None,
|
|
115
110
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetCatalogNodesResult:
|
|
116
111
|
"""
|
|
117
112
|
The `get_nodes` data source returns a list of Consul nodes that have
|
|
@@ -120,7 +115,7 @@ def get_catalog_nodes(query_options: Optional[Sequence[Union['GetCatalogNodesQue
|
|
|
120
115
|
nodes from a different WAN-attached Consul datacenter.
|
|
121
116
|
|
|
122
117
|
|
|
123
|
-
:param Sequence[
|
|
118
|
+
:param Sequence[pulumi.InputType['GetCatalogNodesQueryOptionArgs']] query_options: See below.
|
|
124
119
|
"""
|
|
125
120
|
pulumi.log.warn("""get_catalog_nodes is deprecated: getCatalogNodes has been deprecated in favor of getNodes""")
|
|
126
121
|
__args__ = dict()
|
|
@@ -135,8 +130,11 @@ def get_catalog_nodes(query_options: Optional[Sequence[Union['GetCatalogNodesQue
|
|
|
135
130
|
node_names=pulumi.get(__ret__, 'node_names'),
|
|
136
131
|
nodes=pulumi.get(__ret__, 'nodes'),
|
|
137
132
|
query_options=pulumi.get(__ret__, 'query_options'))
|
|
138
|
-
|
|
139
|
-
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
@_utilities.lift_output_func(get_catalog_nodes)
|
|
136
|
+
def get_catalog_nodes_output(query_options: Optional[pulumi.Input[Optional[Sequence[pulumi.InputType['GetCatalogNodesQueryOptionArgs']]]]] = None,
|
|
137
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetCatalogNodesResult]:
|
|
140
138
|
"""
|
|
141
139
|
The `get_nodes` data source returns a list of Consul nodes that have
|
|
142
140
|
been registered with the Consul cluster in a given datacenter. By specifying a
|
|
@@ -144,17 +142,7 @@ def get_catalog_nodes_output(query_options: Optional[pulumi.Input[Optional[Seque
|
|
|
144
142
|
nodes from a different WAN-attached Consul datacenter.
|
|
145
143
|
|
|
146
144
|
|
|
147
|
-
:param Sequence[
|
|
145
|
+
:param Sequence[pulumi.InputType['GetCatalogNodesQueryOptionArgs']] query_options: See below.
|
|
148
146
|
"""
|
|
149
147
|
pulumi.log.warn("""get_catalog_nodes is deprecated: getCatalogNodes has been deprecated in favor of getNodes""")
|
|
150
|
-
|
|
151
|
-
__args__['queryOptions'] = query_options
|
|
152
|
-
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
153
|
-
__ret__ = pulumi.runtime.invoke_output('consul:index/getCatalogNodes:getCatalogNodes', __args__, opts=opts, typ=GetCatalogNodesResult)
|
|
154
|
-
return __ret__.apply(lambda __response__: GetCatalogNodesResult(
|
|
155
|
-
datacenter=pulumi.get(__response__, 'datacenter'),
|
|
156
|
-
id=pulumi.get(__response__, 'id'),
|
|
157
|
-
node_ids=pulumi.get(__response__, 'node_ids'),
|
|
158
|
-
node_names=pulumi.get(__response__, 'node_names'),
|
|
159
|
-
nodes=pulumi.get(__response__, 'nodes'),
|
|
160
|
-
query_options=pulumi.get(__response__, 'query_options')))
|
|
148
|
+
...
|
|
@@ -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 *
|
|
@@ -124,7 +119,7 @@ class AwaitableGetCatalogServiceResult(GetCatalogServiceResult):
|
|
|
124
119
|
def get_catalog_service(datacenter: Optional[str] = None,
|
|
125
120
|
filter: Optional[str] = None,
|
|
126
121
|
name: Optional[str] = None,
|
|
127
|
-
query_options: Optional[Sequence[
|
|
122
|
+
query_options: Optional[Sequence[pulumi.InputType['GetCatalogServiceQueryOptionArgs']]] = None,
|
|
128
123
|
tag: Optional[str] = None,
|
|
129
124
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetCatalogServiceResult:
|
|
130
125
|
"""
|
|
@@ -158,7 +153,7 @@ def get_catalog_service(datacenter: Optional[str] = None,
|
|
|
158
153
|
empty, the `datacenter` value found in the Consul agent that this provider is
|
|
159
154
|
configured to talk to.
|
|
160
155
|
:param str name: The service name to select.
|
|
161
|
-
:param Sequence[
|
|
156
|
+
:param Sequence[pulumi.InputType['GetCatalogServiceQueryOptionArgs']] query_options: See below.
|
|
162
157
|
:param str tag: A single tag that can be used to filter the list of nodes
|
|
163
158
|
to return based on a single matching tag..
|
|
164
159
|
"""
|
|
@@ -180,12 +175,15 @@ def get_catalog_service(datacenter: Optional[str] = None,
|
|
|
180
175
|
query_options=pulumi.get(__ret__, 'query_options'),
|
|
181
176
|
services=pulumi.get(__ret__, 'services'),
|
|
182
177
|
tag=pulumi.get(__ret__, 'tag'))
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
@_utilities.lift_output_func(get_catalog_service)
|
|
183
181
|
def get_catalog_service_output(datacenter: Optional[pulumi.Input[Optional[str]]] = None,
|
|
184
182
|
filter: Optional[pulumi.Input[Optional[str]]] = None,
|
|
185
183
|
name: Optional[pulumi.Input[str]] = None,
|
|
186
|
-
query_options: Optional[pulumi.Input[Optional[Sequence[
|
|
184
|
+
query_options: Optional[pulumi.Input[Optional[Sequence[pulumi.InputType['GetCatalogServiceQueryOptionArgs']]]]] = None,
|
|
187
185
|
tag: Optional[pulumi.Input[Optional[str]]] = None,
|
|
188
|
-
opts: Optional[
|
|
186
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetCatalogServiceResult]:
|
|
189
187
|
"""
|
|
190
188
|
`Service` provides details about a specific Consul service in a
|
|
191
189
|
given datacenter. The results include a list of nodes advertising the specified
|
|
@@ -217,24 +215,9 @@ def get_catalog_service_output(datacenter: Optional[pulumi.Input[Optional[str]]]
|
|
|
217
215
|
empty, the `datacenter` value found in the Consul agent that this provider is
|
|
218
216
|
configured to talk to.
|
|
219
217
|
:param str name: The service name to select.
|
|
220
|
-
:param Sequence[
|
|
218
|
+
:param Sequence[pulumi.InputType['GetCatalogServiceQueryOptionArgs']] query_options: See below.
|
|
221
219
|
:param str tag: A single tag that can be used to filter the list of nodes
|
|
222
220
|
to return based on a single matching tag..
|
|
223
221
|
"""
|
|
224
222
|
pulumi.log.warn("""get_catalog_service is deprecated: getCatalogService has been deprecated in favor of getService""")
|
|
225
|
-
|
|
226
|
-
__args__['datacenter'] = datacenter
|
|
227
|
-
__args__['filter'] = filter
|
|
228
|
-
__args__['name'] = name
|
|
229
|
-
__args__['queryOptions'] = query_options
|
|
230
|
-
__args__['tag'] = tag
|
|
231
|
-
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
232
|
-
__ret__ = pulumi.runtime.invoke_output('consul:index/getCatalogService:getCatalogService', __args__, opts=opts, typ=GetCatalogServiceResult)
|
|
233
|
-
return __ret__.apply(lambda __response__: GetCatalogServiceResult(
|
|
234
|
-
datacenter=pulumi.get(__response__, 'datacenter'),
|
|
235
|
-
filter=pulumi.get(__response__, 'filter'),
|
|
236
|
-
id=pulumi.get(__response__, 'id'),
|
|
237
|
-
name=pulumi.get(__response__, 'name'),
|
|
238
|
-
query_options=pulumi.get(__response__, 'query_options'),
|
|
239
|
-
services=pulumi.get(__response__, 'services'),
|
|
240
|
-
tag=pulumi.get(__response__, 'tag')))
|
|
223
|
+
...
|
|
@@ -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 *
|
|
@@ -107,7 +102,7 @@ class AwaitableGetCatalogServicesResult(GetCatalogServicesResult):
|
|
|
107
102
|
tags=self.tags)
|
|
108
103
|
|
|
109
104
|
|
|
110
|
-
def get_catalog_services(query_options: Optional[Sequence[
|
|
105
|
+
def get_catalog_services(query_options: Optional[Sequence[pulumi.InputType['GetCatalogServicesQueryOptionArgs']]] = None,
|
|
111
106
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetCatalogServicesResult:
|
|
112
107
|
"""
|
|
113
108
|
The `get_services` data source returns a list of Consul services that
|
|
@@ -126,16 +121,16 @@ def get_catalog_services(query_options: Optional[Sequence[Union['GetCatalogServi
|
|
|
126
121
|
import pulumi_example as example
|
|
127
122
|
import pulumi_std as std
|
|
128
123
|
|
|
129
|
-
read_dc1 = consul.get_services(query_options=[
|
|
130
|
-
|
|
131
|
-
|
|
124
|
+
read_dc1 = consul.get_services(query_options=[consul.GetServicesQueryOptionArgs(
|
|
125
|
+
datacenter="dc1",
|
|
126
|
+
)])
|
|
132
127
|
# Set the description to a whitespace delimited list of the services
|
|
133
128
|
app = example.index.Resource("app", description=std.join(separator= ,
|
|
134
129
|
input=names).result)
|
|
135
130
|
```
|
|
136
131
|
|
|
137
132
|
|
|
138
|
-
:param Sequence[
|
|
133
|
+
:param Sequence[pulumi.InputType['GetCatalogServicesQueryOptionArgs']] query_options: See below.
|
|
139
134
|
"""
|
|
140
135
|
pulumi.log.warn("""get_catalog_services is deprecated: getCatalogServices has been deprecated in favor of getServices""")
|
|
141
136
|
__args__ = dict()
|
|
@@ -150,8 +145,11 @@ def get_catalog_services(query_options: Optional[Sequence[Union['GetCatalogServi
|
|
|
150
145
|
query_options=pulumi.get(__ret__, 'query_options'),
|
|
151
146
|
services=pulumi.get(__ret__, 'services'),
|
|
152
147
|
tags=pulumi.get(__ret__, 'tags'))
|
|
153
|
-
|
|
154
|
-
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
@_utilities.lift_output_func(get_catalog_services)
|
|
151
|
+
def get_catalog_services_output(query_options: Optional[pulumi.Input[Optional[Sequence[pulumi.InputType['GetCatalogServicesQueryOptionArgs']]]]] = None,
|
|
152
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetCatalogServicesResult]:
|
|
155
153
|
"""
|
|
156
154
|
The `get_services` data source returns a list of Consul services that
|
|
157
155
|
have been registered with the Consul cluster in a given datacenter. By
|
|
@@ -169,26 +167,16 @@ def get_catalog_services_output(query_options: Optional[pulumi.Input[Optional[Se
|
|
|
169
167
|
import pulumi_example as example
|
|
170
168
|
import pulumi_std as std
|
|
171
169
|
|
|
172
|
-
read_dc1 = consul.get_services(query_options=[
|
|
173
|
-
|
|
174
|
-
|
|
170
|
+
read_dc1 = consul.get_services(query_options=[consul.GetServicesQueryOptionArgs(
|
|
171
|
+
datacenter="dc1",
|
|
172
|
+
)])
|
|
175
173
|
# Set the description to a whitespace delimited list of the services
|
|
176
174
|
app = example.index.Resource("app", description=std.join(separator= ,
|
|
177
175
|
input=names).result)
|
|
178
176
|
```
|
|
179
177
|
|
|
180
178
|
|
|
181
|
-
:param Sequence[
|
|
179
|
+
:param Sequence[pulumi.InputType['GetCatalogServicesQueryOptionArgs']] query_options: See below.
|
|
182
180
|
"""
|
|
183
181
|
pulumi.log.warn("""get_catalog_services is deprecated: getCatalogServices has been deprecated in favor of getServices""")
|
|
184
|
-
|
|
185
|
-
__args__['queryOptions'] = query_options
|
|
186
|
-
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
187
|
-
__ret__ = pulumi.runtime.invoke_output('consul:index/getCatalogServices:getCatalogServices', __args__, opts=opts, typ=GetCatalogServicesResult)
|
|
188
|
-
return __ret__.apply(lambda __response__: GetCatalogServicesResult(
|
|
189
|
-
datacenter=pulumi.get(__response__, 'datacenter'),
|
|
190
|
-
id=pulumi.get(__response__, 'id'),
|
|
191
|
-
names=pulumi.get(__response__, 'names'),
|
|
192
|
-
query_options=pulumi.get(__response__, 'query_options'),
|
|
193
|
-
services=pulumi.get(__response__, 'services'),
|
|
194
|
-
tags=pulumi.get(__response__, 'tags')))
|
|
182
|
+
...
|
|
@@ -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__ = [
|
|
@@ -137,11 +132,14 @@ def get_config_entry(kind: Optional[str] = None,
|
|
|
137
132
|
name=pulumi.get(__ret__, 'name'),
|
|
138
133
|
namespace=pulumi.get(__ret__, 'namespace'),
|
|
139
134
|
partition=pulumi.get(__ret__, 'partition'))
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
@_utilities.lift_output_func(get_config_entry)
|
|
140
138
|
def get_config_entry_output(kind: Optional[pulumi.Input[str]] = None,
|
|
141
139
|
name: Optional[pulumi.Input[str]] = None,
|
|
142
140
|
namespace: Optional[pulumi.Input[Optional[str]]] = None,
|
|
143
141
|
partition: Optional[pulumi.Input[Optional[str]]] = None,
|
|
144
|
-
opts: Optional[
|
|
142
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetConfigEntryResult]:
|
|
145
143
|
"""
|
|
146
144
|
Use this data source to access information about an existing resource.
|
|
147
145
|
|
|
@@ -150,17 +148,4 @@ def get_config_entry_output(kind: Optional[pulumi.Input[str]] = None,
|
|
|
150
148
|
:param str namespace: The namespace the config entry is associated with.
|
|
151
149
|
:param str partition: The partition the config entry is associated with.
|
|
152
150
|
"""
|
|
153
|
-
|
|
154
|
-
__args__['kind'] = kind
|
|
155
|
-
__args__['name'] = name
|
|
156
|
-
__args__['namespace'] = namespace
|
|
157
|
-
__args__['partition'] = partition
|
|
158
|
-
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
159
|
-
__ret__ = pulumi.runtime.invoke_output('consul:index/getConfigEntry:getConfigEntry', __args__, opts=opts, typ=GetConfigEntryResult)
|
|
160
|
-
return __ret__.apply(lambda __response__: GetConfigEntryResult(
|
|
161
|
-
config_json=pulumi.get(__response__, 'config_json'),
|
|
162
|
-
id=pulumi.get(__response__, 'id'),
|
|
163
|
-
kind=pulumi.get(__response__, 'kind'),
|
|
164
|
-
name=pulumi.get(__response__, 'name'),
|
|
165
|
-
namespace=pulumi.get(__response__, 'namespace'),
|
|
166
|
-
partition=pulumi.get(__response__, 'partition')))
|
|
151
|
+
...
|
|
@@ -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__ = [
|
|
@@ -188,6 +183,9 @@ def get_config_entry_v2_exported_services(kind: Optional[str] = None,
|
|
|
188
183
|
peer_consumers=pulumi.get(__ret__, 'peer_consumers'),
|
|
189
184
|
sameness_group_consumers=pulumi.get(__ret__, 'sameness_group_consumers'),
|
|
190
185
|
services=pulumi.get(__ret__, 'services'))
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
@_utilities.lift_output_func(get_config_entry_v2_exported_services)
|
|
191
189
|
def get_config_entry_v2_exported_services_output(kind: Optional[pulumi.Input[str]] = None,
|
|
192
190
|
name: Optional[pulumi.Input[str]] = None,
|
|
193
191
|
namespace: Optional[pulumi.Input[Optional[str]]] = None,
|
|
@@ -196,7 +194,7 @@ def get_config_entry_v2_exported_services_output(kind: Optional[pulumi.Input[str
|
|
|
196
194
|
peer_consumers: Optional[pulumi.Input[Optional[Sequence[str]]]] = None,
|
|
197
195
|
sameness_group_consumers: Optional[pulumi.Input[Optional[Sequence[str]]]] = None,
|
|
198
196
|
services: Optional[pulumi.Input[Optional[Sequence[str]]]] = None,
|
|
199
|
-
opts: Optional[
|
|
197
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetConfigEntryV2ExportedServicesResult]:
|
|
200
198
|
"""
|
|
201
199
|
Use this data source to access information about an existing resource.
|
|
202
200
|
|
|
@@ -209,24 +207,4 @@ def get_config_entry_v2_exported_services_output(kind: Optional[pulumi.Input[str
|
|
|
209
207
|
:param Sequence[str] sameness_group_consumers: The exported service sameness group consumers.
|
|
210
208
|
:param Sequence[str] services: The exported services.
|
|
211
209
|
"""
|
|
212
|
-
|
|
213
|
-
__args__['kind'] = kind
|
|
214
|
-
__args__['name'] = name
|
|
215
|
-
__args__['namespace'] = namespace
|
|
216
|
-
__args__['partition'] = partition
|
|
217
|
-
__args__['partitionConsumers'] = partition_consumers
|
|
218
|
-
__args__['peerConsumers'] = peer_consumers
|
|
219
|
-
__args__['samenessGroupConsumers'] = sameness_group_consumers
|
|
220
|
-
__args__['services'] = services
|
|
221
|
-
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
222
|
-
__ret__ = pulumi.runtime.invoke_output('consul:index/getConfigEntryV2ExportedServices:getConfigEntryV2ExportedServices', __args__, opts=opts, typ=GetConfigEntryV2ExportedServicesResult)
|
|
223
|
-
return __ret__.apply(lambda __response__: GetConfigEntryV2ExportedServicesResult(
|
|
224
|
-
id=pulumi.get(__response__, 'id'),
|
|
225
|
-
kind=pulumi.get(__response__, 'kind'),
|
|
226
|
-
name=pulumi.get(__response__, 'name'),
|
|
227
|
-
namespace=pulumi.get(__response__, 'namespace'),
|
|
228
|
-
partition=pulumi.get(__response__, 'partition'),
|
|
229
|
-
partition_consumers=pulumi.get(__response__, 'partition_consumers'),
|
|
230
|
-
peer_consumers=pulumi.get(__response__, 'peer_consumers'),
|
|
231
|
-
sameness_group_consumers=pulumi.get(__response__, 'sameness_group_consumers'),
|
|
232
|
-
services=pulumi.get(__response__, 'services')))
|
|
210
|
+
...
|
pulumi_consul/get_datacenters.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__ = [
|
|
@@ -75,14 +70,12 @@ def get_datacenters(opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGet
|
|
|
75
70
|
return AwaitableGetDatacentersResult(
|
|
76
71
|
datacenters=pulumi.get(__ret__, 'datacenters'),
|
|
77
72
|
id=pulumi.get(__ret__, 'id'))
|
|
78
|
-
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
@_utilities.lift_output_func(get_datacenters)
|
|
76
|
+
def get_datacenters_output(opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetDatacentersResult]:
|
|
79
77
|
"""
|
|
80
78
|
The `get_datacenters` data source returns the list of all knwown Consul
|
|
81
79
|
datacenters.
|
|
82
80
|
"""
|
|
83
|
-
|
|
84
|
-
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
85
|
-
__ret__ = pulumi.runtime.invoke_output('consul:index/getDatacenters:getDatacenters', __args__, opts=opts, typ=GetDatacentersResult)
|
|
86
|
-
return __ret__.apply(lambda __response__: GetDatacentersResult(
|
|
87
|
-
datacenters=pulumi.get(__response__, 'datacenters'),
|
|
88
|
-
id=pulumi.get(__response__, 'id')))
|
|
81
|
+
...
|
pulumi_consul/get_key_prefix.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 *
|
|
@@ -141,7 +136,7 @@ def get_key_prefix(datacenter: Optional[str] = None,
|
|
|
141
136
|
namespace: Optional[str] = None,
|
|
142
137
|
partition: Optional[str] = None,
|
|
143
138
|
path_prefix: Optional[str] = None,
|
|
144
|
-
subkey_collection: Optional[Sequence[
|
|
139
|
+
subkey_collection: Optional[Sequence[pulumi.InputType['GetKeyPrefixSubkeyCollectionArgs']]] = None,
|
|
145
140
|
token: Optional[str] = None,
|
|
146
141
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetKeyPrefixResult:
|
|
147
142
|
"""
|
|
@@ -155,11 +150,11 @@ def get_key_prefix(datacenter: Optional[str] = None,
|
|
|
155
150
|
app = consul.get_key_prefix(datacenter="nyc1",
|
|
156
151
|
token="abcd",
|
|
157
152
|
path_prefix="myapp/config/",
|
|
158
|
-
subkey_collection=[
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
153
|
+
subkey_collection=[consul.GetKeyPrefixSubkeyCollectionArgs(
|
|
154
|
+
name="ami",
|
|
155
|
+
path="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
|
```
|
|
@@ -184,7 +179,7 @@ def get_key_prefix(datacenter: Optional[str] = None,
|
|
|
184
179
|
:param str path_prefix: Specifies the common prefix shared by all keys
|
|
185
180
|
that will be read by this data source instance. In most cases, this will
|
|
186
181
|
end with a slash to read a "folder" of subkeys.
|
|
187
|
-
:param Sequence[
|
|
182
|
+
:param Sequence[pulumi.InputType['GetKeyPrefixSubkeyCollectionArgs']] subkey_collection: Specifies a subkey in Consul to be read. Supported
|
|
188
183
|
values documented below. Multiple blocks supported.
|
|
189
184
|
:param str token: The ACL token to use. This overrides the
|
|
190
185
|
token that the agent provides by default.
|
|
@@ -209,13 +204,16 @@ def get_key_prefix(datacenter: Optional[str] = None,
|
|
|
209
204
|
subkeys=pulumi.get(__ret__, 'subkeys'),
|
|
210
205
|
token=pulumi.get(__ret__, 'token'),
|
|
211
206
|
var=pulumi.get(__ret__, 'var'))
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
@_utilities.lift_output_func(get_key_prefix)
|
|
212
210
|
def get_key_prefix_output(datacenter: Optional[pulumi.Input[Optional[str]]] = None,
|
|
213
211
|
namespace: Optional[pulumi.Input[Optional[str]]] = None,
|
|
214
212
|
partition: Optional[pulumi.Input[Optional[str]]] = None,
|
|
215
213
|
path_prefix: Optional[pulumi.Input[str]] = None,
|
|
216
|
-
subkey_collection: Optional[pulumi.Input[Optional[Sequence[
|
|
214
|
+
subkey_collection: Optional[pulumi.Input[Optional[Sequence[pulumi.InputType['GetKeyPrefixSubkeyCollectionArgs']]]]] = None,
|
|
217
215
|
token: Optional[pulumi.Input[Optional[str]]] = None,
|
|
218
|
-
opts: Optional[
|
|
216
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetKeyPrefixResult]:
|
|
219
217
|
"""
|
|
220
218
|
## Example Usage
|
|
221
219
|
|
|
@@ -227,11 +225,11 @@ def get_key_prefix_output(datacenter: Optional[pulumi.Input[Optional[str]]] = No
|
|
|
227
225
|
app = consul.get_key_prefix(datacenter="nyc1",
|
|
228
226
|
token="abcd",
|
|
229
227
|
path_prefix="myapp/config/",
|
|
230
|
-
subkey_collection=[
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
228
|
+
subkey_collection=[consul.GetKeyPrefixSubkeyCollectionArgs(
|
|
229
|
+
name="ami",
|
|
230
|
+
path="app/launch_ami",
|
|
231
|
+
default="ami-1234",
|
|
232
|
+
)])
|
|
235
233
|
# Start our instance with the dynamic ami value
|
|
236
234
|
app_instance = aws.index.Instance("app", ami=app.var.ami)
|
|
237
235
|
```
|
|
@@ -256,27 +254,9 @@ def get_key_prefix_output(datacenter: Optional[pulumi.Input[Optional[str]]] = No
|
|
|
256
254
|
:param str path_prefix: Specifies the common prefix shared by all keys
|
|
257
255
|
that will be read by this data source instance. In most cases, this will
|
|
258
256
|
end with a slash to read a "folder" of subkeys.
|
|
259
|
-
:param Sequence[
|
|
257
|
+
:param Sequence[pulumi.InputType['GetKeyPrefixSubkeyCollectionArgs']] subkey_collection: Specifies a subkey in Consul to be read. Supported
|
|
260
258
|
values documented below. Multiple blocks supported.
|
|
261
259
|
:param str token: The ACL token to use. This overrides the
|
|
262
260
|
token that the agent provides by default.
|
|
263
261
|
"""
|
|
264
|
-
|
|
265
|
-
__args__['datacenter'] = datacenter
|
|
266
|
-
__args__['namespace'] = namespace
|
|
267
|
-
__args__['partition'] = partition
|
|
268
|
-
__args__['pathPrefix'] = path_prefix
|
|
269
|
-
__args__['subkeyCollection'] = subkey_collection
|
|
270
|
-
__args__['token'] = token
|
|
271
|
-
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
272
|
-
__ret__ = pulumi.runtime.invoke_output('consul:index/getKeyPrefix:getKeyPrefix', __args__, opts=opts, typ=GetKeyPrefixResult)
|
|
273
|
-
return __ret__.apply(lambda __response__: GetKeyPrefixResult(
|
|
274
|
-
datacenter=pulumi.get(__response__, 'datacenter'),
|
|
275
|
-
id=pulumi.get(__response__, 'id'),
|
|
276
|
-
namespace=pulumi.get(__response__, 'namespace'),
|
|
277
|
-
partition=pulumi.get(__response__, 'partition'),
|
|
278
|
-
path_prefix=pulumi.get(__response__, 'path_prefix'),
|
|
279
|
-
subkey_collection=pulumi.get(__response__, 'subkey_collection'),
|
|
280
|
-
subkeys=pulumi.get(__response__, 'subkeys'),
|
|
281
|
-
token=pulumi.get(__response__, 'token'),
|
|
282
|
-
var=pulumi.get(__response__, 'var')))
|
|
262
|
+
...
|