/
pulumiTypes.go
127 lines (98 loc) · 4.4 KB
/
pulumiTypes.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
// 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 pricing
import (
"context"
"reflect"
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
var _ = internal.GetEnvOrDefault
type GetProductFilter struct {
// Product attribute name that you want to filter on.
Field string `pulumi:"field"`
// Product attribute value that you want to filter on.
Value string `pulumi:"value"`
}
// GetProductFilterInput is an input type that accepts GetProductFilterArgs and GetProductFilterOutput values.
// You can construct a concrete instance of `GetProductFilterInput` via:
//
// GetProductFilterArgs{...}
type GetProductFilterInput interface {
pulumi.Input
ToGetProductFilterOutput() GetProductFilterOutput
ToGetProductFilterOutputWithContext(context.Context) GetProductFilterOutput
}
type GetProductFilterArgs struct {
// Product attribute name that you want to filter on.
Field pulumi.StringInput `pulumi:"field"`
// Product attribute value that you want to filter on.
Value pulumi.StringInput `pulumi:"value"`
}
func (GetProductFilterArgs) ElementType() reflect.Type {
return reflect.TypeOf((*GetProductFilter)(nil)).Elem()
}
func (i GetProductFilterArgs) ToGetProductFilterOutput() GetProductFilterOutput {
return i.ToGetProductFilterOutputWithContext(context.Background())
}
func (i GetProductFilterArgs) ToGetProductFilterOutputWithContext(ctx context.Context) GetProductFilterOutput {
return pulumi.ToOutputWithContext(ctx, i).(GetProductFilterOutput)
}
// GetProductFilterArrayInput is an input type that accepts GetProductFilterArray and GetProductFilterArrayOutput values.
// You can construct a concrete instance of `GetProductFilterArrayInput` via:
//
// GetProductFilterArray{ GetProductFilterArgs{...} }
type GetProductFilterArrayInput interface {
pulumi.Input
ToGetProductFilterArrayOutput() GetProductFilterArrayOutput
ToGetProductFilterArrayOutputWithContext(context.Context) GetProductFilterArrayOutput
}
type GetProductFilterArray []GetProductFilterInput
func (GetProductFilterArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]GetProductFilter)(nil)).Elem()
}
func (i GetProductFilterArray) ToGetProductFilterArrayOutput() GetProductFilterArrayOutput {
return i.ToGetProductFilterArrayOutputWithContext(context.Background())
}
func (i GetProductFilterArray) ToGetProductFilterArrayOutputWithContext(ctx context.Context) GetProductFilterArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(GetProductFilterArrayOutput)
}
type GetProductFilterOutput struct{ *pulumi.OutputState }
func (GetProductFilterOutput) ElementType() reflect.Type {
return reflect.TypeOf((*GetProductFilter)(nil)).Elem()
}
func (o GetProductFilterOutput) ToGetProductFilterOutput() GetProductFilterOutput {
return o
}
func (o GetProductFilterOutput) ToGetProductFilterOutputWithContext(ctx context.Context) GetProductFilterOutput {
return o
}
// Product attribute name that you want to filter on.
func (o GetProductFilterOutput) Field() pulumi.StringOutput {
return o.ApplyT(func(v GetProductFilter) string { return v.Field }).(pulumi.StringOutput)
}
// Product attribute value that you want to filter on.
func (o GetProductFilterOutput) Value() pulumi.StringOutput {
return o.ApplyT(func(v GetProductFilter) string { return v.Value }).(pulumi.StringOutput)
}
type GetProductFilterArrayOutput struct{ *pulumi.OutputState }
func (GetProductFilterArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]GetProductFilter)(nil)).Elem()
}
func (o GetProductFilterArrayOutput) ToGetProductFilterArrayOutput() GetProductFilterArrayOutput {
return o
}
func (o GetProductFilterArrayOutput) ToGetProductFilterArrayOutputWithContext(ctx context.Context) GetProductFilterArrayOutput {
return o
}
func (o GetProductFilterArrayOutput) Index(i pulumi.IntInput) GetProductFilterOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) GetProductFilter {
return vs[0].([]GetProductFilter)[vs[1].(int)]
}).(GetProductFilterOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*GetProductFilterInput)(nil)).Elem(), GetProductFilterArgs{})
pulumi.RegisterInputType(reflect.TypeOf((*GetProductFilterArrayInput)(nil)).Elem(), GetProductFilterArray{})
pulumi.RegisterOutputType(GetProductFilterOutput{})
pulumi.RegisterOutputType(GetProductFilterArrayOutput{})
}