/
botmanCustomDefinedBot.go
229 lines (180 loc) · 8.91 KB
/
botmanCustomDefinedBot.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
// 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 akamai
import (
"context"
"reflect"
"errors"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
type BotmanCustomDefinedBot struct {
pulumi.CustomResourceState
BotId pulumi.StringOutput `pulumi:"botId"`
ConfigId pulumi.IntOutput `pulumi:"configId"`
CustomDefinedBot pulumi.StringOutput `pulumi:"customDefinedBot"`
}
// NewBotmanCustomDefinedBot registers a new resource with the given unique name, arguments, and options.
func NewBotmanCustomDefinedBot(ctx *pulumi.Context,
name string, args *BotmanCustomDefinedBotArgs, opts ...pulumi.ResourceOption) (*BotmanCustomDefinedBot, error) {
if args == nil {
return nil, errors.New("missing one or more required arguments")
}
if args.ConfigId == nil {
return nil, errors.New("invalid value for required argument 'ConfigId'")
}
if args.CustomDefinedBot == nil {
return nil, errors.New("invalid value for required argument 'CustomDefinedBot'")
}
var resource BotmanCustomDefinedBot
err := ctx.RegisterResource("akamai:index/botmanCustomDefinedBot:BotmanCustomDefinedBot", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetBotmanCustomDefinedBot gets an existing BotmanCustomDefinedBot 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 GetBotmanCustomDefinedBot(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *BotmanCustomDefinedBotState, opts ...pulumi.ResourceOption) (*BotmanCustomDefinedBot, error) {
var resource BotmanCustomDefinedBot
err := ctx.ReadResource("akamai:index/botmanCustomDefinedBot:BotmanCustomDefinedBot", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering BotmanCustomDefinedBot resources.
type botmanCustomDefinedBotState struct {
BotId *string `pulumi:"botId"`
ConfigId *int `pulumi:"configId"`
CustomDefinedBot *string `pulumi:"customDefinedBot"`
}
type BotmanCustomDefinedBotState struct {
BotId pulumi.StringPtrInput
ConfigId pulumi.IntPtrInput
CustomDefinedBot pulumi.StringPtrInput
}
func (BotmanCustomDefinedBotState) ElementType() reflect.Type {
return reflect.TypeOf((*botmanCustomDefinedBotState)(nil)).Elem()
}
type botmanCustomDefinedBotArgs struct {
ConfigId int `pulumi:"configId"`
CustomDefinedBot string `pulumi:"customDefinedBot"`
}
// The set of arguments for constructing a BotmanCustomDefinedBot resource.
type BotmanCustomDefinedBotArgs struct {
ConfigId pulumi.IntInput
CustomDefinedBot pulumi.StringInput
}
func (BotmanCustomDefinedBotArgs) ElementType() reflect.Type {
return reflect.TypeOf((*botmanCustomDefinedBotArgs)(nil)).Elem()
}
type BotmanCustomDefinedBotInput interface {
pulumi.Input
ToBotmanCustomDefinedBotOutput() BotmanCustomDefinedBotOutput
ToBotmanCustomDefinedBotOutputWithContext(ctx context.Context) BotmanCustomDefinedBotOutput
}
func (*BotmanCustomDefinedBot) ElementType() reflect.Type {
return reflect.TypeOf((**BotmanCustomDefinedBot)(nil)).Elem()
}
func (i *BotmanCustomDefinedBot) ToBotmanCustomDefinedBotOutput() BotmanCustomDefinedBotOutput {
return i.ToBotmanCustomDefinedBotOutputWithContext(context.Background())
}
func (i *BotmanCustomDefinedBot) ToBotmanCustomDefinedBotOutputWithContext(ctx context.Context) BotmanCustomDefinedBotOutput {
return pulumi.ToOutputWithContext(ctx, i).(BotmanCustomDefinedBotOutput)
}
// BotmanCustomDefinedBotArrayInput is an input type that accepts BotmanCustomDefinedBotArray and BotmanCustomDefinedBotArrayOutput values.
// You can construct a concrete instance of `BotmanCustomDefinedBotArrayInput` via:
//
// BotmanCustomDefinedBotArray{ BotmanCustomDefinedBotArgs{...} }
type BotmanCustomDefinedBotArrayInput interface {
pulumi.Input
ToBotmanCustomDefinedBotArrayOutput() BotmanCustomDefinedBotArrayOutput
ToBotmanCustomDefinedBotArrayOutputWithContext(context.Context) BotmanCustomDefinedBotArrayOutput
}
type BotmanCustomDefinedBotArray []BotmanCustomDefinedBotInput
func (BotmanCustomDefinedBotArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]*BotmanCustomDefinedBot)(nil)).Elem()
}
func (i BotmanCustomDefinedBotArray) ToBotmanCustomDefinedBotArrayOutput() BotmanCustomDefinedBotArrayOutput {
return i.ToBotmanCustomDefinedBotArrayOutputWithContext(context.Background())
}
func (i BotmanCustomDefinedBotArray) ToBotmanCustomDefinedBotArrayOutputWithContext(ctx context.Context) BotmanCustomDefinedBotArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(BotmanCustomDefinedBotArrayOutput)
}
// BotmanCustomDefinedBotMapInput is an input type that accepts BotmanCustomDefinedBotMap and BotmanCustomDefinedBotMapOutput values.
// You can construct a concrete instance of `BotmanCustomDefinedBotMapInput` via:
//
// BotmanCustomDefinedBotMap{ "key": BotmanCustomDefinedBotArgs{...} }
type BotmanCustomDefinedBotMapInput interface {
pulumi.Input
ToBotmanCustomDefinedBotMapOutput() BotmanCustomDefinedBotMapOutput
ToBotmanCustomDefinedBotMapOutputWithContext(context.Context) BotmanCustomDefinedBotMapOutput
}
type BotmanCustomDefinedBotMap map[string]BotmanCustomDefinedBotInput
func (BotmanCustomDefinedBotMap) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*BotmanCustomDefinedBot)(nil)).Elem()
}
func (i BotmanCustomDefinedBotMap) ToBotmanCustomDefinedBotMapOutput() BotmanCustomDefinedBotMapOutput {
return i.ToBotmanCustomDefinedBotMapOutputWithContext(context.Background())
}
func (i BotmanCustomDefinedBotMap) ToBotmanCustomDefinedBotMapOutputWithContext(ctx context.Context) BotmanCustomDefinedBotMapOutput {
return pulumi.ToOutputWithContext(ctx, i).(BotmanCustomDefinedBotMapOutput)
}
type BotmanCustomDefinedBotOutput struct{ *pulumi.OutputState }
func (BotmanCustomDefinedBotOutput) ElementType() reflect.Type {
return reflect.TypeOf((**BotmanCustomDefinedBot)(nil)).Elem()
}
func (o BotmanCustomDefinedBotOutput) ToBotmanCustomDefinedBotOutput() BotmanCustomDefinedBotOutput {
return o
}
func (o BotmanCustomDefinedBotOutput) ToBotmanCustomDefinedBotOutputWithContext(ctx context.Context) BotmanCustomDefinedBotOutput {
return o
}
func (o BotmanCustomDefinedBotOutput) BotId() pulumi.StringOutput {
return o.ApplyT(func(v *BotmanCustomDefinedBot) pulumi.StringOutput { return v.BotId }).(pulumi.StringOutput)
}
func (o BotmanCustomDefinedBotOutput) ConfigId() pulumi.IntOutput {
return o.ApplyT(func(v *BotmanCustomDefinedBot) pulumi.IntOutput { return v.ConfigId }).(pulumi.IntOutput)
}
func (o BotmanCustomDefinedBotOutput) CustomDefinedBot() pulumi.StringOutput {
return o.ApplyT(func(v *BotmanCustomDefinedBot) pulumi.StringOutput { return v.CustomDefinedBot }).(pulumi.StringOutput)
}
type BotmanCustomDefinedBotArrayOutput struct{ *pulumi.OutputState }
func (BotmanCustomDefinedBotArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]*BotmanCustomDefinedBot)(nil)).Elem()
}
func (o BotmanCustomDefinedBotArrayOutput) ToBotmanCustomDefinedBotArrayOutput() BotmanCustomDefinedBotArrayOutput {
return o
}
func (o BotmanCustomDefinedBotArrayOutput) ToBotmanCustomDefinedBotArrayOutputWithContext(ctx context.Context) BotmanCustomDefinedBotArrayOutput {
return o
}
func (o BotmanCustomDefinedBotArrayOutput) Index(i pulumi.IntInput) BotmanCustomDefinedBotOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) *BotmanCustomDefinedBot {
return vs[0].([]*BotmanCustomDefinedBot)[vs[1].(int)]
}).(BotmanCustomDefinedBotOutput)
}
type BotmanCustomDefinedBotMapOutput struct{ *pulumi.OutputState }
func (BotmanCustomDefinedBotMapOutput) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*BotmanCustomDefinedBot)(nil)).Elem()
}
func (o BotmanCustomDefinedBotMapOutput) ToBotmanCustomDefinedBotMapOutput() BotmanCustomDefinedBotMapOutput {
return o
}
func (o BotmanCustomDefinedBotMapOutput) ToBotmanCustomDefinedBotMapOutputWithContext(ctx context.Context) BotmanCustomDefinedBotMapOutput {
return o
}
func (o BotmanCustomDefinedBotMapOutput) MapIndex(k pulumi.StringInput) BotmanCustomDefinedBotOutput {
return pulumi.All(o, k).ApplyT(func(vs []interface{}) *BotmanCustomDefinedBot {
return vs[0].(map[string]*BotmanCustomDefinedBot)[vs[1].(string)]
}).(BotmanCustomDefinedBotOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*BotmanCustomDefinedBotInput)(nil)).Elem(), &BotmanCustomDefinedBot{})
pulumi.RegisterInputType(reflect.TypeOf((*BotmanCustomDefinedBotArrayInput)(nil)).Elem(), BotmanCustomDefinedBotArray{})
pulumi.RegisterInputType(reflect.TypeOf((*BotmanCustomDefinedBotMapInput)(nil)).Elem(), BotmanCustomDefinedBotMap{})
pulumi.RegisterOutputType(BotmanCustomDefinedBotOutput{})
pulumi.RegisterOutputType(BotmanCustomDefinedBotArrayOutput{})
pulumi.RegisterOutputType(BotmanCustomDefinedBotMapOutput{})
}