pulumi-consul 3.13.0a1749706342__py3-none-any.whl → 3.14.0a1768432677__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pulumi_consul/__init__.py +1 -1
- pulumi_consul/_inputs.py +1604 -1605
- pulumi_consul/acl_auth_method.py +174 -175
- pulumi_consul/acl_binding_rule.py +123 -124
- pulumi_consul/acl_policy.py +107 -108
- pulumi_consul/acl_role.py +95 -96
- pulumi_consul/acl_role_policy_attachment.py +35 -36
- pulumi_consul/acl_token.py +154 -155
- pulumi_consul/acl_token_policy_attachment.py +35 -36
- pulumi_consul/acl_token_role_attachment.py +35 -36
- pulumi_consul/admin_partition.py +82 -36
- pulumi_consul/agent_service.py +69 -70
- pulumi_consul/autopilot_config.py +137 -138
- pulumi_consul/catalog_entry.py +114 -73
- pulumi_consul/certificate_authority.py +44 -45
- pulumi_consul/config/__init__.py +1 -1
- pulumi_consul/config/__init__.pyi +6 -12
- pulumi_consul/config/outputs.py +24 -25
- pulumi_consul/config/vars.py +22 -28
- pulumi_consul/config_entry.py +86 -87
- pulumi_consul/config_entry_service_defaults.py +275 -224
- pulumi_consul/config_entry_service_intentions.py +75 -76
- pulumi_consul/config_entry_service_resolver.py +132 -133
- pulumi_consul/config_entry_service_router.py +72 -73
- pulumi_consul/config_entry_service_splitter.py +72 -73
- pulumi_consul/config_entry_v2_exported_services.py +137 -138
- pulumi_consul/get_acl_auth_method.py +36 -37
- pulumi_consul/get_acl_policy.py +27 -28
- pulumi_consul/get_acl_role.py +27 -28
- pulumi_consul/get_acl_token.py +32 -33
- pulumi_consul/get_acl_token_secret_id.py +29 -30
- pulumi_consul/get_agent_config.py +15 -16
- pulumi_consul/get_agent_self.py +149 -146
- pulumi_consul/get_autopilot_health.py +14 -15
- pulumi_consul/get_catalog_nodes.py +45 -12
- pulumi_consul/get_catalog_service.py +27 -28
- pulumi_consul/get_catalog_services.py +12 -13
- pulumi_consul/get_config_entry.py +29 -30
- pulumi_consul/get_config_entry_v2_exported_services.py +51 -52
- pulumi_consul/get_datacenters.py +73 -6
- pulumi_consul/get_key_prefix.py +38 -39
- pulumi_consul/get_keys.py +36 -37
- pulumi_consul/get_network_area_members.py +22 -23
- pulumi_consul/get_network_segments.py +17 -18
- pulumi_consul/get_nodes.py +45 -12
- pulumi_consul/get_peering.py +25 -26
- pulumi_consul/get_peerings.py +8 -9
- pulumi_consul/get_service.py +27 -28
- pulumi_consul/get_service_health.py +54 -51
- pulumi_consul/get_services.py +12 -13
- pulumi_consul/intention.py +137 -138
- pulumi_consul/key_prefix.py +106 -107
- pulumi_consul/keys.py +79 -80
- pulumi_consul/license.py +125 -126
- pulumi_consul/namespace.py +103 -104
- pulumi_consul/namespace_policy_attachment.py +35 -36
- pulumi_consul/namespace_role_attachment.py +35 -36
- pulumi_consul/network_area.py +86 -87
- pulumi_consul/node.py +99 -100
- pulumi_consul/outputs.py +1464 -1465
- pulumi_consul/peering.py +107 -108
- pulumi_consul/peering_token.py +74 -75
- pulumi_consul/prepared_query.py +231 -232
- pulumi_consul/provider.py +150 -169
- pulumi_consul/pulumi-plugin.json +1 -1
- pulumi_consul/service.py +251 -205
- {pulumi_consul-3.13.0a1749706342.dist-info → pulumi_consul-3.14.0a1768432677.dist-info}/METADATA +1 -1
- pulumi_consul-3.14.0a1768432677.dist-info/RECORD +72 -0
- pulumi_consul-3.13.0a1749706342.dist-info/RECORD +0 -72
- {pulumi_consul-3.13.0a1749706342.dist-info → pulumi_consul-3.14.0a1768432677.dist-info}/WHEEL +0 -0
- {pulumi_consul-3.13.0a1749706342.dist-info → pulumi_consul-3.14.0a1768432677.dist-info}/top_level.txt +0 -0
pulumi_consul/get_datacenters.py
CHANGED
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
|
|
5
|
-
import builtins
|
|
6
|
-
import copy
|
|
5
|
+
import builtins as _builtins
|
|
7
6
|
import warnings
|
|
8
7
|
import sys
|
|
9
8
|
import pulumi
|
|
@@ -35,9 +34,9 @@ class GetDatacentersResult:
|
|
|
35
34
|
raise TypeError("Expected argument 'id' to be a str")
|
|
36
35
|
pulumi.set(__self__, "id", id)
|
|
37
36
|
|
|
38
|
-
@property
|
|
37
|
+
@_builtins.property
|
|
39
38
|
@pulumi.getter
|
|
40
|
-
def datacenters(self) -> Sequence[
|
|
39
|
+
def datacenters(self) -> Sequence[_builtins.str]:
|
|
41
40
|
"""
|
|
42
41
|
The list of datacenters known. The datacenters will be sorted
|
|
43
42
|
in ascending order based on the estimated median round trip time from the server
|
|
@@ -45,9 +44,9 @@ class GetDatacentersResult:
|
|
|
45
44
|
"""
|
|
46
45
|
return pulumi.get(self, "datacenters")
|
|
47
46
|
|
|
48
|
-
@property
|
|
47
|
+
@_builtins.property
|
|
49
48
|
@pulumi.getter
|
|
50
|
-
def id(self) ->
|
|
49
|
+
def id(self) -> _builtins.str:
|
|
51
50
|
"""
|
|
52
51
|
The provider-assigned unique ID for this managed resource.
|
|
53
52
|
"""
|
|
@@ -68,6 +67,40 @@ def get_datacenters(opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGet
|
|
|
68
67
|
"""
|
|
69
68
|
The `get_datacenters` data source returns the list of all knwown Consul
|
|
70
69
|
datacenters.
|
|
70
|
+
|
|
71
|
+
## Example Usage
|
|
72
|
+
|
|
73
|
+
```python
|
|
74
|
+
import pulumi
|
|
75
|
+
import pulumi_consul as consul
|
|
76
|
+
import pulumi_std as std
|
|
77
|
+
|
|
78
|
+
all = consul.get_datacenters()
|
|
79
|
+
# Register a prepared query in each of the datacenters
|
|
80
|
+
myapp_query = []
|
|
81
|
+
for range in [{"key": k, "value": v} for [k, v] in enumerate(std.toset(input=all.datacenters).result)]:
|
|
82
|
+
myapp_query.append(consul.PreparedQuery(f"myapp-query-{range['key']}",
|
|
83
|
+
name="myquery",
|
|
84
|
+
datacenter=range["key"],
|
|
85
|
+
only_passing=True,
|
|
86
|
+
near="_agent",
|
|
87
|
+
service="myapp",
|
|
88
|
+
tags=[
|
|
89
|
+
"active",
|
|
90
|
+
"!standby",
|
|
91
|
+
],
|
|
92
|
+
failover={
|
|
93
|
+
"nearest_n": 3,
|
|
94
|
+
"datacenters": [
|
|
95
|
+
"us-west1",
|
|
96
|
+
"us-east-2",
|
|
97
|
+
"asia-east1",
|
|
98
|
+
],
|
|
99
|
+
},
|
|
100
|
+
dns={
|
|
101
|
+
"ttl": "30s",
|
|
102
|
+
}))
|
|
103
|
+
```
|
|
71
104
|
"""
|
|
72
105
|
__args__ = dict()
|
|
73
106
|
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
@@ -80,6 +113,40 @@ def get_datacenters_output(opts: Optional[Union[pulumi.InvokeOptions, pulumi.Inv
|
|
|
80
113
|
"""
|
|
81
114
|
The `get_datacenters` data source returns the list of all knwown Consul
|
|
82
115
|
datacenters.
|
|
116
|
+
|
|
117
|
+
## Example Usage
|
|
118
|
+
|
|
119
|
+
```python
|
|
120
|
+
import pulumi
|
|
121
|
+
import pulumi_consul as consul
|
|
122
|
+
import pulumi_std as std
|
|
123
|
+
|
|
124
|
+
all = consul.get_datacenters()
|
|
125
|
+
# Register a prepared query in each of the datacenters
|
|
126
|
+
myapp_query = []
|
|
127
|
+
for range in [{"key": k, "value": v} for [k, v] in enumerate(std.toset(input=all.datacenters).result)]:
|
|
128
|
+
myapp_query.append(consul.PreparedQuery(f"myapp-query-{range['key']}",
|
|
129
|
+
name="myquery",
|
|
130
|
+
datacenter=range["key"],
|
|
131
|
+
only_passing=True,
|
|
132
|
+
near="_agent",
|
|
133
|
+
service="myapp",
|
|
134
|
+
tags=[
|
|
135
|
+
"active",
|
|
136
|
+
"!standby",
|
|
137
|
+
],
|
|
138
|
+
failover={
|
|
139
|
+
"nearest_n": 3,
|
|
140
|
+
"datacenters": [
|
|
141
|
+
"us-west1",
|
|
142
|
+
"us-east-2",
|
|
143
|
+
"asia-east1",
|
|
144
|
+
],
|
|
145
|
+
},
|
|
146
|
+
dns={
|
|
147
|
+
"ttl": "30s",
|
|
148
|
+
}))
|
|
149
|
+
```
|
|
83
150
|
"""
|
|
84
151
|
__args__ = dict()
|
|
85
152
|
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
pulumi_consul/get_key_prefix.py
CHANGED
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
|
|
5
|
-
import builtins
|
|
6
|
-
import copy
|
|
5
|
+
import builtins as _builtins
|
|
7
6
|
import warnings
|
|
8
7
|
import sys
|
|
9
8
|
import pulumi
|
|
@@ -58,35 +57,35 @@ class GetKeyPrefixResult:
|
|
|
58
57
|
raise TypeError("Expected argument 'var' to be a dict")
|
|
59
58
|
pulumi.set(__self__, "var", var)
|
|
60
59
|
|
|
61
|
-
@property
|
|
60
|
+
@_builtins.property
|
|
62
61
|
@pulumi.getter
|
|
63
|
-
def datacenter(self) ->
|
|
62
|
+
def datacenter(self) -> _builtins.str:
|
|
64
63
|
"""
|
|
65
64
|
The datacenter the keys are being read from.
|
|
66
65
|
"""
|
|
67
66
|
return pulumi.get(self, "datacenter")
|
|
68
67
|
|
|
69
|
-
@property
|
|
68
|
+
@_builtins.property
|
|
70
69
|
@pulumi.getter
|
|
71
|
-
def id(self) ->
|
|
70
|
+
def id(self) -> _builtins.str:
|
|
72
71
|
"""
|
|
73
72
|
The provider-assigned unique ID for this managed resource.
|
|
74
73
|
"""
|
|
75
74
|
return pulumi.get(self, "id")
|
|
76
75
|
|
|
77
|
-
@property
|
|
76
|
+
@_builtins.property
|
|
78
77
|
@pulumi.getter
|
|
79
|
-
def namespace(self) -> Optional[
|
|
78
|
+
def namespace(self) -> Optional[_builtins.str]:
|
|
80
79
|
return pulumi.get(self, "namespace")
|
|
81
80
|
|
|
82
|
-
@property
|
|
81
|
+
@_builtins.property
|
|
83
82
|
@pulumi.getter
|
|
84
|
-
def partition(self) -> Optional[
|
|
83
|
+
def partition(self) -> Optional[_builtins.str]:
|
|
85
84
|
return pulumi.get(self, "partition")
|
|
86
85
|
|
|
87
|
-
@property
|
|
86
|
+
@_builtins.property
|
|
88
87
|
@pulumi.getter(name="pathPrefix")
|
|
89
|
-
def path_prefix(self) ->
|
|
88
|
+
def path_prefix(self) -> _builtins.str:
|
|
90
89
|
"""
|
|
91
90
|
the common prefix shared by all keys being read.
|
|
92
91
|
* `var.<name>` - For each name given, the corresponding attribute
|
|
@@ -94,30 +93,30 @@ class GetKeyPrefixResult:
|
|
|
94
93
|
"""
|
|
95
94
|
return pulumi.get(self, "path_prefix")
|
|
96
95
|
|
|
97
|
-
@property
|
|
96
|
+
@_builtins.property
|
|
98
97
|
@pulumi.getter(name="subkeyCollection")
|
|
99
98
|
def subkey_collection(self) -> Optional[Sequence['outputs.GetKeyPrefixSubkeyCollectionResult']]:
|
|
100
99
|
return pulumi.get(self, "subkey_collection")
|
|
101
100
|
|
|
102
|
-
@property
|
|
101
|
+
@_builtins.property
|
|
103
102
|
@pulumi.getter
|
|
104
|
-
def subkeys(self) -> Mapping[str,
|
|
103
|
+
def subkeys(self) -> Mapping[str, _builtins.str]:
|
|
105
104
|
"""
|
|
106
105
|
A map of the subkeys and values is set if no `subkey`
|
|
107
106
|
block is provided.
|
|
108
107
|
"""
|
|
109
108
|
return pulumi.get(self, "subkeys")
|
|
110
109
|
|
|
111
|
-
@property
|
|
110
|
+
@_builtins.property
|
|
112
111
|
@pulumi.getter
|
|
113
112
|
@_utilities.deprecated("""The token argument has been deprecated and will be removed in a future release.
|
|
114
113
|
Please use the token argument in the provider configuration""")
|
|
115
|
-
def token(self) -> Optional[
|
|
114
|
+
def token(self) -> Optional[_builtins.str]:
|
|
116
115
|
return pulumi.get(self, "token")
|
|
117
116
|
|
|
118
|
-
@property
|
|
117
|
+
@_builtins.property
|
|
119
118
|
@pulumi.getter
|
|
120
|
-
def var(self) -> Mapping[str,
|
|
119
|
+
def var(self) -> Mapping[str, _builtins.str]:
|
|
121
120
|
return pulumi.get(self, "var")
|
|
122
121
|
|
|
123
122
|
|
|
@@ -138,12 +137,12 @@ class AwaitableGetKeyPrefixResult(GetKeyPrefixResult):
|
|
|
138
137
|
var=self.var)
|
|
139
138
|
|
|
140
139
|
|
|
141
|
-
def get_key_prefix(datacenter: Optional[
|
|
142
|
-
namespace: Optional[
|
|
143
|
-
partition: Optional[
|
|
144
|
-
path_prefix: Optional[
|
|
140
|
+
def get_key_prefix(datacenter: Optional[_builtins.str] = None,
|
|
141
|
+
namespace: Optional[_builtins.str] = None,
|
|
142
|
+
partition: Optional[_builtins.str] = None,
|
|
143
|
+
path_prefix: Optional[_builtins.str] = None,
|
|
145
144
|
subkey_collection: Optional[Sequence[Union['GetKeyPrefixSubkeyCollectionArgs', 'GetKeyPrefixSubkeyCollectionArgsDict']]] = None,
|
|
146
|
-
token: Optional[
|
|
145
|
+
token: Optional[_builtins.str] = None,
|
|
147
146
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetKeyPrefixResult:
|
|
148
147
|
"""
|
|
149
148
|
## Example Usage
|
|
@@ -178,16 +177,16 @@ def get_key_prefix(datacenter: Optional[builtins.str] = None,
|
|
|
178
177
|
```
|
|
179
178
|
|
|
180
179
|
|
|
181
|
-
:param
|
|
180
|
+
:param _builtins.str datacenter: The datacenter to use. This overrides the
|
|
182
181
|
agent's default datacenter and the datacenter in the provider setup.
|
|
183
|
-
:param
|
|
184
|
-
:param
|
|
185
|
-
:param
|
|
182
|
+
:param _builtins.str namespace: The namespace to lookup the keys within.
|
|
183
|
+
:param _builtins.str partition: The namespace to lookup the keys within.
|
|
184
|
+
:param _builtins.str path_prefix: Specifies the common prefix shared by all keys
|
|
186
185
|
that will be read by this data source instance. In most cases, this will
|
|
187
186
|
end with a slash to read a "folder" of subkeys.
|
|
188
187
|
:param Sequence[Union['GetKeyPrefixSubkeyCollectionArgs', 'GetKeyPrefixSubkeyCollectionArgsDict']] subkey_collection: Specifies a subkey in Consul to be read. Supported
|
|
189
188
|
values documented below. Multiple blocks supported.
|
|
190
|
-
:param
|
|
189
|
+
:param _builtins.str token: The ACL token to use. This overrides the
|
|
191
190
|
token that the agent provides by default.
|
|
192
191
|
"""
|
|
193
192
|
__args__ = dict()
|
|
@@ -210,12 +209,12 @@ def get_key_prefix(datacenter: Optional[builtins.str] = None,
|
|
|
210
209
|
subkeys=pulumi.get(__ret__, 'subkeys'),
|
|
211
210
|
token=pulumi.get(__ret__, 'token'),
|
|
212
211
|
var=pulumi.get(__ret__, 'var'))
|
|
213
|
-
def get_key_prefix_output(datacenter: Optional[pulumi.Input[Optional[
|
|
214
|
-
namespace: Optional[pulumi.Input[Optional[
|
|
215
|
-
partition: Optional[pulumi.Input[Optional[
|
|
216
|
-
path_prefix: Optional[pulumi.Input[
|
|
212
|
+
def get_key_prefix_output(datacenter: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
213
|
+
namespace: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
214
|
+
partition: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
215
|
+
path_prefix: Optional[pulumi.Input[_builtins.str]] = None,
|
|
217
216
|
subkey_collection: Optional[pulumi.Input[Optional[Sequence[Union['GetKeyPrefixSubkeyCollectionArgs', 'GetKeyPrefixSubkeyCollectionArgsDict']]]]] = None,
|
|
218
|
-
token: Optional[pulumi.Input[Optional[
|
|
217
|
+
token: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
219
218
|
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetKeyPrefixResult]:
|
|
220
219
|
"""
|
|
221
220
|
## Example Usage
|
|
@@ -250,16 +249,16 @@ def get_key_prefix_output(datacenter: Optional[pulumi.Input[Optional[builtins.st
|
|
|
250
249
|
```
|
|
251
250
|
|
|
252
251
|
|
|
253
|
-
:param
|
|
252
|
+
:param _builtins.str datacenter: The datacenter to use. This overrides the
|
|
254
253
|
agent's default datacenter and the datacenter in the provider setup.
|
|
255
|
-
:param
|
|
256
|
-
:param
|
|
257
|
-
:param
|
|
254
|
+
:param _builtins.str namespace: The namespace to lookup the keys within.
|
|
255
|
+
:param _builtins.str partition: The namespace to lookup the keys within.
|
|
256
|
+
:param _builtins.str path_prefix: Specifies the common prefix shared by all keys
|
|
258
257
|
that will be read by this data source instance. In most cases, this will
|
|
259
258
|
end with a slash to read a "folder" of subkeys.
|
|
260
259
|
:param Sequence[Union['GetKeyPrefixSubkeyCollectionArgs', 'GetKeyPrefixSubkeyCollectionArgsDict']] subkey_collection: Specifies a subkey in Consul to be read. Supported
|
|
261
260
|
values documented below. Multiple blocks supported.
|
|
262
|
-
:param
|
|
261
|
+
:param _builtins.str token: The ACL token to use. This overrides the
|
|
263
262
|
token that the agent provides by default.
|
|
264
263
|
"""
|
|
265
264
|
__args__ = dict()
|
pulumi_consul/get_keys.py
CHANGED
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
|
|
5
|
-
import builtins
|
|
6
|
-
import copy
|
|
5
|
+
import builtins as _builtins
|
|
7
6
|
import warnings
|
|
8
7
|
import sys
|
|
9
8
|
import pulumi
|
|
@@ -55,31 +54,31 @@ class GetKeysResult:
|
|
|
55
54
|
raise TypeError("Expected argument 'var' to be a dict")
|
|
56
55
|
pulumi.set(__self__, "var", var)
|
|
57
56
|
|
|
58
|
-
@property
|
|
57
|
+
@_builtins.property
|
|
59
58
|
@pulumi.getter
|
|
60
|
-
def datacenter(self) ->
|
|
59
|
+
def datacenter(self) -> _builtins.str:
|
|
61
60
|
"""
|
|
62
61
|
The datacenter to use. This overrides the agent's default datacenter and the datacenter in the provider setup.
|
|
63
62
|
"""
|
|
64
63
|
return pulumi.get(self, "datacenter")
|
|
65
64
|
|
|
66
|
-
@property
|
|
65
|
+
@_builtins.property
|
|
67
66
|
@pulumi.getter(name="errorOnMissingKeys")
|
|
68
|
-
def error_on_missing_keys(self) -> Optional[
|
|
67
|
+
def error_on_missing_keys(self) -> Optional[_builtins.bool]:
|
|
69
68
|
"""
|
|
70
69
|
Whether to return an error when a key is absent from the KV store and no default is configured. This defaults to `false`.
|
|
71
70
|
"""
|
|
72
71
|
return pulumi.get(self, "error_on_missing_keys")
|
|
73
72
|
|
|
74
|
-
@property
|
|
73
|
+
@_builtins.property
|
|
75
74
|
@pulumi.getter
|
|
76
|
-
def id(self) ->
|
|
75
|
+
def id(self) -> _builtins.str:
|
|
77
76
|
"""
|
|
78
77
|
The provider-assigned unique ID for this managed resource.
|
|
79
78
|
"""
|
|
80
79
|
return pulumi.get(self, "id")
|
|
81
80
|
|
|
82
|
-
@property
|
|
81
|
+
@_builtins.property
|
|
83
82
|
@pulumi.getter
|
|
84
83
|
def keys(self) -> Optional[Sequence['outputs.GetKeysKeyResult']]:
|
|
85
84
|
"""
|
|
@@ -87,35 +86,35 @@ class GetKeysResult:
|
|
|
87
86
|
"""
|
|
88
87
|
return pulumi.get(self, "keys")
|
|
89
88
|
|
|
90
|
-
@property
|
|
89
|
+
@_builtins.property
|
|
91
90
|
@pulumi.getter
|
|
92
|
-
def namespace(self) -> Optional[
|
|
91
|
+
def namespace(self) -> Optional[_builtins.str]:
|
|
93
92
|
"""
|
|
94
93
|
The namespace to lookup the keys.
|
|
95
94
|
"""
|
|
96
95
|
return pulumi.get(self, "namespace")
|
|
97
96
|
|
|
98
|
-
@property
|
|
97
|
+
@_builtins.property
|
|
99
98
|
@pulumi.getter
|
|
100
|
-
def partition(self) -> Optional[
|
|
99
|
+
def partition(self) -> Optional[_builtins.str]:
|
|
101
100
|
"""
|
|
102
101
|
The partition to lookup the keys.
|
|
103
102
|
"""
|
|
104
103
|
return pulumi.get(self, "partition")
|
|
105
104
|
|
|
106
|
-
@property
|
|
105
|
+
@_builtins.property
|
|
107
106
|
@pulumi.getter
|
|
108
107
|
@_utilities.deprecated("""The token argument has been deprecated and will be removed in a future release.
|
|
109
108
|
Please use the token argument in the provider configuration""")
|
|
110
|
-
def token(self) -> Optional[
|
|
109
|
+
def token(self) -> Optional[_builtins.str]:
|
|
111
110
|
"""
|
|
112
111
|
The ACL token to use. This overrides the token that the agent provides by default.
|
|
113
112
|
"""
|
|
114
113
|
return pulumi.get(self, "token")
|
|
115
114
|
|
|
116
|
-
@property
|
|
115
|
+
@_builtins.property
|
|
117
116
|
@pulumi.getter
|
|
118
|
-
def var(self) -> Mapping[str,
|
|
117
|
+
def var(self) -> Mapping[str, _builtins.str]:
|
|
119
118
|
"""
|
|
120
119
|
For each name given, the corresponding attribute has the value of the key.
|
|
121
120
|
"""
|
|
@@ -138,12 +137,12 @@ class AwaitableGetKeysResult(GetKeysResult):
|
|
|
138
137
|
var=self.var)
|
|
139
138
|
|
|
140
139
|
|
|
141
|
-
def get_keys(datacenter: Optional[
|
|
142
|
-
error_on_missing_keys: Optional[
|
|
140
|
+
def get_keys(datacenter: Optional[_builtins.str] = None,
|
|
141
|
+
error_on_missing_keys: Optional[_builtins.bool] = None,
|
|
143
142
|
keys: Optional[Sequence[Union['GetKeysKeyArgs', 'GetKeysKeyArgsDict']]] = None,
|
|
144
|
-
namespace: Optional[
|
|
145
|
-
partition: Optional[
|
|
146
|
-
token: Optional[
|
|
143
|
+
namespace: Optional[_builtins.str] = None,
|
|
144
|
+
partition: Optional[_builtins.str] = None,
|
|
145
|
+
token: Optional[_builtins.str] = None,
|
|
147
146
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetKeysResult:
|
|
148
147
|
"""
|
|
149
148
|
The `Keys` datasource reads values from the Consul key/value store. This is a powerful way to dynamically set values in templates.
|
|
@@ -166,12 +165,12 @@ def get_keys(datacenter: Optional[builtins.str] = None,
|
|
|
166
165
|
```
|
|
167
166
|
|
|
168
167
|
|
|
169
|
-
:param
|
|
170
|
-
:param
|
|
168
|
+
:param _builtins.str datacenter: The datacenter to use. This overrides the agent's default datacenter and the datacenter in the provider setup.
|
|
169
|
+
:param _builtins.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`.
|
|
171
170
|
:param Sequence[Union['GetKeysKeyArgs', 'GetKeysKeyArgsDict']] keys: Specifies a key in Consul to be read. Supported values documented below. Multiple blocks supported.
|
|
172
|
-
:param
|
|
173
|
-
:param
|
|
174
|
-
:param
|
|
171
|
+
:param _builtins.str namespace: The namespace to lookup the keys.
|
|
172
|
+
:param _builtins.str partition: The partition to lookup the keys.
|
|
173
|
+
:param _builtins.str token: The ACL token to use. This overrides the token that the agent provides by default.
|
|
175
174
|
"""
|
|
176
175
|
__args__ = dict()
|
|
177
176
|
__args__['datacenter'] = datacenter
|
|
@@ -192,12 +191,12 @@ def get_keys(datacenter: Optional[builtins.str] = None,
|
|
|
192
191
|
partition=pulumi.get(__ret__, 'partition'),
|
|
193
192
|
token=pulumi.get(__ret__, 'token'),
|
|
194
193
|
var=pulumi.get(__ret__, 'var'))
|
|
195
|
-
def get_keys_output(datacenter: Optional[pulumi.Input[Optional[
|
|
196
|
-
error_on_missing_keys: Optional[pulumi.Input[Optional[
|
|
194
|
+
def get_keys_output(datacenter: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
195
|
+
error_on_missing_keys: Optional[pulumi.Input[Optional[_builtins.bool]]] = None,
|
|
197
196
|
keys: Optional[pulumi.Input[Optional[Sequence[Union['GetKeysKeyArgs', 'GetKeysKeyArgsDict']]]]] = None,
|
|
198
|
-
namespace: Optional[pulumi.Input[Optional[
|
|
199
|
-
partition: Optional[pulumi.Input[Optional[
|
|
200
|
-
token: Optional[pulumi.Input[Optional[
|
|
197
|
+
namespace: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
198
|
+
partition: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
199
|
+
token: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
201
200
|
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetKeysResult]:
|
|
202
201
|
"""
|
|
203
202
|
The `Keys` datasource reads values from the Consul key/value store. This is a powerful way to dynamically set values in templates.
|
|
@@ -220,12 +219,12 @@ def get_keys_output(datacenter: Optional[pulumi.Input[Optional[builtins.str]]] =
|
|
|
220
219
|
```
|
|
221
220
|
|
|
222
221
|
|
|
223
|
-
:param
|
|
224
|
-
:param
|
|
222
|
+
:param _builtins.str datacenter: The datacenter to use. This overrides the agent's default datacenter and the datacenter in the provider setup.
|
|
223
|
+
:param _builtins.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`.
|
|
225
224
|
:param Sequence[Union['GetKeysKeyArgs', 'GetKeysKeyArgsDict']] keys: Specifies a key in Consul to be read. Supported values documented below. Multiple blocks supported.
|
|
226
|
-
:param
|
|
227
|
-
:param
|
|
228
|
-
:param
|
|
225
|
+
:param _builtins.str namespace: The namespace to lookup the keys.
|
|
226
|
+
:param _builtins.str partition: The partition to lookup the keys.
|
|
227
|
+
:param _builtins.str token: The ACL token to use. This overrides the token that the agent provides by default.
|
|
229
228
|
"""
|
|
230
229
|
__args__ = dict()
|
|
231
230
|
__args__['datacenter'] = datacenter
|
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
|
|
5
|
-
import builtins
|
|
6
|
-
import copy
|
|
5
|
+
import builtins as _builtins
|
|
7
6
|
import warnings
|
|
8
7
|
import sys
|
|
9
8
|
import pulumi
|
|
@@ -45,23 +44,23 @@ class GetNetworkAreaMembersResult:
|
|
|
45
44
|
raise TypeError("Expected argument 'uuid' to be a str")
|
|
46
45
|
pulumi.set(__self__, "uuid", uuid)
|
|
47
46
|
|
|
48
|
-
@property
|
|
47
|
+
@_builtins.property
|
|
49
48
|
@pulumi.getter
|
|
50
|
-
def datacenter(self) ->
|
|
49
|
+
def datacenter(self) -> _builtins.str:
|
|
51
50
|
"""
|
|
52
51
|
The node's Consul datacenter.
|
|
53
52
|
"""
|
|
54
53
|
return pulumi.get(self, "datacenter")
|
|
55
54
|
|
|
56
|
-
@property
|
|
55
|
+
@_builtins.property
|
|
57
56
|
@pulumi.getter
|
|
58
|
-
def id(self) ->
|
|
57
|
+
def id(self) -> _builtins.str:
|
|
59
58
|
"""
|
|
60
59
|
The provider-assigned unique ID for this managed resource.
|
|
61
60
|
"""
|
|
62
61
|
return pulumi.get(self, "id")
|
|
63
62
|
|
|
64
|
-
@property
|
|
63
|
+
@_builtins.property
|
|
65
64
|
@pulumi.getter
|
|
66
65
|
def members(self) -> Sequence['outputs.GetNetworkAreaMembersMemberResult']:
|
|
67
66
|
"""
|
|
@@ -69,16 +68,16 @@ class GetNetworkAreaMembersResult:
|
|
|
69
68
|
"""
|
|
70
69
|
return pulumi.get(self, "members")
|
|
71
70
|
|
|
72
|
-
@property
|
|
71
|
+
@_builtins.property
|
|
73
72
|
@pulumi.getter
|
|
74
73
|
@_utilities.deprecated("""The token argument has been deprecated and will be removed in a future release.
|
|
75
74
|
Please use the token argument in the provider configuration""")
|
|
76
|
-
def token(self) -> Optional[
|
|
75
|
+
def token(self) -> Optional[_builtins.str]:
|
|
77
76
|
return pulumi.get(self, "token")
|
|
78
77
|
|
|
79
|
-
@property
|
|
78
|
+
@_builtins.property
|
|
80
79
|
@pulumi.getter
|
|
81
|
-
def uuid(self) ->
|
|
80
|
+
def uuid(self) -> _builtins.str:
|
|
82
81
|
"""
|
|
83
82
|
The UUID of the Network Area being queried.
|
|
84
83
|
"""
|
|
@@ -98,9 +97,9 @@ class AwaitableGetNetworkAreaMembersResult(GetNetworkAreaMembersResult):
|
|
|
98
97
|
uuid=self.uuid)
|
|
99
98
|
|
|
100
99
|
|
|
101
|
-
def get_network_area_members(datacenter: Optional[
|
|
102
|
-
token: Optional[
|
|
103
|
-
uuid: Optional[
|
|
100
|
+
def get_network_area_members(datacenter: Optional[_builtins.str] = None,
|
|
101
|
+
token: Optional[_builtins.str] = None,
|
|
102
|
+
uuid: Optional[_builtins.str] = None,
|
|
104
103
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetNetworkAreaMembersResult:
|
|
105
104
|
"""
|
|
106
105
|
> **NOTE:** This feature requires [Consul Enterprise](https://www.consul.io/docs/enterprise/index.html).
|
|
@@ -123,11 +122,11 @@ def get_network_area_members(datacenter: Optional[builtins.str] = None,
|
|
|
123
122
|
```
|
|
124
123
|
|
|
125
124
|
|
|
126
|
-
:param
|
|
125
|
+
:param _builtins.str datacenter: The datacenter to use. This overrides the
|
|
127
126
|
agent's default datacenter and the datacenter in the provider setup.
|
|
128
|
-
:param
|
|
127
|
+
:param _builtins.str token: The ACL token to use. This overrides the
|
|
129
128
|
token that the agent provides by default.
|
|
130
|
-
:param
|
|
129
|
+
:param _builtins.str uuid: The UUID of the area to list.
|
|
131
130
|
"""
|
|
132
131
|
__args__ = dict()
|
|
133
132
|
__args__['datacenter'] = datacenter
|
|
@@ -142,9 +141,9 @@ def get_network_area_members(datacenter: Optional[builtins.str] = None,
|
|
|
142
141
|
members=pulumi.get(__ret__, 'members'),
|
|
143
142
|
token=pulumi.get(__ret__, 'token'),
|
|
144
143
|
uuid=pulumi.get(__ret__, 'uuid'))
|
|
145
|
-
def get_network_area_members_output(datacenter: Optional[pulumi.Input[Optional[
|
|
146
|
-
token: Optional[pulumi.Input[Optional[
|
|
147
|
-
uuid: Optional[pulumi.Input[
|
|
144
|
+
def get_network_area_members_output(datacenter: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
145
|
+
token: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
146
|
+
uuid: Optional[pulumi.Input[_builtins.str]] = None,
|
|
148
147
|
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetNetworkAreaMembersResult]:
|
|
149
148
|
"""
|
|
150
149
|
> **NOTE:** This feature requires [Consul Enterprise](https://www.consul.io/docs/enterprise/index.html).
|
|
@@ -167,11 +166,11 @@ def get_network_area_members_output(datacenter: Optional[pulumi.Input[Optional[b
|
|
|
167
166
|
```
|
|
168
167
|
|
|
169
168
|
|
|
170
|
-
:param
|
|
169
|
+
:param _builtins.str datacenter: The datacenter to use. This overrides the
|
|
171
170
|
agent's default datacenter and the datacenter in the provider setup.
|
|
172
|
-
:param
|
|
171
|
+
:param _builtins.str token: The ACL token to use. This overrides the
|
|
173
172
|
token that the agent provides by default.
|
|
174
|
-
:param
|
|
173
|
+
:param _builtins.str uuid: The UUID of the area to list.
|
|
175
174
|
"""
|
|
176
175
|
__args__ = dict()
|
|
177
176
|
__args__['datacenter'] = datacenter
|
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
|
|
5
|
-
import builtins
|
|
6
|
-
import copy
|
|
5
|
+
import builtins as _builtins
|
|
7
6
|
import warnings
|
|
8
7
|
import sys
|
|
9
8
|
import pulumi
|
|
@@ -41,35 +40,35 @@ class GetNetworkSegmentsResult:
|
|
|
41
40
|
raise TypeError("Expected argument 'token' to be a str")
|
|
42
41
|
pulumi.set(__self__, "token", token)
|
|
43
42
|
|
|
44
|
-
@property
|
|
43
|
+
@_builtins.property
|
|
45
44
|
@pulumi.getter
|
|
46
|
-
def datacenter(self) ->
|
|
45
|
+
def datacenter(self) -> _builtins.str:
|
|
47
46
|
"""
|
|
48
47
|
The datacenter the segments are being read from.
|
|
49
48
|
"""
|
|
50
49
|
return pulumi.get(self, "datacenter")
|
|
51
50
|
|
|
52
|
-
@property
|
|
51
|
+
@_builtins.property
|
|
53
52
|
@pulumi.getter
|
|
54
|
-
def id(self) ->
|
|
53
|
+
def id(self) -> _builtins.str:
|
|
55
54
|
"""
|
|
56
55
|
The provider-assigned unique ID for this managed resource.
|
|
57
56
|
"""
|
|
58
57
|
return pulumi.get(self, "id")
|
|
59
58
|
|
|
60
|
-
@property
|
|
59
|
+
@_builtins.property
|
|
61
60
|
@pulumi.getter
|
|
62
|
-
def segments(self) -> Sequence[
|
|
61
|
+
def segments(self) -> Sequence[_builtins.str]:
|
|
63
62
|
"""
|
|
64
63
|
The list of network segments.
|
|
65
64
|
"""
|
|
66
65
|
return pulumi.get(self, "segments")
|
|
67
66
|
|
|
68
|
-
@property
|
|
67
|
+
@_builtins.property
|
|
69
68
|
@pulumi.getter
|
|
70
69
|
@_utilities.deprecated("""The token argument has been deprecated and will be removed in a future release.
|
|
71
70
|
Please use the token argument in the provider configuration""")
|
|
72
|
-
def token(self) -> Optional[
|
|
71
|
+
def token(self) -> Optional[_builtins.str]:
|
|
73
72
|
return pulumi.get(self, "token")
|
|
74
73
|
|
|
75
74
|
|
|
@@ -85,8 +84,8 @@ class AwaitableGetNetworkSegmentsResult(GetNetworkSegmentsResult):
|
|
|
85
84
|
token=self.token)
|
|
86
85
|
|
|
87
86
|
|
|
88
|
-
def get_network_segments(datacenter: Optional[
|
|
89
|
-
token: Optional[
|
|
87
|
+
def get_network_segments(datacenter: Optional[_builtins.str] = None,
|
|
88
|
+
token: Optional[_builtins.str] = None,
|
|
90
89
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetNetworkSegmentsResult:
|
|
91
90
|
"""
|
|
92
91
|
> **NOTE:** This feature requires [Consul Enterprise](https://www.consul.io/docs/enterprise/index.html).
|
|
@@ -105,9 +104,9 @@ def get_network_segments(datacenter: Optional[builtins.str] = None,
|
|
|
105
104
|
```
|
|
106
105
|
|
|
107
106
|
|
|
108
|
-
:param
|
|
107
|
+
:param _builtins.str datacenter: The datacenter to use. This overrides the
|
|
109
108
|
agent's default datacenter and the datacenter in the provider setup.
|
|
110
|
-
:param
|
|
109
|
+
:param _builtins.str token: The ACL token to use. This overrides the
|
|
111
110
|
token that the agent provides by default.
|
|
112
111
|
"""
|
|
113
112
|
__args__ = dict()
|
|
@@ -121,8 +120,8 @@ def get_network_segments(datacenter: Optional[builtins.str] = None,
|
|
|
121
120
|
id=pulumi.get(__ret__, 'id'),
|
|
122
121
|
segments=pulumi.get(__ret__, 'segments'),
|
|
123
122
|
token=pulumi.get(__ret__, 'token'))
|
|
124
|
-
def get_network_segments_output(datacenter: Optional[pulumi.Input[Optional[
|
|
125
|
-
token: Optional[pulumi.Input[Optional[
|
|
123
|
+
def get_network_segments_output(datacenter: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
124
|
+
token: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
126
125
|
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetNetworkSegmentsResult]:
|
|
127
126
|
"""
|
|
128
127
|
> **NOTE:** This feature requires [Consul Enterprise](https://www.consul.io/docs/enterprise/index.html).
|
|
@@ -141,9 +140,9 @@ def get_network_segments_output(datacenter: Optional[pulumi.Input[Optional[built
|
|
|
141
140
|
```
|
|
142
141
|
|
|
143
142
|
|
|
144
|
-
:param
|
|
143
|
+
:param _builtins.str datacenter: The datacenter to use. This overrides the
|
|
145
144
|
agent's default datacenter and the datacenter in the provider setup.
|
|
146
|
-
:param
|
|
145
|
+
:param _builtins.str token: The ACL token to use. This overrides the
|
|
147
146
|
token that the agent provides by default.
|
|
148
147
|
"""
|
|
149
148
|
__args__ = dict()
|