/
stub.go
192 lines (155 loc) · 7.37 KB
/
stub.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
// Generated by github.com/temporalio/temporal-aws-sdk-generator
// from github.com/aws/aws-sdk-go version 1.35.7
package iotfleethubstub
import (
"github.com/aws/aws-sdk-go/service/iotfleethub"
"go.uber.org/cadence/workflow"
"github.com/banzaicloud/cadence-aws-sdk/clients"
)
// ensure that imports are valid even if not used by the generated code
var _ clients.VoidFuture
type stub struct{}
type CreateApplicationFuture struct {
// public to support Selector.addFuture
Future workflow.Future
}
func (r *CreateApplicationFuture) Get(ctx workflow.Context) (*iotfleethub.CreateApplicationOutput, error) {
var output iotfleethub.CreateApplicationOutput
err := r.Future.Get(ctx, &output)
return &output, err
}
type DeleteApplicationFuture struct {
// public to support Selector.addFuture
Future workflow.Future
}
func (r *DeleteApplicationFuture) Get(ctx workflow.Context) (*iotfleethub.DeleteApplicationOutput, error) {
var output iotfleethub.DeleteApplicationOutput
err := r.Future.Get(ctx, &output)
return &output, err
}
type DescribeApplicationFuture struct {
// public to support Selector.addFuture
Future workflow.Future
}
func (r *DescribeApplicationFuture) Get(ctx workflow.Context) (*iotfleethub.DescribeApplicationOutput, error) {
var output iotfleethub.DescribeApplicationOutput
err := r.Future.Get(ctx, &output)
return &output, err
}
type ListApplicationsFuture struct {
// public to support Selector.addFuture
Future workflow.Future
}
func (r *ListApplicationsFuture) Get(ctx workflow.Context) (*iotfleethub.ListApplicationsOutput, error) {
var output iotfleethub.ListApplicationsOutput
err := r.Future.Get(ctx, &output)
return &output, err
}
type ListTagsForResourceFuture struct {
// public to support Selector.addFuture
Future workflow.Future
}
func (r *ListTagsForResourceFuture) Get(ctx workflow.Context) (*iotfleethub.ListTagsForResourceOutput, error) {
var output iotfleethub.ListTagsForResourceOutput
err := r.Future.Get(ctx, &output)
return &output, err
}
type TagResourceFuture struct {
// public to support Selector.addFuture
Future workflow.Future
}
func (r *TagResourceFuture) Get(ctx workflow.Context) (*iotfleethub.TagResourceOutput, error) {
var output iotfleethub.TagResourceOutput
err := r.Future.Get(ctx, &output)
return &output, err
}
type UntagResourceFuture struct {
// public to support Selector.addFuture
Future workflow.Future
}
func (r *UntagResourceFuture) Get(ctx workflow.Context) (*iotfleethub.UntagResourceOutput, error) {
var output iotfleethub.UntagResourceOutput
err := r.Future.Get(ctx, &output)
return &output, err
}
type UpdateApplicationFuture struct {
// public to support Selector.addFuture
Future workflow.Future
}
func (r *UpdateApplicationFuture) Get(ctx workflow.Context) (*iotfleethub.UpdateApplicationOutput, error) {
var output iotfleethub.UpdateApplicationOutput
err := r.Future.Get(ctx, &output)
return &output, err
}
func (a *stub) CreateApplication(ctx workflow.Context, input *iotfleethub.CreateApplicationInput) (*iotfleethub.CreateApplicationOutput, error) {
var output iotfleethub.CreateApplicationOutput
err := workflow.ExecuteActivity(ctx, "aws-iotfleethub-CreateApplication", input).Get(ctx, &output)
return &output, err
}
func (a *stub) CreateApplicationAsync(ctx workflow.Context, input *iotfleethub.CreateApplicationInput) *CreateApplicationFuture {
future := workflow.ExecuteActivity(ctx, "aws-iotfleethub-CreateApplication", input)
return &CreateApplicationFuture{Future: future}
}
func (a *stub) DeleteApplication(ctx workflow.Context, input *iotfleethub.DeleteApplicationInput) (*iotfleethub.DeleteApplicationOutput, error) {
var output iotfleethub.DeleteApplicationOutput
err := workflow.ExecuteActivity(ctx, "aws-iotfleethub-DeleteApplication", input).Get(ctx, &output)
return &output, err
}
func (a *stub) DeleteApplicationAsync(ctx workflow.Context, input *iotfleethub.DeleteApplicationInput) *DeleteApplicationFuture {
future := workflow.ExecuteActivity(ctx, "aws-iotfleethub-DeleteApplication", input)
return &DeleteApplicationFuture{Future: future}
}
func (a *stub) DescribeApplication(ctx workflow.Context, input *iotfleethub.DescribeApplicationInput) (*iotfleethub.DescribeApplicationOutput, error) {
var output iotfleethub.DescribeApplicationOutput
err := workflow.ExecuteActivity(ctx, "aws-iotfleethub-DescribeApplication", input).Get(ctx, &output)
return &output, err
}
func (a *stub) DescribeApplicationAsync(ctx workflow.Context, input *iotfleethub.DescribeApplicationInput) *DescribeApplicationFuture {
future := workflow.ExecuteActivity(ctx, "aws-iotfleethub-DescribeApplication", input)
return &DescribeApplicationFuture{Future: future}
}
func (a *stub) ListApplications(ctx workflow.Context, input *iotfleethub.ListApplicationsInput) (*iotfleethub.ListApplicationsOutput, error) {
var output iotfleethub.ListApplicationsOutput
err := workflow.ExecuteActivity(ctx, "aws-iotfleethub-ListApplications", input).Get(ctx, &output)
return &output, err
}
func (a *stub) ListApplicationsAsync(ctx workflow.Context, input *iotfleethub.ListApplicationsInput) *ListApplicationsFuture {
future := workflow.ExecuteActivity(ctx, "aws-iotfleethub-ListApplications", input)
return &ListApplicationsFuture{Future: future}
}
func (a *stub) ListTagsForResource(ctx workflow.Context, input *iotfleethub.ListTagsForResourceInput) (*iotfleethub.ListTagsForResourceOutput, error) {
var output iotfleethub.ListTagsForResourceOutput
err := workflow.ExecuteActivity(ctx, "aws-iotfleethub-ListTagsForResource", input).Get(ctx, &output)
return &output, err
}
func (a *stub) ListTagsForResourceAsync(ctx workflow.Context, input *iotfleethub.ListTagsForResourceInput) *ListTagsForResourceFuture {
future := workflow.ExecuteActivity(ctx, "aws-iotfleethub-ListTagsForResource", input)
return &ListTagsForResourceFuture{Future: future}
}
func (a *stub) TagResource(ctx workflow.Context, input *iotfleethub.TagResourceInput) (*iotfleethub.TagResourceOutput, error) {
var output iotfleethub.TagResourceOutput
err := workflow.ExecuteActivity(ctx, "aws-iotfleethub-TagResource", input).Get(ctx, &output)
return &output, err
}
func (a *stub) TagResourceAsync(ctx workflow.Context, input *iotfleethub.TagResourceInput) *TagResourceFuture {
future := workflow.ExecuteActivity(ctx, "aws-iotfleethub-TagResource", input)
return &TagResourceFuture{Future: future}
}
func (a *stub) UntagResource(ctx workflow.Context, input *iotfleethub.UntagResourceInput) (*iotfleethub.UntagResourceOutput, error) {
var output iotfleethub.UntagResourceOutput
err := workflow.ExecuteActivity(ctx, "aws-iotfleethub-UntagResource", input).Get(ctx, &output)
return &output, err
}
func (a *stub) UntagResourceAsync(ctx workflow.Context, input *iotfleethub.UntagResourceInput) *UntagResourceFuture {
future := workflow.ExecuteActivity(ctx, "aws-iotfleethub-UntagResource", input)
return &UntagResourceFuture{Future: future}
}
func (a *stub) UpdateApplication(ctx workflow.Context, input *iotfleethub.UpdateApplicationInput) (*iotfleethub.UpdateApplicationOutput, error) {
var output iotfleethub.UpdateApplicationOutput
err := workflow.ExecuteActivity(ctx, "aws-iotfleethub-UpdateApplication", input).Get(ctx, &output)
return &output, err
}
func (a *stub) UpdateApplicationAsync(ctx workflow.Context, input *iotfleethub.UpdateApplicationInput) *UpdateApplicationFuture {
future := workflow.ExecuteActivity(ctx, "aws-iotfleethub-UpdateApplication", input)
return &UpdateApplicationFuture{Future: future}
}