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
|
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
// Package emr provides a client for Amazon Elastic MapReduce.
package emr
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/jsonrpc"
)
const opAddInstanceGroups = "AddInstanceGroups"
// AddInstanceGroupsRequest generates a request for the AddInstanceGroups operation.
func (c *EMR) AddInstanceGroupsRequest(input *AddInstanceGroupsInput) (req *request.Request, output *AddInstanceGroupsOutput) {
op := &request.Operation{
Name: opAddInstanceGroups,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &AddInstanceGroupsInput{}
}
req = c.newRequest(op, input, output)
output = &AddInstanceGroupsOutput{}
req.Data = output
return
}
// AddInstanceGroups adds an instance group to a running cluster.
func (c *EMR) AddInstanceGroups(input *AddInstanceGroupsInput) (*AddInstanceGroupsOutput, error) {
req, out := c.AddInstanceGroupsRequest(input)
err := req.Send()
return out, err
}
const opAddJobFlowSteps = "AddJobFlowSteps"
// AddJobFlowStepsRequest generates a request for the AddJobFlowSteps operation.
func (c *EMR) AddJobFlowStepsRequest(input *AddJobFlowStepsInput) (req *request.Request, output *AddJobFlowStepsOutput) {
op := &request.Operation{
Name: opAddJobFlowSteps,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &AddJobFlowStepsInput{}
}
req = c.newRequest(op, input, output)
output = &AddJobFlowStepsOutput{}
req.Data = output
return
}
// AddJobFlowSteps adds new steps to a running job flow. A maximum of 256 steps
// are allowed in each job flow.
//
// If your job flow is long-running (such as a Hive data warehouse) or complex,
// you may require more than 256 steps to process your data. You can bypass
// the 256-step limitation in various ways, including using the SSH shell to
// connect to the master node and submitting queries directly to the software
// running on the master node, such as Hive and Hadoop. For more information
// on how to do this, go to Add More than 256 Steps to a Job Flow (http://docs.aws.amazon.com/ElasticMapReduce/latest/DeveloperGuide/AddMoreThan256Steps.html)
// in the Amazon Elastic MapReduce Developer's Guide.
//
// A step specifies the location of a JAR file stored either on the master
// node of the job flow or in Amazon S3. Each step is performed by the main
// function of the main class of the JAR file. The main class can be specified
// either in the manifest of the JAR or by using the MainFunction parameter
// of the step.
//
// Elastic MapReduce executes each step in the order listed. For a step to
// be considered complete, the main function must exit with a zero exit code
// and all Hadoop jobs started while the step was running must have completed
// and run successfully.
//
// You can only add steps to a job flow that is in one of the following states:
// STARTING, BOOTSTRAPPING, RUNNING, or WAITING.
func (c *EMR) AddJobFlowSteps(input *AddJobFlowStepsInput) (*AddJobFlowStepsOutput, error) {
req, out := c.AddJobFlowStepsRequest(input)
err := req.Send()
return out, err
}
const opAddTags = "AddTags"
// AddTagsRequest generates a request for the AddTags operation.
func (c *EMR) AddTagsRequest(input *AddTagsInput) (req *request.Request, output *AddTagsOutput) {
op := &request.Operation{
Name: opAddTags,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &AddTagsInput{}
}
req = c.newRequest(op, input, output)
output = &AddTagsOutput{}
req.Data = output
return
}
// Adds tags to an Amazon EMR resource. Tags make it easier to associate clusters
// in various ways, such as grouping clusters to track your Amazon EMR resource
// allocation costs. For more information, see Tagging Amazon EMR Resources
// (http://docs.aws.amazon.com/ElasticMapReduce/latest/DeveloperGuide/emr-plan-tags.html).
func (c *EMR) AddTags(input *AddTagsInput) (*AddTagsOutput, error) {
req, out := c.AddTagsRequest(input)
err := req.Send()
return out, err
}
const opDescribeCluster = "DescribeCluster"
// DescribeClusterRequest generates a request for the DescribeCluster operation.
func (c *EMR) DescribeClusterRequest(input *DescribeClusterInput) (req *request.Request, output *DescribeClusterOutput) {
op := &request.Operation{
Name: opDescribeCluster,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DescribeClusterInput{}
}
req = c.newRequest(op, input, output)
output = &DescribeClusterOutput{}
req.Data = output
return
}
// Provides cluster-level details including status, hardware and software configuration,
// VPC settings, and so on. For information about the cluster steps, see ListSteps.
func (c *EMR) DescribeCluster(input *DescribeClusterInput) (*DescribeClusterOutput, error) {
req, out := c.DescribeClusterRequest(input)
err := req.Send()
return out, err
}
const opDescribeJobFlows = "DescribeJobFlows"
// DescribeJobFlowsRequest generates a request for the DescribeJobFlows operation.
func (c *EMR) DescribeJobFlowsRequest(input *DescribeJobFlowsInput) (req *request.Request, output *DescribeJobFlowsOutput) {
if c.Client.Config.Logger != nil {
c.Client.Config.Logger.Log("This operation, DescribeJobFlows, has been deprecated")
}
op := &request.Operation{
Name: opDescribeJobFlows,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DescribeJobFlowsInput{}
}
req = c.newRequest(op, input, output)
output = &DescribeJobFlowsOutput{}
req.Data = output
return
}
// This API is deprecated and will eventually be removed. We recommend you use
// ListClusters, DescribeCluster, ListSteps, ListInstanceGroups and ListBootstrapActions
// instead.
//
// DescribeJobFlows returns a list of job flows that match all of the supplied
// parameters. The parameters can include a list of job flow IDs, job flow states,
// and restrictions on job flow creation date and time.
//
// Regardless of supplied parameters, only job flows created within the last
// two months are returned.
//
// If no parameters are supplied, then job flows matching either of the following
// criteria are returned:
//
// Job flows created and completed in the last two weeks Job flows created
// within the last two months that are in one of the following states: RUNNING,
// WAITING, SHUTTING_DOWN, STARTING Amazon Elastic MapReduce can return a
// maximum of 512 job flow descriptions.
func (c *EMR) DescribeJobFlows(input *DescribeJobFlowsInput) (*DescribeJobFlowsOutput, error) {
req, out := c.DescribeJobFlowsRequest(input)
err := req.Send()
return out, err
}
const opDescribeStep = "DescribeStep"
// DescribeStepRequest generates a request for the DescribeStep operation.
func (c *EMR) DescribeStepRequest(input *DescribeStepInput) (req *request.Request, output *DescribeStepOutput) {
op := &request.Operation{
Name: opDescribeStep,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DescribeStepInput{}
}
req = c.newRequest(op, input, output)
output = &DescribeStepOutput{}
req.Data = output
return
}
// Provides more detail about the cluster step.
func (c *EMR) DescribeStep(input *DescribeStepInput) (*DescribeStepOutput, error) {
req, out := c.DescribeStepRequest(input)
err := req.Send()
return out, err
}
const opListBootstrapActions = "ListBootstrapActions"
// ListBootstrapActionsRequest generates a request for the ListBootstrapActions operation.
func (c *EMR) ListBootstrapActionsRequest(input *ListBootstrapActionsInput) (req *request.Request, output *ListBootstrapActionsOutput) {
op := &request.Operation{
Name: opListBootstrapActions,
HTTPMethod: "POST",
HTTPPath: "/",
Paginator: &request.Paginator{
InputTokens: []string{"Marker"},
OutputTokens: []string{"Marker"},
LimitToken: "",
TruncationToken: "",
},
}
if input == nil {
input = &ListBootstrapActionsInput{}
}
req = c.newRequest(op, input, output)
output = &ListBootstrapActionsOutput{}
req.Data = output
return
}
// Provides information about the bootstrap actions associated with a cluster.
func (c *EMR) ListBootstrapActions(input *ListBootstrapActionsInput) (*ListBootstrapActionsOutput, error) {
req, out := c.ListBootstrapActionsRequest(input)
err := req.Send()
return out, err
}
func (c *EMR) ListBootstrapActionsPages(input *ListBootstrapActionsInput, fn func(p *ListBootstrapActionsOutput, lastPage bool) (shouldContinue bool)) error {
page, _ := c.ListBootstrapActionsRequest(input)
page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
return page.EachPage(func(p interface{}, lastPage bool) bool {
return fn(p.(*ListBootstrapActionsOutput), lastPage)
})
}
const opListClusters = "ListClusters"
// ListClustersRequest generates a request for the ListClusters operation.
func (c *EMR) ListClustersRequest(input *ListClustersInput) (req *request.Request, output *ListClustersOutput) {
op := &request.Operation{
Name: opListClusters,
HTTPMethod: "POST",
HTTPPath: "/",
Paginator: &request.Paginator{
InputTokens: []string{"Marker"},
OutputTokens: []string{"Marker"},
LimitToken: "",
TruncationToken: "",
},
}
if input == nil {
input = &ListClustersInput{}
}
req = c.newRequest(op, input, output)
output = &ListClustersOutput{}
req.Data = output
return
}
// Provides the status of all clusters visible to this AWS account. Allows you
// to filter the list of clusters based on certain criteria; for example, filtering
// by cluster creation date and time or by status. This call returns a maximum
// of 50 clusters per call, but returns a marker to track the paging of the
// cluster list across multiple ListClusters calls.
func (c *EMR) ListClusters(input *ListClustersInput) (*ListClustersOutput, error) {
req, out := c.ListClustersRequest(input)
err := req.Send()
return out, err
}
func (c *EMR) ListClustersPages(input *ListClustersInput, fn func(p *ListClustersOutput, lastPage bool) (shouldContinue bool)) error {
page, _ := c.ListClustersRequest(input)
page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
return page.EachPage(func(p interface{}, lastPage bool) bool {
return fn(p.(*ListClustersOutput), lastPage)
})
}
const opListInstanceGroups = "ListInstanceGroups"
// ListInstanceGroupsRequest generates a request for the ListInstanceGroups operation.
func (c *EMR) ListInstanceGroupsRequest(input *ListInstanceGroupsInput) (req *request.Request, output *ListInstanceGroupsOutput) {
op := &request.Operation{
Name: opListInstanceGroups,
HTTPMethod: "POST",
HTTPPath: "/",
Paginator: &request.Paginator{
InputTokens: []string{"Marker"},
OutputTokens: []string{"Marker"},
LimitToken: "",
TruncationToken: "",
},
}
if input == nil {
input = &ListInstanceGroupsInput{}
}
req = c.newRequest(op, input, output)
output = &ListInstanceGroupsOutput{}
req.Data = output
return
}
// Provides all available details about the instance groups in a cluster.
func (c *EMR) ListInstanceGroups(input *ListInstanceGroupsInput) (*ListInstanceGroupsOutput, error) {
req, out := c.ListInstanceGroupsRequest(input)
err := req.Send()
return out, err
}
func (c *EMR) ListInstanceGroupsPages(input *ListInstanceGroupsInput, fn func(p *ListInstanceGroupsOutput, lastPage bool) (shouldContinue bool)) error {
page, _ := c.ListInstanceGroupsRequest(input)
page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
return page.EachPage(func(p interface{}, lastPage bool) bool {
return fn(p.(*ListInstanceGroupsOutput), lastPage)
})
}
const opListInstances = "ListInstances"
// ListInstancesRequest generates a request for the ListInstances operation.
func (c *EMR) ListInstancesRequest(input *ListInstancesInput) (req *request.Request, output *ListInstancesOutput) {
op := &request.Operation{
Name: opListInstances,
HTTPMethod: "POST",
HTTPPath: "/",
Paginator: &request.Paginator{
InputTokens: []string{"Marker"},
OutputTokens: []string{"Marker"},
LimitToken: "",
TruncationToken: "",
},
}
if input == nil {
input = &ListInstancesInput{}
}
req = c.newRequest(op, input, output)
output = &ListInstancesOutput{}
req.Data = output
return
}
// Provides information about the cluster instances that Amazon EMR provisions
// on behalf of a user when it creates the cluster. For example, this operation
// indicates when the EC2 instances reach the Ready state, when instances become
// available to Amazon EMR to use for jobs, and the IP addresses for cluster
// instances, etc.
func (c *EMR) ListInstances(input *ListInstancesInput) (*ListInstancesOutput, error) {
req, out := c.ListInstancesRequest(input)
err := req.Send()
return out, err
}
func (c *EMR) ListInstancesPages(input *ListInstancesInput, fn func(p *ListInstancesOutput, lastPage bool) (shouldContinue bool)) error {
page, _ := c.ListInstancesRequest(input)
page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
return page.EachPage(func(p interface{}, lastPage bool) bool {
return fn(p.(*ListInstancesOutput), lastPage)
})
}
const opListSteps = "ListSteps"
// ListStepsRequest generates a request for the ListSteps operation.
func (c *EMR) ListStepsRequest(input *ListStepsInput) (req *request.Request, output *ListStepsOutput) {
op := &request.Operation{
Name: opListSteps,
HTTPMethod: "POST",
HTTPPath: "/",
Paginator: &request.Paginator{
InputTokens: []string{"Marker"},
OutputTokens: []string{"Marker"},
LimitToken: "",
TruncationToken: "",
},
}
if input == nil {
input = &ListStepsInput{}
}
req = c.newRequest(op, input, output)
output = &ListStepsOutput{}
req.Data = output
return
}
// Provides a list of steps for the cluster.
func (c *EMR) ListSteps(input *ListStepsInput) (*ListStepsOutput, error) {
req, out := c.ListStepsRequest(input)
err := req.Send()
return out, err
}
func (c *EMR) ListStepsPages(input *ListStepsInput, fn func(p *ListStepsOutput, lastPage bool) (shouldContinue bool)) error {
page, _ := c.ListStepsRequest(input)
page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
return page.EachPage(func(p interface{}, lastPage bool) bool {
return fn(p.(*ListStepsOutput), lastPage)
})
}
const opModifyInstanceGroups = "ModifyInstanceGroups"
// ModifyInstanceGroupsRequest generates a request for the ModifyInstanceGroups operation.
func (c *EMR) ModifyInstanceGroupsRequest(input *ModifyInstanceGroupsInput) (req *request.Request, output *ModifyInstanceGroupsOutput) {
op := &request.Operation{
Name: opModifyInstanceGroups,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &ModifyInstanceGroupsInput{}
}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
output = &ModifyInstanceGroupsOutput{}
req.Data = output
return
}
// ModifyInstanceGroups modifies the number of nodes and configuration settings
// of an instance group. The input parameters include the new target instance
// count for the group and the instance group ID. The call will either succeed
// or fail atomically.
func (c *EMR) ModifyInstanceGroups(input *ModifyInstanceGroupsInput) (*ModifyInstanceGroupsOutput, error) {
req, out := c.ModifyInstanceGroupsRequest(input)
err := req.Send()
return out, err
}
const opRemoveTags = "RemoveTags"
// RemoveTagsRequest generates a request for the RemoveTags operation.
func (c *EMR) RemoveTagsRequest(input *RemoveTagsInput) (req *request.Request, output *RemoveTagsOutput) {
op := &request.Operation{
Name: opRemoveTags,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &RemoveTagsInput{}
}
req = c.newRequest(op, input, output)
output = &RemoveTagsOutput{}
req.Data = output
return
}
// Removes tags from an Amazon EMR resource. Tags make it easier to associate
// clusters in various ways, such as grouping clusters to track your Amazon
// EMR resource allocation costs. For more information, see Tagging Amazon EMR
// Resources (http://docs.aws.amazon.com/ElasticMapReduce/latest/DeveloperGuide/emr-plan-tags.html).
//
// The following example removes the stack tag with value Prod from a cluster:
func (c *EMR) RemoveTags(input *RemoveTagsInput) (*RemoveTagsOutput, error) {
req, out := c.RemoveTagsRequest(input)
err := req.Send()
return out, err
}
const opRunJobFlow = "RunJobFlow"
// RunJobFlowRequest generates a request for the RunJobFlow operation.
func (c *EMR) RunJobFlowRequest(input *RunJobFlowInput) (req *request.Request, output *RunJobFlowOutput) {
op := &request.Operation{
Name: opRunJobFlow,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &RunJobFlowInput{}
}
req = c.newRequest(op, input, output)
output = &RunJobFlowOutput{}
req.Data = output
return
}
// RunJobFlow creates and starts running a new job flow. The job flow will run
// the steps specified. Once the job flow completes, the cluster is stopped
// and the HDFS partition is lost. To prevent loss of data, configure the last
// step of the job flow to store results in Amazon S3. If the JobFlowInstancesConfig
// KeepJobFlowAliveWhenNoSteps parameter is set to TRUE, the job flow will transition
// to the WAITING state rather than shutting down once the steps have completed.
//
// For additional protection, you can set the JobFlowInstancesConfig TerminationProtected
// parameter to TRUE to lock the job flow and prevent it from being terminated
// by API call, user intervention, or in the event of a job flow error.
//
// A maximum of 256 steps are allowed in each job flow.
//
// If your job flow is long-running (such as a Hive data warehouse) or complex,
// you may require more than 256 steps to process your data. You can bypass
// the 256-step limitation in various ways, including using the SSH shell to
// connect to the master node and submitting queries directly to the software
// running on the master node, such as Hive and Hadoop. For more information
// on how to do this, go to Add More than 256 Steps to a Job Flow (http://docs.aws.amazon.com/ElasticMapReduce/latest/DeveloperGuide/AddMoreThan256Steps.html)
// in the Amazon Elastic MapReduce Developer's Guide.
//
// For long running job flows, we recommend that you periodically store your
// results.
func (c *EMR) RunJobFlow(input *RunJobFlowInput) (*RunJobFlowOutput, error) {
req, out := c.RunJobFlowRequest(input)
err := req.Send()
return out, err
}
const opSetTerminationProtection = "SetTerminationProtection"
// SetTerminationProtectionRequest generates a request for the SetTerminationProtection operation.
func (c *EMR) SetTerminationProtectionRequest(input *SetTerminationProtectionInput) (req *request.Request, output *SetTerminationProtectionOutput) {
op := &request.Operation{
Name: opSetTerminationProtection,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &SetTerminationProtectionInput{}
}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
output = &SetTerminationProtectionOutput{}
req.Data = output
return
}
// SetTerminationProtection locks a job flow so the Amazon EC2 instances in
// the cluster cannot be terminated by user intervention, an API call, or in
// the event of a job-flow error. The cluster still terminates upon successful
// completion of the job flow. Calling SetTerminationProtection on a job flow
// is analogous to calling the Amazon EC2 DisableAPITermination API on all of
// the EC2 instances in a cluster.
//
// SetTerminationProtection is used to prevent accidental termination of a
// job flow and to ensure that in the event of an error, the instances will
// persist so you can recover any data stored in their ephemeral instance storage.
//
// To terminate a job flow that has been locked by setting SetTerminationProtection
// to true, you must first unlock the job flow by a subsequent call to SetTerminationProtection
// in which you set the value to false.
//
// For more information, go to Protecting a Job Flow from Termination (http://docs.aws.amazon.com/ElasticMapReduce/latest/DeveloperGuide/UsingEMR_TerminationProtection.html)
// in the Amazon Elastic MapReduce Developer's Guide.
func (c *EMR) SetTerminationProtection(input *SetTerminationProtectionInput) (*SetTerminationProtectionOutput, error) {
req, out := c.SetTerminationProtectionRequest(input)
err := req.Send()
return out, err
}
const opSetVisibleToAllUsers = "SetVisibleToAllUsers"
// SetVisibleToAllUsersRequest generates a request for the SetVisibleToAllUsers operation.
func (c *EMR) SetVisibleToAllUsersRequest(input *SetVisibleToAllUsersInput) (req *request.Request, output *SetVisibleToAllUsersOutput) {
op := &request.Operation{
Name: opSetVisibleToAllUsers,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &SetVisibleToAllUsersInput{}
}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
output = &SetVisibleToAllUsersOutput{}
req.Data = output
return
}
// Sets whether all AWS Identity and Access Management (IAM) users under your
// account can access the specified job flows. This action works on running
// job flows. You can also set the visibility of a job flow when you launch
// it using the VisibleToAllUsers parameter of RunJobFlow. The SetVisibleToAllUsers
// action can be called only by an IAM user who created the job flow or the
// AWS account that owns the job flow.
func (c *EMR) SetVisibleToAllUsers(input *SetVisibleToAllUsersInput) (*SetVisibleToAllUsersOutput, error) {
req, out := c.SetVisibleToAllUsersRequest(input)
err := req.Send()
return out, err
}
const opTerminateJobFlows = "TerminateJobFlows"
// TerminateJobFlowsRequest generates a request for the TerminateJobFlows operation.
func (c *EMR) TerminateJobFlowsRequest(input *TerminateJobFlowsInput) (req *request.Request, output *TerminateJobFlowsOutput) {
op := &request.Operation{
Name: opTerminateJobFlows,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &TerminateJobFlowsInput{}
}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
output = &TerminateJobFlowsOutput{}
req.Data = output
return
}
// TerminateJobFlows shuts a list of job flows down. When a job flow is shut
// down, any step not yet completed is canceled and the EC2 instances on which
// the job flow is running are stopped. Any log files not already saved are
// uploaded to Amazon S3 if a LogUri was specified when the job flow was created.
//
// The maximum number of JobFlows allowed is 10. The call to TerminateJobFlows
// is asynchronous. Depending on the configuration of the job flow, it may take
// up to 5-20 minutes for the job flow to completely terminate and release allocated
// resources, such as Amazon EC2 instances.
func (c *EMR) TerminateJobFlows(input *TerminateJobFlowsInput) (*TerminateJobFlowsOutput, error) {
req, out := c.TerminateJobFlowsRequest(input)
err := req.Send()
return out, err
}
// Input to an AddInstanceGroups call.
type AddInstanceGroupsInput struct {
_ struct{} `type:"structure"`
// Instance Groups to add.
InstanceGroups []*InstanceGroupConfig `type:"list" required:"true"`
// Job flow in which to add the instance groups.
JobFlowId *string `type:"string" required:"true"`
}
// String returns the string representation
func (s AddInstanceGroupsInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s AddInstanceGroupsInput) GoString() string {
return s.String()
}
// Output from an AddInstanceGroups call.
type AddInstanceGroupsOutput struct {
_ struct{} `type:"structure"`
// Instance group IDs of the newly created instance groups.
InstanceGroupIds []*string `type:"list"`
// The job flow ID in which the instance groups are added.
JobFlowId *string `type:"string"`
}
// String returns the string representation
func (s AddInstanceGroupsOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s AddInstanceGroupsOutput) GoString() string {
return s.String()
}
// The input argument to the AddJobFlowSteps operation.
type AddJobFlowStepsInput struct {
_ struct{} `type:"structure"`
// A string that uniquely identifies the job flow. This identifier is returned
// by RunJobFlow and can also be obtained from ListClusters.
JobFlowId *string `type:"string" required:"true"`
// A list of StepConfig to be executed by the job flow.
Steps []*StepConfig `type:"list" required:"true"`
}
// String returns the string representation
func (s AddJobFlowStepsInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s AddJobFlowStepsInput) GoString() string {
return s.String()
}
// The output for the AddJobFlowSteps operation.
type AddJobFlowStepsOutput struct {
_ struct{} `type:"structure"`
// The identifiers of the list of steps added to the job flow.
StepIds []*string `type:"list"`
}
// String returns the string representation
func (s AddJobFlowStepsOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s AddJobFlowStepsOutput) GoString() string {
return s.String()
}
// This input identifies a cluster and a list of tags to attach.
type AddTagsInput struct {
_ struct{} `type:"structure"`
// The Amazon EMR resource identifier to which tags will be added. This value
// must be a cluster identifier.
ResourceId *string `type:"string" required:"true"`
// A list of tags to associate with a cluster and propagate to Amazon EC2 instances.
// Tags are user-defined key/value pairs that consist of a required key string
// with a maximum of 128 characters, and an optional value string with a maximum
// of 256 characters.
Tags []*Tag `type:"list" required:"true"`
}
// String returns the string representation
func (s AddTagsInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s AddTagsInput) GoString() string {
return s.String()
}
// This output indicates the result of adding tags to a resource.
type AddTagsOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s AddTagsOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s AddTagsOutput) GoString() string {
return s.String()
}
// An application is any Amazon or third-party software that you can add to
// the cluster. This structure contains a list of strings that indicates the
// software to use with the cluster and accepts a user argument list. Amazon
// EMR accepts and forwards the argument list to the corresponding installation
// script as bootstrap action argument. For more information, see Launch a Job
// Flow on the MapR Distribution for Hadoop (http://docs.aws.amazon.com/ElasticMapReduce/latest/DeveloperGuide/emr-mapr.html).
// Currently supported values are:
//
// "mapr-m3" - launch the job flow using MapR M3 Edition. "mapr-m5" - launch
// the job flow using MapR M5 Edition. "mapr" with the user arguments specifying
// "--edition,m3" or "--edition,m5" - launch the job flow using MapR M3 or M5
// Edition, respectively. In Amazon EMR releases 4.0 and greater, the only
// accepted parameter is the application name. To pass arguments to applications,
// you supply a configuration for each application.
type Application struct {
_ struct{} `type:"structure"`
// This option is for advanced users only. This is meta information about third-party
// applications that third-party vendors use for testing purposes.
AdditionalInfo map[string]*string `type:"map"`
// Arguments for Amazon EMR to pass to the application.
Args []*string `type:"list"`
// The name of the application.
Name *string `type:"string"`
// The version of the application.
Version *string `type:"string"`
}
// String returns the string representation
func (s Application) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s Application) GoString() string {
return s.String()
}
// Configuration of a bootstrap action.
type BootstrapActionConfig struct {
_ struct{} `type:"structure"`
// The name of the bootstrap action.
Name *string `type:"string" required:"true"`
// The script run by the bootstrap action.
ScriptBootstrapAction *ScriptBootstrapActionConfig `type:"structure" required:"true"`
}
// String returns the string representation
func (s BootstrapActionConfig) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s BootstrapActionConfig) GoString() string {
return s.String()
}
// Reports the configuration of a bootstrap action in a job flow.
type BootstrapActionDetail struct {
_ struct{} `type:"structure"`
// A description of the bootstrap action.
BootstrapActionConfig *BootstrapActionConfig `type:"structure"`
}
// String returns the string representation
func (s BootstrapActionDetail) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s BootstrapActionDetail) GoString() string {
return s.String()
}
// The detailed description of the cluster.
type Cluster struct {
_ struct{} `type:"structure"`
// The applications installed on this cluster.
Applications []*Application `type:"list"`
// Specifies whether the cluster should terminate after completing all steps.
AutoTerminate *bool `type:"boolean"`
// Amazon EMR releases 4.x or later.
//
// The list of Configurations supplied to the EMR cluster.
Configurations []*Configuration `type:"list"`
// Provides information about the EC2 instances in a cluster grouped by category.
// For example, key name, subnet ID, IAM instance profile, and so on.
Ec2InstanceAttributes *Ec2InstanceAttributes `type:"structure"`
// The unique identifier for the cluster.
Id *string `type:"string"`
// The path to the Amazon S3 location where logs for this cluster are stored.
LogUri *string `type:"string"`
// The public DNS name of the master EC2 instance.
MasterPublicDnsName *string `type:"string"`
// The name of the cluster.
Name *string `type:"string"`
// An approximation of the cost of the job flow, represented in m1.small/hours.
// This value is incremented one time for every hour an m1.small instance runs.
// Larger instances are weighted more, so an EC2 instance that is roughly four
// times more expensive would result in the normalized instance hours being
// incremented by four. This result is only an approximation and does not reflect
// the actual billing rate.
NormalizedInstanceHours *int64 `type:"integer"`
// The release label for the Amazon EMR release. For Amazon EMR 3.x and 2.x
// AMIs, use amiVersion instead instead of ReleaseLabel.
ReleaseLabel *string `type:"string"`
// The AMI version requested for this cluster.
RequestedAmiVersion *string `type:"string"`
// The AMI version running on this cluster.
RunningAmiVersion *string `type:"string"`
// The IAM role that will be assumed by the Amazon EMR service to access AWS
// resources on your behalf.
ServiceRole *string `type:"string"`
// The current status details about the cluster.
Status *ClusterStatus `type:"structure"`
// A list of tags associated with a cluster.
Tags []*Tag `type:"list"`
// Indicates whether Amazon EMR will lock the cluster to prevent the EC2 instances
// from being terminated by an API call or user intervention, or in the event
// of a cluster error.
TerminationProtected *bool `type:"boolean"`
// Indicates whether the job flow is visible to all IAM users of the AWS account
// associated with the job flow. If this value is set to true, all IAM users
// of that AWS account can view and manage the job flow if they have the proper
// policy permissions set. If this value is false, only the IAM user that created
// the cluster can view and manage it. This value can be changed using the SetVisibleToAllUsers
// action.
VisibleToAllUsers *bool `type:"boolean"`
}
// String returns the string representation
func (s Cluster) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s Cluster) GoString() string {
return s.String()
}
// The reason that the cluster changed to its current state.
type ClusterStateChangeReason struct {
_ struct{} `type:"structure"`
// The programmatic code for the state change reason.
Code *string `type:"string" enum:"ClusterStateChangeReasonCode"`
// The descriptive message for the state change reason.
Message *string `type:"string"`
}
// String returns the string representation
func (s ClusterStateChangeReason) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ClusterStateChangeReason) GoString() string {
return s.String()
}
// The detailed status of the cluster.
type ClusterStatus struct {
_ struct{} `type:"structure"`
// The current state of the cluster.
State *string `type:"string" enum:"ClusterState"`
// The reason for the cluster status change.
StateChangeReason *ClusterStateChangeReason `type:"structure"`
// A timeline that represents the status of a cluster over the lifetime of the
// cluster.
Timeline *ClusterTimeline `type:"structure"`
}
// String returns the string representation
func (s ClusterStatus) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ClusterStatus) GoString() string {
return s.String()
}
// The summary description of the cluster.
type ClusterSummary struct {
_ struct{} `type:"structure"`
// The unique identifier for the cluster.
Id *string `type:"string"`
// The name of the cluster.
Name *string `type:"string"`
// An approximation of the cost of the job flow, represented in m1.small/hours.
// This value is incremented one time for every hour an m1.small instance runs.
// Larger instances are weighted more, so an EC2 instance that is roughly four
// times more expensive would result in the normalized instance hours being
// incremented by four. This result is only an approximation and does not reflect
// the actual billing rate.
NormalizedInstanceHours *int64 `type:"integer"`
// The details about the current status of the cluster.
Status *ClusterStatus `type:"structure"`
}
// String returns the string representation
func (s ClusterSummary) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ClusterSummary) GoString() string {
return s.String()
}
// Represents the timeline of the cluster's lifecycle.
type ClusterTimeline struct {
_ struct{} `type:"structure"`
// The creation date and time of the cluster.
CreationDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
// The date and time when the cluster was terminated.
EndDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
// The date and time when the cluster was ready to execute steps.
ReadyDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
}
// String returns the string representation
func (s ClusterTimeline) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ClusterTimeline) GoString() string {
return s.String()
}
// An entity describing an executable that runs on a cluster.
type Command struct {
_ struct{} `type:"structure"`
// Arguments for Amazon EMR to pass to the command for execution.
Args []*string `type:"list"`
// The name of the command.
Name *string `type:"string"`
// The Amazon S3 location of the command script.
ScriptPath *string `type:"string"`
}
// String returns the string representation
func (s Command) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s Command) GoString() string {
return s.String()
}
// Amazon EMR releases 4.x or later.
//
// Specifies a hardware and software configuration of the EMR cluster. This
// includes configurations for applications and software bundled with Amazon
// EMR. The Configuration object is a JSON object which is defined by a classification
// and a set of properties. Configurations can be nested, so a configuration
// may have its own Configuration objects listed.
type Configuration struct {
_ struct{} `type:"structure"`
// The classification of a configuration. For more information see, Amazon EMR
// Configurations (http://docs.aws.amazon.com/ElasticMapReduce/latest/API/EmrConfigurations.html).
Classification *string `type:"string"`
// A list of configurations you apply to this configuration object.
Configurations []*Configuration `type:"list"`
// A set of properties supplied to the Configuration object.
Properties map[string]*string `type:"map"`
}
// String returns the string representation
func (s Configuration) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s Configuration) GoString() string {
return s.String()
}
// This input determines which cluster to describe.
type DescribeClusterInput struct {
_ struct{} `type:"structure"`
// The identifier of the cluster to describe.
ClusterId *string `type:"string" required:"true"`
}
// String returns the string representation
func (s DescribeClusterInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeClusterInput) GoString() string {
return s.String()
}
// This output contains the description of the cluster.
type DescribeClusterOutput struct {
_ struct{} `type:"structure"`
// This output contains the details for the requested cluster.
Cluster *Cluster `type:"structure"`
}
// String returns the string representation
func (s DescribeClusterOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeClusterOutput) GoString() string {
return s.String()
}
// The input for the DescribeJobFlows operation.
type DescribeJobFlowsInput struct {
_ struct{} `type:"structure"`
// Return only job flows created after this date and time.
CreatedAfter *time.Time `type:"timestamp" timestampFormat:"unix"`
// Return only job flows created before this date and time.
CreatedBefore *time.Time `type:"timestamp" timestampFormat:"unix"`
// Return only job flows whose job flow ID is contained in this list.
JobFlowIds []*string `type:"list"`
// Return only job flows whose state is contained in this list.
JobFlowStates []*string `type:"list"`
}
// String returns the string representation
func (s DescribeJobFlowsInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeJobFlowsInput) GoString() string {
return s.String()
}
// The output for the DescribeJobFlows operation.
type DescribeJobFlowsOutput struct {
_ struct{} `type:"structure"`
// A list of job flows matching the parameters supplied.
JobFlows []*JobFlowDetail `type:"list"`
}
// String returns the string representation
func (s DescribeJobFlowsOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeJobFlowsOutput) GoString() string {
return s.String()
}
// This input determines which step to describe.
type DescribeStepInput struct {
_ struct{} `type:"structure"`
// The identifier of the cluster with steps to describe.
ClusterId *string `type:"string" required:"true"`
// The identifier of the step to describe.
StepId *string `type:"string" required:"true"`
}
// String returns the string representation
func (s DescribeStepInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeStepInput) GoString() string {
return s.String()
}
// This output contains the description of the cluster step.
type DescribeStepOutput struct {
_ struct{} `type:"structure"`
// The step details for the requested step identifier.
Step *Step `type:"structure"`
}
// String returns the string representation
func (s DescribeStepOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeStepOutput) GoString() string {
return s.String()
}
// Configuration of requested EBS block device associated with the instance
// group.
type EbsBlockDevice struct {
_ struct{} `type:"structure"`
// The device name that is exposed to the instance, such as /dev/sdh.
Device *string `type:"string"`
// EBS volume specifications such as volume type, IOPS, and size(GiB) that will
// be requested for the EBS volume attached to an EC2 instance in the cluster.
VolumeSpecification *VolumeSpecification `type:"structure"`
}
// String returns the string representation
func (s EbsBlockDevice) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s EbsBlockDevice) GoString() string {
return s.String()
}
// Configuration of requested EBS block device associated with the instance
// group with count of volumes that will be associated to every instance.
type EbsBlockDeviceConfig struct {
_ struct{} `type:"structure"`
// EBS volume specifications such as volume type, IOPS, and size(GiB) that will
// be requested for the EBS volume attached to an EC2 instance in the cluster.
VolumeSpecification *VolumeSpecification `type:"structure" required:"true"`
// Number of EBS volumes with specific volume configuration, that will be associated
// with every instance in the instance group
VolumesPerInstance *int64 `type:"integer"`
}
// String returns the string representation
func (s EbsBlockDeviceConfig) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s EbsBlockDeviceConfig) GoString() string {
return s.String()
}
type EbsConfiguration struct {
_ struct{} `type:"structure"`
EbsBlockDeviceConfigs []*EbsBlockDeviceConfig `type:"list"`
EbsOptimized *bool `type:"boolean"`
}
// String returns the string representation
func (s EbsConfiguration) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s EbsConfiguration) GoString() string {
return s.String()
}
// EBS block device that's attached to an EC2 instance.
type EbsVolume struct {
_ struct{} `type:"structure"`
// The device name that is exposed to the instance, such as /dev/sdh.
Device *string `type:"string"`
// The volume identifier of the EBS volume.
VolumeId *string `type:"string"`
}
// String returns the string representation
func (s EbsVolume) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s EbsVolume) GoString() string {
return s.String()
}
// Provides information about the EC2 instances in a cluster grouped by category.
// For example, key name, subnet ID, IAM instance profile, and so on.
type Ec2InstanceAttributes struct {
_ struct{} `type:"structure"`
// A list of additional Amazon EC2 security group IDs for the master node.
AdditionalMasterSecurityGroups []*string `type:"list"`
// A list of additional Amazon EC2 security group IDs for the slave nodes.
AdditionalSlaveSecurityGroups []*string `type:"list"`
// The Availability Zone in which the cluster will run.
Ec2AvailabilityZone *string `type:"string"`
// The name of the Amazon EC2 key pair to use when connecting with SSH into
// the master node as a user named "hadoop".
Ec2KeyName *string `type:"string"`
// To launch the job flow in Amazon VPC, set this parameter to the identifier
// of the Amazon VPC subnet where you want the job flow to launch. If you do
// not specify this value, the job flow is launched in the normal AWS cloud,
// outside of a VPC.
//
// Amazon VPC currently does not support cluster compute quadruple extra large
// (cc1.4xlarge) instances. Thus, you cannot specify the cc1.4xlarge instance
// type for nodes of a job flow launched in a VPC.
Ec2SubnetId *string `type:"string"`
// The identifier of the Amazon EC2 security group for the master node.
EmrManagedMasterSecurityGroup *string `type:"string"`
// The identifier of the Amazon EC2 security group for the slave nodes.
EmrManagedSlaveSecurityGroup *string `type:"string"`
// The IAM role that was specified when the job flow was launched. The EC2 instances
// of the job flow assume this role.
IamInstanceProfile *string `type:"string"`
// The identifier of the Amazon EC2 security group for the Amazon EMR service
// to access clusters in VPC private subnets.
ServiceAccessSecurityGroup *string `type:"string"`
}
// String returns the string representation
func (s Ec2InstanceAttributes) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s Ec2InstanceAttributes) GoString() string {
return s.String()
}
// A job flow step consisting of a JAR file whose main function will be executed.
// The main function submits a job for Hadoop to execute and waits for the job
// to finish or fail.
type HadoopJarStepConfig struct {
_ struct{} `type:"structure"`
// A list of command line arguments passed to the JAR file's main function when
// executed.
Args []*string `type:"list"`
// A path to a JAR file run during the step.
Jar *string `type:"string" required:"true"`
// The name of the main class in the specified Java file. If not specified,
// the JAR file should specify a Main-Class in its manifest file.
MainClass *string `type:"string"`
// A list of Java properties that are set when the step runs. You can use these
// properties to pass key value pairs to your main function.
Properties []*KeyValue `type:"list"`
}
// String returns the string representation
func (s HadoopJarStepConfig) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s HadoopJarStepConfig) GoString() string {
return s.String()
}
// A cluster step consisting of a JAR file whose main function will be executed.
// The main function submits a job for Hadoop to execute and waits for the job
// to finish or fail.
type HadoopStepConfig struct {
_ struct{} `type:"structure"`
// The list of command line arguments to pass to the JAR file's main function
// for execution.
Args []*string `type:"list"`
// The path to the JAR file that runs during the step.
Jar *string `type:"string"`
// The name of the main class in the specified Java file. If not specified,
// the JAR file should specify a main class in its manifest file.
MainClass *string `type:"string"`
// The list of Java properties that are set when the step runs. You can use
// these properties to pass key value pairs to your main function.
Properties map[string]*string `type:"map"`
}
// String returns the string representation
func (s HadoopStepConfig) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s HadoopStepConfig) GoString() string {
return s.String()
}
// Represents an EC2 instance provisioned as part of cluster.
type Instance struct {
_ struct{} `type:"structure"`
// The list of EBS volumes that are attached to this instance.
EbsVolumes []*EbsVolume `type:"list"`
// The unique identifier of the instance in Amazon EC2.
Ec2InstanceId *string `type:"string"`
// The unique identifier for the instance in Amazon EMR.
Id *string `type:"string"`
// The identifier of the instance group to which this instance belongs.
InstanceGroupId *string `type:"string"`
// The private DNS name of the instance.
PrivateDnsName *string `type:"string"`
// The private IP address of the instance.
PrivateIpAddress *string `type:"string"`
// The public DNS name of the instance.
PublicDnsName *string `type:"string"`
// The public IP address of the instance.
PublicIpAddress *string `type:"string"`
// The current status of the instance.
Status *InstanceStatus `type:"structure"`
}
// 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()
}
// This entity represents an instance group, which is a group of instances that
// have common purpose. For example, CORE instance group is used for HDFS.
type InstanceGroup struct {
_ struct{} `type:"structure"`
// The bid price for each EC2 instance in the instance group when launching
// nodes as Spot Instances, expressed in USD.
BidPrice *string `type:"string"`
// Amazon EMR releases 4.x or later.
//
// The list of configurations supplied for an EMR cluster instance group. You
// can specify a separate configuration for each instance group (master, core,
// and task).
Configurations []*Configuration `type:"list"`
// The EBS block devices that are mapped to this instance group.
EbsBlockDevices []*EbsBlockDevice `type:"list"`
// If the instance group is EBS-optimized. An Amazon EBS–optimized instance
// uses an optimized configuration stack and provides additional, dedicated
// capacity for Amazon EBS I/O.
EbsOptimized *bool `type:"boolean"`
// The identifier of the instance group.
Id *string `type:"string"`
// The type of the instance group. Valid values are MASTER, CORE or TASK.
InstanceGroupType *string `type:"string" enum:"InstanceGroupType"`
// The EC2 instance type for all instances in the instance group.
InstanceType *string `min:"1" type:"string"`
// The marketplace to provision instances for this group. Valid values are ON_DEMAND
// or SPOT.
Market *string `type:"string" enum:"MarketType"`
// The name of the instance group.
Name *string `type:"string"`
// The target number of instances for the instance group.
RequestedInstanceCount *int64 `type:"integer"`
// The number of instances currently running in this instance group.
RunningInstanceCount *int64 `type:"integer"`
// The current status of the instance group.
Status *InstanceGroupStatus `type:"structure"`
}
// String returns the string representation
func (s InstanceGroup) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s InstanceGroup) GoString() string {
return s.String()
}
// Configuration defining a new instance group.
type InstanceGroupConfig struct {
_ struct{} `type:"structure"`
// Bid price for each Amazon EC2 instance in the instance group when launching
// nodes as Spot Instances, expressed in USD.
BidPrice *string `type:"string"`
// Amazon EMR releases 4.x or later.
//
// The list of configurations supplied for an EMR cluster instance group. You
// can specify a separate configuration for each instance group (master, core,
// and task).
Configurations []*Configuration `type:"list"`
// EBS configurations that will be attached to each Amazon EC2 instance in the
// instance group.
EbsConfiguration *EbsConfiguration `type:"structure"`
// Target number of instances for the instance group.
InstanceCount *int64 `type:"integer" required:"true"`
// The role of the instance group in the cluster.
InstanceRole *string `type:"string" required:"true" enum:"InstanceRoleType"`
// The Amazon EC2 instance type for all instances in the instance group.
InstanceType *string `min:"1" type:"string" required:"true"`
// Market type of the Amazon EC2 instances used to create a cluster node.
Market *string `type:"string" enum:"MarketType"`
// Friendly name given to the instance group.
Name *string `type:"string"`
}
// String returns the string representation
func (s InstanceGroupConfig) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s InstanceGroupConfig) GoString() string {
return s.String()
}
// Detailed information about an instance group.
type InstanceGroupDetail struct {
_ struct{} `type:"structure"`
// Bid price for EC2 Instances when launching nodes as Spot Instances, expressed
// in USD.
BidPrice *string `type:"string"`
// The date/time the instance group was created.
CreationDateTime *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
// The date/time the instance group was terminated.
EndDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
// Unique identifier for the instance group.
InstanceGroupId *string `type:"string"`
// Target number of instances to run in the instance group.
InstanceRequestCount *int64 `type:"integer" required:"true"`
// Instance group role in the cluster
InstanceRole *string `type:"string" required:"true" enum:"InstanceRoleType"`
// Actual count of running instances.
InstanceRunningCount *int64 `type:"integer" required:"true"`
// Amazon EC2 Instance type.
InstanceType *string `min:"1" type:"string" required:"true"`
// Details regarding the state of the instance group.
LastStateChangeReason *string `type:"string"`
// Market type of the Amazon EC2 instances used to create a cluster node.
Market *string `type:"string" required:"true" enum:"MarketType"`
// Friendly name for the instance group.
Name *string `type:"string"`
// The date/time the instance group was available to the cluster.
ReadyDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
// The date/time the instance group was started.
StartDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
// State of instance group. The following values are deprecated: STARTING, TERMINATED,
// and FAILED.
State *string `type:"string" required:"true" enum:"InstanceGroupState"`
}
// String returns the string representation
func (s InstanceGroupDetail) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s InstanceGroupDetail) GoString() string {
return s.String()
}
// Modify an instance group size.
type InstanceGroupModifyConfig struct {
_ struct{} `type:"structure"`
// The EC2 InstanceIds to terminate. For advanced users only. Once you terminate
// the instances, the instance group will not return to its original requested
// size.
EC2InstanceIdsToTerminate []*string `type:"list"`
// Target size for the instance group.
InstanceCount *int64 `type:"integer"`
// Unique ID of the instance group to expand or shrink.
InstanceGroupId *string `type:"string" required:"true"`
}
// String returns the string representation
func (s InstanceGroupModifyConfig) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s InstanceGroupModifyConfig) GoString() string {
return s.String()
}
// The status change reason details for the instance group.
type InstanceGroupStateChangeReason struct {
_ struct{} `type:"structure"`
// The programmable code for the state change reason.
Code *string `type:"string" enum:"InstanceGroupStateChangeReasonCode"`
// The status change reason description.
Message *string `type:"string"`
}
// String returns the string representation
func (s InstanceGroupStateChangeReason) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s InstanceGroupStateChangeReason) GoString() string {
return s.String()
}
// The details of the instance group status.
type InstanceGroupStatus struct {
_ struct{} `type:"structure"`
// The current state of the instance group.
State *string `type:"string" enum:"InstanceGroupState"`
// The status change reason details for the instance group.
StateChangeReason *InstanceGroupStateChangeReason `type:"structure"`
// The timeline of the instance group status over time.
Timeline *InstanceGroupTimeline `type:"structure"`
}
// String returns the string representation
func (s InstanceGroupStatus) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s InstanceGroupStatus) GoString() string {
return s.String()
}
// The timeline of the instance group lifecycle.
type InstanceGroupTimeline struct {
_ struct{} `type:"structure"`
// The creation date and time of the instance group.
CreationDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
// The date and time when the instance group terminated.
EndDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
// The date and time when the instance group became ready to perform tasks.
ReadyDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
}
// String returns the string representation
func (s InstanceGroupTimeline) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s InstanceGroupTimeline) GoString() string {
return s.String()
}
// The details of the status change reason for the instance.
type InstanceStateChangeReason struct {
_ struct{} `type:"structure"`
// The programmable code for the state change reason.
Code *string `type:"string" enum:"InstanceStateChangeReasonCode"`
// The status change reason description.
Message *string `type:"string"`
}
// String returns the string representation
func (s InstanceStateChangeReason) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s InstanceStateChangeReason) GoString() string {
return s.String()
}
// The instance status details.
type InstanceStatus struct {
_ struct{} `type:"structure"`
// The current state of the instance.
State *string `type:"string" enum:"InstanceState"`
// The details of the status change reason for the instance.
StateChangeReason *InstanceStateChangeReason `type:"structure"`
// The timeline of the instance status over time.
Timeline *InstanceTimeline `type:"structure"`
}
// String returns the string representation
func (s InstanceStatus) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s InstanceStatus) GoString() string {
return s.String()
}
// The timeline of the instance lifecycle.
type InstanceTimeline struct {
_ struct{} `type:"structure"`
// The creation date and time of the instance.
CreationDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
// The date and time when the instance was terminated.
EndDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
// The date and time when the instance was ready to perform tasks.
ReadyDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
}
// String returns the string representation
func (s InstanceTimeline) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s InstanceTimeline) GoString() string {
return s.String()
}
// A description of a job flow.
type JobFlowDetail struct {
_ struct{} `type:"structure"`
// The version of the AMI used to initialize Amazon EC2 instances in the job
// flow. For a list of AMI versions currently supported by Amazon ElasticMapReduce,
// go to AMI Versions Supported in Elastic MapReduce (http://docs.aws.amazon.com/ElasticMapReduce/latest/DeveloperGuide/EnvironmentConfig_AMIVersion.html#ami-versions-supported)
// in the Amazon Elastic MapReduce Developer Guide.
AmiVersion *string `type:"string"`
// A list of the bootstrap actions run by the job flow.
BootstrapActions []*BootstrapActionDetail `type:"list"`
// Describes the execution status of the job flow.
ExecutionStatusDetail *JobFlowExecutionStatusDetail `type:"structure" required:"true"`
// Describes the Amazon EC2 instances of the job flow.
Instances *JobFlowInstancesDetail `type:"structure" required:"true"`
// The job flow identifier.
JobFlowId *string `type:"string" required:"true"`
// The IAM role that was specified when the job flow was launched. The EC2 instances
// of the job flow assume this role.
JobFlowRole *string `type:"string"`
// The location in Amazon S3 where log files for the job are stored.
LogUri *string `type:"string"`
// The name of the job flow.
Name *string `type:"string" required:"true"`
// The IAM role that will be assumed by the Amazon EMR service to access AWS
// resources on your behalf.
ServiceRole *string `type:"string"`
// A list of steps run by the job flow.
Steps []*StepDetail `type:"list"`
// A list of strings set by third party software when the job flow is launched.
// If you are not using third party software to manage the job flow this value
// is empty.
SupportedProducts []*string `type:"list"`
// Specifies whether the job flow is visible to all IAM users of the AWS account
// associated with the job flow. If this value is set to true, all IAM users
// of that AWS account can view and (if they have the proper policy permissions
// set) manage the job flow. If it is set to false, only the IAM user that created
// the job flow can view and manage it. This value can be changed using the
// SetVisibleToAllUsers action.
VisibleToAllUsers *bool `type:"boolean"`
}
// String returns the string representation
func (s JobFlowDetail) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s JobFlowDetail) GoString() string {
return s.String()
}
// Describes the status of the job flow.
type JobFlowExecutionStatusDetail struct {
_ struct{} `type:"structure"`
// The creation date and time of the job flow.
CreationDateTime *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
// The completion date and time of the job flow.
EndDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
// Description of the job flow last changed state.
LastStateChangeReason *string `type:"string"`
// The date and time when the job flow was ready to start running bootstrap
// actions.
ReadyDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
// The start date and time of the job flow.
StartDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
// The state of the job flow.
State *string `type:"string" required:"true" enum:"JobFlowExecutionState"`
}
// String returns the string representation
func (s JobFlowExecutionStatusDetail) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s JobFlowExecutionStatusDetail) GoString() string {
return s.String()
}
// A description of the Amazon EC2 instance running the job flow. A valid JobFlowInstancesConfig
// must contain at least InstanceGroups, which is the recommended configuration.
// However, a valid alternative is to have MasterInstanceType, SlaveInstanceType,
// and InstanceCount (all three must be present).
type JobFlowInstancesConfig struct {
_ struct{} `type:"structure"`
// A list of additional Amazon EC2 security group IDs for the master node.
AdditionalMasterSecurityGroups []*string `type:"list"`
// A list of additional Amazon EC2 security group IDs for the slave nodes.
AdditionalSlaveSecurityGroups []*string `type:"list"`
// The name of the Amazon EC2 key pair that can be used to ssh to the master
// node as the user called "hadoop."
Ec2KeyName *string `type:"string"`
// To launch the job flow in Amazon Virtual Private Cloud (Amazon VPC), set
// this parameter to the identifier of the Amazon VPC subnet where you want
// the job flow to launch. If you do not specify this value, the job flow is
// launched in the normal Amazon Web Services cloud, outside of an Amazon VPC.
//
// Amazon VPC currently does not support cluster compute quadruple extra large
// (cc1.4xlarge) instances. Thus you cannot specify the cc1.4xlarge instance
// type for nodes of a job flow launched in a Amazon VPC.
Ec2SubnetId *string `type:"string"`
// The identifier of the Amazon EC2 security group for the master node.
EmrManagedMasterSecurityGroup *string `type:"string"`
// The identifier of the Amazon EC2 security group for the slave nodes.
EmrManagedSlaveSecurityGroup *string `type:"string"`
// The Hadoop version for the job flow. Valid inputs are "0.18" (deprecated),
// "0.20" (deprecated), "0.20.205" (deprecated), "1.0.3", "2.2.0", or "2.4.0".
// If you do not set this value, the default of 0.18 is used, unless the AmiVersion
// parameter is set in the RunJobFlow call, in which case the default version
// of Hadoop for that AMI version is used.
HadoopVersion *string `type:"string"`
// The number of Amazon EC2 instances used to execute the job flow.
InstanceCount *int64 `type:"integer"`
// Configuration for the job flow's instance groups.
InstanceGroups []*InstanceGroupConfig `type:"list"`
// Specifies whether the job flow should be kept alive after completing all
// steps.
KeepJobFlowAliveWhenNoSteps *bool `type:"boolean"`
// The EC2 instance type of the master node.
MasterInstanceType *string `min:"1" type:"string"`
// The Availability Zone the job flow will run in.
Placement *PlacementType `type:"structure"`
// The identifier of the Amazon EC2 security group for the Amazon EMR service
// to access clusters in VPC private subnets.
ServiceAccessSecurityGroup *string `type:"string"`
// The EC2 instance type of the slave nodes.
SlaveInstanceType *string `min:"1" type:"string"`
// Specifies whether to lock the job flow to prevent the Amazon EC2 instances
// from being terminated by API call, user intervention, or in the event of
// a job flow error.
TerminationProtected *bool `type:"boolean"`
}
// String returns the string representation
func (s JobFlowInstancesConfig) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s JobFlowInstancesConfig) GoString() string {
return s.String()
}
// Specify the type of Amazon EC2 instances to run the job flow on.
type JobFlowInstancesDetail struct {
_ struct{} `type:"structure"`
// The name of an Amazon EC2 key pair that can be used to ssh to the master
// node of job flow.
Ec2KeyName *string `type:"string"`
// For job flows launched within Amazon Virtual Private Cloud, this value specifies
// the identifier of the subnet where the job flow was launched.
Ec2SubnetId *string `type:"string"`
// The Hadoop version for the job flow.
HadoopVersion *string `type:"string"`
// The number of Amazon EC2 instances in the cluster. If the value is 1, the
// same instance serves as both the master and slave node. If the value is greater
// than 1, one instance is the master node and all others are slave nodes.
InstanceCount *int64 `type:"integer" required:"true"`
// Details about the job flow's instance groups.
InstanceGroups []*InstanceGroupDetail `type:"list"`
// Specifies whether the job flow should terminate after completing all steps.
KeepJobFlowAliveWhenNoSteps *bool `type:"boolean"`
// The Amazon EC2 instance identifier of the master node.
MasterInstanceId *string `type:"string"`
// The Amazon EC2 master node instance type.
MasterInstanceType *string `min:"1" type:"string" required:"true"`
// The DNS name of the master node.
MasterPublicDnsName *string `type:"string"`
// An approximation of the cost of the job flow, represented in m1.small/hours.
// This value is incremented once for every hour an m1.small runs. Larger instances
// are weighted more, so an Amazon EC2 instance that is roughly four times more
// expensive would result in the normalized instance hours being incremented
// by four. This result is only an approximation and does not reflect the actual
// billing rate.
NormalizedInstanceHours *int64 `type:"integer"`
// The Amazon EC2 Availability Zone for the job flow.
Placement *PlacementType `type:"structure"`
// The Amazon EC2 slave node instance type.
SlaveInstanceType *string `min:"1" type:"string" required:"true"`
// Specifies whether the Amazon EC2 instances in the cluster are protected from
// termination by API calls, user intervention, or in the event of a job flow
// error.
TerminationProtected *bool `type:"boolean"`
}
// String returns the string representation
func (s JobFlowInstancesDetail) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s JobFlowInstancesDetail) GoString() string {
return s.String()
}
// A key value pair.
type KeyValue struct {
_ struct{} `type:"structure"`
// The unique identifier of a key value pair.
Key *string `type:"string"`
// The value part of the identified key.
Value *string `type:"string"`
}
// String returns the string representation
func (s KeyValue) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s KeyValue) GoString() string {
return s.String()
}
// This input determines which bootstrap actions to retrieve.
type ListBootstrapActionsInput struct {
_ struct{} `type:"structure"`
// The cluster identifier for the bootstrap actions to list .
ClusterId *string `type:"string" required:"true"`
// The pagination token that indicates the next set of results to retrieve .
Marker *string `type:"string"`
}
// String returns the string representation
func (s ListBootstrapActionsInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListBootstrapActionsInput) GoString() string {
return s.String()
}
// This output contains the boostrap actions detail .
type ListBootstrapActionsOutput struct {
_ struct{} `type:"structure"`
// The bootstrap actions associated with the cluster .
BootstrapActions []*Command `type:"list"`
// The pagination token that indicates the next set of results to retrieve .
Marker *string `type:"string"`
}
// String returns the string representation
func (s ListBootstrapActionsOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListBootstrapActionsOutput) GoString() string {
return s.String()
}
// This input determines how the ListClusters action filters the list of clusters
// that it returns.
type ListClustersInput struct {
_ struct{} `type:"structure"`
// The cluster state filters to apply when listing clusters.
ClusterStates []*string `type:"list"`
// The creation date and time beginning value filter for listing clusters .
CreatedAfter *time.Time `type:"timestamp" timestampFormat:"unix"`
// The creation date and time end value filter for listing clusters .
CreatedBefore *time.Time `type:"timestamp" timestampFormat:"unix"`
// The pagination token that indicates the next set of results to retrieve.
Marker *string `type:"string"`
}
// String returns the string representation
func (s ListClustersInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListClustersInput) GoString() string {
return s.String()
}
// This contains a ClusterSummaryList with the cluster details; for example,
// the cluster IDs, names, and status.
type ListClustersOutput struct {
_ struct{} `type:"structure"`
// The list of clusters for the account based on the given filters.
Clusters []*ClusterSummary `type:"list"`
// The pagination token that indicates the next set of results to retrieve.
Marker *string `type:"string"`
}
// String returns the string representation
func (s ListClustersOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListClustersOutput) GoString() string {
return s.String()
}
// This input determines which instance groups to retrieve.
type ListInstanceGroupsInput struct {
_ struct{} `type:"structure"`
// The identifier of the cluster for which to list the instance groups.
ClusterId *string `type:"string" required:"true"`
// The pagination token that indicates the next set of results to retrieve.
Marker *string `type:"string"`
}
// String returns the string representation
func (s ListInstanceGroupsInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListInstanceGroupsInput) GoString() string {
return s.String()
}
// This input determines which instance groups to retrieve.
type ListInstanceGroupsOutput struct {
_ struct{} `type:"structure"`
// The list of instance groups for the cluster and given filters.
InstanceGroups []*InstanceGroup `type:"list"`
// The pagination token that indicates the next set of results to retrieve.
Marker *string `type:"string"`
}
// String returns the string representation
func (s ListInstanceGroupsOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListInstanceGroupsOutput) GoString() string {
return s.String()
}
// This input determines which instances to list.
type ListInstancesInput struct {
_ struct{} `type:"structure"`
// The identifier of the cluster for which to list the instances.
ClusterId *string `type:"string" required:"true"`
// The identifier of the instance group for which to list the instances.
InstanceGroupId *string `type:"string"`
// The type of instance group for which to list the instances.
InstanceGroupTypes []*string `type:"list"`
// The pagination token that indicates the next set of results to retrieve.
Marker *string `type:"string"`
}
// String returns the string representation
func (s ListInstancesInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListInstancesInput) GoString() string {
return s.String()
}
// This output contains the list of instances.
type ListInstancesOutput struct {
_ struct{} `type:"structure"`
// The list of instances for the cluster and given filters.
Instances []*Instance `type:"list"`
// The pagination token that indicates the next set of results to retrieve.
Marker *string `type:"string"`
}
// String returns the string representation
func (s ListInstancesOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListInstancesOutput) GoString() string {
return s.String()
}
// This input determines which steps to list.
type ListStepsInput struct {
_ struct{} `type:"structure"`
// The identifier of the cluster for which to list the steps.
ClusterId *string `type:"string" required:"true"`
// The pagination token that indicates the next set of results to retrieve.
Marker *string `type:"string"`
// The filter to limit the step list based on the identifier of the steps.
StepIds []*string `type:"list"`
// The filter to limit the step list based on certain states.
StepStates []*string `type:"list"`
}
// String returns the string representation
func (s ListStepsInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListStepsInput) GoString() string {
return s.String()
}
// This output contains the list of steps.
type ListStepsOutput struct {
_ struct{} `type:"structure"`
// The pagination token that indicates the next set of results to retrieve.
Marker *string `type:"string"`
// The filtered list of steps for the cluster.
Steps []*StepSummary `type:"list"`
}
// String returns the string representation
func (s ListStepsOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListStepsOutput) GoString() string {
return s.String()
}
// Change the size of some instance groups.
type ModifyInstanceGroupsInput struct {
_ struct{} `type:"structure"`
// Instance groups to change.
InstanceGroups []*InstanceGroupModifyConfig `type:"list"`
}
// String returns the string representation
func (s ModifyInstanceGroupsInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ModifyInstanceGroupsInput) GoString() string {
return s.String()
}
type ModifyInstanceGroupsOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s ModifyInstanceGroupsOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ModifyInstanceGroupsOutput) GoString() string {
return s.String()
}
// The Amazon EC2 location for the job flow.
type PlacementType struct {
_ struct{} `type:"structure"`
// The Amazon EC2 Availability Zone for the job flow.
AvailabilityZone *string `type:"string" required:"true"`
}
// String returns the string representation
func (s PlacementType) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s PlacementType) GoString() string {
return s.String()
}
// This input identifies a cluster and a list of tags to remove.
type RemoveTagsInput struct {
_ struct{} `type:"structure"`
// The Amazon EMR resource identifier from which tags will be removed. This
// value must be a cluster identifier.
ResourceId *string `type:"string" required:"true"`
// A list of tag keys to remove from a resource.
TagKeys []*string `type:"list" required:"true"`
}
// String returns the string representation
func (s RemoveTagsInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s RemoveTagsInput) GoString() string {
return s.String()
}
// This output indicates the result of removing tags from a resource.
type RemoveTagsOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s RemoveTagsOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s RemoveTagsOutput) GoString() string {
return s.String()
}
// Input to the RunJobFlow operation.
type RunJobFlowInput struct {
_ struct{} `type:"structure"`
// A JSON string for selecting additional features.
AdditionalInfo *string `type:"string"`
// For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and greater,
// use ReleaseLabel.
//
// The version of the Amazon Machine Image (AMI) to use when launching Amazon
// EC2 instances in the job flow. The following values are valid:
//
// The version number of the AMI to use, for example, "2.0." If the AMI supports
// multiple versions of Hadoop (for example, AMI 1.0 supports both Hadoop 0.18
// and 0.20) you can use the JobFlowInstancesConfig HadoopVersion parameter
// to modify the version of Hadoop from the defaults shown above.
//
// For details about the AMI versions currently supported by Amazon Elastic
// MapReduce, go to AMI Versions Supported in Elastic MapReduce (http://docs.aws.amazon.com/ElasticMapReduce/latest/DeveloperGuide/EnvironmentConfig_AMIVersion.html#ami-versions-supported)
// in the Amazon Elastic MapReduce Developer's Guide.
AmiVersion *string `type:"string"`
// Amazon EMR releases 4.x or later.
//
// A list of applications for the cluster. Valid values are: "Hadoop", "Hive",
// "Mahout", "Pig", and "Spark." They are case insensitive.
Applications []*Application `type:"list"`
// A list of bootstrap actions that will be run before Hadoop is started on
// the cluster nodes.
BootstrapActions []*BootstrapActionConfig `type:"list"`
// Amazon EMR releases 4.x or later.
//
// The list of configurations supplied for the EMR cluster you are creating.
Configurations []*Configuration `type:"list"`
// A specification of the number and type of Amazon EC2 instances on which to
// run the job flow.
Instances *JobFlowInstancesConfig `type:"structure" required:"true"`
// Also called instance profile and EC2 role. An IAM role for an EMR cluster.
// The EC2 instances of the cluster assume this role. The default role is EMR_EC2_DefaultRole.
// In order to use the default role, you must have already created it using
// the CLI or console.
JobFlowRole *string `type:"string"`
// The location in Amazon S3 to write the log files of the job flow. If a value
// is not provided, logs are not created.
LogUri *string `type:"string"`
// The name of the job flow.
Name *string `type:"string" required:"true"`
// For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and greater,
// use Applications.
//
// A list of strings that indicates third-party software to use with the job
// flow that accepts a user argument list. EMR accepts and forwards the argument
// list to the corresponding installation script as bootstrap action arguments.
// For more information, see Launch a Job Flow on the MapR Distribution for
// Hadoop (http://docs.aws.amazon.com/ElasticMapReduce/latest/DeveloperGuide/emr-mapr.html).
// Currently supported values are:
//
// "mapr-m3" - launch the cluster using MapR M3 Edition. "mapr-m5" - launch
// the cluster using MapR M5 Edition. "mapr" with the user arguments specifying
// "--edition,m3" or "--edition,m5" - launch the job flow using MapR M3 or M5
// Edition respectively. "mapr-m7" - launch the cluster using MapR M7 Edition.
// "hunk" - launch the cluster with the Hunk Big Data Analtics Platform. "hue"-
// launch the cluster with Hue installed. "spark" - launch the cluster with
// Apache Spark installed. "ganglia" - launch the cluster with the Ganglia Monitoring
// System installed.
NewSupportedProducts []*SupportedProductConfig `type:"list"`
// Amazon EMR releases 4.x or later.
//
// The release label for the Amazon EMR release. For Amazon EMR 3.x and 2.x
// AMIs, use amiVersion instead instead of ReleaseLabel.
ReleaseLabel *string `type:"string"`
// The IAM role that will be assumed by the Amazon EMR service to access AWS
// resources on your behalf.
ServiceRole *string `type:"string"`
// A list of steps to be executed by the job flow.
Steps []*StepConfig `type:"list"`
// For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and greater,
// use Applications.
//
// A list of strings that indicates third-party software to use with the job
// flow. For more information, go to Use Third Party Applications with Amazon
// EMR (http://docs.aws.amazon.com/ElasticMapReduce/latest/DeveloperGuide/emr-supported-products.html).
// Currently supported values are:
//
// "mapr-m3" - launch the job flow using MapR M3 Edition. "mapr-m5" - launch
// the job flow using MapR M5 Edition.
SupportedProducts []*string `type:"list"`
// A list of tags to associate with a cluster and propagate to Amazon EC2 instances.
Tags []*Tag `type:"list"`
// Whether the job flow is visible to all IAM users of the AWS account associated
// with the job flow. If this value is set to true, all IAM users of that AWS
// account can view and (if they have the proper policy permissions set) manage
// the job flow. If it is set to false, only the IAM user that created the job
// flow can view and manage it.
VisibleToAllUsers *bool `type:"boolean"`
}
// String returns the string representation
func (s RunJobFlowInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s RunJobFlowInput) GoString() string {
return s.String()
}
// The result of the RunJobFlow operation.
type RunJobFlowOutput struct {
_ struct{} `type:"structure"`
// An unique identifier for the job flow.
JobFlowId *string `type:"string"`
}
// String returns the string representation
func (s RunJobFlowOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s RunJobFlowOutput) GoString() string {
return s.String()
}
// Configuration of the script to run during a bootstrap action.
type ScriptBootstrapActionConfig struct {
_ struct{} `type:"structure"`
// A list of command line arguments to pass to the bootstrap action script.
Args []*string `type:"list"`
// Location of the script to run during a bootstrap action. Can be either a
// location in Amazon S3 or on a local file system.
Path *string `type:"string" required:"true"`
}
// String returns the string representation
func (s ScriptBootstrapActionConfig) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ScriptBootstrapActionConfig) GoString() string {
return s.String()
}
// The input argument to the TerminationProtection operation.
type SetTerminationProtectionInput struct {
_ struct{} `type:"structure"`
// A list of strings that uniquely identify the job flows to protect. This identifier
// is returned by RunJobFlow and can also be obtained from DescribeJobFlows
// .
JobFlowIds []*string `type:"list" required:"true"`
// A Boolean that indicates whether to protect the job flow and prevent the
// Amazon EC2 instances in the cluster from shutting down due to API calls,
// user intervention, or job-flow error.
TerminationProtected *bool `type:"boolean" required:"true"`
}
// String returns the string representation
func (s SetTerminationProtectionInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s SetTerminationProtectionInput) GoString() string {
return s.String()
}
type SetTerminationProtectionOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s SetTerminationProtectionOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s SetTerminationProtectionOutput) GoString() string {
return s.String()
}
// The input to the SetVisibleToAllUsers action.
type SetVisibleToAllUsersInput struct {
_ struct{} `type:"structure"`
// Identifiers of the job flows to receive the new visibility setting.
JobFlowIds []*string `type:"list" required:"true"`
// Whether the specified job flows are visible to all IAM users of the AWS account
// associated with the job flow. If this value is set to True, all IAM users
// of that AWS account can view and, if they have the proper IAM policy permissions
// set, manage the job flows. If it is set to False, only the IAM user that
// created a job flow can view and manage it.
VisibleToAllUsers *bool `type:"boolean" required:"true"`
}
// String returns the string representation
func (s SetVisibleToAllUsersInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s SetVisibleToAllUsersInput) GoString() string {
return s.String()
}
type SetVisibleToAllUsersOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s SetVisibleToAllUsersOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s SetVisibleToAllUsersOutput) GoString() string {
return s.String()
}
// This represents a step in a cluster.
type Step struct {
_ struct{} `type:"structure"`
// This specifies what action to take when the cluster step fails. Possible
// values are TERMINATE_CLUSTER, CANCEL_AND_WAIT, and CONTINUE.
ActionOnFailure *string `type:"string" enum:"ActionOnFailure"`
// The Hadoop job configuration of the cluster step.
Config *HadoopStepConfig `type:"structure"`
// The identifier of the cluster step.
Id *string `type:"string"`
// The name of the cluster step.
Name *string `type:"string"`
// The current execution status details of the cluster step.
Status *StepStatus `type:"structure"`
}
// String returns the string representation
func (s Step) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s Step) GoString() string {
return s.String()
}
// Specification of a job flow step.
type StepConfig struct {
_ struct{} `type:"structure"`
// The action to take if the job flow step fails.
ActionOnFailure *string `type:"string" enum:"ActionOnFailure"`
// The JAR file used for the job flow step.
HadoopJarStep *HadoopJarStepConfig `type:"structure" required:"true"`
// The name of the job flow step.
Name *string `type:"string" required:"true"`
}
// String returns the string representation
func (s StepConfig) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s StepConfig) GoString() string {
return s.String()
}
// Combines the execution state and configuration of a step.
type StepDetail struct {
_ struct{} `type:"structure"`
// The description of the step status.
ExecutionStatusDetail *StepExecutionStatusDetail `type:"structure" required:"true"`
// The step configuration.
StepConfig *StepConfig `type:"structure" required:"true"`
}
// String returns the string representation
func (s StepDetail) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s StepDetail) GoString() string {
return s.String()
}
// The execution state of a step.
type StepExecutionStatusDetail struct {
_ struct{} `type:"structure"`
// The creation date and time of the step.
CreationDateTime *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
// The completion date and time of the step.
EndDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
// A description of the step's current state.
LastStateChangeReason *string `type:"string"`
// The start date and time of the step.
StartDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
// The state of the job flow step.
State *string `type:"string" required:"true" enum:"StepExecutionState"`
}
// String returns the string representation
func (s StepExecutionStatusDetail) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s StepExecutionStatusDetail) GoString() string {
return s.String()
}
// The details of the step state change reason.
type StepStateChangeReason struct {
_ struct{} `type:"structure"`
// The programmable code for the state change reason. Note: Currently, the service
// provides no code for the state change.
Code *string `type:"string" enum:"StepStateChangeReasonCode"`
// The descriptive message for the state change reason.
Message *string `type:"string"`
}
// String returns the string representation
func (s StepStateChangeReason) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s StepStateChangeReason) GoString() string {
return s.String()
}
// The execution status details of the cluster step.
type StepStatus struct {
_ struct{} `type:"structure"`
// The execution state of the cluster step.
State *string `type:"string" enum:"StepState"`
// The reason for the step execution status change.
StateChangeReason *StepStateChangeReason `type:"structure"`
// The timeline of the cluster step status over time.
Timeline *StepTimeline `type:"structure"`
}
// String returns the string representation
func (s StepStatus) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s StepStatus) GoString() string {
return s.String()
}
// The summary of the cluster step.
type StepSummary struct {
_ struct{} `type:"structure"`
// This specifies what action to take when the cluster step fails. Possible
// values are TERMINATE_CLUSTER, CANCEL_AND_WAIT, and CONTINUE.
ActionOnFailure *string `type:"string" enum:"ActionOnFailure"`
// The Hadoop job configuration of the cluster step.
Config *HadoopStepConfig `type:"structure"`
// The identifier of the cluster step.
Id *string `type:"string"`
// The name of the cluster step.
Name *string `type:"string"`
// The current execution status details of the cluster step.
Status *StepStatus `type:"structure"`
}
// String returns the string representation
func (s StepSummary) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s StepSummary) GoString() string {
return s.String()
}
// The timeline of the cluster step lifecycle.
type StepTimeline struct {
_ struct{} `type:"structure"`
// The date and time when the cluster step was created.
CreationDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
// The date and time when the cluster step execution completed or failed.
EndDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
// The date and time when the cluster step execution started.
StartDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
}
// String returns the string representation
func (s StepTimeline) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s StepTimeline) GoString() string {
return s.String()
}
// The list of supported product configurations which allow user-supplied arguments.
// EMR accepts these arguments and forwards them to the corresponding installation
// script as bootstrap action arguments.
type SupportedProductConfig struct {
_ struct{} `type:"structure"`
// The list of user-supplied arguments.
Args []*string `type:"list"`
// The name of the product configuration.
Name *string `type:"string"`
}
// String returns the string representation
func (s SupportedProductConfig) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s SupportedProductConfig) GoString() string {
return s.String()
}
// A key/value pair containing user-defined metadata that you can associate
// with an Amazon EMR resource. Tags make it easier to associate clusters in
// various ways, such as grouping clu\ sters to track your Amazon EMR resource
// allocation costs. For more information, see Tagging Amazon EMR Resources
// (http://docs.aws.amazon.com/ElasticMapReduce/latest/DeveloperGuide/emr-plan-tags.html).
type Tag struct {
_ struct{} `type:"structure"`
// A user-defined key, which is the minimum required information for a valid
// tag. For more information, see Tagging Amazon EMR Resources (http://docs.aws.amazon.com/ElasticMapReduce/latest/DeveloperGuide/emr-plan-tags.html).
Key *string `type:"string"`
// A user-defined value, which is optional in a tag. For more information, see
// Tagging Amazon EMR Resources (http://docs.aws.amazon.com/ElasticMapReduce/latest/DeveloperGuide/emr-plan-tags.html).
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()
}
// Input to the TerminateJobFlows operation.
type TerminateJobFlowsInput struct {
_ struct{} `type:"structure"`
// A list of job flows to be shutdown.
JobFlowIds []*string `type:"list" required:"true"`
}
// String returns the string representation
func (s TerminateJobFlowsInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s TerminateJobFlowsInput) GoString() string {
return s.String()
}
type TerminateJobFlowsOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s TerminateJobFlowsOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s TerminateJobFlowsOutput) GoString() string {
return s.String()
}
// EBS volume specifications such as volume type, IOPS, and size(GiB) that will
// be requested for the EBS volume attached to an EC2 instance in the cluster.
type VolumeSpecification struct {
_ struct{} `type:"structure"`
// The number of I/O operations per second (IOPS) that the volume supports.
Iops *int64 `type:"integer"`
// The volume size, in gibibytes (GiB). This can be a number from 1 – 1024.
// If the volume type is EBS-optimized, the minimum value is 10.
SizeInGB *int64 `type:"integer" required:"true"`
// The volume type. Volume types supported are gp2, io1, standard.
VolumeType *string `type:"string" required:"true"`
}
// String returns the string representation
func (s VolumeSpecification) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s VolumeSpecification) GoString() string {
return s.String()
}
const (
// @enum ActionOnFailure
ActionOnFailureTerminateJobFlow = "TERMINATE_JOB_FLOW"
// @enum ActionOnFailure
ActionOnFailureTerminateCluster = "TERMINATE_CLUSTER"
// @enum ActionOnFailure
ActionOnFailureCancelAndWait = "CANCEL_AND_WAIT"
// @enum ActionOnFailure
ActionOnFailureContinue = "CONTINUE"
)
const (
// @enum ClusterState
ClusterStateStarting = "STARTING"
// @enum ClusterState
ClusterStateBootstrapping = "BOOTSTRAPPING"
// @enum ClusterState
ClusterStateRunning = "RUNNING"
// @enum ClusterState
ClusterStateWaiting = "WAITING"
// @enum ClusterState
ClusterStateTerminating = "TERMINATING"
// @enum ClusterState
ClusterStateTerminated = "TERMINATED"
// @enum ClusterState
ClusterStateTerminatedWithErrors = "TERMINATED_WITH_ERRORS"
)
const (
// @enum ClusterStateChangeReasonCode
ClusterStateChangeReasonCodeInternalError = "INTERNAL_ERROR"
// @enum ClusterStateChangeReasonCode
ClusterStateChangeReasonCodeValidationError = "VALIDATION_ERROR"
// @enum ClusterStateChangeReasonCode
ClusterStateChangeReasonCodeInstanceFailure = "INSTANCE_FAILURE"
// @enum ClusterStateChangeReasonCode
ClusterStateChangeReasonCodeBootstrapFailure = "BOOTSTRAP_FAILURE"
// @enum ClusterStateChangeReasonCode
ClusterStateChangeReasonCodeUserRequest = "USER_REQUEST"
// @enum ClusterStateChangeReasonCode
ClusterStateChangeReasonCodeStepFailure = "STEP_FAILURE"
// @enum ClusterStateChangeReasonCode
ClusterStateChangeReasonCodeAllStepsCompleted = "ALL_STEPS_COMPLETED"
)
const (
// @enum InstanceGroupState
InstanceGroupStateProvisioning = "PROVISIONING"
// @enum InstanceGroupState
InstanceGroupStateBootstrapping = "BOOTSTRAPPING"
// @enum InstanceGroupState
InstanceGroupStateRunning = "RUNNING"
// @enum InstanceGroupState
InstanceGroupStateResizing = "RESIZING"
// @enum InstanceGroupState
InstanceGroupStateSuspended = "SUSPENDED"
// @enum InstanceGroupState
InstanceGroupStateTerminating = "TERMINATING"
// @enum InstanceGroupState
InstanceGroupStateTerminated = "TERMINATED"
// @enum InstanceGroupState
InstanceGroupStateArrested = "ARRESTED"
// @enum InstanceGroupState
InstanceGroupStateShuttingDown = "SHUTTING_DOWN"
// @enum InstanceGroupState
InstanceGroupStateEnded = "ENDED"
)
const (
// @enum InstanceGroupStateChangeReasonCode
InstanceGroupStateChangeReasonCodeInternalError = "INTERNAL_ERROR"
// @enum InstanceGroupStateChangeReasonCode
InstanceGroupStateChangeReasonCodeValidationError = "VALIDATION_ERROR"
// @enum InstanceGroupStateChangeReasonCode
InstanceGroupStateChangeReasonCodeInstanceFailure = "INSTANCE_FAILURE"
// @enum InstanceGroupStateChangeReasonCode
InstanceGroupStateChangeReasonCodeClusterTerminated = "CLUSTER_TERMINATED"
)
const (
// @enum InstanceGroupType
InstanceGroupTypeMaster = "MASTER"
// @enum InstanceGroupType
InstanceGroupTypeCore = "CORE"
// @enum InstanceGroupType
InstanceGroupTypeTask = "TASK"
)
const (
// @enum InstanceRoleType
InstanceRoleTypeMaster = "MASTER"
// @enum InstanceRoleType
InstanceRoleTypeCore = "CORE"
// @enum InstanceRoleType
InstanceRoleTypeTask = "TASK"
)
const (
// @enum InstanceState
InstanceStateAwaitingFulfillment = "AWAITING_FULFILLMENT"
// @enum InstanceState
InstanceStateProvisioning = "PROVISIONING"
// @enum InstanceState
InstanceStateBootstrapping = "BOOTSTRAPPING"
// @enum InstanceState
InstanceStateRunning = "RUNNING"
// @enum InstanceState
InstanceStateTerminated = "TERMINATED"
)
const (
// @enum InstanceStateChangeReasonCode
InstanceStateChangeReasonCodeInternalError = "INTERNAL_ERROR"
// @enum InstanceStateChangeReasonCode
InstanceStateChangeReasonCodeValidationError = "VALIDATION_ERROR"
// @enum InstanceStateChangeReasonCode
InstanceStateChangeReasonCodeInstanceFailure = "INSTANCE_FAILURE"
// @enum InstanceStateChangeReasonCode
InstanceStateChangeReasonCodeBootstrapFailure = "BOOTSTRAP_FAILURE"
// @enum InstanceStateChangeReasonCode
InstanceStateChangeReasonCodeClusterTerminated = "CLUSTER_TERMINATED"
)
// The type of instance.
//
// A small instance
//
// A large instance
const (
// @enum JobFlowExecutionState
JobFlowExecutionStateStarting = "STARTING"
// @enum JobFlowExecutionState
JobFlowExecutionStateBootstrapping = "BOOTSTRAPPING"
// @enum JobFlowExecutionState
JobFlowExecutionStateRunning = "RUNNING"
// @enum JobFlowExecutionState
JobFlowExecutionStateWaiting = "WAITING"
// @enum JobFlowExecutionState
JobFlowExecutionStateShuttingDown = "SHUTTING_DOWN"
// @enum JobFlowExecutionState
JobFlowExecutionStateTerminated = "TERMINATED"
// @enum JobFlowExecutionState
JobFlowExecutionStateCompleted = "COMPLETED"
// @enum JobFlowExecutionState
JobFlowExecutionStateFailed = "FAILED"
)
const (
// @enum MarketType
MarketTypeOnDemand = "ON_DEMAND"
// @enum MarketType
MarketTypeSpot = "SPOT"
)
const (
// @enum StepExecutionState
StepExecutionStatePending = "PENDING"
// @enum StepExecutionState
StepExecutionStateRunning = "RUNNING"
// @enum StepExecutionState
StepExecutionStateContinue = "CONTINUE"
// @enum StepExecutionState
StepExecutionStateCompleted = "COMPLETED"
// @enum StepExecutionState
StepExecutionStateCancelled = "CANCELLED"
// @enum StepExecutionState
StepExecutionStateFailed = "FAILED"
// @enum StepExecutionState
StepExecutionStateInterrupted = "INTERRUPTED"
)
const (
// @enum StepState
StepStatePending = "PENDING"
// @enum StepState
StepStateRunning = "RUNNING"
// @enum StepState
StepStateCompleted = "COMPLETED"
// @enum StepState
StepStateCancelled = "CANCELLED"
// @enum StepState
StepStateFailed = "FAILED"
// @enum StepState
StepStateInterrupted = "INTERRUPTED"
)
const (
// @enum StepStateChangeReasonCode
StepStateChangeReasonCodeNone = "NONE"
)
|