@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/README.md
CHANGED
package/aclAuthMethod.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.AclAuthMethod = void 0;
|
|
5
6
|
const pulumi = require("@pulumi/pulumi");
|
|
6
7
|
const utilities = require("./utilities");
|
|
7
8
|
/**
|
|
@@ -48,41 +49,41 @@ const utilities = require("./utilities");
|
|
|
48
49
|
*/
|
|
49
50
|
class AclAuthMethod extends pulumi.CustomResource {
|
|
50
51
|
constructor(name, argsOrState, opts) {
|
|
51
|
-
let
|
|
52
|
+
let resourceInputs = {};
|
|
52
53
|
opts = opts || {};
|
|
53
54
|
if (opts.id) {
|
|
54
55
|
const state = argsOrState;
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
56
|
+
resourceInputs["config"] = state ? state.config : undefined;
|
|
57
|
+
resourceInputs["configJson"] = state ? state.configJson : undefined;
|
|
58
|
+
resourceInputs["description"] = state ? state.description : undefined;
|
|
59
|
+
resourceInputs["displayName"] = state ? state.displayName : undefined;
|
|
60
|
+
resourceInputs["maxTokenTtl"] = state ? state.maxTokenTtl : undefined;
|
|
61
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
62
|
+
resourceInputs["namespace"] = state ? state.namespace : undefined;
|
|
63
|
+
resourceInputs["namespaceRules"] = state ? state.namespaceRules : undefined;
|
|
64
|
+
resourceInputs["tokenLocality"] = state ? state.tokenLocality : undefined;
|
|
65
|
+
resourceInputs["type"] = state ? state.type : undefined;
|
|
65
66
|
}
|
|
66
67
|
else {
|
|
67
68
|
const args = argsOrState;
|
|
68
69
|
if ((!args || args.type === undefined) && !opts.urn) {
|
|
69
70
|
throw new Error("Missing required property 'type'");
|
|
70
71
|
}
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
72
|
+
resourceInputs["config"] = args ? args.config : undefined;
|
|
73
|
+
resourceInputs["configJson"] = args ? args.configJson : undefined;
|
|
74
|
+
resourceInputs["description"] = args ? args.description : undefined;
|
|
75
|
+
resourceInputs["displayName"] = args ? args.displayName : undefined;
|
|
76
|
+
resourceInputs["maxTokenTtl"] = args ? args.maxTokenTtl : undefined;
|
|
77
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
78
|
+
resourceInputs["namespace"] = args ? args.namespace : undefined;
|
|
79
|
+
resourceInputs["namespaceRules"] = args ? args.namespaceRules : undefined;
|
|
80
|
+
resourceInputs["tokenLocality"] = args ? args.tokenLocality : undefined;
|
|
81
|
+
resourceInputs["type"] = args ? args.type : undefined;
|
|
81
82
|
}
|
|
82
83
|
if (!opts.version) {
|
|
83
84
|
opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
|
|
84
85
|
}
|
|
85
|
-
super(AclAuthMethod.__pulumiType, name,
|
|
86
|
+
super(AclAuthMethod.__pulumiType, name, resourceInputs, opts);
|
|
86
87
|
}
|
|
87
88
|
/**
|
|
88
89
|
* Get an existing AclAuthMethod resource's state with the given name, ID, and optional extra
|
package/aclAuthMethod.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aclAuthMethod.js","sourceRoot":"","sources":["../aclAuthMethod.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF
|
|
1
|
+
{"version":3,"file":"aclAuthMethod.js","sourceRoot":"","sources":["../aclAuthMethod.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,MAAa,aAAc,SAAQ,MAAM,CAAC,cAAc;IAqFpD,YAAY,IAAY,EAAE,WAAoD,EAAE,IAAmC;QAC/G,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA6C,CAAC;YAC5D,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACtE,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACtE,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACtE,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YAC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0BAAY,GAAG,0CAA0C,CAAC"}
|
package/aclBindingRule.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.AclBindingRule = void 0;
|
|
5
6
|
const pulumi = require("@pulumi/pulumi");
|
|
6
7
|
const utilities = require("./utilities");
|
|
7
8
|
/**
|
|
@@ -36,16 +37,16 @@ const utilities = require("./utilities");
|
|
|
36
37
|
*/
|
|
37
38
|
class AclBindingRule extends pulumi.CustomResource {
|
|
38
39
|
constructor(name, argsOrState, opts) {
|
|
39
|
-
let
|
|
40
|
+
let resourceInputs = {};
|
|
40
41
|
opts = opts || {};
|
|
41
42
|
if (opts.id) {
|
|
42
43
|
const state = argsOrState;
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
44
|
+
resourceInputs["authMethod"] = state ? state.authMethod : undefined;
|
|
45
|
+
resourceInputs["bindName"] = state ? state.bindName : undefined;
|
|
46
|
+
resourceInputs["bindType"] = state ? state.bindType : undefined;
|
|
47
|
+
resourceInputs["description"] = state ? state.description : undefined;
|
|
48
|
+
resourceInputs["namespace"] = state ? state.namespace : undefined;
|
|
49
|
+
resourceInputs["selector"] = state ? state.selector : undefined;
|
|
49
50
|
}
|
|
50
51
|
else {
|
|
51
52
|
const args = argsOrState;
|
|
@@ -58,17 +59,17 @@ class AclBindingRule extends pulumi.CustomResource {
|
|
|
58
59
|
if ((!args || args.bindType === undefined) && !opts.urn) {
|
|
59
60
|
throw new Error("Missing required property 'bindType'");
|
|
60
61
|
}
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
62
|
+
resourceInputs["authMethod"] = args ? args.authMethod : undefined;
|
|
63
|
+
resourceInputs["bindName"] = args ? args.bindName : undefined;
|
|
64
|
+
resourceInputs["bindType"] = args ? args.bindType : undefined;
|
|
65
|
+
resourceInputs["description"] = args ? args.description : undefined;
|
|
66
|
+
resourceInputs["namespace"] = args ? args.namespace : undefined;
|
|
67
|
+
resourceInputs["selector"] = args ? args.selector : undefined;
|
|
67
68
|
}
|
|
68
69
|
if (!opts.version) {
|
|
69
70
|
opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
|
|
70
71
|
}
|
|
71
|
-
super(AclBindingRule.__pulumiType, name,
|
|
72
|
+
super(AclBindingRule.__pulumiType, name, resourceInputs, opts);
|
|
72
73
|
}
|
|
73
74
|
/**
|
|
74
75
|
* Get an existing AclBindingRule resource's state with the given name, ID, and optional extra
|
package/aclBindingRule.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aclBindingRule.js","sourceRoot":"","sources":["../aclBindingRule.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF
|
|
1
|
+
{"version":3,"file":"aclBindingRule.js","sourceRoot":"","sources":["../aclBindingRule.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,MAAa,cAAe,SAAQ,MAAM,CAAC,cAAc;IAiErD,YAAY,IAAY,EAAE,WAAsD,EAAE,IAAmC;QACjH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA8C,CAAC;YAC7D,cAAc,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,UAAU,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC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GED
|
@@ -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.AclPolicy = void 0;
|
|
5
6
|
const pulumi = require("@pulumi/pulumi");
|
|
6
7
|
const utilities = require("./utilities");
|
|
7
8
|
/**
|
|
@@ -32,31 +33,31 @@ const utilities = require("./utilities");
|
|
|
32
33
|
*/
|
|
33
34
|
class AclPolicy extends pulumi.CustomResource {
|
|
34
35
|
constructor(name, argsOrState, opts) {
|
|
35
|
-
let
|
|
36
|
+
let resourceInputs = {};
|
|
36
37
|
opts = opts || {};
|
|
37
38
|
if (opts.id) {
|
|
38
39
|
const state = argsOrState;
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
40
|
+
resourceInputs["datacenters"] = state ? state.datacenters : undefined;
|
|
41
|
+
resourceInputs["description"] = state ? state.description : undefined;
|
|
42
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
43
|
+
resourceInputs["namespace"] = state ? state.namespace : undefined;
|
|
44
|
+
resourceInputs["rules"] = state ? state.rules : undefined;
|
|
44
45
|
}
|
|
45
46
|
else {
|
|
46
47
|
const args = argsOrState;
|
|
47
48
|
if ((!args || args.rules === undefined) && !opts.urn) {
|
|
48
49
|
throw new Error("Missing required property 'rules'");
|
|
49
50
|
}
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
51
|
+
resourceInputs["datacenters"] = args ? args.datacenters : undefined;
|
|
52
|
+
resourceInputs["description"] = args ? args.description : undefined;
|
|
53
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
54
|
+
resourceInputs["namespace"] = args ? args.namespace : undefined;
|
|
55
|
+
resourceInputs["rules"] = args ? args.rules : undefined;
|
|
55
56
|
}
|
|
56
57
|
if (!opts.version) {
|
|
57
58
|
opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
|
|
58
59
|
}
|
|
59
|
-
super(AclPolicy.__pulumiType, name,
|
|
60
|
+
super(AclPolicy.__pulumiType, name, resourceInputs, opts);
|
|
60
61
|
}
|
|
61
62
|
/**
|
|
62
63
|
* Get an existing AclPolicy resource's state with the given name, ID, and optional extra
|
package/aclPolicy.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aclPolicy.js","sourceRoot":"","sources":["../aclPolicy.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF
|
|
1
|
+
{"version":3,"file":"aclPolicy.js","sourceRoot":"","sources":["../aclPolicy.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAa,SAAU,SAAQ,MAAM,CAAC,cAAc;IAyDhD,YAAY,IAAY,EAAE,WAA4C,EAAE,IAAmC;QACvG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAyC,CAAC;YACxD,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACtE,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACtE,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,CAA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AAE,IAAmC;QACpH,OAAO,IAAI,SAAS,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAChE,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,SAAS,CAAC,YAAY,CAAC;IAC1D,CAAC;;AA1BL,8BAmFC;AArEG,gBAAgB;AACO,sBAAY,GAAG,kCAAkC,CAAC"}
|
package/aclRole.d.ts
CHANGED
|
@@ -58,13 +58,16 @@ export declare class AclRole extends pulumi.CustomResource {
|
|
|
58
58
|
* The namespace to create the role within.
|
|
59
59
|
*/
|
|
60
60
|
readonly namespace: pulumi.Output<string | undefined>;
|
|
61
|
+
/**
|
|
62
|
+
* The list of node identities that should be applied to the role.
|
|
63
|
+
*/
|
|
64
|
+
readonly nodeIdentities: pulumi.Output<outputs.AclRoleNodeIdentity[] | undefined>;
|
|
61
65
|
/**
|
|
62
66
|
* The list of policies that should be applied to the role.
|
|
63
67
|
*/
|
|
64
68
|
readonly policies: pulumi.Output<string[] | undefined>;
|
|
65
69
|
/**
|
|
66
|
-
* The list of service identities that should
|
|
67
|
-
* be applied to the role.
|
|
70
|
+
* The list of service identities that should be applied to the role.
|
|
68
71
|
*/
|
|
69
72
|
readonly serviceIdentities: pulumi.Output<outputs.AclRoleServiceIdentity[] | undefined>;
|
|
70
73
|
/**
|
|
@@ -92,13 +95,16 @@ export interface AclRoleState {
|
|
|
92
95
|
* The namespace to create the role within.
|
|
93
96
|
*/
|
|
94
97
|
namespace?: pulumi.Input<string>;
|
|
98
|
+
/**
|
|
99
|
+
* The list of node identities that should be applied to the role.
|
|
100
|
+
*/
|
|
101
|
+
nodeIdentities?: pulumi.Input<pulumi.Input<inputs.AclRoleNodeIdentity>[]>;
|
|
95
102
|
/**
|
|
96
103
|
* The list of policies that should be applied to the role.
|
|
97
104
|
*/
|
|
98
105
|
policies?: pulumi.Input<pulumi.Input<string>[]>;
|
|
99
106
|
/**
|
|
100
|
-
* The list of service identities that should
|
|
101
|
-
* be applied to the role.
|
|
107
|
+
* The list of service identities that should be applied to the role.
|
|
102
108
|
*/
|
|
103
109
|
serviceIdentities?: pulumi.Input<pulumi.Input<inputs.AclRoleServiceIdentity>[]>;
|
|
104
110
|
}
|
|
@@ -118,13 +124,16 @@ export interface AclRoleArgs {
|
|
|
118
124
|
* The namespace to create the role within.
|
|
119
125
|
*/
|
|
120
126
|
namespace?: pulumi.Input<string>;
|
|
127
|
+
/**
|
|
128
|
+
* The list of node identities that should be applied to the role.
|
|
129
|
+
*/
|
|
130
|
+
nodeIdentities?: pulumi.Input<pulumi.Input<inputs.AclRoleNodeIdentity>[]>;
|
|
121
131
|
/**
|
|
122
132
|
* The list of policies that should be applied to the role.
|
|
123
133
|
*/
|
|
124
134
|
policies?: pulumi.Input<pulumi.Input<string>[]>;
|
|
125
135
|
/**
|
|
126
|
-
* The list of service identities that should
|
|
127
|
-
* be applied to the role.
|
|
136
|
+
* The list of service identities that should be applied to the role.
|
|
128
137
|
*/
|
|
129
138
|
serviceIdentities?: pulumi.Input<pulumi.Input<inputs.AclRoleServiceIdentity>[]>;
|
|
130
139
|
}
|
package/aclRole.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.AclRole = void 0;
|
|
5
6
|
const pulumi = require("@pulumi/pulumi");
|
|
6
7
|
const utilities = require("./utilities");
|
|
7
8
|
/**
|
|
@@ -36,28 +37,30 @@ const utilities = require("./utilities");
|
|
|
36
37
|
*/
|
|
37
38
|
class AclRole extends pulumi.CustomResource {
|
|
38
39
|
constructor(name, argsOrState, opts) {
|
|
39
|
-
let
|
|
40
|
+
let resourceInputs = {};
|
|
40
41
|
opts = opts || {};
|
|
41
42
|
if (opts.id) {
|
|
42
43
|
const state = argsOrState;
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
44
|
+
resourceInputs["description"] = state ? state.description : undefined;
|
|
45
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
46
|
+
resourceInputs["namespace"] = state ? state.namespace : undefined;
|
|
47
|
+
resourceInputs["nodeIdentities"] = state ? state.nodeIdentities : undefined;
|
|
48
|
+
resourceInputs["policies"] = state ? state.policies : undefined;
|
|
49
|
+
resourceInputs["serviceIdentities"] = state ? state.serviceIdentities : undefined;
|
|
48
50
|
}
|
|
49
51
|
else {
|
|
50
52
|
const args = argsOrState;
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
53
|
+
resourceInputs["description"] = args ? args.description : undefined;
|
|
54
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
55
|
+
resourceInputs["namespace"] = args ? args.namespace : undefined;
|
|
56
|
+
resourceInputs["nodeIdentities"] = args ? args.nodeIdentities : undefined;
|
|
57
|
+
resourceInputs["policies"] = args ? args.policies : undefined;
|
|
58
|
+
resourceInputs["serviceIdentities"] = args ? args.serviceIdentities : undefined;
|
|
56
59
|
}
|
|
57
60
|
if (!opts.version) {
|
|
58
61
|
opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
|
|
59
62
|
}
|
|
60
|
-
super(AclRole.__pulumiType, name,
|
|
63
|
+
super(AclRole.__pulumiType, name, resourceInputs, opts);
|
|
61
64
|
}
|
|
62
65
|
/**
|
|
63
66
|
* Get an existing AclRole resource's state with the given name, ID, and optional extra
|
package/aclRole.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aclRole.js","sourceRoot":"","sources":["../aclRole.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AG,CAAC,cAAc,CAAC,KAAK,OAAO,CAAC,YAAY,CAAC;IACxD,CAAC;;AA1BL,0BAsFC;AAxEG,gBAAgB;AACO,oBAAY,GAAG,8BAA8B,CAAC"}
|
package/aclToken.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import { input as inputs, output as outputs } from "./types";
|
|
2
3
|
/**
|
|
3
4
|
* The `consul.AclToken` resource writes an ACL token into Consul.
|
|
4
5
|
*
|
|
@@ -59,6 +60,10 @@ export declare class AclToken extends pulumi.CustomResource {
|
|
|
59
60
|
* The description of the token.
|
|
60
61
|
*/
|
|
61
62
|
readonly description: pulumi.Output<string | undefined>;
|
|
63
|
+
/**
|
|
64
|
+
* If set this represents the point after which a token should be considered revoked and is eligible for destruction.
|
|
65
|
+
*/
|
|
66
|
+
readonly expirationTime: pulumi.Output<string | undefined>;
|
|
62
67
|
/**
|
|
63
68
|
* The flag to set the token local to the current datacenter.
|
|
64
69
|
*/
|
|
@@ -67,6 +72,10 @@ export declare class AclToken extends pulumi.CustomResource {
|
|
|
67
72
|
* The namespace to create the token within.
|
|
68
73
|
*/
|
|
69
74
|
readonly namespace: pulumi.Output<string | undefined>;
|
|
75
|
+
/**
|
|
76
|
+
* The list of node identities that should be applied to the token.
|
|
77
|
+
*/
|
|
78
|
+
readonly nodeIdentities: pulumi.Output<outputs.AclTokenNodeIdentity[] | undefined>;
|
|
70
79
|
/**
|
|
71
80
|
* The list of policies attached to the token.
|
|
72
81
|
*/
|
|
@@ -75,6 +84,10 @@ export declare class AclToken extends pulumi.CustomResource {
|
|
|
75
84
|
* The list of roles attached to the token.
|
|
76
85
|
*/
|
|
77
86
|
readonly roles: pulumi.Output<string[] | undefined>;
|
|
87
|
+
/**
|
|
88
|
+
* The list of service identities that should be applied to the token.
|
|
89
|
+
*/
|
|
90
|
+
readonly serviceIdentities: pulumi.Output<outputs.AclTokenServiceIdentity[] | undefined>;
|
|
78
91
|
/**
|
|
79
92
|
* Create a AclToken resource with the given unique name, arguments, and options.
|
|
80
93
|
*
|
|
@@ -97,6 +110,10 @@ export interface AclTokenState {
|
|
|
97
110
|
* The description of the token.
|
|
98
111
|
*/
|
|
99
112
|
description?: pulumi.Input<string>;
|
|
113
|
+
/**
|
|
114
|
+
* If set this represents the point after which a token should be considered revoked and is eligible for destruction.
|
|
115
|
+
*/
|
|
116
|
+
expirationTime?: pulumi.Input<string>;
|
|
100
117
|
/**
|
|
101
118
|
* The flag to set the token local to the current datacenter.
|
|
102
119
|
*/
|
|
@@ -105,6 +122,10 @@ export interface AclTokenState {
|
|
|
105
122
|
* The namespace to create the token within.
|
|
106
123
|
*/
|
|
107
124
|
namespace?: pulumi.Input<string>;
|
|
125
|
+
/**
|
|
126
|
+
* The list of node identities that should be applied to the token.
|
|
127
|
+
*/
|
|
128
|
+
nodeIdentities?: pulumi.Input<pulumi.Input<inputs.AclTokenNodeIdentity>[]>;
|
|
108
129
|
/**
|
|
109
130
|
* The list of policies attached to the token.
|
|
110
131
|
*/
|
|
@@ -113,6 +134,10 @@ export interface AclTokenState {
|
|
|
113
134
|
* The list of roles attached to the token.
|
|
114
135
|
*/
|
|
115
136
|
roles?: pulumi.Input<pulumi.Input<string>[]>;
|
|
137
|
+
/**
|
|
138
|
+
* The list of service identities that should be applied to the token.
|
|
139
|
+
*/
|
|
140
|
+
serviceIdentities?: pulumi.Input<pulumi.Input<inputs.AclTokenServiceIdentity>[]>;
|
|
116
141
|
}
|
|
117
142
|
/**
|
|
118
143
|
* The set of arguments for constructing a AclToken resource.
|
|
@@ -127,6 +152,10 @@ export interface AclTokenArgs {
|
|
|
127
152
|
* The description of the token.
|
|
128
153
|
*/
|
|
129
154
|
description?: pulumi.Input<string>;
|
|
155
|
+
/**
|
|
156
|
+
* If set this represents the point after which a token should be considered revoked and is eligible for destruction.
|
|
157
|
+
*/
|
|
158
|
+
expirationTime?: pulumi.Input<string>;
|
|
130
159
|
/**
|
|
131
160
|
* The flag to set the token local to the current datacenter.
|
|
132
161
|
*/
|
|
@@ -135,6 +164,10 @@ export interface AclTokenArgs {
|
|
|
135
164
|
* The namespace to create the token within.
|
|
136
165
|
*/
|
|
137
166
|
namespace?: pulumi.Input<string>;
|
|
167
|
+
/**
|
|
168
|
+
* The list of node identities that should be applied to the token.
|
|
169
|
+
*/
|
|
170
|
+
nodeIdentities?: pulumi.Input<pulumi.Input<inputs.AclTokenNodeIdentity>[]>;
|
|
138
171
|
/**
|
|
139
172
|
* The list of policies attached to the token.
|
|
140
173
|
*/
|
|
@@ -143,4 +176,8 @@ export interface AclTokenArgs {
|
|
|
143
176
|
* The list of roles attached to the token.
|
|
144
177
|
*/
|
|
145
178
|
roles?: pulumi.Input<pulumi.Input<string>[]>;
|
|
179
|
+
/**
|
|
180
|
+
* The list of service identities that should be applied to the token.
|
|
181
|
+
*/
|
|
182
|
+
serviceIdentities?: pulumi.Input<pulumi.Input<inputs.AclTokenServiceIdentity>[]>;
|
|
146
183
|
}
|
package/aclToken.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.AclToken = void 0;
|
|
5
6
|
const pulumi = require("@pulumi/pulumi");
|
|
6
7
|
const utilities = require("./utilities");
|
|
7
8
|
/**
|
|
@@ -41,30 +42,36 @@ const utilities = require("./utilities");
|
|
|
41
42
|
*/
|
|
42
43
|
class AclToken extends pulumi.CustomResource {
|
|
43
44
|
constructor(name, argsOrState, opts) {
|
|
44
|
-
let
|
|
45
|
+
let resourceInputs = {};
|
|
45
46
|
opts = opts || {};
|
|
46
47
|
if (opts.id) {
|
|
47
48
|
const state = argsOrState;
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
49
|
+
resourceInputs["accessorId"] = state ? state.accessorId : undefined;
|
|
50
|
+
resourceInputs["description"] = state ? state.description : undefined;
|
|
51
|
+
resourceInputs["expirationTime"] = state ? state.expirationTime : undefined;
|
|
52
|
+
resourceInputs["local"] = state ? state.local : undefined;
|
|
53
|
+
resourceInputs["namespace"] = state ? state.namespace : undefined;
|
|
54
|
+
resourceInputs["nodeIdentities"] = state ? state.nodeIdentities : undefined;
|
|
55
|
+
resourceInputs["policies"] = state ? state.policies : undefined;
|
|
56
|
+
resourceInputs["roles"] = state ? state.roles : undefined;
|
|
57
|
+
resourceInputs["serviceIdentities"] = state ? state.serviceIdentities : undefined;
|
|
54
58
|
}
|
|
55
59
|
else {
|
|
56
60
|
const args = argsOrState;
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
61
|
+
resourceInputs["accessorId"] = args ? args.accessorId : undefined;
|
|
62
|
+
resourceInputs["description"] = args ? args.description : undefined;
|
|
63
|
+
resourceInputs["expirationTime"] = args ? args.expirationTime : undefined;
|
|
64
|
+
resourceInputs["local"] = args ? args.local : undefined;
|
|
65
|
+
resourceInputs["namespace"] = args ? args.namespace : undefined;
|
|
66
|
+
resourceInputs["nodeIdentities"] = args ? args.nodeIdentities : undefined;
|
|
67
|
+
resourceInputs["policies"] = args ? args.policies : undefined;
|
|
68
|
+
resourceInputs["roles"] = args ? args.roles : undefined;
|
|
69
|
+
resourceInputs["serviceIdentities"] = args ? args.serviceIdentities : undefined;
|
|
63
70
|
}
|
|
64
71
|
if (!opts.version) {
|
|
65
72
|
opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
|
|
66
73
|
}
|
|
67
|
-
super(AclToken.__pulumiType, name,
|
|
74
|
+
super(AclToken.__pulumiType, name, resourceInputs, opts);
|
|
68
75
|
}
|
|
69
76
|
/**
|
|
70
77
|
* Get an existing AclToken resource's state with the given name, ID, and optional extra
|
package/aclToken.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aclToken.js","sourceRoot":"","sources":["../aclToken.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF
|
|
1
|
+
{"version":3,"file":"aclToken.js","sourceRoot":"","sources":["../aclToken.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,cAAc;IA0E/C,YAAY,IAAY,EAAE,WAA0C,EAAE,IAAmC;QACrG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAwC,CAAC;YACvD,cAAc,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACtE,cAAc,CAAC,gBAAgB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5E,cAAc,CAAC,OAAO,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,gBAAgB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5E,cAAc,CAAC,UA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AC;YACxD,cAAc,CAAC,mBAAmB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC,CAAC,SAAS,CAAC;SACnF;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,QAAQ,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC7D,CAAC;IAvGD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAqB,EAAE,IAAmC;QACnH,OAAO,IAAI,QAAQ,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC/D,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,QAAQ,CAAC,YAAY,CAAC;IACzD,CAAC;;AA1BL,4BAyGC;AA3FG,gBAAgB;AACO,qBAAY,GAAG,gCAAgC,CAAC"}
|
|
@@ -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.AclTokenPolicyAttachment = void 0;
|
|
5
6
|
const pulumi = require("@pulumi/pulumi");
|
|
6
7
|
const utilities = require("./utilities");
|
|
7
8
|
/**
|
|
@@ -19,12 +20,12 @@ const utilities = require("./utilities");
|
|
|
19
20
|
*/
|
|
20
21
|
class AclTokenPolicyAttachment extends pulumi.CustomResource {
|
|
21
22
|
constructor(name, argsOrState, opts) {
|
|
22
|
-
let
|
|
23
|
+
let resourceInputs = {};
|
|
23
24
|
opts = opts || {};
|
|
24
25
|
if (opts.id) {
|
|
25
26
|
const state = argsOrState;
|
|
26
|
-
|
|
27
|
-
|
|
27
|
+
resourceInputs["policy"] = state ? state.policy : undefined;
|
|
28
|
+
resourceInputs["tokenId"] = state ? state.tokenId : undefined;
|
|
28
29
|
}
|
|
29
30
|
else {
|
|
30
31
|
const args = argsOrState;
|
|
@@ -34,13 +35,13 @@ class AclTokenPolicyAttachment extends pulumi.CustomResource {
|
|
|
34
35
|
if ((!args || args.tokenId === undefined) && !opts.urn) {
|
|
35
36
|
throw new Error("Missing required property 'tokenId'");
|
|
36
37
|
}
|
|
37
|
-
|
|
38
|
-
|
|
38
|
+
resourceInputs["policy"] = args ? args.policy : undefined;
|
|
39
|
+
resourceInputs["tokenId"] = args ? args.tokenId : undefined;
|
|
39
40
|
}
|
|
40
41
|
if (!opts.version) {
|
|
41
42
|
opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
|
|
42
43
|
}
|
|
43
|
-
super(AclTokenPolicyAttachment.__pulumiType, name,
|
|
44
|
+
super(AclTokenPolicyAttachment.__pulumiType, name, resourceInputs, opts);
|
|
44
45
|
}
|
|
45
46
|
/**
|
|
46
47
|
* Get an existing AclTokenPolicyAttachment resource's state with the given name, ID, and optional extra
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aclTokenPolicyAttachment.js","sourceRoot":"","sources":["../aclTokenPolicyAttachment.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF
|
|
1
|
+
{"version":3,"file":"aclTokenPolicyAttachment.js","sourceRoot":"","sources":["../aclTokenPolicyAttachment.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;GAY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