forked from awslabs/aws-sdk-kotlin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
auto-scaling.json
11163 lines (11163 loc) · 706 KB
/
auto-scaling.json
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
{
"smithy": "2.0",
"metadata": {
"suppressions": [
{
"id": "HttpMethodSemantics",
"namespace": "*"
},
{
"id": "HttpResponseCodeSemantics",
"namespace": "*"
},
{
"id": "PaginatedTrait",
"namespace": "*"
},
{
"id": "HttpHeaderTrait",
"namespace": "*"
},
{
"id": "HttpUriConflict",
"namespace": "*"
},
{
"id": "Service",
"namespace": "*"
}
]
},
"shapes": {
"com.amazonaws.autoscaling#AcceleratorCountRequest": {
"type": "structure",
"members": {
"Min": {
"target": "com.amazonaws.autoscaling#NullablePositiveInteger",
"traits": {
"smithy.api#documentation": "<p>The minimum value.</p>"
}
},
"Max": {
"target": "com.amazonaws.autoscaling#NullablePositiveInteger",
"traits": {
"smithy.api#documentation": "<p>The maximum value.</p>"
}
}
},
"traits": {
"smithy.api#documentation": "<p>Specifies the minimum and maximum for the <code>AcceleratorCount</code> object when\n you specify <a>InstanceRequirements</a> for an Auto Scaling group.</p>"
}
},
"com.amazonaws.autoscaling#AcceleratorManufacturer": {
"type": "enum",
"members": {
"NVIDIA": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "nvidia"
}
},
"AMD": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "amd"
}
},
"AMAZON_WEB_SERVICES": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "amazon-web-services"
}
},
"XILINX": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "xilinx"
}
}
}
},
"com.amazonaws.autoscaling#AcceleratorManufacturers": {
"type": "list",
"member": {
"target": "com.amazonaws.autoscaling#AcceleratorManufacturer"
}
},
"com.amazonaws.autoscaling#AcceleratorName": {
"type": "enum",
"members": {
"A100": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "a100"
}
},
"V100": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "v100"
}
},
"K80": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "k80"
}
},
"T4": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "t4"
}
},
"M60": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "m60"
}
},
"RADEON_PRO_V520": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "radeon-pro-v520"
}
},
"VU9P": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "vu9p"
}
}
}
},
"com.amazonaws.autoscaling#AcceleratorNames": {
"type": "list",
"member": {
"target": "com.amazonaws.autoscaling#AcceleratorName"
}
},
"com.amazonaws.autoscaling#AcceleratorTotalMemoryMiBRequest": {
"type": "structure",
"members": {
"Min": {
"target": "com.amazonaws.autoscaling#NullablePositiveInteger",
"traits": {
"smithy.api#documentation": "<p>The memory minimum in MiB.</p>"
}
},
"Max": {
"target": "com.amazonaws.autoscaling#NullablePositiveInteger",
"traits": {
"smithy.api#documentation": "<p>The memory maximum in MiB.</p>"
}
}
},
"traits": {
"smithy.api#documentation": "<p>Specifies the minimum and maximum for the <code>AcceleratorTotalMemoryMiB</code>\n object when you specify <a>InstanceRequirements</a> for an Auto Scaling group.</p>"
}
},
"com.amazonaws.autoscaling#AcceleratorType": {
"type": "enum",
"members": {
"GPU": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "gpu"
}
},
"FPGA": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "fpga"
}
},
"INFERENCE": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "inference"
}
}
}
},
"com.amazonaws.autoscaling#AcceleratorTypes": {
"type": "list",
"member": {
"target": "com.amazonaws.autoscaling#AcceleratorType"
}
},
"com.amazonaws.autoscaling#ActiveInstanceRefreshNotFoundFault": {
"type": "structure",
"members": {
"message": {
"target": "com.amazonaws.autoscaling#XmlStringMaxLen255"
}
},
"traits": {
"aws.protocols#awsQueryError": {
"code": "ActiveInstanceRefreshNotFound",
"httpResponseCode": 400
},
"smithy.api#documentation": "<p>The request failed because an active instance refresh or rollback for the specified\n Auto Scaling group was not found.</p>",
"smithy.api#error": "client",
"smithy.api#httpError": 400
}
},
"com.amazonaws.autoscaling#Activities": {
"type": "list",
"member": {
"target": "com.amazonaws.autoscaling#Activity"
}
},
"com.amazonaws.autoscaling#ActivitiesType": {
"type": "structure",
"members": {
"Activities": {
"target": "com.amazonaws.autoscaling#Activities",
"traits": {
"smithy.api#clientOptional": {},
"smithy.api#documentation": "<p>The scaling activities. Activities are sorted by start time. Activities still in\n progress are described first.</p>",
"smithy.api#required": {}
}
},
"NextToken": {
"target": "com.amazonaws.autoscaling#XmlString",
"traits": {
"smithy.api#documentation": "<p>A string that indicates that the response contains more items than can be returned in\n a single response. To receive additional items, specify this string for the\n <code>NextToken</code> value when requesting the next set of items. This value is\n null when there are no more items to return.</p>"
}
}
}
},
"com.amazonaws.autoscaling#Activity": {
"type": "structure",
"members": {
"ActivityId": {
"target": "com.amazonaws.autoscaling#XmlString",
"traits": {
"smithy.api#clientOptional": {},
"smithy.api#documentation": "<p>The ID of the activity.</p>",
"smithy.api#required": {}
}
},
"AutoScalingGroupName": {
"target": "com.amazonaws.autoscaling#XmlStringMaxLen255",
"traits": {
"smithy.api#clientOptional": {},
"smithy.api#documentation": "<p>The name of the Auto Scaling group.</p>",
"smithy.api#required": {}
}
},
"Description": {
"target": "com.amazonaws.autoscaling#XmlString",
"traits": {
"smithy.api#documentation": "<p>A friendly, more verbose description of the activity.</p>"
}
},
"Cause": {
"target": "com.amazonaws.autoscaling#XmlStringMaxLen1023",
"traits": {
"smithy.api#clientOptional": {},
"smithy.api#documentation": "<p>The reason the activity began.</p>",
"smithy.api#required": {}
}
},
"StartTime": {
"target": "com.amazonaws.autoscaling#TimestampType",
"traits": {
"smithy.api#clientOptional": {},
"smithy.api#documentation": "<p>The start time of the activity.</p>",
"smithy.api#required": {}
}
},
"EndTime": {
"target": "com.amazonaws.autoscaling#TimestampType",
"traits": {
"smithy.api#documentation": "<p>The end time of the activity.</p>"
}
},
"StatusCode": {
"target": "com.amazonaws.autoscaling#ScalingActivityStatusCode",
"traits": {
"smithy.api#clientOptional": {},
"smithy.api#documentation": "<p>The current status of the activity.</p>",
"smithy.api#required": {}
}
},
"StatusMessage": {
"target": "com.amazonaws.autoscaling#XmlStringMaxLen255",
"traits": {
"smithy.api#documentation": "<p>A friendly, more verbose description of the activity status.</p>"
}
},
"Progress": {
"target": "com.amazonaws.autoscaling#Progress",
"traits": {
"smithy.api#documentation": "<p>A value between 0 and 100 that indicates the progress of the activity.</p>"
}
},
"Details": {
"target": "com.amazonaws.autoscaling#XmlString",
"traits": {
"smithy.api#documentation": "<p>The details about the activity.</p>"
}
},
"AutoScalingGroupState": {
"target": "com.amazonaws.autoscaling#AutoScalingGroupState",
"traits": {
"smithy.api#documentation": "<p>The state of the Auto Scaling group, which is either <code>InService</code> or\n <code>Deleted</code>.</p>"
}
},
"AutoScalingGroupARN": {
"target": "com.amazonaws.autoscaling#ResourceName",
"traits": {
"smithy.api#documentation": "<p>The Amazon Resource Name (ARN) of the Auto Scaling group.</p>"
}
}
},
"traits": {
"smithy.api#documentation": "<p>Describes scaling activity, which is a long-running process that represents a change\n to your Auto Scaling group, such as changing its size or replacing an instance.</p>"
}
},
"com.amazonaws.autoscaling#ActivityIds": {
"type": "list",
"member": {
"target": "com.amazonaws.autoscaling#XmlString"
}
},
"com.amazonaws.autoscaling#ActivityType": {
"type": "structure",
"members": {
"Activity": {
"target": "com.amazonaws.autoscaling#Activity",
"traits": {
"smithy.api#documentation": "<p>A scaling activity.</p>"
}
}
}
},
"com.amazonaws.autoscaling#AdjustmentType": {
"type": "structure",
"members": {
"AdjustmentType": {
"target": "com.amazonaws.autoscaling#XmlStringMaxLen255",
"traits": {
"smithy.api#documentation": "<p>The policy adjustment type. The valid values are <code>ChangeInCapacity</code>,\n <code>ExactCapacity</code>, and <code>PercentChangeInCapacity</code>.</p>"
}
}
},
"traits": {
"smithy.api#documentation": "<p>Describes a policy adjustment type.</p>"
}
},
"com.amazonaws.autoscaling#AdjustmentTypes": {
"type": "list",
"member": {
"target": "com.amazonaws.autoscaling#AdjustmentType"
}
},
"com.amazonaws.autoscaling#Alarm": {
"type": "structure",
"members": {
"AlarmName": {
"target": "com.amazonaws.autoscaling#XmlStringMaxLen255",
"traits": {
"smithy.api#documentation": "<p>The name of the alarm.</p>"
}
},
"AlarmARN": {
"target": "com.amazonaws.autoscaling#ResourceName",
"traits": {
"smithy.api#documentation": "<p>The Amazon Resource Name (ARN) of the alarm.</p>"
}
}
},
"traits": {
"smithy.api#documentation": "<p>Describes an alarm.</p>"
}
},
"com.amazonaws.autoscaling#AlarmList": {
"type": "list",
"member": {
"target": "com.amazonaws.autoscaling#XmlStringMaxLen255"
}
},
"com.amazonaws.autoscaling#AlarmSpecification": {
"type": "structure",
"members": {
"Alarms": {
"target": "com.amazonaws.autoscaling#AlarmList",
"traits": {
"smithy.api#documentation": "<p>The names of one or more CloudWatch alarms to monitor for the instance refresh. You can\n specify up to 10 alarms.</p>"
}
}
},
"traits": {
"smithy.api#documentation": "<p>Specifies the CloudWatch alarm specification to use in an instance refresh.</p>"
}
},
"com.amazonaws.autoscaling#Alarms": {
"type": "list",
"member": {
"target": "com.amazonaws.autoscaling#Alarm"
}
},
"com.amazonaws.autoscaling#AllowedInstanceType": {
"type": "string",
"traits": {
"smithy.api#length": {
"min": 1,
"max": 30
},
"smithy.api#pattern": "^[a-zA-Z0-9\\.\\*\\-]+$"
}
},
"com.amazonaws.autoscaling#AllowedInstanceTypes": {
"type": "list",
"member": {
"target": "com.amazonaws.autoscaling#AllowedInstanceType"
},
"traits": {
"smithy.api#length": {
"min": 0,
"max": 400
}
}
},
"com.amazonaws.autoscaling#AlreadyExistsFault": {
"type": "structure",
"members": {
"message": {
"target": "com.amazonaws.autoscaling#XmlStringMaxLen255",
"traits": {
"smithy.api#documentation": "<p></p>"
}
}
},
"traits": {
"aws.protocols#awsQueryError": {
"code": "AlreadyExists",
"httpResponseCode": 400
},
"smithy.api#documentation": "<p>You already have an Auto Scaling group or launch configuration with this name.</p>",
"smithy.api#error": "client",
"smithy.api#httpError": 400
}
},
"com.amazonaws.autoscaling#AnyPrintableAsciiStringMaxLen4000": {
"type": "string",
"traits": {
"smithy.api#length": {
"min": 1,
"max": 4000
},
"smithy.api#pattern": "^[\\u0009\\u000A\\u000D\\u0020-\\u007e]+$"
}
},
"com.amazonaws.autoscaling#AsciiStringMaxLen255": {
"type": "string",
"traits": {
"smithy.api#length": {
"min": 1,
"max": 255
},
"smithy.api#pattern": "^[A-Za-z0-9\\-_\\/]+$"
}
},
"com.amazonaws.autoscaling#AssociatePublicIpAddress": {
"type": "boolean"
},
"com.amazonaws.autoscaling#AttachInstances": {
"type": "operation",
"input": {
"target": "com.amazonaws.autoscaling#AttachInstancesQuery"
},
"output": {
"target": "smithy.api#Unit"
},
"errors": [
{
"target": "com.amazonaws.autoscaling#ResourceContentionFault"
},
{
"target": "com.amazonaws.autoscaling#ServiceLinkedRoleFailure"
}
],
"traits": {
"smithy.api#documentation": "<p>Attaches one or more EC2 instances to the specified Auto Scaling group.</p>\n <p>When you attach instances, Amazon EC2 Auto Scaling increases the desired capacity of the group by the\n number of instances being attached. If the number of instances being attached plus the\n desired capacity of the group exceeds the maximum size of the group, the operation\n fails.</p>\n <p>If there is a Classic Load Balancer attached to your Auto Scaling group, the instances are\n also registered with the load balancer. If there are target groups attached to your Auto Scaling\n group, the instances are also registered with the target groups.</p>\n <p>For more information, see <a href=\"https://docs.aws.amazon.com/autoscaling/ec2/userguide/attach-instance-asg.html\">Attach EC2 instances to\n your Auto Scaling group</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.</p>",
"smithy.api#examples": [
{
"title": "To attach an instance to an Auto Scaling group",
"documentation": "This example attaches the specified instance to the specified Auto Scaling group.",
"input": {
"InstanceIds": [
"i-93633f9b"
],
"AutoScalingGroupName": "my-auto-scaling-group"
}
}
]
}
},
"com.amazonaws.autoscaling#AttachInstancesQuery": {
"type": "structure",
"members": {
"InstanceIds": {
"target": "com.amazonaws.autoscaling#InstanceIds",
"traits": {
"smithy.api#documentation": "<p>The IDs of the instances. You can specify up to 20 instances.</p>"
}
},
"AutoScalingGroupName": {
"target": "com.amazonaws.autoscaling#XmlStringMaxLen255",
"traits": {
"smithy.api#clientOptional": {},
"smithy.api#documentation": "<p>The name of the Auto Scaling group.</p>",
"smithy.api#required": {}
}
}
}
},
"com.amazonaws.autoscaling#AttachLoadBalancerTargetGroups": {
"type": "operation",
"input": {
"target": "com.amazonaws.autoscaling#AttachLoadBalancerTargetGroupsType"
},
"output": {
"target": "com.amazonaws.autoscaling#AttachLoadBalancerTargetGroupsResultType"
},
"errors": [
{
"target": "com.amazonaws.autoscaling#ResourceContentionFault"
},
{
"target": "com.amazonaws.autoscaling#ServiceLinkedRoleFailure"
}
],
"traits": {
"smithy.api#documentation": "<note>\n <p>This API operation is superseded by <a>AttachTrafficSources</a>, which\n can attach multiple traffic sources types. We recommend using\n <code>AttachTrafficSources</code> to simplify how you manage traffic sources.\n However, we continue to support <code>AttachLoadBalancerTargetGroups</code>. You can\n use both the original <code>AttachLoadBalancerTargetGroups</code> API operation and\n <code>AttachTrafficSources</code> on the same Auto Scaling group.</p>\n </note>\n <p>Attaches one or more target groups to the specified Auto Scaling group.</p>\n <p>This operation is used with the following load balancer types: </p>\n <ul>\n <li>\n <p>Application Load Balancer - Operates at the application layer (layer 7) and supports HTTP and\n HTTPS. </p>\n </li>\n <li>\n <p>Network Load Balancer - Operates at the transport layer (layer 4) and supports TCP, TLS, and\n UDP. </p>\n </li>\n <li>\n <p>Gateway Load Balancer - Operates at the network layer (layer 3).</p>\n </li>\n </ul>\n <p>To describe the target groups for an Auto Scaling group, call the <a>DescribeLoadBalancerTargetGroups</a> API. To detach the target group from\n the Auto Scaling group, call the <a>DetachLoadBalancerTargetGroups</a> API.</p>\n <p>This operation is additive and does not detach existing target groups or Classic Load\n Balancers from the Auto Scaling group.</p>\n <p>For more information, see <a href=\"https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling-load-balancer.html\">Use Elastic Load Balancing to\n distribute traffic across the instances in your Auto Scaling group</a> in the\n <i>Amazon EC2 Auto Scaling User Guide</i>. </p>",
"smithy.api#examples": [
{
"title": "To attach a target group to an Auto Scaling group",
"documentation": "This example attaches the specified target group to the specified Auto Scaling group.",
"input": {
"AutoScalingGroupName": "my-auto-scaling-group",
"TargetGroupARNs": [
"arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067"
]
}
}
]
}
},
"com.amazonaws.autoscaling#AttachLoadBalancerTargetGroupsResultType": {
"type": "structure",
"members": {}
},
"com.amazonaws.autoscaling#AttachLoadBalancerTargetGroupsType": {
"type": "structure",
"members": {
"AutoScalingGroupName": {
"target": "com.amazonaws.autoscaling#XmlStringMaxLen255",
"traits": {
"smithy.api#clientOptional": {},
"smithy.api#documentation": "<p>The name of the Auto Scaling group.</p>",
"smithy.api#required": {}
}
},
"TargetGroupARNs": {
"target": "com.amazonaws.autoscaling#TargetGroupARNs",
"traits": {
"smithy.api#clientOptional": {},
"smithy.api#documentation": "<p>The Amazon Resource Names (ARNs) of the target groups. You can specify up to 10 target\n groups. To get the ARN of a target group, use the Elastic Load Balancing <a href=\"https://docs.aws.amazon.com/elasticloadbalancing/latest/APIReference/API_DescribeTargetGroups.html\">DescribeTargetGroups</a> API operation.</p>",
"smithy.api#required": {}
}
}
}
},
"com.amazonaws.autoscaling#AttachLoadBalancers": {
"type": "operation",
"input": {
"target": "com.amazonaws.autoscaling#AttachLoadBalancersType"
},
"output": {
"target": "com.amazonaws.autoscaling#AttachLoadBalancersResultType"
},
"errors": [
{
"target": "com.amazonaws.autoscaling#ResourceContentionFault"
},
{
"target": "com.amazonaws.autoscaling#ServiceLinkedRoleFailure"
}
],
"traits": {
"smithy.api#documentation": "<note>\n <p>This API operation is superseded by <a>AttachTrafficSources</a>, which\n can attach multiple traffic sources types. We recommend using\n <code>AttachTrafficSources</code> to simplify how you manage traffic sources.\n However, we continue to support <code>AttachLoadBalancers</code>. You can use both\n the original <code>AttachLoadBalancers</code> API operation and\n <code>AttachTrafficSources</code> on the same Auto Scaling group.</p>\n </note>\n <p>Attaches one or more Classic Load Balancers to the specified Auto Scaling group. Amazon EC2 Auto Scaling registers the\n running instances with these Classic Load Balancers.</p>\n <p>To describe the load balancers for an Auto Scaling group, call the <a>DescribeLoadBalancers</a> API. To detach a load balancer from the Auto Scaling\n group, call the <a>DetachLoadBalancers</a> API.</p>\n <p>This operation is additive and does not detach existing Classic Load Balancers or\n target groups from the Auto Scaling group.</p>\n <p>For more information, see <a href=\"https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling-load-balancer.html\">Use Elastic Load Balancing to\n distribute traffic across the instances in your Auto Scaling group</a> in the\n <i>Amazon EC2 Auto Scaling User Guide</i>.</p>",
"smithy.api#examples": [
{
"title": "To attach a load balancer to an Auto Scaling group",
"documentation": "This example attaches the specified load balancer to the specified Auto Scaling group.",
"input": {
"AutoScalingGroupName": "my-auto-scaling-group",
"LoadBalancerNames": [
"my-load-balancer"
]
}
}
]
}
},
"com.amazonaws.autoscaling#AttachLoadBalancersResultType": {
"type": "structure",
"members": {}
},
"com.amazonaws.autoscaling#AttachLoadBalancersType": {
"type": "structure",
"members": {
"AutoScalingGroupName": {
"target": "com.amazonaws.autoscaling#XmlStringMaxLen255",
"traits": {
"smithy.api#clientOptional": {},
"smithy.api#documentation": "<p>The name of the Auto Scaling group.</p>",
"smithy.api#required": {}
}
},
"LoadBalancerNames": {
"target": "com.amazonaws.autoscaling#LoadBalancerNames",
"traits": {
"smithy.api#clientOptional": {},
"smithy.api#documentation": "<p>The names of the load balancers. You can specify up to 10 load balancers.</p>",
"smithy.api#required": {}
}
}
}
},
"com.amazonaws.autoscaling#AttachTrafficSources": {
"type": "operation",
"input": {
"target": "com.amazonaws.autoscaling#AttachTrafficSourcesType"
},
"output": {
"target": "com.amazonaws.autoscaling#AttachTrafficSourcesResultType"
},
"errors": [
{
"target": "com.amazonaws.autoscaling#ResourceContentionFault"
},
{
"target": "com.amazonaws.autoscaling#ServiceLinkedRoleFailure"
}
],
"traits": {
"smithy.api#documentation": "<p>Attaches one or more traffic sources to the specified Auto Scaling group.</p>\n <p>You can use any of the following as traffic sources for an Auto Scaling group:</p>\n <ul>\n <li>\n <p>Application Load Balancer</p>\n </li>\n <li>\n <p>Classic Load Balancer</p>\n </li>\n <li>\n <p>Gateway Load Balancer</p>\n </li>\n <li>\n <p>Network Load Balancer</p>\n </li>\n <li>\n <p>VPC Lattice</p>\n </li>\n </ul>\n <p>This operation is additive and does not detach existing traffic sources from the Auto Scaling\n group. </p>\n <p>After the operation completes, use the <a>DescribeTrafficSources</a> API to\n return details about the state of the attachments between traffic sources and your Auto Scaling\n group. To detach a traffic source from the Auto Scaling group, call the <a>DetachTrafficSources</a> API.</p>",
"smithy.api#examples": [
{
"title": "To attach a target group to an Auto Scaling group",
"documentation": "This example attaches the specified target group to the specified Auto Scaling group.",
"input": {
"AutoScalingGroupName": "my-auto-scaling-group",
"TrafficSources": [
{
"Identifier": "arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067"
}
]
},
"output": {}
}
]
}
},
"com.amazonaws.autoscaling#AttachTrafficSourcesResultType": {
"type": "structure",
"members": {}
},
"com.amazonaws.autoscaling#AttachTrafficSourcesType": {
"type": "structure",
"members": {
"AutoScalingGroupName": {
"target": "com.amazonaws.autoscaling#XmlStringMaxLen255",
"traits": {
"smithy.api#clientOptional": {},
"smithy.api#documentation": "<p>The name of the Auto Scaling group.</p>",
"smithy.api#required": {}
}
},
"TrafficSources": {
"target": "com.amazonaws.autoscaling#TrafficSources",
"traits": {
"smithy.api#clientOptional": {},
"smithy.api#documentation": "<p>The unique identifiers of one or more traffic sources. You can specify up to 10\n traffic sources.</p>",
"smithy.api#required": {}
}
}
}
},
"com.amazonaws.autoscaling#AutoRollback": {
"type": "boolean"
},
"com.amazonaws.autoscaling#AutoScalingGroup": {
"type": "structure",
"members": {
"AutoScalingGroupName": {
"target": "com.amazonaws.autoscaling#XmlStringMaxLen255",
"traits": {
"smithy.api#clientOptional": {},
"smithy.api#documentation": "<p>The name of the Auto Scaling group.</p>",
"smithy.api#required": {}
}
},
"AutoScalingGroupARN": {
"target": "com.amazonaws.autoscaling#ResourceName",
"traits": {
"smithy.api#documentation": "<p>The Amazon Resource Name (ARN) of the Auto Scaling group.</p>"
}
},
"LaunchConfigurationName": {
"target": "com.amazonaws.autoscaling#XmlStringMaxLen255",
"traits": {
"smithy.api#documentation": "<p>The name of the associated launch configuration.</p>"
}
},
"LaunchTemplate": {
"target": "com.amazonaws.autoscaling#LaunchTemplateSpecification",
"traits": {
"smithy.api#documentation": "<p>The launch template for the group.</p>"
}
},
"MixedInstancesPolicy": {
"target": "com.amazonaws.autoscaling#MixedInstancesPolicy",
"traits": {
"smithy.api#documentation": "<p>The mixed instances policy for the group.</p>"
}
},
"MinSize": {
"target": "com.amazonaws.autoscaling#AutoScalingGroupMinSize",
"traits": {
"smithy.api#clientOptional": {},
"smithy.api#documentation": "<p>The minimum size of the group.</p>",
"smithy.api#required": {}
}
},
"MaxSize": {
"target": "com.amazonaws.autoscaling#AutoScalingGroupMaxSize",
"traits": {
"smithy.api#clientOptional": {},
"smithy.api#documentation": "<p>The maximum size of the group.</p>",
"smithy.api#required": {}
}
},
"DesiredCapacity": {
"target": "com.amazonaws.autoscaling#AutoScalingGroupDesiredCapacity",
"traits": {
"smithy.api#clientOptional": {},
"smithy.api#documentation": "<p>The desired size of the group.</p>",
"smithy.api#required": {}
}
},
"PredictedCapacity": {
"target": "com.amazonaws.autoscaling#AutoScalingGroupPredictedCapacity",
"traits": {
"smithy.api#documentation": "<p>The predicted capacity of the group when it has a predictive scaling policy.</p>"
}
},
"DefaultCooldown": {
"target": "com.amazonaws.autoscaling#Cooldown",
"traits": {
"smithy.api#clientOptional": {},
"smithy.api#documentation": "<p>The duration of the default cooldown period, in seconds.</p>",
"smithy.api#required": {}
}
},
"AvailabilityZones": {
"target": "com.amazonaws.autoscaling#AvailabilityZones",
"traits": {
"smithy.api#clientOptional": {},
"smithy.api#documentation": "<p>One or more Availability Zones for the group.</p>",
"smithy.api#required": {}
}
},
"LoadBalancerNames": {
"target": "com.amazonaws.autoscaling#LoadBalancerNames",
"traits": {
"smithy.api#documentation": "<p>One or more load balancers associated with the group.</p>"
}
},
"TargetGroupARNs": {
"target": "com.amazonaws.autoscaling#TargetGroupARNs",
"traits": {
"smithy.api#documentation": "<p>The Amazon Resource Names (ARN) of the target groups for your load balancer.</p>"
}
},
"HealthCheckType": {
"target": "com.amazonaws.autoscaling#XmlStringMaxLen32",
"traits": {
"smithy.api#clientOptional": {},
"smithy.api#documentation": "<p>A comma-separated value string of one or more health check types.</p>",
"smithy.api#required": {}
}
},
"HealthCheckGracePeriod": {
"target": "com.amazonaws.autoscaling#HealthCheckGracePeriod",
"traits": {
"smithy.api#documentation": "<p>The duration of the health check grace period, in seconds.</p>"
}
},
"Instances": {
"target": "com.amazonaws.autoscaling#Instances",
"traits": {
"smithy.api#documentation": "<p>The EC2 instances associated with the group.</p>"
}
},
"CreatedTime": {
"target": "com.amazonaws.autoscaling#TimestampType",
"traits": {
"smithy.api#clientOptional": {},
"smithy.api#documentation": "<p>The date and time the group was created.</p>",
"smithy.api#required": {}
}
},
"SuspendedProcesses": {
"target": "com.amazonaws.autoscaling#SuspendedProcesses",
"traits": {
"smithy.api#documentation": "<p>The suspended processes associated with the group.</p>"
}
},
"PlacementGroup": {
"target": "com.amazonaws.autoscaling#XmlStringMaxLen255",
"traits": {
"smithy.api#documentation": "<p>The name of the placement group into which to launch your instances, if any.</p>"
}
},
"VPCZoneIdentifier": {
"target": "com.amazonaws.autoscaling#XmlStringMaxLen2047",
"traits": {
"smithy.api#documentation": "<p>One or more subnet IDs, if applicable, separated by commas.</p>"
}
},
"EnabledMetrics": {
"target": "com.amazonaws.autoscaling#EnabledMetrics",
"traits": {
"smithy.api#documentation": "<p>The metrics enabled for the group.</p>"
}
},
"Status": {
"target": "com.amazonaws.autoscaling#XmlStringMaxLen255",
"traits": {
"smithy.api#documentation": "<p>The current state of the group when the <a>DeleteAutoScalingGroup</a>\n operation is in progress.</p>"
}
},
"Tags": {
"target": "com.amazonaws.autoscaling#TagDescriptionList",
"traits": {
"smithy.api#documentation": "<p>The tags for the group.</p>"
}
},
"TerminationPolicies": {
"target": "com.amazonaws.autoscaling#TerminationPolicies",
"traits": {
"smithy.api#documentation": "<p>The termination policies for the group.</p>"
}
},
"NewInstancesProtectedFromScaleIn": {
"target": "com.amazonaws.autoscaling#InstanceProtected",
"traits": {
"smithy.api#documentation": "<p>Indicates whether newly launched instances are protected from termination by Amazon EC2 Auto Scaling\n when scaling in.</p>"
}
},
"ServiceLinkedRoleARN": {
"target": "com.amazonaws.autoscaling#ResourceName",
"traits": {
"smithy.api#documentation": "<p>The Amazon Resource Name (ARN) of the service-linked role that the Auto Scaling group uses to\n call other Amazon Web Services on your behalf.</p>"
}
},
"MaxInstanceLifetime": {
"target": "com.amazonaws.autoscaling#MaxInstanceLifetime",
"traits": {
"smithy.api#documentation": "<p>The maximum amount of time, in seconds, that an instance can be in service.</p>\n <p>Valid Range: Minimum value of 0.</p>"
}
},
"CapacityRebalance": {
"target": "com.amazonaws.autoscaling#CapacityRebalanceEnabled",
"traits": {
"smithy.api#documentation": "<p>Indicates whether Capacity Rebalancing is enabled.</p>"
}
},
"WarmPoolConfiguration": {
"target": "com.amazonaws.autoscaling#WarmPoolConfiguration",
"traits": {
"smithy.api#documentation": "<p>The warm pool for the group.</p>"
}
},
"WarmPoolSize": {
"target": "com.amazonaws.autoscaling#WarmPoolSize",
"traits": {
"smithy.api#documentation": "<p>The current size of the warm pool.</p>"
}
},
"Context": {
"target": "com.amazonaws.autoscaling#Context",
"traits": {
"smithy.api#documentation": "<p>Reserved.</p>"
}
},
"DesiredCapacityType": {
"target": "com.amazonaws.autoscaling#XmlStringMaxLen255",
"traits": {
"smithy.api#documentation": "<p>The unit of measurement for the value specified for desired capacity. Amazon EC2 Auto Scaling\n supports <code>DesiredCapacityType</code> for attribute-based instance type selection\n only.</p>"
}
},
"DefaultInstanceWarmup": {
"target": "com.amazonaws.autoscaling#DefaultInstanceWarmup",
"traits": {
"smithy.api#documentation": "<p>The duration of the default instance warmup, in seconds.</p>"
}
},
"TrafficSources": {
"target": "com.amazonaws.autoscaling#TrafficSources",
"traits": {
"smithy.api#documentation": "<p>The traffic sources associated with this Auto Scaling group.</p>"
}
},
"InstanceMaintenancePolicy": {
"target": "com.amazonaws.autoscaling#InstanceMaintenancePolicy",
"traits": {
"smithy.api#documentation": "<p>An instance maintenance policy.</p>"
}
}
},
"traits": {
"smithy.api#documentation": "<p>Describes an Auto Scaling group.</p>"
}
},
"com.amazonaws.autoscaling#AutoScalingGroupDesiredCapacity": {
"type": "integer"
},
"com.amazonaws.autoscaling#AutoScalingGroupMaxSize": {
"type": "integer"
},
"com.amazonaws.autoscaling#AutoScalingGroupMinSize": {
"type": "integer"
},
"com.amazonaws.autoscaling#AutoScalingGroupNames": {
"type": "list",
"member": {
"target": "com.amazonaws.autoscaling#XmlStringMaxLen255"
}
},
"com.amazonaws.autoscaling#AutoScalingGroupNamesType": {
"type": "structure",
"members": {
"AutoScalingGroupNames": {
"target": "com.amazonaws.autoscaling#AutoScalingGroupNames",
"traits": {
"smithy.api#documentation": "<p>The names of the Auto Scaling groups. By default, you can only specify up to 50 names. You can\n optionally increase this limit using the <code>MaxRecords</code> property.</p>\n <p>If you omit this property, all Auto Scaling groups are described.</p>"
}
},
"NextToken": {
"target": "com.amazonaws.autoscaling#XmlString",
"traits": {
"smithy.api#documentation": "<p>The token for the next set of items to return. (You received this token from a\n previous call.)</p>"
}
},
"MaxRecords": {
"target": "com.amazonaws.autoscaling#MaxRecords",
"traits": {
"smithy.api#documentation": "<p>The maximum number of items to return with this call. The default value is\n <code>50</code> and the maximum value is <code>100</code>.</p>"
}
},
"Filters": {
"target": "com.amazonaws.autoscaling#Filters",
"traits": {
"smithy.api#documentation": "<p>One or more filters to limit the results based on specific tags.\n </p>"
}
}
}
},
"com.amazonaws.autoscaling#AutoScalingGroupPredictedCapacity": {
"type": "integer"
},
"com.amazonaws.autoscaling#AutoScalingGroupState": {
"type": "string",
"traits": {
"smithy.api#length": {
"min": 1,
"max": 32
}
}
},
"com.amazonaws.autoscaling#AutoScalingGroups": {
"type": "list",
"member": {
"target": "com.amazonaws.autoscaling#AutoScalingGroup"
}
},
"com.amazonaws.autoscaling#AutoScalingGroupsType": {
"type": "structure",
"members": {
"AutoScalingGroups": {
"target": "com.amazonaws.autoscaling#AutoScalingGroups",
"traits": {
"smithy.api#clientOptional": {},
"smithy.api#documentation": "<p>The groups.</p>",