This repository has been archived by the owner on Aug 15, 2022. It is now read-only.
generated from pulumi/pulumi-tf-provider-boilerplate
/
secrets.go
115 lines (94 loc) · 3.98 KB
/
secrets.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
// 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 ssm
import (
"context"
"reflect"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func Secrets(ctx *pulumi.Context, args *SecretsArgs, opts ...pulumi.InvokeOption) (*SecretsResult, error) {
var rv SecretsResult
err := ctx.Invoke("tctest:Ssm/secrets:Secrets", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
// A collection of arguments for invoking Secrets.
type SecretsArgs struct {
OrderType *int `pulumi:"orderType"`
ResultOutputFile *string `pulumi:"resultOutputFile"`
SecretName *string `pulumi:"secretName"`
State *int `pulumi:"state"`
Tags map[string]interface{} `pulumi:"tags"`
}
// A collection of values returned by Secrets.
type SecretsResult struct {
// The provider-assigned unique ID for this managed resource.
Id string `pulumi:"id"`
OrderType *int `pulumi:"orderType"`
ResultOutputFile *string `pulumi:"resultOutputFile"`
SecretLists []SecretsSecretList `pulumi:"secretLists"`
SecretName *string `pulumi:"secretName"`
State *int `pulumi:"state"`
Tags map[string]interface{} `pulumi:"tags"`
}
func SecretsOutput(ctx *pulumi.Context, args SecretsOutputArgs, opts ...pulumi.InvokeOption) SecretsResultOutput {
return pulumi.ToOutputWithContext(context.Background(), args).
ApplyT(func(v interface{}) (SecretsResult, error) {
args := v.(SecretsArgs)
r, err := Secrets(ctx, &args, opts...)
var s SecretsResult
if r != nil {
s = *r
}
return s, err
}).(SecretsResultOutput)
}
// A collection of arguments for invoking Secrets.
type SecretsOutputArgs struct {
OrderType pulumi.IntPtrInput `pulumi:"orderType"`
ResultOutputFile pulumi.StringPtrInput `pulumi:"resultOutputFile"`
SecretName pulumi.StringPtrInput `pulumi:"secretName"`
State pulumi.IntPtrInput `pulumi:"state"`
Tags pulumi.MapInput `pulumi:"tags"`
}
func (SecretsOutputArgs) ElementType() reflect.Type {
return reflect.TypeOf((*SecretsArgs)(nil)).Elem()
}
// A collection of values returned by Secrets.
type SecretsResultOutput struct{ *pulumi.OutputState }
func (SecretsResultOutput) ElementType() reflect.Type {
return reflect.TypeOf((*SecretsResult)(nil)).Elem()
}
func (o SecretsResultOutput) ToSecretsResultOutput() SecretsResultOutput {
return o
}
func (o SecretsResultOutput) ToSecretsResultOutputWithContext(ctx context.Context) SecretsResultOutput {
return o
}
// The provider-assigned unique ID for this managed resource.
func (o SecretsResultOutput) Id() pulumi.StringOutput {
return o.ApplyT(func(v SecretsResult) string { return v.Id }).(pulumi.StringOutput)
}
func (o SecretsResultOutput) OrderType() pulumi.IntPtrOutput {
return o.ApplyT(func(v SecretsResult) *int { return v.OrderType }).(pulumi.IntPtrOutput)
}
func (o SecretsResultOutput) ResultOutputFile() pulumi.StringPtrOutput {
return o.ApplyT(func(v SecretsResult) *string { return v.ResultOutputFile }).(pulumi.StringPtrOutput)
}
func (o SecretsResultOutput) SecretLists() SecretsSecretListArrayOutput {
return o.ApplyT(func(v SecretsResult) []SecretsSecretList { return v.SecretLists }).(SecretsSecretListArrayOutput)
}
func (o SecretsResultOutput) SecretName() pulumi.StringPtrOutput {
return o.ApplyT(func(v SecretsResult) *string { return v.SecretName }).(pulumi.StringPtrOutput)
}
func (o SecretsResultOutput) State() pulumi.IntPtrOutput {
return o.ApplyT(func(v SecretsResult) *int { return v.State }).(pulumi.IntPtrOutput)
}
func (o SecretsResultOutput) Tags() pulumi.MapOutput {
return o.ApplyT(func(v SecretsResult) map[string]interface{} { return v.Tags }).(pulumi.MapOutput)
}
func init() {
pulumi.RegisterOutputType(SecretsResultOutput{})
}