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 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138
|
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
// Package autoscaling provides a client for Auto Scaling.
package autoscaling
import (
"time"
"github.com/aws/aws-sdk-go/aws/awsutil"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/private/protocol"
"github.com/aws/aws-sdk-go/private/protocol/query"
)
const opAttachInstances = "AttachInstances"
// AttachInstancesRequest generates a request for the AttachInstances operation.
func (c *AutoScaling) AttachInstancesRequest(input *AttachInstancesInput) (req *request.Request, output *AttachInstancesOutput) {
op := &request.Operation{
Name: opAttachInstances,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &AttachInstancesInput{}
}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
output = &AttachInstancesOutput{}
req.Data = output
return
}
// 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.
//
// For more information, see Attach EC2 Instances to Your Auto Scaling Group
// (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/attach-instance-asg.html)
// in the Auto Scaling Developer Guide.
func (c *AutoScaling) AttachInstances(input *AttachInstancesInput) (*AttachInstancesOutput, error) {
req, out := c.AttachInstancesRequest(input)
err := req.Send()
return out, err
}
const opAttachLoadBalancers = "AttachLoadBalancers"
// AttachLoadBalancersRequest generates a request for the AttachLoadBalancers operation.
func (c *AutoScaling) AttachLoadBalancersRequest(input *AttachLoadBalancersInput) (req *request.Request, output *AttachLoadBalancersOutput) {
op := &request.Operation{
Name: opAttachLoadBalancers,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &AttachLoadBalancersInput{}
}
req = c.newRequest(op, input, output)
output = &AttachLoadBalancersOutput{}
req.Data = output
return
}
// Attaches one or more load balancers to the specified Auto Scaling group.
//
// 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/DeveloperGuide/attach-load-balancer-asg.html)
// in the Auto Scaling Developer Guide.
func (c *AutoScaling) AttachLoadBalancers(input *AttachLoadBalancersInput) (*AttachLoadBalancersOutput, error) {
req, out := c.AttachLoadBalancersRequest(input)
err := req.Send()
return out, err
}
const opCompleteLifecycleAction = "CompleteLifecycleAction"
// CompleteLifecycleActionRequest generates a request for the CompleteLifecycleAction operation.
func (c *AutoScaling) CompleteLifecycleActionRequest(input *CompleteLifecycleActionInput) (req *request.Request, output *CompleteLifecycleActionOutput) {
op := &request.Operation{
Name: opCompleteLifecycleAction,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &CompleteLifecycleActionInput{}
}
req = c.newRequest(op, input, output)
output = &CompleteLifecycleActionOutput{}
req.Data = output
return
}
// 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/DeveloperGuide/AutoScalingGroupLifecycle.html)
// in the Auto Scaling Developer Guide.
func (c *AutoScaling) CompleteLifecycleAction(input *CompleteLifecycleActionInput) (*CompleteLifecycleActionOutput, error) {
req, out := c.CompleteLifecycleActionRequest(input)
err := req.Send()
return out, err
}
const opCreateAutoScalingGroup = "CreateAutoScalingGroup"
// CreateAutoScalingGroupRequest generates a request for the CreateAutoScalingGroup operation.
func (c *AutoScaling) CreateAutoScalingGroupRequest(input *CreateAutoScalingGroupInput) (req *request.Request, output *CreateAutoScalingGroupOutput) {
op := &request.Operation{
Name: opCreateAutoScalingGroup,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &CreateAutoScalingGroupInput{}
}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
output = &CreateAutoScalingGroupOutput{}
req.Data = output
return
}
// Creates an Auto Scaling group with the specified name and attributes.
//
// If you exceed your maximum limit of Auto Scaling groups, which by default
// is 20 per region, the call fails. For information about viewing and updating
// this limit, see DescribeAccountLimits.
//
// For more information, see Auto Scaling Groups (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/AutoScalingGroup.html)
// in the Auto Scaling Developer Guide.
func (c *AutoScaling) CreateAutoScalingGroup(input *CreateAutoScalingGroupInput) (*CreateAutoScalingGroupOutput, error) {
req, out := c.CreateAutoScalingGroupRequest(input)
err := req.Send()
return out, err
}
const opCreateLaunchConfiguration = "CreateLaunchConfiguration"
// CreateLaunchConfigurationRequest generates a request for the CreateLaunchConfiguration operation.
func (c *AutoScaling) CreateLaunchConfigurationRequest(input *CreateLaunchConfigurationInput) (req *request.Request, output *CreateLaunchConfigurationOutput) {
op := &request.Operation{
Name: opCreateLaunchConfiguration,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &CreateLaunchConfigurationInput{}
}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
output = &CreateLaunchConfigurationOutput{}
req.Data = output
return
}
// Creates a launch configuration.
//
// If you exceed your maximum limit of launch configurations, which by default
// is 100 per region, the call fails. For information about viewing and updating
// this limit, see DescribeAccountLimits.
//
// For more information, see Launch Configurations (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/LaunchConfiguration.html)
// in the Auto Scaling Developer Guide.
func (c *AutoScaling) CreateLaunchConfiguration(input *CreateLaunchConfigurationInput) (*CreateLaunchConfigurationOutput, error) {
req, out := c.CreateLaunchConfigurationRequest(input)
err := req.Send()
return out, err
}
const opCreateOrUpdateTags = "CreateOrUpdateTags"
// CreateOrUpdateTagsRequest generates a request for the CreateOrUpdateTags operation.
func (c *AutoScaling) CreateOrUpdateTagsRequest(input *CreateOrUpdateTagsInput) (req *request.Request, output *CreateOrUpdateTagsOutput) {
op := &request.Operation{
Name: opCreateOrUpdateTags,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &CreateOrUpdateTagsInput{}
}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
output = &CreateOrUpdateTagsOutput{}
req.Data = output
return
}
// 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/DeveloperGuide/ASTagging.html)
// in the Auto Scaling Developer Guide.
func (c *AutoScaling) CreateOrUpdateTags(input *CreateOrUpdateTagsInput) (*CreateOrUpdateTagsOutput, error) {
req, out := c.CreateOrUpdateTagsRequest(input)
err := req.Send()
return out, err
}
const opDeleteAutoScalingGroup = "DeleteAutoScalingGroup"
// DeleteAutoScalingGroupRequest generates a request for the DeleteAutoScalingGroup operation.
func (c *AutoScaling) DeleteAutoScalingGroupRequest(input *DeleteAutoScalingGroupInput) (req *request.Request, output *DeleteAutoScalingGroupOutput) {
op := &request.Operation{
Name: opDeleteAutoScalingGroup,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DeleteAutoScalingGroupInput{}
}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
output = &DeleteAutoScalingGroupOutput{}
req.Data = output
return
}
// 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.
func (c *AutoScaling) DeleteAutoScalingGroup(input *DeleteAutoScalingGroupInput) (*DeleteAutoScalingGroupOutput, error) {
req, out := c.DeleteAutoScalingGroupRequest(input)
err := req.Send()
return out, err
}
const opDeleteLaunchConfiguration = "DeleteLaunchConfiguration"
// DeleteLaunchConfigurationRequest generates a request for the DeleteLaunchConfiguration operation.
func (c *AutoScaling) DeleteLaunchConfigurationRequest(input *DeleteLaunchConfigurationInput) (req *request.Request, output *DeleteLaunchConfigurationOutput) {
op := &request.Operation{
Name: opDeleteLaunchConfiguration,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DeleteLaunchConfigurationInput{}
}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
output = &DeleteLaunchConfigurationOutput{}
req.Data = output
return
}
// Deletes the specified launch configuration.
//
// The launch configuration must not be attached to an Auto Scaling group.
// When this call completes, the launch configuration is no longer available
// for use.
func (c *AutoScaling) DeleteLaunchConfiguration(input *DeleteLaunchConfigurationInput) (*DeleteLaunchConfigurationOutput, error) {
req, out := c.DeleteLaunchConfigurationRequest(input)
err := req.Send()
return out, err
}
const opDeleteLifecycleHook = "DeleteLifecycleHook"
// DeleteLifecycleHookRequest generates a request for the DeleteLifecycleHook operation.
func (c *AutoScaling) DeleteLifecycleHookRequest(input *DeleteLifecycleHookInput) (req *request.Request, output *DeleteLifecycleHookOutput) {
op := &request.Operation{
Name: opDeleteLifecycleHook,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DeleteLifecycleHookInput{}
}
req = c.newRequest(op, input, output)
output = &DeleteLifecycleHookOutput{}
req.Data = output
return
}
// Deletes the specified lifecycle hook.
//
// If there are any outstanding lifecycle actions, they are completed first
// (ABANDON for launching instances, CONTINUE for terminating instances).
func (c *AutoScaling) DeleteLifecycleHook(input *DeleteLifecycleHookInput) (*DeleteLifecycleHookOutput, error) {
req, out := c.DeleteLifecycleHookRequest(input)
err := req.Send()
return out, err
}
const opDeleteNotificationConfiguration = "DeleteNotificationConfiguration"
// DeleteNotificationConfigurationRequest generates a request for the DeleteNotificationConfiguration operation.
func (c *AutoScaling) DeleteNotificationConfigurationRequest(input *DeleteNotificationConfigurationInput) (req *request.Request, output *DeleteNotificationConfigurationOutput) {
op := &request.Operation{
Name: opDeleteNotificationConfiguration,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DeleteNotificationConfigurationInput{}
}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
output = &DeleteNotificationConfigurationOutput{}
req.Data = output
return
}
// Deletes the specified notification.
func (c *AutoScaling) DeleteNotificationConfiguration(input *DeleteNotificationConfigurationInput) (*DeleteNotificationConfigurationOutput, error) {
req, out := c.DeleteNotificationConfigurationRequest(input)
err := req.Send()
return out, err
}
const opDeletePolicy = "DeletePolicy"
// DeletePolicyRequest generates a request for the DeletePolicy operation.
func (c *AutoScaling) DeletePolicyRequest(input *DeletePolicyInput) (req *request.Request, output *DeletePolicyOutput) {
op := &request.Operation{
Name: opDeletePolicy,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DeletePolicyInput{}
}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
output = &DeletePolicyOutput{}
req.Data = output
return
}
// 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.
func (c *AutoScaling) DeletePolicy(input *DeletePolicyInput) (*DeletePolicyOutput, error) {
req, out := c.DeletePolicyRequest(input)
err := req.Send()
return out, err
}
const opDeleteScheduledAction = "DeleteScheduledAction"
// DeleteScheduledActionRequest generates a request for the DeleteScheduledAction operation.
func (c *AutoScaling) DeleteScheduledActionRequest(input *DeleteScheduledActionInput) (req *request.Request, output *DeleteScheduledActionOutput) {
op := &request.Operation{
Name: opDeleteScheduledAction,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DeleteScheduledActionInput{}
}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
output = &DeleteScheduledActionOutput{}
req.Data = output
return
}
// Deletes the specified scheduled action.
func (c *AutoScaling) DeleteScheduledAction(input *DeleteScheduledActionInput) (*DeleteScheduledActionOutput, error) {
req, out := c.DeleteScheduledActionRequest(input)
err := req.Send()
return out, err
}
const opDeleteTags = "DeleteTags"
// DeleteTagsRequest generates a request for the DeleteTags operation.
func (c *AutoScaling) DeleteTagsRequest(input *DeleteTagsInput) (req *request.Request, output *DeleteTagsOutput) {
op := &request.Operation{
Name: opDeleteTags,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DeleteTagsInput{}
}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
output = &DeleteTagsOutput{}
req.Data = output
return
}
// Deletes the specified tags.
func (c *AutoScaling) DeleteTags(input *DeleteTagsInput) (*DeleteTagsOutput, error) {
req, out := c.DeleteTagsRequest(input)
err := req.Send()
return out, err
}
const opDescribeAccountLimits = "DescribeAccountLimits"
// DescribeAccountLimitsRequest generates a request for the DescribeAccountLimits operation.
func (c *AutoScaling) DescribeAccountLimitsRequest(input *DescribeAccountLimitsInput) (req *request.Request, output *DescribeAccountLimitsOutput) {
op := &request.Operation{
Name: opDescribeAccountLimits,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DescribeAccountLimitsInput{}
}
req = c.newRequest(op, input, output)
output = &DescribeAccountLimitsOutput{}
req.Data = output
return
}
// Describes the current Auto Scaling resource limits for your AWS account.
//
// For information about requesting an increase in these limits, see AWS Service
// Limits (http://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html)
// in the Amazon Web Services General Reference.
func (c *AutoScaling) DescribeAccountLimits(input *DescribeAccountLimitsInput) (*DescribeAccountLimitsOutput, error) {
req, out := c.DescribeAccountLimitsRequest(input)
err := req.Send()
return out, err
}
const opDescribeAdjustmentTypes = "DescribeAdjustmentTypes"
// DescribeAdjustmentTypesRequest generates a request for the DescribeAdjustmentTypes operation.
func (c *AutoScaling) DescribeAdjustmentTypesRequest(input *DescribeAdjustmentTypesInput) (req *request.Request, output *DescribeAdjustmentTypesOutput) {
op := &request.Operation{
Name: opDescribeAdjustmentTypes,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DescribeAdjustmentTypesInput{}
}
req = c.newRequest(op, input, output)
output = &DescribeAdjustmentTypesOutput{}
req.Data = output
return
}
// Describes the policy adjustment types for use with PutScalingPolicy.
func (c *AutoScaling) DescribeAdjustmentTypes(input *DescribeAdjustmentTypesInput) (*DescribeAdjustmentTypesOutput, error) {
req, out := c.DescribeAdjustmentTypesRequest(input)
err := req.Send()
return out, err
}
const opDescribeAutoScalingGroups = "DescribeAutoScalingGroups"
// DescribeAutoScalingGroupsRequest generates a request for the DescribeAutoScalingGroups operation.
func (c *AutoScaling) DescribeAutoScalingGroupsRequest(input *DescribeAutoScalingGroupsInput) (req *request.Request, output *DescribeAutoScalingGroupsOutput) {
op := &request.Operation{
Name: opDescribeAutoScalingGroups,
HTTPMethod: "POST",
HTTPPath: "/",
Paginator: &request.Paginator{
InputTokens: []string{"NextToken"},
OutputTokens: []string{"NextToken"},
LimitToken: "MaxRecords",
TruncationToken: "",
},
}
if input == nil {
input = &DescribeAutoScalingGroupsInput{}
}
req = c.newRequest(op, input, output)
output = &DescribeAutoScalingGroupsOutput{}
req.Data = output
return
}
// Describes one or more Auto Scaling groups. If a list of names is not provided,
// the call describes all Auto Scaling groups.
func (c *AutoScaling) DescribeAutoScalingGroups(input *DescribeAutoScalingGroupsInput) (*DescribeAutoScalingGroupsOutput, error) {
req, out := c.DescribeAutoScalingGroupsRequest(input)
err := req.Send()
return out, err
}
func (c *AutoScaling) DescribeAutoScalingGroupsPages(input *DescribeAutoScalingGroupsInput, fn func(p *DescribeAutoScalingGroupsOutput, lastPage bool) (shouldContinue bool)) error {
page, _ := c.DescribeAutoScalingGroupsRequest(input)
page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
return page.EachPage(func(p interface{}, lastPage bool) bool {
return fn(p.(*DescribeAutoScalingGroupsOutput), lastPage)
})
}
const opDescribeAutoScalingInstances = "DescribeAutoScalingInstances"
// DescribeAutoScalingInstancesRequest generates a request for the DescribeAutoScalingInstances operation.
func (c *AutoScaling) DescribeAutoScalingInstancesRequest(input *DescribeAutoScalingInstancesInput) (req *request.Request, output *DescribeAutoScalingInstancesOutput) {
op := &request.Operation{
Name: opDescribeAutoScalingInstances,
HTTPMethod: "POST",
HTTPPath: "/",
Paginator: &request.Paginator{
InputTokens: []string{"NextToken"},
OutputTokens: []string{"NextToken"},
LimitToken: "MaxRecords",
TruncationToken: "",
},
}
if input == nil {
input = &DescribeAutoScalingInstancesInput{}
}
req = c.newRequest(op, input, output)
output = &DescribeAutoScalingInstancesOutput{}
req.Data = output
return
}
// Describes one or more Auto Scaling instances. If a list is not provided,
// the call describes all instances.
func (c *AutoScaling) DescribeAutoScalingInstances(input *DescribeAutoScalingInstancesInput) (*DescribeAutoScalingInstancesOutput, error) {
req, out := c.DescribeAutoScalingInstancesRequest(input)
err := req.Send()
return out, err
}
func (c *AutoScaling) DescribeAutoScalingInstancesPages(input *DescribeAutoScalingInstancesInput, fn func(p *DescribeAutoScalingInstancesOutput, lastPage bool) (shouldContinue bool)) error {
page, _ := c.DescribeAutoScalingInstancesRequest(input)
page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
return page.EachPage(func(p interface{}, lastPage bool) bool {
return fn(p.(*DescribeAutoScalingInstancesOutput), lastPage)
})
}
const opDescribeAutoScalingNotificationTypes = "DescribeAutoScalingNotificationTypes"
// DescribeAutoScalingNotificationTypesRequest generates a request for the DescribeAutoScalingNotificationTypes operation.
func (c *AutoScaling) DescribeAutoScalingNotificationTypesRequest(input *DescribeAutoScalingNotificationTypesInput) (req *request.Request, output *DescribeAutoScalingNotificationTypesOutput) {
op := &request.Operation{
Name: opDescribeAutoScalingNotificationTypes,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DescribeAutoScalingNotificationTypesInput{}
}
req = c.newRequest(op, input, output)
output = &DescribeAutoScalingNotificationTypesOutput{}
req.Data = output
return
}
// Describes the notification types that are supported by Auto Scaling.
func (c *AutoScaling) DescribeAutoScalingNotificationTypes(input *DescribeAutoScalingNotificationTypesInput) (*DescribeAutoScalingNotificationTypesOutput, error) {
req, out := c.DescribeAutoScalingNotificationTypesRequest(input)
err := req.Send()
return out, err
}
const opDescribeLaunchConfigurations = "DescribeLaunchConfigurations"
// DescribeLaunchConfigurationsRequest generates a request for the DescribeLaunchConfigurations operation.
func (c *AutoScaling) DescribeLaunchConfigurationsRequest(input *DescribeLaunchConfigurationsInput) (req *request.Request, output *DescribeLaunchConfigurationsOutput) {
op := &request.Operation{
Name: opDescribeLaunchConfigurations,
HTTPMethod: "POST",
HTTPPath: "/",
Paginator: &request.Paginator{
InputTokens: []string{"NextToken"},
OutputTokens: []string{"NextToken"},
LimitToken: "MaxRecords",
TruncationToken: "",
},
}
if input == nil {
input = &DescribeLaunchConfigurationsInput{}
}
req = c.newRequest(op, input, output)
output = &DescribeLaunchConfigurationsOutput{}
req.Data = output
return
}
// Describes one or more launch configurations. If you omit the list of names,
// then the call describes all launch configurations.
func (c *AutoScaling) DescribeLaunchConfigurations(input *DescribeLaunchConfigurationsInput) (*DescribeLaunchConfigurationsOutput, error) {
req, out := c.DescribeLaunchConfigurationsRequest(input)
err := req.Send()
return out, err
}
func (c *AutoScaling) DescribeLaunchConfigurationsPages(input *DescribeLaunchConfigurationsInput, fn func(p *DescribeLaunchConfigurationsOutput, lastPage bool) (shouldContinue bool)) error {
page, _ := c.DescribeLaunchConfigurationsRequest(input)
page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
return page.EachPage(func(p interface{}, lastPage bool) bool {
return fn(p.(*DescribeLaunchConfigurationsOutput), lastPage)
})
}
const opDescribeLifecycleHookTypes = "DescribeLifecycleHookTypes"
// DescribeLifecycleHookTypesRequest generates a request for the DescribeLifecycleHookTypes operation.
func (c *AutoScaling) DescribeLifecycleHookTypesRequest(input *DescribeLifecycleHookTypesInput) (req *request.Request, output *DescribeLifecycleHookTypesOutput) {
op := &request.Operation{
Name: opDescribeLifecycleHookTypes,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DescribeLifecycleHookTypesInput{}
}
req = c.newRequest(op, input, output)
output = &DescribeLifecycleHookTypesOutput{}
req.Data = output
return
}
// Describes the available types of lifecycle hooks.
func (c *AutoScaling) DescribeLifecycleHookTypes(input *DescribeLifecycleHookTypesInput) (*DescribeLifecycleHookTypesOutput, error) {
req, out := c.DescribeLifecycleHookTypesRequest(input)
err := req.Send()
return out, err
}
const opDescribeLifecycleHooks = "DescribeLifecycleHooks"
// DescribeLifecycleHooksRequest generates a request for the DescribeLifecycleHooks operation.
func (c *AutoScaling) DescribeLifecycleHooksRequest(input *DescribeLifecycleHooksInput) (req *request.Request, output *DescribeLifecycleHooksOutput) {
op := &request.Operation{
Name: opDescribeLifecycleHooks,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DescribeLifecycleHooksInput{}
}
req = c.newRequest(op, input, output)
output = &DescribeLifecycleHooksOutput{}
req.Data = output
return
}
// Describes the lifecycle hooks for the specified Auto Scaling group.
func (c *AutoScaling) DescribeLifecycleHooks(input *DescribeLifecycleHooksInput) (*DescribeLifecycleHooksOutput, error) {
req, out := c.DescribeLifecycleHooksRequest(input)
err := req.Send()
return out, err
}
const opDescribeLoadBalancers = "DescribeLoadBalancers"
// DescribeLoadBalancersRequest generates a request for the DescribeLoadBalancers operation.
func (c *AutoScaling) DescribeLoadBalancersRequest(input *DescribeLoadBalancersInput) (req *request.Request, output *DescribeLoadBalancersOutput) {
op := &request.Operation{
Name: opDescribeLoadBalancers,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DescribeLoadBalancersInput{}
}
req = c.newRequest(op, input, output)
output = &DescribeLoadBalancersOutput{}
req.Data = output
return
}
// Describes the load balancers for the specified Auto Scaling group.
func (c *AutoScaling) DescribeLoadBalancers(input *DescribeLoadBalancersInput) (*DescribeLoadBalancersOutput, error) {
req, out := c.DescribeLoadBalancersRequest(input)
err := req.Send()
return out, err
}
const opDescribeMetricCollectionTypes = "DescribeMetricCollectionTypes"
// DescribeMetricCollectionTypesRequest generates a request for the DescribeMetricCollectionTypes operation.
func (c *AutoScaling) DescribeMetricCollectionTypesRequest(input *DescribeMetricCollectionTypesInput) (req *request.Request, output *DescribeMetricCollectionTypesOutput) {
op := &request.Operation{
Name: opDescribeMetricCollectionTypes,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DescribeMetricCollectionTypesInput{}
}
req = c.newRequest(op, input, output)
output = &DescribeMetricCollectionTypesOutput{}
req.Data = output
return
}
// Describes the available CloudWatch metrics for Auto Scaling.
//
// Note that the GroupStandbyInstances metric is not returned by default. You
// must explicitly request this metric when calling EnableMetricsCollection.
func (c *AutoScaling) DescribeMetricCollectionTypes(input *DescribeMetricCollectionTypesInput) (*DescribeMetricCollectionTypesOutput, error) {
req, out := c.DescribeMetricCollectionTypesRequest(input)
err := req.Send()
return out, err
}
const opDescribeNotificationConfigurations = "DescribeNotificationConfigurations"
// DescribeNotificationConfigurationsRequest generates a request for the DescribeNotificationConfigurations operation.
func (c *AutoScaling) DescribeNotificationConfigurationsRequest(input *DescribeNotificationConfigurationsInput) (req *request.Request, output *DescribeNotificationConfigurationsOutput) {
op := &request.Operation{
Name: opDescribeNotificationConfigurations,
HTTPMethod: "POST",
HTTPPath: "/",
Paginator: &request.Paginator{
InputTokens: []string{"NextToken"},
OutputTokens: []string{"NextToken"},
LimitToken: "MaxRecords",
TruncationToken: "",
},
}
if input == nil {
input = &DescribeNotificationConfigurationsInput{}
}
req = c.newRequest(op, input, output)
output = &DescribeNotificationConfigurationsOutput{}
req.Data = output
return
}
// Describes the notification actions associated with the specified Auto Scaling
// group.
func (c *AutoScaling) DescribeNotificationConfigurations(input *DescribeNotificationConfigurationsInput) (*DescribeNotificationConfigurationsOutput, error) {
req, out := c.DescribeNotificationConfigurationsRequest(input)
err := req.Send()
return out, err
}
func (c *AutoScaling) DescribeNotificationConfigurationsPages(input *DescribeNotificationConfigurationsInput, fn func(p *DescribeNotificationConfigurationsOutput, lastPage bool) (shouldContinue bool)) error {
page, _ := c.DescribeNotificationConfigurationsRequest(input)
page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
return page.EachPage(func(p interface{}, lastPage bool) bool {
return fn(p.(*DescribeNotificationConfigurationsOutput), lastPage)
})
}
const opDescribePolicies = "DescribePolicies"
// DescribePoliciesRequest generates a request for the DescribePolicies operation.
func (c *AutoScaling) DescribePoliciesRequest(input *DescribePoliciesInput) (req *request.Request, output *DescribePoliciesOutput) {
op := &request.Operation{
Name: opDescribePolicies,
HTTPMethod: "POST",
HTTPPath: "/",
Paginator: &request.Paginator{
InputTokens: []string{"NextToken"},
OutputTokens: []string{"NextToken"},
LimitToken: "MaxRecords",
TruncationToken: "",
},
}
if input == nil {
input = &DescribePoliciesInput{}
}
req = c.newRequest(op, input, output)
output = &DescribePoliciesOutput{}
req.Data = output
return
}
// Describes the policies for the specified Auto Scaling group.
func (c *AutoScaling) DescribePolicies(input *DescribePoliciesInput) (*DescribePoliciesOutput, error) {
req, out := c.DescribePoliciesRequest(input)
err := req.Send()
return out, err
}
func (c *AutoScaling) DescribePoliciesPages(input *DescribePoliciesInput, fn func(p *DescribePoliciesOutput, lastPage bool) (shouldContinue bool)) error {
page, _ := c.DescribePoliciesRequest(input)
page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
return page.EachPage(func(p interface{}, lastPage bool) bool {
return fn(p.(*DescribePoliciesOutput), lastPage)
})
}
const opDescribeScalingActivities = "DescribeScalingActivities"
// DescribeScalingActivitiesRequest generates a request for the DescribeScalingActivities operation.
func (c *AutoScaling) DescribeScalingActivitiesRequest(input *DescribeScalingActivitiesInput) (req *request.Request, output *DescribeScalingActivitiesOutput) {
op := &request.Operation{
Name: opDescribeScalingActivities,
HTTPMethod: "POST",
HTTPPath: "/",
Paginator: &request.Paginator{
InputTokens: []string{"NextToken"},
OutputTokens: []string{"NextToken"},
LimitToken: "MaxRecords",
TruncationToken: "",
},
}
if input == nil {
input = &DescribeScalingActivitiesInput{}
}
req = c.newRequest(op, input, output)
output = &DescribeScalingActivitiesOutput{}
req.Data = output
return
}
// Describes one or more scaling activities for the specified Auto Scaling group.
// If you omit the ActivityIds, the call returns all activities from the past
// six weeks. Activities are sorted by the start time. Activities still in progress
// appear first on the list.
func (c *AutoScaling) DescribeScalingActivities(input *DescribeScalingActivitiesInput) (*DescribeScalingActivitiesOutput, error) {
req, out := c.DescribeScalingActivitiesRequest(input)
err := req.Send()
return out, err
}
func (c *AutoScaling) DescribeScalingActivitiesPages(input *DescribeScalingActivitiesInput, fn func(p *DescribeScalingActivitiesOutput, lastPage bool) (shouldContinue bool)) error {
page, _ := c.DescribeScalingActivitiesRequest(input)
page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
return page.EachPage(func(p interface{}, lastPage bool) bool {
return fn(p.(*DescribeScalingActivitiesOutput), lastPage)
})
}
const opDescribeScalingProcessTypes = "DescribeScalingProcessTypes"
// DescribeScalingProcessTypesRequest generates a request for the DescribeScalingProcessTypes operation.
func (c *AutoScaling) DescribeScalingProcessTypesRequest(input *DescribeScalingProcessTypesInput) (req *request.Request, output *DescribeScalingProcessTypesOutput) {
op := &request.Operation{
Name: opDescribeScalingProcessTypes,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DescribeScalingProcessTypesInput{}
}
req = c.newRequest(op, input, output)
output = &DescribeScalingProcessTypesOutput{}
req.Data = output
return
}
// Describes the scaling process types for use with ResumeProcesses and SuspendProcesses.
func (c *AutoScaling) DescribeScalingProcessTypes(input *DescribeScalingProcessTypesInput) (*DescribeScalingProcessTypesOutput, error) {
req, out := c.DescribeScalingProcessTypesRequest(input)
err := req.Send()
return out, err
}
const opDescribeScheduledActions = "DescribeScheduledActions"
// DescribeScheduledActionsRequest generates a request for the DescribeScheduledActions operation.
func (c *AutoScaling) DescribeScheduledActionsRequest(input *DescribeScheduledActionsInput) (req *request.Request, output *DescribeScheduledActionsOutput) {
op := &request.Operation{
Name: opDescribeScheduledActions,
HTTPMethod: "POST",
HTTPPath: "/",
Paginator: &request.Paginator{
InputTokens: []string{"NextToken"},
OutputTokens: []string{"NextToken"},
LimitToken: "MaxRecords",
TruncationToken: "",
},
}
if input == nil {
input = &DescribeScheduledActionsInput{}
}
req = c.newRequest(op, input, output)
output = &DescribeScheduledActionsOutput{}
req.Data = output
return
}
// Describes the actions scheduled for your Auto Scaling group that haven't
// run. To describe the actions that have already run, use DescribeScalingActivities.
func (c *AutoScaling) DescribeScheduledActions(input *DescribeScheduledActionsInput) (*DescribeScheduledActionsOutput, error) {
req, out := c.DescribeScheduledActionsRequest(input)
err := req.Send()
return out, err
}
func (c *AutoScaling) DescribeScheduledActionsPages(input *DescribeScheduledActionsInput, fn func(p *DescribeScheduledActionsOutput, lastPage bool) (shouldContinue bool)) error {
page, _ := c.DescribeScheduledActionsRequest(input)
page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
return page.EachPage(func(p interface{}, lastPage bool) bool {
return fn(p.(*DescribeScheduledActionsOutput), lastPage)
})
}
const opDescribeTags = "DescribeTags"
// DescribeTagsRequest generates a request for the DescribeTags operation.
func (c *AutoScaling) DescribeTagsRequest(input *DescribeTagsInput) (req *request.Request, output *DescribeTagsOutput) {
op := &request.Operation{
Name: opDescribeTags,
HTTPMethod: "POST",
HTTPPath: "/",
Paginator: &request.Paginator{
InputTokens: []string{"NextToken"},
OutputTokens: []string{"NextToken"},
LimitToken: "MaxRecords",
TruncationToken: "",
},
}
if input == nil {
input = &DescribeTagsInput{}
}
req = c.newRequest(op, input, output)
output = &DescribeTagsOutput{}
req.Data = output
return
}
// 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(input *DescribeTagsInput) (*DescribeTagsOutput, error) {
req, out := c.DescribeTagsRequest(input)
err := req.Send()
return out, err
}
func (c *AutoScaling) DescribeTagsPages(input *DescribeTagsInput, fn func(p *DescribeTagsOutput, lastPage bool) (shouldContinue bool)) error {
page, _ := c.DescribeTagsRequest(input)
page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
return page.EachPage(func(p interface{}, lastPage bool) bool {
return fn(p.(*DescribeTagsOutput), lastPage)
})
}
const opDescribeTerminationPolicyTypes = "DescribeTerminationPolicyTypes"
// DescribeTerminationPolicyTypesRequest generates a request for the DescribeTerminationPolicyTypes operation.
func (c *AutoScaling) DescribeTerminationPolicyTypesRequest(input *DescribeTerminationPolicyTypesInput) (req *request.Request, output *DescribeTerminationPolicyTypesOutput) {
op := &request.Operation{
Name: opDescribeTerminationPolicyTypes,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DescribeTerminationPolicyTypesInput{}
}
req = c.newRequest(op, input, output)
output = &DescribeTerminationPolicyTypesOutput{}
req.Data = output
return
}
// Describes the termination policies supported by Auto Scaling.
func (c *AutoScaling) DescribeTerminationPolicyTypes(input *DescribeTerminationPolicyTypesInput) (*DescribeTerminationPolicyTypesOutput, error) {
req, out := c.DescribeTerminationPolicyTypesRequest(input)
err := req.Send()
return out, err
}
const opDetachInstances = "DetachInstances"
// DetachInstancesRequest generates a request for the DetachInstances operation.
func (c *AutoScaling) DetachInstancesRequest(input *DetachInstancesInput) (req *request.Request, output *DetachInstancesOutput) {
op := &request.Operation{
Name: opDetachInstances,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DetachInstancesInput{}
}
req = c.newRequest(op, input, output)
output = &DetachInstancesOutput{}
req.Data = output
return
}
// 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.
//
// If you do not specify the option to decrement the desired capacity, Auto
// Scaling launches instances to replace the ones that are detached.
//
// For more information, see Detach EC2 Instances from Your Auto Scaling Group
// (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/detach-instance-asg.html)
// in the Auto Scaling Developer Guide.
func (c *AutoScaling) DetachInstances(input *DetachInstancesInput) (*DetachInstancesOutput, error) {
req, out := c.DetachInstancesRequest(input)
err := req.Send()
return out, err
}
const opDetachLoadBalancers = "DetachLoadBalancers"
// DetachLoadBalancersRequest generates a request for the DetachLoadBalancers operation.
func (c *AutoScaling) DetachLoadBalancersRequest(input *DetachLoadBalancersInput) (req *request.Request, output *DetachLoadBalancersOutput) {
op := &request.Operation{
Name: opDetachLoadBalancers,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DetachLoadBalancersInput{}
}
req = c.newRequest(op, input, output)
output = &DetachLoadBalancersOutput{}
req.Data = output
return
}
// Removes one or more load balancers from the specified Auto Scaling group.
//
// When you detach a load balancer, it enters the Removing state while deregistering
// the instances in the group. When all instances are deregistered, then you
// can no longer describe the load balancer using DescribeLoadBalancers. Note
// that the instances remain running.
func (c *AutoScaling) DetachLoadBalancers(input *DetachLoadBalancersInput) (*DetachLoadBalancersOutput, error) {
req, out := c.DetachLoadBalancersRequest(input)
err := req.Send()
return out, err
}
const opDisableMetricsCollection = "DisableMetricsCollection"
// DisableMetricsCollectionRequest generates a request for the DisableMetricsCollection operation.
func (c *AutoScaling) DisableMetricsCollectionRequest(input *DisableMetricsCollectionInput) (req *request.Request, output *DisableMetricsCollectionOutput) {
op := &request.Operation{
Name: opDisableMetricsCollection,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DisableMetricsCollectionInput{}
}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
output = &DisableMetricsCollectionOutput{}
req.Data = output
return
}
// Disables monitoring of the specified metrics for the specified Auto Scaling
// group.
func (c *AutoScaling) DisableMetricsCollection(input *DisableMetricsCollectionInput) (*DisableMetricsCollectionOutput, error) {
req, out := c.DisableMetricsCollectionRequest(input)
err := req.Send()
return out, err
}
const opEnableMetricsCollection = "EnableMetricsCollection"
// EnableMetricsCollectionRequest generates a request for the EnableMetricsCollection operation.
func (c *AutoScaling) EnableMetricsCollectionRequest(input *EnableMetricsCollectionInput) (req *request.Request, output *EnableMetricsCollectionOutput) {
op := &request.Operation{
Name: opEnableMetricsCollection,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &EnableMetricsCollectionInput{}
}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
output = &EnableMetricsCollectionOutput{}
req.Data = output
return
}
// 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(input *EnableMetricsCollectionInput) (*EnableMetricsCollectionOutput, error) {
req, out := c.EnableMetricsCollectionRequest(input)
err := req.Send()
return out, err
}
const opEnterStandby = "EnterStandby"
// EnterStandbyRequest generates a request for the EnterStandby operation.
func (c *AutoScaling) EnterStandbyRequest(input *EnterStandbyInput) (req *request.Request, output *EnterStandbyOutput) {
op := &request.Operation{
Name: opEnterStandby,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &EnterStandbyInput{}
}
req = c.newRequest(op, input, output)
output = &EnterStandbyOutput{}
req.Data = output
return
}
// Moves the specified instances into Standby mode.
//
// For more information, see Auto Scaling Lifecycle (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/AutoScalingGroupLifecycle.html)
// in the Auto Scaling Developer Guide.
func (c *AutoScaling) EnterStandby(input *EnterStandbyInput) (*EnterStandbyOutput, error) {
req, out := c.EnterStandbyRequest(input)
err := req.Send()
return out, err
}
const opExecutePolicy = "ExecutePolicy"
// ExecutePolicyRequest generates a request for the ExecutePolicy operation.
func (c *AutoScaling) ExecutePolicyRequest(input *ExecutePolicyInput) (req *request.Request, output *ExecutePolicyOutput) {
op := &request.Operation{
Name: opExecutePolicy,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &ExecutePolicyInput{}
}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
output = &ExecutePolicyOutput{}
req.Data = output
return
}
// Executes the specified policy.
func (c *AutoScaling) ExecutePolicy(input *ExecutePolicyInput) (*ExecutePolicyOutput, error) {
req, out := c.ExecutePolicyRequest(input)
err := req.Send()
return out, err
}
const opExitStandby = "ExitStandby"
// ExitStandbyRequest generates a request for the ExitStandby operation.
func (c *AutoScaling) ExitStandbyRequest(input *ExitStandbyInput) (req *request.Request, output *ExitStandbyOutput) {
op := &request.Operation{
Name: opExitStandby,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &ExitStandbyInput{}
}
req = c.newRequest(op, input, output)
output = &ExitStandbyOutput{}
req.Data = output
return
}
// Moves the specified instances out of Standby mode.
//
// For more information, see Auto Scaling Lifecycle (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/AutoScalingGroupLifecycle.html)
// in the Auto Scaling Developer Guide.
func (c *AutoScaling) ExitStandby(input *ExitStandbyInput) (*ExitStandbyOutput, error) {
req, out := c.ExitStandbyRequest(input)
err := req.Send()
return out, err
}
const opPutLifecycleHook = "PutLifecycleHook"
// PutLifecycleHookRequest generates a request for the PutLifecycleHook operation.
func (c *AutoScaling) PutLifecycleHookRequest(input *PutLifecycleHookInput) (req *request.Request, output *PutLifecycleHookOutput) {
op := &request.Operation{
Name: opPutLifecycleHook,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &PutLifecycleHookInput{}
}
req = c.newRequest(op, input, output)
output = &PutLifecycleHookOutput{}
req.Data = output
return
}
// 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 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/DeveloperGuide/AutoScalingGroupLifecycle.html)
// in the Auto Scaling Developer Guide.
//
// If you exceed your maximum limit of lifecycle hooks, which by default is
// 50 per region, the call fails. For information about updating this limit,
// see AWS Service Limits (http://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html)
// in the Amazon Web Services General Reference.
func (c *AutoScaling) PutLifecycleHook(input *PutLifecycleHookInput) (*PutLifecycleHookOutput, error) {
req, out := c.PutLifecycleHookRequest(input)
err := req.Send()
return out, err
}
const opPutNotificationConfiguration = "PutNotificationConfiguration"
// PutNotificationConfigurationRequest generates a request for the PutNotificationConfiguration operation.
func (c *AutoScaling) PutNotificationConfigurationRequest(input *PutNotificationConfigurationInput) (req *request.Request, output *PutNotificationConfigurationOutput) {
op := &request.Operation{
Name: opPutNotificationConfiguration,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &PutNotificationConfigurationInput{}
}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
output = &PutNotificationConfigurationOutput{}
req.Data = output
return
}
// 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 (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/ASGettingNotifications.html)
// in the Auto Scaling Developer Guide.
//
// This configuration overwrites an existing configuration.
func (c *AutoScaling) PutNotificationConfiguration(input *PutNotificationConfigurationInput) (*PutNotificationConfigurationOutput, error) {
req, out := c.PutNotificationConfigurationRequest(input)
err := req.Send()
return out, err
}
const opPutScalingPolicy = "PutScalingPolicy"
// PutScalingPolicyRequest generates a request for the PutScalingPolicy operation.
func (c *AutoScaling) PutScalingPolicyRequest(input *PutScalingPolicyInput) (req *request.Request, output *PutScalingPolicyOutput) {
op := &request.Operation{
Name: opPutScalingPolicy,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &PutScalingPolicyInput{}
}
req = c.newRequest(op, input, output)
output = &PutScalingPolicyOutput{}
req.Data = output
return
}
// 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.
//
// If you exceed your maximum limit of step adjustments, which by default is
// 20 per region, the call fails. For information about updating this limit,
// see AWS Service Limits (http://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html)
// in the Amazon Web Services General Reference.
func (c *AutoScaling) PutScalingPolicy(input *PutScalingPolicyInput) (*PutScalingPolicyOutput, error) {
req, out := c.PutScalingPolicyRequest(input)
err := req.Send()
return out, err
}
const opPutScheduledUpdateGroupAction = "PutScheduledUpdateGroupAction"
// PutScheduledUpdateGroupActionRequest generates a request for the PutScheduledUpdateGroupAction operation.
func (c *AutoScaling) PutScheduledUpdateGroupActionRequest(input *PutScheduledUpdateGroupActionInput) (req *request.Request, output *PutScheduledUpdateGroupActionOutput) {
op := &request.Operation{
Name: opPutScheduledUpdateGroupAction,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &PutScheduledUpdateGroupActionInput{}
}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
output = &PutScheduledUpdateGroupActionOutput{}
req.Data = output
return
}
// 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 (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/schedule_time.html)
// in the Auto Scaling Developer Guide.
func (c *AutoScaling) PutScheduledUpdateGroupAction(input *PutScheduledUpdateGroupActionInput) (*PutScheduledUpdateGroupActionOutput, error) {
req, out := c.PutScheduledUpdateGroupActionRequest(input)
err := req.Send()
return out, err
}
const opRecordLifecycleActionHeartbeat = "RecordLifecycleActionHeartbeat"
// RecordLifecycleActionHeartbeatRequest generates a request for the RecordLifecycleActionHeartbeat operation.
func (c *AutoScaling) RecordLifecycleActionHeartbeatRequest(input *RecordLifecycleActionHeartbeatInput) (req *request.Request, output *RecordLifecycleActionHeartbeatOutput) {
op := &request.Operation{
Name: opRecordLifecycleActionHeartbeat,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &RecordLifecycleActionHeartbeatInput{}
}
req = c.newRequest(op, input, output)
output = &RecordLifecycleActionHeartbeatOutput{}
req.Data = output
return
}
// Records a heartbeat for the lifecycle action associated with the specified
// token or instance. This extends the timeout by the length of time defined
// using PutLifecycleHook.
//
// 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/DeveloperGuide/AutoScalingGroupLifecycle.html)
// in the Auto Scaling Developer Guide.
func (c *AutoScaling) RecordLifecycleActionHeartbeat(input *RecordLifecycleActionHeartbeatInput) (*RecordLifecycleActionHeartbeatOutput, error) {
req, out := c.RecordLifecycleActionHeartbeatRequest(input)
err := req.Send()
return out, err
}
const opResumeProcesses = "ResumeProcesses"
// ResumeProcessesRequest generates a request for the ResumeProcesses operation.
func (c *AutoScaling) ResumeProcessesRequest(input *ScalingProcessQuery) (req *request.Request, output *ResumeProcessesOutput) {
op := &request.Operation{
Name: opResumeProcesses,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &ScalingProcessQuery{}
}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
output = &ResumeProcessesOutput{}
req.Data = output
return
}
// Resumes the specified suspended Auto Scaling processes, or all suspended
// process, for the specified Auto Scaling group.
//
// For more information, see Suspending and Resuming Auto Scaling Processes
// (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/US_SuspendResume.html)
// in the Auto Scaling Developer Guide.
func (c *AutoScaling) ResumeProcesses(input *ScalingProcessQuery) (*ResumeProcessesOutput, error) {
req, out := c.ResumeProcessesRequest(input)
err := req.Send()
return out, err
}
const opSetDesiredCapacity = "SetDesiredCapacity"
// SetDesiredCapacityRequest generates a request for the SetDesiredCapacity operation.
func (c *AutoScaling) SetDesiredCapacityRequest(input *SetDesiredCapacityInput) (req *request.Request, output *SetDesiredCapacityOutput) {
op := &request.Operation{
Name: opSetDesiredCapacity,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &SetDesiredCapacityInput{}
}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
output = &SetDesiredCapacityOutput{}
req.Data = output
return
}
// Sets the size of the specified Auto Scaling group.
//
// For more information about desired capacity, see What Is Auto Scaling? (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/WhatIsAutoScaling.html)
// in the Auto Scaling Developer Guide.
func (c *AutoScaling) SetDesiredCapacity(input *SetDesiredCapacityInput) (*SetDesiredCapacityOutput, error) {
req, out := c.SetDesiredCapacityRequest(input)
err := req.Send()
return out, err
}
const opSetInstanceHealth = "SetInstanceHealth"
// SetInstanceHealthRequest generates a request for the SetInstanceHealth operation.
func (c *AutoScaling) SetInstanceHealthRequest(input *SetInstanceHealthInput) (req *request.Request, output *SetInstanceHealthOutput) {
op := &request.Operation{
Name: opSetInstanceHealth,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &SetInstanceHealthInput{}
}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
output = &SetInstanceHealthOutput{}
req.Data = output
return
}
// Sets the health status of the specified instance.
//
// For more information, see Health Checks (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/healthcheck.html)
// in the Auto Scaling Developer Guide.
func (c *AutoScaling) SetInstanceHealth(input *SetInstanceHealthInput) (*SetInstanceHealthOutput, error) {
req, out := c.SetInstanceHealthRequest(input)
err := req.Send()
return out, err
}
const opSetInstanceProtection = "SetInstanceProtection"
// SetInstanceProtectionRequest generates a request for the SetInstanceProtection operation.
func (c *AutoScaling) SetInstanceProtectionRequest(input *SetInstanceProtectionInput) (req *request.Request, output *SetInstanceProtectionOutput) {
op := &request.Operation{
Name: opSetInstanceProtection,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &SetInstanceProtectionInput{}
}
req = c.newRequest(op, input, output)
output = &SetInstanceProtectionOutput{}
req.Data = output
return
}
// Updates the instance protection settings of the specified instances.
//
// For more information, see Instance Protection (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/AutoScalingBehavior.InstanceTermination.html#instance-protection)
// in the Auto Scaling Developer Guide.
func (c *AutoScaling) SetInstanceProtection(input *SetInstanceProtectionInput) (*SetInstanceProtectionOutput, error) {
req, out := c.SetInstanceProtectionRequest(input)
err := req.Send()
return out, err
}
const opSuspendProcesses = "SuspendProcesses"
// SuspendProcessesRequest generates a request for the SuspendProcesses operation.
func (c *AutoScaling) SuspendProcessesRequest(input *ScalingProcessQuery) (req *request.Request, output *SuspendProcessesOutput) {
op := &request.Operation{
Name: opSuspendProcesses,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &ScalingProcessQuery{}
}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
output = &SuspendProcessesOutput{}
req.Data = output
return
}
// Suspends the specified Auto Scaling processes, or all processes, for the
// specified Auto Scaling group.
//
// 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 Suspending and Resuming Auto Scaling Processes
// (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/US_SuspendResume.html)
// in the Auto Scaling Developer Guide.
func (c *AutoScaling) SuspendProcesses(input *ScalingProcessQuery) (*SuspendProcessesOutput, error) {
req, out := c.SuspendProcessesRequest(input)
err := req.Send()
return out, err
}
const opTerminateInstanceInAutoScalingGroup = "TerminateInstanceInAutoScalingGroup"
// TerminateInstanceInAutoScalingGroupRequest generates a request for the TerminateInstanceInAutoScalingGroup operation.
func (c *AutoScaling) TerminateInstanceInAutoScalingGroupRequest(input *TerminateInstanceInAutoScalingGroupInput) (req *request.Request, output *TerminateInstanceInAutoScalingGroupOutput) {
op := &request.Operation{
Name: opTerminateInstanceInAutoScalingGroup,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &TerminateInstanceInAutoScalingGroupInput{}
}
req = c.newRequest(op, input, output)
output = &TerminateInstanceInAutoScalingGroupOutput{}
req.Data = output
return
}
// Terminates the specified instance and optionally adjusts the desired group
// size.
//
// This call simply makes a termination request. The instance is not terminated
// immediately.
func (c *AutoScaling) TerminateInstanceInAutoScalingGroup(input *TerminateInstanceInAutoScalingGroupInput) (*TerminateInstanceInAutoScalingGroupOutput, error) {
req, out := c.TerminateInstanceInAutoScalingGroupRequest(input)
err := req.Send()
return out, err
}
const opUpdateAutoScalingGroup = "UpdateAutoScalingGroup"
// UpdateAutoScalingGroupRequest generates a request for the UpdateAutoScalingGroup operation.
func (c *AutoScaling) UpdateAutoScalingGroupRequest(input *UpdateAutoScalingGroupInput) (req *request.Request, output *UpdateAutoScalingGroupOutput) {
op := &request.Operation{
Name: opUpdateAutoScalingGroup,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &UpdateAutoScalingGroupInput{}
}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
output = &UpdateAutoScalingGroupOutput{}
req.Data = output
return
}
// Updates the configuration for the specified Auto Scaling group.
//
// To update an Auto Scaling group with a launch configuration with InstanceMonitoring
// set to False, you must first disable the collection of group metrics. Otherwise,
// you will get an error. If you have previously enabled the collection of group
// metrics, you can disable it using 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.
//
// Note the following:
//
// If you specify a new value for MinSize without specifying a value for
// DesiredCapacity, and the new MinSize is larger than the current size of the
// group, we implicitly call SetDesiredCapacity to set the size of the group
// to the new value of MinSize.
//
// If you specify a new value for MaxSize without specifying a value for
// DesiredCapacity, and the new MaxSize is smaller than the current size of
// the group, we implicitly call SetDesiredCapacity to set the size of the group
// to the new value of MaxSize.
//
// All other optional parameters are left unchanged if not specified.
func (c *AutoScaling) UpdateAutoScalingGroup(input *UpdateAutoScalingGroupInput) (*UpdateAutoScalingGroupOutput, error) {
req, out := c.UpdateAutoScalingGroupRequest(input)
err := req.Send()
return out, err
}
// Describes scaling activity, which is a long-running process that represents
// a change to your Auto Scaling group, such as changing its size or replacing
// an instance.
type Activity struct {
_ struct{} `type:"structure"`
// The ID of the activity.
ActivityId *string `type:"string" required:"true"`
// The name of the Auto Scaling group.
AutoScalingGroupName *string `min:"1" type:"string" required:"true"`
// The reason the activity began.
Cause *string `min:"1" type:"string" required:"true"`
// A friendly, more verbose description of the activity.
Description *string `type:"string"`
// The details about the activity.
Details *string `type:"string"`
// The end time of the activity.
EndTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
// A value between 0 and 100 that indicates the progress of the activity.
Progress *int64 `type:"integer"`
// The start time of the activity.
StartTime *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"`
// The current status of the activity.
StatusCode *string `type:"string" required:"true" enum:"ScalingActivityStatusCode"`
// A friendly, more verbose description of the activity status.
StatusMessage *string `min:"1" type:"string"`
}
// String returns the string representation
func (s Activity) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s Activity) GoString() string {
return s.String()
}
// Describes a policy adjustment type.
//
// For more information, see Dynamic Scaling (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/as-scale-based-on-demand.html)
// in the Auto Scaling Developer Guide.
type AdjustmentType struct {
_ struct{} `type:"structure"`
// The policy adjustment type. The valid values are ChangeInCapacity, ExactCapacity,
// and PercentChangeInCapacity.
AdjustmentType *string `min:"1" type:"string"`
}
// String returns the string representation
func (s AdjustmentType) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s AdjustmentType) GoString() string {
return s.String()
}
// Describes an alarm.
type Alarm struct {
_ struct{} `type:"structure"`
// The Amazon Resource Name (ARN) of the alarm.
AlarmARN *string `min:"1" type:"string"`
// The name of the alarm.
AlarmName *string `min:"1" type:"string"`
}
// String returns the string representation
func (s Alarm) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s Alarm) GoString() string {
return s.String()
}
type AttachInstancesInput struct {
_ struct{} `type:"structure"`
// The name of the group.
AutoScalingGroupName *string `min:"1" type:"string" required:"true"`
// One or more instance IDs.
InstanceIds []*string `type:"list"`
}
// String returns the string representation
func (s AttachInstancesInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s AttachInstancesInput) GoString() string {
return s.String()
}
type AttachInstancesOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s AttachInstancesOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s AttachInstancesOutput) GoString() string {
return s.String()
}
type AttachLoadBalancersInput struct {
_ struct{} `type:"structure"`
// The name of the group.
AutoScalingGroupName *string `min:"1" type:"string"`
// One or more load balancer names.
LoadBalancerNames []*string `type:"list"`
}
// String returns the string representation
func (s AttachLoadBalancersInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s AttachLoadBalancersInput) GoString() string {
return s.String()
}
type AttachLoadBalancersOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s AttachLoadBalancersOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s AttachLoadBalancersOutput) GoString() string {
return s.String()
}
// Describes a block device mapping.
type BlockDeviceMapping struct {
_ struct{} `type:"structure"`
// The device name exposed to the EC2 instance (for example, /dev/sdh or xvdh).
DeviceName *string `min:"1" type:"string" required:"true"`
// The information about the Amazon EBS volume.
Ebs *Ebs `type:"structure"`
// Suppresses a device mapping.
//
// If this parameter is true for the root device, the instance might fail the
// EC2 health check. Auto Scaling launches a replacement instance if the instance
// fails the health check.
NoDevice *bool `type:"boolean"`
// The name of the virtual device (for example, ephemeral0).
VirtualName *string `min:"1" type:"string"`
}
// String returns the string representation
func (s BlockDeviceMapping) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s BlockDeviceMapping) GoString() string {
return s.String()
}
type CompleteLifecycleActionInput struct {
_ struct{} `type:"structure"`
// The name of the group for the lifecycle hook.
AutoScalingGroupName *string `min:"1" type:"string" required:"true"`
// The ID of the instance.
InstanceId *string `min:"1" type:"string"`
// The action for the group to take. This parameter can be either CONTINUE or
// ABANDON.
LifecycleActionResult *string `type:"string" required:"true"`
// A universally unique identifier (UUID) that identifies a specific lifecycle
// action associated with an instance. Auto Scaling sends this token to the
// notification target you specified when you created the lifecycle hook.
LifecycleActionToken *string `min:"36" type:"string"`
// The name of the lifecycle hook.
LifecycleHookName *string `min:"1" type:"string" required:"true"`
}
// String returns the string representation
func (s CompleteLifecycleActionInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CompleteLifecycleActionInput) GoString() string {
return s.String()
}
type CompleteLifecycleActionOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s CompleteLifecycleActionOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CompleteLifecycleActionOutput) GoString() string {
return s.String()
}
type CreateAutoScalingGroupInput struct {
_ struct{} `type:"structure"`
// The name of the group. This name must be unique within the scope of your
// AWS account.
AutoScalingGroupName *string `min:"1" type:"string" required:"true"`
// One or more Availability Zones for the group. This parameter is optional
// if you specify one or more subnets.
AvailabilityZones []*string `min:"1" type:"list"`
// The amount of time, in seconds, after a scaling activity completes before
// another scaling activity can start. The default is 300.
//
// For more information, see Auto Scaling Cooldowns (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/Cooldown.html)
// in the Auto Scaling Developer Guide.
DefaultCooldown *int64 `type:"integer"`
// The number of EC2 instances that should be running in the group. This number
// must be greater than or equal to the minimum size of the group and less than
// or equal to the maximum size of the group.
DesiredCapacity *int64 `type:"integer"`
// The amount of time, in seconds, that Auto Scaling waits before checking the
// health status of an EC2 instance that has come into service. During this
// time, any health check failures for the instance are ignored. The default
// is 300.
//
// This parameter is required if you are adding an ELB health check.
//
// For more information, see Health Checks (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/healthcheck.html)
// in the Auto Scaling Developer Guide.
HealthCheckGracePeriod *int64 `type:"integer"`
// The service to use for the health checks. The valid values are EC2 and ELB.
//
// By default, health checks use Amazon EC2 instance status checks to determine
// the health of an instance. For more information, see Health Checks (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/healthcheck.html)
// in the Auto Scaling Developer Guide.
HealthCheckType *string `min:"1" type:"string"`
// The ID of the instance used to create a launch configuration for the group.
// Alternatively, specify a launch configuration instead of an EC2 instance.
//
// When you specify an ID of an instance, Auto Scaling creates a new launch
// configuration and associates it with the group. This launch configuration
// derives its attributes from the specified instance, with the exception of
// the block device mapping.
//
// For more information, see Create an Auto Scaling Group Using an EC2 Instance
// (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/create-asg-from-instance.html)
// in the Auto Scaling Developer Guide.
InstanceId *string `min:"1" type:"string"`
// The name of the launch configuration. Alternatively, specify an EC2 instance
// instead of a launch configuration.
LaunchConfigurationName *string `min:"1" type:"string"`
// One or more load balancers.
//
// For more information, see Using a Load Balancer With an Auto Scaling Group
// (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/US_SetUpASLBApp.html)
// in the Auto Scaling Developer Guide.
LoadBalancerNames []*string `type:"list"`
// The maximum size of the group.
MaxSize *int64 `type:"integer" required:"true"`
// The minimum size of the group.
MinSize *int64 `type:"integer" required:"true"`
// Indicates whether newly launched instances are protected from termination
// by Auto Scaling when scaling in.
NewInstancesProtectedFromScaleIn *bool `type:"boolean"`
// The name of the placement group into which you'll launch your instances,
// if any. For more information, see Placement Groups (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/placement-groups.html)
// in the Amazon Elastic Compute Cloud User Guide.
PlacementGroup *string `min:"1" type:"string"`
// One or more tags.
//
// For more information, see Tagging Auto Scaling Groups and Instances (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/ASTagging.html)
// in the Auto Scaling Developer Guide.
Tags []*Tag `type:"list"`
// One or more termination policies used to select the instance to terminate.
// These policies are executed in the order that they are listed.
//
// For more information, see Controlling Which Instances Auto Scaling Terminates
// During Scale In (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/AutoScalingBehavior.InstanceTermination.html)
// in the Auto Scaling Developer Guide.
TerminationPolicies []*string `type:"list"`
// A comma-separated list of subnet identifiers for your virtual private cloud
// (VPC).
//
// If you specify subnets and Availability Zones with this call, ensure that
// the subnets' Availability Zones match the Availability Zones specified.
//
// For more information, see Launching Auto Scaling Instances in a VPC (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/asg-in-vpc.html)
// in the Auto Scaling Developer Guide.
VPCZoneIdentifier *string `min:"1" type:"string"`
}
// String returns the string representation
func (s CreateAutoScalingGroupInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CreateAutoScalingGroupInput) GoString() string {
return s.String()
}
type CreateAutoScalingGroupOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s CreateAutoScalingGroupOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CreateAutoScalingGroupOutput) GoString() string {
return s.String()
}
type CreateLaunchConfigurationInput struct {
_ struct{} `type:"structure"`
// Used for groups that launch instances into a virtual private cloud (VPC).
// Specifies whether to assign a public IP address to each instance. For more
// information, see Launching Auto Scaling Instances in a VPC (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/asg-in-vpc.html)
// in the Auto Scaling Developer Guide.
//
// If you specify this parameter, be sure to specify at least one subnet when
// you create your group.
//
// Default: If the instance is launched into a default subnet, the default
// is true. If the instance is launched into a nondefault subnet, the default
// is false. For more information, see Supported Platforms (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-supported-platforms.html)
// in the Amazon Elastic Compute Cloud User Guide.
AssociatePublicIpAddress *bool `type:"boolean"`
// One or more mappings that specify how block devices are exposed to the instance.
// For more information, see Block Device Mapping (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/block-device-mapping-concepts.html)
// in the Amazon Elastic Compute Cloud User Guide.
BlockDeviceMappings []*BlockDeviceMapping `type:"list"`
// The ID of a ClassicLink-enabled VPC to link your EC2-Classic instances to.
// This parameter is supported only if you are launching EC2-Classic instances.
// For more information, see ClassicLink (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-classiclink.html)
// in the Amazon Elastic Compute Cloud User Guide.
ClassicLinkVPCId *string `min:"1" type:"string"`
// The IDs of one or more security groups for the specified ClassicLink-enabled
// VPC. This parameter is required if you specify a ClassicLink-enabled VPC,
// and is not supported otherwise. For more information, see ClassicLink (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-classiclink.html)
// in the Amazon Elastic Compute Cloud User Guide.
ClassicLinkVPCSecurityGroups []*string `type:"list"`
// Indicates whether the instance is optimized for Amazon EBS I/O. By default,
// the instance is not optimized for EBS I/O. The optimization provides dedicated
// throughput to Amazon EBS and an optimized configuration stack to provide
// optimal I/O performance. This optimization is not available with all instance
// types. Additional usage charges apply. For more information, see Amazon EBS-Optimized
// Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSOptimized.html)
// in the Amazon Elastic Compute Cloud User Guide.
EbsOptimized *bool `type:"boolean"`
// The name or the Amazon Resource Name (ARN) of the instance profile associated
// with the IAM role for the instance.
//
// EC2 instances launched with an IAM role will automatically have AWS security
// credentials available. You can use IAM roles with Auto Scaling to automatically
// enable applications running on your EC2 instances to securely access other
// AWS resources. For more information, see Launch Auto Scaling Instances with
// an IAM Role (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/us-iam-role.html)
// in the Auto Scaling Developer Guide.
IamInstanceProfile *string `min:"1" type:"string"`
// The ID of the Amazon Machine Image (AMI) to use to launch your EC2 instances.
// For more information, see Finding an AMI (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/finding-an-ami.html)
// in the Amazon Elastic Compute Cloud User Guide.
ImageId *string `min:"1" type:"string"`
// The ID of the instance to use to create the launch configuration.
//
// The new launch configuration derives attributes from the instance, with
// the exception of the block device mapping.
//
// To create a launch configuration with a block device mapping or override
// any other instance attributes, specify them as part of the same request.
//
// For more information, see Create a Launch Configuration Using an EC2 Instance
// (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/create-lc-with-instanceID.html)
// in the Auto Scaling Developer Guide.
InstanceId *string `min:"1" type:"string"`
// Enables detailed monitoring if it is disabled. Detailed monitoring is enabled
// by default.
//
// When detailed monitoring is enabled, Amazon CloudWatch generates metrics
// every minute and your account is charged a fee. When you disable detailed
// monitoring, by specifying False, CloudWatch generates metrics every 5 minutes.
// For more information, see Monitoring Your Auto Scaling Instances and Groups
// (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/as-instance-monitoring.html)
// in the Auto Scaling Developer Guide.
InstanceMonitoring *InstanceMonitoring `type:"structure"`
// The instance type of the EC2 instance. For information about available instance
// types, see Available Instance Types (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html#AvailableInstanceTypes)
// in the Amazon Elastic Compute Cloud User Guide.
InstanceType *string `min:"1" type:"string"`
// The ID of the kernel associated with the AMI.
KernelId *string `min:"1" type:"string"`
// The name of the key pair. For more information, see Amazon EC2 Key Pairs
// (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html) in
// the Amazon Elastic Compute Cloud User Guide.
KeyName *string `min:"1" type:"string"`
// The name of the launch configuration. This name must be unique within the
// scope of your AWS account.
LaunchConfigurationName *string `min:"1" type:"string" required:"true"`
// The tenancy of the instance. An instance with a tenancy of dedicated runs
// on single-tenant hardware and can only be launched into a VPC.
//
// You must set the value of this parameter to dedicated if want to launch
// Dedicated Instances into a shared tenancy VPC (VPC with instance placement
// tenancy attribute set to default).
//
// If you specify this parameter, be sure to specify at least one subnet when
// you create your group.
//
// For more information, see Launching Auto Scaling Instances in a VPC (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/asg-in-vpc.html)
// in the Auto Scaling Developer Guide.
//
// Valid values: default | dedicated
PlacementTenancy *string `min:"1" type:"string"`
// The ID of the RAM disk associated with the AMI.
RamdiskId *string `min:"1" type:"string"`
// One or more security groups with which to associate the instances.
//
// If your instances are launched in EC2-Classic, you can either specify security
// group names or the security group IDs. For more information about security
// groups for EC2-Classic, see Amazon EC2 Security Groups (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-network-security.html)
// in the Amazon Elastic Compute Cloud User Guide.
//
// If your instances are launched into a VPC, specify security group IDs. For
// more information, see Security Groups for Your VPC (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_SecurityGroups.html)
// in the Amazon Virtual Private Cloud User Guide.
SecurityGroups []*string `type:"list"`
// The maximum hourly price to be paid for any Spot Instance launched to fulfill
// the request. Spot Instances are launched when the price you specify exceeds
// the current Spot market price. For more information, see Launching Spot Instances
// in Your Auto Scaling Group (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/US-SpotInstances.html)
// in the Auto Scaling Developer Guide.
SpotPrice *string `min:"1" type:"string"`
// The user data to make available to the launched EC2 instances. For more information,
// see Instance Metadata and User Data (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html)
// in the Amazon Elastic Compute Cloud User Guide.
UserData *string `type:"string"`
}
// String returns the string representation
func (s CreateLaunchConfigurationInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CreateLaunchConfigurationInput) GoString() string {
return s.String()
}
type CreateLaunchConfigurationOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s CreateLaunchConfigurationOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CreateLaunchConfigurationOutput) GoString() string {
return s.String()
}
type CreateOrUpdateTagsInput struct {
_ struct{} `type:"structure"`
// One or more tags.
Tags []*Tag `type:"list" required:"true"`
}
// String returns the string representation
func (s CreateOrUpdateTagsInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CreateOrUpdateTagsInput) GoString() string {
return s.String()
}
type CreateOrUpdateTagsOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s CreateOrUpdateTagsOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CreateOrUpdateTagsOutput) GoString() string {
return s.String()
}
type DeleteAutoScalingGroupInput struct {
_ struct{} `type:"structure"`
// The name of the group to delete.
AutoScalingGroupName *string `min:"1" type:"string" required:"true"`
// Specifies that the group will be deleted along with all instances associated
// with the group, without waiting for all instances to be terminated. This
// parameter also deletes any lifecycle actions associated with the group.
ForceDelete *bool `type:"boolean"`
}
// String returns the string representation
func (s DeleteAutoScalingGroupInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeleteAutoScalingGroupInput) GoString() string {
return s.String()
}
type DeleteAutoScalingGroupOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s DeleteAutoScalingGroupOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeleteAutoScalingGroupOutput) GoString() string {
return s.String()
}
type DeleteLaunchConfigurationInput struct {
_ struct{} `type:"structure"`
// The name of the launch configuration.
LaunchConfigurationName *string `min:"1" type:"string" required:"true"`
}
// String returns the string representation
func (s DeleteLaunchConfigurationInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeleteLaunchConfigurationInput) GoString() string {
return s.String()
}
type DeleteLaunchConfigurationOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s DeleteLaunchConfigurationOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeleteLaunchConfigurationOutput) GoString() string {
return s.String()
}
type DeleteLifecycleHookInput struct {
_ struct{} `type:"structure"`
// The name of the Auto Scaling group for the lifecycle hook.
AutoScalingGroupName *string `min:"1" type:"string" required:"true"`
// The name of the lifecycle hook.
LifecycleHookName *string `min:"1" type:"string" required:"true"`
}
// String returns the string representation
func (s DeleteLifecycleHookInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeleteLifecycleHookInput) GoString() string {
return s.String()
}
type DeleteLifecycleHookOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s DeleteLifecycleHookOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeleteLifecycleHookOutput) GoString() string {
return s.String()
}
type DeleteNotificationConfigurationInput struct {
_ struct{} `type:"structure"`
// The name of the Auto Scaling group.
AutoScalingGroupName *string `min:"1" type:"string" required:"true"`
// The Amazon Resource Name (ARN) of the Amazon Simple Notification Service
// (SNS) topic.
TopicARN *string `min:"1" type:"string" required:"true"`
}
// String returns the string representation
func (s DeleteNotificationConfigurationInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeleteNotificationConfigurationInput) GoString() string {
return s.String()
}
type DeleteNotificationConfigurationOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s DeleteNotificationConfigurationOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeleteNotificationConfigurationOutput) GoString() string {
return s.String()
}
type DeletePolicyInput struct {
_ struct{} `type:"structure"`
// The name of the Auto Scaling group.
AutoScalingGroupName *string `min:"1" type:"string"`
// The name or Amazon Resource Name (ARN) of the policy.
PolicyName *string `min:"1" type:"string" required:"true"`
}
// String returns the string representation
func (s DeletePolicyInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeletePolicyInput) GoString() string {
return s.String()
}
type DeletePolicyOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s DeletePolicyOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeletePolicyOutput) GoString() string {
return s.String()
}
type DeleteScheduledActionInput struct {
_ struct{} `type:"structure"`
// The name of the Auto Scaling group.
AutoScalingGroupName *string `min:"1" type:"string"`
// The name of the action to delete.
ScheduledActionName *string `min:"1" type:"string" required:"true"`
}
// String returns the string representation
func (s DeleteScheduledActionInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeleteScheduledActionInput) GoString() string {
return s.String()
}
type DeleteScheduledActionOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s DeleteScheduledActionOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeleteScheduledActionOutput) GoString() string {
return s.String()
}
type DeleteTagsInput struct {
_ struct{} `type:"structure"`
// One or more tags.
Tags []*Tag `type:"list" required:"true"`
}
// String returns the string representation
func (s DeleteTagsInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeleteTagsInput) GoString() string {
return s.String()
}
type DeleteTagsOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s DeleteTagsOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeleteTagsOutput) GoString() string {
return s.String()
}
type DescribeAccountLimitsInput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s DescribeAccountLimitsInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeAccountLimitsInput) GoString() string {
return s.String()
}
type DescribeAccountLimitsOutput struct {
_ struct{} `type:"structure"`
// The maximum number of groups allowed for your AWS account. The default limit
// is 20 per region.
MaxNumberOfAutoScalingGroups *int64 `type:"integer"`
// The maximum number of launch configurations allowed for your AWS account.
// The default limit is 100 per region.
MaxNumberOfLaunchConfigurations *int64 `type:"integer"`
// The current number of groups for your AWS account.
NumberOfAutoScalingGroups *int64 `type:"integer"`
// The current number of launch configurations for your AWS account.
NumberOfLaunchConfigurations *int64 `type:"integer"`
}
// String returns the string representation
func (s DescribeAccountLimitsOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeAccountLimitsOutput) GoString() string {
return s.String()
}
type DescribeAdjustmentTypesInput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s DescribeAdjustmentTypesInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeAdjustmentTypesInput) GoString() string {
return s.String()
}
type DescribeAdjustmentTypesOutput struct {
_ struct{} `type:"structure"`
// The policy adjustment types.
AdjustmentTypes []*AdjustmentType `type:"list"`
}
// String returns the string representation
func (s DescribeAdjustmentTypesOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeAdjustmentTypesOutput) GoString() string {
return s.String()
}
type DescribeAutoScalingGroupsInput struct {
_ struct{} `type:"structure"`
// The group names.
AutoScalingGroupNames []*string `type:"list"`
// The maximum number of items to return with this call.
MaxRecords *int64 `type:"integer"`
// The token for the next set of items to return. (You received this token from
// a previous call.)
NextToken *string `type:"string"`
}
// String returns the string representation
func (s DescribeAutoScalingGroupsInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeAutoScalingGroupsInput) GoString() string {
return s.String()
}
type DescribeAutoScalingGroupsOutput struct {
_ struct{} `type:"structure"`
// The groups.
AutoScalingGroups []*Group `type:"list" required:"true"`
// The token to use when requesting the next set of items. If there are no additional
// items to return, the string is empty.
NextToken *string `type:"string"`
}
// String returns the string representation
func (s DescribeAutoScalingGroupsOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeAutoScalingGroupsOutput) GoString() string {
return s.String()
}
type DescribeAutoScalingInstancesInput struct {
_ struct{} `type:"structure"`
// The instances to describe; up to 50 instance IDs. If you omit this parameter,
// all Auto Scaling instances are described. If you specify an ID that does
// not exist, it is ignored with no error.
InstanceIds []*string `type:"list"`
// The maximum number of items to return with this call.
MaxRecords *int64 `type:"integer"`
// The token for the next set of items to return. (You received this token from
// a previous call.)
NextToken *string `type:"string"`
}
// String returns the string representation
func (s DescribeAutoScalingInstancesInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeAutoScalingInstancesInput) GoString() string {
return s.String()
}
type DescribeAutoScalingInstancesOutput struct {
_ struct{} `type:"structure"`
// The instances.
AutoScalingInstances []*InstanceDetails `type:"list"`
// The token to use when requesting the next set of items. If there are no additional
// items to return, the string is empty.
NextToken *string `type:"string"`
}
// String returns the string representation
func (s DescribeAutoScalingInstancesOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeAutoScalingInstancesOutput) GoString() string {
return s.String()
}
type DescribeAutoScalingNotificationTypesInput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s DescribeAutoScalingNotificationTypesInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeAutoScalingNotificationTypesInput) GoString() string {
return s.String()
}
type DescribeAutoScalingNotificationTypesOutput struct {
_ struct{} `type:"structure"`
// One or more of the following notification types:
//
// autoscaling:EC2_INSTANCE_LAUNCH
//
// autoscaling:EC2_INSTANCE_LAUNCH_ERROR
//
// autoscaling:EC2_INSTANCE_TERMINATE
//
// autoscaling:EC2_INSTANCE_TERMINATE_ERROR
//
// autoscaling:TEST_NOTIFICATION
AutoScalingNotificationTypes []*string `type:"list"`
}
// String returns the string representation
func (s DescribeAutoScalingNotificationTypesOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeAutoScalingNotificationTypesOutput) GoString() string {
return s.String()
}
type DescribeLaunchConfigurationsInput struct {
_ struct{} `type:"structure"`
// The launch configuration names.
LaunchConfigurationNames []*string `type:"list"`
// The maximum number of items to return with this call. The default is 100.
MaxRecords *int64 `type:"integer"`
// The token for the next set of items to return. (You received this token from
// a previous call.)
NextToken *string `type:"string"`
}
// String returns the string representation
func (s DescribeLaunchConfigurationsInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeLaunchConfigurationsInput) GoString() string {
return s.String()
}
type DescribeLaunchConfigurationsOutput struct {
_ struct{} `type:"structure"`
// The launch configurations.
LaunchConfigurations []*LaunchConfiguration `type:"list" required:"true"`
// The token to use when requesting the next set of items. If there are no additional
// items to return, the string is empty.
NextToken *string `type:"string"`
}
// String returns the string representation
func (s DescribeLaunchConfigurationsOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeLaunchConfigurationsOutput) GoString() string {
return s.String()
}
type DescribeLifecycleHookTypesInput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s DescribeLifecycleHookTypesInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeLifecycleHookTypesInput) GoString() string {
return s.String()
}
type DescribeLifecycleHookTypesOutput struct {
_ struct{} `type:"structure"`
// One or more of the following notification types:
//
// autoscaling:EC2_INSTANCE_LAUNCHING
//
// autoscaling:EC2_INSTANCE_TERMINATING
LifecycleHookTypes []*string `type:"list"`
}
// String returns the string representation
func (s DescribeLifecycleHookTypesOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeLifecycleHookTypesOutput) GoString() string {
return s.String()
}
type DescribeLifecycleHooksInput struct {
_ struct{} `type:"structure"`
// The name of the group.
AutoScalingGroupName *string `min:"1" type:"string" required:"true"`
// The names of one or more lifecycle hooks.
LifecycleHookNames []*string `type:"list"`
}
// String returns the string representation
func (s DescribeLifecycleHooksInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeLifecycleHooksInput) GoString() string {
return s.String()
}
type DescribeLifecycleHooksOutput struct {
_ struct{} `type:"structure"`
// The lifecycle hooks for the specified group.
LifecycleHooks []*LifecycleHook `type:"list"`
}
// String returns the string representation
func (s DescribeLifecycleHooksOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeLifecycleHooksOutput) GoString() string {
return s.String()
}
type DescribeLoadBalancersInput struct {
_ struct{} `type:"structure"`
// The name of the group.
AutoScalingGroupName *string `min:"1" type:"string" required:"true"`
// The maximum number of items to return with this call.
MaxRecords *int64 `type:"integer"`
// The token for the next set of items to return. (You received this token from
// a previous call.)
NextToken *string `type:"string"`
}
// String returns the string representation
func (s DescribeLoadBalancersInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeLoadBalancersInput) GoString() string {
return s.String()
}
type DescribeLoadBalancersOutput struct {
_ struct{} `type:"structure"`
// The load balancers.
LoadBalancers []*LoadBalancerState `type:"list"`
// The token to use when requesting the next set of items. If there are no additional
// items to return, the string is empty.
NextToken *string `type:"string"`
}
// String returns the string representation
func (s DescribeLoadBalancersOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeLoadBalancersOutput) GoString() string {
return s.String()
}
type DescribeMetricCollectionTypesInput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s DescribeMetricCollectionTypesInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeMetricCollectionTypesInput) GoString() string {
return s.String()
}
type DescribeMetricCollectionTypesOutput struct {
_ struct{} `type:"structure"`
// The granularities for the metrics.
Granularities []*MetricGranularityType `type:"list"`
// One or more metrics.
Metrics []*MetricCollectionType `type:"list"`
}
// String returns the string representation
func (s DescribeMetricCollectionTypesOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeMetricCollectionTypesOutput) GoString() string {
return s.String()
}
type DescribeNotificationConfigurationsInput struct {
_ struct{} `type:"structure"`
// The name of the group.
AutoScalingGroupNames []*string `type:"list"`
// The maximum number of items to return with this call.
MaxRecords *int64 `type:"integer"`
// The token for the next set of items to return. (You received this token from
// a previous call.)
NextToken *string `type:"string"`
}
// String returns the string representation
func (s DescribeNotificationConfigurationsInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeNotificationConfigurationsInput) GoString() string {
return s.String()
}
type DescribeNotificationConfigurationsOutput struct {
_ struct{} `type:"structure"`
// The token to use when requesting the next set of items. If there are no additional
// items to return, the string is empty.
NextToken *string `type:"string"`
// The notification configurations.
NotificationConfigurations []*NotificationConfiguration `type:"list" required:"true"`
}
// String returns the string representation
func (s DescribeNotificationConfigurationsOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeNotificationConfigurationsOutput) GoString() string {
return s.String()
}
type DescribePoliciesInput struct {
_ struct{} `type:"structure"`
// The name of the group.
AutoScalingGroupName *string `min:"1" type:"string"`
// The maximum number of items to be returned with each call.
MaxRecords *int64 `type:"integer"`
// The token for the next set of items to return. (You received this token from
// a previous call.)
NextToken *string `type:"string"`
// One or more policy names or policy ARNs to be described. If you omit this
// list, all policy names are described. If an group name is provided, the results
// are limited to that group. This list is limited to 50 items. If you specify
// an unknown policy name, it is ignored with no error.
PolicyNames []*string `type:"list"`
// One or more policy types. Valid values are SimpleScaling and StepScaling.
PolicyTypes []*string `type:"list"`
}
// String returns the string representation
func (s DescribePoliciesInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribePoliciesInput) GoString() string {
return s.String()
}
type DescribePoliciesOutput struct {
_ struct{} `type:"structure"`
// The token to use when requesting the next set of items. If there are no additional
// items to return, the string is empty.
NextToken *string `type:"string"`
// The scaling policies.
ScalingPolicies []*ScalingPolicy `type:"list"`
}
// String returns the string representation
func (s DescribePoliciesOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribePoliciesOutput) GoString() string {
return s.String()
}
type DescribeScalingActivitiesInput struct {
_ struct{} `type:"structure"`
// The activity IDs of the desired scaling activities. If this list is omitted,
// all activities are described. If you specify an Auto Scaling group, the results
// are limited to that group. The list of requested activities cannot contain
// more than 50 items. If unknown activities are requested, they are ignored
// with no error.
ActivityIds []*string `type:"list"`
// The name of the group.
AutoScalingGroupName *string `min:"1" type:"string"`
// The maximum number of items to return with this call.
MaxRecords *int64 `type:"integer"`
// The token for the next set of items to return. (You received this token from
// a previous call.)
NextToken *string `type:"string"`
}
// String returns the string representation
func (s DescribeScalingActivitiesInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeScalingActivitiesInput) GoString() string {
return s.String()
}
type DescribeScalingActivitiesOutput struct {
_ struct{} `type:"structure"`
// The scaling activities.
Activities []*Activity `type:"list" required:"true"`
// The token to use when requesting the next set of items. If there are no additional
// items to return, the string is empty.
NextToken *string `type:"string"`
}
// String returns the string representation
func (s DescribeScalingActivitiesOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeScalingActivitiesOutput) GoString() string {
return s.String()
}
type DescribeScalingProcessTypesInput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s DescribeScalingProcessTypesInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeScalingProcessTypesInput) GoString() string {
return s.String()
}
type DescribeScalingProcessTypesOutput struct {
_ struct{} `type:"structure"`
// The names of the process types.
Processes []*ProcessType `type:"list"`
}
// String returns the string representation
func (s DescribeScalingProcessTypesOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeScalingProcessTypesOutput) GoString() string {
return s.String()
}
type DescribeScheduledActionsInput struct {
_ struct{} `type:"structure"`
// The name of the group.
AutoScalingGroupName *string `min:"1" type:"string"`
// The latest scheduled start time to return. If scheduled action names are
// provided, this parameter is ignored.
EndTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
// The maximum number of items to return with this call.
MaxRecords *int64 `type:"integer"`
// The token for the next set of items to return. (You received this token from
// a previous call.)
NextToken *string `type:"string"`
// Describes one or more scheduled actions. If you omit this list, the call
// describes all scheduled actions. If you specify an unknown scheduled action
// it is ignored with no error.
//
// You can describe up to a maximum of 50 instances 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.
ScheduledActionNames []*string `type:"list"`
// The earliest scheduled start time to return. If scheduled action names are
// provided, this parameter is ignored.
StartTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
}
// String returns the string representation
func (s DescribeScheduledActionsInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeScheduledActionsInput) GoString() string {
return s.String()
}
type DescribeScheduledActionsOutput struct {
_ struct{} `type:"structure"`
// The token to use when requesting the next set of items. If there are no additional
// items to return, the string is empty.
NextToken *string `type:"string"`
// The scheduled actions.
ScheduledUpdateGroupActions []*ScheduledUpdateGroupAction `type:"list"`
}
// String returns the string representation
func (s DescribeScheduledActionsOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeScheduledActionsOutput) GoString() string {
return s.String()
}
type DescribeTagsInput struct {
_ struct{} `type:"structure"`
// A filter used to scope the tags to return.
Filters []*Filter `type:"list"`
// The maximum number of items to return with this call.
MaxRecords *int64 `type:"integer"`
// The token for the next set of items to return. (You received this token from
// a previous call.)
NextToken *string `type:"string"`
}
// String returns the string representation
func (s DescribeTagsInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeTagsInput) GoString() string {
return s.String()
}
type DescribeTagsOutput struct {
_ struct{} `type:"structure"`
// The token to use when requesting the next set of items. If there are no additional
// items to return, the string is empty.
NextToken *string `type:"string"`
// One or more tags.
Tags []*TagDescription `type:"list"`
}
// String returns the string representation
func (s DescribeTagsOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeTagsOutput) GoString() string {
return s.String()
}
type DescribeTerminationPolicyTypesInput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s DescribeTerminationPolicyTypesInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeTerminationPolicyTypesInput) GoString() string {
return s.String()
}
type DescribeTerminationPolicyTypesOutput struct {
_ struct{} `type:"structure"`
// The termination policies supported by Auto Scaling (OldestInstance, OldestLaunchConfiguration,
// NewestInstance, ClosestToNextInstanceHour, and Default).
TerminationPolicyTypes []*string `type:"list"`
}
// String returns the string representation
func (s DescribeTerminationPolicyTypesOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeTerminationPolicyTypesOutput) GoString() string {
return s.String()
}
type DetachInstancesInput struct {
_ struct{} `type:"structure"`
// The name of the group.
AutoScalingGroupName *string `min:"1" type:"string" required:"true"`
// One or more instance IDs.
InstanceIds []*string `type:"list"`
// If True, the Auto Scaling group decrements the desired capacity value by
// the number of instances detached.
ShouldDecrementDesiredCapacity *bool `type:"boolean" required:"true"`
}
// String returns the string representation
func (s DetachInstancesInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DetachInstancesInput) GoString() string {
return s.String()
}
type DetachInstancesOutput struct {
_ struct{} `type:"structure"`
// The activities related to detaching the instances from the Auto Scaling group.
Activities []*Activity `type:"list"`
}
// String returns the string representation
func (s DetachInstancesOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DetachInstancesOutput) GoString() string {
return s.String()
}
type DetachLoadBalancersInput struct {
_ struct{} `type:"structure"`
// The name of the group.
AutoScalingGroupName *string `min:"1" type:"string"`
// One or more load balancer names.
LoadBalancerNames []*string `type:"list"`
}
// String returns the string representation
func (s DetachLoadBalancersInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DetachLoadBalancersInput) GoString() string {
return s.String()
}
type DetachLoadBalancersOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s DetachLoadBalancersOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DetachLoadBalancersOutput) GoString() string {
return s.String()
}
type DisableMetricsCollectionInput struct {
_ struct{} `type:"structure"`
// The name or Amazon Resource Name (ARN) of the group.
AutoScalingGroupName *string `min:"1" type:"string" required:"true"`
// One or more of the following metrics. If you omit this parameter, all metrics
// are disabled.
//
// GroupMinSize
//
// GroupMaxSize
//
// GroupDesiredCapacity
//
// GroupInServiceInstances
//
// GroupPendingInstances
//
// GroupStandbyInstances
//
// GroupTerminatingInstances
//
// GroupTotalInstances
Metrics []*string `type:"list"`
}
// String returns the string representation
func (s DisableMetricsCollectionInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DisableMetricsCollectionInput) GoString() string {
return s.String()
}
type DisableMetricsCollectionOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s DisableMetricsCollectionOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DisableMetricsCollectionOutput) GoString() string {
return s.String()
}
// Describes an Amazon EBS volume.
type Ebs struct {
_ struct{} `type:"structure"`
// Indicates whether the volume is deleted on instance termination.
//
// Default: true
DeleteOnTermination *bool `type:"boolean"`
// Indicates whether the volume should be encrypted. Encrypted EBS volumes must
// be attached to instances that support Amazon EBS encryption. Volumes that
// are created from encrypted snapshots are automatically encrypted. There is
// no way to create an encrypted volume from an unencrypted snapshot or an unencrypted
// volume from an encrypted snapshot. For more information, see Amazon EBS Encryption
// (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html) in
// the Amazon Elastic Compute Cloud User Guide.
Encrypted *bool `type:"boolean"`
// The number of I/O operations per second (IOPS) to provision for the volume.
//
// Constraint: Required when the volume type is io1.
Iops *int64 `min:"100" type:"integer"`
// The ID of the snapshot.
SnapshotId *string `min:"1" type:"string"`
// The volume size, in GiB. For standard volumes, specify a value from 1 to
// 1,024. For io1 volumes, specify a value from 4 to 16,384. For gp2 volumes,
// specify a value from 1 to 16,384. If you specify a snapshot, the volume size
// must be equal to or larger than the snapshot size.
//
// Default: If you create a volume from a snapshot and you don't specify a
// volume size, the default is the snapshot size.
VolumeSize *int64 `min:"1" type:"integer"`
// The volume type. For more information, see Amazon EBS Volume Types (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html)
// in the Amazon Elastic Compute Cloud User Guide.
//
// Valid values: standard | io1 | gp2
//
// Default: standard
VolumeType *string `min:"1" type:"string"`
}
// String returns the string representation
func (s Ebs) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s Ebs) GoString() string {
return s.String()
}
type EnableMetricsCollectionInput struct {
_ struct{} `type:"structure"`
// The name or ARN of the Auto Scaling group.
AutoScalingGroupName *string `min:"1" type:"string" required:"true"`
// The granularity to associate with the metrics to collect. The only valid
// value is 1Minute.
Granularity *string `min:"1" type:"string" required:"true"`
// One or more of the following metrics. If you omit this parameter, all metrics
// are enabled.
//
// GroupMinSize
//
// GroupMaxSize
//
// GroupDesiredCapacity
//
// GroupInServiceInstances
//
// GroupPendingInstances
//
// GroupStandbyInstances
//
// GroupTerminatingInstances
//
// GroupTotalInstances
//
// Note that the GroupStandbyInstances metric is not enabled by default. You
// must explicitly request this metric.
Metrics []*string `type:"list"`
}
// String returns the string representation
func (s EnableMetricsCollectionInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s EnableMetricsCollectionInput) GoString() string {
return s.String()
}
type EnableMetricsCollectionOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s EnableMetricsCollectionOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s EnableMetricsCollectionOutput) GoString() string {
return s.String()
}
// Describes an enabled metric.
type EnabledMetric struct {
_ struct{} `type:"structure"`
// The granularity of the metric. The only valid value is 1Minute.
Granularity *string `min:"1" type:"string"`
// One of the following metrics:
//
// GroupMinSize
//
// GroupMaxSize
//
// GroupDesiredCapacity
//
// GroupInServiceInstances
//
// GroupPendingInstances
//
// GroupStandbyInstances
//
// GroupTerminatingInstances
//
// GroupTotalInstances
Metric *string `min:"1" type:"string"`
}
// String returns the string representation
func (s EnabledMetric) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s EnabledMetric) GoString() string {
return s.String()
}
type EnterStandbyInput struct {
_ struct{} `type:"structure"`
// The name of the Auto Scaling group.
AutoScalingGroupName *string `min:"1" type:"string" required:"true"`
// One or more instances to move into Standby mode. You must specify at least
// one instance ID.
InstanceIds []*string `type:"list"`
// Specifies whether the instances moved to Standby mode count as part of the
// Auto Scaling group's desired capacity. If set, the desired capacity for the
// Auto Scaling group decrements by the number of instances moved to Standby
// mode.
ShouldDecrementDesiredCapacity *bool `type:"boolean" required:"true"`
}
// String returns the string representation
func (s EnterStandbyInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s EnterStandbyInput) GoString() string {
return s.String()
}
type EnterStandbyOutput struct {
_ struct{} `type:"structure"`
// The activities related to moving instances into Standby mode.
Activities []*Activity `type:"list"`
}
// String returns the string representation
func (s EnterStandbyOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s EnterStandbyOutput) GoString() string {
return s.String()
}
type ExecutePolicyInput struct {
_ struct{} `type:"structure"`
// The name or Amazon Resource Name (ARN) of the Auto Scaling group.
AutoScalingGroupName *string `min:"1" type:"string"`
// The breach threshold for the alarm.
//
// This parameter is required if the policy type is StepScaling and not supported
// otherwise.
BreachThreshold *float64 `type:"double"`
// If this parameter is true, Auto Scaling waits for the cooldown period to
// complete before executing the policy. Otherwise, Auto Scaling executes the
// policy without waiting for the cooldown period to complete.
//
// This parameter is not supported if the policy type is StepScaling.
//
// For more information, see Auto Scaling Cooldowns (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/Cooldown.html)
// in the Auto Scaling Developer Guide.
HonorCooldown *bool `type:"boolean"`
// The metric value to compare to BreachThreshold. This enables you to execute
// a policy of type StepScaling and determine which step adjustment to use.
// For example, if the breach threshold is 50 and you want to use a step adjustment
// with a lower bound of 0 and an upper bound of 10, you can set the metric
// value to 59.
//
// If you specify a metric value that doesn't correspond to a step adjustment
// for the policy, the call returns an error.
//
// This parameter is required if the policy type is StepScaling and not supported
// otherwise.
MetricValue *float64 `type:"double"`
// The name or ARN of the policy.
PolicyName *string `min:"1" type:"string" required:"true"`
}
// String returns the string representation
func (s ExecutePolicyInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ExecutePolicyInput) GoString() string {
return s.String()
}
type ExecutePolicyOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s ExecutePolicyOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ExecutePolicyOutput) GoString() string {
return s.String()
}
type ExitStandbyInput struct {
_ struct{} `type:"structure"`
// The name of the Auto Scaling group.
AutoScalingGroupName *string `min:"1" type:"string" required:"true"`
// One or more instance IDs. You must specify at least one instance ID.
InstanceIds []*string `type:"list"`
}
// String returns the string representation
func (s ExitStandbyInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ExitStandbyInput) GoString() string {
return s.String()
}
type ExitStandbyOutput struct {
_ struct{} `type:"structure"`
// The activities related to moving instances out of Standby mode.
Activities []*Activity `type:"list"`
}
// String returns the string representation
func (s ExitStandbyOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ExitStandbyOutput) GoString() string {
return s.String()
}
// Describes a filter.
type Filter struct {
_ struct{} `type:"structure"`
// The name of the filter. The valid values are: "auto-scaling-group", "key",
// "value", and "propagate-at-launch".
Name *string `type:"string"`
// The value of the filter.
Values []*string `type:"list"`
}
// String returns the string representation
func (s Filter) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s Filter) GoString() string {
return s.String()
}
// Describes an Auto Scaling group.
type Group struct {
_ struct{} `type:"structure"`
// The Amazon Resource Name (ARN) of the group.
AutoScalingGroupARN *string `min:"1" type:"string"`
// The name of the group.
AutoScalingGroupName *string `min:"1" type:"string" required:"true"`
// One or more Availability Zones for the group.
AvailabilityZones []*string `min:"1" type:"list" required:"true"`
// The date and time the group was created.
CreatedTime *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"`
// The amount of time, in seconds, after a scaling activity completes before
// another scaling activity can start.
DefaultCooldown *int64 `type:"integer" required:"true"`
// The desired size of the group.
DesiredCapacity *int64 `type:"integer" required:"true"`
// The metrics enabled for the group.
EnabledMetrics []*EnabledMetric `type:"list"`
// The amount of time, in seconds, that Auto Scaling waits before checking the
// health status of an EC2 instance that has come into service.
HealthCheckGracePeriod *int64 `type:"integer"`
// The service to use for the health checks. The valid values are EC2 and ELB.
HealthCheckType *string `min:"1" type:"string" required:"true"`
// The EC2 instances associated with the group.
Instances []*Instance `type:"list"`
// The name of the associated launch configuration.
LaunchConfigurationName *string `min:"1" type:"string"`
// One or more load balancers associated with the group.
LoadBalancerNames []*string `type:"list"`
// The maximum size of the group.
MaxSize *int64 `type:"integer" required:"true"`
// The minimum size of the group.
MinSize *int64 `type:"integer" required:"true"`
// Indicates whether newly launched instances are protected from termination
// by Auto Scaling when scaling in.
NewInstancesProtectedFromScaleIn *bool `type:"boolean"`
// The name of the placement group into which you'll launch your instances,
// if any. For more information, see Placement Groups (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/placement-groups.html)
// in the Amazon Elastic Compute Cloud User Guide.
PlacementGroup *string `min:"1" type:"string"`
// The current state of the group when DeleteAutoScalingGroup is in progress.
Status *string `min:"1" type:"string"`
// The suspended processes associated with the group.
SuspendedProcesses []*SuspendedProcess `type:"list"`
// The tags for the group.
Tags []*TagDescription `type:"list"`
// The termination policies for the group.
TerminationPolicies []*string `type:"list"`
// One or more subnet IDs, if applicable, separated by commas.
//
// If you specify VPCZoneIdentifier and AvailabilityZones, ensure that the
// Availability Zones of the subnets match the values for AvailabilityZones.
VPCZoneIdentifier *string `min:"1" type:"string"`
}
// String returns the string representation
func (s Group) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s Group) GoString() string {
return s.String()
}
// Describes an EC2 instance.
type Instance struct {
_ struct{} `type:"structure"`
// The Availability Zone in which the instance is running.
AvailabilityZone *string `min:"1" type:"string" required:"true"`
// The health status of the instance. "Healthy" means that the instance is healthy
// and should remain in service. "Unhealthy" means that the instance is unhealthy
// and Auto Scaling should terminate and replace it.
HealthStatus *string `min:"1" type:"string" required:"true"`
// The ID of the instance.
InstanceId *string `min:"1" type:"string" required:"true"`
// The launch configuration associated with the instance.
LaunchConfigurationName *string `min:"1" type:"string" required:"true"`
// A description of the current lifecycle state. Note that the Quarantined state
// is not used.
LifecycleState *string `type:"string" required:"true" enum:"LifecycleState"`
// Indicates whether the instance is protected from termination by Auto Scaling
// when scaling in.
ProtectedFromScaleIn *bool `type:"boolean" required:"true"`
}
// String returns the string representation
func (s Instance) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s Instance) GoString() string {
return s.String()
}
// Describes an EC2 instance associated with an Auto Scaling group.
type InstanceDetails struct {
_ struct{} `type:"structure"`
// The name of the Auto Scaling group associated with the instance.
AutoScalingGroupName *string `min:"1" type:"string" required:"true"`
// The Availability Zone for the instance.
AvailabilityZone *string `min:"1" type:"string" required:"true"`
// The health status of this instance. "Healthy" means that the instance is
// healthy and should remain in service. "Unhealthy" means that the instance
// is unhealthy and Auto Scaling should terminate and replace it.
HealthStatus *string `min:"1" type:"string" required:"true"`
// The ID of the instance.
InstanceId *string `min:"1" type:"string" required:"true"`
// The launch configuration associated with the instance.
LaunchConfigurationName *string `min:"1" type:"string" required:"true"`
// The lifecycle state for the instance. For more information, see Auto Scaling
// Lifecycle (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/AutoScalingGroupLifecycle.html)
// in the Auto Scaling Developer Guide.
LifecycleState *string `min:"1" type:"string" required:"true"`
// Indicates whether the instance is protected from termination by Auto Scaling
// when scaling in.
ProtectedFromScaleIn *bool `type:"boolean" required:"true"`
}
// String returns the string representation
func (s InstanceDetails) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s InstanceDetails) GoString() string {
return s.String()
}
// Describes whether instance monitoring is enabled.
type InstanceMonitoring struct {
_ struct{} `type:"structure"`
// If True, instance monitoring is enabled.
Enabled *bool `type:"boolean"`
}
// String returns the string representation
func (s InstanceMonitoring) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s InstanceMonitoring) GoString() string {
return s.String()
}
// Describes a launch configuration.
type LaunchConfiguration struct {
_ struct{} `type:"structure"`
// [EC2-VPC] Indicates whether to assign a public IP address to each instance.
AssociatePublicIpAddress *bool `type:"boolean"`
// A block device mapping, which specifies the block devices for the instance.
BlockDeviceMappings []*BlockDeviceMapping `type:"list"`
// The ID of a ClassicLink-enabled VPC to link your EC2-Classic instances to.
// This parameter can only be used if you are launching EC2-Classic instances.
// For more information, see ClassicLink (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-classiclink.html)
// in the Amazon Elastic Compute Cloud User Guide.
ClassicLinkVPCId *string `min:"1" type:"string"`
// The IDs of one or more security groups for the VPC specified in ClassicLinkVPCId.
// This parameter is required if you specify a ClassicLink-enabled VPC, and
// cannot be used otherwise. For more information, see ClassicLink (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-classiclink.html)
// in the Amazon Elastic Compute Cloud User Guide.
ClassicLinkVPCSecurityGroups []*string `type:"list"`
// The creation date and time for the launch configuration.
CreatedTime *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"`
// Controls whether the instance is optimized for EBS I/O (true) or not (false).
EbsOptimized *bool `type:"boolean"`
// The name or Amazon Resource Name (ARN) of the instance profile associated
// with the IAM role for the instance.
IamInstanceProfile *string `min:"1" type:"string"`
// The ID of the Amazon Machine Image (AMI).
ImageId *string `min:"1" type:"string" required:"true"`
// Controls whether instances in this group are launched with detailed monitoring.
InstanceMonitoring *InstanceMonitoring `type:"structure"`
// The instance type for the instances.
InstanceType *string `min:"1" type:"string" required:"true"`
// The ID of the kernel associated with the AMI.
KernelId *string `min:"1" type:"string"`
// The name of the key pair.
KeyName *string `min:"1" type:"string"`
// The Amazon Resource Name (ARN) of the launch configuration.
LaunchConfigurationARN *string `min:"1" type:"string"`
// The name of the launch configuration.
LaunchConfigurationName *string `min:"1" type:"string" required:"true"`
// The tenancy of the instance, either default or dedicated. An instance with
// dedicated tenancy runs in an isolated, single-tenant hardware and can only
// be launched into a VPC.
PlacementTenancy *string `min:"1" type:"string"`
// The ID of the RAM disk associated with the AMI.
RamdiskId *string `min:"1" type:"string"`
// The security groups to associate with the instances.
SecurityGroups []*string `type:"list"`
// The price to bid when launching Spot Instances.
SpotPrice *string `min:"1" type:"string"`
// The user data available to the instances.
UserData *string `type:"string"`
}
// String returns the string representation
func (s LaunchConfiguration) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s LaunchConfiguration) GoString() string {
return s.String()
}
// Describes a lifecycle hook, which tells Auto Scaling that you want to perform
// an action when an instance launches or terminates. When you have a lifecycle
// hook in place, the Auto Scaling group will either:
//
// Pause the instance after it launches, but before it is put into service
// Pause the instance as it terminates, but before it is fully terminated For
// more information, see Auto Scaling Lifecycle (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/AutoScalingGroupLifecycle.html)
// in the Auto Scaling Developer Guide.
type LifecycleHook struct {
_ struct{} `type:"structure"`
// The name of the Auto Scaling group for the lifecycle hook.
AutoScalingGroupName *string `min:"1" type:"string"`
// Defines the action the Auto Scaling group should take when the lifecycle
// hook timeout elapses or if an unexpected failure occurs. The valid values
// are CONTINUE and ABANDON. The default value is CONTINUE.
DefaultResult *string `type:"string"`
// The maximum time, in seconds, that an instance can remain in a Pending:Wait
// or Terminating:Wait state. The default is 172800 seconds (48 hours).
GlobalTimeout *int64 `type:"integer"`
// The maximum time, in seconds, that can elapse before the lifecycle hook times
// out. The default is 3600 seconds (1 hour). When the lifecycle hook times
// out, Auto Scaling performs the default action. You can prevent the lifecycle
// hook from timing out by calling RecordLifecycleActionHeartbeat.
HeartbeatTimeout *int64 `type:"integer"`
// The name of the lifecycle hook.
LifecycleHookName *string `min:"1" type:"string"`
// The state of the EC2 instance to which you want to attach the lifecycle hook.
// For a list of lifecycle hook types, see DescribeLifecycleHookTypes.
LifecycleTransition *string `type:"string"`
// Additional information that you want to include any time Auto Scaling sends
// a message to the notification target.
NotificationMetadata *string `min:"1" type:"string"`
// The ARN of the notification target that Auto Scaling uses to notify you when
// an instance is in the transition state for the lifecycle hook. This ARN target
// can be either an SQS queue or an SNS topic. The notification message sent
// to the target includes the following:
//
// Lifecycle action token User account ID Name of the Auto Scaling group Lifecycle
// hook name EC2 instance ID Lifecycle transition Notification metadata
NotificationTargetARN *string `min:"1" type:"string"`
// The ARN of the IAM role that allows the Auto Scaling group to publish to
// the specified notification target.
RoleARN *string `min:"1" type:"string"`
}
// String returns the string representation
func (s LifecycleHook) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s LifecycleHook) GoString() string {
return s.String()
}
// Describes the state of a load balancer.
type LoadBalancerState struct {
_ struct{} `type:"structure"`
// The name of the load balancer.
LoadBalancerName *string `min:"1" type:"string"`
// One of the following load balancer states:
//
// Adding - The instances in the group are being registered with the load
// balancer.
//
// Added - All instances in the group are registered with the load balancer.
//
// InService - At least one instance in the group passed an ELB health check.
//
// Removing - The instances are being deregistered from the load balancer.
// If connection draining is enabled, Elastic Load Balancing waits for in-flight
// requests to complete before deregistering the instances.
State *string `min:"1" type:"string"`
}
// String returns the string representation
func (s LoadBalancerState) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s LoadBalancerState) GoString() string {
return s.String()
}
// Describes a metric.
type MetricCollectionType struct {
_ struct{} `type:"structure"`
// One of the following metrics:
//
// GroupMinSize
//
// GroupMaxSize
//
// GroupDesiredCapacity
//
// GroupInServiceInstances
//
// GroupPendingInstances
//
// GroupStandbyInstances
//
// GroupTerminatingInstances
//
// GroupTotalInstances
Metric *string `min:"1" type:"string"`
}
// String returns the string representation
func (s MetricCollectionType) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s MetricCollectionType) GoString() string {
return s.String()
}
// Describes a granularity of a metric.
type MetricGranularityType struct {
_ struct{} `type:"structure"`
// The granularity. The only valid value is 1Minute.
Granularity *string `min:"1" type:"string"`
}
// String returns the string representation
func (s MetricGranularityType) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s MetricGranularityType) GoString() string {
return s.String()
}
// Describes a notification.
type NotificationConfiguration struct {
_ struct{} `type:"structure"`
// The name of the group.
AutoScalingGroupName *string `min:"1" type:"string"`
// One of the following event notification types:
//
// autoscaling:EC2_INSTANCE_LAUNCH
//
// autoscaling:EC2_INSTANCE_LAUNCH_ERROR
//
// autoscaling:EC2_INSTANCE_TERMINATE
//
// autoscaling:EC2_INSTANCE_TERMINATE_ERROR
//
// autoscaling:TEST_NOTIFICATION
NotificationType *string `min:"1" type:"string"`
// The Amazon Resource Name (ARN) of the Amazon Simple Notification Service
// (SNS) topic.
TopicARN *string `min:"1" type:"string"`
}
// String returns the string representation
func (s NotificationConfiguration) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s NotificationConfiguration) GoString() string {
return s.String()
}
// Describes a process type.
//
// For more information, see Auto Scaling Processes (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/US_SuspendResume.html#process-types)
// in the Auto Scaling Developer Guide.
type ProcessType struct {
_ struct{} `type:"structure"`
// One of the following processes:
//
// Launch
//
// Terminate
//
// AddToLoadBalancer
//
// AlarmNotification
//
// AZRebalance
//
// HealthCheck
//
// ReplaceUnhealthy
//
// ScheduledActions
ProcessName *string `min:"1" type:"string" required:"true"`
}
// String returns the string representation
func (s ProcessType) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ProcessType) GoString() string {
return s.String()
}
type PutLifecycleHookInput struct {
_ struct{} `type:"structure"`
// The name of the Auto Scaling group to which you want to assign the lifecycle
// hook.
AutoScalingGroupName *string `min:"1" type:"string" required:"true"`
// Defines the action the Auto Scaling group should take when the lifecycle
// hook timeout elapses or if an unexpected failure occurs. This parameter can
// be either CONTINUE or ABANDON. The default value is ABANDON.
DefaultResult *string `type:"string"`
// The amount of time, in seconds, that can elapse before the lifecycle hook
// times out. When the lifecycle hook times out, Auto Scaling performs the default
// action. You can prevent the lifecycle hook from timing out by calling RecordLifecycleActionHeartbeat.
// The default is 3600 seconds (1 hour).
HeartbeatTimeout *int64 `type:"integer"`
// The name of the lifecycle hook.
LifecycleHookName *string `min:"1" type:"string" required:"true"`
// The instance state to which you want to attach the lifecycle hook. For a
// list of lifecycle hook types, see DescribeLifecycleHookTypes.
//
// This parameter is required for new lifecycle hooks, but optional when updating
// existing hooks.
LifecycleTransition *string `type:"string"`
// Contains additional information that you want to include any time Auto Scaling
// sends a message to the notification target.
NotificationMetadata *string `min:"1" type:"string"`
// The ARN of the notification target that Auto Scaling will use to notify you
// when an instance is in the transition state for the lifecycle hook. This
// target can be either an SQS queue or an SNS topic. If you specify an empty
// string, this overrides the current ARN.
//
// The notification messages sent to the target include the following information:
//
// AutoScalingGroupName. The name of the Auto Scaling group. AccountId. The
// AWS account ID. LifecycleTransition. The lifecycle hook type. LifecycleActionToken.
// The lifecycle action token. EC2InstanceId. The EC2 instance ID. LifecycleHookName.
// The name of the lifecycle hook. NotificationMetadata. User-defined information.
// This operation uses the JSON format when sending notifications to an Amazon
// SQS queue, and an email key/value pair format when sending notifications
// to an Amazon SNS topic.
//
// When you specify a notification target, Auto Scaling sends it a test message.
// Test messages contains the following additional key/value pair: "Event":
// "autoscaling:TEST_NOTIFICATION".
NotificationTargetARN *string `type:"string"`
// The ARN of the IAM role that allows the Auto Scaling group to publish to
// the specified notification target.
//
// This parameter is required for new lifecycle hooks, but optional when updating
// existing hooks.
RoleARN *string `min:"1" type:"string"`
}
// String returns the string representation
func (s PutLifecycleHookInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s PutLifecycleHookInput) GoString() string {
return s.String()
}
type PutLifecycleHookOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s PutLifecycleHookOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s PutLifecycleHookOutput) GoString() string {
return s.String()
}
type PutNotificationConfigurationInput struct {
_ struct{} `type:"structure"`
// The name of the Auto Scaling group.
AutoScalingGroupName *string `min:"1" type:"string" required:"true"`
// The type of event that will cause the notification to be sent. For details
// about notification types supported by Auto Scaling, see DescribeAutoScalingNotificationTypes.
NotificationTypes []*string `type:"list" required:"true"`
// The Amazon Resource Name (ARN) of the Amazon Simple Notification Service
// (SNS) topic.
TopicARN *string `min:"1" type:"string" required:"true"`
}
// String returns the string representation
func (s PutNotificationConfigurationInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s PutNotificationConfigurationInput) GoString() string {
return s.String()
}
type PutNotificationConfigurationOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s PutNotificationConfigurationOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s PutNotificationConfigurationOutput) GoString() string {
return s.String()
}
type PutScalingPolicyInput struct {
_ struct{} `type:"structure"`
// The adjustment type. Valid values are ChangeInCapacity, ExactCapacity, and
// PercentChangeInCapacity.
//
// For more information, see Dynamic Scaling (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/as-scale-based-on-demand.html)
// in the Auto Scaling Developer Guide.
AdjustmentType *string `min:"1" type:"string" required:"true"`
// The name or ARN of the group.
AutoScalingGroupName *string `min:"1" type:"string" required:"true"`
// The amount of time, in seconds, after a scaling activity completes and before
// the next scaling activity can start. If this parameter is not specified,
// the default cooldown period for the group applies.
//
// This parameter is not supported unless the policy type is SimpleScaling.
//
// For more information, see Auto Scaling Cooldowns (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/Cooldown.html)
// in the Auto Scaling Developer Guide.
Cooldown *int64 `type:"integer"`
// The estimated time, in seconds, until a newly launched instance can contribute
// to the CloudWatch metrics. The default is to use the value specified for
// the default cooldown period for the group.
//
// This parameter is not supported if the policy type is SimpleScaling.
EstimatedInstanceWarmup *int64 `type:"integer"`
// The aggregation type for the CloudWatch metrics. Valid values are Minimum,
// Maximum, and Average. If the aggregation type is null, the value is treated
// as Average.
//
// This parameter is not supported if the policy type is SimpleScaling.
MetricAggregationType *string `min:"1" type:"string"`
// The minimum number of instances to scale. If the value of AdjustmentType
// is PercentChangeInCapacity, the scaling policy changes the DesiredCapacity
// of the Auto Scaling group by at least this many instances. Otherwise, the
// error is ValidationError.
MinAdjustmentMagnitude *int64 `type:"integer"`
// Available for backward compatibility. Use MinAdjustmentMagnitude instead.
MinAdjustmentStep *int64 `deprecated:"true" type:"integer"`
// The name of the policy.
PolicyName *string `min:"1" type:"string" required:"true"`
// The policy type. Valid values are SimpleScaling and StepScaling. If the policy
// type is null, the value is treated as SimpleScaling.
PolicyType *string `min:"1" type:"string"`
// The amount by which to scale, based on the specified adjustment type. A positive
// value adds to the current capacity while a negative number removes from the
// current capacity.
//
// This parameter is required if the policy type is SimpleScaling and not supported
// otherwise.
ScalingAdjustment *int64 `type:"integer"`
// A set of adjustments that enable you to scale based on the size of the alarm
// breach.
//
// This parameter is required if the policy type is StepScaling and not supported
// otherwise.
StepAdjustments []*StepAdjustment `type:"list"`
}
// String returns the string representation
func (s PutScalingPolicyInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s PutScalingPolicyInput) GoString() string {
return s.String()
}
type PutScalingPolicyOutput struct {
_ struct{} `type:"structure"`
// The Amazon Resource Name (ARN) of the policy.
PolicyARN *string `min:"1" type:"string"`
}
// String returns the string representation
func (s PutScalingPolicyOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s PutScalingPolicyOutput) GoString() string {
return s.String()
}
type PutScheduledUpdateGroupActionInput struct {
_ struct{} `type:"structure"`
// The name or Amazon Resource Name (ARN) of the Auto Scaling group.
AutoScalingGroupName *string `min:"1" type:"string" required:"true"`
// The number of EC2 instances that should be running in the group.
DesiredCapacity *int64 `type:"integer"`
// The time for this action to end.
EndTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
// The maximum size for the Auto Scaling group.
MaxSize *int64 `type:"integer"`
// The minimum size for the Auto Scaling group.
MinSize *int64 `type:"integer"`
// The time when recurring future actions will start. Start time is specified
// by the user following the Unix cron syntax format. For more information,
// see Cron (http://en.wikipedia.org/wiki/Cron) in Wikipedia.
//
// When StartTime and EndTime are specified with Recurrence, they form the
// boundaries of when the recurring action will start and stop.
Recurrence *string `min:"1" type:"string"`
// The name of this scaling action.
ScheduledActionName *string `min:"1" type:"string" required:"true"`
// The time for this action to start, in "YYYY-MM-DDThh:mm:ssZ" format in UTC/GMT
// only (for example, 2014-06-01T00:00:00Z).
//
// If you try to schedule your action in the past, Auto Scaling returns an
// error message.
//
// When StartTime and EndTime are specified with Recurrence, they form the
// boundaries of when the recurring action starts and stops.
StartTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
// This parameter is deprecated.
Time *time.Time `type:"timestamp" timestampFormat:"iso8601"`
}
// String returns the string representation
func (s PutScheduledUpdateGroupActionInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s PutScheduledUpdateGroupActionInput) GoString() string {
return s.String()
}
type PutScheduledUpdateGroupActionOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s PutScheduledUpdateGroupActionOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s PutScheduledUpdateGroupActionOutput) GoString() string {
return s.String()
}
type RecordLifecycleActionHeartbeatInput struct {
_ struct{} `type:"structure"`
// The name of the Auto Scaling group for the hook.
AutoScalingGroupName *string `min:"1" type:"string" required:"true"`
// The ID of the instance.
InstanceId *string `min:"1" type:"string"`
// A token that uniquely identifies a specific lifecycle action associated with
// an instance. Auto Scaling sends this token to the notification target you
// specified when you created the lifecycle hook.
LifecycleActionToken *string `min:"36" type:"string"`
// The name of the lifecycle hook.
LifecycleHookName *string `min:"1" type:"string" required:"true"`
}
// String returns the string representation
func (s RecordLifecycleActionHeartbeatInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s RecordLifecycleActionHeartbeatInput) GoString() string {
return s.String()
}
type RecordLifecycleActionHeartbeatOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s RecordLifecycleActionHeartbeatOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s RecordLifecycleActionHeartbeatOutput) GoString() string {
return s.String()
}
type ResumeProcessesOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s ResumeProcessesOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ResumeProcessesOutput) GoString() string {
return s.String()
}
// Describes a scaling policy.
type ScalingPolicy struct {
_ struct{} `type:"structure"`
// The adjustment type, which specifies how ScalingAdjustment is interpreted.
// Valid values are ChangeInCapacity, ExactCapacity, and PercentChangeInCapacity.
AdjustmentType *string `min:"1" type:"string"`
// The CloudWatch alarms related to the policy.
Alarms []*Alarm `type:"list"`
// The name of the Auto Scaling group associated with this scaling policy.
AutoScalingGroupName *string `min:"1" type:"string"`
// The amount of time, in seconds, after a scaling activity completes before
// any further trigger-related scaling activities can start.
Cooldown *int64 `type:"integer"`
// The estimated time, in seconds, until a newly launched instance can contribute
// to the CloudWatch metrics.
EstimatedInstanceWarmup *int64 `type:"integer"`
// The aggregation type for the CloudWatch metrics. Valid values are Minimum,
// Maximum, and Average.
MetricAggregationType *string `min:"1" type:"string"`
// The minimum number of instances to scale. If the value of AdjustmentType
// is PercentChangeInCapacity, the scaling policy changes the DesiredCapacity
// of the Auto Scaling group by at least this many instances. Otherwise, the
// error is ValidationError.
MinAdjustmentMagnitude *int64 `type:"integer"`
// Available for backward compatibility. Use MinAdjustmentMagnitude instead.
MinAdjustmentStep *int64 `deprecated:"true" type:"integer"`
// The Amazon Resource Name (ARN) of the policy.
PolicyARN *string `min:"1" type:"string"`
// The name of the scaling policy.
PolicyName *string `min:"1" type:"string"`
// The policy type. Valid values are SimpleScaling and StepScaling.
PolicyType *string `min:"1" type:"string"`
// The amount by which to scale, based on the specified adjustment type. A positive
// value adds to the current capacity while a negative number removes from the
// current capacity.
ScalingAdjustment *int64 `type:"integer"`
// A set of adjustments that enable you to scale based on the size of the alarm
// breach.
StepAdjustments []*StepAdjustment `type:"list"`
}
// String returns the string representation
func (s ScalingPolicy) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ScalingPolicy) GoString() string {
return s.String()
}
type ScalingProcessQuery struct {
_ struct{} `type:"structure"`
// The name or Amazon Resource Name (ARN) of the Auto Scaling group.
AutoScalingGroupName *string `min:"1" type:"string" required:"true"`
// One or more of the following processes:
//
// Launch
//
// Terminate
//
// HealthCheck
//
// ReplaceUnhealthy
//
// AZRebalance
//
// AlarmNotification
//
// ScheduledActions
//
// AddToLoadBalancer
ScalingProcesses []*string `type:"list"`
}
// String returns the string representation
func (s ScalingProcessQuery) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ScalingProcessQuery) GoString() string {
return s.String()
}
// Describes a scheduled update to an Auto Scaling group.
type ScheduledUpdateGroupAction struct {
_ struct{} `type:"structure"`
// The name of the group.
AutoScalingGroupName *string `min:"1" type:"string"`
// The number of instances you prefer to maintain in the group.
DesiredCapacity *int64 `type:"integer"`
// The date and time that the action is scheduled to end. This date and time
// can be up to one month in the future.
EndTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
// The maximum size of the group.
MaxSize *int64 `type:"integer"`
// The minimum size of the group.
MinSize *int64 `type:"integer"`
// The recurring schedule for the action.
Recurrence *string `min:"1" type:"string"`
// The Amazon Resource Name (ARN) of the scheduled action.
ScheduledActionARN *string `min:"1" type:"string"`
// The name of the scheduled action.
ScheduledActionName *string `min:"1" type:"string"`
// The date and time that the action is scheduled to begin. This date and time
// can be up to one month in the future.
//
// When StartTime and EndTime are specified with Recurrence, they form the
// boundaries of when the recurring action will start and stop.
StartTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
// This parameter is deprecated.
Time *time.Time `type:"timestamp" timestampFormat:"iso8601"`
}
// String returns the string representation
func (s ScheduledUpdateGroupAction) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ScheduledUpdateGroupAction) GoString() string {
return s.String()
}
type SetDesiredCapacityInput struct {
_ struct{} `type:"structure"`
// The name of the Auto Scaling group.
AutoScalingGroupName *string `min:"1" type:"string" required:"true"`
// The number of EC2 instances that should be running in the Auto Scaling group.
DesiredCapacity *int64 `type:"integer" required:"true"`
// By default, SetDesiredCapacity overrides any cooldown period associated with
// the Auto Scaling group. Specify True to make Auto Scaling to wait for the
// cool-down period associated with the Auto Scaling group to complete before
// initiating a scaling activity to set your Auto Scaling group to its new capacity.
HonorCooldown *bool `type:"boolean"`
}
// String returns the string representation
func (s SetDesiredCapacityInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s SetDesiredCapacityInput) GoString() string {
return s.String()
}
type SetDesiredCapacityOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s SetDesiredCapacityOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s SetDesiredCapacityOutput) GoString() string {
return s.String()
}
type SetInstanceHealthInput struct {
_ struct{} `type:"structure"`
// The health status of the instance. Set to Healthy if you want the instance
// to remain in service. Set to Unhealthy if you want the instance to be out
// of service. Auto Scaling will terminate and replace the unhealthy instance.
HealthStatus *string `min:"1" type:"string" required:"true"`
// The ID of the instance.
InstanceId *string `min:"1" type:"string" required:"true"`
// If the Auto Scaling group of the specified instance has a HealthCheckGracePeriod
// specified for the group, by default, this call will respect the grace period.
// Set this to False, if you do not want the call to respect the grace period
// associated with the group.
//
// For more information, see the description of the health check grace period
// for CreateAutoScalingGroup.
ShouldRespectGracePeriod *bool `type:"boolean"`
}
// String returns the string representation
func (s SetInstanceHealthInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s SetInstanceHealthInput) GoString() string {
return s.String()
}
type SetInstanceHealthOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s SetInstanceHealthOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s SetInstanceHealthOutput) GoString() string {
return s.String()
}
type SetInstanceProtectionInput struct {
_ struct{} `type:"structure"`
// The name of the group.
AutoScalingGroupName *string `min:"1" type:"string" required:"true"`
// One or more instance IDs.
InstanceIds []*string `type:"list" required:"true"`
// Indicates whether the instance is protected from termination by Auto Scaling
// when scaling in.
ProtectedFromScaleIn *bool `type:"boolean" required:"true"`
}
// String returns the string representation
func (s SetInstanceProtectionInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s SetInstanceProtectionInput) GoString() string {
return s.String()
}
type SetInstanceProtectionOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s SetInstanceProtectionOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s SetInstanceProtectionOutput) GoString() string {
return s.String()
}
// Describes an adjustment based on the difference between the value of the
// aggregated CloudWatch metric and the breach threshold that you've defined
// for the alarm.
//
// For the following examples, suppose that you have an alarm with a breach
// threshold of 50:
//
// If you want the adjustment to be triggered when the metric is greater
// than or equal to 50 and less than 60, specify a lower bound of 0 and an upper
// bound of 10.
//
// If you want the adjustment to be triggered when the metric is greater
// than 40 and less than or equal to 50, specify a lower bound of -10 and an
// upper bound of 0.
//
// There are a few rules for the step adjustments for your step policy:
//
// The ranges of your step adjustments can't overlap or have a gap.
//
// At most one step adjustment can have a null lower bound. If one step adjustment
// has a negative lower bound, then there must be a step adjustment with a null
// lower bound.
//
// At most one step adjustment can have a null upper bound. If one step adjustment
// has a positive upper bound, then there must be a step adjustment with a null
// upper bound.
//
// The upper and lower bound can't be null in the same step adjustment.
type StepAdjustment struct {
_ struct{} `type:"structure"`
// The lower bound for the difference between the alarm threshold and the CloudWatch
// metric. If the metric value is above the breach threshold, the lower bound
// is inclusive (the metric must be greater than or equal to the threshold plus
// the lower bound). Otherwise, it is exclusive (the metric must be greater
// than the threshold plus the lower bound). A null value indicates negative
// infinity.
MetricIntervalLowerBound *float64 `type:"double"`
// The upper bound for the difference between the alarm threshold and the CloudWatch
// metric. If the metric value is above the breach threshold, the upper bound
// is exclusive (the metric must be less than the threshold plus the upper bound).
// Otherwise, it is inclusive (the metric must be less than or equal to the
// threshold plus the upper bound). A null value indicates positive infinity.
//
// The upper bound must be greater than the lower bound.
MetricIntervalUpperBound *float64 `type:"double"`
// The amount by which to scale, based on the specified adjustment type. A positive
// value adds to the current capacity while a negative number removes from the
// current capacity.
ScalingAdjustment *int64 `type:"integer" required:"true"`
}
// String returns the string representation
func (s StepAdjustment) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s StepAdjustment) GoString() string {
return s.String()
}
type SuspendProcessesOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s SuspendProcessesOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s SuspendProcessesOutput) GoString() string {
return s.String()
}
// Describes an Auto Scaling process that has been suspended. For more information,
// see ProcessType.
type SuspendedProcess struct {
_ struct{} `type:"structure"`
// The name of the suspended process.
ProcessName *string `min:"1" type:"string"`
// The reason that the process was suspended.
SuspensionReason *string `min:"1" type:"string"`
}
// String returns the string representation
func (s SuspendedProcess) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s SuspendedProcess) GoString() string {
return s.String()
}
// Describes a tag for an Auto Scaling group.
type Tag struct {
_ struct{} `type:"structure"`
// The tag key.
Key *string `min:"1" type:"string" required:"true"`
// Determines whether the tag is added to new instances as they are launched
// in the group.
PropagateAtLaunch *bool `type:"boolean"`
// The name of the group.
ResourceId *string `type:"string"`
// The type of resource. The only supported value is auto-scaling-group.
ResourceType *string `type:"string"`
// The tag value.
Value *string `type:"string"`
}
// String returns the string representation
func (s Tag) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s Tag) GoString() string {
return s.String()
}
// Describes a tag for an Auto Scaling group.
type TagDescription struct {
_ struct{} `type:"structure"`
// The tag key.
Key *string `min:"1" type:"string"`
// Determines whether the tag is added to new instances as they are launched
// in the group.
PropagateAtLaunch *bool `type:"boolean"`
// The name of the group.
ResourceId *string `type:"string"`
// The type of resource. The only supported value is auto-scaling-group.
ResourceType *string `type:"string"`
// The tag value.
Value *string `type:"string"`
}
// String returns the string representation
func (s TagDescription) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s TagDescription) GoString() string {
return s.String()
}
type TerminateInstanceInAutoScalingGroupInput struct {
_ struct{} `type:"structure"`
// The ID of the instance.
InstanceId *string `min:"1" type:"string" required:"true"`
// If true, terminating the instance also decrements the size of the Auto Scaling
// group.
ShouldDecrementDesiredCapacity *bool `type:"boolean" required:"true"`
}
// String returns the string representation
func (s TerminateInstanceInAutoScalingGroupInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s TerminateInstanceInAutoScalingGroupInput) GoString() string {
return s.String()
}
type TerminateInstanceInAutoScalingGroupOutput struct {
_ struct{} `type:"structure"`
// A scaling activity.
Activity *Activity `type:"structure"`
}
// String returns the string representation
func (s TerminateInstanceInAutoScalingGroupOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s TerminateInstanceInAutoScalingGroupOutput) GoString() string {
return s.String()
}
type UpdateAutoScalingGroupInput struct {
_ struct{} `type:"structure"`
// The name of the Auto Scaling group.
AutoScalingGroupName *string `min:"1" type:"string" required:"true"`
// One or more Availability Zones for the group.
AvailabilityZones []*string `min:"1" type:"list"`
// The amount of time, in seconds, after a scaling activity completes before
// another scaling activity can start. The default is 300.
//
// For more information, see Auto Scaling Cooldowns (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/Cooldown.html)
// in the Auto Scaling Developer Guide.
DefaultCooldown *int64 `type:"integer"`
// The number of EC2 instances that should be running in the Auto Scaling group.
// This number must be greater than or equal to the minimum size of the group
// and less than or equal to the maximum size of the group.
DesiredCapacity *int64 `type:"integer"`
// The amount of time, in seconds, that Auto Scaling waits before checking the
// health status of an EC2 instance that has come into service. The default
// is 300.
//
// For more information, see Health Checks (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/healthcheck.html)
// in the Auto Scaling Developer Guide.
HealthCheckGracePeriod *int64 `type:"integer"`
// The service to use for the health checks. The valid values are EC2 and ELB.
HealthCheckType *string `min:"1" type:"string"`
// The name of the launch configuration.
LaunchConfigurationName *string `min:"1" type:"string"`
// The maximum size of the Auto Scaling group.
MaxSize *int64 `type:"integer"`
// The minimum size of the Auto Scaling group.
MinSize *int64 `type:"integer"`
// Indicates whether newly launched instances are protected from termination
// by Auto Scaling when scaling in.
NewInstancesProtectedFromScaleIn *bool `type:"boolean"`
// The name of the placement group into which you'll launch your instances,
// if any. For more information, see Placement Groups (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/placement-groups.html)
// in the Amazon Elastic Compute Cloud User Guide.
PlacementGroup *string `min:"1" type:"string"`
// A standalone termination policy or a list of termination policies used to
// select the instance to terminate. The policies are executed in the order
// that they are listed.
//
// For more information, see Controlling Which Instances Auto Scaling Terminates
// During Scale In (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/AutoScalingBehavior.InstanceTermination.html)
// in the Auto Scaling Developer Guide.
TerminationPolicies []*string `type:"list"`
// The ID of the subnet, if you are launching into a VPC. You can specify several
// subnets in a comma-separated list.
//
// When you specify VPCZoneIdentifier with AvailabilityZones, ensure that the
// subnets' Availability Zones match the values you specify for AvailabilityZones.
//
// For more information, see Launching Auto Scaling Instances in a VPC (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/asg-in-vpc.html)
// in the Auto Scaling Developer Guide.
VPCZoneIdentifier *string `min:"1" type:"string"`
}
// String returns the string representation
func (s UpdateAutoScalingGroupInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s UpdateAutoScalingGroupInput) GoString() string {
return s.String()
}
type UpdateAutoScalingGroupOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s UpdateAutoScalingGroupOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s UpdateAutoScalingGroupOutput) GoString() string {
return s.String()
}
const (
// @enum LifecycleState
LifecycleStatePending = "Pending"
// @enum LifecycleState
LifecycleStatePendingWait = "Pending:Wait"
// @enum LifecycleState
LifecycleStatePendingProceed = "Pending:Proceed"
// @enum LifecycleState
LifecycleStateQuarantined = "Quarantined"
// @enum LifecycleState
LifecycleStateInService = "InService"
// @enum LifecycleState
LifecycleStateTerminating = "Terminating"
// @enum LifecycleState
LifecycleStateTerminatingWait = "Terminating:Wait"
// @enum LifecycleState
LifecycleStateTerminatingProceed = "Terminating:Proceed"
// @enum LifecycleState
LifecycleStateTerminated = "Terminated"
// @enum LifecycleState
LifecycleStateDetaching = "Detaching"
// @enum LifecycleState
LifecycleStateDetached = "Detached"
// @enum LifecycleState
LifecycleStateEnteringStandby = "EnteringStandby"
// @enum LifecycleState
LifecycleStateStandby = "Standby"
)
const (
// @enum ScalingActivityStatusCode
ScalingActivityStatusCodePendingSpotBidPlacement = "PendingSpotBidPlacement"
// @enum ScalingActivityStatusCode
ScalingActivityStatusCodeWaitingForSpotInstanceRequestId = "WaitingForSpotInstanceRequestId"
// @enum ScalingActivityStatusCode
ScalingActivityStatusCodeWaitingForSpotInstanceId = "WaitingForSpotInstanceId"
// @enum ScalingActivityStatusCode
ScalingActivityStatusCodeWaitingForInstanceId = "WaitingForInstanceId"
// @enum ScalingActivityStatusCode
ScalingActivityStatusCodePreInService = "PreInService"
// @enum ScalingActivityStatusCode
ScalingActivityStatusCodeInProgress = "InProgress"
// @enum ScalingActivityStatusCode
ScalingActivityStatusCodeWaitingForElbconnectionDraining = "WaitingForELBConnectionDraining"
// @enum ScalingActivityStatusCode
ScalingActivityStatusCodeMidLifecycleAction = "MidLifecycleAction"
// @enum ScalingActivityStatusCode
ScalingActivityStatusCodeWaitingForInstanceWarmup = "WaitingForInstanceWarmup"
// @enum ScalingActivityStatusCode
ScalingActivityStatusCodeSuccessful = "Successful"
// @enum ScalingActivityStatusCode
ScalingActivityStatusCodeFailed = "Failed"
// @enum ScalingActivityStatusCode
ScalingActivityStatusCodeCancelled = "Cancelled"
)
|