generated from pulumi/pulumi-tf-provider-boilerplate
/
certificate.go
497 lines (441 loc) · 20.1 KB
/
certificate.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT.
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
package elb
import (
"context"
"reflect"
"github.com/pkg/errors"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// Manages an ELB certificate resource within HuaweiCloud.
//
// ## Example Usage
//
// ```go
// package main
//
// import (
//
// "fmt"
//
// "github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/Elb"
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
//
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// _, err := Elb.NewCertificate(ctx, "certificate1", &Elb.CertificateArgs{
// Certificate: pulumi.String(fmt.Sprintf(`-----BEGIN CERTIFICATE-----
//
// MIIDpTCCAo2gAwIBAgIJAKdmmOBYnFvoMA0GCSqGSIb3DQEBCwUAMGkxCzAJBgNV
// BAYTAnh4MQswCQYDVQQIDAJ4eDELMAkGA1UEBwwCeHgxCzAJBgNVBAoMAnh4MQsw
// CQYDVQQLDAJ4eDELMAkGA1UEAwwCeHgxGTAXBgkqhkiG9w0BCQEWCnh4QDE2My5j
// b20wHhcNMTcxMjA0MDM0MjQ5WhcNMjAxMjAzMDM0MjQ5WjBpMQswCQYDVQQGEwJ4
// eDELMAkGA1UECAwCeHgxCzAJBgNVBAcMAnh4MQswCQYDVQQKDAJ4eDELMAkGA1UE
// CwwCeHgxCzAJBgNVBAMMAnh4MRkwFwYJKoZIhvcNAQkBFgp4eEAxNjMuY29tMIIB
// IjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAwZ5UJULAjWr7p6FVwGRQRjFN
// 2s8tZ/6LC3X82fajpVsYqF1xqEuUDndDXVD09E4u83MS6HO6a3bIVQDp6/klnYld
// iE6Vp8HH5BSKaCWKVg8lGWg1UM9wZFnlryi14KgmpIFmcu9nA8yV/6MZAe6RSDmb
// 3iyNBmiZ8aZhGw2pI1YwR+15MVqFFGB+7ExkziROi7L8CFCyCezK2/oOOvQsH1dz
// Q8z1JXWdg8/9Zx7Ktvgwu5PQM3cJtSHX6iBPOkMU8Z8TugLlTqQXKZOEgwajwvQ5
// mf2DPkVgM08XAgaLJcLigwD513koAdtJd5v+9irw+5LAuO3JclqwTvwy7u/YwwID
// AQABo1AwTjAdBgNVHQ4EFgQUo5A2tIu+bcUfvGTD7wmEkhXKFjcwHwYDVR0jBBgw
// FoAUo5A2tIu+bcUfvGTD7wmEkhXKFjcwDAYDVR0TBAUwAwEB/zANBgkqhkiG9w0B
// AQsFAAOCAQEAWJ2rS6Mvlqk3GfEpboezx2J3X7l1z8Sxoqg6ntwB+rezvK3mc9H0
// 83qcVeUcoH+0A0lSHyFN4FvRQL6X1hEheHarYwJK4agb231vb5erasuGO463eYEG
// r4SfTuOm7SyiV2xxbaBKrXJtpBp4WLL/s+LF+nklKjaOxkmxUX0sM4CTA7uFJypY
// c8Tdr8lDDNqoUtMD8BrUCJi+7lmMXRcC3Qi3oZJW76ja+kZA5mKVFPd1ATih8TbA
// i34R7EQDtFeiSvBdeKRsPp8c0KT8H1B4lXNkkCQs2WX5p4lm99+ZtLD4glw8x6Ic
// i1YhgnQbn5E0hz55OLu5jvOkKQjPCW+8Kg==
// -----END CERTIFICATE-----
//
// `)),
//
// Description: pulumi.String("terraform test certificate"),
// Domain: pulumi.String("www.elb.com"),
// PrivateKey: pulumi.String(fmt.Sprintf(`-----BEGIN RSA PRIVATE KEY-----
//
// MIIEowIBAAKCAQEAwZ5UJULAjWr7p6FVwGRQRjFN2s8tZ/6LC3X82fajpVsYqF1x
// qEuUDndDXVD09E4u83MS6HO6a3bIVQDp6/klnYldiE6Vp8HH5BSKaCWKVg8lGWg1
// UM9wZFnlryi14KgmpIFmcu9nA8yV/6MZAe6RSDmb3iyNBmiZ8aZhGw2pI1YwR+15
// MVqFFGB+7ExkziROi7L8CFCyCezK2/oOOvQsH1dzQ8z1JXWdg8/9Zx7Ktvgwu5PQ
// M3cJtSHX6iBPOkMU8Z8TugLlTqQXKZOEgwajwvQ5mf2DPkVgM08XAgaLJcLigwD5
// 13koAdtJd5v+9irw+5LAuO3JclqwTvwy7u/YwwIDAQABAoIBACU9S5fjD9/jTMXA
// DRs08A+gGgZUxLn0xk+NAPX3LyB1tfdkCaFB8BccLzO6h3KZuwQOBPv6jkdvEDbx
// Nwyw3eA/9GJsIvKiHc0rejdvyPymaw9I8MA7NbXHaJrY7KpqDQyk6sx+aUTcy5jg
// iMXLWdwXYHhJ/1HVOo603oZyiS6HZeYU089NDUcX+1SJi3e5Ke0gPVXEqCq1O11/
// rh24bMxnwZo4PKBWdcMBN5Zf/4ij9vrZE+fFzW7vGBO48A5lvZxWU2U5t/OZQRtN
// 1uLOHmMFa0FIF2aWbTVfwdUWAFsvAOkHj9VV8BXOUwKOUuEktdkfAlvrxmsFrO/H
// yDeYYPkCgYEA/S55CBbR0sMXpSZ56uRn8JHApZJhgkgvYr+FqDlJq/e92nAzf01P
// RoEBUajwrnf1ycevN/SDfbtWzq2XJGqhWdJmtpO16b7KBsC6BdRcH6dnOYh31jgA
// vABMIP3wzI4zSVTyxRE8LDuboytF1mSCeV5tHYPQTZNwrplDnLQhywcCgYEAw8Yc
// Uk/eiFr3hfH/ZohMfV5p82Qp7DNIGRzw8YtVG/3+vNXrAXW1VhugNhQY6L+zLtJC
// aKn84ooup0m3YCg0hvINqJuvzfsuzQgtjTXyaE0cEwsjUusOmiuj09vVx/3U7siK
// Hdjd2ICPCvQ6Q8tdi8jV320gMs05AtaBkZdsiWUCgYEAtLw4Kk4f+xTKDFsrLUNf
// 75wcqhWVBiwBp7yQ7UX4EYsJPKZcHMRTk0EEcAbpyaJZE3I44vjp5ReXIHNLMfPs
// uvI34J4Rfot0LN3n7cFrAi2+wpNo+MOBwrNzpRmijGP2uKKrq4JiMjFbKV/6utGF
// Up7VxfwS904JYpqGaZctiIECgYA1A6nZtF0riY6ry/uAdXpZHL8ONNqRZtWoT0kD
// 79otSVu5ISiRbaGcXsDExC52oKrSDAgFtbqQUiEOFg09UcXfoR6HwRkba2CiDwve
// yHQLQI5Qrdxz8Mk0gIrNrSM4FAmcW9vi9z4kCbQyoC5C+4gqeUlJRpDIkQBWP2Y4
// 2ct/bQKBgHv8qCsQTZphOxc31BJPa2xVhuv18cEU3XLUrVfUZ/1f43JhLp7gynS2
// ep++LKUi9D0VGXY8bqvfJjbECoCeu85vl8NpCXwe/LoVoIn+7KaVIZMwqoGMfgNl
// nEqm7HWkNxHhf8A6En/IjleuddS1sf9e/x+TJN1Xhnt9W6pe7Fk1
// -----END RSA PRIVATE KEY-----
//
// `)),
//
// })
// if err != nil {
// return err
// }
// return nil
// })
// }
//
// ```
//
// ## Import
//
// ELB certificate can be imported using the certificate ID, e.g.
//
// ```sh
//
// $ pulumi import huaweicloud:Elb/certificate:Certificate certificate_1 5c20fdad-7288-11eb-b817-0255ac10158b
//
// ```
//
// Note that the imported state may not be identical to your resource definition, due to some attributes missing from the API response, security or some other reason. The missing attributes include`enterprise_project_id`. It is generally recommended running `terraform plan` after importing a certificate. You can then decide if changes should be applied to the certificate, or the resource definition should be updated to align with the certificate. Also you can ignore changes as below. resource "huaweicloud_lb_certificate" "certificate_1" {
//
// ...
//
// lifecycle {
//
// ignore_changes = [
//
// enterprise_project_id,
//
// ]
//
// } }
type Certificate struct {
pulumi.CustomResourceState
// The public encrypted key of the Certificate, PEM format.
Certificate pulumi.StringOutput `pulumi:"certificate"`
// Indicates the creation time.
CreateTime pulumi.StringOutput `pulumi:"createTime"`
// Human-readable description for the Certificate.
Description pulumi.StringPtrOutput `pulumi:"description"`
// The domain of the Certificate. The value contains a maximum of 100 characters. This
// parameter is valid only when `type` is set to "server".
Domain pulumi.StringPtrOutput `pulumi:"domain"`
// The enterprise project ID of the certificate. Changing this
// creates a new certificate.
EnterpriseProjectId pulumi.StringOutput `pulumi:"enterpriseProjectId"`
// Human-readable name for the Certificate. Does not have to be unique.
Name pulumi.StringOutput `pulumi:"name"`
// The private encrypted key of the Certificate, PEM format. This parameter is valid
// and mandatory only when `type` is set to "server".
PrivateKey pulumi.StringPtrOutput `pulumi:"privateKey"`
// The region in which to create the ELB certificate resource. If omitted, the
// provider-level region will be used. Changing this creates a new certificate.
Region pulumi.StringOutput `pulumi:"region"`
// Specifies the certificate type. The default value is "server". The value can be
// one of the following:
// + server: indicates the server certificate.
// + client: indicates the CA certificate.
Type pulumi.StringPtrOutput `pulumi:"type"`
// Indicates the update time.
UpdateTime pulumi.StringOutput `pulumi:"updateTime"`
}
// NewCertificate registers a new resource with the given unique name, arguments, and options.
func NewCertificate(ctx *pulumi.Context,
name string, args *CertificateArgs, opts ...pulumi.ResourceOption) (*Certificate, error) {
if args == nil {
return nil, errors.New("missing one or more required arguments")
}
if args.Certificate == nil {
return nil, errors.New("invalid value for required argument 'Certificate'")
}
opts = pkgResourceDefaultOpts(opts)
var resource Certificate
err := ctx.RegisterResource("huaweicloud:Elb/certificate:Certificate", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetCertificate gets an existing Certificate resource's state with the given name, ID, and optional
// state properties that are used to uniquely qualify the lookup (nil if not required).
func GetCertificate(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *CertificateState, opts ...pulumi.ResourceOption) (*Certificate, error) {
var resource Certificate
err := ctx.ReadResource("huaweicloud:Elb/certificate:Certificate", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering Certificate resources.
type certificateState struct {
// The public encrypted key of the Certificate, PEM format.
Certificate *string `pulumi:"certificate"`
// Indicates the creation time.
CreateTime *string `pulumi:"createTime"`
// Human-readable description for the Certificate.
Description *string `pulumi:"description"`
// The domain of the Certificate. The value contains a maximum of 100 characters. This
// parameter is valid only when `type` is set to "server".
Domain *string `pulumi:"domain"`
// The enterprise project ID of the certificate. Changing this
// creates a new certificate.
EnterpriseProjectId *string `pulumi:"enterpriseProjectId"`
// Human-readable name for the Certificate. Does not have to be unique.
Name *string `pulumi:"name"`
// The private encrypted key of the Certificate, PEM format. This parameter is valid
// and mandatory only when `type` is set to "server".
PrivateKey *string `pulumi:"privateKey"`
// The region in which to create the ELB certificate resource. If omitted, the
// provider-level region will be used. Changing this creates a new certificate.
Region *string `pulumi:"region"`
// Specifies the certificate type. The default value is "server". The value can be
// one of the following:
// + server: indicates the server certificate.
// + client: indicates the CA certificate.
Type *string `pulumi:"type"`
// Indicates the update time.
UpdateTime *string `pulumi:"updateTime"`
}
type CertificateState struct {
// The public encrypted key of the Certificate, PEM format.
Certificate pulumi.StringPtrInput
// Indicates the creation time.
CreateTime pulumi.StringPtrInput
// Human-readable description for the Certificate.
Description pulumi.StringPtrInput
// The domain of the Certificate. The value contains a maximum of 100 characters. This
// parameter is valid only when `type` is set to "server".
Domain pulumi.StringPtrInput
// The enterprise project ID of the certificate. Changing this
// creates a new certificate.
EnterpriseProjectId pulumi.StringPtrInput
// Human-readable name for the Certificate. Does not have to be unique.
Name pulumi.StringPtrInput
// The private encrypted key of the Certificate, PEM format. This parameter is valid
// and mandatory only when `type` is set to "server".
PrivateKey pulumi.StringPtrInput
// The region in which to create the ELB certificate resource. If omitted, the
// provider-level region will be used. Changing this creates a new certificate.
Region pulumi.StringPtrInput
// Specifies the certificate type. The default value is "server". The value can be
// one of the following:
// + server: indicates the server certificate.
// + client: indicates the CA certificate.
Type pulumi.StringPtrInput
// Indicates the update time.
UpdateTime pulumi.StringPtrInput
}
func (CertificateState) ElementType() reflect.Type {
return reflect.TypeOf((*certificateState)(nil)).Elem()
}
type certificateArgs struct {
// The public encrypted key of the Certificate, PEM format.
Certificate string `pulumi:"certificate"`
// Human-readable description for the Certificate.
Description *string `pulumi:"description"`
// The domain of the Certificate. The value contains a maximum of 100 characters. This
// parameter is valid only when `type` is set to "server".
Domain *string `pulumi:"domain"`
// The enterprise project ID of the certificate. Changing this
// creates a new certificate.
EnterpriseProjectId *string `pulumi:"enterpriseProjectId"`
// Human-readable name for the Certificate. Does not have to be unique.
Name *string `pulumi:"name"`
// The private encrypted key of the Certificate, PEM format. This parameter is valid
// and mandatory only when `type` is set to "server".
PrivateKey *string `pulumi:"privateKey"`
// The region in which to create the ELB certificate resource. If omitted, the
// provider-level region will be used. Changing this creates a new certificate.
Region *string `pulumi:"region"`
// Specifies the certificate type. The default value is "server". The value can be
// one of the following:
// + server: indicates the server certificate.
// + client: indicates the CA certificate.
Type *string `pulumi:"type"`
}
// The set of arguments for constructing a Certificate resource.
type CertificateArgs struct {
// The public encrypted key of the Certificate, PEM format.
Certificate pulumi.StringInput
// Human-readable description for the Certificate.
Description pulumi.StringPtrInput
// The domain of the Certificate. The value contains a maximum of 100 characters. This
// parameter is valid only when `type` is set to "server".
Domain pulumi.StringPtrInput
// The enterprise project ID of the certificate. Changing this
// creates a new certificate.
EnterpriseProjectId pulumi.StringPtrInput
// Human-readable name for the Certificate. Does not have to be unique.
Name pulumi.StringPtrInput
// The private encrypted key of the Certificate, PEM format. This parameter is valid
// and mandatory only when `type` is set to "server".
PrivateKey pulumi.StringPtrInput
// The region in which to create the ELB certificate resource. If omitted, the
// provider-level region will be used. Changing this creates a new certificate.
Region pulumi.StringPtrInput
// Specifies the certificate type. The default value is "server". The value can be
// one of the following:
// + server: indicates the server certificate.
// + client: indicates the CA certificate.
Type pulumi.StringPtrInput
}
func (CertificateArgs) ElementType() reflect.Type {
return reflect.TypeOf((*certificateArgs)(nil)).Elem()
}
type CertificateInput interface {
pulumi.Input
ToCertificateOutput() CertificateOutput
ToCertificateOutputWithContext(ctx context.Context) CertificateOutput
}
func (*Certificate) ElementType() reflect.Type {
return reflect.TypeOf((**Certificate)(nil)).Elem()
}
func (i *Certificate) ToCertificateOutput() CertificateOutput {
return i.ToCertificateOutputWithContext(context.Background())
}
func (i *Certificate) ToCertificateOutputWithContext(ctx context.Context) CertificateOutput {
return pulumi.ToOutputWithContext(ctx, i).(CertificateOutput)
}
// CertificateArrayInput is an input type that accepts CertificateArray and CertificateArrayOutput values.
// You can construct a concrete instance of `CertificateArrayInput` via:
//
// CertificateArray{ CertificateArgs{...} }
type CertificateArrayInput interface {
pulumi.Input
ToCertificateArrayOutput() CertificateArrayOutput
ToCertificateArrayOutputWithContext(context.Context) CertificateArrayOutput
}
type CertificateArray []CertificateInput
func (CertificateArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]*Certificate)(nil)).Elem()
}
func (i CertificateArray) ToCertificateArrayOutput() CertificateArrayOutput {
return i.ToCertificateArrayOutputWithContext(context.Background())
}
func (i CertificateArray) ToCertificateArrayOutputWithContext(ctx context.Context) CertificateArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(CertificateArrayOutput)
}
// CertificateMapInput is an input type that accepts CertificateMap and CertificateMapOutput values.
// You can construct a concrete instance of `CertificateMapInput` via:
//
// CertificateMap{ "key": CertificateArgs{...} }
type CertificateMapInput interface {
pulumi.Input
ToCertificateMapOutput() CertificateMapOutput
ToCertificateMapOutputWithContext(context.Context) CertificateMapOutput
}
type CertificateMap map[string]CertificateInput
func (CertificateMap) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*Certificate)(nil)).Elem()
}
func (i CertificateMap) ToCertificateMapOutput() CertificateMapOutput {
return i.ToCertificateMapOutputWithContext(context.Background())
}
func (i CertificateMap) ToCertificateMapOutputWithContext(ctx context.Context) CertificateMapOutput {
return pulumi.ToOutputWithContext(ctx, i).(CertificateMapOutput)
}
type CertificateOutput struct{ *pulumi.OutputState }
func (CertificateOutput) ElementType() reflect.Type {
return reflect.TypeOf((**Certificate)(nil)).Elem()
}
func (o CertificateOutput) ToCertificateOutput() CertificateOutput {
return o
}
func (o CertificateOutput) ToCertificateOutputWithContext(ctx context.Context) CertificateOutput {
return o
}
// The public encrypted key of the Certificate, PEM format.
func (o CertificateOutput) Certificate() pulumi.StringOutput {
return o.ApplyT(func(v *Certificate) pulumi.StringOutput { return v.Certificate }).(pulumi.StringOutput)
}
// Indicates the creation time.
func (o CertificateOutput) CreateTime() pulumi.StringOutput {
return o.ApplyT(func(v *Certificate) pulumi.StringOutput { return v.CreateTime }).(pulumi.StringOutput)
}
// Human-readable description for the Certificate.
func (o CertificateOutput) Description() pulumi.StringPtrOutput {
return o.ApplyT(func(v *Certificate) pulumi.StringPtrOutput { return v.Description }).(pulumi.StringPtrOutput)
}
// The domain of the Certificate. The value contains a maximum of 100 characters. This
// parameter is valid only when `type` is set to "server".
func (o CertificateOutput) Domain() pulumi.StringPtrOutput {
return o.ApplyT(func(v *Certificate) pulumi.StringPtrOutput { return v.Domain }).(pulumi.StringPtrOutput)
}
// The enterprise project ID of the certificate. Changing this
// creates a new certificate.
func (o CertificateOutput) EnterpriseProjectId() pulumi.StringOutput {
return o.ApplyT(func(v *Certificate) pulumi.StringOutput { return v.EnterpriseProjectId }).(pulumi.StringOutput)
}
// Human-readable name for the Certificate. Does not have to be unique.
func (o CertificateOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v *Certificate) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput)
}
// The private encrypted key of the Certificate, PEM format. This parameter is valid
// and mandatory only when `type` is set to "server".
func (o CertificateOutput) PrivateKey() pulumi.StringPtrOutput {
return o.ApplyT(func(v *Certificate) pulumi.StringPtrOutput { return v.PrivateKey }).(pulumi.StringPtrOutput)
}
// The region in which to create the ELB certificate resource. If omitted, the
// provider-level region will be used. Changing this creates a new certificate.
func (o CertificateOutput) Region() pulumi.StringOutput {
return o.ApplyT(func(v *Certificate) pulumi.StringOutput { return v.Region }).(pulumi.StringOutput)
}
// Specifies the certificate type. The default value is "server". The value can be
// one of the following:
// + server: indicates the server certificate.
// + client: indicates the CA certificate.
func (o CertificateOutput) Type() pulumi.StringPtrOutput {
return o.ApplyT(func(v *Certificate) pulumi.StringPtrOutput { return v.Type }).(pulumi.StringPtrOutput)
}
// Indicates the update time.
func (o CertificateOutput) UpdateTime() pulumi.StringOutput {
return o.ApplyT(func(v *Certificate) pulumi.StringOutput { return v.UpdateTime }).(pulumi.StringOutput)
}
type CertificateArrayOutput struct{ *pulumi.OutputState }
func (CertificateArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]*Certificate)(nil)).Elem()
}
func (o CertificateArrayOutput) ToCertificateArrayOutput() CertificateArrayOutput {
return o
}
func (o CertificateArrayOutput) ToCertificateArrayOutputWithContext(ctx context.Context) CertificateArrayOutput {
return o
}
func (o CertificateArrayOutput) Index(i pulumi.IntInput) CertificateOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) *Certificate {
return vs[0].([]*Certificate)[vs[1].(int)]
}).(CertificateOutput)
}
type CertificateMapOutput struct{ *pulumi.OutputState }
func (CertificateMapOutput) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*Certificate)(nil)).Elem()
}
func (o CertificateMapOutput) ToCertificateMapOutput() CertificateMapOutput {
return o
}
func (o CertificateMapOutput) ToCertificateMapOutputWithContext(ctx context.Context) CertificateMapOutput {
return o
}
func (o CertificateMapOutput) MapIndex(k pulumi.StringInput) CertificateOutput {
return pulumi.All(o, k).ApplyT(func(vs []interface{}) *Certificate {
return vs[0].(map[string]*Certificate)[vs[1].(string)]
}).(CertificateOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*CertificateInput)(nil)).Elem(), &Certificate{})
pulumi.RegisterInputType(reflect.TypeOf((*CertificateArrayInput)(nil)).Elem(), CertificateArray{})
pulumi.RegisterInputType(reflect.TypeOf((*CertificateMapInput)(nil)).Elem(), CertificateMap{})
pulumi.RegisterOutputType(CertificateOutput{})
pulumi.RegisterOutputType(CertificateArrayOutput{})
pulumi.RegisterOutputType(CertificateMapOutput{})
}