forked from aws/aws-sdk-go
/
autoscaling.go
1376 lines (1209 loc) · 69.6 KB
/
autoscaling.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 (
"net/http"
"time"
"github.com/awslabs/aws-sdk-go/aws"
"github.com/awslabs/aws-sdk-go/gen/endpoints"
)
import (
"encoding/xml"
"io"
)
// AutoScaling is a client for Auto Scaling.
type AutoScaling struct {
client *aws.QueryClient
}
type AutoScalingAPI interface {
AttachInstances(req *AttachInstancesQuery) (err error)
CompleteLifecycleAction(req *CompleteLifecycleActionType) (resp *CompleteLifecycleActionAnswer, err error)
CreateAutoScalingGroup(req *CreateAutoScalingGroupType) (err error)
CreateLaunchConfiguration(req *CreateLaunchConfigurationType) (err error)
CreateOrUpdateTags(req *CreateOrUpdateTagsType) (err error)
DeleteAutoScalingGroup(req *DeleteAutoScalingGroupType) (err error)
DeleteLaunchConfiguration(req *LaunchConfigurationNameType) (err error)
DeleteLifecycleHook(req *DeleteLifecycleHookType) (resp *DeleteLifecycleHookAnswer, err error)
DeleteNotificationConfiguration(req *DeleteNotificationConfigurationType) (err error)
DeletePolicy(req *DeletePolicyType) (err error)
DeleteScheduledAction(req *DeleteScheduledActionType) (err error)
DeleteTags(req *DeleteTagsType) (err error)
DescribeAccountLimits() (resp *DescribeAccountLimitsAnswer, err error)
DescribeAdjustmentTypes() (resp *DescribeAdjustmentTypesAnswer, err error)
DescribeAutoScalingGroups(req *AutoScalingGroupNamesType) (resp *AutoScalingGroupsType, err error)
DescribeAutoScalingInstances(req *DescribeAutoScalingInstancesType) (resp *AutoScalingInstancesType, err error)
DescribeAutoScalingNotificationTypes() (resp *DescribeAutoScalingNotificationTypesAnswer, err error)
DescribeLaunchConfigurations(req *LaunchConfigurationNamesType) (resp *LaunchConfigurationsType, err error)
DescribeLifecycleHookTypes() (resp *DescribeLifecycleHookTypesAnswer, err error)
DescribeLifecycleHooks(req *DescribeLifecycleHooksType) (resp *DescribeLifecycleHooksAnswer, err error)
DescribeMetricCollectionTypes() (resp *DescribeMetricCollectionTypesAnswer, err error)
DescribeNotificationConfigurations(req *DescribeNotificationConfigurationsType) (resp *DescribeNotificationConfigurationsAnswer, err error)
DescribePolicies(req *DescribePoliciesType) (resp *PoliciesType, err error)
DescribeScalingActivities(req *DescribeScalingActivitiesType) (resp *ActivitiesType, err error)
DescribeScalingProcessTypes() (resp *ProcessesType, err error)
DescribeScheduledActions(req *DescribeScheduledActionsType) (resp *ScheduledActionsType, err error)
DescribeTags(req *DescribeTagsType) (resp *TagsType, err error)
DescribeTerminationPolicyTypes() (resp *DescribeTerminationPolicyTypesAnswer, err error)
DetachInstances(req *DetachInstancesQuery) (resp *DetachInstancesAnswer, err error)
DisableMetricsCollection(req *DisableMetricsCollectionQuery) (err error)
EnableMetricsCollection(req *EnableMetricsCollectionQuery) (err error)
EnterStandby(req *EnterStandbyQuery) (resp *EnterStandbyAnswer, err error)
ExecutePolicy(req *ExecutePolicyType) (err error)
ExitStandby(req *ExitStandbyQuery) (resp *ExitStandbyAnswer, err error)
PutLifecycleHook(req *PutLifecycleHookType) (resp *PutLifecycleHookAnswer, err error)
PutNotificationConfiguration(req *PutNotificationConfigurationType) (err error)
PutScalingPolicy(req *PutScalingPolicyType) (resp *PolicyARNType, err error)
PutScheduledUpdateGroupAction(req *PutScheduledUpdateGroupActionType) (err error)
RecordLifecycleActionHeartbeat(req *RecordLifecycleActionHeartbeatType) (resp *RecordLifecycleActionHeartbeatAnswer, err error)
ResumeProcesses(req *ScalingProcessQuery) (err error)
SetDesiredCapacity(req *SetDesiredCapacityType) (err error)
SetInstanceHealth(req *SetInstanceHealthQuery) (err error)
SuspendProcesses(req *ScalingProcessQuery) (err error)
TerminateInstanceInAutoScalingGroup(req *TerminateInstanceInAutoScalingGroupType) (resp *ActivityType, err error)
UpdateAutoScalingGroup(req *UpdateAutoScalingGroupType) (err error)
}
// New returns a new AutoScaling client.
func New(creds aws.CredentialsProvider, region string, client *http.Client) *AutoScaling {
if client == nil {
client = http.DefaultClient
}
endpoint, service, region := endpoints.Lookup("autoscaling", region)
return &AutoScaling{
client: &aws.QueryClient{
Context: aws.Context{
Credentials: creds,
Service: service,
Region: region,
},
Client: client,
Endpoint: endpoint,
APIVersion: "2011-01-01",
},
}
}
// AttachInstances 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 in the Auto Scaling Developer Guide
func (c *AutoScaling) AttachInstances(req *AttachInstancesQuery) (err error) {
// NRE
err = c.client.Do("AttachInstances", "POST", "/", req, nil)
return
}
// CompleteLifecycleAction 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
// and Auto Scaling Terminating State in the Auto Scaling Developer Guide
func (c *AutoScaling) CompleteLifecycleAction(req *CompleteLifecycleActionType) (resp *CompleteLifecycleActionResult, err error) {
resp = &CompleteLifecycleActionResult{}
err = c.client.Do("CompleteLifecycleAction", "POST", "/", req, resp)
return
}
// CreateAutoScalingGroup 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(req *CreateAutoScalingGroupType) (err error) {
// NRE
err = c.client.Do("CreateAutoScalingGroup", "POST", "/", req, nil)
return
}
// CreateLaunchConfiguration 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(req *CreateLaunchConfigurationType) (err error) {
// NRE
err = c.client.Do("CreateLaunchConfiguration", "POST", "/", req, nil)
return
}
// CreateOrUpdateTags 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 in the Auto Scaling Developer Guide
func (c *AutoScaling) CreateOrUpdateTags(req *CreateOrUpdateTagsType) (err error) {
// NRE
err = c.client.Do("CreateOrUpdateTags", "POST", "/", req, nil)
return
}
// DeleteAutoScalingGroup 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(req *DeleteAutoScalingGroupType) (err error) {
// NRE
err = c.client.Do("DeleteAutoScalingGroup", "POST", "/", req, nil)
return
}
// DeleteLaunchConfiguration 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(req *LaunchConfigurationNameType) (err error) {
// NRE
err = c.client.Do("DeleteLaunchConfiguration", "POST", "/", req, nil)
return
}
// DeleteLifecycleHook deletes the specified lifecycle hook. If there are
// any outstanding lifecycle actions, they are completed first for
// launching instances, for terminating instances).
func (c *AutoScaling) DeleteLifecycleHook(req *DeleteLifecycleHookType) (resp *DeleteLifecycleHookResult, err error) {
resp = &DeleteLifecycleHookResult{}
err = c.client.Do("DeleteLifecycleHook", "POST", "/", req, resp)
return
}
// DeleteNotificationConfiguration is undocumented.
func (c *AutoScaling) DeleteNotificationConfiguration(req *DeleteNotificationConfigurationType) (err error) {
// NRE
err = c.client.Do("DeleteNotificationConfiguration", "POST", "/", req, nil)
return
}
// DeletePolicy is undocumented.
func (c *AutoScaling) DeletePolicy(req *DeletePolicyType) (err error) {
// NRE
err = c.client.Do("DeletePolicy", "POST", "/", req, nil)
return
}
// DeleteScheduledAction is undocumented.
func (c *AutoScaling) DeleteScheduledAction(req *DeleteScheduledActionType) (err error) {
// NRE
err = c.client.Do("DeleteScheduledAction", "POST", "/", req, nil)
return
}
// DeleteTags is undocumented.
func (c *AutoScaling) DeleteTags(req *DeleteTagsType) (err error) {
// NRE
err = c.client.Do("DeleteTags", "POST", "/", req, nil)
return
}
// DescribeAccountLimits describes the current Auto Scaling resource limits
// for your AWS account. For information about requesting an increase in
// these limits, see AWS Service Limits
func (c *AutoScaling) DescribeAccountLimits() (resp *DescribeAccountLimitsResult, err error) {
resp = &DescribeAccountLimitsResult{}
err = c.client.Do("DescribeAccountLimits", "POST", "/", nil, resp)
return
}
// DescribeAdjustmentTypes lists the policy adjustment types for use with
// PutScalingPolicy
func (c *AutoScaling) DescribeAdjustmentTypes() (resp *DescribeAdjustmentTypesResult, err error) {
resp = &DescribeAdjustmentTypesResult{}
err = c.client.Do("DescribeAdjustmentTypes", "POST", "/", nil, resp)
return
}
// DescribeAutoScalingGroups 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(req *AutoScalingGroupNamesType) (resp *DescribeAutoScalingGroupsResult, err error) {
resp = &DescribeAutoScalingGroupsResult{}
err = c.client.Do("DescribeAutoScalingGroups", "POST", "/", req, resp)
return
}
// DescribeAutoScalingInstances 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(req *DescribeAutoScalingInstancesType) (resp *DescribeAutoScalingInstancesResult, err error) {
resp = &DescribeAutoScalingInstancesResult{}
err = c.client.Do("DescribeAutoScalingInstances", "POST", "/", req, resp)
return
}
// DescribeAutoScalingNotificationTypes lists the notification types that
// are supported by Auto Scaling.
func (c *AutoScaling) DescribeAutoScalingNotificationTypes() (resp *DescribeAutoScalingNotificationTypesResult, err error) {
resp = &DescribeAutoScalingNotificationTypesResult{}
err = c.client.Do("DescribeAutoScalingNotificationTypes", "POST", "/", nil, resp)
return
}
// DescribeLaunchConfigurations 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(req *LaunchConfigurationNamesType) (resp *DescribeLaunchConfigurationsResult, err error) {
resp = &DescribeLaunchConfigurationsResult{}
err = c.client.Do("DescribeLaunchConfigurations", "POST", "/", req, resp)
return
}
// DescribeLifecycleHookTypes is undocumented.
func (c *AutoScaling) DescribeLifecycleHookTypes() (resp *DescribeLifecycleHookTypesResult, err error) {
resp = &DescribeLifecycleHookTypesResult{}
err = c.client.Do("DescribeLifecycleHookTypes", "POST", "/", nil, resp)
return
}
// DescribeLifecycleHooks describes the lifecycle hooks for the specified
// Auto Scaling group.
func (c *AutoScaling) DescribeLifecycleHooks(req *DescribeLifecycleHooksType) (resp *DescribeLifecycleHooksResult, err error) {
resp = &DescribeLifecycleHooksResult{}
err = c.client.Do("DescribeLifecycleHooks", "POST", "/", req, resp)
return
}
// DescribeMetricCollectionTypes 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() (resp *DescribeMetricCollectionTypesResult, err error) {
resp = &DescribeMetricCollectionTypesResult{}
err = c.client.Do("DescribeMetricCollectionTypes", "POST", "/", nil, resp)
return
}
// DescribeNotificationConfigurations describes the notification actions
// associated with the specified Auto Scaling group.
func (c *AutoScaling) DescribeNotificationConfigurations(req *DescribeNotificationConfigurationsType) (resp *DescribeNotificationConfigurationsResult, err error) {
resp = &DescribeNotificationConfigurationsResult{}
err = c.client.Do("DescribeNotificationConfigurations", "POST", "/", req, resp)
return
}
// DescribePolicies 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(req *DescribePoliciesType) (resp *DescribePoliciesResult, err error) {
resp = &DescribePoliciesResult{}
err = c.client.Do("DescribePolicies", "POST", "/", req, resp)
return
}
// DescribeScalingActivities 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(req *DescribeScalingActivitiesType) (resp *DescribeScalingActivitiesResult, err error) {
resp = &DescribeScalingActivitiesResult{}
err = c.client.Do("DescribeScalingActivities", "POST", "/", req, resp)
return
}
// DescribeScalingProcessTypes returns scaling process types for use in the
// ResumeProcesses and SuspendProcesses actions.
func (c *AutoScaling) DescribeScalingProcessTypes() (resp *DescribeScalingProcessTypesResult, err error) {
resp = &DescribeScalingProcessTypesResult{}
err = c.client.Do("DescribeScalingProcessTypes", "POST", "/", nil, resp)
return
}
// DescribeScheduledActions lists the actions scheduled for your Auto
// Scaling group that haven't been executed. To list the actions that were
// already executed, use DescribeScalingActivities
func (c *AutoScaling) DescribeScheduledActions(req *DescribeScheduledActionsType) (resp *DescribeScheduledActionsResult, err error) {
resp = &DescribeScheduledActionsResult{}
err = c.client.Do("DescribeScheduledActions", "POST", "/", req, resp)
return
}
// DescribeTags describes the specified tags. You can use filters to limit
// the results. For example, you can query for the tags for a specific Auto
// Scaling group. You can specify multiple values for a filter. A tag must
// match at least one of the specified values for it to be included in the
// results. You can also specify multiple filters. The result includes
// information for a particular tag only if it matches all the filters. If
// there's no match, no special message is returned.
func (c *AutoScaling) DescribeTags(req *DescribeTagsType) (resp *DescribeTagsResult, err error) {
resp = &DescribeTagsResult{}
err = c.client.Do("DescribeTags", "POST", "/", req, resp)
return
}
// DescribeTerminationPolicyTypes lists the termination policies supported
// by Auto Scaling.
func (c *AutoScaling) DescribeTerminationPolicyTypes() (resp *DescribeTerminationPolicyTypesResult, err error) {
resp = &DescribeTerminationPolicyTypesResult{}
err = c.client.Do("DescribeTerminationPolicyTypes", "POST", "/", nil, resp)
return
}
// DetachInstances removes one or more instances from the specified Auto
// Scaling group. After the instances are detached, you can manage them
// independently from the rest of the Auto Scaling group. For more
// information, see Detach EC2 Instances from Your Auto Scaling Group in
// the Auto Scaling Developer Guide
func (c *AutoScaling) DetachInstances(req *DetachInstancesQuery) (resp *DetachInstancesResult, err error) {
resp = &DetachInstancesResult{}
err = c.client.Do("DetachInstances", "POST", "/", req, resp)
return
}
// DisableMetricsCollection disables monitoring of the specified metrics
// for the specified Auto Scaling group.
func (c *AutoScaling) DisableMetricsCollection(req *DisableMetricsCollectionQuery) (err error) {
// NRE
err = c.client.Do("DisableMetricsCollection", "POST", "/", req, nil)
return
}
// EnableMetricsCollection enables monitoring of the specified metrics for
// the specified Auto Scaling group. You can only enable metrics collection
// if InstanceMonitoring in the launch configuration for the group is set
// to True
func (c *AutoScaling) EnableMetricsCollection(req *EnableMetricsCollectionQuery) (err error) {
// NRE
err = c.client.Do("EnableMetricsCollection", "POST", "/", req, nil)
return
}
// EnterStandby moves the specified instances into Standby mode. For more
// information, see Auto Scaling InService State in the Auto Scaling
// Developer Guide
func (c *AutoScaling) EnterStandby(req *EnterStandbyQuery) (resp *EnterStandbyResult, err error) {
resp = &EnterStandbyResult{}
err = c.client.Do("EnterStandby", "POST", "/", req, resp)
return
}
// ExecutePolicy is undocumented.
func (c *AutoScaling) ExecutePolicy(req *ExecutePolicyType) (err error) {
// NRE
err = c.client.Do("ExecutePolicy", "POST", "/", req, nil)
return
}
// ExitStandby moves the specified instances out of Standby mode. For more
// information, see Auto Scaling InService State in the Auto Scaling
// Developer Guide
func (c *AutoScaling) ExitStandby(req *ExitStandbyQuery) (resp *ExitStandbyResult, err error) {
resp = &ExitStandbyResult{}
err = c.client.Do("ExitStandby", "POST", "/", req, resp)
return
}
// PutLifecycleHook creates or updates a lifecycle hook for the specified
// Auto Scaling Group. A lifecycle hook tells Auto Scaling that you want to
// perform an action on an instance that is not actively in service; for
// example, either when the instance launches or before the instance
// terminates. 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
// and Auto Scaling Terminating State in the Auto Scaling Developer Guide
func (c *AutoScaling) PutLifecycleHook(req *PutLifecycleHookType) (resp *PutLifecycleHookResult, err error) {
resp = &PutLifecycleHookResult{}
err = c.client.Do("PutLifecycleHook", "POST", "/", req, resp)
return
}
// PutNotificationConfiguration configures an Auto Scaling group to send
// notifications when specified events take place. Subscribers to this
// topic can have messages for events delivered to an endpoint such as a
// web server or email address. For more information see Getting
// Notifications When Your Auto Scaling Group Changes in the Auto Scaling
// Developer Guide This configuration overwrites an existing configuration.
func (c *AutoScaling) PutNotificationConfiguration(req *PutNotificationConfigurationType) (err error) {
// NRE
err = c.client.Do("PutNotificationConfiguration", "POST", "/", req, nil)
return
}
// PutScalingPolicy creates or updates a policy for an Auto Scaling group.
// To update an existing policy, use the existing policy name and set the
// parameters you want to change. Any existing parameter not changed in an
// update to an existing policy is not changed in this update request.
func (c *AutoScaling) PutScalingPolicy(req *PutScalingPolicyType) (resp *PutScalingPolicyResult, err error) {
resp = &PutScalingPolicyResult{}
err = c.client.Do("PutScalingPolicy", "POST", "/", req, resp)
return
}
// PutScheduledUpdateGroupAction creates or updates a scheduled scaling
// action for an Auto Scaling group. When updating a scheduled scaling
// action, if you leave a parameter unspecified, the corresponding value
// remains unchanged in the affected Auto Scaling group. For more
// information, see Scheduled Scaling in the Auto Scaling Developer Guide
// Auto Scaling supports the date and time expressed in
// "YYYY-MM-DDThh:mm:ssZ" format in only.
func (c *AutoScaling) PutScheduledUpdateGroupAction(req *PutScheduledUpdateGroupActionType) (err error) {
// NRE
err = c.client.Do("PutScheduledUpdateGroupAction", "POST", "/", req, nil)
return
}
// RecordLifecycleActionHeartbeat records a heartbeat for the lifecycle
// action associated with a specific token. This extends the timeout by the
// length of time defined by the HeartbeatTimeout parameter of
// PutLifecycleHook 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
// and Auto Scaling Terminating State in the Auto Scaling Developer Guide
func (c *AutoScaling) RecordLifecycleActionHeartbeat(req *RecordLifecycleActionHeartbeatType) (resp *RecordLifecycleActionHeartbeatResult, err error) {
resp = &RecordLifecycleActionHeartbeatResult{}
err = c.client.Do("RecordLifecycleActionHeartbeat", "POST", "/", req, resp)
return
}
// ResumeProcesses resumes the specified suspended Auto Scaling processes
// for the specified Auto Scaling group. To resume specific processes, use
// the ScalingProcesses parameter. To resume all processes, omit the
// ScalingProcesses parameter. For more information, see Suspend and Resume
// Auto Scaling Processes in the Auto Scaling Developer Guide
func (c *AutoScaling) ResumeProcesses(req *ScalingProcessQuery) (err error) {
// NRE
err = c.client.Do("ResumeProcesses", "POST", "/", req, nil)
return
}
// SetDesiredCapacity is undocumented.
func (c *AutoScaling) SetDesiredCapacity(req *SetDesiredCapacityType) (err error) {
// NRE
err = c.client.Do("SetDesiredCapacity", "POST", "/", req, nil)
return
}
// SetInstanceHealth sets the health status of the specified instance. For
// more information, see Health Checks in the Auto Scaling Developer Guide
func (c *AutoScaling) SetInstanceHealth(req *SetInstanceHealthQuery) (err error) {
// NRE
err = c.client.Do("SetInstanceHealth", "POST", "/", req, nil)
return
}
// SuspendProcesses suspends the specified Auto Scaling processes for the
// specified Auto Scaling group. To suspend specific processes, use the
// ScalingProcesses parameter. To suspend all processes, omit the
// ScalingProcesses parameter. Note that if you suspend either the Launch
// or Terminate process types, it can prevent other process types from
// functioning properly. To resume processes that have been suspended, use
// ResumeProcesses For more information, see Suspend and Resume Auto
// Scaling Processes in the Auto Scaling Developer Guide
func (c *AutoScaling) SuspendProcesses(req *ScalingProcessQuery) (err error) {
// NRE
err = c.client.Do("SuspendProcesses", "POST", "/", req, nil)
return
}
// TerminateInstanceInAutoScalingGroup terminates the specified instance
// and optionally adjusts the desired group size. This call simply makes a
// termination request. The instances is not terminated immediately.
func (c *AutoScaling) TerminateInstanceInAutoScalingGroup(req *TerminateInstanceInAutoScalingGroupType) (resp *TerminateInstanceInAutoScalingGroupResult, err error) {
resp = &TerminateInstanceInAutoScalingGroupResult{}
err = c.client.Do("TerminateInstanceInAutoScalingGroup", "POST", "/", req, resp)
return
}
// UpdateAutoScalingGroup updates the configuration for the specified
// AutoScalingGroup . To update an Auto Scaling group with a launch
// configuration that has the InstanceMonitoring flag set to False , you
// must first ensure that collection of group metrics is disabled.
// Otherwise, calls to UpdateAutoScalingGroup will fail. If you have
// previously enabled group metrics collection, you can disable collection
// of all group metrics by calling DisableMetricsCollection . The new
// settings are registered upon the completion of this call. Any launch
// configuration settings take effect on any triggers after this call
// returns. Scaling activities that are currently in progress aren't
// affected. If a new value is specified for MinSize without specifying the
// value for DesiredCapacity , and if the new MinSize is larger than the
// current size of the Auto Scaling group, there will be an implicit call
// to SetDesiredCapacity to set the group to the new MinSize . If a new
// value is specified for MaxSize without specifying the value for
// DesiredCapacity , and the new MaxSize is smaller than the current size
// of the Auto Scaling group, there will be an implicit call to
// SetDesiredCapacity to set the group to the new MaxSize . All other
// optional parameters are left unchanged if not passed in the request.
func (c *AutoScaling) UpdateAutoScalingGroup(req *UpdateAutoScalingGroupType) (err error) {
// NRE
err = c.client.Do("UpdateAutoScalingGroup", "POST", "/", req, nil)
return
}
// ActivitiesType is undocumented.
type ActivitiesType struct {
Activities []Activity `query:"Activities.member" xml:"DescribeScalingActivitiesResult>Activities>member"`
NextToken aws.StringValue `query:"NextToken" xml:"DescribeScalingActivitiesResult>NextToken"`
}
// Activity is undocumented.
type Activity struct {
ActivityID aws.StringValue `query:"ActivityId" xml:"ActivityId"`
AutoScalingGroupName aws.StringValue `query:"AutoScalingGroupName" xml:"AutoScalingGroupName"`
Cause aws.StringValue `query:"Cause" xml:"Cause"`
Description aws.StringValue `query:"Description" xml:"Description"`
Details aws.StringValue `query:"Details" xml:"Details"`
EndTime time.Time `query:"EndTime" xml:"EndTime"`
Progress aws.IntegerValue `query:"Progress" xml:"Progress"`
StartTime time.Time `query:"StartTime" xml:"StartTime"`
StatusCode aws.StringValue `query:"StatusCode" xml:"StatusCode"`
StatusMessage aws.StringValue `query:"StatusMessage" xml:"StatusMessage"`
}
// ActivityType is undocumented.
type ActivityType struct {
Activity *Activity `query:"Activity" xml:"TerminateInstanceInAutoScalingGroupResult>Activity"`
}
// AdjustmentType is undocumented.
type AdjustmentType struct {
AdjustmentType aws.StringValue `query:"AdjustmentType" xml:"AdjustmentType"`
}
// Alarm is undocumented.
type Alarm struct {
AlarmARN aws.StringValue `query:"AlarmARN" xml:"AlarmARN"`
AlarmName aws.StringValue `query:"AlarmName" xml:"AlarmName"`
}
// AttachInstancesQuery is undocumented.
type AttachInstancesQuery struct {
AutoScalingGroupName aws.StringValue `query:"AutoScalingGroupName" xml:"AutoScalingGroupName"`
InstanceIDs []string `query:"InstanceIds.member" xml:"InstanceIds>member"`
}
// AutoScalingGroup is undocumented.
type AutoScalingGroup struct {
AutoScalingGroupARN aws.StringValue `query:"AutoScalingGroupARN" xml:"AutoScalingGroupARN"`
AutoScalingGroupName aws.StringValue `query:"AutoScalingGroupName" xml:"AutoScalingGroupName"`
AvailabilityZones []string `query:"AvailabilityZones.member" xml:"AvailabilityZones>member"`
CreatedTime time.Time `query:"CreatedTime" xml:"CreatedTime"`
DefaultCooldown aws.IntegerValue `query:"DefaultCooldown" xml:"DefaultCooldown"`
DesiredCapacity aws.IntegerValue `query:"DesiredCapacity" xml:"DesiredCapacity"`
EnabledMetrics []EnabledMetric `query:"EnabledMetrics.member" xml:"EnabledMetrics>member"`
HealthCheckGracePeriod aws.IntegerValue `query:"HealthCheckGracePeriod" xml:"HealthCheckGracePeriod"`
HealthCheckType aws.StringValue `query:"HealthCheckType" xml:"HealthCheckType"`
Instances []Instance `query:"Instances.member" xml:"Instances>member"`
LaunchConfigurationName aws.StringValue `query:"LaunchConfigurationName" xml:"LaunchConfigurationName"`
LoadBalancerNames []string `query:"LoadBalancerNames.member" xml:"LoadBalancerNames>member"`
MaxSize aws.IntegerValue `query:"MaxSize" xml:"MaxSize"`
MinSize aws.IntegerValue `query:"MinSize" xml:"MinSize"`
PlacementGroup aws.StringValue `query:"PlacementGroup" xml:"PlacementGroup"`
Status aws.StringValue `query:"Status" xml:"Status"`
SuspendedProcesses []SuspendedProcess `query:"SuspendedProcesses.member" xml:"SuspendedProcesses>member"`
Tags []TagDescription `query:"Tags.member" xml:"Tags>member"`
TerminationPolicies []string `query:"TerminationPolicies.member" xml:"TerminationPolicies>member"`
VPCZoneIdentifier aws.StringValue `query:"VPCZoneIdentifier" xml:"VPCZoneIdentifier"`
}
// AutoScalingGroupNamesType is undocumented.
type AutoScalingGroupNamesType struct {
AutoScalingGroupNames []string `query:"AutoScalingGroupNames.member" xml:"AutoScalingGroupNames>member"`
MaxRecords aws.IntegerValue `query:"MaxRecords" xml:"MaxRecords"`
NextToken aws.StringValue `query:"NextToken" xml:"NextToken"`
}
// AutoScalingGroupsType is undocumented.
type AutoScalingGroupsType struct {
AutoScalingGroups []AutoScalingGroup `query:"AutoScalingGroups.member" xml:"DescribeAutoScalingGroupsResult>AutoScalingGroups>member"`
NextToken aws.StringValue `query:"NextToken" xml:"DescribeAutoScalingGroupsResult>NextToken"`
}
// AutoScalingInstanceDetails is undocumented.
type AutoScalingInstanceDetails struct {
AutoScalingGroupName aws.StringValue `query:"AutoScalingGroupName" xml:"AutoScalingGroupName"`
AvailabilityZone aws.StringValue `query:"AvailabilityZone" xml:"AvailabilityZone"`
HealthStatus aws.StringValue `query:"HealthStatus" xml:"HealthStatus"`
InstanceID aws.StringValue `query:"InstanceId" xml:"InstanceId"`
LaunchConfigurationName aws.StringValue `query:"LaunchConfigurationName" xml:"LaunchConfigurationName"`
LifecycleState aws.StringValue `query:"LifecycleState" xml:"LifecycleState"`
}
// AutoScalingInstancesType is undocumented.
type AutoScalingInstancesType struct {
AutoScalingInstances []AutoScalingInstanceDetails `query:"AutoScalingInstances.member" xml:"DescribeAutoScalingInstancesResult>AutoScalingInstances>member"`
NextToken aws.StringValue `query:"NextToken" xml:"DescribeAutoScalingInstancesResult>NextToken"`
}
// BlockDeviceMapping is undocumented.
type BlockDeviceMapping struct {
DeviceName aws.StringValue `query:"DeviceName" xml:"DeviceName"`
EBS *EBS `query:"Ebs" xml:"Ebs"`
NoDevice aws.BooleanValue `query:"NoDevice" xml:"NoDevice"`
VirtualName aws.StringValue `query:"VirtualName" xml:"VirtualName"`
}
// CompleteLifecycleActionAnswer is undocumented.
type CompleteLifecycleActionAnswer struct {
}
// CompleteLifecycleActionType is undocumented.
type CompleteLifecycleActionType struct {
AutoScalingGroupName aws.StringValue `query:"AutoScalingGroupName" xml:"AutoScalingGroupName"`
LifecycleActionResult aws.StringValue `query:"LifecycleActionResult" xml:"LifecycleActionResult"`
LifecycleActionToken aws.StringValue `query:"LifecycleActionToken" xml:"LifecycleActionToken"`
LifecycleHookName aws.StringValue `query:"LifecycleHookName" xml:"LifecycleHookName"`
}
// CreateAutoScalingGroupType is undocumented.
type CreateAutoScalingGroupType struct {
AutoScalingGroupName aws.StringValue `query:"AutoScalingGroupName" xml:"AutoScalingGroupName"`
AvailabilityZones []string `query:"AvailabilityZones.member" xml:"AvailabilityZones>member"`
DefaultCooldown aws.IntegerValue `query:"DefaultCooldown" xml:"DefaultCooldown"`
DesiredCapacity aws.IntegerValue `query:"DesiredCapacity" xml:"DesiredCapacity"`
HealthCheckGracePeriod aws.IntegerValue `query:"HealthCheckGracePeriod" xml:"HealthCheckGracePeriod"`
HealthCheckType aws.StringValue `query:"HealthCheckType" xml:"HealthCheckType"`
InstanceID aws.StringValue `query:"InstanceId" xml:"InstanceId"`
LaunchConfigurationName aws.StringValue `query:"LaunchConfigurationName" xml:"LaunchConfigurationName"`
LoadBalancerNames []string `query:"LoadBalancerNames.member" xml:"LoadBalancerNames>member"`
MaxSize aws.IntegerValue `query:"MaxSize" xml:"MaxSize"`
MinSize aws.IntegerValue `query:"MinSize" xml:"MinSize"`
PlacementGroup aws.StringValue `query:"PlacementGroup" xml:"PlacementGroup"`
Tags []Tag `query:"Tags.member" xml:"Tags>member"`
TerminationPolicies []string `query:"TerminationPolicies.member" xml:"TerminationPolicies>member"`
VPCZoneIdentifier aws.StringValue `query:"VPCZoneIdentifier" xml:"VPCZoneIdentifier"`
}
// CreateLaunchConfigurationType is undocumented.
type CreateLaunchConfigurationType struct {
AssociatePublicIPAddress aws.BooleanValue `query:"AssociatePublicIpAddress" xml:"AssociatePublicIpAddress"`
BlockDeviceMappings []BlockDeviceMapping `query:"BlockDeviceMappings.member" xml:"BlockDeviceMappings>member"`
ClassicLinkVPCID aws.StringValue `query:"ClassicLinkVPCId" xml:"ClassicLinkVPCId"`
ClassicLinkVPCSecurityGroups []string `query:"ClassicLinkVPCSecurityGroups.member" xml:"ClassicLinkVPCSecurityGroups>member"`
EBSOptimized aws.BooleanValue `query:"EbsOptimized" xml:"EbsOptimized"`
IAMInstanceProfile aws.StringValue `query:"IamInstanceProfile" xml:"IamInstanceProfile"`
ImageID aws.StringValue `query:"ImageId" xml:"ImageId"`
InstanceID aws.StringValue `query:"InstanceId" xml:"InstanceId"`
InstanceMonitoring *InstanceMonitoring `query:"InstanceMonitoring" xml:"InstanceMonitoring"`
InstanceType aws.StringValue `query:"InstanceType" xml:"InstanceType"`
KernelID aws.StringValue `query:"KernelId" xml:"KernelId"`
KeyName aws.StringValue `query:"KeyName" xml:"KeyName"`
LaunchConfigurationName aws.StringValue `query:"LaunchConfigurationName" xml:"LaunchConfigurationName"`
PlacementTenancy aws.StringValue `query:"PlacementTenancy" xml:"PlacementTenancy"`
RAMDiskID aws.StringValue `query:"RamdiskId" xml:"RamdiskId"`
SecurityGroups []string `query:"SecurityGroups.member" xml:"SecurityGroups>member"`
SpotPrice aws.StringValue `query:"SpotPrice" xml:"SpotPrice"`
UserData aws.StringValue `query:"UserData" xml:"UserData"`
}
// CreateOrUpdateTagsType is undocumented.
type CreateOrUpdateTagsType struct {
Tags []Tag `query:"Tags.member" xml:"Tags>member"`
}
// DeleteAutoScalingGroupType is undocumented.
type DeleteAutoScalingGroupType struct {
AutoScalingGroupName aws.StringValue `query:"AutoScalingGroupName" xml:"AutoScalingGroupName"`
ForceDelete aws.BooleanValue `query:"ForceDelete" xml:"ForceDelete"`
}
// DeleteLifecycleHookAnswer is undocumented.
type DeleteLifecycleHookAnswer struct {
}
// DeleteLifecycleHookType is undocumented.
type DeleteLifecycleHookType struct {
AutoScalingGroupName aws.StringValue `query:"AutoScalingGroupName" xml:"AutoScalingGroupName"`
LifecycleHookName aws.StringValue `query:"LifecycleHookName" xml:"LifecycleHookName"`
}
// DeleteNotificationConfigurationType is undocumented.
type DeleteNotificationConfigurationType struct {
AutoScalingGroupName aws.StringValue `query:"AutoScalingGroupName" xml:"AutoScalingGroupName"`
TopicARN aws.StringValue `query:"TopicARN" xml:"TopicARN"`
}
// DeletePolicyType is undocumented.
type DeletePolicyType struct {
AutoScalingGroupName aws.StringValue `query:"AutoScalingGroupName" xml:"AutoScalingGroupName"`
PolicyName aws.StringValue `query:"PolicyName" xml:"PolicyName"`
}
// DeleteScheduledActionType is undocumented.
type DeleteScheduledActionType struct {
AutoScalingGroupName aws.StringValue `query:"AutoScalingGroupName" xml:"AutoScalingGroupName"`
ScheduledActionName aws.StringValue `query:"ScheduledActionName" xml:"ScheduledActionName"`
}
// DeleteTagsType is undocumented.
type DeleteTagsType struct {
Tags []Tag `query:"Tags.member" xml:"Tags>member"`
}
// DescribeAccountLimitsAnswer is undocumented.
type DescribeAccountLimitsAnswer struct {
MaxNumberOfAutoScalingGroups aws.IntegerValue `query:"MaxNumberOfAutoScalingGroups" xml:"DescribeAccountLimitsResult>MaxNumberOfAutoScalingGroups"`
MaxNumberOfLaunchConfigurations aws.IntegerValue `query:"MaxNumberOfLaunchConfigurations" xml:"DescribeAccountLimitsResult>MaxNumberOfLaunchConfigurations"`
}
// DescribeAdjustmentTypesAnswer is undocumented.
type DescribeAdjustmentTypesAnswer struct {
AdjustmentTypes []AdjustmentType `query:"AdjustmentTypes.member" xml:"DescribeAdjustmentTypesResult>AdjustmentTypes>member"`
}
// DescribeAutoScalingInstancesType is undocumented.
type DescribeAutoScalingInstancesType struct {
InstanceIDs []string `query:"InstanceIds.member" xml:"InstanceIds>member"`
MaxRecords aws.IntegerValue `query:"MaxRecords" xml:"MaxRecords"`
NextToken aws.StringValue `query:"NextToken" xml:"NextToken"`
}
// DescribeAutoScalingNotificationTypesAnswer is undocumented.
type DescribeAutoScalingNotificationTypesAnswer struct {
AutoScalingNotificationTypes []string `query:"AutoScalingNotificationTypes.member" xml:"DescribeAutoScalingNotificationTypesResult>AutoScalingNotificationTypes>member"`
}
// DescribeLifecycleHookTypesAnswer is undocumented.
type DescribeLifecycleHookTypesAnswer struct {
LifecycleHookTypes []string `query:"LifecycleHookTypes.member" xml:"DescribeLifecycleHookTypesResult>LifecycleHookTypes>member"`
}
// DescribeLifecycleHooksAnswer is undocumented.
type DescribeLifecycleHooksAnswer struct {
LifecycleHooks []LifecycleHook `query:"LifecycleHooks.member" xml:"DescribeLifecycleHooksResult>LifecycleHooks>member"`
}
// DescribeLifecycleHooksType is undocumented.
type DescribeLifecycleHooksType struct {
AutoScalingGroupName aws.StringValue `query:"AutoScalingGroupName" xml:"AutoScalingGroupName"`
LifecycleHookNames []string `query:"LifecycleHookNames.member" xml:"LifecycleHookNames>member"`
}
// DescribeMetricCollectionTypesAnswer is undocumented.
type DescribeMetricCollectionTypesAnswer struct {
Granularities []MetricGranularityType `query:"Granularities.member" xml:"DescribeMetricCollectionTypesResult>Granularities>member"`
Metrics []MetricCollectionType `query:"Metrics.member" xml:"DescribeMetricCollectionTypesResult>Metrics>member"`
}
// DescribeNotificationConfigurationsAnswer is undocumented.
type DescribeNotificationConfigurationsAnswer struct {
NextToken aws.StringValue `query:"NextToken" xml:"DescribeNotificationConfigurationsResult>NextToken"`
NotificationConfigurations []NotificationConfiguration `query:"NotificationConfigurations.member" xml:"DescribeNotificationConfigurationsResult>NotificationConfigurations>member"`
}
// DescribeNotificationConfigurationsType is undocumented.
type DescribeNotificationConfigurationsType struct {
AutoScalingGroupNames []string `query:"AutoScalingGroupNames.member" xml:"AutoScalingGroupNames>member"`
MaxRecords aws.IntegerValue `query:"MaxRecords" xml:"MaxRecords"`
NextToken aws.StringValue `query:"NextToken" xml:"NextToken"`
}
// DescribePoliciesType is undocumented.
type DescribePoliciesType struct {
AutoScalingGroupName aws.StringValue `query:"AutoScalingGroupName" xml:"AutoScalingGroupName"`
MaxRecords aws.IntegerValue `query:"MaxRecords" xml:"MaxRecords"`
NextToken aws.StringValue `query:"NextToken" xml:"NextToken"`
PolicyNames []string `query:"PolicyNames.member" xml:"PolicyNames>member"`
}
// DescribeScalingActivitiesType is undocumented.
type DescribeScalingActivitiesType struct {
ActivityIDs []string `query:"ActivityIds.member" xml:"ActivityIds>member"`
AutoScalingGroupName aws.StringValue `query:"AutoScalingGroupName" xml:"AutoScalingGroupName"`
MaxRecords aws.IntegerValue `query:"MaxRecords" xml:"MaxRecords"`
NextToken aws.StringValue `query:"NextToken" xml:"NextToken"`
}
// DescribeScheduledActionsType is undocumented.
type DescribeScheduledActionsType struct {
AutoScalingGroupName aws.StringValue `query:"AutoScalingGroupName" xml:"AutoScalingGroupName"`
EndTime time.Time `query:"EndTime" xml:"EndTime"`
MaxRecords aws.IntegerValue `query:"MaxRecords" xml:"MaxRecords"`
NextToken aws.StringValue `query:"NextToken" xml:"NextToken"`
ScheduledActionNames []string `query:"ScheduledActionNames.member" xml:"ScheduledActionNames>member"`
StartTime time.Time `query:"StartTime" xml:"StartTime"`
}
// DescribeTagsType is undocumented.
type DescribeTagsType struct {
Filters []Filter `query:"Filters.member" xml:"Filters>member"`
MaxRecords aws.IntegerValue `query:"MaxRecords" xml:"MaxRecords"`
NextToken aws.StringValue `query:"NextToken" xml:"NextToken"`
}
// DescribeTerminationPolicyTypesAnswer is undocumented.
type DescribeTerminationPolicyTypesAnswer struct {
TerminationPolicyTypes []string `query:"TerminationPolicyTypes.member" xml:"DescribeTerminationPolicyTypesResult>TerminationPolicyTypes>member"`
}
// DetachInstancesAnswer is undocumented.
type DetachInstancesAnswer struct {
Activities []Activity `query:"Activities.member" xml:"DetachInstancesResult>Activities>member"`
}
// DetachInstancesQuery is undocumented.
type DetachInstancesQuery struct {
AutoScalingGroupName aws.StringValue `query:"AutoScalingGroupName" xml:"AutoScalingGroupName"`
InstanceIDs []string `query:"InstanceIds.member" xml:"InstanceIds>member"`
ShouldDecrementDesiredCapacity aws.BooleanValue `query:"ShouldDecrementDesiredCapacity" xml:"ShouldDecrementDesiredCapacity"`
}
// DisableMetricsCollectionQuery is undocumented.
type DisableMetricsCollectionQuery struct {
AutoScalingGroupName aws.StringValue `query:"AutoScalingGroupName" xml:"AutoScalingGroupName"`
Metrics []string `query:"Metrics.member" xml:"Metrics>member"`
}
// EBS is undocumented.
type EBS struct {
DeleteOnTermination aws.BooleanValue `query:"DeleteOnTermination" xml:"DeleteOnTermination"`
IOPS aws.IntegerValue `query:"Iops" xml:"Iops"`
SnapshotID aws.StringValue `query:"SnapshotId" xml:"SnapshotId"`
VolumeSize aws.IntegerValue `query:"VolumeSize" xml:"VolumeSize"`
VolumeType aws.StringValue `query:"VolumeType" xml:"VolumeType"`
}
// EnableMetricsCollectionQuery is undocumented.
type EnableMetricsCollectionQuery struct {
AutoScalingGroupName aws.StringValue `query:"AutoScalingGroupName" xml:"AutoScalingGroupName"`
Granularity aws.StringValue `query:"Granularity" xml:"Granularity"`
Metrics []string `query:"Metrics.member" xml:"Metrics>member"`
}
// EnabledMetric is undocumented.
type EnabledMetric struct {
Granularity aws.StringValue `query:"Granularity" xml:"Granularity"`
Metric aws.StringValue `query:"Metric" xml:"Metric"`
}
// EnterStandbyAnswer is undocumented.
type EnterStandbyAnswer struct {
Activities []Activity `query:"Activities.member" xml:"EnterStandbyResult>Activities>member"`
}
// EnterStandbyQuery is undocumented.
type EnterStandbyQuery struct {
AutoScalingGroupName aws.StringValue `query:"AutoScalingGroupName" xml:"AutoScalingGroupName"`
InstanceIDs []string `query:"InstanceIds.member" xml:"InstanceIds>member"`
ShouldDecrementDesiredCapacity aws.BooleanValue `query:"ShouldDecrementDesiredCapacity" xml:"ShouldDecrementDesiredCapacity"`
}
// ExecutePolicyType is undocumented.
type ExecutePolicyType struct {
AutoScalingGroupName aws.StringValue `query:"AutoScalingGroupName" xml:"AutoScalingGroupName"`
HonorCooldown aws.BooleanValue `query:"HonorCooldown" xml:"HonorCooldown"`
PolicyName aws.StringValue `query:"PolicyName" xml:"PolicyName"`
}
// ExitStandbyAnswer is undocumented.
type ExitStandbyAnswer struct {
Activities []Activity `query:"Activities.member" xml:"ExitStandbyResult>Activities>member"`
}
// ExitStandbyQuery is undocumented.
type ExitStandbyQuery struct {
AutoScalingGroupName aws.StringValue `query:"AutoScalingGroupName" xml:"AutoScalingGroupName"`
InstanceIDs []string `query:"InstanceIds.member" xml:"InstanceIds>member"`
}
// Filter is undocumented.
type Filter struct {
Name aws.StringValue `query:"Name" xml:"Name"`
Values []string `query:"Values.member" xml:"Values>member"`
}
// Instance is undocumented.
type Instance struct {
AvailabilityZone aws.StringValue `query:"AvailabilityZone" xml:"AvailabilityZone"`
HealthStatus aws.StringValue `query:"HealthStatus" xml:"HealthStatus"`
InstanceID aws.StringValue `query:"InstanceId" xml:"InstanceId"`
LaunchConfigurationName aws.StringValue `query:"LaunchConfigurationName" xml:"LaunchConfigurationName"`
LifecycleState aws.StringValue `query:"LifecycleState" xml:"LifecycleState"`
}
// InstanceMonitoring is undocumented.
type InstanceMonitoring struct {
Enabled aws.BooleanValue `query:"Enabled" xml:"Enabled"`
}
// LaunchConfiguration is undocumented.
type LaunchConfiguration struct {
AssociatePublicIPAddress aws.BooleanValue `query:"AssociatePublicIpAddress" xml:"AssociatePublicIpAddress"`
BlockDeviceMappings []BlockDeviceMapping `query:"BlockDeviceMappings.member" xml:"BlockDeviceMappings>member"`
ClassicLinkVPCID aws.StringValue `query:"ClassicLinkVPCId" xml:"ClassicLinkVPCId"`
ClassicLinkVPCSecurityGroups []string `query:"ClassicLinkVPCSecurityGroups.member" xml:"ClassicLinkVPCSecurityGroups>member"`
CreatedTime time.Time `query:"CreatedTime" xml:"CreatedTime"`
EBSOptimized aws.BooleanValue `query:"EbsOptimized" xml:"EbsOptimized"`
IAMInstanceProfile aws.StringValue `query:"IamInstanceProfile" xml:"IamInstanceProfile"`
ImageID aws.StringValue `query:"ImageId" xml:"ImageId"`
InstanceMonitoring *InstanceMonitoring `query:"InstanceMonitoring" xml:"InstanceMonitoring"`
InstanceType aws.StringValue `query:"InstanceType" xml:"InstanceType"`
KernelID aws.StringValue `query:"KernelId" xml:"KernelId"`
KeyName aws.StringValue `query:"KeyName" xml:"KeyName"`
LaunchConfigurationARN aws.StringValue `query:"LaunchConfigurationARN" xml:"LaunchConfigurationARN"`
LaunchConfigurationName aws.StringValue `query:"LaunchConfigurationName" xml:"LaunchConfigurationName"`
PlacementTenancy aws.StringValue `query:"PlacementTenancy" xml:"PlacementTenancy"`
RAMDiskID aws.StringValue `query:"RamdiskId" xml:"RamdiskId"`
SecurityGroups []string `query:"SecurityGroups.member" xml:"SecurityGroups>member"`
SpotPrice aws.StringValue `query:"SpotPrice" xml:"SpotPrice"`
UserData aws.StringValue `query:"UserData" xml:"UserData"`
}
// LaunchConfigurationNameType is undocumented.
type LaunchConfigurationNameType struct {
LaunchConfigurationName aws.StringValue `query:"LaunchConfigurationName" xml:"LaunchConfigurationName"`
}
// LaunchConfigurationNamesType is undocumented.
type LaunchConfigurationNamesType struct {
LaunchConfigurationNames []string `query:"LaunchConfigurationNames.member" xml:"LaunchConfigurationNames>member"`
MaxRecords aws.IntegerValue `query:"MaxRecords" xml:"MaxRecords"`
NextToken aws.StringValue `query:"NextToken" xml:"NextToken"`
}
// LaunchConfigurationsType is undocumented.
type LaunchConfigurationsType struct {
LaunchConfigurations []LaunchConfiguration `query:"LaunchConfigurations.member" xml:"DescribeLaunchConfigurationsResult>LaunchConfigurations>member"`
NextToken aws.StringValue `query:"NextToken" xml:"DescribeLaunchConfigurationsResult>NextToken"`
}
// LifecycleHook is undocumented.
type LifecycleHook struct {
AutoScalingGroupName aws.StringValue `query:"AutoScalingGroupName" xml:"AutoScalingGroupName"`