pulumi-consul 3.11.1__py3-none-any.whl → 3.11.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.
- pulumi_consul/_inputs.py +62 -26
- pulumi_consul/_utilities.py +2 -2
- pulumi_consul/acl_auth_method.py +4 -0
- pulumi_consul/acl_binding_rule.py +2 -0
- pulumi_consul/acl_policy.py +4 -4
- pulumi_consul/acl_role.py +13 -13
- pulumi_consul/acl_role_policy_attachment.py +10 -8
- pulumi_consul/acl_token.py +18 -14
- pulumi_consul/acl_token_policy_attachment.py +10 -6
- pulumi_consul/acl_token_role_attachment.py +6 -4
- pulumi_consul/admin_partition.py +8 -4
- pulumi_consul/agent_service.py +2 -0
- pulumi_consul/catalog_entry.py +0 -42
- pulumi_consul/certificate_authority.py +2 -28
- pulumi_consul/config/outputs.py +24 -0
- pulumi_consul/config_entry.py +76 -32
- pulumi_consul/config_entry_service_defaults.py +23 -23
- pulumi_consul/config_entry_service_intentions.py +27 -27
- pulumi_consul/config_entry_service_resolver.py +57 -59
- pulumi_consul/config_entry_service_router.py +21 -61
- pulumi_consul/config_entry_service_splitter.py +24 -22
- pulumi_consul/get_acl_role.py +2 -0
- pulumi_consul/get_acl_token_secret_id.py +8 -6
- pulumi_consul/get_catalog_service.py +30 -4
- pulumi_consul/get_catalog_services.py +32 -0
- pulumi_consul/get_key_prefix.py +18 -18
- pulumi_consul/get_keys.py +4 -6
- pulumi_consul/get_network_area_members.py +6 -6
- pulumi_consul/get_network_segments.py +4 -4
- pulumi_consul/get_service.py +30 -4
- pulumi_consul/get_services.py +32 -0
- pulumi_consul/intention.py +12 -12
- pulumi_consul/key_prefix.py +32 -30
- pulumi_consul/keys.py +6 -6
- pulumi_consul/license.py +4 -2
- pulumi_consul/namespace.py +8 -4
- pulumi_consul/namespace_policy_attachment.py +6 -4
- pulumi_consul/namespace_role_attachment.py +6 -4
- pulumi_consul/node.py +8 -4
- pulumi_consul/outputs.py +126 -24
- pulumi_consul/peering.py +8 -18
- pulumi_consul/prepared_query.py +65 -61
- pulumi_consul/pulumi-plugin.json +2 -1
- pulumi_consul/service.py +133 -7
- {pulumi_consul-3.11.1.dist-info → pulumi_consul-3.11.3.dist-info}/METADATA +2 -2
- pulumi_consul-3.11.3.dist-info/RECORD +70 -0
- {pulumi_consul-3.11.1.dist-info → pulumi_consul-3.11.3.dist-info}/WHEEL +1 -1
- pulumi_consul-3.11.1.dist-info/RECORD +0 -70
- {pulumi_consul-3.11.1.dist-info → pulumi_consul-3.11.3.dist-info}/top_level.txt +0 -0
pulumi_consul/outputs.py
CHANGED
|
@@ -865,6 +865,7 @@ class ConfigEntryServiceDefaultsUpstreamConfigDefault(dict):
|
|
|
865
865
|
:param Sequence['ConfigEntryServiceDefaultsUpstreamConfigDefaultLimitArgs'] limits: Map that specifies a set of limits to apply to when connecting upstream services.
|
|
866
866
|
:param Sequence['ConfigEntryServiceDefaultsUpstreamConfigDefaultMeshGatewayArgs'] mesh_gateways: Specifies the default mesh gateway mode field for all upstreams.
|
|
867
867
|
:param Sequence['ConfigEntryServiceDefaultsUpstreamConfigDefaultPassiveHealthCheckArgs'] passive_health_checks: Map that specifies a set of rules that enable Consul to remove hosts from the upstream cluster that are unreachable or that return errors.
|
|
868
|
+
:param str protocol: Specifies the default protocol for the service.
|
|
868
869
|
"""
|
|
869
870
|
if balance_outbound_connections is not None:
|
|
870
871
|
pulumi.set(__self__, "balance_outbound_connections", balance_outbound_connections)
|
|
@@ -919,6 +920,9 @@ class ConfigEntryServiceDefaultsUpstreamConfigDefault(dict):
|
|
|
919
920
|
@property
|
|
920
921
|
@pulumi.getter
|
|
921
922
|
def protocol(self) -> Optional[str]:
|
|
923
|
+
"""
|
|
924
|
+
Specifies the default protocol for the service.
|
|
925
|
+
"""
|
|
922
926
|
return pulumi.get(self, "protocol")
|
|
923
927
|
|
|
924
928
|
|
|
@@ -1132,10 +1136,12 @@ class ConfigEntryServiceDefaultsUpstreamConfigOverride(dict):
|
|
|
1132
1136
|
:param str balance_outbound_connections: Sets the strategy for allocating outbound connections from upstreams across Envoy proxy threads.
|
|
1133
1137
|
:param Sequence['ConfigEntryServiceDefaultsUpstreamConfigOverrideLimitArgs'] limits: Map that specifies a set of limits to apply to when connecting upstream services.
|
|
1134
1138
|
:param Sequence['ConfigEntryServiceDefaultsUpstreamConfigOverrideMeshGatewayArgs'] mesh_gateways: Specifies the default mesh gateway mode field for all upstreams.
|
|
1139
|
+
:param str name: Specifies the name of the service you are setting the defaults for.
|
|
1135
1140
|
:param str namespace: Specifies the namespace containing the upstream service that the configuration applies to.
|
|
1136
1141
|
:param str partition: Specifies the name of the name of the Consul admin partition that the configuration entry applies to.
|
|
1137
1142
|
:param Sequence['ConfigEntryServiceDefaultsUpstreamConfigOverridePassiveHealthCheckArgs'] passive_health_checks: Map that specifies a set of rules that enable Consul to remove hosts from the upstream cluster that are unreachable or that return errors.
|
|
1138
1143
|
:param str peer: Specifies the peer name of the upstream service that the configuration applies to.
|
|
1144
|
+
:param str protocol: Specifies the default protocol for the service.
|
|
1139
1145
|
"""
|
|
1140
1146
|
if balance_outbound_connections is not None:
|
|
1141
1147
|
pulumi.set(__self__, "balance_outbound_connections", balance_outbound_connections)
|
|
@@ -1197,6 +1203,9 @@ class ConfigEntryServiceDefaultsUpstreamConfigOverride(dict):
|
|
|
1197
1203
|
@property
|
|
1198
1204
|
@pulumi.getter
|
|
1199
1205
|
def name(self) -> Optional[str]:
|
|
1206
|
+
"""
|
|
1207
|
+
Specifies the name of the service you are setting the defaults for.
|
|
1208
|
+
"""
|
|
1200
1209
|
return pulumi.get(self, "name")
|
|
1201
1210
|
|
|
1202
1211
|
@property
|
|
@@ -1234,6 +1243,9 @@ class ConfigEntryServiceDefaultsUpstreamConfigOverride(dict):
|
|
|
1234
1243
|
@property
|
|
1235
1244
|
@pulumi.getter
|
|
1236
1245
|
def protocol(self) -> Optional[str]:
|
|
1246
|
+
"""
|
|
1247
|
+
Specifies the default protocol for the service.
|
|
1248
|
+
"""
|
|
1237
1249
|
return pulumi.get(self, "protocol")
|
|
1238
1250
|
|
|
1239
1251
|
|
|
@@ -1652,7 +1664,7 @@ class ConfigEntryServiceIntentionsSourcePermission(dict):
|
|
|
1652
1664
|
action: str,
|
|
1653
1665
|
https: Sequence['outputs.ConfigEntryServiceIntentionsSourcePermissionHttp']):
|
|
1654
1666
|
"""
|
|
1655
|
-
:param str action: Specifies the action to take when the source sends traffic to the destination service.
|
|
1667
|
+
:param str action: Specifies the action to take when the source sends traffic to the destination service. The value is either allow or deny.
|
|
1656
1668
|
:param Sequence['ConfigEntryServiceIntentionsSourcePermissionHttpArgs'] https: Specifies a set of HTTP-specific match criteria.
|
|
1657
1669
|
"""
|
|
1658
1670
|
pulumi.set(__self__, "action", action)
|
|
@@ -1662,7 +1674,7 @@ class ConfigEntryServiceIntentionsSourcePermission(dict):
|
|
|
1662
1674
|
@pulumi.getter
|
|
1663
1675
|
def action(self) -> str:
|
|
1664
1676
|
"""
|
|
1665
|
-
Specifies the action to take when the source sends traffic to the destination service.
|
|
1677
|
+
Specifies the action to take when the source sends traffic to the destination service. The value is either allow or deny.
|
|
1666
1678
|
"""
|
|
1667
1679
|
return pulumi.get(self, "action")
|
|
1668
1680
|
|
|
@@ -1774,7 +1786,7 @@ class ConfigEntryServiceIntentionsSourcePermissionHttpHeader(dict):
|
|
|
1774
1786
|
regex: Optional[str] = None,
|
|
1775
1787
|
suffix: Optional[str] = None):
|
|
1776
1788
|
"""
|
|
1777
|
-
:param str name: Specifies the name of
|
|
1789
|
+
:param str name: Specifies the name of the header to match.
|
|
1778
1790
|
:param str exact: Specifies a value for the header key set in the Name field. If the request header value matches the Exact value, Consul applies the permission.
|
|
1779
1791
|
:param bool invert: Inverts the matching logic configured in the Header.
|
|
1780
1792
|
:param str prefix: Specifies a prefix value for the header key set in the Name field.
|
|
@@ -1800,7 +1812,7 @@ class ConfigEntryServiceIntentionsSourcePermissionHttpHeader(dict):
|
|
|
1800
1812
|
@pulumi.getter
|
|
1801
1813
|
def name(self) -> str:
|
|
1802
1814
|
"""
|
|
1803
|
-
Specifies the name of
|
|
1815
|
+
Specifies the name of the header to match.
|
|
1804
1816
|
"""
|
|
1805
1817
|
return pulumi.get(self, "name")
|
|
1806
1818
|
|
|
@@ -1992,11 +2004,11 @@ class ConfigEntryServiceResolverFailoverTarget(dict):
|
|
|
1992
2004
|
service_subset: Optional[str] = None):
|
|
1993
2005
|
"""
|
|
1994
2006
|
:param str datacenter: Specifies the WAN federated datacenter to use for the failover target. If empty, the current datacenter is used.
|
|
1995
|
-
:param str namespace: Specifies the namespace
|
|
2007
|
+
:param str namespace: Specifies the namespace to use for the failover target. If empty, the default namespace is used.
|
|
1996
2008
|
:param str partition: Specifies the admin partition within the same datacenter to use for the failover target. If empty, the default partition is used.
|
|
1997
2009
|
:param str peer: Specifies the destination cluster peer to resolve the target service name from.
|
|
1998
|
-
:param str service: Specifies the name
|
|
1999
|
-
:param str service_subset: Specifies the
|
|
2010
|
+
:param str service: Specifies the service name to use for the failover target. If empty, the current service name is used.
|
|
2011
|
+
:param str service_subset: Specifies the named subset to use for the failover target. If empty, the default subset for the requested service name is used.
|
|
2000
2012
|
"""
|
|
2001
2013
|
if datacenter is not None:
|
|
2002
2014
|
pulumi.set(__self__, "datacenter", datacenter)
|
|
@@ -2023,7 +2035,7 @@ class ConfigEntryServiceResolverFailoverTarget(dict):
|
|
|
2023
2035
|
@pulumi.getter
|
|
2024
2036
|
def namespace(self) -> Optional[str]:
|
|
2025
2037
|
"""
|
|
2026
|
-
Specifies the namespace
|
|
2038
|
+
Specifies the namespace to use for the failover target. If empty, the default namespace is used.
|
|
2027
2039
|
"""
|
|
2028
2040
|
return pulumi.get(self, "namespace")
|
|
2029
2041
|
|
|
@@ -2047,7 +2059,7 @@ class ConfigEntryServiceResolverFailoverTarget(dict):
|
|
|
2047
2059
|
@pulumi.getter
|
|
2048
2060
|
def service(self) -> Optional[str]:
|
|
2049
2061
|
"""
|
|
2050
|
-
Specifies the name
|
|
2062
|
+
Specifies the service name to use for the failover target. If empty, the current service name is used.
|
|
2051
2063
|
"""
|
|
2052
2064
|
return pulumi.get(self, "service")
|
|
2053
2065
|
|
|
@@ -2055,7 +2067,7 @@ class ConfigEntryServiceResolverFailoverTarget(dict):
|
|
|
2055
2067
|
@pulumi.getter(name="serviceSubset")
|
|
2056
2068
|
def service_subset(self) -> Optional[str]:
|
|
2057
2069
|
"""
|
|
2058
|
-
Specifies the
|
|
2070
|
+
Specifies the named subset to use for the failover target. If empty, the default subset for the requested service name is used.
|
|
2059
2071
|
"""
|
|
2060
2072
|
return pulumi.get(self, "service_subset")
|
|
2061
2073
|
|
|
@@ -2793,9 +2805,9 @@ class ConfigEntryServiceRouterRouteDestinationResponseHeaders(dict):
|
|
|
2793
2805
|
removes: Optional[Sequence[str]] = None,
|
|
2794
2806
|
set: Optional[Mapping[str, str]] = None):
|
|
2795
2807
|
"""
|
|
2796
|
-
:param Mapping[str, str] add: Defines a set of key-value pairs to add to the header. Use header names as the keys
|
|
2808
|
+
:param Mapping[str, str] add: Defines a set of key-value pairs to add to the header. Use header names as the keys
|
|
2797
2809
|
:param Sequence[str] removes: Defines a list of headers to remove.
|
|
2798
|
-
:param Mapping[str, str] set: Defines a set of key-value pairs to add to the
|
|
2810
|
+
:param Mapping[str, str] set: Defines a set of key-value pairs to add to the response header or to replace existing header values with
|
|
2799
2811
|
"""
|
|
2800
2812
|
if add is not None:
|
|
2801
2813
|
pulumi.set(__self__, "add", add)
|
|
@@ -2808,7 +2820,7 @@ class ConfigEntryServiceRouterRouteDestinationResponseHeaders(dict):
|
|
|
2808
2820
|
@pulumi.getter
|
|
2809
2821
|
def add(self) -> Optional[Mapping[str, str]]:
|
|
2810
2822
|
"""
|
|
2811
|
-
Defines a set of key-value pairs to add to the header. Use header names as the keys
|
|
2823
|
+
Defines a set of key-value pairs to add to the header. Use header names as the keys
|
|
2812
2824
|
"""
|
|
2813
2825
|
return pulumi.get(self, "add")
|
|
2814
2826
|
|
|
@@ -2824,7 +2836,7 @@ class ConfigEntryServiceRouterRouteDestinationResponseHeaders(dict):
|
|
|
2824
2836
|
@pulumi.getter
|
|
2825
2837
|
def set(self) -> Optional[Mapping[str, str]]:
|
|
2826
2838
|
"""
|
|
2827
|
-
Defines a set of key-value pairs to add to the
|
|
2839
|
+
Defines a set of key-value pairs to add to the response header or to replace existing header values with
|
|
2828
2840
|
"""
|
|
2829
2841
|
return pulumi.get(self, "set")
|
|
2830
2842
|
|
|
@@ -3049,10 +3061,10 @@ class ConfigEntryServiceRouterRouteMatchHttpQueryParam(dict):
|
|
|
3049
3061
|
present: Optional[bool] = None,
|
|
3050
3062
|
regex: Optional[str] = None):
|
|
3051
3063
|
"""
|
|
3052
|
-
:param str exact: Specifies that a request matches when the
|
|
3053
|
-
:param str name: Specifies the name of the HTTP
|
|
3054
|
-
:param bool present: Specifies that a request matches when the value in the `name` argument is present anywhere in the HTTP
|
|
3055
|
-
:param str regex: Specifies that a request matches when the
|
|
3064
|
+
:param str exact: Specifies that a request matches when the query parameter with the given name is this exact value.
|
|
3065
|
+
:param str name: Specifies the name of the HTTP query parameter to match.
|
|
3066
|
+
:param bool present: Specifies that a request matches when the value in the `name` argument is present anywhere in the HTTP query parameter.
|
|
3067
|
+
:param str regex: Specifies that a request matches when the query parameter with the given name matches this regular expression.
|
|
3056
3068
|
"""
|
|
3057
3069
|
if exact is not None:
|
|
3058
3070
|
pulumi.set(__self__, "exact", exact)
|
|
@@ -3067,7 +3079,7 @@ class ConfigEntryServiceRouterRouteMatchHttpQueryParam(dict):
|
|
|
3067
3079
|
@pulumi.getter
|
|
3068
3080
|
def exact(self) -> Optional[str]:
|
|
3069
3081
|
"""
|
|
3070
|
-
Specifies that a request matches when the
|
|
3082
|
+
Specifies that a request matches when the query parameter with the given name is this exact value.
|
|
3071
3083
|
"""
|
|
3072
3084
|
return pulumi.get(self, "exact")
|
|
3073
3085
|
|
|
@@ -3075,7 +3087,7 @@ class ConfigEntryServiceRouterRouteMatchHttpQueryParam(dict):
|
|
|
3075
3087
|
@pulumi.getter
|
|
3076
3088
|
def name(self) -> Optional[str]:
|
|
3077
3089
|
"""
|
|
3078
|
-
Specifies the name of the HTTP
|
|
3090
|
+
Specifies the name of the HTTP query parameter to match.
|
|
3079
3091
|
"""
|
|
3080
3092
|
return pulumi.get(self, "name")
|
|
3081
3093
|
|
|
@@ -3083,7 +3095,7 @@ class ConfigEntryServiceRouterRouteMatchHttpQueryParam(dict):
|
|
|
3083
3095
|
@pulumi.getter
|
|
3084
3096
|
def present(self) -> Optional[bool]:
|
|
3085
3097
|
"""
|
|
3086
|
-
Specifies that a request matches when the value in the `name` argument is present anywhere in the HTTP
|
|
3098
|
+
Specifies that a request matches when the value in the `name` argument is present anywhere in the HTTP query parameter.
|
|
3087
3099
|
"""
|
|
3088
3100
|
return pulumi.get(self, "present")
|
|
3089
3101
|
|
|
@@ -3091,7 +3103,7 @@ class ConfigEntryServiceRouterRouteMatchHttpQueryParam(dict):
|
|
|
3091
3103
|
@pulumi.getter
|
|
3092
3104
|
def regex(self) -> Optional[str]:
|
|
3093
3105
|
"""
|
|
3094
|
-
Specifies that a request matches when the
|
|
3106
|
+
Specifies that a request matches when the query parameter with the given name matches this regular expression.
|
|
3095
3107
|
"""
|
|
3096
3108
|
return pulumi.get(self, "regex")
|
|
3097
3109
|
|
|
@@ -3404,8 +3416,8 @@ class KeysKey(dict):
|
|
|
3404
3416
|
@property
|
|
3405
3417
|
@pulumi.getter
|
|
3406
3418
|
def name(self) -> Optional[str]:
|
|
3407
|
-
warnings.warn("""Using
|
|
3408
|
-
pulumi.log.warn("""name is deprecated: Using
|
|
3419
|
+
warnings.warn("""Using Keys resource to *read* is deprecated; please use Keys data source instead""", DeprecationWarning)
|
|
3420
|
+
pulumi.log.warn("""name is deprecated: Using Keys resource to *read* is deprecated; please use Keys data source instead""")
|
|
3409
3421
|
|
|
3410
3422
|
return pulumi.get(self, "name")
|
|
3411
3423
|
|
|
@@ -3807,17 +3819,27 @@ class GetAclRoleNodeIdentityResult(dict):
|
|
|
3807
3819
|
def __init__(__self__, *,
|
|
3808
3820
|
datacenter: str,
|
|
3809
3821
|
node_name: str):
|
|
3822
|
+
"""
|
|
3823
|
+
:param str datacenter: Specifies the nodes datacenter. This will result in effective policy only being valid in that datacenter.
|
|
3824
|
+
:param str node_name: The name of the node.
|
|
3825
|
+
"""
|
|
3810
3826
|
pulumi.set(__self__, "datacenter", datacenter)
|
|
3811
3827
|
pulumi.set(__self__, "node_name", node_name)
|
|
3812
3828
|
|
|
3813
3829
|
@property
|
|
3814
3830
|
@pulumi.getter
|
|
3815
3831
|
def datacenter(self) -> str:
|
|
3832
|
+
"""
|
|
3833
|
+
Specifies the nodes datacenter. This will result in effective policy only being valid in that datacenter.
|
|
3834
|
+
"""
|
|
3816
3835
|
return pulumi.get(self, "datacenter")
|
|
3817
3836
|
|
|
3818
3837
|
@property
|
|
3819
3838
|
@pulumi.getter(name="nodeName")
|
|
3820
3839
|
def node_name(self) -> str:
|
|
3840
|
+
"""
|
|
3841
|
+
The name of the node.
|
|
3842
|
+
"""
|
|
3821
3843
|
return pulumi.get(self, "node_name")
|
|
3822
3844
|
|
|
3823
3845
|
|
|
@@ -3826,17 +3848,27 @@ class GetAclRolePolicyResult(dict):
|
|
|
3826
3848
|
def __init__(__self__, *,
|
|
3827
3849
|
id: str,
|
|
3828
3850
|
name: str):
|
|
3851
|
+
"""
|
|
3852
|
+
:param str id: The ID of the policy.
|
|
3853
|
+
:param str name: The name of the policy.
|
|
3854
|
+
"""
|
|
3829
3855
|
pulumi.set(__self__, "id", id)
|
|
3830
3856
|
pulumi.set(__self__, "name", name)
|
|
3831
3857
|
|
|
3832
3858
|
@property
|
|
3833
3859
|
@pulumi.getter
|
|
3834
3860
|
def id(self) -> str:
|
|
3861
|
+
"""
|
|
3862
|
+
The ID of the policy.
|
|
3863
|
+
"""
|
|
3835
3864
|
return pulumi.get(self, "id")
|
|
3836
3865
|
|
|
3837
3866
|
@property
|
|
3838
3867
|
@pulumi.getter
|
|
3839
3868
|
def name(self) -> str:
|
|
3869
|
+
"""
|
|
3870
|
+
The name of the policy.
|
|
3871
|
+
"""
|
|
3840
3872
|
return pulumi.get(self, "name")
|
|
3841
3873
|
|
|
3842
3874
|
|
|
@@ -3845,6 +3877,10 @@ class GetAclRoleServiceIdentityResult(dict):
|
|
|
3845
3877
|
def __init__(__self__, *,
|
|
3846
3878
|
datacenters: Optional[Sequence[str]] = None,
|
|
3847
3879
|
service_name: Optional[str] = None):
|
|
3880
|
+
"""
|
|
3881
|
+
:param Sequence[str] datacenters: Specifies the datacenters the effective policy is valid within.
|
|
3882
|
+
:param str service_name: The name of the service.
|
|
3883
|
+
"""
|
|
3848
3884
|
if datacenters is not None:
|
|
3849
3885
|
pulumi.set(__self__, "datacenters", datacenters)
|
|
3850
3886
|
if service_name is not None:
|
|
@@ -3853,11 +3889,17 @@ class GetAclRoleServiceIdentityResult(dict):
|
|
|
3853
3889
|
@property
|
|
3854
3890
|
@pulumi.getter
|
|
3855
3891
|
def datacenters(self) -> Optional[Sequence[str]]:
|
|
3892
|
+
"""
|
|
3893
|
+
Specifies the datacenters the effective policy is valid within.
|
|
3894
|
+
"""
|
|
3856
3895
|
return pulumi.get(self, "datacenters")
|
|
3857
3896
|
|
|
3858
3897
|
@property
|
|
3859
3898
|
@pulumi.getter(name="serviceName")
|
|
3860
3899
|
def service_name(self) -> Optional[str]:
|
|
3900
|
+
"""
|
|
3901
|
+
The name of the service.
|
|
3902
|
+
"""
|
|
3861
3903
|
return pulumi.get(self, "service_name")
|
|
3862
3904
|
|
|
3863
3905
|
|
|
@@ -3867,6 +3909,11 @@ class GetAclRoleTemplatedPolicyResult(dict):
|
|
|
3867
3909
|
datacenters: Sequence[str],
|
|
3868
3910
|
template_name: str,
|
|
3869
3911
|
template_variables: Sequence['outputs.GetAclRoleTemplatedPolicyTemplateVariableResult']):
|
|
3912
|
+
"""
|
|
3913
|
+
:param Sequence[str] datacenters: Specifies the datacenters the effective policy is valid within.
|
|
3914
|
+
:param str template_name: The name of the templated policies.
|
|
3915
|
+
:param Sequence['GetAclRoleTemplatedPolicyTemplateVariableArgs'] template_variables: The templated policy variables.
|
|
3916
|
+
"""
|
|
3870
3917
|
pulumi.set(__self__, "datacenters", datacenters)
|
|
3871
3918
|
pulumi.set(__self__, "template_name", template_name)
|
|
3872
3919
|
pulumi.set(__self__, "template_variables", template_variables)
|
|
@@ -3874,16 +3921,25 @@ class GetAclRoleTemplatedPolicyResult(dict):
|
|
|
3874
3921
|
@property
|
|
3875
3922
|
@pulumi.getter
|
|
3876
3923
|
def datacenters(self) -> Sequence[str]:
|
|
3924
|
+
"""
|
|
3925
|
+
Specifies the datacenters the effective policy is valid within.
|
|
3926
|
+
"""
|
|
3877
3927
|
return pulumi.get(self, "datacenters")
|
|
3878
3928
|
|
|
3879
3929
|
@property
|
|
3880
3930
|
@pulumi.getter(name="templateName")
|
|
3881
3931
|
def template_name(self) -> str:
|
|
3932
|
+
"""
|
|
3933
|
+
The name of the templated policies.
|
|
3934
|
+
"""
|
|
3882
3935
|
return pulumi.get(self, "template_name")
|
|
3883
3936
|
|
|
3884
3937
|
@property
|
|
3885
3938
|
@pulumi.getter(name="templateVariables")
|
|
3886
3939
|
def template_variables(self) -> Sequence['outputs.GetAclRoleTemplatedPolicyTemplateVariableResult']:
|
|
3940
|
+
"""
|
|
3941
|
+
The templated policy variables.
|
|
3942
|
+
"""
|
|
3887
3943
|
return pulumi.get(self, "template_variables")
|
|
3888
3944
|
|
|
3889
3945
|
|
|
@@ -3891,11 +3947,17 @@ class GetAclRoleTemplatedPolicyResult(dict):
|
|
|
3891
3947
|
class GetAclRoleTemplatedPolicyTemplateVariableResult(dict):
|
|
3892
3948
|
def __init__(__self__, *,
|
|
3893
3949
|
name: str):
|
|
3950
|
+
"""
|
|
3951
|
+
:param str name: The name of node, workload identity or service.
|
|
3952
|
+
"""
|
|
3894
3953
|
pulumi.set(__self__, "name", name)
|
|
3895
3954
|
|
|
3896
3955
|
@property
|
|
3897
3956
|
@pulumi.getter
|
|
3898
3957
|
def name(self) -> str:
|
|
3958
|
+
"""
|
|
3959
|
+
The name of node, workload identity or service.
|
|
3960
|
+
"""
|
|
3899
3961
|
return pulumi.get(self, "name")
|
|
3900
3962
|
|
|
3901
3963
|
|
|
@@ -3904,17 +3966,27 @@ class GetAclTokenNodeIdentityResult(dict):
|
|
|
3904
3966
|
def __init__(__self__, *,
|
|
3905
3967
|
datacenter: str,
|
|
3906
3968
|
node_name: str):
|
|
3969
|
+
"""
|
|
3970
|
+
:param str datacenter: Specifies the node's datacenter.
|
|
3971
|
+
:param str node_name: The list of node identities that should be applied to the token.
|
|
3972
|
+
"""
|
|
3907
3973
|
pulumi.set(__self__, "datacenter", datacenter)
|
|
3908
3974
|
pulumi.set(__self__, "node_name", node_name)
|
|
3909
3975
|
|
|
3910
3976
|
@property
|
|
3911
3977
|
@pulumi.getter
|
|
3912
3978
|
def datacenter(self) -> str:
|
|
3979
|
+
"""
|
|
3980
|
+
Specifies the node's datacenter.
|
|
3981
|
+
"""
|
|
3913
3982
|
return pulumi.get(self, "datacenter")
|
|
3914
3983
|
|
|
3915
3984
|
@property
|
|
3916
3985
|
@pulumi.getter(name="nodeName")
|
|
3917
3986
|
def node_name(self) -> str:
|
|
3987
|
+
"""
|
|
3988
|
+
The list of node identities that should be applied to the token.
|
|
3989
|
+
"""
|
|
3918
3990
|
return pulumi.get(self, "node_name")
|
|
3919
3991
|
|
|
3920
3992
|
|
|
@@ -3961,17 +4033,27 @@ class GetAclTokenServiceIdentityResult(dict):
|
|
|
3961
4033
|
def __init__(__self__, *,
|
|
3962
4034
|
datacenters: Sequence[str],
|
|
3963
4035
|
service_name: str):
|
|
4036
|
+
"""
|
|
4037
|
+
:param Sequence[str] datacenters: Specifies the datacenters the effective policy is valid within.
|
|
4038
|
+
:param str service_name: The name of the service.
|
|
4039
|
+
"""
|
|
3964
4040
|
pulumi.set(__self__, "datacenters", datacenters)
|
|
3965
4041
|
pulumi.set(__self__, "service_name", service_name)
|
|
3966
4042
|
|
|
3967
4043
|
@property
|
|
3968
4044
|
@pulumi.getter
|
|
3969
4045
|
def datacenters(self) -> Sequence[str]:
|
|
4046
|
+
"""
|
|
4047
|
+
Specifies the datacenters the effective policy is valid within.
|
|
4048
|
+
"""
|
|
3970
4049
|
return pulumi.get(self, "datacenters")
|
|
3971
4050
|
|
|
3972
4051
|
@property
|
|
3973
4052
|
@pulumi.getter(name="serviceName")
|
|
3974
4053
|
def service_name(self) -> str:
|
|
4054
|
+
"""
|
|
4055
|
+
The name of the service.
|
|
4056
|
+
"""
|
|
3975
4057
|
return pulumi.get(self, "service_name")
|
|
3976
4058
|
|
|
3977
4059
|
|
|
@@ -3981,6 +4063,11 @@ class GetAclTokenTemplatedPolicyResult(dict):
|
|
|
3981
4063
|
datacenters: Sequence[str],
|
|
3982
4064
|
template_name: str,
|
|
3983
4065
|
template_variables: Sequence['outputs.GetAclTokenTemplatedPolicyTemplateVariableResult']):
|
|
4066
|
+
"""
|
|
4067
|
+
:param Sequence[str] datacenters: Specifies the datacenters the effective policy is valid within.
|
|
4068
|
+
:param str template_name: The name of the templated policies.
|
|
4069
|
+
:param Sequence['GetAclTokenTemplatedPolicyTemplateVariableArgs'] template_variables: The templated policy variables.
|
|
4070
|
+
"""
|
|
3984
4071
|
pulumi.set(__self__, "datacenters", datacenters)
|
|
3985
4072
|
pulumi.set(__self__, "template_name", template_name)
|
|
3986
4073
|
pulumi.set(__self__, "template_variables", template_variables)
|
|
@@ -3988,16 +4075,25 @@ class GetAclTokenTemplatedPolicyResult(dict):
|
|
|
3988
4075
|
@property
|
|
3989
4076
|
@pulumi.getter
|
|
3990
4077
|
def datacenters(self) -> Sequence[str]:
|
|
4078
|
+
"""
|
|
4079
|
+
Specifies the datacenters the effective policy is valid within.
|
|
4080
|
+
"""
|
|
3991
4081
|
return pulumi.get(self, "datacenters")
|
|
3992
4082
|
|
|
3993
4083
|
@property
|
|
3994
4084
|
@pulumi.getter(name="templateName")
|
|
3995
4085
|
def template_name(self) -> str:
|
|
4086
|
+
"""
|
|
4087
|
+
The name of the templated policies.
|
|
4088
|
+
"""
|
|
3996
4089
|
return pulumi.get(self, "template_name")
|
|
3997
4090
|
|
|
3998
4091
|
@property
|
|
3999
4092
|
@pulumi.getter(name="templateVariables")
|
|
4000
4093
|
def template_variables(self) -> Sequence['outputs.GetAclTokenTemplatedPolicyTemplateVariableResult']:
|
|
4094
|
+
"""
|
|
4095
|
+
The templated policy variables.
|
|
4096
|
+
"""
|
|
4001
4097
|
return pulumi.get(self, "template_variables")
|
|
4002
4098
|
|
|
4003
4099
|
|
|
@@ -4005,11 +4101,17 @@ class GetAclTokenTemplatedPolicyResult(dict):
|
|
|
4005
4101
|
class GetAclTokenTemplatedPolicyTemplateVariableResult(dict):
|
|
4006
4102
|
def __init__(__self__, *,
|
|
4007
4103
|
name: str):
|
|
4104
|
+
"""
|
|
4105
|
+
:param str name: The name of node, workload identity or service.
|
|
4106
|
+
"""
|
|
4008
4107
|
pulumi.set(__self__, "name", name)
|
|
4009
4108
|
|
|
4010
4109
|
@property
|
|
4011
4110
|
@pulumi.getter
|
|
4012
4111
|
def name(self) -> str:
|
|
4112
|
+
"""
|
|
4113
|
+
The name of node, workload identity or service.
|
|
4114
|
+
"""
|
|
4013
4115
|
return pulumi.get(self, "name")
|
|
4014
4116
|
|
|
4015
4117
|
|
pulumi_consul/peering.py
CHANGED
|
@@ -242,18 +242,13 @@ class Peering(pulumi.CustomResource):
|
|
|
242
242
|
import pulumi
|
|
243
243
|
import pulumi_consul as consul
|
|
244
244
|
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
us = consul.Provider("us", address="us-cluster:8500")
|
|
248
|
-
eu_us_peering_token = consul.PeeringToken("eu-usPeeringToken", peer_name="eu-cluster",
|
|
249
|
-
opts=pulumi.ResourceOptions(provider=consul["us"]))
|
|
250
|
-
eu_us_peering = consul.Peering("eu-usPeering",
|
|
245
|
+
eu_us = consul.PeeringToken("eu-us", peer_name="eu-cluster")
|
|
246
|
+
eu_us_peering = consul.Peering("eu-us",
|
|
251
247
|
peer_name="eu-cluster",
|
|
252
|
-
peering_token=
|
|
248
|
+
peering_token=token["peeringToken"],
|
|
253
249
|
meta={
|
|
254
250
|
"hello": "world",
|
|
255
|
-
}
|
|
256
|
-
opts=pulumi.ResourceOptions(provider=consul["eu"]))
|
|
251
|
+
})
|
|
257
252
|
```
|
|
258
253
|
|
|
259
254
|
:param str resource_name: The name of the resource.
|
|
@@ -283,18 +278,13 @@ class Peering(pulumi.CustomResource):
|
|
|
283
278
|
import pulumi
|
|
284
279
|
import pulumi_consul as consul
|
|
285
280
|
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
us = consul.Provider("us", address="us-cluster:8500")
|
|
289
|
-
eu_us_peering_token = consul.PeeringToken("eu-usPeeringToken", peer_name="eu-cluster",
|
|
290
|
-
opts=pulumi.ResourceOptions(provider=consul["us"]))
|
|
291
|
-
eu_us_peering = consul.Peering("eu-usPeering",
|
|
281
|
+
eu_us = consul.PeeringToken("eu-us", peer_name="eu-cluster")
|
|
282
|
+
eu_us_peering = consul.Peering("eu-us",
|
|
292
283
|
peer_name="eu-cluster",
|
|
293
|
-
peering_token=
|
|
284
|
+
peering_token=token["peeringToken"],
|
|
294
285
|
meta={
|
|
295
286
|
"hello": "world",
|
|
296
|
-
}
|
|
297
|
-
opts=pulumi.ResourceOptions(provider=consul["eu"]))
|
|
287
|
+
})
|
|
298
288
|
```
|
|
299
289
|
|
|
300
290
|
:param str resource_name: The name of the resource.
|