@pulumi/venafi 1.2.0-alpha.1632761760
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/LICENSE +202 -0
- package/README.md +68 -0
- package/certificate.d.ts +295 -0
- package/certificate.js +118 -0
- package/certificate.js.map +1 -0
- package/config/index.d.ts +1 -0
- package/config/index.js +10 -0
- package/config/index.js.map +1 -0
- package/config/vars.d.ts +35 -0
- package/config/vars.js +42 -0
- package/config/vars.js.map +1 -0
- package/index.d.ts +6 -0
- package/index.js +50 -0
- package/index.js.map +1 -0
- package/package.json +26 -0
- package/package.json.bak +25 -0
- package/package.json.dev +25 -0
- package/policy.d.ts +94 -0
- package/policy.js +80 -0
- package/policy.js.map +1 -0
- package/provider.d.ts +66 -0
- package/provider.js +53 -0
- package/provider.js.map +1 -0
- package/scripts/install-pulumi-plugin.js +21 -0
- package/sshCertificate.d.ts +300 -0
- package/sshCertificate.js +120 -0
- package/sshCertificate.js.map +1 -0
- package/utilities.d.ts +4 -0
- package/utilities.js +51 -0
- package/utilities.js.map +1 -0
|
@@ -0,0 +1,300 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Provides access to request and retrieve SSH certificates from *Venafi Trust Protection Platform*.
|
|
4
|
+
*
|
|
5
|
+
* ## Example Usage
|
|
6
|
+
*
|
|
7
|
+
* ```typescript
|
|
8
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
+
* import * as venafi from "@pulumi/venafi";
|
|
10
|
+
*
|
|
11
|
+
* const sshCert = new venafi.SshCertificate("ssh_cert", {
|
|
12
|
+
* keyId: "my-first-ssh-certificate",
|
|
13
|
+
* keyPassphrase: "passw0rd",
|
|
14
|
+
* keySize: 3072,
|
|
15
|
+
* principals: ["seamus"],
|
|
16
|
+
* publicKeyMethod: "local",
|
|
17
|
+
* template: "Sample SSH CA",
|
|
18
|
+
* validHours: 24,
|
|
19
|
+
* });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare class SshCertificate extends pulumi.CustomResource {
|
|
23
|
+
/**
|
|
24
|
+
* Get an existing SshCertificate resource's state with the given name, ID, and optional extra
|
|
25
|
+
* properties used to qualify the lookup.
|
|
26
|
+
*
|
|
27
|
+
* @param name The _unique_ name of the resulting resource.
|
|
28
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
29
|
+
* @param state Any extra arguments used during the lookup.
|
|
30
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
31
|
+
*/
|
|
32
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: SshCertificateState, opts?: pulumi.CustomResourceOptions): SshCertificate;
|
|
33
|
+
/**
|
|
34
|
+
* Returns true if the given object is an instance of SshCertificate. This is designed to work even
|
|
35
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
36
|
+
*/
|
|
37
|
+
static isInstance(obj: any): obj is SshCertificate;
|
|
38
|
+
/**
|
|
39
|
+
* The issued SSH certificate.
|
|
40
|
+
*/
|
|
41
|
+
readonly certificate: pulumi.Output<string>;
|
|
42
|
+
/**
|
|
43
|
+
* Indicates whether the SSH certificate is for client or server authentication.
|
|
44
|
+
*/
|
|
45
|
+
readonly certificateType: pulumi.Output<string>;
|
|
46
|
+
/**
|
|
47
|
+
* A list of one or more valid IP or CIDR destination hosts where the certificate will authenticate.
|
|
48
|
+
*/
|
|
49
|
+
readonly destinationAddresses: pulumi.Output<string[] | undefined>;
|
|
50
|
+
/**
|
|
51
|
+
* A list of key-value pairs that contain certificate extensions from the CA template for client certificates. Allowed values (case-sensitive): *permit-X11-forwarding, permit-agent-forwarding, permit-port-forwarding, permit-pty, permit-user-rc*
|
|
52
|
+
*/
|
|
53
|
+
readonly extensions: pulumi.Output<string[] | undefined>;
|
|
54
|
+
/**
|
|
55
|
+
* The DN of the policy folder where the SSH certificate object will be created.
|
|
56
|
+
*/
|
|
57
|
+
readonly folder: pulumi.Output<string | undefined>;
|
|
58
|
+
/**
|
|
59
|
+
* A command to run after successful login.
|
|
60
|
+
*/
|
|
61
|
+
readonly forceCommand: pulumi.Output<string | undefined>;
|
|
62
|
+
/**
|
|
63
|
+
* The identifier of the requested SSH certificate.
|
|
64
|
+
*/
|
|
65
|
+
readonly keyId: pulumi.Output<string>;
|
|
66
|
+
/**
|
|
67
|
+
* Passphrase for encrypting the private key.
|
|
68
|
+
*/
|
|
69
|
+
readonly keyPassphrase: pulumi.Output<string | undefined>;
|
|
70
|
+
/**
|
|
71
|
+
* Number of bits to use when creating a key pair. (e.g. 3072)
|
|
72
|
+
*/
|
|
73
|
+
readonly keySize: pulumi.Output<number | undefined>;
|
|
74
|
+
/**
|
|
75
|
+
* The friendly name of the SSH certificate object. When not specified the `keyId` is used for the friendly name. If the object already exists the old certificate is archived and the CA issues a new certificate.
|
|
76
|
+
*/
|
|
77
|
+
readonly objectName: pulumi.Output<string | undefined>;
|
|
78
|
+
/**
|
|
79
|
+
* A list of user names for whom the requested certificate will be valid.
|
|
80
|
+
*/
|
|
81
|
+
readonly principals: pulumi.Output<string[] | undefined>;
|
|
82
|
+
/**
|
|
83
|
+
* The private key for the SSH certificate if generated by Venafi.
|
|
84
|
+
*/
|
|
85
|
+
readonly privateKey: pulumi.Output<string>;
|
|
86
|
+
/**
|
|
87
|
+
* The OpenSSH formatted public key that will be used to generate the SSH certificate.
|
|
88
|
+
*/
|
|
89
|
+
readonly publicKey: pulumi.Output<string | undefined>;
|
|
90
|
+
/**
|
|
91
|
+
* The SHA256 fingerprint of the SSH certificate's public key.
|
|
92
|
+
*/
|
|
93
|
+
readonly publicKeyFingerprint: pulumi.Output<string>;
|
|
94
|
+
/**
|
|
95
|
+
* Specifies whether the public key will be "local" (default), "file" or "service" generated.
|
|
96
|
+
*/
|
|
97
|
+
readonly publicKeyMethod: pulumi.Output<string | undefined>;
|
|
98
|
+
/**
|
|
99
|
+
* The serial number of the SSH certificate.
|
|
100
|
+
*/
|
|
101
|
+
readonly serial: pulumi.Output<string>;
|
|
102
|
+
/**
|
|
103
|
+
* The SHA256 fingerprint of the CA that signed the SSH certificate.
|
|
104
|
+
*/
|
|
105
|
+
readonly signingCa: pulumi.Output<string>;
|
|
106
|
+
/**
|
|
107
|
+
* A list of one or more valid IP or CIDR addresses that can use the SSH certificate.
|
|
108
|
+
*/
|
|
109
|
+
readonly sourceAddresses: pulumi.Output<string[] | undefined>;
|
|
110
|
+
/**
|
|
111
|
+
* The SSH certificate issuing template.
|
|
112
|
+
*/
|
|
113
|
+
readonly template: pulumi.Output<string>;
|
|
114
|
+
/**
|
|
115
|
+
* The date the SSH certificate was issued.
|
|
116
|
+
*/
|
|
117
|
+
readonly validFrom: pulumi.Output<string>;
|
|
118
|
+
/**
|
|
119
|
+
* Desired number of hours for which the certificate will be valid.
|
|
120
|
+
*/
|
|
121
|
+
readonly validHours: pulumi.Output<number | undefined>;
|
|
122
|
+
/**
|
|
123
|
+
* The date the SSH certificate will expire.
|
|
124
|
+
*/
|
|
125
|
+
readonly validTo: pulumi.Output<string>;
|
|
126
|
+
/**
|
|
127
|
+
* Specifies whether the private key will use Windows/DOS style line breaks.
|
|
128
|
+
*/
|
|
129
|
+
readonly windows: pulumi.Output<boolean | undefined>;
|
|
130
|
+
/**
|
|
131
|
+
* Create a SshCertificate resource with the given unique name, arguments, and options.
|
|
132
|
+
*
|
|
133
|
+
* @param name The _unique_ name of the resource.
|
|
134
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
135
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
136
|
+
*/
|
|
137
|
+
constructor(name: string, args: SshCertificateArgs, opts?: pulumi.CustomResourceOptions);
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* Input properties used for looking up and filtering SshCertificate resources.
|
|
141
|
+
*/
|
|
142
|
+
export interface SshCertificateState {
|
|
143
|
+
/**
|
|
144
|
+
* The issued SSH certificate.
|
|
145
|
+
*/
|
|
146
|
+
readonly certificate?: pulumi.Input<string>;
|
|
147
|
+
/**
|
|
148
|
+
* Indicates whether the SSH certificate is for client or server authentication.
|
|
149
|
+
*/
|
|
150
|
+
readonly certificateType?: pulumi.Input<string>;
|
|
151
|
+
/**
|
|
152
|
+
* A list of one or more valid IP or CIDR destination hosts where the certificate will authenticate.
|
|
153
|
+
*/
|
|
154
|
+
readonly destinationAddresses?: pulumi.Input<pulumi.Input<string>[]>;
|
|
155
|
+
/**
|
|
156
|
+
* A list of key-value pairs that contain certificate extensions from the CA template for client certificates. Allowed values (case-sensitive): *permit-X11-forwarding, permit-agent-forwarding, permit-port-forwarding, permit-pty, permit-user-rc*
|
|
157
|
+
*/
|
|
158
|
+
readonly extensions?: pulumi.Input<pulumi.Input<string>[]>;
|
|
159
|
+
/**
|
|
160
|
+
* The DN of the policy folder where the SSH certificate object will be created.
|
|
161
|
+
*/
|
|
162
|
+
readonly folder?: pulumi.Input<string>;
|
|
163
|
+
/**
|
|
164
|
+
* A command to run after successful login.
|
|
165
|
+
*/
|
|
166
|
+
readonly forceCommand?: pulumi.Input<string>;
|
|
167
|
+
/**
|
|
168
|
+
* The identifier of the requested SSH certificate.
|
|
169
|
+
*/
|
|
170
|
+
readonly keyId?: pulumi.Input<string>;
|
|
171
|
+
/**
|
|
172
|
+
* Passphrase for encrypting the private key.
|
|
173
|
+
*/
|
|
174
|
+
readonly keyPassphrase?: pulumi.Input<string>;
|
|
175
|
+
/**
|
|
176
|
+
* Number of bits to use when creating a key pair. (e.g. 3072)
|
|
177
|
+
*/
|
|
178
|
+
readonly keySize?: pulumi.Input<number>;
|
|
179
|
+
/**
|
|
180
|
+
* The friendly name of the SSH certificate object. When not specified the `keyId` is used for the friendly name. If the object already exists the old certificate is archived and the CA issues a new certificate.
|
|
181
|
+
*/
|
|
182
|
+
readonly objectName?: pulumi.Input<string>;
|
|
183
|
+
/**
|
|
184
|
+
* A list of user names for whom the requested certificate will be valid.
|
|
185
|
+
*/
|
|
186
|
+
readonly principals?: pulumi.Input<pulumi.Input<string>[]>;
|
|
187
|
+
/**
|
|
188
|
+
* The private key for the SSH certificate if generated by Venafi.
|
|
189
|
+
*/
|
|
190
|
+
readonly privateKey?: pulumi.Input<string>;
|
|
191
|
+
/**
|
|
192
|
+
* The OpenSSH formatted public key that will be used to generate the SSH certificate.
|
|
193
|
+
*/
|
|
194
|
+
readonly publicKey?: pulumi.Input<string>;
|
|
195
|
+
/**
|
|
196
|
+
* The SHA256 fingerprint of the SSH certificate's public key.
|
|
197
|
+
*/
|
|
198
|
+
readonly publicKeyFingerprint?: pulumi.Input<string>;
|
|
199
|
+
/**
|
|
200
|
+
* Specifies whether the public key will be "local" (default), "file" or "service" generated.
|
|
201
|
+
*/
|
|
202
|
+
readonly publicKeyMethod?: pulumi.Input<string>;
|
|
203
|
+
/**
|
|
204
|
+
* The serial number of the SSH certificate.
|
|
205
|
+
*/
|
|
206
|
+
readonly serial?: pulumi.Input<string>;
|
|
207
|
+
/**
|
|
208
|
+
* The SHA256 fingerprint of the CA that signed the SSH certificate.
|
|
209
|
+
*/
|
|
210
|
+
readonly signingCa?: pulumi.Input<string>;
|
|
211
|
+
/**
|
|
212
|
+
* A list of one or more valid IP or CIDR addresses that can use the SSH certificate.
|
|
213
|
+
*/
|
|
214
|
+
readonly sourceAddresses?: pulumi.Input<pulumi.Input<string>[]>;
|
|
215
|
+
/**
|
|
216
|
+
* The SSH certificate issuing template.
|
|
217
|
+
*/
|
|
218
|
+
readonly template?: pulumi.Input<string>;
|
|
219
|
+
/**
|
|
220
|
+
* The date the SSH certificate was issued.
|
|
221
|
+
*/
|
|
222
|
+
readonly validFrom?: pulumi.Input<string>;
|
|
223
|
+
/**
|
|
224
|
+
* Desired number of hours for which the certificate will be valid.
|
|
225
|
+
*/
|
|
226
|
+
readonly validHours?: pulumi.Input<number>;
|
|
227
|
+
/**
|
|
228
|
+
* The date the SSH certificate will expire.
|
|
229
|
+
*/
|
|
230
|
+
readonly validTo?: pulumi.Input<string>;
|
|
231
|
+
/**
|
|
232
|
+
* Specifies whether the private key will use Windows/DOS style line breaks.
|
|
233
|
+
*/
|
|
234
|
+
readonly windows?: pulumi.Input<boolean>;
|
|
235
|
+
}
|
|
236
|
+
/**
|
|
237
|
+
* The set of arguments for constructing a SshCertificate resource.
|
|
238
|
+
*/
|
|
239
|
+
export interface SshCertificateArgs {
|
|
240
|
+
/**
|
|
241
|
+
* A list of one or more valid IP or CIDR destination hosts where the certificate will authenticate.
|
|
242
|
+
*/
|
|
243
|
+
readonly destinationAddresses?: pulumi.Input<pulumi.Input<string>[]>;
|
|
244
|
+
/**
|
|
245
|
+
* A list of key-value pairs that contain certificate extensions from the CA template for client certificates. Allowed values (case-sensitive): *permit-X11-forwarding, permit-agent-forwarding, permit-port-forwarding, permit-pty, permit-user-rc*
|
|
246
|
+
*/
|
|
247
|
+
readonly extensions?: pulumi.Input<pulumi.Input<string>[]>;
|
|
248
|
+
/**
|
|
249
|
+
* The DN of the policy folder where the SSH certificate object will be created.
|
|
250
|
+
*/
|
|
251
|
+
readonly folder?: pulumi.Input<string>;
|
|
252
|
+
/**
|
|
253
|
+
* A command to run after successful login.
|
|
254
|
+
*/
|
|
255
|
+
readonly forceCommand?: pulumi.Input<string>;
|
|
256
|
+
/**
|
|
257
|
+
* The identifier of the requested SSH certificate.
|
|
258
|
+
*/
|
|
259
|
+
readonly keyId: pulumi.Input<string>;
|
|
260
|
+
/**
|
|
261
|
+
* Passphrase for encrypting the private key.
|
|
262
|
+
*/
|
|
263
|
+
readonly keyPassphrase?: pulumi.Input<string>;
|
|
264
|
+
/**
|
|
265
|
+
* Number of bits to use when creating a key pair. (e.g. 3072)
|
|
266
|
+
*/
|
|
267
|
+
readonly keySize?: pulumi.Input<number>;
|
|
268
|
+
/**
|
|
269
|
+
* The friendly name of the SSH certificate object. When not specified the `keyId` is used for the friendly name. If the object already exists the old certificate is archived and the CA issues a new certificate.
|
|
270
|
+
*/
|
|
271
|
+
readonly objectName?: pulumi.Input<string>;
|
|
272
|
+
/**
|
|
273
|
+
* A list of user names for whom the requested certificate will be valid.
|
|
274
|
+
*/
|
|
275
|
+
readonly principals?: pulumi.Input<pulumi.Input<string>[]>;
|
|
276
|
+
/**
|
|
277
|
+
* The OpenSSH formatted public key that will be used to generate the SSH certificate.
|
|
278
|
+
*/
|
|
279
|
+
readonly publicKey?: pulumi.Input<string>;
|
|
280
|
+
/**
|
|
281
|
+
* Specifies whether the public key will be "local" (default), "file" or "service" generated.
|
|
282
|
+
*/
|
|
283
|
+
readonly publicKeyMethod?: pulumi.Input<string>;
|
|
284
|
+
/**
|
|
285
|
+
* A list of one or more valid IP or CIDR addresses that can use the SSH certificate.
|
|
286
|
+
*/
|
|
287
|
+
readonly sourceAddresses?: pulumi.Input<pulumi.Input<string>[]>;
|
|
288
|
+
/**
|
|
289
|
+
* The SSH certificate issuing template.
|
|
290
|
+
*/
|
|
291
|
+
readonly template: pulumi.Input<string>;
|
|
292
|
+
/**
|
|
293
|
+
* Desired number of hours for which the certificate will be valid.
|
|
294
|
+
*/
|
|
295
|
+
readonly validHours?: pulumi.Input<number>;
|
|
296
|
+
/**
|
|
297
|
+
* Specifies whether the private key will use Windows/DOS style line breaks.
|
|
298
|
+
*/
|
|
299
|
+
readonly windows?: pulumi.Input<boolean>;
|
|
300
|
+
}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
const pulumi = require("@pulumi/pulumi");
|
|
6
|
+
const utilities = require("./utilities");
|
|
7
|
+
/**
|
|
8
|
+
* Provides access to request and retrieve SSH certificates from *Venafi Trust Protection Platform*.
|
|
9
|
+
*
|
|
10
|
+
* ## Example Usage
|
|
11
|
+
*
|
|
12
|
+
* ```typescript
|
|
13
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
14
|
+
* import * as venafi from "@pulumi/venafi";
|
|
15
|
+
*
|
|
16
|
+
* const sshCert = new venafi.SshCertificate("ssh_cert", {
|
|
17
|
+
* keyId: "my-first-ssh-certificate",
|
|
18
|
+
* keyPassphrase: "passw0rd",
|
|
19
|
+
* keySize: 3072,
|
|
20
|
+
* principals: ["seamus"],
|
|
21
|
+
* publicKeyMethod: "local",
|
|
22
|
+
* template: "Sample SSH CA",
|
|
23
|
+
* validHours: 24,
|
|
24
|
+
* });
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
class SshCertificate extends pulumi.CustomResource {
|
|
28
|
+
constructor(name, argsOrState, opts) {
|
|
29
|
+
let inputs = {};
|
|
30
|
+
opts = opts || {};
|
|
31
|
+
if (opts.id) {
|
|
32
|
+
const state = argsOrState;
|
|
33
|
+
inputs["certificate"] = state ? state.certificate : undefined;
|
|
34
|
+
inputs["certificateType"] = state ? state.certificateType : undefined;
|
|
35
|
+
inputs["destinationAddresses"] = state ? state.destinationAddresses : undefined;
|
|
36
|
+
inputs["extensions"] = state ? state.extensions : undefined;
|
|
37
|
+
inputs["folder"] = state ? state.folder : undefined;
|
|
38
|
+
inputs["forceCommand"] = state ? state.forceCommand : undefined;
|
|
39
|
+
inputs["keyId"] = state ? state.keyId : undefined;
|
|
40
|
+
inputs["keyPassphrase"] = state ? state.keyPassphrase : undefined;
|
|
41
|
+
inputs["keySize"] = state ? state.keySize : undefined;
|
|
42
|
+
inputs["objectName"] = state ? state.objectName : undefined;
|
|
43
|
+
inputs["principals"] = state ? state.principals : undefined;
|
|
44
|
+
inputs["privateKey"] = state ? state.privateKey : undefined;
|
|
45
|
+
inputs["publicKey"] = state ? state.publicKey : undefined;
|
|
46
|
+
inputs["publicKeyFingerprint"] = state ? state.publicKeyFingerprint : undefined;
|
|
47
|
+
inputs["publicKeyMethod"] = state ? state.publicKeyMethod : undefined;
|
|
48
|
+
inputs["serial"] = state ? state.serial : undefined;
|
|
49
|
+
inputs["signingCa"] = state ? state.signingCa : undefined;
|
|
50
|
+
inputs["sourceAddresses"] = state ? state.sourceAddresses : undefined;
|
|
51
|
+
inputs["template"] = state ? state.template : undefined;
|
|
52
|
+
inputs["validFrom"] = state ? state.validFrom : undefined;
|
|
53
|
+
inputs["validHours"] = state ? state.validHours : undefined;
|
|
54
|
+
inputs["validTo"] = state ? state.validTo : undefined;
|
|
55
|
+
inputs["windows"] = state ? state.windows : undefined;
|
|
56
|
+
}
|
|
57
|
+
else {
|
|
58
|
+
const args = argsOrState;
|
|
59
|
+
if ((!args || args.keyId === undefined) && !opts.urn) {
|
|
60
|
+
throw new Error("Missing required property 'keyId'");
|
|
61
|
+
}
|
|
62
|
+
if ((!args || args.template === undefined) && !opts.urn) {
|
|
63
|
+
throw new Error("Missing required property 'template'");
|
|
64
|
+
}
|
|
65
|
+
inputs["destinationAddresses"] = args ? args.destinationAddresses : undefined;
|
|
66
|
+
inputs["extensions"] = args ? args.extensions : undefined;
|
|
67
|
+
inputs["folder"] = args ? args.folder : undefined;
|
|
68
|
+
inputs["forceCommand"] = args ? args.forceCommand : undefined;
|
|
69
|
+
inputs["keyId"] = args ? args.keyId : undefined;
|
|
70
|
+
inputs["keyPassphrase"] = args ? args.keyPassphrase : undefined;
|
|
71
|
+
inputs["keySize"] = args ? args.keySize : undefined;
|
|
72
|
+
inputs["objectName"] = args ? args.objectName : undefined;
|
|
73
|
+
inputs["principals"] = args ? args.principals : undefined;
|
|
74
|
+
inputs["publicKey"] = args ? args.publicKey : undefined;
|
|
75
|
+
inputs["publicKeyMethod"] = args ? args.publicKeyMethod : undefined;
|
|
76
|
+
inputs["sourceAddresses"] = args ? args.sourceAddresses : undefined;
|
|
77
|
+
inputs["template"] = args ? args.template : undefined;
|
|
78
|
+
inputs["validHours"] = args ? args.validHours : undefined;
|
|
79
|
+
inputs["windows"] = args ? args.windows : undefined;
|
|
80
|
+
inputs["certificate"] = undefined /*out*/;
|
|
81
|
+
inputs["certificateType"] = undefined /*out*/;
|
|
82
|
+
inputs["privateKey"] = undefined /*out*/;
|
|
83
|
+
inputs["publicKeyFingerprint"] = undefined /*out*/;
|
|
84
|
+
inputs["serial"] = undefined /*out*/;
|
|
85
|
+
inputs["signingCa"] = undefined /*out*/;
|
|
86
|
+
inputs["validFrom"] = undefined /*out*/;
|
|
87
|
+
inputs["validTo"] = undefined /*out*/;
|
|
88
|
+
}
|
|
89
|
+
if (!opts.version) {
|
|
90
|
+
opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
|
|
91
|
+
}
|
|
92
|
+
super(SshCertificate.__pulumiType, name, inputs, opts);
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Get an existing SshCertificate resource's state with the given name, ID, and optional extra
|
|
96
|
+
* properties used to qualify the lookup.
|
|
97
|
+
*
|
|
98
|
+
* @param name The _unique_ name of the resulting resource.
|
|
99
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
100
|
+
* @param state Any extra arguments used during the lookup.
|
|
101
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
102
|
+
*/
|
|
103
|
+
static get(name, id, state, opts) {
|
|
104
|
+
return new SshCertificate(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Returns true if the given object is an instance of SshCertificate. This is designed to work even
|
|
108
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
109
|
+
*/
|
|
110
|
+
static isInstance(obj) {
|
|
111
|
+
if (obj === undefined || obj === null) {
|
|
112
|
+
return false;
|
|
113
|
+
}
|
|
114
|
+
return obj['__pulumiType'] === SshCertificate.__pulumiType;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
exports.SshCertificate = SshCertificate;
|
|
118
|
+
/** @internal */
|
|
119
|
+
SshCertificate.__pulumiType = 'venafi:index/sshCertificate:SshCertificate';
|
|
120
|
+
//# sourceMappingURL=sshCertificate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3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2BAAY,GAAG,4CAA4C,CAAC"}
|
package/utilities.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare function getEnv(...vars: string[]): string | undefined;
|
|
2
|
+
export declare function getEnvBoolean(...vars: string[]): boolean | undefined;
|
|
3
|
+
export declare function getEnvNumber(...vars: string[]): number | undefined;
|
|
4
|
+
export declare function getVersion(): string;
|
package/utilities.js
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
function getEnv(...vars) {
|
|
6
|
+
for (const v of vars) {
|
|
7
|
+
const value = process.env[v];
|
|
8
|
+
if (value) {
|
|
9
|
+
return value;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
return undefined;
|
|
13
|
+
}
|
|
14
|
+
exports.getEnv = getEnv;
|
|
15
|
+
function getEnvBoolean(...vars) {
|
|
16
|
+
const s = getEnv(...vars);
|
|
17
|
+
if (s !== undefined) {
|
|
18
|
+
// NOTE: these values are taken from https://golang.org/src/strconv/atob.go?s=351:391#L1, which is what
|
|
19
|
+
// Terraform uses internally when parsing boolean values.
|
|
20
|
+
if (["1", "t", "T", "true", "TRUE", "True"].find(v => v === s) !== undefined) {
|
|
21
|
+
return true;
|
|
22
|
+
}
|
|
23
|
+
if (["0", "f", "F", "false", "FALSE", "False"].find(v => v === s) !== undefined) {
|
|
24
|
+
return false;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
exports.getEnvBoolean = getEnvBoolean;
|
|
30
|
+
function getEnvNumber(...vars) {
|
|
31
|
+
const s = getEnv(...vars);
|
|
32
|
+
if (s !== undefined) {
|
|
33
|
+
const f = parseFloat(s);
|
|
34
|
+
if (!isNaN(f)) {
|
|
35
|
+
return f;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return undefined;
|
|
39
|
+
}
|
|
40
|
+
exports.getEnvNumber = getEnvNumber;
|
|
41
|
+
function getVersion() {
|
|
42
|
+
let version = require('./package.json').version;
|
|
43
|
+
// Node allows for the version to be prefixed by a "v", while semver doesn't.
|
|
44
|
+
// If there is a v, strip it off.
|
|
45
|
+
if (version.indexOf('v') === 0) {
|
|
46
|
+
version = version.slice(1);
|
|
47
|
+
}
|
|
48
|
+
return version;
|
|
49
|
+
}
|
|
50
|
+
exports.getVersion = getVersion;
|
|
51
|
+
//# sourceMappingURL=utilities.js.map
|
package/utilities.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utilities.js","sourceRoot":"","sources":["../utilities.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;AAGjF,SAAgB,MAAM,CAAC,GAAG,IAAc;IACpC,KAAK,MAAM,CAAC,IAAI,IAAI,EAAE;QAClB,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;QAC7B,IAAI,KAAK,EAAE;YACP,OAAO,KAAK,CAAC;SAChB;KACJ;IACD,OAAO,SAAS,CAAC;AACrB,CAAC;AARD,wBAQC;AAED,SAAgB,aAAa,CAAC,GAAG,IAAc;IAC3C,MAAM,CAAC,GAAG,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC;IAC1B,IAAI,CAAC,KAAK,SAAS,EAAE;QACjB,uGAAuG;QACvG,yDAAyD;QACzD,IAAI,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,KAAK,SAAS,EAAE;YAC1E,OAAO,IAAI,CAAC;SACf;QACD,IAAI,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,OAA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