pulumi-consul 3.12.1a1724432942__py3-none-any.whl → 3.12.3__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 +1571 -8
- pulumi_consul/_utilities.py +1 -1
- pulumi_consul/acl_auth_method.py +5 -0
- pulumi_consul/acl_binding_rule.py +5 -0
- pulumi_consul/acl_policy.py +5 -0
- pulumi_consul/acl_role.py +5 -0
- pulumi_consul/acl_role_policy_attachment.py +5 -0
- pulumi_consul/acl_token.py +5 -0
- pulumi_consul/acl_token_policy_attachment.py +5 -0
- pulumi_consul/acl_token_role_attachment.py +5 -0
- pulumi_consul/admin_partition.py +5 -0
- pulumi_consul/agent_service.py +5 -0
- pulumi_consul/autopilot_config.py +5 -0
- pulumi_consul/catalog_entry.py +5 -0
- pulumi_consul/certificate_authority.py +5 -0
- pulumi_consul/config/__init__.pyi +5 -0
- pulumi_consul/config/outputs.py +5 -0
- pulumi_consul/config/vars.py +5 -0
- pulumi_consul/config_entry.py +5 -0
- pulumi_consul/config_entry_service_defaults.py +5 -0
- pulumi_consul/config_entry_service_intentions.py +5 -0
- pulumi_consul/config_entry_service_resolver.py +5 -0
- pulumi_consul/config_entry_service_router.py +5 -0
- pulumi_consul/config_entry_service_splitter.py +13 -8
- pulumi_consul/config_entry_v2_exported_services.py +5 -0
- pulumi_consul/get_acl_auth_method.py +25 -5
- pulumi_consul/get_acl_policy.py +20 -5
- pulumi_consul/get_acl_role.py +22 -5
- pulumi_consul/get_acl_token.py +25 -5
- pulumi_consul/get_acl_token_secret_id.py +21 -5
- pulumi_consul/get_agent_config.py +17 -5
- pulumi_consul/get_agent_self.py +82 -5
- pulumi_consul/get_autopilot_health.py +16 -5
- pulumi_consul/get_catalog_nodes.py +17 -5
- pulumi_consul/get_catalog_service.py +22 -5
- pulumi_consul/get_catalog_services.py +17 -5
- pulumi_consul/get_config_entry.py +20 -5
- pulumi_consul/get_config_entry_v2_exported_services.py +27 -5
- pulumi_consul/get_datacenters.py +12 -5
- pulumi_consul/get_key_prefix.py +25 -5
- pulumi_consul/get_keys.py +24 -5
- pulumi_consul/get_network_area_members.py +18 -5
- pulumi_consul/get_network_segments.py +16 -5
- pulumi_consul/get_nodes.py +17 -5
- pulumi_consul/get_peering.py +22 -5
- pulumi_consul/get_peerings.py +14 -5
- pulumi_consul/get_service.py +22 -5
- pulumi_consul/get_service_health.py +28 -5
- pulumi_consul/get_services.py +17 -5
- pulumi_consul/intention.py +5 -0
- pulumi_consul/key_prefix.py +5 -0
- pulumi_consul/keys.py +5 -0
- pulumi_consul/license.py +5 -0
- pulumi_consul/namespace.py +5 -0
- pulumi_consul/namespace_policy_attachment.py +5 -0
- pulumi_consul/namespace_role_attachment.py +5 -0
- pulumi_consul/network_area.py +5 -0
- pulumi_consul/node.py +5 -0
- pulumi_consul/outputs.py +5 -0
- pulumi_consul/peering.py +5 -0
- pulumi_consul/peering_token.py +5 -0
- pulumi_consul/prepared_query.py +5 -0
- pulumi_consul/provider.py +5 -0
- pulumi_consul/pulumi-plugin.json +1 -1
- pulumi_consul/service.py +5 -0
- {pulumi_consul-3.12.1a1724432942.dist-info → pulumi_consul-3.12.3.dist-info}/METADATA +6 -5
- pulumi_consul-3.12.3.dist-info/RECORD +72 -0
- {pulumi_consul-3.12.1a1724432942.dist-info → pulumi_consul-3.12.3.dist-info}/WHEEL +1 -1
- pulumi_consul-3.12.1a1724432942.dist-info/RECORD +0 -72
- {pulumi_consul-3.12.1a1724432942.dist-info → pulumi_consul-3.12.3.dist-info}/top_level.txt +0 -0
|
@@ -4,9 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
import copy
|
|
6
6
|
import warnings
|
|
7
|
+
import sys
|
|
7
8
|
import pulumi
|
|
8
9
|
import pulumi.runtime
|
|
9
10
|
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
11
|
+
if sys.version_info >= (3, 11):
|
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
|
13
|
+
else:
|
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
10
15
|
from . import _utilities
|
|
11
16
|
|
|
12
17
|
__all__ = [
|
|
@@ -147,14 +152,11 @@ def get_acl_token_secret_id(accessor_id: Optional[str] = None,
|
|
|
147
152
|
partition=pulumi.get(__ret__, 'partition'),
|
|
148
153
|
pgp_key=pulumi.get(__ret__, 'pgp_key'),
|
|
149
154
|
secret_id=pulumi.get(__ret__, 'secret_id'))
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
@_utilities.lift_output_func(get_acl_token_secret_id)
|
|
153
155
|
def get_acl_token_secret_id_output(accessor_id: Optional[pulumi.Input[str]] = None,
|
|
154
156
|
namespace: Optional[pulumi.Input[Optional[str]]] = None,
|
|
155
157
|
partition: Optional[pulumi.Input[Optional[str]]] = None,
|
|
156
158
|
pgp_key: Optional[pulumi.Input[Optional[str]]] = None,
|
|
157
|
-
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetAclTokenSecretIdResult]:
|
|
159
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetAclTokenSecretIdResult]:
|
|
158
160
|
"""
|
|
159
161
|
## Example Usage
|
|
160
162
|
|
|
@@ -180,4 +182,18 @@ def get_acl_token_secret_id_output(accessor_id: Optional[pulumi.Input[str]] = No
|
|
|
180
182
|
:param str namespace: The namespace to lookup the token.
|
|
181
183
|
:param str partition: The partition to lookup the token.
|
|
182
184
|
"""
|
|
183
|
-
|
|
185
|
+
__args__ = dict()
|
|
186
|
+
__args__['accessorId'] = accessor_id
|
|
187
|
+
__args__['namespace'] = namespace
|
|
188
|
+
__args__['partition'] = partition
|
|
189
|
+
__args__['pgpKey'] = pgp_key
|
|
190
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
191
|
+
__ret__ = pulumi.runtime.invoke_output('consul:index/getAclTokenSecretId:getAclTokenSecretId', __args__, opts=opts, typ=GetAclTokenSecretIdResult)
|
|
192
|
+
return __ret__.apply(lambda __response__: GetAclTokenSecretIdResult(
|
|
193
|
+
accessor_id=pulumi.get(__response__, 'accessor_id'),
|
|
194
|
+
encrypted_secret_id=pulumi.get(__response__, 'encrypted_secret_id'),
|
|
195
|
+
id=pulumi.get(__response__, 'id'),
|
|
196
|
+
namespace=pulumi.get(__response__, 'namespace'),
|
|
197
|
+
partition=pulumi.get(__response__, 'partition'),
|
|
198
|
+
pgp_key=pulumi.get(__response__, 'pgp_key'),
|
|
199
|
+
secret_id=pulumi.get(__response__, 'secret_id')))
|
|
@@ -4,9 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
import copy
|
|
6
6
|
import warnings
|
|
7
|
+
import sys
|
|
7
8
|
import pulumi
|
|
8
9
|
import pulumi.runtime
|
|
9
10
|
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
11
|
+
if sys.version_info >= (3, 11):
|
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
|
13
|
+
else:
|
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
10
15
|
from . import _utilities
|
|
11
16
|
|
|
12
17
|
__all__ = [
|
|
@@ -148,10 +153,7 @@ def get_agent_config(opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGe
|
|
|
148
153
|
revision=pulumi.get(__ret__, 'revision'),
|
|
149
154
|
server=pulumi.get(__ret__, 'server'),
|
|
150
155
|
version=pulumi.get(__ret__, 'version'))
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
@_utilities.lift_output_func(get_agent_config)
|
|
154
|
-
def get_agent_config_output(opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetAgentConfigResult]:
|
|
156
|
+
def get_agent_config_output(opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetAgentConfigResult]:
|
|
155
157
|
"""
|
|
156
158
|
> **Note:** The `get_agent_config` resource differs from [`get_agent_self`](https://www.terraform.io/docs/providers/consul/d/agent_self.html),
|
|
157
159
|
providing less information but utilizing stable APIs. `get_agent_self` will be
|
|
@@ -171,4 +173,14 @@ def get_agent_config_output(opts: Optional[pulumi.InvokeOptions] = None) -> pulu
|
|
|
171
173
|
pulumi.export("consulVersion", remote_agent.version)
|
|
172
174
|
```
|
|
173
175
|
"""
|
|
174
|
-
|
|
176
|
+
__args__ = dict()
|
|
177
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
178
|
+
__ret__ = pulumi.runtime.invoke_output('consul:index/getAgentConfig:getAgentConfig', __args__, opts=opts, typ=GetAgentConfigResult)
|
|
179
|
+
return __ret__.apply(lambda __response__: GetAgentConfigResult(
|
|
180
|
+
datacenter=pulumi.get(__response__, 'datacenter'),
|
|
181
|
+
id=pulumi.get(__response__, 'id'),
|
|
182
|
+
node_id=pulumi.get(__response__, 'node_id'),
|
|
183
|
+
node_name=pulumi.get(__response__, 'node_name'),
|
|
184
|
+
revision=pulumi.get(__response__, 'revision'),
|
|
185
|
+
server=pulumi.get(__response__, 'server'),
|
|
186
|
+
version=pulumi.get(__response__, 'version')))
|
pulumi_consul/get_agent_self.py
CHANGED
|
@@ -4,9 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
import copy
|
|
6
6
|
import warnings
|
|
7
|
+
import sys
|
|
7
8
|
import pulumi
|
|
8
9
|
import pulumi.runtime
|
|
9
10
|
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
11
|
+
if sys.version_info >= (3, 11):
|
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
|
13
|
+
else:
|
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
10
15
|
from . import _utilities
|
|
11
16
|
|
|
12
17
|
__all__ = [
|
|
@@ -847,10 +852,7 @@ def get_agent_self(opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetA
|
|
|
847
852
|
version=pulumi.get(__ret__, 'version'),
|
|
848
853
|
version_prerelease=pulumi.get(__ret__, 'version_prerelease'),
|
|
849
854
|
version_revision=pulumi.get(__ret__, 'version_revision'))
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
@_utilities.lift_output_func(get_agent_self)
|
|
853
|
-
def get_agent_self_output(opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetAgentSelfResult]:
|
|
855
|
+
def get_agent_self_output(opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetAgentSelfResult]:
|
|
854
856
|
"""
|
|
855
857
|
> **Warning:** The `get_agent_self` resource has been deprecated and will be removed
|
|
856
858
|
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.
|
|
@@ -859,4 +861,79 @@ def get_agent_self_output(opts: Optional[pulumi.InvokeOptions] = None) -> pulumi
|
|
|
859
861
|
[configuration and status data](https://www.consul.io/docs/agent/http/agent.html#agent_self)
|
|
860
862
|
from the agent specified in the `provider`.
|
|
861
863
|
"""
|
|
862
|
-
|
|
864
|
+
__args__ = dict()
|
|
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')))
|
|
@@ -4,9 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
import copy
|
|
6
6
|
import warnings
|
|
7
|
+
import sys
|
|
7
8
|
import pulumi
|
|
8
9
|
import pulumi.runtime
|
|
9
10
|
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
11
|
+
if sys.version_info >= (3, 11):
|
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
|
13
|
+
else:
|
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
10
15
|
from . import _utilities
|
|
11
16
|
from . import outputs
|
|
12
17
|
|
|
@@ -125,11 +130,8 @@ def get_autopilot_health(datacenter: Optional[str] = None,
|
|
|
125
130
|
healthy=pulumi.get(__ret__, 'healthy'),
|
|
126
131
|
id=pulumi.get(__ret__, 'id'),
|
|
127
132
|
servers=pulumi.get(__ret__, 'servers'))
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
@_utilities.lift_output_func(get_autopilot_health)
|
|
131
133
|
def get_autopilot_health_output(datacenter: Optional[pulumi.Input[Optional[str]]] = None,
|
|
132
|
-
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetAutopilotHealthResult]:
|
|
134
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetAutopilotHealthResult]:
|
|
133
135
|
"""
|
|
134
136
|
The `get_autopilot_health` data source returns
|
|
135
137
|
[autopilot health information](https://www.consul.io/api/operator/autopilot.html#read-health)
|
|
@@ -149,4 +151,13 @@ def get_autopilot_health_output(datacenter: Optional[pulumi.Input[Optional[str]]
|
|
|
149
151
|
:param str datacenter: The datacenter to use. This overrides the agent's
|
|
150
152
|
default datacenter and the datacenter in the provider setup.
|
|
151
153
|
"""
|
|
152
|
-
|
|
154
|
+
__args__ = dict()
|
|
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')))
|
|
@@ -4,9 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
import copy
|
|
6
6
|
import warnings
|
|
7
|
+
import sys
|
|
7
8
|
import pulumi
|
|
8
9
|
import pulumi.runtime
|
|
9
10
|
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
11
|
+
if sys.version_info >= (3, 11):
|
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
|
13
|
+
else:
|
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
10
15
|
from . import _utilities
|
|
11
16
|
from . import outputs
|
|
12
17
|
from ._inputs import *
|
|
@@ -130,11 +135,8 @@ def get_catalog_nodes(query_options: Optional[Sequence[Union['GetCatalogNodesQue
|
|
|
130
135
|
node_names=pulumi.get(__ret__, 'node_names'),
|
|
131
136
|
nodes=pulumi.get(__ret__, 'nodes'),
|
|
132
137
|
query_options=pulumi.get(__ret__, 'query_options'))
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
@_utilities.lift_output_func(get_catalog_nodes)
|
|
136
138
|
def get_catalog_nodes_output(query_options: Optional[pulumi.Input[Optional[Sequence[Union['GetCatalogNodesQueryOptionArgs', 'GetCatalogNodesQueryOptionArgsDict']]]]] = None,
|
|
137
|
-
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetCatalogNodesResult]:
|
|
139
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetCatalogNodesResult]:
|
|
138
140
|
"""
|
|
139
141
|
The `get_nodes` data source returns a list of Consul nodes that have
|
|
140
142
|
been registered with the Consul cluster in a given datacenter. By specifying a
|
|
@@ -145,4 +147,14 @@ def get_catalog_nodes_output(query_options: Optional[pulumi.Input[Optional[Seque
|
|
|
145
147
|
:param Sequence[Union['GetCatalogNodesQueryOptionArgs', 'GetCatalogNodesQueryOptionArgsDict']] query_options: See below.
|
|
146
148
|
"""
|
|
147
149
|
pulumi.log.warn("""get_catalog_nodes is deprecated: getCatalogNodes has been deprecated in favor of getNodes""")
|
|
148
|
-
|
|
150
|
+
__args__ = dict()
|
|
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')))
|
|
@@ -4,9 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
import copy
|
|
6
6
|
import warnings
|
|
7
|
+
import sys
|
|
7
8
|
import pulumi
|
|
8
9
|
import pulumi.runtime
|
|
9
10
|
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
11
|
+
if sys.version_info >= (3, 11):
|
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
|
13
|
+
else:
|
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
10
15
|
from . import _utilities
|
|
11
16
|
from . import outputs
|
|
12
17
|
from ._inputs import *
|
|
@@ -175,15 +180,12 @@ def get_catalog_service(datacenter: Optional[str] = None,
|
|
|
175
180
|
query_options=pulumi.get(__ret__, 'query_options'),
|
|
176
181
|
services=pulumi.get(__ret__, 'services'),
|
|
177
182
|
tag=pulumi.get(__ret__, 'tag'))
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
@_utilities.lift_output_func(get_catalog_service)
|
|
181
183
|
def get_catalog_service_output(datacenter: Optional[pulumi.Input[Optional[str]]] = None,
|
|
182
184
|
filter: Optional[pulumi.Input[Optional[str]]] = None,
|
|
183
185
|
name: Optional[pulumi.Input[str]] = None,
|
|
184
186
|
query_options: Optional[pulumi.Input[Optional[Sequence[Union['GetCatalogServiceQueryOptionArgs', 'GetCatalogServiceQueryOptionArgsDict']]]]] = None,
|
|
185
187
|
tag: Optional[pulumi.Input[Optional[str]]] = None,
|
|
186
|
-
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetCatalogServiceResult]:
|
|
188
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetCatalogServiceResult]:
|
|
187
189
|
"""
|
|
188
190
|
`Service` provides details about a specific Consul service in a
|
|
189
191
|
given datacenter. The results include a list of nodes advertising the specified
|
|
@@ -220,4 +222,19 @@ def get_catalog_service_output(datacenter: Optional[pulumi.Input[Optional[str]]]
|
|
|
220
222
|
to return based on a single matching tag..
|
|
221
223
|
"""
|
|
222
224
|
pulumi.log.warn("""get_catalog_service is deprecated: getCatalogService has been deprecated in favor of getService""")
|
|
223
|
-
|
|
225
|
+
__args__ = dict()
|
|
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')))
|
|
@@ -4,9 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
import copy
|
|
6
6
|
import warnings
|
|
7
|
+
import sys
|
|
7
8
|
import pulumi
|
|
8
9
|
import pulumi.runtime
|
|
9
10
|
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
11
|
+
if sys.version_info >= (3, 11):
|
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
|
13
|
+
else:
|
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
10
15
|
from . import _utilities
|
|
11
16
|
from . import outputs
|
|
12
17
|
from ._inputs import *
|
|
@@ -145,11 +150,8 @@ def get_catalog_services(query_options: Optional[Sequence[Union['GetCatalogServi
|
|
|
145
150
|
query_options=pulumi.get(__ret__, 'query_options'),
|
|
146
151
|
services=pulumi.get(__ret__, 'services'),
|
|
147
152
|
tags=pulumi.get(__ret__, 'tags'))
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
@_utilities.lift_output_func(get_catalog_services)
|
|
151
153
|
def get_catalog_services_output(query_options: Optional[pulumi.Input[Optional[Sequence[Union['GetCatalogServicesQueryOptionArgs', 'GetCatalogServicesQueryOptionArgsDict']]]]] = None,
|
|
152
|
-
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetCatalogServicesResult]:
|
|
154
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetCatalogServicesResult]:
|
|
153
155
|
"""
|
|
154
156
|
The `get_services` data source returns a list of Consul services that
|
|
155
157
|
have been registered with the Consul cluster in a given datacenter. By
|
|
@@ -179,4 +181,14 @@ def get_catalog_services_output(query_options: Optional[pulumi.Input[Optional[Se
|
|
|
179
181
|
:param Sequence[Union['GetCatalogServicesQueryOptionArgs', 'GetCatalogServicesQueryOptionArgsDict']] query_options: See below.
|
|
180
182
|
"""
|
|
181
183
|
pulumi.log.warn("""get_catalog_services is deprecated: getCatalogServices has been deprecated in favor of getServices""")
|
|
182
|
-
|
|
184
|
+
__args__ = dict()
|
|
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')))
|
|
@@ -4,9 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
import copy
|
|
6
6
|
import warnings
|
|
7
|
+
import sys
|
|
7
8
|
import pulumi
|
|
8
9
|
import pulumi.runtime
|
|
9
10
|
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
11
|
+
if sys.version_info >= (3, 11):
|
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
|
13
|
+
else:
|
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
10
15
|
from . import _utilities
|
|
11
16
|
|
|
12
17
|
__all__ = [
|
|
@@ -132,14 +137,11 @@ def get_config_entry(kind: Optional[str] = None,
|
|
|
132
137
|
name=pulumi.get(__ret__, 'name'),
|
|
133
138
|
namespace=pulumi.get(__ret__, 'namespace'),
|
|
134
139
|
partition=pulumi.get(__ret__, 'partition'))
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
@_utilities.lift_output_func(get_config_entry)
|
|
138
140
|
def get_config_entry_output(kind: Optional[pulumi.Input[str]] = None,
|
|
139
141
|
name: Optional[pulumi.Input[str]] = None,
|
|
140
142
|
namespace: Optional[pulumi.Input[Optional[str]]] = None,
|
|
141
143
|
partition: Optional[pulumi.Input[Optional[str]]] = None,
|
|
142
|
-
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetConfigEntryResult]:
|
|
144
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetConfigEntryResult]:
|
|
143
145
|
"""
|
|
144
146
|
Use this data source to access information about an existing resource.
|
|
145
147
|
|
|
@@ -148,4 +150,17 @@ def get_config_entry_output(kind: Optional[pulumi.Input[str]] = None,
|
|
|
148
150
|
:param str namespace: The namespace the config entry is associated with.
|
|
149
151
|
:param str partition: The partition the config entry is associated with.
|
|
150
152
|
"""
|
|
151
|
-
|
|
153
|
+
__args__ = dict()
|
|
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')))
|
|
@@ -4,9 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
import copy
|
|
6
6
|
import warnings
|
|
7
|
+
import sys
|
|
7
8
|
import pulumi
|
|
8
9
|
import pulumi.runtime
|
|
9
10
|
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
11
|
+
if sys.version_info >= (3, 11):
|
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
|
13
|
+
else:
|
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
10
15
|
from . import _utilities
|
|
11
16
|
|
|
12
17
|
__all__ = [
|
|
@@ -183,9 +188,6 @@ def get_config_entry_v2_exported_services(kind: Optional[str] = None,
|
|
|
183
188
|
peer_consumers=pulumi.get(__ret__, 'peer_consumers'),
|
|
184
189
|
sameness_group_consumers=pulumi.get(__ret__, 'sameness_group_consumers'),
|
|
185
190
|
services=pulumi.get(__ret__, 'services'))
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
@_utilities.lift_output_func(get_config_entry_v2_exported_services)
|
|
189
191
|
def get_config_entry_v2_exported_services_output(kind: Optional[pulumi.Input[str]] = None,
|
|
190
192
|
name: Optional[pulumi.Input[str]] = None,
|
|
191
193
|
namespace: Optional[pulumi.Input[Optional[str]]] = None,
|
|
@@ -194,7 +196,7 @@ def get_config_entry_v2_exported_services_output(kind: Optional[pulumi.Input[str
|
|
|
194
196
|
peer_consumers: Optional[pulumi.Input[Optional[Sequence[str]]]] = None,
|
|
195
197
|
sameness_group_consumers: Optional[pulumi.Input[Optional[Sequence[str]]]] = None,
|
|
196
198
|
services: Optional[pulumi.Input[Optional[Sequence[str]]]] = None,
|
|
197
|
-
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetConfigEntryV2ExportedServicesResult]:
|
|
199
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetConfigEntryV2ExportedServicesResult]:
|
|
198
200
|
"""
|
|
199
201
|
Use this data source to access information about an existing resource.
|
|
200
202
|
|
|
@@ -207,4 +209,24 @@ def get_config_entry_v2_exported_services_output(kind: Optional[pulumi.Input[str
|
|
|
207
209
|
:param Sequence[str] sameness_group_consumers: The exported service sameness group consumers.
|
|
208
210
|
:param Sequence[str] services: The exported services.
|
|
209
211
|
"""
|
|
210
|
-
|
|
212
|
+
__args__ = dict()
|
|
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')))
|
pulumi_consul/get_datacenters.py
CHANGED
|
@@ -4,9 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
import copy
|
|
6
6
|
import warnings
|
|
7
|
+
import sys
|
|
7
8
|
import pulumi
|
|
8
9
|
import pulumi.runtime
|
|
9
10
|
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
11
|
+
if sys.version_info >= (3, 11):
|
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
|
13
|
+
else:
|
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
10
15
|
from . import _utilities
|
|
11
16
|
|
|
12
17
|
__all__ = [
|
|
@@ -70,12 +75,14 @@ def get_datacenters(opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGet
|
|
|
70
75
|
return AwaitableGetDatacentersResult(
|
|
71
76
|
datacenters=pulumi.get(__ret__, 'datacenters'),
|
|
72
77
|
id=pulumi.get(__ret__, 'id'))
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
@_utilities.lift_output_func(get_datacenters)
|
|
76
|
-
def get_datacenters_output(opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetDatacentersResult]:
|
|
78
|
+
def get_datacenters_output(opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetDatacentersResult]:
|
|
77
79
|
"""
|
|
78
80
|
The `get_datacenters` data source returns the list of all knwown Consul
|
|
79
81
|
datacenters.
|
|
80
82
|
"""
|
|
81
|
-
|
|
83
|
+
__args__ = dict()
|
|
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')))
|
pulumi_consul/get_key_prefix.py
CHANGED
|
@@ -4,9 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
import copy
|
|
6
6
|
import warnings
|
|
7
|
+
import sys
|
|
7
8
|
import pulumi
|
|
8
9
|
import pulumi.runtime
|
|
9
10
|
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
11
|
+
if sys.version_info >= (3, 11):
|
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
|
13
|
+
else:
|
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
10
15
|
from . import _utilities
|
|
11
16
|
from . import outputs
|
|
12
17
|
from ._inputs import *
|
|
@@ -204,16 +209,13 @@ def get_key_prefix(datacenter: Optional[str] = None,
|
|
|
204
209
|
subkeys=pulumi.get(__ret__, 'subkeys'),
|
|
205
210
|
token=pulumi.get(__ret__, 'token'),
|
|
206
211
|
var=pulumi.get(__ret__, 'var'))
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
@_utilities.lift_output_func(get_key_prefix)
|
|
210
212
|
def get_key_prefix_output(datacenter: Optional[pulumi.Input[Optional[str]]] = None,
|
|
211
213
|
namespace: Optional[pulumi.Input[Optional[str]]] = None,
|
|
212
214
|
partition: Optional[pulumi.Input[Optional[str]]] = None,
|
|
213
215
|
path_prefix: Optional[pulumi.Input[str]] = None,
|
|
214
216
|
subkey_collection: Optional[pulumi.Input[Optional[Sequence[Union['GetKeyPrefixSubkeyCollectionArgs', 'GetKeyPrefixSubkeyCollectionArgsDict']]]]] = None,
|
|
215
217
|
token: Optional[pulumi.Input[Optional[str]]] = None,
|
|
216
|
-
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetKeyPrefixResult]:
|
|
218
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetKeyPrefixResult]:
|
|
217
219
|
"""
|
|
218
220
|
## Example Usage
|
|
219
221
|
|
|
@@ -259,4 +261,22 @@ def get_key_prefix_output(datacenter: Optional[pulumi.Input[Optional[str]]] = No
|
|
|
259
261
|
:param str token: The ACL token to use. This overrides the
|
|
260
262
|
token that the agent provides by default.
|
|
261
263
|
"""
|
|
262
|
-
|
|
264
|
+
__args__ = dict()
|
|
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')))
|
pulumi_consul/get_keys.py
CHANGED
|
@@ -4,9 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
import copy
|
|
6
6
|
import warnings
|
|
7
|
+
import sys
|
|
7
8
|
import pulumi
|
|
8
9
|
import pulumi.runtime
|
|
9
10
|
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
11
|
+
if sys.version_info >= (3, 11):
|
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
|
13
|
+
else:
|
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
10
15
|
from . import _utilities
|
|
11
16
|
from . import outputs
|
|
12
17
|
from ._inputs import *
|
|
@@ -186,16 +191,13 @@ def get_keys(datacenter: Optional[str] = None,
|
|
|
186
191
|
partition=pulumi.get(__ret__, 'partition'),
|
|
187
192
|
token=pulumi.get(__ret__, 'token'),
|
|
188
193
|
var=pulumi.get(__ret__, 'var'))
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
@_utilities.lift_output_func(get_keys)
|
|
192
194
|
def get_keys_output(datacenter: Optional[pulumi.Input[Optional[str]]] = None,
|
|
193
195
|
error_on_missing_keys: Optional[pulumi.Input[Optional[bool]]] = None,
|
|
194
196
|
keys: Optional[pulumi.Input[Optional[Sequence[Union['GetKeysKeyArgs', 'GetKeysKeyArgsDict']]]]] = None,
|
|
195
197
|
namespace: Optional[pulumi.Input[Optional[str]]] = None,
|
|
196
198
|
partition: Optional[pulumi.Input[Optional[str]]] = None,
|
|
197
199
|
token: Optional[pulumi.Input[Optional[str]]] = None,
|
|
198
|
-
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetKeysResult]:
|
|
200
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetKeysResult]:
|
|
199
201
|
"""
|
|
200
202
|
The `Keys` datasource reads values from the Consul key/value store. This is a powerful way to dynamically set values in templates.
|
|
201
203
|
|
|
@@ -224,4 +226,21 @@ def get_keys_output(datacenter: Optional[pulumi.Input[Optional[str]]] = None,
|
|
|
224
226
|
:param str partition: The partition to lookup the keys.
|
|
225
227
|
:param str token: The ACL token to use. This overrides the token that the agent provides by default.
|
|
226
228
|
"""
|
|
227
|
-
|
|
229
|
+
__args__ = dict()
|
|
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')))
|