@pulumi/consul 3.3.0 → 3.5.0-alpha.1638552726
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.
- package/README.md +1 -1
- package/aclAuthMethod.js +23 -22
- package/aclAuthMethod.js.map +1 -1
- package/aclBindingRule.js +15 -14
- package/aclBindingRule.js.map +1 -1
- package/aclPolicy.js +13 -12
- package/aclPolicy.js.map +1 -1
- package/aclRole.d.ts +15 -6
- package/aclRole.js +15 -12
- package/aclRole.js.map +1 -1
- package/aclToken.d.ts +37 -0
- package/aclToken.js +21 -14
- package/aclToken.js.map +1 -1
- package/aclTokenPolicyAttachment.js +7 -6
- package/aclTokenPolicyAttachment.js.map +1 -1
- package/aclTokenRoleAttachment.js +7 -6
- package/aclTokenRoleAttachment.js.map +1 -1
- package/agentService.js +11 -10
- package/agentService.js.map +1 -1
- package/autopilotConfig.js +19 -18
- package/autopilotConfig.js.map +1 -1
- package/catalogEntry.js +13 -12
- package/catalogEntry.js.map +1 -1
- package/certificateAuthority.js +7 -6
- package/certificateAuthority.js.map +1 -1
- package/config/index.js +11 -4
- package/config/index.js.map +1 -1
- package/config/vars.d.ts +15 -15
- package/config/vars.js +91 -19
- package/config/vars.js.map +1 -1
- package/configEntry.d.ts +0 -180
- package/configEntry.js +11 -190
- package/configEntry.js.map +1 -1
- package/getAclAuthMethod.d.ts +14 -0
- package/getAclAuthMethod.js +5 -0
- package/getAclAuthMethod.js.map +1 -1
- package/getAclPolicy.d.ts +26 -0
- package/getAclPolicy.js +5 -0
- package/getAclPolicy.js.map +1 -1
- package/getAclRole.d.ts +30 -22
- package/getAclRole.js +5 -3
- package/getAclRole.js.map +1 -1
- package/getAclToken.d.ts +36 -20
- package/getAclToken.js +6 -4
- package/getAclToken.js.map +1 -1
- package/getAclTokenSecretId.d.ts +15 -0
- package/getAclTokenSecretId.js +5 -0
- package/getAclTokenSecretId.js.map +1 -1
- package/getAgentConfig.js +1 -0
- package/getAgentConfig.js.map +1 -1
- package/getAgentSelf.js +1 -0
- package/getAgentSelf.js.map +1 -1
- package/getAutopilotHealth.d.ts +11 -0
- package/getAutopilotHealth.js +5 -0
- package/getAutopilotHealth.js.map +1 -1
- package/getCatalogNodes.d.ts +7 -0
- package/getCatalogNodes.js +5 -0
- package/getCatalogNodes.js.map +1 -1
- package/getCatalogService.d.ts +11 -0
- package/getCatalogService.js +5 -0
- package/getCatalogService.js.map +1 -1
- package/getCatalogServices.d.ts +7 -0
- package/getCatalogServices.js +5 -0
- package/getCatalogServices.js.map +1 -1
- package/getKeyPrefix.d.ts +31 -0
- package/getKeyPrefix.js +5 -0
- package/getKeyPrefix.js.map +1 -1
- package/getKeys.d.ts +25 -0
- package/getKeys.js +5 -0
- package/getKeys.js.map +1 -1
- package/getNetworkAreaMembers.d.ts +24 -4
- package/getNetworkAreaMembers.js +9 -4
- package/getNetworkAreaMembers.js.map +1 -1
- package/getNetworkSegments.d.ts +16 -0
- package/getNetworkSegments.js +5 -0
- package/getNetworkSegments.js.map +1 -1
- package/getNodes.d.ts +10 -0
- package/getNodes.js +5 -0
- package/getNodes.js.map +1 -1
- package/getService.d.ts +31 -0
- package/getService.js +5 -0
- package/getService.js.map +1 -1
- package/getServiceHealth.d.ts +42 -0
- package/getServiceHealth.js +5 -0
- package/getServiceHealth.js.map +1 -1
- package/getServices.d.ts +10 -0
- package/getServices.js +5 -0
- package/getServices.js.map +1 -1
- package/index.js +54 -46
- package/index.js.map +1 -1
- package/intention.js +19 -18
- package/intention.js.map +1 -1
- package/keyPrefix.js +15 -14
- package/keyPrefix.js.map +1 -1
- package/keys.js +13 -12
- package/keys.js.map +1 -1
- package/license.js +27 -26
- package/license.js.map +1 -1
- package/namespace.js +13 -12
- package/namespace.js.map +1 -1
- package/namespacePolicyAttachment.js +7 -6
- package/namespacePolicyAttachment.js.map +1 -1
- package/namespaceRoleAttachment.js +7 -6
- package/namespaceRoleAttachment.js.map +1 -1
- package/networkArea.js +13 -12
- package/networkArea.js.map +1 -1
- package/node.js +13 -12
- package/node.js.map +1 -1
- package/package.json +4 -3
- package/package.json.bak +3 -2
- package/package.json.dev +4 -3
- package/preparedQuery.js +35 -34
- package/preparedQuery.js.map +1 -1
- package/provider.js +18 -17
- package/provider.js.map +1 -1
- package/service.js +27 -26
- package/service.js.map +1 -1
- package/types/index.js +1 -0
- package/types/index.js.map +1 -1
- package/types/input.d.ts +229 -14
- package/types/output.d.ts +46 -4
- package/utilities.js +1 -0
- package/utilities.js.map +1 -1
package/configEntry.d.ts
CHANGED
|
@@ -1,184 +1,4 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
-
/**
|
|
3
|
-
* The [Configuration Entry](https://www.consul.io/docs/agent/config_entries.html)
|
|
4
|
-
* resource can be used to provide cluster-wide defaults for various aspects of
|
|
5
|
-
* Consul.
|
|
6
|
-
*
|
|
7
|
-
* ## Example Usage
|
|
8
|
-
*
|
|
9
|
-
* ```typescript
|
|
10
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
-
* import * as consul from "@pulumi/consul";
|
|
12
|
-
*
|
|
13
|
-
* const proxyDefaults = new consul.ConfigEntry("proxyDefaults", {
|
|
14
|
-
* kind: "proxy-defaults",
|
|
15
|
-
* configJson: JSON.stringify({
|
|
16
|
-
* Config: {
|
|
17
|
-
* local_connect_timeout_ms: 1000,
|
|
18
|
-
* handshake_timeout_ms: 10000,
|
|
19
|
-
* },
|
|
20
|
-
* }),
|
|
21
|
-
* });
|
|
22
|
-
* const web = new consul.ConfigEntry("web", {
|
|
23
|
-
* kind: "service-defaults",
|
|
24
|
-
* configJson: JSON.stringify({
|
|
25
|
-
* Protocol: "http",
|
|
26
|
-
* }),
|
|
27
|
-
* });
|
|
28
|
-
* const admin = new consul.ConfigEntry("admin", {
|
|
29
|
-
* kind: "service-defaults",
|
|
30
|
-
* configJson: JSON.stringify({
|
|
31
|
-
* Protocol: "http",
|
|
32
|
-
* }),
|
|
33
|
-
* });
|
|
34
|
-
* const serviceResolver = new consul.ConfigEntry("serviceResolver", {
|
|
35
|
-
* kind: "service-resolver",
|
|
36
|
-
* configJson: JSON.stringify({
|
|
37
|
-
* DefaultSubset: "v1",
|
|
38
|
-
* Subsets: {
|
|
39
|
-
* v1: {
|
|
40
|
-
* Filter: "Service.Meta.version == v1",
|
|
41
|
-
* },
|
|
42
|
-
* v2: {
|
|
43
|
-
* Filter: "Service.Meta.version == v2",
|
|
44
|
-
* },
|
|
45
|
-
* },
|
|
46
|
-
* }),
|
|
47
|
-
* });
|
|
48
|
-
* const serviceSplitter = new consul.ConfigEntry("serviceSplitter", {
|
|
49
|
-
* kind: "service-splitter",
|
|
50
|
-
* configJson: JSON.stringify({
|
|
51
|
-
* Splits: [
|
|
52
|
-
* {
|
|
53
|
-
* Weight: 90,
|
|
54
|
-
* ServiceSubset: "v1",
|
|
55
|
-
* },
|
|
56
|
-
* {
|
|
57
|
-
* Weight: 10,
|
|
58
|
-
* ServiceSubset: "v2",
|
|
59
|
-
* },
|
|
60
|
-
* ],
|
|
61
|
-
* }),
|
|
62
|
-
* });
|
|
63
|
-
* const serviceRouter = new consul.ConfigEntry("serviceRouter", {
|
|
64
|
-
* kind: "service-router",
|
|
65
|
-
* configJson: JSON.stringify({
|
|
66
|
-
* Routes: [{
|
|
67
|
-
* Match: {
|
|
68
|
-
* HTTP: {
|
|
69
|
-
* PathPrefix: "/admin",
|
|
70
|
-
* },
|
|
71
|
-
* },
|
|
72
|
-
* Destination: {
|
|
73
|
-
* Service: "admin",
|
|
74
|
-
* },
|
|
75
|
-
* }],
|
|
76
|
-
* }),
|
|
77
|
-
* });
|
|
78
|
-
* const ingressGateway = new consul.ConfigEntry("ingressGateway", {
|
|
79
|
-
* kind: "ingress-gateway",
|
|
80
|
-
* configJson: JSON.stringify({
|
|
81
|
-
* TLS: {
|
|
82
|
-
* Enabled: true,
|
|
83
|
-
* },
|
|
84
|
-
* Listeners: [{
|
|
85
|
-
* Port: 8000,
|
|
86
|
-
* Protocol: "http",
|
|
87
|
-
* Services: [{
|
|
88
|
-
* Name: "*",
|
|
89
|
-
* }],
|
|
90
|
-
* }],
|
|
91
|
-
* }),
|
|
92
|
-
* });
|
|
93
|
-
* const terminatingGateway = new consul.ConfigEntry("terminatingGateway", {
|
|
94
|
-
* kind: "terminating-gateway",
|
|
95
|
-
* configJson: JSON.stringify({
|
|
96
|
-
* Services: [{
|
|
97
|
-
* Name: "billing",
|
|
98
|
-
* }],
|
|
99
|
-
* }),
|
|
100
|
-
* });
|
|
101
|
-
* ```
|
|
102
|
-
* ### `service-intentions` config entry
|
|
103
|
-
*
|
|
104
|
-
* ```typescript
|
|
105
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
106
|
-
* import * as consul from "@pulumi/consul";
|
|
107
|
-
*
|
|
108
|
-
* const serviceIntentions = new consul.ConfigEntry("serviceIntentions", {
|
|
109
|
-
* kind: "service-intentions",
|
|
110
|
-
* configJson: JSON.stringify({
|
|
111
|
-
* Sources: [
|
|
112
|
-
* {
|
|
113
|
-
* Action: "allow",
|
|
114
|
-
* Name: "frontend-webapp",
|
|
115
|
-
* Precedence: 9,
|
|
116
|
-
* Type: "consul",
|
|
117
|
-
* },
|
|
118
|
-
* {
|
|
119
|
-
* Action: "allow",
|
|
120
|
-
* Name: "nightly-cronjob",
|
|
121
|
-
* Precedence: 9,
|
|
122
|
-
* Type: "consul",
|
|
123
|
-
* },
|
|
124
|
-
* ],
|
|
125
|
-
* }),
|
|
126
|
-
* });
|
|
127
|
-
* ```
|
|
128
|
-
*
|
|
129
|
-
* ```typescript
|
|
130
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
131
|
-
* import * as consul from "@pulumi/consul";
|
|
132
|
-
*
|
|
133
|
-
* const sd = new consul.ConfigEntry("sd", {
|
|
134
|
-
* kind: "service-defaults",
|
|
135
|
-
* configJson: JSON.stringify({
|
|
136
|
-
* Protocol: "http",
|
|
137
|
-
* }),
|
|
138
|
-
* });
|
|
139
|
-
* const serviceIntentions = new consul.ConfigEntry("serviceIntentions", {
|
|
140
|
-
* kind: "service-intentions",
|
|
141
|
-
* configJson: JSON.stringify({
|
|
142
|
-
* Sources: [
|
|
143
|
-
* {
|
|
144
|
-
* Name: "contractor-webapp",
|
|
145
|
-
* Permissions: [{
|
|
146
|
-
* Action: "allow",
|
|
147
|
-
* HTTP: {
|
|
148
|
-
* Methods: [
|
|
149
|
-
* "GET",
|
|
150
|
-
* "HEAD",
|
|
151
|
-
* ],
|
|
152
|
-
* PathExact: "/healtz",
|
|
153
|
-
* },
|
|
154
|
-
* }],
|
|
155
|
-
* Precedence: 9,
|
|
156
|
-
* Type: "consul",
|
|
157
|
-
* },
|
|
158
|
-
* {
|
|
159
|
-
* Name: "admin-dashboard-webapp",
|
|
160
|
-
* Permissions: [
|
|
161
|
-
* {
|
|
162
|
-
* Action: "deny",
|
|
163
|
-
* HTTP: {
|
|
164
|
-
* PathPrefix: "/debugz",
|
|
165
|
-
* },
|
|
166
|
-
* },
|
|
167
|
-
* {
|
|
168
|
-
* Action: "allow",
|
|
169
|
-
* HTTP: {
|
|
170
|
-
* PathPrefix: "/",
|
|
171
|
-
* },
|
|
172
|
-
* },
|
|
173
|
-
* ],
|
|
174
|
-
* Precedence: 9,
|
|
175
|
-
* Type: "consul",
|
|
176
|
-
* },
|
|
177
|
-
* ],
|
|
178
|
-
* }),
|
|
179
|
-
* });
|
|
180
|
-
* ```
|
|
181
|
-
*/
|
|
182
2
|
export declare class ConfigEntry extends pulumi.CustomResource {
|
|
183
3
|
/**
|
|
184
4
|
* Get an existing ConfigEntry resource's state with the given name, ID, and optional extra
|
package/configEntry.js
CHANGED
|
@@ -2,213 +2,34 @@
|
|
|
2
2
|
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
3
|
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.ConfigEntry = void 0;
|
|
5
6
|
const pulumi = require("@pulumi/pulumi");
|
|
6
7
|
const utilities = require("./utilities");
|
|
7
|
-
/**
|
|
8
|
-
* The [Configuration Entry](https://www.consul.io/docs/agent/config_entries.html)
|
|
9
|
-
* resource can be used to provide cluster-wide defaults for various aspects of
|
|
10
|
-
* Consul.
|
|
11
|
-
*
|
|
12
|
-
* ## Example Usage
|
|
13
|
-
*
|
|
14
|
-
* ```typescript
|
|
15
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
16
|
-
* import * as consul from "@pulumi/consul";
|
|
17
|
-
*
|
|
18
|
-
* const proxyDefaults = new consul.ConfigEntry("proxyDefaults", {
|
|
19
|
-
* kind: "proxy-defaults",
|
|
20
|
-
* configJson: JSON.stringify({
|
|
21
|
-
* Config: {
|
|
22
|
-
* local_connect_timeout_ms: 1000,
|
|
23
|
-
* handshake_timeout_ms: 10000,
|
|
24
|
-
* },
|
|
25
|
-
* }),
|
|
26
|
-
* });
|
|
27
|
-
* const web = new consul.ConfigEntry("web", {
|
|
28
|
-
* kind: "service-defaults",
|
|
29
|
-
* configJson: JSON.stringify({
|
|
30
|
-
* Protocol: "http",
|
|
31
|
-
* }),
|
|
32
|
-
* });
|
|
33
|
-
* const admin = new consul.ConfigEntry("admin", {
|
|
34
|
-
* kind: "service-defaults",
|
|
35
|
-
* configJson: JSON.stringify({
|
|
36
|
-
* Protocol: "http",
|
|
37
|
-
* }),
|
|
38
|
-
* });
|
|
39
|
-
* const serviceResolver = new consul.ConfigEntry("serviceResolver", {
|
|
40
|
-
* kind: "service-resolver",
|
|
41
|
-
* configJson: JSON.stringify({
|
|
42
|
-
* DefaultSubset: "v1",
|
|
43
|
-
* Subsets: {
|
|
44
|
-
* v1: {
|
|
45
|
-
* Filter: "Service.Meta.version == v1",
|
|
46
|
-
* },
|
|
47
|
-
* v2: {
|
|
48
|
-
* Filter: "Service.Meta.version == v2",
|
|
49
|
-
* },
|
|
50
|
-
* },
|
|
51
|
-
* }),
|
|
52
|
-
* });
|
|
53
|
-
* const serviceSplitter = new consul.ConfigEntry("serviceSplitter", {
|
|
54
|
-
* kind: "service-splitter",
|
|
55
|
-
* configJson: JSON.stringify({
|
|
56
|
-
* Splits: [
|
|
57
|
-
* {
|
|
58
|
-
* Weight: 90,
|
|
59
|
-
* ServiceSubset: "v1",
|
|
60
|
-
* },
|
|
61
|
-
* {
|
|
62
|
-
* Weight: 10,
|
|
63
|
-
* ServiceSubset: "v2",
|
|
64
|
-
* },
|
|
65
|
-
* ],
|
|
66
|
-
* }),
|
|
67
|
-
* });
|
|
68
|
-
* const serviceRouter = new consul.ConfigEntry("serviceRouter", {
|
|
69
|
-
* kind: "service-router",
|
|
70
|
-
* configJson: JSON.stringify({
|
|
71
|
-
* Routes: [{
|
|
72
|
-
* Match: {
|
|
73
|
-
* HTTP: {
|
|
74
|
-
* PathPrefix: "/admin",
|
|
75
|
-
* },
|
|
76
|
-
* },
|
|
77
|
-
* Destination: {
|
|
78
|
-
* Service: "admin",
|
|
79
|
-
* },
|
|
80
|
-
* }],
|
|
81
|
-
* }),
|
|
82
|
-
* });
|
|
83
|
-
* const ingressGateway = new consul.ConfigEntry("ingressGateway", {
|
|
84
|
-
* kind: "ingress-gateway",
|
|
85
|
-
* configJson: JSON.stringify({
|
|
86
|
-
* TLS: {
|
|
87
|
-
* Enabled: true,
|
|
88
|
-
* },
|
|
89
|
-
* Listeners: [{
|
|
90
|
-
* Port: 8000,
|
|
91
|
-
* Protocol: "http",
|
|
92
|
-
* Services: [{
|
|
93
|
-
* Name: "*",
|
|
94
|
-
* }],
|
|
95
|
-
* }],
|
|
96
|
-
* }),
|
|
97
|
-
* });
|
|
98
|
-
* const terminatingGateway = new consul.ConfigEntry("terminatingGateway", {
|
|
99
|
-
* kind: "terminating-gateway",
|
|
100
|
-
* configJson: JSON.stringify({
|
|
101
|
-
* Services: [{
|
|
102
|
-
* Name: "billing",
|
|
103
|
-
* }],
|
|
104
|
-
* }),
|
|
105
|
-
* });
|
|
106
|
-
* ```
|
|
107
|
-
* ### `service-intentions` config entry
|
|
108
|
-
*
|
|
109
|
-
* ```typescript
|
|
110
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
111
|
-
* import * as consul from "@pulumi/consul";
|
|
112
|
-
*
|
|
113
|
-
* const serviceIntentions = new consul.ConfigEntry("serviceIntentions", {
|
|
114
|
-
* kind: "service-intentions",
|
|
115
|
-
* configJson: JSON.stringify({
|
|
116
|
-
* Sources: [
|
|
117
|
-
* {
|
|
118
|
-
* Action: "allow",
|
|
119
|
-
* Name: "frontend-webapp",
|
|
120
|
-
* Precedence: 9,
|
|
121
|
-
* Type: "consul",
|
|
122
|
-
* },
|
|
123
|
-
* {
|
|
124
|
-
* Action: "allow",
|
|
125
|
-
* Name: "nightly-cronjob",
|
|
126
|
-
* Precedence: 9,
|
|
127
|
-
* Type: "consul",
|
|
128
|
-
* },
|
|
129
|
-
* ],
|
|
130
|
-
* }),
|
|
131
|
-
* });
|
|
132
|
-
* ```
|
|
133
|
-
*
|
|
134
|
-
* ```typescript
|
|
135
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
136
|
-
* import * as consul from "@pulumi/consul";
|
|
137
|
-
*
|
|
138
|
-
* const sd = new consul.ConfigEntry("sd", {
|
|
139
|
-
* kind: "service-defaults",
|
|
140
|
-
* configJson: JSON.stringify({
|
|
141
|
-
* Protocol: "http",
|
|
142
|
-
* }),
|
|
143
|
-
* });
|
|
144
|
-
* const serviceIntentions = new consul.ConfigEntry("serviceIntentions", {
|
|
145
|
-
* kind: "service-intentions",
|
|
146
|
-
* configJson: JSON.stringify({
|
|
147
|
-
* Sources: [
|
|
148
|
-
* {
|
|
149
|
-
* Name: "contractor-webapp",
|
|
150
|
-
* Permissions: [{
|
|
151
|
-
* Action: "allow",
|
|
152
|
-
* HTTP: {
|
|
153
|
-
* Methods: [
|
|
154
|
-
* "GET",
|
|
155
|
-
* "HEAD",
|
|
156
|
-
* ],
|
|
157
|
-
* PathExact: "/healtz",
|
|
158
|
-
* },
|
|
159
|
-
* }],
|
|
160
|
-
* Precedence: 9,
|
|
161
|
-
* Type: "consul",
|
|
162
|
-
* },
|
|
163
|
-
* {
|
|
164
|
-
* Name: "admin-dashboard-webapp",
|
|
165
|
-
* Permissions: [
|
|
166
|
-
* {
|
|
167
|
-
* Action: "deny",
|
|
168
|
-
* HTTP: {
|
|
169
|
-
* PathPrefix: "/debugz",
|
|
170
|
-
* },
|
|
171
|
-
* },
|
|
172
|
-
* {
|
|
173
|
-
* Action: "allow",
|
|
174
|
-
* HTTP: {
|
|
175
|
-
* PathPrefix: "/",
|
|
176
|
-
* },
|
|
177
|
-
* },
|
|
178
|
-
* ],
|
|
179
|
-
* Precedence: 9,
|
|
180
|
-
* Type: "consul",
|
|
181
|
-
* },
|
|
182
|
-
* ],
|
|
183
|
-
* }),
|
|
184
|
-
* });
|
|
185
|
-
* ```
|
|
186
|
-
*/
|
|
187
8
|
class ConfigEntry extends pulumi.CustomResource {
|
|
188
9
|
constructor(name, argsOrState, opts) {
|
|
189
|
-
let
|
|
10
|
+
let resourceInputs = {};
|
|
190
11
|
opts = opts || {};
|
|
191
12
|
if (opts.id) {
|
|
192
13
|
const state = argsOrState;
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
14
|
+
resourceInputs["configJson"] = state ? state.configJson : undefined;
|
|
15
|
+
resourceInputs["kind"] = state ? state.kind : undefined;
|
|
16
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
17
|
+
resourceInputs["namespace"] = state ? state.namespace : undefined;
|
|
197
18
|
}
|
|
198
19
|
else {
|
|
199
20
|
const args = argsOrState;
|
|
200
21
|
if ((!args || args.kind === undefined) && !opts.urn) {
|
|
201
22
|
throw new Error("Missing required property 'kind'");
|
|
202
23
|
}
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
24
|
+
resourceInputs["configJson"] = args ? args.configJson : undefined;
|
|
25
|
+
resourceInputs["kind"] = args ? args.kind : undefined;
|
|
26
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
27
|
+
resourceInputs["namespace"] = args ? args.namespace : undefined;
|
|
207
28
|
}
|
|
208
29
|
if (!opts.version) {
|
|
209
30
|
opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
|
|
210
31
|
}
|
|
211
|
-
super(ConfigEntry.__pulumiType, name,
|
|
32
|
+
super(ConfigEntry.__pulumiType, name, resourceInputs, opts);
|
|
212
33
|
}
|
|
213
34
|
/**
|
|
214
35
|
* Get an existing ConfigEntry resource's state with the given name, ID, and optional extra
|
package/configEntry.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"configEntry.js","sourceRoot":"","sources":["../configEntry.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF
|
|
1
|
+
{"version":3,"file":"configEntry.js","sourceRoot":"","sources":["../configEntry.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,MAAa,WAAY,SAAQ,MAAM,CAAC,cAAc;IAqDlD,YAAY,IAAY,EAAE,WAAgD,EAAE,IAAmC;QAC3G,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA2C,CAAC;YAC1D,cAAc,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;SACrE;aAAM;YACH,MAAM,IAAI,GAAG,WAA0C,CAAC;YACxD,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACjD,MAAM,IAAI,KAAK,CAAC,kCAAkC,CAAC,CAAC;aACvD;YACD,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;SACnE;QACD,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;YACf,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,EAAE,OAAO,EAAE,SAAS,CAAC,UAAU,EAAE,EAAC,CAAC,CAAC;SACxE;QACD,KAAK,CAAC,WAAW,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAChE,CAAC;IA3ED;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAwB,EAAE,IAAmC;QACtH,OAAO,IAAI,WAAW,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAClE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,WAAW,CAAC,YAAY,CAAC;IAC5D,CAAC;;AA1BL,kCA6EC;AA/DG,gBAAgB;AACO,wBAAY,GAAG,sCAAsC,CAAC"}
|
package/getAclAuthMethod.d.ts
CHANGED
|
@@ -83,3 +83,17 @@ export interface GetAclAuthMethodResult {
|
|
|
83
83
|
*/
|
|
84
84
|
readonly type: string;
|
|
85
85
|
}
|
|
86
|
+
export declare function getAclAuthMethodOutput(args: GetAclAuthMethodOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetAclAuthMethodResult>;
|
|
87
|
+
/**
|
|
88
|
+
* A collection of arguments for invoking getAclAuthMethod.
|
|
89
|
+
*/
|
|
90
|
+
export interface GetAclAuthMethodOutputArgs {
|
|
91
|
+
/**
|
|
92
|
+
* The name of the ACL Auth Method.
|
|
93
|
+
*/
|
|
94
|
+
name: pulumi.Input<string>;
|
|
95
|
+
/**
|
|
96
|
+
* The namespace to lookup the auth method.
|
|
97
|
+
*/
|
|
98
|
+
namespace?: pulumi.Input<string>;
|
|
99
|
+
}
|
package/getAclAuthMethod.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
3
|
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.getAclAuthMethodOutput = exports.getAclAuthMethod = void 0;
|
|
5
6
|
const pulumi = require("@pulumi/pulumi");
|
|
6
7
|
const utilities = require("./utilities");
|
|
7
8
|
/**
|
|
@@ -33,4 +34,8 @@ function getAclAuthMethod(args, opts) {
|
|
|
33
34
|
}, opts);
|
|
34
35
|
}
|
|
35
36
|
exports.getAclAuthMethod = getAclAuthMethod;
|
|
37
|
+
function getAclAuthMethodOutput(args, opts) {
|
|
38
|
+
return pulumi.output(args).apply(a => getAclAuthMethod(a, opts));
|
|
39
|
+
}
|
|
40
|
+
exports.getAclAuthMethodOutput = getAclAuthMethodOutput;
|
|
36
41
|
//# sourceMappingURL=getAclAuthMethod.js.map
|
package/getAclAuthMethod.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getAclAuthMethod.js","sourceRoot":"","sources":["../getAclAuthMethod.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF
|
|
1
|
+
{"version":3,"file":"getAclAuthMethod.js","sourceRoot":"","sources":["../getAclAuthMethod.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;GAeG;AACH,SAAgB,gBAAgB,CAAC,IAA0B,EAAE,IAA2B;IACpF,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;QACf,IAAI,CAAC,OAAO,GAAG,SAAS,CAAC,UAAU,EAAE,CAAC;KACzC;IACD,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,gDAAgD,EAAE;QAC3E,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,WAAW,EAAE,IAAI,CAAC,SAAS;KAC9B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAZD,4CAYC;AAoED,SAAgB,sBAAsB,CAAC,IAAgC,EAAE,IAA2B;IAChG,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,gBAAgB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACpE,CAAC;AAFD,wDAEC"}
|
package/getAclPolicy.d.ts
CHANGED
|
@@ -64,3 +64,29 @@ export interface GetAclPolicyResult {
|
|
|
64
64
|
*/
|
|
65
65
|
readonly rules?: string;
|
|
66
66
|
}
|
|
67
|
+
export declare function getAclPolicyOutput(args: GetAclPolicyOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetAclPolicyResult>;
|
|
68
|
+
/**
|
|
69
|
+
* A collection of arguments for invoking getAclPolicy.
|
|
70
|
+
*/
|
|
71
|
+
export interface GetAclPolicyOutputArgs {
|
|
72
|
+
/**
|
|
73
|
+
* The datacenters associated with the ACL Policy.
|
|
74
|
+
*/
|
|
75
|
+
datacenters?: pulumi.Input<pulumi.Input<string>[]>;
|
|
76
|
+
/**
|
|
77
|
+
* The description of the ACL Policy.
|
|
78
|
+
*/
|
|
79
|
+
description?: pulumi.Input<string>;
|
|
80
|
+
/**
|
|
81
|
+
* The name of the ACL Policy.
|
|
82
|
+
*/
|
|
83
|
+
name: pulumi.Input<string>;
|
|
84
|
+
/**
|
|
85
|
+
* The namespace to lookup the policy.
|
|
86
|
+
*/
|
|
87
|
+
namespace?: pulumi.Input<string>;
|
|
88
|
+
/**
|
|
89
|
+
* The rules associated with the ACL Policy.
|
|
90
|
+
*/
|
|
91
|
+
rules?: pulumi.Input<string>;
|
|
92
|
+
}
|
package/getAclPolicy.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
3
|
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.getAclPolicyOutput = exports.getAclPolicy = void 0;
|
|
5
6
|
const pulumi = require("@pulumi/pulumi");
|
|
6
7
|
const utilities = require("./utilities");
|
|
7
8
|
/**
|
|
@@ -36,4 +37,8 @@ function getAclPolicy(args, opts) {
|
|
|
36
37
|
}, opts);
|
|
37
38
|
}
|
|
38
39
|
exports.getAclPolicy = getAclPolicy;
|
|
40
|
+
function getAclPolicyOutput(args, opts) {
|
|
41
|
+
return pulumi.output(args).apply(a => getAclPolicy(a, opts));
|
|
42
|
+
}
|
|
43
|
+
exports.getAclPolicyOutput = getAclPolicyOutput;
|
|
39
44
|
//# sourceMappingURL=getAclPolicy.js.map
|
package/getAclPolicy.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getAclPolicy.js","sourceRoot":"","sources":["../getAclPolicy.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF
|
|
1
|
+
{"version":3,"file":"getAclPolicy.js","sourceRoot":"","sources":["../getAclPolicy.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;GAeG;AACH,SAAgB,YAAY,CAAC,IAAsB,EAAE,IAA2B;IAC5E,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;QACf,IAAI,CAAC,OAAO,GAAG,SAAS,CAAC,UAAU,EAAE,CAAC;KACzC;IACD,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,wCAAwC,EAAE;QACnE,aAAa,EAAE,IAAI,CAAC,WAAW;QAC/B,aAAa,EAAE,IAAI,CAAC,WAAW;QAC/B,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,OAAO,EAAE,IAAI,CAAC,KAAK;KACtB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAfD,oCAeC;AAoDD,SAAgB,kBAAkB,CAAC,IAA4B,EAAE,IAA2B;IACxF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,YAAY,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAChE,CAAC;AAFD,gDAEC"}
|
package/getAclRole.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
-
import {
|
|
2
|
+
import { output as outputs } from "./types";
|
|
3
3
|
/**
|
|
4
4
|
* The `consul.AclRole` data source returns the information related to a
|
|
5
5
|
* [Consul ACL Role](https://www.consul.io/api/acl/roles.html).
|
|
@@ -21,10 +21,6 @@ export declare function getAclRole(args: GetAclRoleArgs, opts?: pulumi.InvokeOpt
|
|
|
21
21
|
* A collection of arguments for invoking getAclRole.
|
|
22
22
|
*/
|
|
23
23
|
export interface GetAclRoleArgs {
|
|
24
|
-
/**
|
|
25
|
-
* The description of the ACL Role.
|
|
26
|
-
*/
|
|
27
|
-
description?: string;
|
|
28
24
|
/**
|
|
29
25
|
* The name of the ACL Role.
|
|
30
26
|
*/
|
|
@@ -33,16 +29,6 @@ export interface GetAclRoleArgs {
|
|
|
33
29
|
* The namespace to lookup the role.
|
|
34
30
|
*/
|
|
35
31
|
namespace?: string;
|
|
36
|
-
/**
|
|
37
|
-
* The list of policies associated with the ACL Role. Each entry has
|
|
38
|
-
* an `id` and a `name` attribute.
|
|
39
|
-
*/
|
|
40
|
-
policies?: inputs.GetAclRolePolicy[];
|
|
41
|
-
/**
|
|
42
|
-
* The list of service identities associated with the ACL
|
|
43
|
-
* Role. Each entry has a `serviceName` attribute and a list of `datacenters`.
|
|
44
|
-
*/
|
|
45
|
-
serviceIdentities?: inputs.GetAclRoleServiceIdentity[];
|
|
46
32
|
}
|
|
47
33
|
/**
|
|
48
34
|
* A collection of values returned by getAclRole.
|
|
@@ -51,21 +37,43 @@ export interface GetAclRoleResult {
|
|
|
51
37
|
/**
|
|
52
38
|
* The description of the ACL Role.
|
|
53
39
|
*/
|
|
54
|
-
readonly description
|
|
40
|
+
readonly description: string;
|
|
55
41
|
/**
|
|
56
42
|
* The provider-assigned unique ID for this managed resource.
|
|
57
43
|
*/
|
|
58
44
|
readonly id: string;
|
|
45
|
+
/**
|
|
46
|
+
* The name of the ACL Role.
|
|
47
|
+
*/
|
|
59
48
|
readonly name: string;
|
|
49
|
+
/**
|
|
50
|
+
* The namespace to lookup the role.
|
|
51
|
+
*/
|
|
60
52
|
readonly namespace?: string;
|
|
61
53
|
/**
|
|
62
|
-
* The list of
|
|
63
|
-
* an `id` and a `name` attribute.
|
|
54
|
+
* The list of node identities associated with the ACL Role. Each entry has a `nodeName` and a `datacenter` attributes.
|
|
64
55
|
*/
|
|
65
|
-
readonly
|
|
56
|
+
readonly nodeIdentities: outputs.GetAclRoleNodeIdentity[];
|
|
66
57
|
/**
|
|
67
|
-
* The list of
|
|
68
|
-
|
|
58
|
+
* The list of policies associated with the ACL Role. Each entry has an `id` and a `name` attribute.
|
|
59
|
+
*/
|
|
60
|
+
readonly policies: outputs.GetAclRolePolicy[];
|
|
61
|
+
/**
|
|
62
|
+
* The list of service identities associated with the ACL Role. Each entry has a `serviceName` attribute and a list of `datacenters`.
|
|
63
|
+
*/
|
|
64
|
+
readonly serviceIdentities: outputs.GetAclRoleServiceIdentity[];
|
|
65
|
+
}
|
|
66
|
+
export declare function getAclRoleOutput(args: GetAclRoleOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetAclRoleResult>;
|
|
67
|
+
/**
|
|
68
|
+
* A collection of arguments for invoking getAclRole.
|
|
69
|
+
*/
|
|
70
|
+
export interface GetAclRoleOutputArgs {
|
|
71
|
+
/**
|
|
72
|
+
* The name of the ACL Role.
|
|
73
|
+
*/
|
|
74
|
+
name: pulumi.Input<string>;
|
|
75
|
+
/**
|
|
76
|
+
* The namespace to lookup the role.
|
|
69
77
|
*/
|
|
70
|
-
|
|
78
|
+
namespace?: pulumi.Input<string>;
|
|
71
79
|
}
|
package/getAclRole.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
3
|
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.getAclRoleOutput = exports.getAclRole = void 0;
|
|
5
6
|
const pulumi = require("@pulumi/pulumi");
|
|
6
7
|
const utilities = require("./utilities");
|
|
7
8
|
/**
|
|
@@ -28,12 +29,13 @@ function getAclRole(args, opts) {
|
|
|
28
29
|
opts.version = utilities.getVersion();
|
|
29
30
|
}
|
|
30
31
|
return pulumi.runtime.invoke("consul:index/getAclRole:getAclRole", {
|
|
31
|
-
"description": args.description,
|
|
32
32
|
"name": args.name,
|
|
33
33
|
"namespace": args.namespace,
|
|
34
|
-
"policies": args.policies,
|
|
35
|
-
"serviceIdentities": args.serviceIdentities,
|
|
36
34
|
}, opts);
|
|
37
35
|
}
|
|
38
36
|
exports.getAclRole = getAclRole;
|
|
37
|
+
function getAclRoleOutput(args, opts) {
|
|
38
|
+
return pulumi.output(args).apply(a => getAclRole(a, opts));
|
|
39
|
+
}
|
|
40
|
+
exports.getAclRoleOutput = getAclRoleOutput;
|
|
39
41
|
//# sourceMappingURL=getAclRole.js.map
|
package/getAclRole.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getAclRole.js","sourceRoot":"","sources":["../getAclRole.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF
|
|
1
|
+
{"version":3,"file":"getAclRole.js","sourceRoot":"","sources":["../getAclRole.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;GAeG;AACH,SAAgB,UAAU,CAAC,IAAoB,EAAE,IAA2B;IACxE,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;QACf,IAAI,CAAC,OAAO,GAAG,SAAS,CAAC,UAAU,EAAE,CAAC;KACzC;IACD,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,oCAAoC,EAAE;QAC/D,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,WAAW,EAAE,IAAI,CAAC,SAAS;KAC9B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAZD,gCAYC;AAkDD,SAAgB,gBAAgB,CAAC,IAA0B,EAAE,IAA2B;IACpF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC9D,CAAC;AAFD,4CAEC"}
|