generated from pulumi/pulumi-tf-provider-boilerplate
/
aquaLabel.go
251 lines (201 loc) · 7.78 KB
/
aquaLabel.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
// 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 aquasec
import (
"context"
"reflect"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-aquasec/sdk/go/aquasec/internal"
)
type AquaLabel struct {
pulumi.CustomResourceState
// The name of the user who created the Aqua label.
Author pulumi.StringOutput `pulumi:"author"`
// The creation date of the Aqua label.
Created pulumi.StringOutput `pulumi:"created"`
// Aqua label description.
Description pulumi.StringPtrOutput `pulumi:"description"`
// Aqua label name.
Name pulumi.StringOutput `pulumi:"name"`
}
// NewAquaLabel registers a new resource with the given unique name, arguments, and options.
func NewAquaLabel(ctx *pulumi.Context,
name string, args *AquaLabelArgs, opts ...pulumi.ResourceOption) (*AquaLabel, error) {
if args == nil {
args = &AquaLabelArgs{}
}
opts = internal.PkgResourceDefaultOpts(opts)
var resource AquaLabel
err := ctx.RegisterResource("aquasec:index/aquaLabel:AquaLabel", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetAquaLabel gets an existing AquaLabel 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 GetAquaLabel(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *AquaLabelState, opts ...pulumi.ResourceOption) (*AquaLabel, error) {
var resource AquaLabel
err := ctx.ReadResource("aquasec:index/aquaLabel:AquaLabel", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering AquaLabel resources.
type aquaLabelState struct {
// The name of the user who created the Aqua label.
Author *string `pulumi:"author"`
// The creation date of the Aqua label.
Created *string `pulumi:"created"`
// Aqua label description.
Description *string `pulumi:"description"`
// Aqua label name.
Name *string `pulumi:"name"`
}
type AquaLabelState struct {
// The name of the user who created the Aqua label.
Author pulumi.StringPtrInput
// The creation date of the Aqua label.
Created pulumi.StringPtrInput
// Aqua label description.
Description pulumi.StringPtrInput
// Aqua label name.
Name pulumi.StringPtrInput
}
func (AquaLabelState) ElementType() reflect.Type {
return reflect.TypeOf((*aquaLabelState)(nil)).Elem()
}
type aquaLabelArgs struct {
// Aqua label description.
Description *string `pulumi:"description"`
// Aqua label name.
Name *string `pulumi:"name"`
}
// The set of arguments for constructing a AquaLabel resource.
type AquaLabelArgs struct {
// Aqua label description.
Description pulumi.StringPtrInput
// Aqua label name.
Name pulumi.StringPtrInput
}
func (AquaLabelArgs) ElementType() reflect.Type {
return reflect.TypeOf((*aquaLabelArgs)(nil)).Elem()
}
type AquaLabelInput interface {
pulumi.Input
ToAquaLabelOutput() AquaLabelOutput
ToAquaLabelOutputWithContext(ctx context.Context) AquaLabelOutput
}
func (*AquaLabel) ElementType() reflect.Type {
return reflect.TypeOf((**AquaLabel)(nil)).Elem()
}
func (i *AquaLabel) ToAquaLabelOutput() AquaLabelOutput {
return i.ToAquaLabelOutputWithContext(context.Background())
}
func (i *AquaLabel) ToAquaLabelOutputWithContext(ctx context.Context) AquaLabelOutput {
return pulumi.ToOutputWithContext(ctx, i).(AquaLabelOutput)
}
// AquaLabelArrayInput is an input type that accepts AquaLabelArray and AquaLabelArrayOutput values.
// You can construct a concrete instance of `AquaLabelArrayInput` via:
//
// AquaLabelArray{ AquaLabelArgs{...} }
type AquaLabelArrayInput interface {
pulumi.Input
ToAquaLabelArrayOutput() AquaLabelArrayOutput
ToAquaLabelArrayOutputWithContext(context.Context) AquaLabelArrayOutput
}
type AquaLabelArray []AquaLabelInput
func (AquaLabelArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]*AquaLabel)(nil)).Elem()
}
func (i AquaLabelArray) ToAquaLabelArrayOutput() AquaLabelArrayOutput {
return i.ToAquaLabelArrayOutputWithContext(context.Background())
}
func (i AquaLabelArray) ToAquaLabelArrayOutputWithContext(ctx context.Context) AquaLabelArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(AquaLabelArrayOutput)
}
// AquaLabelMapInput is an input type that accepts AquaLabelMap and AquaLabelMapOutput values.
// You can construct a concrete instance of `AquaLabelMapInput` via:
//
// AquaLabelMap{ "key": AquaLabelArgs{...} }
type AquaLabelMapInput interface {
pulumi.Input
ToAquaLabelMapOutput() AquaLabelMapOutput
ToAquaLabelMapOutputWithContext(context.Context) AquaLabelMapOutput
}
type AquaLabelMap map[string]AquaLabelInput
func (AquaLabelMap) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*AquaLabel)(nil)).Elem()
}
func (i AquaLabelMap) ToAquaLabelMapOutput() AquaLabelMapOutput {
return i.ToAquaLabelMapOutputWithContext(context.Background())
}
func (i AquaLabelMap) ToAquaLabelMapOutputWithContext(ctx context.Context) AquaLabelMapOutput {
return pulumi.ToOutputWithContext(ctx, i).(AquaLabelMapOutput)
}
type AquaLabelOutput struct{ *pulumi.OutputState }
func (AquaLabelOutput) ElementType() reflect.Type {
return reflect.TypeOf((**AquaLabel)(nil)).Elem()
}
func (o AquaLabelOutput) ToAquaLabelOutput() AquaLabelOutput {
return o
}
func (o AquaLabelOutput) ToAquaLabelOutputWithContext(ctx context.Context) AquaLabelOutput {
return o
}
// The name of the user who created the Aqua label.
func (o AquaLabelOutput) Author() pulumi.StringOutput {
return o.ApplyT(func(v *AquaLabel) pulumi.StringOutput { return v.Author }).(pulumi.StringOutput)
}
// The creation date of the Aqua label.
func (o AquaLabelOutput) Created() pulumi.StringOutput {
return o.ApplyT(func(v *AquaLabel) pulumi.StringOutput { return v.Created }).(pulumi.StringOutput)
}
// Aqua label description.
func (o AquaLabelOutput) Description() pulumi.StringPtrOutput {
return o.ApplyT(func(v *AquaLabel) pulumi.StringPtrOutput { return v.Description }).(pulumi.StringPtrOutput)
}
// Aqua label name.
func (o AquaLabelOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v *AquaLabel) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput)
}
type AquaLabelArrayOutput struct{ *pulumi.OutputState }
func (AquaLabelArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]*AquaLabel)(nil)).Elem()
}
func (o AquaLabelArrayOutput) ToAquaLabelArrayOutput() AquaLabelArrayOutput {
return o
}
func (o AquaLabelArrayOutput) ToAquaLabelArrayOutputWithContext(ctx context.Context) AquaLabelArrayOutput {
return o
}
func (o AquaLabelArrayOutput) Index(i pulumi.IntInput) AquaLabelOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) *AquaLabel {
return vs[0].([]*AquaLabel)[vs[1].(int)]
}).(AquaLabelOutput)
}
type AquaLabelMapOutput struct{ *pulumi.OutputState }
func (AquaLabelMapOutput) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*AquaLabel)(nil)).Elem()
}
func (o AquaLabelMapOutput) ToAquaLabelMapOutput() AquaLabelMapOutput {
return o
}
func (o AquaLabelMapOutput) ToAquaLabelMapOutputWithContext(ctx context.Context) AquaLabelMapOutput {
return o
}
func (o AquaLabelMapOutput) MapIndex(k pulumi.StringInput) AquaLabelOutput {
return pulumi.All(o, k).ApplyT(func(vs []interface{}) *AquaLabel {
return vs[0].(map[string]*AquaLabel)[vs[1].(string)]
}).(AquaLabelOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*AquaLabelInput)(nil)).Elem(), &AquaLabel{})
pulumi.RegisterInputType(reflect.TypeOf((*AquaLabelArrayInput)(nil)).Elem(), AquaLabelArray{})
pulumi.RegisterInputType(reflect.TypeOf((*AquaLabelMapInput)(nil)).Elem(), AquaLabelMap{})
pulumi.RegisterOutputType(AquaLabelOutput{})
pulumi.RegisterOutputType(AquaLabelArrayOutput{})
pulumi.RegisterOutputType(AquaLabelMapOutput{})
}