/
pulumiTypes.go
185 lines (150 loc) · 8.85 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
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
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package advisor
import (
"context"
"reflect"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
type GetRecommendationsRecommendation struct {
// The category of the recommendation.
Category string `pulumi:"category"`
// The description of the issue or the opportunity identified by the recommendation.
Description string `pulumi:"description"`
// The business impact of the recommendation.
Impact string `pulumi:"impact"`
// The name of the Advisor Recommendation.
RecommendationName string `pulumi:"recommendationName"`
// The recommendation type id of the Advisor Recommendation.
RecommendationTypeId string `pulumi:"recommendationTypeId"`
// The name of the identified resource of the Advisor Recommendation.
ResourceName string `pulumi:"resourceName"`
// The type of the identified resource of the Advisor Recommendation.
ResourceType string `pulumi:"resourceType"`
// A list of Advisor Suppression names of the Advisor Recommendation.
SuppressionNames []string `pulumi:"suppressionNames"`
// The most recent time that Advisor checked the validity of the recommendation..
UpdatedTime string `pulumi:"updatedTime"`
}
// GetRecommendationsRecommendationInput is an input type that accepts GetRecommendationsRecommendationArgs and GetRecommendationsRecommendationOutput values.
// You can construct a concrete instance of `GetRecommendationsRecommendationInput` via:
//
// GetRecommendationsRecommendationArgs{...}
type GetRecommendationsRecommendationInput interface {
pulumi.Input
ToGetRecommendationsRecommendationOutput() GetRecommendationsRecommendationOutput
ToGetRecommendationsRecommendationOutputWithContext(context.Context) GetRecommendationsRecommendationOutput
}
type GetRecommendationsRecommendationArgs struct {
// The category of the recommendation.
Category pulumi.StringInput `pulumi:"category"`
// The description of the issue or the opportunity identified by the recommendation.
Description pulumi.StringInput `pulumi:"description"`
// The business impact of the recommendation.
Impact pulumi.StringInput `pulumi:"impact"`
// The name of the Advisor Recommendation.
RecommendationName pulumi.StringInput `pulumi:"recommendationName"`
// The recommendation type id of the Advisor Recommendation.
RecommendationTypeId pulumi.StringInput `pulumi:"recommendationTypeId"`
// The name of the identified resource of the Advisor Recommendation.
ResourceName pulumi.StringInput `pulumi:"resourceName"`
// The type of the identified resource of the Advisor Recommendation.
ResourceType pulumi.StringInput `pulumi:"resourceType"`
// A list of Advisor Suppression names of the Advisor Recommendation.
SuppressionNames pulumi.StringArrayInput `pulumi:"suppressionNames"`
// The most recent time that Advisor checked the validity of the recommendation..
UpdatedTime pulumi.StringInput `pulumi:"updatedTime"`
}
func (GetRecommendationsRecommendationArgs) ElementType() reflect.Type {
return reflect.TypeOf((*GetRecommendationsRecommendation)(nil)).Elem()
}
func (i GetRecommendationsRecommendationArgs) ToGetRecommendationsRecommendationOutput() GetRecommendationsRecommendationOutput {
return i.ToGetRecommendationsRecommendationOutputWithContext(context.Background())
}
func (i GetRecommendationsRecommendationArgs) ToGetRecommendationsRecommendationOutputWithContext(ctx context.Context) GetRecommendationsRecommendationOutput {
return pulumi.ToOutputWithContext(ctx, i).(GetRecommendationsRecommendationOutput)
}
// GetRecommendationsRecommendationArrayInput is an input type that accepts GetRecommendationsRecommendationArray and GetRecommendationsRecommendationArrayOutput values.
// You can construct a concrete instance of `GetRecommendationsRecommendationArrayInput` via:
//
// GetRecommendationsRecommendationArray{ GetRecommendationsRecommendationArgs{...} }
type GetRecommendationsRecommendationArrayInput interface {
pulumi.Input
ToGetRecommendationsRecommendationArrayOutput() GetRecommendationsRecommendationArrayOutput
ToGetRecommendationsRecommendationArrayOutputWithContext(context.Context) GetRecommendationsRecommendationArrayOutput
}
type GetRecommendationsRecommendationArray []GetRecommendationsRecommendationInput
func (GetRecommendationsRecommendationArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]GetRecommendationsRecommendation)(nil)).Elem()
}
func (i GetRecommendationsRecommendationArray) ToGetRecommendationsRecommendationArrayOutput() GetRecommendationsRecommendationArrayOutput {
return i.ToGetRecommendationsRecommendationArrayOutputWithContext(context.Background())
}
func (i GetRecommendationsRecommendationArray) ToGetRecommendationsRecommendationArrayOutputWithContext(ctx context.Context) GetRecommendationsRecommendationArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(GetRecommendationsRecommendationArrayOutput)
}
type GetRecommendationsRecommendationOutput struct{ *pulumi.OutputState }
func (GetRecommendationsRecommendationOutput) ElementType() reflect.Type {
return reflect.TypeOf((*GetRecommendationsRecommendation)(nil)).Elem()
}
func (o GetRecommendationsRecommendationOutput) ToGetRecommendationsRecommendationOutput() GetRecommendationsRecommendationOutput {
return o
}
func (o GetRecommendationsRecommendationOutput) ToGetRecommendationsRecommendationOutputWithContext(ctx context.Context) GetRecommendationsRecommendationOutput {
return o
}
// The category of the recommendation.
func (o GetRecommendationsRecommendationOutput) Category() pulumi.StringOutput {
return o.ApplyT(func(v GetRecommendationsRecommendation) string { return v.Category }).(pulumi.StringOutput)
}
// The description of the issue or the opportunity identified by the recommendation.
func (o GetRecommendationsRecommendationOutput) Description() pulumi.StringOutput {
return o.ApplyT(func(v GetRecommendationsRecommendation) string { return v.Description }).(pulumi.StringOutput)
}
// The business impact of the recommendation.
func (o GetRecommendationsRecommendationOutput) Impact() pulumi.StringOutput {
return o.ApplyT(func(v GetRecommendationsRecommendation) string { return v.Impact }).(pulumi.StringOutput)
}
// The name of the Advisor Recommendation.
func (o GetRecommendationsRecommendationOutput) RecommendationName() pulumi.StringOutput {
return o.ApplyT(func(v GetRecommendationsRecommendation) string { return v.RecommendationName }).(pulumi.StringOutput)
}
// The recommendation type id of the Advisor Recommendation.
func (o GetRecommendationsRecommendationOutput) RecommendationTypeId() pulumi.StringOutput {
return o.ApplyT(func(v GetRecommendationsRecommendation) string { return v.RecommendationTypeId }).(pulumi.StringOutput)
}
// The name of the identified resource of the Advisor Recommendation.
func (o GetRecommendationsRecommendationOutput) ResourceName() pulumi.StringOutput {
return o.ApplyT(func(v GetRecommendationsRecommendation) string { return v.ResourceName }).(pulumi.StringOutput)
}
// The type of the identified resource of the Advisor Recommendation.
func (o GetRecommendationsRecommendationOutput) ResourceType() pulumi.StringOutput {
return o.ApplyT(func(v GetRecommendationsRecommendation) string { return v.ResourceType }).(pulumi.StringOutput)
}
// A list of Advisor Suppression names of the Advisor Recommendation.
func (o GetRecommendationsRecommendationOutput) SuppressionNames() pulumi.StringArrayOutput {
return o.ApplyT(func(v GetRecommendationsRecommendation) []string { return v.SuppressionNames }).(pulumi.StringArrayOutput)
}
// The most recent time that Advisor checked the validity of the recommendation..
func (o GetRecommendationsRecommendationOutput) UpdatedTime() pulumi.StringOutput {
return o.ApplyT(func(v GetRecommendationsRecommendation) string { return v.UpdatedTime }).(pulumi.StringOutput)
}
type GetRecommendationsRecommendationArrayOutput struct{ *pulumi.OutputState }
func (GetRecommendationsRecommendationArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]GetRecommendationsRecommendation)(nil)).Elem()
}
func (o GetRecommendationsRecommendationArrayOutput) ToGetRecommendationsRecommendationArrayOutput() GetRecommendationsRecommendationArrayOutput {
return o
}
func (o GetRecommendationsRecommendationArrayOutput) ToGetRecommendationsRecommendationArrayOutputWithContext(ctx context.Context) GetRecommendationsRecommendationArrayOutput {
return o
}
func (o GetRecommendationsRecommendationArrayOutput) Index(i pulumi.IntInput) GetRecommendationsRecommendationOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) GetRecommendationsRecommendation {
return vs[0].([]GetRecommendationsRecommendation)[vs[1].(int)]
}).(GetRecommendationsRecommendationOutput)
}
func init() {
pulumi.RegisterOutputType(GetRecommendationsRecommendationOutput{})
pulumi.RegisterOutputType(GetRecommendationsRecommendationArrayOutput{})
}