forked from aws/aws-sdk-go-v2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
api.go
9072 lines (7531 loc) · 301 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
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package autoscaling
import (
"fmt"
"time"
"github.com/aws/aws-sdk-go-v2/aws"
"github.com/aws/aws-sdk-go-v2/internal/awsutil"
"github.com/aws/aws-sdk-go-v2/private/protocol"
"github.com/aws/aws-sdk-go-v2/private/protocol/query"
)
const opAttachInstances = "AttachInstances"
// AttachInstancesRequest is a API request type for the AttachInstances API operation.
type AttachInstancesRequest struct {
*aws.Request
Input *AttachInstancesInput
Copy func(*AttachInstancesInput) AttachInstancesRequest
}
// Send marshals and sends the AttachInstances API request.
func (r AttachInstancesRequest) Send() (*AttachInstancesOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*AttachInstancesOutput), nil
}
// AttachInstancesRequest returns a request value for making API operation for
// Auto Scaling.
//
// Attaches one or more EC2 instances to the specified Auto Scaling group.
//
// When you attach instances, Auto Scaling increases the desired capacity of
// the group by the number of instances being attached. If the number of instances
// being attached plus the desired capacity of the group exceeds the maximum
// size of the group, the operation fails.
//
// If there is a Classic Load Balancer attached to your Auto Scaling group,
// the instances are also registered with the load balancer. If there are target
// groups attached to your Auto Scaling group, the instances are also registered
// with the target groups.
//
// For more information, see Attach EC2 Instances to Your Auto Scaling Group
// (http://docs.aws.amazon.com/autoscaling/latest/userguide/attach-instance-asg.html)
// in the Auto Scaling User Guide.
//
// // Example sending a request using the AttachInstancesRequest method.
// req := client.AttachInstancesRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/AttachInstances
func (c *AutoScaling) AttachInstancesRequest(input *AttachInstancesInput) AttachInstancesRequest {
op := &aws.Operation{
Name: opAttachInstances,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &AttachInstancesInput{}
}
output := &AttachInstancesOutput{}
req := c.newRequest(op, input, output)
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
output.responseMetadata = aws.Response{Request: req}
return AttachInstancesRequest{Request: req, Input: input, Copy: c.AttachInstancesRequest}
}
const opAttachLoadBalancerTargetGroups = "AttachLoadBalancerTargetGroups"
// AttachLoadBalancerTargetGroupsRequest is a API request type for the AttachLoadBalancerTargetGroups API operation.
type AttachLoadBalancerTargetGroupsRequest struct {
*aws.Request
Input *AttachLoadBalancerTargetGroupsInput
Copy func(*AttachLoadBalancerTargetGroupsInput) AttachLoadBalancerTargetGroupsRequest
}
// Send marshals and sends the AttachLoadBalancerTargetGroups API request.
func (r AttachLoadBalancerTargetGroupsRequest) Send() (*AttachLoadBalancerTargetGroupsOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*AttachLoadBalancerTargetGroupsOutput), nil
}
// AttachLoadBalancerTargetGroupsRequest returns a request value for making API operation for
// Auto Scaling.
//
// Attaches one or more target groups to the specified Auto Scaling group.
//
// To describe the target groups for an Auto Scaling group, use DescribeLoadBalancerTargetGroups.
// To detach the target group from the Auto Scaling group, use DetachLoadBalancerTargetGroups.
//
// For more information, see Attach a Load Balancer to Your Auto Scaling Group
// (http://docs.aws.amazon.com/autoscaling/latest/userguide/attach-load-balancer-asg.html)
// in the Auto Scaling User Guide.
//
// // Example sending a request using the AttachLoadBalancerTargetGroupsRequest method.
// req := client.AttachLoadBalancerTargetGroupsRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/AttachLoadBalancerTargetGroups
func (c *AutoScaling) AttachLoadBalancerTargetGroupsRequest(input *AttachLoadBalancerTargetGroupsInput) AttachLoadBalancerTargetGroupsRequest {
op := &aws.Operation{
Name: opAttachLoadBalancerTargetGroups,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &AttachLoadBalancerTargetGroupsInput{}
}
output := &AttachLoadBalancerTargetGroupsOutput{}
req := c.newRequest(op, input, output)
output.responseMetadata = aws.Response{Request: req}
return AttachLoadBalancerTargetGroupsRequest{Request: req, Input: input, Copy: c.AttachLoadBalancerTargetGroupsRequest}
}
const opAttachLoadBalancers = "AttachLoadBalancers"
// AttachLoadBalancersRequest is a API request type for the AttachLoadBalancers API operation.
type AttachLoadBalancersRequest struct {
*aws.Request
Input *AttachLoadBalancersInput
Copy func(*AttachLoadBalancersInput) AttachLoadBalancersRequest
}
// Send marshals and sends the AttachLoadBalancers API request.
func (r AttachLoadBalancersRequest) Send() (*AttachLoadBalancersOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*AttachLoadBalancersOutput), nil
}
// AttachLoadBalancersRequest returns a request value for making API operation for
// Auto Scaling.
//
// Attaches one or more Classic Load Balancers to the specified Auto Scaling
// group.
//
// To attach an Application Load Balancer instead, see AttachLoadBalancerTargetGroups.
//
// To describe the load balancers for an Auto Scaling group, use DescribeLoadBalancers.
// To detach the load balancer from the Auto Scaling group, use DetachLoadBalancers.
//
// For more information, see Attach a Load Balancer to Your Auto Scaling Group
// (http://docs.aws.amazon.com/autoscaling/latest/userguide/attach-load-balancer-asg.html)
// in the Auto Scaling User Guide.
//
// // Example sending a request using the AttachLoadBalancersRequest method.
// req := client.AttachLoadBalancersRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/AttachLoadBalancers
func (c *AutoScaling) AttachLoadBalancersRequest(input *AttachLoadBalancersInput) AttachLoadBalancersRequest {
op := &aws.Operation{
Name: opAttachLoadBalancers,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &AttachLoadBalancersInput{}
}
output := &AttachLoadBalancersOutput{}
req := c.newRequest(op, input, output)
output.responseMetadata = aws.Response{Request: req}
return AttachLoadBalancersRequest{Request: req, Input: input, Copy: c.AttachLoadBalancersRequest}
}
const opCompleteLifecycleAction = "CompleteLifecycleAction"
// CompleteLifecycleActionRequest is a API request type for the CompleteLifecycleAction API operation.
type CompleteLifecycleActionRequest struct {
*aws.Request
Input *CompleteLifecycleActionInput
Copy func(*CompleteLifecycleActionInput) CompleteLifecycleActionRequest
}
// Send marshals and sends the CompleteLifecycleAction API request.
func (r CompleteLifecycleActionRequest) Send() (*CompleteLifecycleActionOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*CompleteLifecycleActionOutput), nil
}
// CompleteLifecycleActionRequest returns a request value for making API operation for
// Auto Scaling.
//
// Completes the lifecycle action for the specified token or instance with the
// specified result.
//
// This step is a part of the procedure for adding a lifecycle hook to an Auto
// Scaling group:
//
// (Optional) Create a Lambda function and a rule that allows CloudWatch Events
// to invoke your Lambda function when Auto Scaling launches or terminates instances.
//
// (Optional) Create a notification target and an IAM role. The target can be
// either an Amazon SQS queue or an Amazon SNS topic. The role allows Auto Scaling
// to publish lifecycle notifications to the target.
//
// Create the lifecycle hook. Specify whether the hook is used when the instances
// launch or terminate.
//
// If you need more time, record the lifecycle action heartbeat to keep the
// instance in a pending state.
//
// If you finish before the timeout period ends, complete the lifecycle action.
//
// For more information, see Auto Scaling Lifecycle (http://docs.aws.amazon.com/autoscaling/latest/userguide/AutoScalingGroupLifecycle.html)
// in the Auto Scaling User Guide.
//
// // Example sending a request using the CompleteLifecycleActionRequest method.
// req := client.CompleteLifecycleActionRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CompleteLifecycleAction
func (c *AutoScaling) CompleteLifecycleActionRequest(input *CompleteLifecycleActionInput) CompleteLifecycleActionRequest {
op := &aws.Operation{
Name: opCompleteLifecycleAction,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &CompleteLifecycleActionInput{}
}
output := &CompleteLifecycleActionOutput{}
req := c.newRequest(op, input, output)
output.responseMetadata = aws.Response{Request: req}
return CompleteLifecycleActionRequest{Request: req, Input: input, Copy: c.CompleteLifecycleActionRequest}
}
const opCreateAutoScalingGroup = "CreateAutoScalingGroup"
// CreateAutoScalingGroupRequest is a API request type for the CreateAutoScalingGroup API operation.
type CreateAutoScalingGroupRequest struct {
*aws.Request
Input *CreateAutoScalingGroupInput
Copy func(*CreateAutoScalingGroupInput) CreateAutoScalingGroupRequest
}
// Send marshals and sends the CreateAutoScalingGroup API request.
func (r CreateAutoScalingGroupRequest) Send() (*CreateAutoScalingGroupOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*CreateAutoScalingGroupOutput), nil
}
// CreateAutoScalingGroupRequest returns a request value for making API operation for
// Auto Scaling.
//
// Creates an Auto Scaling group with the specified name and attributes.
//
// If you exceed your maximum limit of Auto Scaling groups, the call fails.
// For information about viewing this limit, see DescribeAccountLimits. For
// information about updating this limit, see Auto Scaling Limits (http://docs.aws.amazon.com/autoscaling/latest/userguide/as-account-limits.html)
// in the Auto Scaling User Guide.
//
// For more information, see Auto Scaling Groups (http://docs.aws.amazon.com/autoscaling/latest/userguide/AutoScalingGroup.html)
// in the Auto Scaling User Guide.
//
// // Example sending a request using the CreateAutoScalingGroupRequest method.
// req := client.CreateAutoScalingGroupRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CreateAutoScalingGroup
func (c *AutoScaling) CreateAutoScalingGroupRequest(input *CreateAutoScalingGroupInput) CreateAutoScalingGroupRequest {
op := &aws.Operation{
Name: opCreateAutoScalingGroup,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &CreateAutoScalingGroupInput{}
}
output := &CreateAutoScalingGroupOutput{}
req := c.newRequest(op, input, output)
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
output.responseMetadata = aws.Response{Request: req}
return CreateAutoScalingGroupRequest{Request: req, Input: input, Copy: c.CreateAutoScalingGroupRequest}
}
const opCreateLaunchConfiguration = "CreateLaunchConfiguration"
// CreateLaunchConfigurationRequest is a API request type for the CreateLaunchConfiguration API operation.
type CreateLaunchConfigurationRequest struct {
*aws.Request
Input *CreateLaunchConfigurationInput
Copy func(*CreateLaunchConfigurationInput) CreateLaunchConfigurationRequest
}
// Send marshals and sends the CreateLaunchConfiguration API request.
func (r CreateLaunchConfigurationRequest) Send() (*CreateLaunchConfigurationOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*CreateLaunchConfigurationOutput), nil
}
// CreateLaunchConfigurationRequest returns a request value for making API operation for
// Auto Scaling.
//
// Creates a launch configuration.
//
// If you exceed your maximum limit of launch configurations, the call fails.
// For information about viewing this limit, see DescribeAccountLimits. For
// information about updating this limit, see Auto Scaling Limits (http://docs.aws.amazon.com/autoscaling/latest/userguide/as-account-limits.html)
// in the Auto Scaling User Guide.
//
// For more information, see Launch Configurations (http://docs.aws.amazon.com/autoscaling/latest/userguide/LaunchConfiguration.html)
// in the Auto Scaling User Guide.
//
// // Example sending a request using the CreateLaunchConfigurationRequest method.
// req := client.CreateLaunchConfigurationRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CreateLaunchConfiguration
func (c *AutoScaling) CreateLaunchConfigurationRequest(input *CreateLaunchConfigurationInput) CreateLaunchConfigurationRequest {
op := &aws.Operation{
Name: opCreateLaunchConfiguration,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &CreateLaunchConfigurationInput{}
}
output := &CreateLaunchConfigurationOutput{}
req := c.newRequest(op, input, output)
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
output.responseMetadata = aws.Response{Request: req}
return CreateLaunchConfigurationRequest{Request: req, Input: input, Copy: c.CreateLaunchConfigurationRequest}
}
const opCreateOrUpdateTags = "CreateOrUpdateTags"
// CreateOrUpdateTagsRequest is a API request type for the CreateOrUpdateTags API operation.
type CreateOrUpdateTagsRequest struct {
*aws.Request
Input *CreateOrUpdateTagsInput
Copy func(*CreateOrUpdateTagsInput) CreateOrUpdateTagsRequest
}
// Send marshals and sends the CreateOrUpdateTags API request.
func (r CreateOrUpdateTagsRequest) Send() (*CreateOrUpdateTagsOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*CreateOrUpdateTagsOutput), nil
}
// CreateOrUpdateTagsRequest returns a request value for making API operation for
// Auto Scaling.
//
// Creates or updates tags for the specified Auto Scaling group.
//
// When you specify a tag with a key that already exists, the operation overwrites
// the previous tag definition, and you do not get an error message.
//
// For more information, see Tagging Auto Scaling Groups and Instances (http://docs.aws.amazon.com/autoscaling/latest/userguide/autoscaling-tagging.html)
// in the Auto Scaling User Guide.
//
// // Example sending a request using the CreateOrUpdateTagsRequest method.
// req := client.CreateOrUpdateTagsRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CreateOrUpdateTags
func (c *AutoScaling) CreateOrUpdateTagsRequest(input *CreateOrUpdateTagsInput) CreateOrUpdateTagsRequest {
op := &aws.Operation{
Name: opCreateOrUpdateTags,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &CreateOrUpdateTagsInput{}
}
output := &CreateOrUpdateTagsOutput{}
req := c.newRequest(op, input, output)
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
output.responseMetadata = aws.Response{Request: req}
return CreateOrUpdateTagsRequest{Request: req, Input: input, Copy: c.CreateOrUpdateTagsRequest}
}
const opDeleteAutoScalingGroup = "DeleteAutoScalingGroup"
// DeleteAutoScalingGroupRequest is a API request type for the DeleteAutoScalingGroup API operation.
type DeleteAutoScalingGroupRequest struct {
*aws.Request
Input *DeleteAutoScalingGroupInput
Copy func(*DeleteAutoScalingGroupInput) DeleteAutoScalingGroupRequest
}
// Send marshals and sends the DeleteAutoScalingGroup API request.
func (r DeleteAutoScalingGroupRequest) Send() (*DeleteAutoScalingGroupOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*DeleteAutoScalingGroupOutput), nil
}
// DeleteAutoScalingGroupRequest returns a request value for making API operation for
// Auto Scaling.
//
// Deletes the specified Auto Scaling group.
//
// If the group has instances or scaling activities in progress, you must specify
// the option to force the deletion in order for it to succeed.
//
// If the group has policies, deleting the group deletes the policies, the underlying
// alarm actions, and any alarm that no longer has an associated action.
//
// To remove instances from the Auto Scaling group before deleting it, call
// DetachInstances with the list of instances and the option to decrement the
// desired capacity so that Auto Scaling does not launch replacement instances.
//
// To terminate all instances before deleting the Auto Scaling group, call UpdateAutoScalingGroup
// and set the minimum size and desired capacity of the Auto Scaling group to
// zero.
//
// // Example sending a request using the DeleteAutoScalingGroupRequest method.
// req := client.DeleteAutoScalingGroupRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteAutoScalingGroup
func (c *AutoScaling) DeleteAutoScalingGroupRequest(input *DeleteAutoScalingGroupInput) DeleteAutoScalingGroupRequest {
op := &aws.Operation{
Name: opDeleteAutoScalingGroup,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DeleteAutoScalingGroupInput{}
}
output := &DeleteAutoScalingGroupOutput{}
req := c.newRequest(op, input, output)
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
output.responseMetadata = aws.Response{Request: req}
return DeleteAutoScalingGroupRequest{Request: req, Input: input, Copy: c.DeleteAutoScalingGroupRequest}
}
const opDeleteLaunchConfiguration = "DeleteLaunchConfiguration"
// DeleteLaunchConfigurationRequest is a API request type for the DeleteLaunchConfiguration API operation.
type DeleteLaunchConfigurationRequest struct {
*aws.Request
Input *DeleteLaunchConfigurationInput
Copy func(*DeleteLaunchConfigurationInput) DeleteLaunchConfigurationRequest
}
// Send marshals and sends the DeleteLaunchConfiguration API request.
func (r DeleteLaunchConfigurationRequest) Send() (*DeleteLaunchConfigurationOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*DeleteLaunchConfigurationOutput), nil
}
// DeleteLaunchConfigurationRequest returns a request value for making API operation for
// Auto Scaling.
//
// 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.
//
// // Example sending a request using the DeleteLaunchConfigurationRequest method.
// req := client.DeleteLaunchConfigurationRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteLaunchConfiguration
func (c *AutoScaling) DeleteLaunchConfigurationRequest(input *DeleteLaunchConfigurationInput) DeleteLaunchConfigurationRequest {
op := &aws.Operation{
Name: opDeleteLaunchConfiguration,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DeleteLaunchConfigurationInput{}
}
output := &DeleteLaunchConfigurationOutput{}
req := c.newRequest(op, input, output)
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
output.responseMetadata = aws.Response{Request: req}
return DeleteLaunchConfigurationRequest{Request: req, Input: input, Copy: c.DeleteLaunchConfigurationRequest}
}
const opDeleteLifecycleHook = "DeleteLifecycleHook"
// DeleteLifecycleHookRequest is a API request type for the DeleteLifecycleHook API operation.
type DeleteLifecycleHookRequest struct {
*aws.Request
Input *DeleteLifecycleHookInput
Copy func(*DeleteLifecycleHookInput) DeleteLifecycleHookRequest
}
// Send marshals and sends the DeleteLifecycleHook API request.
func (r DeleteLifecycleHookRequest) Send() (*DeleteLifecycleHookOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*DeleteLifecycleHookOutput), nil
}
// DeleteLifecycleHookRequest returns a request value for making API operation for
// Auto Scaling.
//
// Deletes the specified lifecycle hook.
//
// If there are any outstanding lifecycle actions, they are completed first
// (ABANDON for launching instances, CONTINUE for terminating instances).
//
// // Example sending a request using the DeleteLifecycleHookRequest method.
// req := client.DeleteLifecycleHookRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteLifecycleHook
func (c *AutoScaling) DeleteLifecycleHookRequest(input *DeleteLifecycleHookInput) DeleteLifecycleHookRequest {
op := &aws.Operation{
Name: opDeleteLifecycleHook,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DeleteLifecycleHookInput{}
}
output := &DeleteLifecycleHookOutput{}
req := c.newRequest(op, input, output)
output.responseMetadata = aws.Response{Request: req}
return DeleteLifecycleHookRequest{Request: req, Input: input, Copy: c.DeleteLifecycleHookRequest}
}
const opDeleteNotificationConfiguration = "DeleteNotificationConfiguration"
// DeleteNotificationConfigurationRequest is a API request type for the DeleteNotificationConfiguration API operation.
type DeleteNotificationConfigurationRequest struct {
*aws.Request
Input *DeleteNotificationConfigurationInput
Copy func(*DeleteNotificationConfigurationInput) DeleteNotificationConfigurationRequest
}
// Send marshals and sends the DeleteNotificationConfiguration API request.
func (r DeleteNotificationConfigurationRequest) Send() (*DeleteNotificationConfigurationOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*DeleteNotificationConfigurationOutput), nil
}
// DeleteNotificationConfigurationRequest returns a request value for making API operation for
// Auto Scaling.
//
// Deletes the specified notification.
//
// // Example sending a request using the DeleteNotificationConfigurationRequest method.
// req := client.DeleteNotificationConfigurationRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteNotificationConfiguration
func (c *AutoScaling) DeleteNotificationConfigurationRequest(input *DeleteNotificationConfigurationInput) DeleteNotificationConfigurationRequest {
op := &aws.Operation{
Name: opDeleteNotificationConfiguration,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DeleteNotificationConfigurationInput{}
}
output := &DeleteNotificationConfigurationOutput{}
req := c.newRequest(op, input, output)
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
output.responseMetadata = aws.Response{Request: req}
return DeleteNotificationConfigurationRequest{Request: req, Input: input, Copy: c.DeleteNotificationConfigurationRequest}
}
const opDeletePolicy = "DeletePolicy"
// DeletePolicyRequest is a API request type for the DeletePolicy API operation.
type DeletePolicyRequest struct {
*aws.Request
Input *DeletePolicyInput
Copy func(*DeletePolicyInput) DeletePolicyRequest
}
// Send marshals and sends the DeletePolicy API request.
func (r DeletePolicyRequest) Send() (*DeletePolicyOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*DeletePolicyOutput), nil
}
// DeletePolicyRequest returns a request value for making API operation for
// Auto Scaling.
//
// Deletes the specified Auto Scaling policy.
//
// Deleting a policy deletes the underlying alarm action, but does not delete
// the alarm, even if it no longer has an associated action.
//
// // Example sending a request using the DeletePolicyRequest method.
// req := client.DeletePolicyRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeletePolicy
func (c *AutoScaling) DeletePolicyRequest(input *DeletePolicyInput) DeletePolicyRequest {
op := &aws.Operation{
Name: opDeletePolicy,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DeletePolicyInput{}
}
output := &DeletePolicyOutput{}
req := c.newRequest(op, input, output)
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
output.responseMetadata = aws.Response{Request: req}
return DeletePolicyRequest{Request: req, Input: input, Copy: c.DeletePolicyRequest}
}
const opDeleteScheduledAction = "DeleteScheduledAction"
// DeleteScheduledActionRequest is a API request type for the DeleteScheduledAction API operation.
type DeleteScheduledActionRequest struct {
*aws.Request
Input *DeleteScheduledActionInput
Copy func(*DeleteScheduledActionInput) DeleteScheduledActionRequest
}
// Send marshals and sends the DeleteScheduledAction API request.
func (r DeleteScheduledActionRequest) Send() (*DeleteScheduledActionOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*DeleteScheduledActionOutput), nil
}
// DeleteScheduledActionRequest returns a request value for making API operation for
// Auto Scaling.
//
// Deletes the specified scheduled action.
//
// // Example sending a request using the DeleteScheduledActionRequest method.
// req := client.DeleteScheduledActionRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteScheduledAction
func (c *AutoScaling) DeleteScheduledActionRequest(input *DeleteScheduledActionInput) DeleteScheduledActionRequest {
op := &aws.Operation{
Name: opDeleteScheduledAction,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DeleteScheduledActionInput{}
}
output := &DeleteScheduledActionOutput{}
req := c.newRequest(op, input, output)
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
output.responseMetadata = aws.Response{Request: req}
return DeleteScheduledActionRequest{Request: req, Input: input, Copy: c.DeleteScheduledActionRequest}
}
const opDeleteTags = "DeleteTags"
// DeleteTagsRequest is a API request type for the DeleteTags API operation.
type DeleteTagsRequest struct {
*aws.Request
Input *DeleteTagsInput
Copy func(*DeleteTagsInput) DeleteTagsRequest
}
// Send marshals and sends the DeleteTags API request.
func (r DeleteTagsRequest) Send() (*DeleteTagsOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*DeleteTagsOutput), nil
}
// DeleteTagsRequest returns a request value for making API operation for
// Auto Scaling.
//
// Deletes the specified tags.
//
// // Example sending a request using the DeleteTagsRequest method.
// req := client.DeleteTagsRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteTags
func (c *AutoScaling) DeleteTagsRequest(input *DeleteTagsInput) DeleteTagsRequest {
op := &aws.Operation{
Name: opDeleteTags,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DeleteTagsInput{}
}
output := &DeleteTagsOutput{}
req := c.newRequest(op, input, output)
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
output.responseMetadata = aws.Response{Request: req}
return DeleteTagsRequest{Request: req, Input: input, Copy: c.DeleteTagsRequest}
}
const opDescribeAccountLimits = "DescribeAccountLimits"
// DescribeAccountLimitsRequest is a API request type for the DescribeAccountLimits API operation.
type DescribeAccountLimitsRequest struct {
*aws.Request
Input *DescribeAccountLimitsInput
Copy func(*DescribeAccountLimitsInput) DescribeAccountLimitsRequest
}
// Send marshals and sends the DescribeAccountLimits API request.
func (r DescribeAccountLimitsRequest) Send() (*DescribeAccountLimitsOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*DescribeAccountLimitsOutput), nil
}
// DescribeAccountLimitsRequest returns a request value for making API operation for
// Auto Scaling.
//
// Describes the current Auto Scaling resource limits for your AWS account.
//
// For information about requesting an increase in these limits, see Auto Scaling
// Limits (http://docs.aws.amazon.com/autoscaling/latest/userguide/as-account-limits.html)
// in the Auto Scaling User Guide.
//
// // Example sending a request using the DescribeAccountLimitsRequest method.
// req := client.DescribeAccountLimitsRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAccountLimits
func (c *AutoScaling) DescribeAccountLimitsRequest(input *DescribeAccountLimitsInput) DescribeAccountLimitsRequest {
op := &aws.Operation{
Name: opDescribeAccountLimits,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DescribeAccountLimitsInput{}
}
output := &DescribeAccountLimitsOutput{}
req := c.newRequest(op, input, output)
output.responseMetadata = aws.Response{Request: req}
return DescribeAccountLimitsRequest{Request: req, Input: input, Copy: c.DescribeAccountLimitsRequest}
}
const opDescribeAdjustmentTypes = "DescribeAdjustmentTypes"
// DescribeAdjustmentTypesRequest is a API request type for the DescribeAdjustmentTypes API operation.
type DescribeAdjustmentTypesRequest struct {
*aws.Request
Input *DescribeAdjustmentTypesInput
Copy func(*DescribeAdjustmentTypesInput) DescribeAdjustmentTypesRequest
}
// Send marshals and sends the DescribeAdjustmentTypes API request.
func (r DescribeAdjustmentTypesRequest) Send() (*DescribeAdjustmentTypesOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*DescribeAdjustmentTypesOutput), nil
}
// DescribeAdjustmentTypesRequest returns a request value for making API operation for
// Auto Scaling.
//
// Describes the policy adjustment types for use with PutScalingPolicy.
//
// // Example sending a request using the DescribeAdjustmentTypesRequest method.
// req := client.DescribeAdjustmentTypesRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAdjustmentTypes
func (c *AutoScaling) DescribeAdjustmentTypesRequest(input *DescribeAdjustmentTypesInput) DescribeAdjustmentTypesRequest {
op := &aws.Operation{
Name: opDescribeAdjustmentTypes,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DescribeAdjustmentTypesInput{}
}
output := &DescribeAdjustmentTypesOutput{}
req := c.newRequest(op, input, output)
output.responseMetadata = aws.Response{Request: req}
return DescribeAdjustmentTypesRequest{Request: req, Input: input, Copy: c.DescribeAdjustmentTypesRequest}
}
const opDescribeAutoScalingGroups = "DescribeAutoScalingGroups"
// DescribeAutoScalingGroupsRequest is a API request type for the DescribeAutoScalingGroups API operation.
type DescribeAutoScalingGroupsRequest struct {
*aws.Request
Input *DescribeAutoScalingGroupsInput
Copy func(*DescribeAutoScalingGroupsInput) DescribeAutoScalingGroupsRequest
}
// Send marshals and sends the DescribeAutoScalingGroups API request.
func (r DescribeAutoScalingGroupsRequest) Send() (*DescribeAutoScalingGroupsOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*DescribeAutoScalingGroupsOutput), nil
}
// DescribeAutoScalingGroupsRequest returns a request value for making API operation for
// Auto Scaling.
//
// Describes one or more Auto Scaling groups.
//
// // Example sending a request using the DescribeAutoScalingGroupsRequest method.
// req := client.DescribeAutoScalingGroupsRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAutoScalingGroups
func (c *AutoScaling) DescribeAutoScalingGroupsRequest(input *DescribeAutoScalingGroupsInput) DescribeAutoScalingGroupsRequest {
op := &aws.Operation{
Name: opDescribeAutoScalingGroups,
HTTPMethod: "POST",
HTTPPath: "/",
Paginator: &aws.Paginator{
InputTokens: []string{"NextToken"},
OutputTokens: []string{"NextToken"},
LimitToken: "MaxRecords",
TruncationToken: "",
},
}
if input == nil {
input = &DescribeAutoScalingGroupsInput{}
}
output := &DescribeAutoScalingGroupsOutput{}
req := c.newRequest(op, input, output)
output.responseMetadata = aws.Response{Request: req}
return DescribeAutoScalingGroupsRequest{Request: req, Input: input, Copy: c.DescribeAutoScalingGroupsRequest}
}
// Paginate pages iterates over the pages of a DescribeAutoScalingGroupsRequest operation,
// calling the Next method for each page. Using the paginators Next
// method will depict whether or not there are more pages.
//
// Note: This operation can generate multiple requests to a service.
//
// // Example iterating over at most 3 pages of a DescribeAutoScalingGroups operation.