forked from aws/aws-sdk-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
api.go
4154 lines (3347 loc) · 143 KB
/
api.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
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
// Package autoscaling provides a client for Auto Scaling.
package autoscaling
import (
"sync"
"time"
"github.com/aws/aws-sdk-go/aws"
)
var oprw sync.Mutex
// AttachInstancesRequest generates a request for the AttachInstances operation.
func (c *AutoScaling) AttachInstancesRequest(input *AttachInstancesInput) (req *aws.Request, output *AttachInstancesOutput) {
oprw.Lock()
defer oprw.Unlock()
if opAttachInstances == nil {
opAttachInstances = &aws.Operation{
Name: "AttachInstances",
HTTPMethod: "POST",
HTTPPath: "/",
}
}
if input == nil {
input = &AttachInstancesInput{}
}
req = c.newRequest(opAttachInstances, input, output)
output = &AttachInstancesOutput{}
req.Data = output
return
}
// Attaches one or more EC2 instances to the specified Auto Scaling group.
//
// For more information, see Attach Amazon EC2 Instances to Your Existing Auto
// Scaling Group (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/attach-instance-asg.html)
// in the Auto Scaling Developer Guide.
func (c *AutoScaling) AttachInstances(input *AttachInstancesInput) (*AttachInstancesOutput, error) {
req, out := c.AttachInstancesRequest(input)
err := req.Send()
return out, err
}
var opAttachInstances *aws.Operation
// CompleteLifecycleActionRequest generates a request for the CompleteLifecycleAction operation.
func (c *AutoScaling) CompleteLifecycleActionRequest(input *CompleteLifecycleActionInput) (req *aws.Request, output *CompleteLifecycleActionOutput) {
oprw.Lock()
defer oprw.Unlock()
if opCompleteLifecycleAction == nil {
opCompleteLifecycleAction = &aws.Operation{
Name: "CompleteLifecycleAction",
HTTPMethod: "POST",
HTTPPath: "/",
}
}
if input == nil {
input = &CompleteLifecycleActionInput{}
}
req = c.newRequest(opCompleteLifecycleAction, input, output)
output = &CompleteLifecycleActionOutput{}
req.Data = output
return
}
// Completes the lifecycle action for the associated token initiated under the
// given lifecycle hook with the specified result.
//
// This operation is a part of the basic sequence for adding a lifecycle hook
// to an Auto Scaling group:
//
// Create a notification target. A target can be either an Amazon SQS queue
// or an Amazon SNS topic. Create an IAM role. This role allows Auto Scaling
// to publish lifecycle notifications to the designated SQS queue or SNS topic.
// Create the lifecycle hook. You can create a hook that acts when instances
// launch or when instances terminate. If necessary, record the lifecycle action
// heartbeat to keep the instance in a pending state. Complete the lifecycle
// action. For more information, see Auto Scaling Pending State (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/AutoScalingPendingState.html)
// and Auto Scaling Terminating State (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/AutoScalingTerminatingState.html)
// in the Auto Scaling Developer Guide.
func (c *AutoScaling) CompleteLifecycleAction(input *CompleteLifecycleActionInput) (*CompleteLifecycleActionOutput, error) {
req, out := c.CompleteLifecycleActionRequest(input)
err := req.Send()
return out, err
}
var opCompleteLifecycleAction *aws.Operation
// CreateAutoScalingGroupRequest generates a request for the CreateAutoScalingGroup operation.
func (c *AutoScaling) CreateAutoScalingGroupRequest(input *CreateAutoScalingGroupInput) (req *aws.Request, output *CreateAutoScalingGroupOutput) {
oprw.Lock()
defer oprw.Unlock()
if opCreateAutoScalingGroup == nil {
opCreateAutoScalingGroup = &aws.Operation{
Name: "CreateAutoScalingGroup",
HTTPMethod: "POST",
HTTPPath: "/",
}
}
if input == nil {
input = &CreateAutoScalingGroupInput{}
}
req = c.newRequest(opCreateAutoScalingGroup, input, output)
output = &CreateAutoScalingGroupOutput{}
req.Data = output
return
}
// Creates an Auto Scaling group with the specified name and attributes.
//
// If you exceed your maximum limit of Auto Scaling groups, which by default
// is 20 per region, the call fails. For information about viewing and updating
// these limits, see DescribeAccountLimits.
func (c *AutoScaling) CreateAutoScalingGroup(input *CreateAutoScalingGroupInput) (*CreateAutoScalingGroupOutput, error) {
req, out := c.CreateAutoScalingGroupRequest(input)
err := req.Send()
return out, err
}
var opCreateAutoScalingGroup *aws.Operation
// CreateLaunchConfigurationRequest generates a request for the CreateLaunchConfiguration operation.
func (c *AutoScaling) CreateLaunchConfigurationRequest(input *CreateLaunchConfigurationInput) (req *aws.Request, output *CreateLaunchConfigurationOutput) {
oprw.Lock()
defer oprw.Unlock()
if opCreateLaunchConfiguration == nil {
opCreateLaunchConfiguration = &aws.Operation{
Name: "CreateLaunchConfiguration",
HTTPMethod: "POST",
HTTPPath: "/",
}
}
if input == nil {
input = &CreateLaunchConfigurationInput{}
}
req = c.newRequest(opCreateLaunchConfiguration, input, output)
output = &CreateLaunchConfigurationOutput{}
req.Data = output
return
}
// Creates a launch configuration.
//
// If you exceed your maximum limit of launch configurations, which by default
// is 100 per region, the call fails. For information about viewing and updating
// these limits, see DescribeAccountLimits.
func (c *AutoScaling) CreateLaunchConfiguration(input *CreateLaunchConfigurationInput) (*CreateLaunchConfigurationOutput, error) {
req, out := c.CreateLaunchConfigurationRequest(input)
err := req.Send()
return out, err
}
var opCreateLaunchConfiguration *aws.Operation
// CreateOrUpdateTagsRequest generates a request for the CreateOrUpdateTags operation.
func (c *AutoScaling) CreateOrUpdateTagsRequest(input *CreateOrUpdateTagsInput) (req *aws.Request, output *CreateOrUpdateTagsOutput) {
oprw.Lock()
defer oprw.Unlock()
if opCreateOrUpdateTags == nil {
opCreateOrUpdateTags = &aws.Operation{
Name: "CreateOrUpdateTags",
HTTPMethod: "POST",
HTTPPath: "/",
}
}
if input == nil {
input = &CreateOrUpdateTagsInput{}
}
req = c.newRequest(opCreateOrUpdateTags, input, output)
output = &CreateOrUpdateTagsOutput{}
req.Data = output
return
}
// Creates or updates tags for the specified Auto Scaling group.
//
// A tag's definition is composed of a resource ID, resource type, key and
// value, and the propagate flag. Value and the propagate flag are optional
// parameters. See the Request Parameters for more information. For more information,
// see Add, Modify, or Remove Auto Scaling Group Tags (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/ASTagging.html)
// in the Auto Scaling Developer Guide.
func (c *AutoScaling) CreateOrUpdateTags(input *CreateOrUpdateTagsInput) (*CreateOrUpdateTagsOutput, error) {
req, out := c.CreateOrUpdateTagsRequest(input)
err := req.Send()
return out, err
}
var opCreateOrUpdateTags *aws.Operation
// DeleteAutoScalingGroupRequest generates a request for the DeleteAutoScalingGroup operation.
func (c *AutoScaling) DeleteAutoScalingGroupRequest(input *DeleteAutoScalingGroupInput) (req *aws.Request, output *DeleteAutoScalingGroupOutput) {
oprw.Lock()
defer oprw.Unlock()
if opDeleteAutoScalingGroup == nil {
opDeleteAutoScalingGroup = &aws.Operation{
Name: "DeleteAutoScalingGroup",
HTTPMethod: "POST",
HTTPPath: "/",
}
}
if input == nil {
input = &DeleteAutoScalingGroupInput{}
}
req = c.newRequest(opDeleteAutoScalingGroup, input, output)
output = &DeleteAutoScalingGroupOutput{}
req.Data = output
return
}
// Deletes the specified Auto Scaling group.
//
// The group must have no instances and no scaling activities in progress.
//
// To remove all instances before calling DeleteAutoScalingGroup, you can call
// UpdateAutoScalingGroup to set the minimum and maximum size of the AutoScalingGroup
// to zero.
func (c *AutoScaling) DeleteAutoScalingGroup(input *DeleteAutoScalingGroupInput) (*DeleteAutoScalingGroupOutput, error) {
req, out := c.DeleteAutoScalingGroupRequest(input)
err := req.Send()
return out, err
}
var opDeleteAutoScalingGroup *aws.Operation
// DeleteLaunchConfigurationRequest generates a request for the DeleteLaunchConfiguration operation.
func (c *AutoScaling) DeleteLaunchConfigurationRequest(input *DeleteLaunchConfigurationInput) (req *aws.Request, output *DeleteLaunchConfigurationOutput) {
oprw.Lock()
defer oprw.Unlock()
if opDeleteLaunchConfiguration == nil {
opDeleteLaunchConfiguration = &aws.Operation{
Name: "DeleteLaunchConfiguration",
HTTPMethod: "POST",
HTTPPath: "/",
}
}
if input == nil {
input = &DeleteLaunchConfigurationInput{}
}
req = c.newRequest(opDeleteLaunchConfiguration, input, output)
output = &DeleteLaunchConfigurationOutput{}
req.Data = output
return
}
// Deletes the specified launch configuration.
//
// The launch configuration must not be attached to an Auto Scaling group.
// When this call completes, the launch configuration is no longer available
// for use.
func (c *AutoScaling) DeleteLaunchConfiguration(input *DeleteLaunchConfigurationInput) (*DeleteLaunchConfigurationOutput, error) {
req, out := c.DeleteLaunchConfigurationRequest(input)
err := req.Send()
return out, err
}
var opDeleteLaunchConfiguration *aws.Operation
// DeleteLifecycleHookRequest generates a request for the DeleteLifecycleHook operation.
func (c *AutoScaling) DeleteLifecycleHookRequest(input *DeleteLifecycleHookInput) (req *aws.Request, output *DeleteLifecycleHookOutput) {
oprw.Lock()
defer oprw.Unlock()
if opDeleteLifecycleHook == nil {
opDeleteLifecycleHook = &aws.Operation{
Name: "DeleteLifecycleHook",
HTTPMethod: "POST",
HTTPPath: "/",
}
}
if input == nil {
input = &DeleteLifecycleHookInput{}
}
req = c.newRequest(opDeleteLifecycleHook, input, output)
output = &DeleteLifecycleHookOutput{}
req.Data = output
return
}
// Deletes the specified lifecycle hook.
//
// If there are any outstanding lifecycle actions, they are completed first
// (ABANDON for launching instances, CONTINUE for terminating instances).
func (c *AutoScaling) DeleteLifecycleHook(input *DeleteLifecycleHookInput) (*DeleteLifecycleHookOutput, error) {
req, out := c.DeleteLifecycleHookRequest(input)
err := req.Send()
return out, err
}
var opDeleteLifecycleHook *aws.Operation
// DeleteNotificationConfigurationRequest generates a request for the DeleteNotificationConfiguration operation.
func (c *AutoScaling) DeleteNotificationConfigurationRequest(input *DeleteNotificationConfigurationInput) (req *aws.Request, output *DeleteNotificationConfigurationOutput) {
oprw.Lock()
defer oprw.Unlock()
if opDeleteNotificationConfiguration == nil {
opDeleteNotificationConfiguration = &aws.Operation{
Name: "DeleteNotificationConfiguration",
HTTPMethod: "POST",
HTTPPath: "/",
}
}
if input == nil {
input = &DeleteNotificationConfigurationInput{}
}
req = c.newRequest(opDeleteNotificationConfiguration, input, output)
output = &DeleteNotificationConfigurationOutput{}
req.Data = output
return
}
// Deletes the specified notification.
func (c *AutoScaling) DeleteNotificationConfiguration(input *DeleteNotificationConfigurationInput) (*DeleteNotificationConfigurationOutput, error) {
req, out := c.DeleteNotificationConfigurationRequest(input)
err := req.Send()
return out, err
}
var opDeleteNotificationConfiguration *aws.Operation
// DeletePolicyRequest generates a request for the DeletePolicy operation.
func (c *AutoScaling) DeletePolicyRequest(input *DeletePolicyInput) (req *aws.Request, output *DeletePolicyOutput) {
oprw.Lock()
defer oprw.Unlock()
if opDeletePolicy == nil {
opDeletePolicy = &aws.Operation{
Name: "DeletePolicy",
HTTPMethod: "POST",
HTTPPath: "/",
}
}
if input == nil {
input = &DeletePolicyInput{}
}
req = c.newRequest(opDeletePolicy, input, output)
output = &DeletePolicyOutput{}
req.Data = output
return
}
// Deletes the specified Auto Scaling policy.
func (c *AutoScaling) DeletePolicy(input *DeletePolicyInput) (*DeletePolicyOutput, error) {
req, out := c.DeletePolicyRequest(input)
err := req.Send()
return out, err
}
var opDeletePolicy *aws.Operation
// DeleteScheduledActionRequest generates a request for the DeleteScheduledAction operation.
func (c *AutoScaling) DeleteScheduledActionRequest(input *DeleteScheduledActionInput) (req *aws.Request, output *DeleteScheduledActionOutput) {
oprw.Lock()
defer oprw.Unlock()
if opDeleteScheduledAction == nil {
opDeleteScheduledAction = &aws.Operation{
Name: "DeleteScheduledAction",
HTTPMethod: "POST",
HTTPPath: "/",
}
}
if input == nil {
input = &DeleteScheduledActionInput{}
}
req = c.newRequest(opDeleteScheduledAction, input, output)
output = &DeleteScheduledActionOutput{}
req.Data = output
return
}
// Deletes the specified scheduled action.
func (c *AutoScaling) DeleteScheduledAction(input *DeleteScheduledActionInput) (*DeleteScheduledActionOutput, error) {
req, out := c.DeleteScheduledActionRequest(input)
err := req.Send()
return out, err
}
var opDeleteScheduledAction *aws.Operation
// DeleteTagsRequest generates a request for the DeleteTags operation.
func (c *AutoScaling) DeleteTagsRequest(input *DeleteTagsInput) (req *aws.Request, output *DeleteTagsOutput) {
oprw.Lock()
defer oprw.Unlock()
if opDeleteTags == nil {
opDeleteTags = &aws.Operation{
Name: "DeleteTags",
HTTPMethod: "POST",
HTTPPath: "/",
}
}
if input == nil {
input = &DeleteTagsInput{}
}
req = c.newRequest(opDeleteTags, input, output)
output = &DeleteTagsOutput{}
req.Data = output
return
}
// Deletes the specified tags.
func (c *AutoScaling) DeleteTags(input *DeleteTagsInput) (*DeleteTagsOutput, error) {
req, out := c.DeleteTagsRequest(input)
err := req.Send()
return out, err
}
var opDeleteTags *aws.Operation
// DescribeAccountLimitsRequest generates a request for the DescribeAccountLimits operation.
func (c *AutoScaling) DescribeAccountLimitsRequest(input *DescribeAccountLimitsInput) (req *aws.Request, output *DescribeAccountLimitsOutput) {
oprw.Lock()
defer oprw.Unlock()
if opDescribeAccountLimits == nil {
opDescribeAccountLimits = &aws.Operation{
Name: "DescribeAccountLimits",
HTTPMethod: "POST",
HTTPPath: "/",
}
}
if input == nil {
input = &DescribeAccountLimitsInput{}
}
req = c.newRequest(opDescribeAccountLimits, input, output)
output = &DescribeAccountLimitsOutput{}
req.Data = output
return
}
// Describes the current Auto Scaling resource limits for your AWS account.
//
// For information about requesting an increase in these limits, see AWS Service
// Limits (http://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html).
func (c *AutoScaling) DescribeAccountLimits(input *DescribeAccountLimitsInput) (*DescribeAccountLimitsOutput, error) {
req, out := c.DescribeAccountLimitsRequest(input)
err := req.Send()
return out, err
}
var opDescribeAccountLimits *aws.Operation
// DescribeAdjustmentTypesRequest generates a request for the DescribeAdjustmentTypes operation.
func (c *AutoScaling) DescribeAdjustmentTypesRequest(input *DescribeAdjustmentTypesInput) (req *aws.Request, output *DescribeAdjustmentTypesOutput) {
oprw.Lock()
defer oprw.Unlock()
if opDescribeAdjustmentTypes == nil {
opDescribeAdjustmentTypes = &aws.Operation{
Name: "DescribeAdjustmentTypes",
HTTPMethod: "POST",
HTTPPath: "/",
}
}
if input == nil {
input = &DescribeAdjustmentTypesInput{}
}
req = c.newRequest(opDescribeAdjustmentTypes, input, output)
output = &DescribeAdjustmentTypesOutput{}
req.Data = output
return
}
// Lists the policy adjustment types for use with PutScalingPolicy.
func (c *AutoScaling) DescribeAdjustmentTypes(input *DescribeAdjustmentTypesInput) (*DescribeAdjustmentTypesOutput, error) {
req, out := c.DescribeAdjustmentTypesRequest(input)
err := req.Send()
return out, err
}
var opDescribeAdjustmentTypes *aws.Operation
// DescribeAutoScalingGroupsRequest generates a request for the DescribeAutoScalingGroups operation.
func (c *AutoScaling) DescribeAutoScalingGroupsRequest(input *DescribeAutoScalingGroupsInput) (req *aws.Request, output *DescribeAutoScalingGroupsOutput) {
oprw.Lock()
defer oprw.Unlock()
if opDescribeAutoScalingGroups == nil {
opDescribeAutoScalingGroups = &aws.Operation{
Name: "DescribeAutoScalingGroups",
HTTPMethod: "POST",
HTTPPath: "/",
Paginator: &aws.Paginator{
InputTokens: []string{"NextToken"},
OutputTokens: []string{"NextToken"},
LimitToken: "MaxRecords",
TruncationToken: "",
},
}
}
if input == nil {
input = &DescribeAutoScalingGroupsInput{}
}
req = c.newRequest(opDescribeAutoScalingGroups, input, output)
output = &DescribeAutoScalingGroupsOutput{}
req.Data = output
return
}
// Describes one or more Auto Scaling groups. If a list of names is not provided,
// the call describes all Auto Scaling groups.
//
// You can specify a maximum number of items to be returned with a single call.
// If there are more items to return, the call returns a token. To get the next
// set of items, repeat the call with the returned token in the NextToken parameter.
func (c *AutoScaling) DescribeAutoScalingGroups(input *DescribeAutoScalingGroupsInput) (*DescribeAutoScalingGroupsOutput, error) {
req, out := c.DescribeAutoScalingGroupsRequest(input)
err := req.Send()
return out, err
}
func (c *AutoScaling) DescribeAutoScalingGroupsPages(input *DescribeAutoScalingGroupsInput, fn func(p *DescribeAutoScalingGroupsOutput, lastPage bool) (shouldContinue bool)) error {
page, _ := c.DescribeAutoScalingGroupsRequest(input)
return page.EachPage(func(p interface{}, lastPage bool) bool {
return fn(p.(*DescribeAutoScalingGroupsOutput), lastPage)
})
}
var opDescribeAutoScalingGroups *aws.Operation
// DescribeAutoScalingInstancesRequest generates a request for the DescribeAutoScalingInstances operation.
func (c *AutoScaling) DescribeAutoScalingInstancesRequest(input *DescribeAutoScalingInstancesInput) (req *aws.Request, output *DescribeAutoScalingInstancesOutput) {
oprw.Lock()
defer oprw.Unlock()
if opDescribeAutoScalingInstances == nil {
opDescribeAutoScalingInstances = &aws.Operation{
Name: "DescribeAutoScalingInstances",
HTTPMethod: "POST",
HTTPPath: "/",
Paginator: &aws.Paginator{
InputTokens: []string{"NextToken"},
OutputTokens: []string{"NextToken"},
LimitToken: "MaxRecords",
TruncationToken: "",
},
}
}
if input == nil {
input = &DescribeAutoScalingInstancesInput{}
}
req = c.newRequest(opDescribeAutoScalingInstances, input, output)
output = &DescribeAutoScalingInstancesOutput{}
req.Data = output
return
}
// Describes one or more Auto Scaling instances. If a list is not provided,
// the call describes all instances.
//
// You can describe up to a maximum of 50 instances with a single call. By
// default, a call returns up to 20 instances. If there are more items to return,
// the call returns a token. To get the next set of items, repeat the call with
// the returned token in the NextToken parameter.
func (c *AutoScaling) DescribeAutoScalingInstances(input *DescribeAutoScalingInstancesInput) (*DescribeAutoScalingInstancesOutput, error) {
req, out := c.DescribeAutoScalingInstancesRequest(input)
err := req.Send()
return out, err
}
func (c *AutoScaling) DescribeAutoScalingInstancesPages(input *DescribeAutoScalingInstancesInput, fn func(p *DescribeAutoScalingInstancesOutput, lastPage bool) (shouldContinue bool)) error {
page, _ := c.DescribeAutoScalingInstancesRequest(input)
return page.EachPage(func(p interface{}, lastPage bool) bool {
return fn(p.(*DescribeAutoScalingInstancesOutput), lastPage)
})
}
var opDescribeAutoScalingInstances *aws.Operation
// DescribeAutoScalingNotificationTypesRequest generates a request for the DescribeAutoScalingNotificationTypes operation.
func (c *AutoScaling) DescribeAutoScalingNotificationTypesRequest(input *DescribeAutoScalingNotificationTypesInput) (req *aws.Request, output *DescribeAutoScalingNotificationTypesOutput) {
oprw.Lock()
defer oprw.Unlock()
if opDescribeAutoScalingNotificationTypes == nil {
opDescribeAutoScalingNotificationTypes = &aws.Operation{
Name: "DescribeAutoScalingNotificationTypes",
HTTPMethod: "POST",
HTTPPath: "/",
}
}
if input == nil {
input = &DescribeAutoScalingNotificationTypesInput{}
}
req = c.newRequest(opDescribeAutoScalingNotificationTypes, input, output)
output = &DescribeAutoScalingNotificationTypesOutput{}
req.Data = output
return
}
// Lists the notification types that are supported by Auto Scaling.
func (c *AutoScaling) DescribeAutoScalingNotificationTypes(input *DescribeAutoScalingNotificationTypesInput) (*DescribeAutoScalingNotificationTypesOutput, error) {
req, out := c.DescribeAutoScalingNotificationTypesRequest(input)
err := req.Send()
return out, err
}
var opDescribeAutoScalingNotificationTypes *aws.Operation
// DescribeLaunchConfigurationsRequest generates a request for the DescribeLaunchConfigurations operation.
func (c *AutoScaling) DescribeLaunchConfigurationsRequest(input *DescribeLaunchConfigurationsInput) (req *aws.Request, output *DescribeLaunchConfigurationsOutput) {
oprw.Lock()
defer oprw.Unlock()
if opDescribeLaunchConfigurations == nil {
opDescribeLaunchConfigurations = &aws.Operation{
Name: "DescribeLaunchConfigurations",
HTTPMethod: "POST",
HTTPPath: "/",
Paginator: &aws.Paginator{
InputTokens: []string{"NextToken"},
OutputTokens: []string{"NextToken"},
LimitToken: "MaxRecords",
TruncationToken: "",
},
}
}
if input == nil {
input = &DescribeLaunchConfigurationsInput{}
}
req = c.newRequest(opDescribeLaunchConfigurations, input, output)
output = &DescribeLaunchConfigurationsOutput{}
req.Data = output
return
}
// Describes one or more launch configurations. If you omit the list of names,
// then the call describes all launch configurations.
//
// You can specify a maximum number of items to be returned with a single call.
// If there are more items to return, the call returns a token. To get the next
// set of items, repeat the call with the returned token in the NextToken parameter.
func (c *AutoScaling) DescribeLaunchConfigurations(input *DescribeLaunchConfigurationsInput) (*DescribeLaunchConfigurationsOutput, error) {
req, out := c.DescribeLaunchConfigurationsRequest(input)
err := req.Send()
return out, err
}
func (c *AutoScaling) DescribeLaunchConfigurationsPages(input *DescribeLaunchConfigurationsInput, fn func(p *DescribeLaunchConfigurationsOutput, lastPage bool) (shouldContinue bool)) error {
page, _ := c.DescribeLaunchConfigurationsRequest(input)
return page.EachPage(func(p interface{}, lastPage bool) bool {
return fn(p.(*DescribeLaunchConfigurationsOutput), lastPage)
})
}
var opDescribeLaunchConfigurations *aws.Operation
// DescribeLifecycleHookTypesRequest generates a request for the DescribeLifecycleHookTypes operation.
func (c *AutoScaling) DescribeLifecycleHookTypesRequest(input *DescribeLifecycleHookTypesInput) (req *aws.Request, output *DescribeLifecycleHookTypesOutput) {
oprw.Lock()
defer oprw.Unlock()
if opDescribeLifecycleHookTypes == nil {
opDescribeLifecycleHookTypes = &aws.Operation{
Name: "DescribeLifecycleHookTypes",
HTTPMethod: "POST",
HTTPPath: "/",
}
}
if input == nil {
input = &DescribeLifecycleHookTypesInput{}
}
req = c.newRequest(opDescribeLifecycleHookTypes, input, output)
output = &DescribeLifecycleHookTypesOutput{}
req.Data = output
return
}
// Describes the available types of lifecycle hooks.
func (c *AutoScaling) DescribeLifecycleHookTypes(input *DescribeLifecycleHookTypesInput) (*DescribeLifecycleHookTypesOutput, error) {
req, out := c.DescribeLifecycleHookTypesRequest(input)
err := req.Send()
return out, err
}
var opDescribeLifecycleHookTypes *aws.Operation
// DescribeLifecycleHooksRequest generates a request for the DescribeLifecycleHooks operation.
func (c *AutoScaling) DescribeLifecycleHooksRequest(input *DescribeLifecycleHooksInput) (req *aws.Request, output *DescribeLifecycleHooksOutput) {
oprw.Lock()
defer oprw.Unlock()
if opDescribeLifecycleHooks == nil {
opDescribeLifecycleHooks = &aws.Operation{
Name: "DescribeLifecycleHooks",
HTTPMethod: "POST",
HTTPPath: "/",
}
}
if input == nil {
input = &DescribeLifecycleHooksInput{}
}
req = c.newRequest(opDescribeLifecycleHooks, input, output)
output = &DescribeLifecycleHooksOutput{}
req.Data = output
return
}
// Describes the lifecycle hooks for the specified Auto Scaling group.
func (c *AutoScaling) DescribeLifecycleHooks(input *DescribeLifecycleHooksInput) (*DescribeLifecycleHooksOutput, error) {
req, out := c.DescribeLifecycleHooksRequest(input)
err := req.Send()
return out, err
}
var opDescribeLifecycleHooks *aws.Operation
// DescribeMetricCollectionTypesRequest generates a request for the DescribeMetricCollectionTypes operation.
func (c *AutoScaling) DescribeMetricCollectionTypesRequest(input *DescribeMetricCollectionTypesInput) (req *aws.Request, output *DescribeMetricCollectionTypesOutput) {
oprw.Lock()
defer oprw.Unlock()
if opDescribeMetricCollectionTypes == nil {
opDescribeMetricCollectionTypes = &aws.Operation{
Name: "DescribeMetricCollectionTypes",
HTTPMethod: "POST",
HTTPPath: "/",
}
}
if input == nil {
input = &DescribeMetricCollectionTypesInput{}
}
req = c.newRequest(opDescribeMetricCollectionTypes, input, output)
output = &DescribeMetricCollectionTypesOutput{}
req.Data = output
return
}
// Returns a list of metrics and a corresponding list of granularities for each
// metric.
//
// The GroupStandbyInstances metric is not returned by default. You must explicitly
// request it when calling EnableMetricsCollection.
func (c *AutoScaling) DescribeMetricCollectionTypes(input *DescribeMetricCollectionTypesInput) (*DescribeMetricCollectionTypesOutput, error) {
req, out := c.DescribeMetricCollectionTypesRequest(input)
err := req.Send()
return out, err
}
var opDescribeMetricCollectionTypes *aws.Operation
// DescribeNotificationConfigurationsRequest generates a request for the DescribeNotificationConfigurations operation.
func (c *AutoScaling) DescribeNotificationConfigurationsRequest(input *DescribeNotificationConfigurationsInput) (req *aws.Request, output *DescribeNotificationConfigurationsOutput) {
oprw.Lock()
defer oprw.Unlock()
if opDescribeNotificationConfigurations == nil {
opDescribeNotificationConfigurations = &aws.Operation{
Name: "DescribeNotificationConfigurations",
HTTPMethod: "POST",
HTTPPath: "/",
Paginator: &aws.Paginator{
InputTokens: []string{"NextToken"},
OutputTokens: []string{"NextToken"},
LimitToken: "MaxRecords",
TruncationToken: "",
},
}
}
if input == nil {
input = &DescribeNotificationConfigurationsInput{}
}
req = c.newRequest(opDescribeNotificationConfigurations, input, output)
output = &DescribeNotificationConfigurationsOutput{}
req.Data = output
return
}
// Describes the notification actions associated with the specified Auto Scaling
// group.
func (c *AutoScaling) DescribeNotificationConfigurations(input *DescribeNotificationConfigurationsInput) (*DescribeNotificationConfigurationsOutput, error) {
req, out := c.DescribeNotificationConfigurationsRequest(input)
err := req.Send()
return out, err
}
func (c *AutoScaling) DescribeNotificationConfigurationsPages(input *DescribeNotificationConfigurationsInput, fn func(p *DescribeNotificationConfigurationsOutput, lastPage bool) (shouldContinue bool)) error {
page, _ := c.DescribeNotificationConfigurationsRequest(input)
return page.EachPage(func(p interface{}, lastPage bool) bool {
return fn(p.(*DescribeNotificationConfigurationsOutput), lastPage)
})
}
var opDescribeNotificationConfigurations *aws.Operation
// DescribePoliciesRequest generates a request for the DescribePolicies operation.
func (c *AutoScaling) DescribePoliciesRequest(input *DescribePoliciesInput) (req *aws.Request, output *DescribePoliciesOutput) {
oprw.Lock()
defer oprw.Unlock()
if opDescribePolicies == nil {
opDescribePolicies = &aws.Operation{
Name: "DescribePolicies",
HTTPMethod: "POST",
HTTPPath: "/",
Paginator: &aws.Paginator{
InputTokens: []string{"NextToken"},
OutputTokens: []string{"NextToken"},
LimitToken: "MaxRecords",
TruncationToken: "",
},
}
}
if input == nil {
input = &DescribePoliciesInput{}
}
req = c.newRequest(opDescribePolicies, input, output)
output = &DescribePoliciesOutput{}
req.Data = output
return
}
// Describes the policies for the specified Auto Scaling group.
//
// You can specify a maximum number of items to be returned with a single call.
// If there are more items to return, the call returns a token. To get the next
// set of items, repeat the call with the returned token in the NextToken parameter.
func (c *AutoScaling) DescribePolicies(input *DescribePoliciesInput) (*DescribePoliciesOutput, error) {
req, out := c.DescribePoliciesRequest(input)
err := req.Send()
return out, err
}
func (c *AutoScaling) DescribePoliciesPages(input *DescribePoliciesInput, fn func(p *DescribePoliciesOutput, lastPage bool) (shouldContinue bool)) error {
page, _ := c.DescribePoliciesRequest(input)
return page.EachPage(func(p interface{}, lastPage bool) bool {
return fn(p.(*DescribePoliciesOutput), lastPage)
})
}
var opDescribePolicies *aws.Operation
// DescribeScalingActivitiesRequest generates a request for the DescribeScalingActivities operation.
func (c *AutoScaling) DescribeScalingActivitiesRequest(input *DescribeScalingActivitiesInput) (req *aws.Request, output *DescribeScalingActivitiesOutput) {
oprw.Lock()
defer oprw.Unlock()
if opDescribeScalingActivities == nil {
opDescribeScalingActivities = &aws.Operation{
Name: "DescribeScalingActivities",
HTTPMethod: "POST",
HTTPPath: "/",
Paginator: &aws.Paginator{
InputTokens: []string{"NextToken"},
OutputTokens: []string{"NextToken"},
LimitToken: "MaxRecords",
TruncationToken: "",
},
}
}
if input == nil {
input = &DescribeScalingActivitiesInput{}
}
req = c.newRequest(opDescribeScalingActivities, input, output)
output = &DescribeScalingActivitiesOutput{}
req.Data = output
return
}
// Describes one or more scaling activities for the specified Auto Scaling group.
// If you omit the ActivityIds, the call returns all activities from the past
// six weeks. Activities are sorted by the start time. Activities still in progress
// appear first on the list.
//
// You can specify a maximum number of items to be returned with a single call.
// If there are more items to return, the call returns a token. To get the next
// set of items, repeat the call with the returned token in the NextToken parameter.
func (c *AutoScaling) DescribeScalingActivities(input *DescribeScalingActivitiesInput) (*DescribeScalingActivitiesOutput, error) {
req, out := c.DescribeScalingActivitiesRequest(input)
err := req.Send()
return out, err
}
func (c *AutoScaling) DescribeScalingActivitiesPages(input *DescribeScalingActivitiesInput, fn func(p *DescribeScalingActivitiesOutput, lastPage bool) (shouldContinue bool)) error {
page, _ := c.DescribeScalingActivitiesRequest(input)
return page.EachPage(func(p interface{}, lastPage bool) bool {
return fn(p.(*DescribeScalingActivitiesOutput), lastPage)
})
}
var opDescribeScalingActivities *aws.Operation
// DescribeScalingProcessTypesRequest generates a request for the DescribeScalingProcessTypes operation.
func (c *AutoScaling) DescribeScalingProcessTypesRequest(input *DescribeScalingProcessTypesInput) (req *aws.Request, output *DescribeScalingProcessTypesOutput) {
oprw.Lock()
defer oprw.Unlock()
if opDescribeScalingProcessTypes == nil {
opDescribeScalingProcessTypes = &aws.Operation{
Name: "DescribeScalingProcessTypes",
HTTPMethod: "POST",
HTTPPath: "/",
}
}
if input == nil {
input = &DescribeScalingProcessTypesInput{}
}
req = c.newRequest(opDescribeScalingProcessTypes, input, output)
output = &DescribeScalingProcessTypesOutput{}
req.Data = output
return
}
// Returns scaling process types for use in the ResumeProcesses and SuspendProcesses
// actions.
func (c *AutoScaling) DescribeScalingProcessTypes(input *DescribeScalingProcessTypesInput) (*DescribeScalingProcessTypesOutput, error) {
req, out := c.DescribeScalingProcessTypesRequest(input)
err := req.Send()
return out, err
}
var opDescribeScalingProcessTypes *aws.Operation
// DescribeScheduledActionsRequest generates a request for the DescribeScheduledActions operation.
func (c *AutoScaling) DescribeScheduledActionsRequest(input *DescribeScheduledActionsInput) (req *aws.Request, output *DescribeScheduledActionsOutput) {
oprw.Lock()
defer oprw.Unlock()
if opDescribeScheduledActions == nil {
opDescribeScheduledActions = &aws.Operation{
Name: "DescribeScheduledActions",
HTTPMethod: "POST",
HTTPPath: "/",
Paginator: &aws.Paginator{
InputTokens: []string{"NextToken"},
OutputTokens: []string{"NextToken"},
LimitToken: "MaxRecords",
TruncationToken: "",
},
}
}
if input == nil {
input = &DescribeScheduledActionsInput{}
}
req = c.newRequest(opDescribeScheduledActions, input, output)
output = &DescribeScheduledActionsOutput{}
req.Data = output
return