1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094
|
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package mediaconnect
import (
"fmt"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/awsutil"
"github.com/aws/aws-sdk-go/aws/request"
)
const opAddFlowOutputs = "AddFlowOutputs"
// AddFlowOutputsRequest generates a "aws/request.Request" representing the
// client's request for the AddFlowOutputs operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See AddFlowOutputs for more information on using the AddFlowOutputs
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the AddFlowOutputsRequest method.
// req, resp := client.AddFlowOutputsRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconnect-2018-11-14/AddFlowOutputs
func (c *MediaConnect) AddFlowOutputsRequest(input *AddFlowOutputsInput) (req *request.Request, output *AddFlowOutputsOutput) {
op := &request.Operation{
Name: opAddFlowOutputs,
HTTPMethod: "POST",
HTTPPath: "/v1/flows/{flowArn}/outputs",
}
if input == nil {
input = &AddFlowOutputsInput{}
}
output = &AddFlowOutputsOutput{}
req = c.newRequest(op, input, output)
return
}
// AddFlowOutputs API operation for AWS MediaConnect.
//
// Adds outputs to an existing flow. You can create up to 20 outputs per flow.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS MediaConnect's
// API operation AddFlowOutputs for usage and error information.
//
// Returned Error Codes:
// * ErrCodeAddFlowOutputs420Exception "AddFlowOutputs420Exception"
// Exception raised by AWS Elemental MediaConnect. See the error message and
// documentation for the operation for more information on the cause of this
// exception.
//
// * ErrCodeBadRequestException "BadRequestException"
// Exception raised by AWS Elemental MediaConnect. See the error message and
// documentation for the operation for more information on the cause of this
// exception.
//
// * ErrCodeInternalServerErrorException "InternalServerErrorException"
// Exception raised by AWS Elemental MediaConnect. See the error message and
// documentation for the operation for more information on the cause of this
// exception.
//
// * ErrCodeForbiddenException "ForbiddenException"
// Exception raised by AWS Elemental MediaConnect. See the error message and
// documentation for the operation for more information on the cause of this
// exception.
//
// * ErrCodeNotFoundException "NotFoundException"
// Exception raised by AWS Elemental MediaConnect. See the error message and
// documentation for the operation for more information on the cause of this
// exception.
//
// * ErrCodeServiceUnavailableException "ServiceUnavailableException"
// Exception raised by AWS Elemental MediaConnect. See the error message and
// documentation for the operation for more information on the cause of this
// exception.
//
// * ErrCodeTooManyRequestsException "TooManyRequestsException"
// Exception raised by AWS Elemental MediaConnect. See the error message and
// documentation for the operation for more information on the cause of this
// exception.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconnect-2018-11-14/AddFlowOutputs
func (c *MediaConnect) AddFlowOutputs(input *AddFlowOutputsInput) (*AddFlowOutputsOutput, error) {
req, out := c.AddFlowOutputsRequest(input)
return out, req.Send()
}
// AddFlowOutputsWithContext is the same as AddFlowOutputs with the addition of
// the ability to pass a context and additional request options.
//
// See AddFlowOutputs for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *MediaConnect) AddFlowOutputsWithContext(ctx aws.Context, input *AddFlowOutputsInput, opts ...request.Option) (*AddFlowOutputsOutput, error) {
req, out := c.AddFlowOutputsRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opCreateFlow = "CreateFlow"
// CreateFlowRequest generates a "aws/request.Request" representing the
// client's request for the CreateFlow operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See CreateFlow for more information on using the CreateFlow
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the CreateFlowRequest method.
// req, resp := client.CreateFlowRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconnect-2018-11-14/CreateFlow
func (c *MediaConnect) CreateFlowRequest(input *CreateFlowInput) (req *request.Request, output *CreateFlowOutput) {
op := &request.Operation{
Name: opCreateFlow,
HTTPMethod: "POST",
HTTPPath: "/v1/flows",
}
if input == nil {
input = &CreateFlowInput{}
}
output = &CreateFlowOutput{}
req = c.newRequest(op, input, output)
return
}
// CreateFlow API operation for AWS MediaConnect.
//
// Creates a new flow. The request must include one source. The request optionally
// can include outputs (up to 20) and entitlements (up to 50).
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS MediaConnect's
// API operation CreateFlow for usage and error information.
//
// Returned Error Codes:
// * ErrCodeCreateFlow420Exception "CreateFlow420Exception"
// Exception raised by AWS Elemental MediaConnect. See the error message and
// documentation for the operation for more information on the cause of this
// exception.
//
// * ErrCodeBadRequestException "BadRequestException"
// Exception raised by AWS Elemental MediaConnect. See the error message and
// documentation for the operation for more information on the cause of this
// exception.
//
// * ErrCodeInternalServerErrorException "InternalServerErrorException"
// Exception raised by AWS Elemental MediaConnect. See the error message and
// documentation for the operation for more information on the cause of this
// exception.
//
// * ErrCodeForbiddenException "ForbiddenException"
// Exception raised by AWS Elemental MediaConnect. See the error message and
// documentation for the operation for more information on the cause of this
// exception.
//
// * ErrCodeServiceUnavailableException "ServiceUnavailableException"
// Exception raised by AWS Elemental MediaConnect. See the error message and
// documentation for the operation for more information on the cause of this
// exception.
//
// * ErrCodeTooManyRequestsException "TooManyRequestsException"
// Exception raised by AWS Elemental MediaConnect. See the error message and
// documentation for the operation for more information on the cause of this
// exception.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconnect-2018-11-14/CreateFlow
func (c *MediaConnect) CreateFlow(input *CreateFlowInput) (*CreateFlowOutput, error) {
req, out := c.CreateFlowRequest(input)
return out, req.Send()
}
// CreateFlowWithContext is the same as CreateFlow with the addition of
// the ability to pass a context and additional request options.
//
// See CreateFlow for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *MediaConnect) CreateFlowWithContext(ctx aws.Context, input *CreateFlowInput, opts ...request.Option) (*CreateFlowOutput, error) {
req, out := c.CreateFlowRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opDeleteFlow = "DeleteFlow"
// DeleteFlowRequest generates a "aws/request.Request" representing the
// client's request for the DeleteFlow operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See DeleteFlow for more information on using the DeleteFlow
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the DeleteFlowRequest method.
// req, resp := client.DeleteFlowRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconnect-2018-11-14/DeleteFlow
func (c *MediaConnect) DeleteFlowRequest(input *DeleteFlowInput) (req *request.Request, output *DeleteFlowOutput) {
op := &request.Operation{
Name: opDeleteFlow,
HTTPMethod: "DELETE",
HTTPPath: "/v1/flows/{flowArn}",
}
if input == nil {
input = &DeleteFlowInput{}
}
output = &DeleteFlowOutput{}
req = c.newRequest(op, input, output)
return
}
// DeleteFlow API operation for AWS MediaConnect.
//
// Deletes a flow. Before you can delete a flow, you must stop the flow.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS MediaConnect's
// API operation DeleteFlow for usage and error information.
//
// Returned Error Codes:
// * ErrCodeBadRequestException "BadRequestException"
// Exception raised by AWS Elemental MediaConnect. See the error message and
// documentation for the operation for more information on the cause of this
// exception.
//
// * ErrCodeInternalServerErrorException "InternalServerErrorException"
// Exception raised by AWS Elemental MediaConnect. See the error message and
// documentation for the operation for more information on the cause of this
// exception.
//
// * ErrCodeForbiddenException "ForbiddenException"
// Exception raised by AWS Elemental MediaConnect. See the error message and
// documentation for the operation for more information on the cause of this
// exception.
//
// * ErrCodeNotFoundException "NotFoundException"
// Exception raised by AWS Elemental MediaConnect. See the error message and
// documentation for the operation for more information on the cause of this
// exception.
//
// * ErrCodeServiceUnavailableException "ServiceUnavailableException"
// Exception raised by AWS Elemental MediaConnect. See the error message and
// documentation for the operation for more information on the cause of this
// exception.
//
// * ErrCodeTooManyRequestsException "TooManyRequestsException"
// Exception raised by AWS Elemental MediaConnect. See the error message and
// documentation for the operation for more information on the cause of this
// exception.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconnect-2018-11-14/DeleteFlow
func (c *MediaConnect) DeleteFlow(input *DeleteFlowInput) (*DeleteFlowOutput, error) {
req, out := c.DeleteFlowRequest(input)
return out, req.Send()
}
// DeleteFlowWithContext is the same as DeleteFlow with the addition of
// the ability to pass a context and additional request options.
//
// See DeleteFlow for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *MediaConnect) DeleteFlowWithContext(ctx aws.Context, input *DeleteFlowInput, opts ...request.Option) (*DeleteFlowOutput, error) {
req, out := c.DeleteFlowRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opDescribeFlow = "DescribeFlow"
// DescribeFlowRequest generates a "aws/request.Request" representing the
// client's request for the DescribeFlow operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See DescribeFlow for more information on using the DescribeFlow
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the DescribeFlowRequest method.
// req, resp := client.DescribeFlowRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconnect-2018-11-14/DescribeFlow
func (c *MediaConnect) DescribeFlowRequest(input *DescribeFlowInput) (req *request.Request, output *DescribeFlowOutput) {
op := &request.Operation{
Name: opDescribeFlow,
HTTPMethod: "GET",
HTTPPath: "/v1/flows/{flowArn}",
}
if input == nil {
input = &DescribeFlowInput{}
}
output = &DescribeFlowOutput{}
req = c.newRequest(op, input, output)
return
}
// DescribeFlow API operation for AWS MediaConnect.
//
// Displays the details of a flow. The response includes the flow ARN, name,
// and Availability Zone, as well as details about the source, outputs, and
// entitlements.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS MediaConnect's
// API operation DescribeFlow for usage and error information.
//
// Returned Error Codes:
// * ErrCodeBadRequestException "BadRequestException"
// Exception raised by AWS Elemental MediaConnect. See the error message and
// documentation for the operation for more information on the cause of this
// exception.
//
// * ErrCodeInternalServerErrorException "InternalServerErrorException"
// Exception raised by AWS Elemental MediaConnect. See the error message and
// documentation for the operation for more information on the cause of this
// exception.
//
// * ErrCodeForbiddenException "ForbiddenException"
// Exception raised by AWS Elemental MediaConnect. See the error message and
// documentation for the operation for more information on the cause of this
// exception.
//
// * ErrCodeNotFoundException "NotFoundException"
// Exception raised by AWS Elemental MediaConnect. See the error message and
// documentation for the operation for more information on the cause of this
// exception.
//
// * ErrCodeServiceUnavailableException "ServiceUnavailableException"
// Exception raised by AWS Elemental MediaConnect. See the error message and
// documentation for the operation for more information on the cause of this
// exception.
//
// * ErrCodeTooManyRequestsException "TooManyRequestsException"
// Exception raised by AWS Elemental MediaConnect. See the error message and
// documentation for the operation for more information on the cause of this
// exception.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconnect-2018-11-14/DescribeFlow
func (c *MediaConnect) DescribeFlow(input *DescribeFlowInput) (*DescribeFlowOutput, error) {
req, out := c.DescribeFlowRequest(input)
return out, req.Send()
}
// DescribeFlowWithContext is the same as DescribeFlow with the addition of
// the ability to pass a context and additional request options.
//
// See DescribeFlow for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *MediaConnect) DescribeFlowWithContext(ctx aws.Context, input *DescribeFlowInput, opts ...request.Option) (*DescribeFlowOutput, error) {
req, out := c.DescribeFlowRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opGrantFlowEntitlements = "GrantFlowEntitlements"
// GrantFlowEntitlementsRequest generates a "aws/request.Request" representing the
// client's request for the GrantFlowEntitlements operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See GrantFlowEntitlements for more information on using the GrantFlowEntitlements
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the GrantFlowEntitlementsRequest method.
// req, resp := client.GrantFlowEntitlementsRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconnect-2018-11-14/GrantFlowEntitlements
func (c *MediaConnect) GrantFlowEntitlementsRequest(input *GrantFlowEntitlementsInput) (req *request.Request, output *GrantFlowEntitlementsOutput) {
op := &request.Operation{
Name: opGrantFlowEntitlements,
HTTPMethod: "POST",
HTTPPath: "/v1/flows/{flowArn}/entitlements",
}
if input == nil {
input = &GrantFlowEntitlementsInput{}
}
output = &GrantFlowEntitlementsOutput{}
req = c.newRequest(op, input, output)
return
}
// GrantFlowEntitlements API operation for AWS MediaConnect.
//
// Grants entitlements to an existing flow.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS MediaConnect's
// API operation GrantFlowEntitlements for usage and error information.
//
// Returned Error Codes:
// * ErrCodeGrantFlowEntitlements420Exception "GrantFlowEntitlements420Exception"
// Exception raised by AWS Elemental MediaConnect. See the error message and
// documentation for the operation for more information on the cause of this
// exception.
//
// * ErrCodeBadRequestException "BadRequestException"
// Exception raised by AWS Elemental MediaConnect. See the error message and
// documentation for the operation for more information on the cause of this
// exception.
//
// * ErrCodeInternalServerErrorException "InternalServerErrorException"
// Exception raised by AWS Elemental MediaConnect. See the error message and
// documentation for the operation for more information on the cause of this
// exception.
//
// * ErrCodeForbiddenException "ForbiddenException"
// Exception raised by AWS Elemental MediaConnect. See the error message and
// documentation for the operation for more information on the cause of this
// exception.
//
// * ErrCodeNotFoundException "NotFoundException"
// Exception raised by AWS Elemental MediaConnect. See the error message and
// documentation for the operation for more information on the cause of this
// exception.
//
// * ErrCodeServiceUnavailableException "ServiceUnavailableException"
// Exception raised by AWS Elemental MediaConnect. See the error message and
// documentation for the operation for more information on the cause of this
// exception.
//
// * ErrCodeTooManyRequestsException "TooManyRequestsException"
// Exception raised by AWS Elemental MediaConnect. See the error message and
// documentation for the operation for more information on the cause of this
// exception.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconnect-2018-11-14/GrantFlowEntitlements
func (c *MediaConnect) GrantFlowEntitlements(input *GrantFlowEntitlementsInput) (*GrantFlowEntitlementsOutput, error) {
req, out := c.GrantFlowEntitlementsRequest(input)
return out, req.Send()
}
// GrantFlowEntitlementsWithContext is the same as GrantFlowEntitlements with the addition of
// the ability to pass a context and additional request options.
//
// See GrantFlowEntitlements for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *MediaConnect) GrantFlowEntitlementsWithContext(ctx aws.Context, input *GrantFlowEntitlementsInput, opts ...request.Option) (*GrantFlowEntitlementsOutput, error) {
req, out := c.GrantFlowEntitlementsRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opListEntitlements = "ListEntitlements"
// ListEntitlementsRequest generates a "aws/request.Request" representing the
// client's request for the ListEntitlements operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See ListEntitlements for more information on using the ListEntitlements
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the ListEntitlementsRequest method.
// req, resp := client.ListEntitlementsRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconnect-2018-11-14/ListEntitlements
func (c *MediaConnect) ListEntitlementsRequest(input *ListEntitlementsInput) (req *request.Request, output *ListEntitlementsOutput) {
op := &request.Operation{
Name: opListEntitlements,
HTTPMethod: "GET",
HTTPPath: "/v1/entitlements",
}
if input == nil {
input = &ListEntitlementsInput{}
}
output = &ListEntitlementsOutput{}
req = c.newRequest(op, input, output)
return
}
// ListEntitlements API operation for AWS MediaConnect.
//
// Displays a list of all entitlements that have been granted to this account.
// This request returns 20 results per page.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS MediaConnect's
// API operation ListEntitlements for usage and error information.
//
// Returned Error Codes:
// * ErrCodeServiceUnavailableException "ServiceUnavailableException"
// Exception raised by AWS Elemental MediaConnect. See the error message and
// documentation for the operation for more information on the cause of this
// exception.
//
// * ErrCodeTooManyRequestsException "TooManyRequestsException"
// Exception raised by AWS Elemental MediaConnect. See the error message and
// documentation for the operation for more information on the cause of this
// exception.
//
// * ErrCodeBadRequestException "BadRequestException"
// Exception raised by AWS Elemental MediaConnect. See the error message and
// documentation for the operation for more information on the cause of this
// exception.
//
// * ErrCodeInternalServerErrorException "InternalServerErrorException"
// Exception raised by AWS Elemental MediaConnect. See the error message and
// documentation for the operation for more information on the cause of this
// exception.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconnect-2018-11-14/ListEntitlements
func (c *MediaConnect) ListEntitlements(input *ListEntitlementsInput) (*ListEntitlementsOutput, error) {
req, out := c.ListEntitlementsRequest(input)
return out, req.Send()
}
// ListEntitlementsWithContext is the same as ListEntitlements with the addition of
// the ability to pass a context and additional request options.
//
// See ListEntitlements for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *MediaConnect) ListEntitlementsWithContext(ctx aws.Context, input *ListEntitlementsInput, opts ...request.Option) (*ListEntitlementsOutput, error) {
req, out := c.ListEntitlementsRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opListFlows = "ListFlows"
// ListFlowsRequest generates a "aws/request.Request" representing the
// client's request for the ListFlows operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See ListFlows for more information on using the ListFlows
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the ListFlowsRequest method.
// req, resp := client.ListFlowsRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconnect-2018-11-14/ListFlows
func (c *MediaConnect) ListFlowsRequest(input *ListFlowsInput) (req *request.Request, output *ListFlowsOutput) {
op := &request.Operation{
Name: opListFlows,
HTTPMethod: "GET",
HTTPPath: "/v1/flows",
Paginator: &request.Paginator{
InputTokens: []string{"NextToken"},
OutputTokens: []string{"NextToken"},
LimitToken: "MaxResults",
TruncationToken: "",
},
}
if input == nil {
input = &ListFlowsInput{}
}
output = &ListFlowsOutput{}
req = c.newRequest(op, input, output)
return
}
// ListFlows API operation for AWS MediaConnect.
//
// Displays a list of flows that are associated with this account. This request
// returns a paginated result.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS MediaConnect's
// API operation ListFlows for usage and error information.
//
// Returned Error Codes:
// * ErrCodeServiceUnavailableException "ServiceUnavailableException"
// Exception raised by AWS Elemental MediaConnect. See the error message and
// documentation for the operation for more information on the cause of this
// exception.
//
// * ErrCodeTooManyRequestsException "TooManyRequestsException"
// Exception raised by AWS Elemental MediaConnect. See the error message and
// documentation for the operation for more information on the cause of this
// exception.
//
// * ErrCodeBadRequestException "BadRequestException"
// Exception raised by AWS Elemental MediaConnect. See the error message and
// documentation for the operation for more information on the cause of this
// exception.
//
// * ErrCodeInternalServerErrorException "InternalServerErrorException"
// Exception raised by AWS Elemental MediaConnect. See the error message and
// documentation for the operation for more information on the cause of this
// exception.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconnect-2018-11-14/ListFlows
func (c *MediaConnect) ListFlows(input *ListFlowsInput) (*ListFlowsOutput, error) {
req, out := c.ListFlowsRequest(input)
return out, req.Send()
}
// ListFlowsWithContext is the same as ListFlows with the addition of
// the ability to pass a context and additional request options.
//
// See ListFlows for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *MediaConnect) ListFlowsWithContext(ctx aws.Context, input *ListFlowsInput, opts ...request.Option) (*ListFlowsOutput, error) {
req, out := c.ListFlowsRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
// ListFlowsPages iterates over the pages of a ListFlows operation,
// calling the "fn" function with the response data for each page. To stop
// iterating, return false from the fn function.
//
// See ListFlows method for more information on how to use this operation.
//
// Note: This operation can generate multiple requests to a service.
//
// // Example iterating over at most 3 pages of a ListFlows operation.
// pageNum := 0
// err := client.ListFlowsPages(params,
// func(page *ListFlowsOutput, lastPage bool) bool {
// pageNum++
// fmt.Println(page)
// return pageNum <= 3
// })
//
func (c *MediaConnect) ListFlowsPages(input *ListFlowsInput, fn func(*ListFlowsOutput, bool) bool) error {
return c.ListFlowsPagesWithContext(aws.BackgroundContext(), input, fn)
}
// ListFlowsPagesWithContext same as ListFlowsPages except
// it takes a Context and allows setting request options on the pages.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *MediaConnect) ListFlowsPagesWithContext(ctx aws.Context, input *ListFlowsInput, fn func(*ListFlowsOutput, bool) bool, opts ...request.Option) error {
p := request.Pagination{
NewRequest: func() (*request.Request, error) {
var inCpy *ListFlowsInput
if input != nil {
tmp := *input
inCpy = &tmp
}
req, _ := c.ListFlowsRequest(inCpy)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return req, nil
},
}
cont := true
for p.Next() && cont {
cont = fn(p.Page().(*ListFlowsOutput), !p.HasNextPage())
}
return p.Err()
}
const opRemoveFlowOutput = "RemoveFlowOutput"
// RemoveFlowOutputRequest generates a "aws/request.Request" representing the
// client's request for the RemoveFlowOutput operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See RemoveFlowOutput for more information on using the RemoveFlowOutput
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the RemoveFlowOutputRequest method.
// req, resp := client.RemoveFlowOutputRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconnect-2018-11-14/RemoveFlowOutput
func (c *MediaConnect) RemoveFlowOutputRequest(input *RemoveFlowOutputInput) (req *request.Request, output *RemoveFlowOutputOutput) {
op := &request.Operation{
Name: opRemoveFlowOutput,
HTTPMethod: "DELETE",
HTTPPath: "/v1/flows/{flowArn}/outputs/{outputArn}",
}
if input == nil {
input = &RemoveFlowOutputInput{}
}
output = &RemoveFlowOutputOutput{}
req = c.newRequest(op, input, output)
return
}
// RemoveFlowOutput API operation for AWS MediaConnect.
//
// Removes an output from an existing flow. This request can be made only on
// an output that does not have an entitlement associated with it. If the output
// has an entitlement, you must revoke the entitlement instead. When an entitlement
// is revoked from a flow, the service automatically removes the associated
// output.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS MediaConnect's
// API operation RemoveFlowOutput for usage and error information.
//
// Returned Error Codes:
// * ErrCodeBadRequestException "BadRequestException"
// Exception raised by AWS Elemental MediaConnect. See the error message and
// documentation for the operation for more information on the cause of this
// exception.
//
// * ErrCodeInternalServerErrorException "InternalServerErrorException"
// Exception raised by AWS Elemental MediaConnect. See the error message and
// documentation for the operation for more information on the cause of this
// exception.
//
// * ErrCodeForbiddenException "ForbiddenException"
// Exception raised by AWS Elemental MediaConnect. See the error message and
// documentation for the operation for more information on the cause of this
// exception.
//
// * ErrCodeNotFoundException "NotFoundException"
// Exception raised by AWS Elemental MediaConnect. See the error message and
// documentation for the operation for more information on the cause of this
// exception.
//
// * ErrCodeServiceUnavailableException "ServiceUnavailableException"
// Exception raised by AWS Elemental MediaConnect. See the error message and
// documentation for the operation for more information on the cause of this
// exception.
//
// * ErrCodeTooManyRequestsException "TooManyRequestsException"
// Exception raised by AWS Elemental MediaConnect. See the error message and
// documentation for the operation for more information on the cause of this
// exception.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconnect-2018-11-14/RemoveFlowOutput
func (c *MediaConnect) RemoveFlowOutput(input *RemoveFlowOutputInput) (*RemoveFlowOutputOutput, error) {
req, out := c.RemoveFlowOutputRequest(input)
return out, req.Send()
}
// RemoveFlowOutputWithContext is the same as RemoveFlowOutput with the addition of
// the ability to pass a context and additional request options.
//
// See RemoveFlowOutput for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *MediaConnect) RemoveFlowOutputWithContext(ctx aws.Context, input *RemoveFlowOutputInput, opts ...request.Option) (*RemoveFlowOutputOutput, error) {
req, out := c.RemoveFlowOutputRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opRevokeFlowEntitlement = "RevokeFlowEntitlement"
// RevokeFlowEntitlementRequest generates a "aws/request.Request" representing the
// client's request for the RevokeFlowEntitlement operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See RevokeFlowEntitlement for more information on using the RevokeFlowEntitlement
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the RevokeFlowEntitlementRequest method.
// req, resp := client.RevokeFlowEntitlementRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconnect-2018-11-14/RevokeFlowEntitlement
func (c *MediaConnect) RevokeFlowEntitlementRequest(input *RevokeFlowEntitlementInput) (req *request.Request, output *RevokeFlowEntitlementOutput) {
op := &request.Operation{
Name: opRevokeFlowEntitlement,
HTTPMethod: "DELETE",
HTTPPath: "/v1/flows/{flowArn}/entitlements/{entitlementArn}",
}
if input == nil {
input = &RevokeFlowEntitlementInput{}
}
output = &RevokeFlowEntitlementOutput{}
req = c.newRequest(op, input, output)
return
}
// RevokeFlowEntitlement API operation for AWS MediaConnect.
//
// Revokes an entitlement from a flow. Once an entitlement is revoked, the content
// becomes unavailable to the subscriber and the associated output is removed.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS MediaConnect's
// API operation RevokeFlowEntitlement for usage and error information.
//
// Returned Error Codes:
// * ErrCodeBadRequestException "BadRequestException"
// Exception raised by AWS Elemental MediaConnect. See the error message and
// documentation for the operation for more information on the cause of this
// exception.
//
// * ErrCodeInternalServerErrorException "InternalServerErrorException"
// Exception raised by AWS Elemental MediaConnect. See the error message and
// documentation for the operation for more information on the cause of this
// exception.
//
// * ErrCodeForbiddenException "ForbiddenException"
// Exception raised by AWS Elemental MediaConnect. See the error message and
// documentation for the operation for more information on the cause of this
// exception.
//
// * ErrCodeNotFoundException "NotFoundException"
// Exception raised by AWS Elemental MediaConnect. See the error message and
// documentation for the operation for more information on the cause of this
// exception.
//
// * ErrCodeServiceUnavailableException "ServiceUnavailableException"
// Exception raised by AWS Elemental MediaConnect. See the error message and
// documentation for the operation for more information on the cause of this
// exception.
//
// * ErrCodeTooManyRequestsException "TooManyRequestsException"
// Exception raised by AWS Elemental MediaConnect. See the error message and
// documentation for the operation for more information on the cause of this
// exception.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconnect-2018-11-14/RevokeFlowEntitlement
func (c *MediaConnect) RevokeFlowEntitlement(input *RevokeFlowEntitlementInput) (*RevokeFlowEntitlementOutput, error) {
req, out := c.RevokeFlowEntitlementRequest(input)
return out, req.Send()
}
// RevokeFlowEntitlementWithContext is the same as RevokeFlowEntitlement with the addition of
// the ability to pass a context and additional request options.
//
// See RevokeFlowEntitlement for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *MediaConnect) RevokeFlowEntitlementWithContext(ctx aws.Context, input *RevokeFlowEntitlementInput, opts ...request.Option) (*RevokeFlowEntitlementOutput, error) {
req, out := c.RevokeFlowEntitlementRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opStartFlow = "StartFlow"
// StartFlowRequest generates a "aws/request.Request" representing the
// client's request for the StartFlow operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See StartFlow for more information on using the StartFlow
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the StartFlowRequest method.
// req, resp := client.StartFlowRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconnect-2018-11-14/StartFlow
func (c *MediaConnect) StartFlowRequest(input *StartFlowInput) (req *request.Request, output *StartFlowOutput) {
op := &request.Operation{
Name: opStartFlow,
HTTPMethod: "POST",
HTTPPath: "/v1/flows/start/{flowArn}",
}
if input == nil {
input = &StartFlowInput{}
}
output = &StartFlowOutput{}
req = c.newRequest(op, input, output)
return
}
// StartFlow API operation for AWS MediaConnect.
//
// Starts a flow.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS MediaConnect's
// API operation StartFlow for usage and error information.
//
// Returned Error Codes:
// * ErrCodeBadRequestException "BadRequestException"
// Exception raised by AWS Elemental MediaConnect. See the error message and
// documentation for the operation for more information on the cause of this
// exception.
//
// * ErrCodeInternalServerErrorException "InternalServerErrorException"
// Exception raised by AWS Elemental MediaConnect. See the error message and
// documentation for the operation for more information on the cause of this
// exception.
//
// * ErrCodeForbiddenException "ForbiddenException"
// Exception raised by AWS Elemental MediaConnect. See the error message and
// documentation for the operation for more information on the cause of this
// exception.
//
// * ErrCodeNotFoundException "NotFoundException"
// Exception raised by AWS Elemental MediaConnect. See the error message and
// documentation for the operation for more information on the cause of this
// exception.
//
// * ErrCodeServiceUnavailableException "ServiceUnavailableException"
// Exception raised by AWS Elemental MediaConnect. See the error message and
// documentation for the operation for more information on the cause of this
// exception.
//
// * ErrCodeTooManyRequestsException "TooManyRequestsException"
// Exception raised by AWS Elemental MediaConnect. See the error message and
// documentation for the operation for more information on the cause of this
// exception.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconnect-2018-11-14/StartFlow
func (c *MediaConnect) StartFlow(input *StartFlowInput) (*StartFlowOutput, error) {
req, out := c.StartFlowRequest(input)
return out, req.Send()
}
// StartFlowWithContext is the same as StartFlow with the addition of
// the ability to pass a context and additional request options.
//
// See StartFlow for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *MediaConnect) StartFlowWithContext(ctx aws.Context, input *StartFlowInput, opts ...request.Option) (*StartFlowOutput, error) {
req, out := c.StartFlowRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opStopFlow = "StopFlow"
// StopFlowRequest generates a "aws/request.Request" representing the
// client's request for the StopFlow operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See StopFlow for more information on using the StopFlow
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the StopFlowRequest method.
// req, resp := client.StopFlowRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconnect-2018-11-14/StopFlow
func (c *MediaConnect) StopFlowRequest(input *StopFlowInput) (req *request.Request, output *StopFlowOutput) {
op := &request.Operation{
Name: opStopFlow,
HTTPMethod: "POST",
HTTPPath: "/v1/flows/stop/{flowArn}",
}
if input == nil {
input = &StopFlowInput{}
}
output = &StopFlowOutput{}
req = c.newRequest(op, input, output)
return
}
// StopFlow API operation for AWS MediaConnect.
//
// Stops a flow.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS MediaConnect's
// API operation StopFlow for usage and error information.
//
// Returned Error Codes:
// * ErrCodeBadRequestException "BadRequestException"
// Exception raised by AWS Elemental MediaConnect. See the error message and
// documentation for the operation for more information on the cause of this
// exception.
//
// * ErrCodeInternalServerErrorException "InternalServerErrorException"
// Exception raised by AWS Elemental MediaConnect. See the error message and
// documentation for the operation for more information on the cause of this
// exception.
//
// * ErrCodeForbiddenException "ForbiddenException"
// Exception raised by AWS Elemental MediaConnect. See the error message and
// documentation for the operation for more information on the cause of this
// exception.
//
// * ErrCodeNotFoundException "NotFoundException"
// Exception raised by AWS Elemental MediaConnect. See the error message and
// documentation for the operation for more information on the cause of this
// exception.
//
// * ErrCodeServiceUnavailableException "ServiceUnavailableException"
// Exception raised by AWS Elemental MediaConnect. See the error message and
// documentation for the operation for more information on the cause of this
// exception.
//
// * ErrCodeTooManyRequestsException "TooManyRequestsException"
// Exception raised by AWS Elemental MediaConnect. See the error message and
// documentation for the operation for more information on the cause of this
// exception.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconnect-2018-11-14/StopFlow
func (c *MediaConnect) StopFlow(input *StopFlowInput) (*StopFlowOutput, error) {
req, out := c.StopFlowRequest(input)
return out, req.Send()
}
// StopFlowWithContext is the same as StopFlow with the addition of
// the ability to pass a context and additional request options.
//
// See StopFlow for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *MediaConnect) StopFlowWithContext(ctx aws.Context, input *StopFlowInput, opts ...request.Option) (*StopFlowOutput, error) {
req, out := c.StopFlowRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opUpdateFlowEntitlement = "UpdateFlowEntitlement"
// UpdateFlowEntitlementRequest generates a "aws/request.Request" representing the
// client's request for the UpdateFlowEntitlement operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See UpdateFlowEntitlement for more information on using the UpdateFlowEntitlement
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the UpdateFlowEntitlementRequest method.
// req, resp := client.UpdateFlowEntitlementRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconnect-2018-11-14/UpdateFlowEntitlement
func (c *MediaConnect) UpdateFlowEntitlementRequest(input *UpdateFlowEntitlementInput) (req *request.Request, output *UpdateFlowEntitlementOutput) {
op := &request.Operation{
Name: opUpdateFlowEntitlement,
HTTPMethod: "PUT",
HTTPPath: "/v1/flows/{flowArn}/entitlements/{entitlementArn}",
}
if input == nil {
input = &UpdateFlowEntitlementInput{}
}
output = &UpdateFlowEntitlementOutput{}
req = c.newRequest(op, input, output)
return
}
// UpdateFlowEntitlement API operation for AWS MediaConnect.
//
// You can change an entitlement's description, subscribers, and encryption.
// If you change the subscribers, the service will remove the outputs that are
// are used by the subscribers that are removed.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS MediaConnect's
// API operation UpdateFlowEntitlement for usage and error information.
//
// Returned Error Codes:
// * ErrCodeBadRequestException "BadRequestException"
// Exception raised by AWS Elemental MediaConnect. See the error message and
// documentation for the operation for more information on the cause of this
// exception.
//
// * ErrCodeInternalServerErrorException "InternalServerErrorException"
// Exception raised by AWS Elemental MediaConnect. See the error message and
// documentation for the operation for more information on the cause of this
// exception.
//
// * ErrCodeForbiddenException "ForbiddenException"
// Exception raised by AWS Elemental MediaConnect. See the error message and
// documentation for the operation for more information on the cause of this
// exception.
//
// * ErrCodeNotFoundException "NotFoundException"
// Exception raised by AWS Elemental MediaConnect. See the error message and
// documentation for the operation for more information on the cause of this
// exception.
//
// * ErrCodeServiceUnavailableException "ServiceUnavailableException"
// Exception raised by AWS Elemental MediaConnect. See the error message and
// documentation for the operation for more information on the cause of this
// exception.
//
// * ErrCodeTooManyRequestsException "TooManyRequestsException"
// Exception raised by AWS Elemental MediaConnect. See the error message and
// documentation for the operation for more information on the cause of this
// exception.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconnect-2018-11-14/UpdateFlowEntitlement
func (c *MediaConnect) UpdateFlowEntitlement(input *UpdateFlowEntitlementInput) (*UpdateFlowEntitlementOutput, error) {
req, out := c.UpdateFlowEntitlementRequest(input)
return out, req.Send()
}
// UpdateFlowEntitlementWithContext is the same as UpdateFlowEntitlement with the addition of
// the ability to pass a context and additional request options.
//
// See UpdateFlowEntitlement for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *MediaConnect) UpdateFlowEntitlementWithContext(ctx aws.Context, input *UpdateFlowEntitlementInput, opts ...request.Option) (*UpdateFlowEntitlementOutput, error) {
req, out := c.UpdateFlowEntitlementRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opUpdateFlowOutput = "UpdateFlowOutput"
// UpdateFlowOutputRequest generates a "aws/request.Request" representing the
// client's request for the UpdateFlowOutput operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See UpdateFlowOutput for more information on using the UpdateFlowOutput
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the UpdateFlowOutputRequest method.
// req, resp := client.UpdateFlowOutputRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconnect-2018-11-14/UpdateFlowOutput
func (c *MediaConnect) UpdateFlowOutputRequest(input *UpdateFlowOutputInput) (req *request.Request, output *UpdateFlowOutputOutput) {
op := &request.Operation{
Name: opUpdateFlowOutput,
HTTPMethod: "PUT",
HTTPPath: "/v1/flows/{flowArn}/outputs/{outputArn}",
}
if input == nil {
input = &UpdateFlowOutputInput{}
}
output = &UpdateFlowOutputOutput{}
req = c.newRequest(op, input, output)
return
}
// UpdateFlowOutput API operation for AWS MediaConnect.
//
// Updates an existing flow output.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS MediaConnect's
// API operation UpdateFlowOutput for usage and error information.
//
// Returned Error Codes:
// * ErrCodeBadRequestException "BadRequestException"
// Exception raised by AWS Elemental MediaConnect. See the error message and
// documentation for the operation for more information on the cause of this
// exception.
//
// * ErrCodeInternalServerErrorException "InternalServerErrorException"
// Exception raised by AWS Elemental MediaConnect. See the error message and
// documentation for the operation for more information on the cause of this
// exception.
//
// * ErrCodeForbiddenException "ForbiddenException"
// Exception raised by AWS Elemental MediaConnect. See the error message and
// documentation for the operation for more information on the cause of this
// exception.
//
// * ErrCodeNotFoundException "NotFoundException"
// Exception raised by AWS Elemental MediaConnect. See the error message and
// documentation for the operation for more information on the cause of this
// exception.
//
// * ErrCodeServiceUnavailableException "ServiceUnavailableException"
// Exception raised by AWS Elemental MediaConnect. See the error message and
// documentation for the operation for more information on the cause of this
// exception.
//
// * ErrCodeTooManyRequestsException "TooManyRequestsException"
// Exception raised by AWS Elemental MediaConnect. See the error message and
// documentation for the operation for more information on the cause of this
// exception.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconnect-2018-11-14/UpdateFlowOutput
func (c *MediaConnect) UpdateFlowOutput(input *UpdateFlowOutputInput) (*UpdateFlowOutputOutput, error) {
req, out := c.UpdateFlowOutputRequest(input)
return out, req.Send()
}
// UpdateFlowOutputWithContext is the same as UpdateFlowOutput with the addition of
// the ability to pass a context and additional request options.
//
// See UpdateFlowOutput for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *MediaConnect) UpdateFlowOutputWithContext(ctx aws.Context, input *UpdateFlowOutputInput, opts ...request.Option) (*UpdateFlowOutputOutput, error) {
req, out := c.UpdateFlowOutputRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opUpdateFlowSource = "UpdateFlowSource"
// UpdateFlowSourceRequest generates a "aws/request.Request" representing the
// client's request for the UpdateFlowSource operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See UpdateFlowSource for more information on using the UpdateFlowSource
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the UpdateFlowSourceRequest method.
// req, resp := client.UpdateFlowSourceRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconnect-2018-11-14/UpdateFlowSource
func (c *MediaConnect) UpdateFlowSourceRequest(input *UpdateFlowSourceInput) (req *request.Request, output *UpdateFlowSourceOutput) {
op := &request.Operation{
Name: opUpdateFlowSource,
HTTPMethod: "PUT",
HTTPPath: "/v1/flows/{flowArn}/source/{sourceArn}",
}
if input == nil {
input = &UpdateFlowSourceInput{}
}
output = &UpdateFlowSourceOutput{}
req = c.newRequest(op, input, output)
return
}
// UpdateFlowSource API operation for AWS MediaConnect.
//
// Updates the source of a flow.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS MediaConnect's
// API operation UpdateFlowSource for usage and error information.
//
// Returned Error Codes:
// * ErrCodeBadRequestException "BadRequestException"
// Exception raised by AWS Elemental MediaConnect. See the error message and
// documentation for the operation for more information on the cause of this
// exception.
//
// * ErrCodeInternalServerErrorException "InternalServerErrorException"
// Exception raised by AWS Elemental MediaConnect. See the error message and
// documentation for the operation for more information on the cause of this
// exception.
//
// * ErrCodeForbiddenException "ForbiddenException"
// Exception raised by AWS Elemental MediaConnect. See the error message and
// documentation for the operation for more information on the cause of this
// exception.
//
// * ErrCodeNotFoundException "NotFoundException"
// Exception raised by AWS Elemental MediaConnect. See the error message and
// documentation for the operation for more information on the cause of this
// exception.
//
// * ErrCodeServiceUnavailableException "ServiceUnavailableException"
// Exception raised by AWS Elemental MediaConnect. See the error message and
// documentation for the operation for more information on the cause of this
// exception.
//
// * ErrCodeTooManyRequestsException "TooManyRequestsException"
// Exception raised by AWS Elemental MediaConnect. See the error message and
// documentation for the operation for more information on the cause of this
// exception.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconnect-2018-11-14/UpdateFlowSource
func (c *MediaConnect) UpdateFlowSource(input *UpdateFlowSourceInput) (*UpdateFlowSourceOutput, error) {
req, out := c.UpdateFlowSourceRequest(input)
return out, req.Send()
}
// UpdateFlowSourceWithContext is the same as UpdateFlowSource with the addition of
// the ability to pass a context and additional request options.
//
// See UpdateFlowSource for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *MediaConnect) UpdateFlowSourceWithContext(ctx aws.Context, input *UpdateFlowSourceInput, opts ...request.Option) (*UpdateFlowSourceOutput, error) {
req, out := c.UpdateFlowSourceRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
// Adds outputs to an existing flow. You can create up to 20 outputs per flow.
type AddFlowOutputsInput struct {
_ struct{} `type:"structure"`
// FlowArn is a required field
FlowArn *string `location:"uri" locationName:"flowArn" type:"string" required:"true"`
// A list of outputs that you want to add.
//
// Outputs is a required field
Outputs []*AddOutputRequest `locationName:"outputs" type:"list" required:"true"`
}
// String returns the string representation
func (s AddFlowOutputsInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s AddFlowOutputsInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *AddFlowOutputsInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "AddFlowOutputsInput"}
if s.FlowArn == nil {
invalidParams.Add(request.NewErrParamRequired("FlowArn"))
}
if s.FlowArn != nil && len(*s.FlowArn) < 1 {
invalidParams.Add(request.NewErrParamMinLen("FlowArn", 1))
}
if s.Outputs == nil {
invalidParams.Add(request.NewErrParamRequired("Outputs"))
}
if s.Outputs != nil {
for i, v := range s.Outputs {
if v == nil {
continue
}
if err := v.Validate(); err != nil {
invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Outputs", i), err.(request.ErrInvalidParams))
}
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetFlowArn sets the FlowArn field's value.
func (s *AddFlowOutputsInput) SetFlowArn(v string) *AddFlowOutputsInput {
s.FlowArn = &v
return s
}
// SetOutputs sets the Outputs field's value.
func (s *AddFlowOutputsInput) SetOutputs(v []*AddOutputRequest) *AddFlowOutputsInput {
s.Outputs = v
return s
}
// The result of a successful AddOutput request. The response includes the details
// of the newly added outputs.
type AddFlowOutputsOutput struct {
_ struct{} `type:"structure"`
// The ARN of the flow that these outputs were added to.
FlowArn *string `locationName:"flowArn" type:"string"`
// The details of the newly added outputs.
Outputs []*Output `locationName:"outputs" type:"list"`
}
// String returns the string representation
func (s AddFlowOutputsOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s AddFlowOutputsOutput) GoString() string {
return s.String()
}
// SetFlowArn sets the FlowArn field's value.
func (s *AddFlowOutputsOutput) SetFlowArn(v string) *AddFlowOutputsOutput {
s.FlowArn = &v
return s
}
// SetOutputs sets the Outputs field's value.
func (s *AddFlowOutputsOutput) SetOutputs(v []*Output) *AddFlowOutputsOutput {
s.Outputs = v
return s
}
// The output that you want to add to this flow.
type AddOutputRequest struct {
_ struct{} `type:"structure"`
// A description of the output. This description appears only on the AWS Elemental
// MediaConnect console and will not be seen by the end user.
Description *string `locationName:"description" type:"string"`
// The IP address from which video will be sent to output destinations.
//
// Destination is a required field
Destination *string `locationName:"destination" type:"string" required:"true"`
// The type of key used for the encryption. If no keyType is provided, the service
// will use the default setting (static-key).
Encryption *Encryption `locationName:"encryption" type:"structure"`
// The maximum latency in milliseconds for Zixi-based streams.
MaxLatency *int64 `locationName:"maxLatency" type:"integer"`
// The name of the output. This value must be unique within the current flow.
Name *string `locationName:"name" type:"string"`
// The port to use when content is distributed to this output.
//
// Port is a required field
Port *int64 `locationName:"port" type:"integer" required:"true"`
// The protocol to use for the output.
//
// Protocol is a required field
Protocol *string `locationName:"protocol" type:"string" required:"true" enum:"Protocol"`
// The smoothing latency in milliseconds for RTP and RTP-FEC streams.
SmoothingLatency *int64 `locationName:"smoothingLatency" type:"integer"`
// The stream ID that you want to use for this transport. This parameter applies
// only to Zixi-based streams.
StreamId *string `locationName:"streamId" type:"string"`
}
// String returns the string representation
func (s AddOutputRequest) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s AddOutputRequest) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *AddOutputRequest) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "AddOutputRequest"}
if s.Destination == nil {
invalidParams.Add(request.NewErrParamRequired("Destination"))
}
if s.Port == nil {
invalidParams.Add(request.NewErrParamRequired("Port"))
}
if s.Protocol == nil {
invalidParams.Add(request.NewErrParamRequired("Protocol"))
}
if s.Encryption != nil {
if err := s.Encryption.Validate(); err != nil {
invalidParams.AddNested("Encryption", err.(request.ErrInvalidParams))
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetDescription sets the Description field's value.
func (s *AddOutputRequest) SetDescription(v string) *AddOutputRequest {
s.Description = &v
return s
}
// SetDestination sets the Destination field's value.
func (s *AddOutputRequest) SetDestination(v string) *AddOutputRequest {
s.Destination = &v
return s
}
// SetEncryption sets the Encryption field's value.
func (s *AddOutputRequest) SetEncryption(v *Encryption) *AddOutputRequest {
s.Encryption = v
return s
}
// SetMaxLatency sets the MaxLatency field's value.
func (s *AddOutputRequest) SetMaxLatency(v int64) *AddOutputRequest {
s.MaxLatency = &v
return s
}
// SetName sets the Name field's value.
func (s *AddOutputRequest) SetName(v string) *AddOutputRequest {
s.Name = &v
return s
}
// SetPort sets the Port field's value.
func (s *AddOutputRequest) SetPort(v int64) *AddOutputRequest {
s.Port = &v
return s
}
// SetProtocol sets the Protocol field's value.
func (s *AddOutputRequest) SetProtocol(v string) *AddOutputRequest {
s.Protocol = &v
return s
}
// SetSmoothingLatency sets the SmoothingLatency field's value.
func (s *AddOutputRequest) SetSmoothingLatency(v int64) *AddOutputRequest {
s.SmoothingLatency = &v
return s
}
// SetStreamId sets the StreamId field's value.
func (s *AddOutputRequest) SetStreamId(v string) *AddOutputRequest {
s.StreamId = &v
return s
}
// Creates a new flow. The request must include one source. The request optionally
// can include outputs (up to 20) and one entitlement.
type CreateFlowInput struct {
_ struct{} `type:"structure"`
// The Availability Zone that you want to create the flow in. These options
// are limited to the Availability Zones within the current AWS Region.
AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
// The entitlements that you want to grant on a flow.
Entitlements []*GrantEntitlementRequest `locationName:"entitlements" type:"list"`
// The name of the flow.
//
// Name is a required field
Name *string `locationName:"name" type:"string" required:"true"`
// The outputs that you want to add to this flow.
Outputs []*AddOutputRequest `locationName:"outputs" type:"list"`
// The settings for the source of the flow.
//
// Source is a required field
Source *SetSourceRequest `locationName:"source" type:"structure" required:"true"`
}
// String returns the string representation
func (s CreateFlowInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CreateFlowInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *CreateFlowInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "CreateFlowInput"}
if s.Name == nil {
invalidParams.Add(request.NewErrParamRequired("Name"))
}
if s.Source == nil {
invalidParams.Add(request.NewErrParamRequired("Source"))
}
if s.Entitlements != nil {
for i, v := range s.Entitlements {
if v == nil {
continue
}
if err := v.Validate(); err != nil {
invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Entitlements", i), err.(request.ErrInvalidParams))
}
}
}
if s.Outputs != nil {
for i, v := range s.Outputs {
if v == nil {
continue
}
if err := v.Validate(); err != nil {
invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Outputs", i), err.(request.ErrInvalidParams))
}
}
}
if s.Source != nil {
if err := s.Source.Validate(); err != nil {
invalidParams.AddNested("Source", err.(request.ErrInvalidParams))
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAvailabilityZone sets the AvailabilityZone field's value.
func (s *CreateFlowInput) SetAvailabilityZone(v string) *CreateFlowInput {
s.AvailabilityZone = &v
return s
}
// SetEntitlements sets the Entitlements field's value.
func (s *CreateFlowInput) SetEntitlements(v []*GrantEntitlementRequest) *CreateFlowInput {
s.Entitlements = v
return s
}
// SetName sets the Name field's value.
func (s *CreateFlowInput) SetName(v string) *CreateFlowInput {
s.Name = &v
return s
}
// SetOutputs sets the Outputs field's value.
func (s *CreateFlowInput) SetOutputs(v []*AddOutputRequest) *CreateFlowInput {
s.Outputs = v
return s
}
// SetSource sets the Source field's value.
func (s *CreateFlowInput) SetSource(v *SetSourceRequest) *CreateFlowInput {
s.Source = v
return s
}
// The result of a successful CreateFlow request.
type CreateFlowOutput struct {
_ struct{} `type:"structure"`
// The settings for a flow, including its source, outputs, and entitlements.
Flow *Flow `locationName:"flow" type:"structure"`
}
// String returns the string representation
func (s CreateFlowOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CreateFlowOutput) GoString() string {
return s.String()
}
// SetFlow sets the Flow field's value.
func (s *CreateFlowOutput) SetFlow(v *Flow) *CreateFlowOutput {
s.Flow = v
return s
}
type DeleteFlowInput struct {
_ struct{} `type:"structure"`
// FlowArn is a required field
FlowArn *string `location:"uri" locationName:"flowArn" type:"string" required:"true"`
}
// String returns the string representation
func (s DeleteFlowInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeleteFlowInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *DeleteFlowInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "DeleteFlowInput"}
if s.FlowArn == nil {
invalidParams.Add(request.NewErrParamRequired("FlowArn"))
}
if s.FlowArn != nil && len(*s.FlowArn) < 1 {
invalidParams.Add(request.NewErrParamMinLen("FlowArn", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetFlowArn sets the FlowArn field's value.
func (s *DeleteFlowInput) SetFlowArn(v string) *DeleteFlowInput {
s.FlowArn = &v
return s
}
// The result of a successful DeleteFlow request.
type DeleteFlowOutput struct {
_ struct{} `type:"structure"`
// The ARN of the flow that was deleted.
FlowArn *string `locationName:"flowArn" type:"string"`
// The status of the flow when the DeleteFlow process begins.
Status *string `locationName:"status" type:"string" enum:"Status"`
}
// String returns the string representation
func (s DeleteFlowOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeleteFlowOutput) GoString() string {
return s.String()
}
// SetFlowArn sets the FlowArn field's value.
func (s *DeleteFlowOutput) SetFlowArn(v string) *DeleteFlowOutput {
s.FlowArn = &v
return s
}
// SetStatus sets the Status field's value.
func (s *DeleteFlowOutput) SetStatus(v string) *DeleteFlowOutput {
s.Status = &v
return s
}
type DescribeFlowInput struct {
_ struct{} `type:"structure"`
// FlowArn is a required field
FlowArn *string `location:"uri" locationName:"flowArn" type:"string" required:"true"`
}
// String returns the string representation
func (s DescribeFlowInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeFlowInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *DescribeFlowInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "DescribeFlowInput"}
if s.FlowArn == nil {
invalidParams.Add(request.NewErrParamRequired("FlowArn"))
}
if s.FlowArn != nil && len(*s.FlowArn) < 1 {
invalidParams.Add(request.NewErrParamMinLen("FlowArn", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetFlowArn sets the FlowArn field's value.
func (s *DescribeFlowInput) SetFlowArn(v string) *DescribeFlowInput {
s.FlowArn = &v
return s
}
// The result of a successful DescribeFlow request.
type DescribeFlowOutput struct {
_ struct{} `type:"structure"`
// The settings for a flow, including its source, outputs, and entitlements.
Flow *Flow `locationName:"flow" type:"structure"`
// Messages that provide the state of the flow.
Messages *Messages `locationName:"messages" type:"structure"`
}
// String returns the string representation
func (s DescribeFlowOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeFlowOutput) GoString() string {
return s.String()
}
// SetFlow sets the Flow field's value.
func (s *DescribeFlowOutput) SetFlow(v *Flow) *DescribeFlowOutput {
s.Flow = v
return s
}
// SetMessages sets the Messages field's value.
func (s *DescribeFlowOutput) SetMessages(v *Messages) *DescribeFlowOutput {
s.Messages = v
return s
}
// Information about the encryption of the flow.
type Encryption struct {
_ struct{} `type:"structure"`
// The type of algorithm that is used for the encryption (such as aes128, aes192,
// or aes256).
//
// Algorithm is a required field
Algorithm *string `locationName:"algorithm" type:"string" required:"true" enum:"Algorithm"`
// The type of key that is used for the encryption. If no keyType is provided,
// the service will use the default setting (static-key).
KeyType *string `locationName:"keyType" type:"string" enum:"KeyType"`
// The ARN of the role that you created during setup (when you set up AWS Elemental
// MediaConnect as a trusted entity).
//
// RoleArn is a required field
RoleArn *string `locationName:"roleArn" type:"string" required:"true"`
// The ARN that was assigned to the secret that you created in AWS Secrets Manager
// to store the encryption key.
//
// SecretArn is a required field
SecretArn *string `locationName:"secretArn" type:"string" required:"true"`
}
// String returns the string representation
func (s Encryption) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s Encryption) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *Encryption) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "Encryption"}
if s.Algorithm == nil {
invalidParams.Add(request.NewErrParamRequired("Algorithm"))
}
if s.RoleArn == nil {
invalidParams.Add(request.NewErrParamRequired("RoleArn"))
}
if s.SecretArn == nil {
invalidParams.Add(request.NewErrParamRequired("SecretArn"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAlgorithm sets the Algorithm field's value.
func (s *Encryption) SetAlgorithm(v string) *Encryption {
s.Algorithm = &v
return s
}
// SetKeyType sets the KeyType field's value.
func (s *Encryption) SetKeyType(v string) *Encryption {
s.KeyType = &v
return s
}
// SetRoleArn sets the RoleArn field's value.
func (s *Encryption) SetRoleArn(v string) *Encryption {
s.RoleArn = &v
return s
}
// SetSecretArn sets the SecretArn field's value.
func (s *Encryption) SetSecretArn(v string) *Encryption {
s.SecretArn = &v
return s
}
// The settings for a flow entitlement.
type Entitlement struct {
_ struct{} `type:"structure"`
// A description of the entitlement.
Description *string `locationName:"description" type:"string"`
// The type of encryption that will be used on the output that is associated
// with this entitlement.
Encryption *Encryption `locationName:"encryption" type:"structure"`
// The ARN of the entitlement.
//
// EntitlementArn is a required field
EntitlementArn *string `locationName:"entitlementArn" type:"string" required:"true"`
// The name of the entitlement.
//
// Name is a required field
Name *string `locationName:"name" type:"string" required:"true"`
// The AWS account IDs that you want to share your content with. The receiving
// accounts (subscribers) will be allowed to create their own flow using your
// content as the source.
//
// Subscribers is a required field
Subscribers []*string `locationName:"subscribers" type:"list" required:"true"`
}
// String returns the string representation
func (s Entitlement) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s Entitlement) GoString() string {
return s.String()
}
// SetDescription sets the Description field's value.
func (s *Entitlement) SetDescription(v string) *Entitlement {
s.Description = &v
return s
}
// SetEncryption sets the Encryption field's value.
func (s *Entitlement) SetEncryption(v *Encryption) *Entitlement {
s.Encryption = v
return s
}
// SetEntitlementArn sets the EntitlementArn field's value.
func (s *Entitlement) SetEntitlementArn(v string) *Entitlement {
s.EntitlementArn = &v
return s
}
// SetName sets the Name field's value.
func (s *Entitlement) SetName(v string) *Entitlement {
s.Name = &v
return s
}
// SetSubscribers sets the Subscribers field's value.
func (s *Entitlement) SetSubscribers(v []*string) *Entitlement {
s.Subscribers = v
return s
}
// The settings for a flow, including its source, outputs, and entitlements.
type Flow struct {
_ struct{} `type:"structure"`
// The Availability Zone that you want to create the flow in. These options
// are limited to the Availability Zones within the current AWS.
//
// AvailabilityZone is a required field
AvailabilityZone *string `locationName:"availabilityZone" type:"string" required:"true"`
// A description of the flow. This value is not used or seen outside of the
// current AWS Elemental MediaConnect account.
Description *string `locationName:"description" type:"string"`
// The IP address from which video will be sent to output destinations.
EgressIp *string `locationName:"egressIp" type:"string"`
// The entitlements in this flow.
//
// Entitlements is a required field
Entitlements []*Entitlement `locationName:"entitlements" type:"list" required:"true"`
// The Amazon Resource Name (ARN), a unique identifier for any AWS resource,
// of the flow.
//
// FlowArn is a required field
FlowArn *string `locationName:"flowArn" type:"string" required:"true"`
// The name of the flow.
//
// Name is a required field
Name *string `locationName:"name" type:"string" required:"true"`
// The outputs in this flow.
//
// Outputs is a required field
Outputs []*Output `locationName:"outputs" type:"list" required:"true"`
// The settings for the source of the flow.
//
// Source is a required field
Source *Source `locationName:"source" type:"structure" required:"true"`
// The current status of the flow.
//
// Status is a required field
Status *string `locationName:"status" type:"string" required:"true" enum:"Status"`
}
// String returns the string representation
func (s Flow) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s Flow) GoString() string {
return s.String()
}
// SetAvailabilityZone sets the AvailabilityZone field's value.
func (s *Flow) SetAvailabilityZone(v string) *Flow {
s.AvailabilityZone = &v
return s
}
// SetDescription sets the Description field's value.
func (s *Flow) SetDescription(v string) *Flow {
s.Description = &v
return s
}
// SetEgressIp sets the EgressIp field's value.
func (s *Flow) SetEgressIp(v string) *Flow {
s.EgressIp = &v
return s
}
// SetEntitlements sets the Entitlements field's value.
func (s *Flow) SetEntitlements(v []*Entitlement) *Flow {
s.Entitlements = v
return s
}
// SetFlowArn sets the FlowArn field's value.
func (s *Flow) SetFlowArn(v string) *Flow {
s.FlowArn = &v
return s
}
// SetName sets the Name field's value.
func (s *Flow) SetName(v string) *Flow {
s.Name = &v
return s
}
// SetOutputs sets the Outputs field's value.
func (s *Flow) SetOutputs(v []*Output) *Flow {
s.Outputs = v
return s
}
// SetSource sets the Source field's value.
func (s *Flow) SetSource(v *Source) *Flow {
s.Source = v
return s
}
// SetStatus sets the Status field's value.
func (s *Flow) SetStatus(v string) *Flow {
s.Status = &v
return s
}
// The entitlements that you want to grant on a flow.
type GrantEntitlementRequest struct {
_ struct{} `type:"structure"`
// A description of the entitlement. This description appears only on the AWS
// Elemental MediaConnect console and will not be seen by the subscriber or
// end user.
Description *string `locationName:"description" type:"string"`
// The type of encryption that will be used on the output that is associated
// with this entitlement.
Encryption *Encryption `locationName:"encryption" type:"structure"`
// The name of the entitlement. This value must be unique within the current
// flow.
Name *string `locationName:"name" type:"string"`
// The AWS account IDs that you want to share your content with. The receiving
// accounts (subscribers) will be allowed to create their own flows using your
// content as the source.
//
// Subscribers is a required field
Subscribers []*string `locationName:"subscribers" type:"list" required:"true"`
}
// String returns the string representation
func (s GrantEntitlementRequest) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s GrantEntitlementRequest) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *GrantEntitlementRequest) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "GrantEntitlementRequest"}
if s.Subscribers == nil {
invalidParams.Add(request.NewErrParamRequired("Subscribers"))
}
if s.Encryption != nil {
if err := s.Encryption.Validate(); err != nil {
invalidParams.AddNested("Encryption", err.(request.ErrInvalidParams))
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetDescription sets the Description field's value.
func (s *GrantEntitlementRequest) SetDescription(v string) *GrantEntitlementRequest {
s.Description = &v
return s
}
// SetEncryption sets the Encryption field's value.
func (s *GrantEntitlementRequest) SetEncryption(v *Encryption) *GrantEntitlementRequest {
s.Encryption = v
return s
}
// SetName sets the Name field's value.
func (s *GrantEntitlementRequest) SetName(v string) *GrantEntitlementRequest {
s.Name = &v
return s
}
// SetSubscribers sets the Subscribers field's value.
func (s *GrantEntitlementRequest) SetSubscribers(v []*string) *GrantEntitlementRequest {
s.Subscribers = v
return s
}
// Grants an entitlement on a flow.
type GrantFlowEntitlementsInput struct {
_ struct{} `type:"structure"`
// The list of entitlements that you want to grant.
//
// Entitlements is a required field
Entitlements []*GrantEntitlementRequest `locationName:"entitlements" type:"list" required:"true"`
// FlowArn is a required field
FlowArn *string `location:"uri" locationName:"flowArn" type:"string" required:"true"`
}
// String returns the string representation
func (s GrantFlowEntitlementsInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s GrantFlowEntitlementsInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *GrantFlowEntitlementsInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "GrantFlowEntitlementsInput"}
if s.Entitlements == nil {
invalidParams.Add(request.NewErrParamRequired("Entitlements"))
}
if s.FlowArn == nil {
invalidParams.Add(request.NewErrParamRequired("FlowArn"))
}
if s.FlowArn != nil && len(*s.FlowArn) < 1 {
invalidParams.Add(request.NewErrParamMinLen("FlowArn", 1))
}
if s.Entitlements != nil {
for i, v := range s.Entitlements {
if v == nil {
continue
}
if err := v.Validate(); err != nil {
invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Entitlements", i), err.(request.ErrInvalidParams))
}
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetEntitlements sets the Entitlements field's value.
func (s *GrantFlowEntitlementsInput) SetEntitlements(v []*GrantEntitlementRequest) *GrantFlowEntitlementsInput {
s.Entitlements = v
return s
}
// SetFlowArn sets the FlowArn field's value.
func (s *GrantFlowEntitlementsInput) SetFlowArn(v string) *GrantFlowEntitlementsInput {
s.FlowArn = &v
return s
}
// The entitlements that were just granted.
type GrantFlowEntitlementsOutput struct {
_ struct{} `type:"structure"`
// The entitlements that were just granted.
Entitlements []*Entitlement `locationName:"entitlements" type:"list"`
// The ARN of the flow that these entitlements were granted to.
FlowArn *string `locationName:"flowArn" type:"string"`
}
// String returns the string representation
func (s GrantFlowEntitlementsOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s GrantFlowEntitlementsOutput) GoString() string {
return s.String()
}
// SetEntitlements sets the Entitlements field's value.
func (s *GrantFlowEntitlementsOutput) SetEntitlements(v []*Entitlement) *GrantFlowEntitlementsOutput {
s.Entitlements = v
return s
}
// SetFlowArn sets the FlowArn field's value.
func (s *GrantFlowEntitlementsOutput) SetFlowArn(v string) *GrantFlowEntitlementsOutput {
s.FlowArn = &v
return s
}
type ListEntitlementsInput struct {
_ struct{} `type:"structure"`
MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"`
NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
}
// String returns the string representation
func (s ListEntitlementsInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListEntitlementsInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *ListEntitlementsInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "ListEntitlementsInput"}
if s.MaxResults != nil && *s.MaxResults < 1 {
invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetMaxResults sets the MaxResults field's value.
func (s *ListEntitlementsInput) SetMaxResults(v int64) *ListEntitlementsInput {
s.MaxResults = &v
return s
}
// SetNextToken sets the NextToken field's value.
func (s *ListEntitlementsInput) SetNextToken(v string) *ListEntitlementsInput {
s.NextToken = &v
return s
}
// The result of a successful ListEntitlements request. The response includes
// the ARN of each entitlement, the name of the associated flow, and the NextToken
// to use in a subsequent ListEntitlements request.
type ListEntitlementsOutput struct {
_ struct{} `type:"structure"`
// A list of entitlements that have been granted to you from other AWS accounts.
Entitlements []*ListedEntitlement `locationName:"entitlements" type:"list"`
// The token that identifies which batch of results that you want to see. For
// example, you submit a ListEntitlements request with MaxResults set at 5.
// The service returns the first batch of results (up to 5) and a NextToken
// value. To see the next batch of results, you can submit the ListEntitlements
// request a second time and specify the NextToken value.
NextToken *string `locationName:"nextToken" type:"string"`
}
// String returns the string representation
func (s ListEntitlementsOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListEntitlementsOutput) GoString() string {
return s.String()
}
// SetEntitlements sets the Entitlements field's value.
func (s *ListEntitlementsOutput) SetEntitlements(v []*ListedEntitlement) *ListEntitlementsOutput {
s.Entitlements = v
return s
}
// SetNextToken sets the NextToken field's value.
func (s *ListEntitlementsOutput) SetNextToken(v string) *ListEntitlementsOutput {
s.NextToken = &v
return s
}
type ListFlowsInput struct {
_ struct{} `type:"structure"`
MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"`
NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
}
// String returns the string representation
func (s ListFlowsInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListFlowsInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *ListFlowsInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "ListFlowsInput"}
if s.MaxResults != nil && *s.MaxResults < 1 {
invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetMaxResults sets the MaxResults field's value.
func (s *ListFlowsInput) SetMaxResults(v int64) *ListFlowsInput {
s.MaxResults = &v
return s
}
// SetNextToken sets the NextToken field's value.
func (s *ListFlowsInput) SetNextToken(v string) *ListFlowsInput {
s.NextToken = &v
return s
}
// The result of a successful ListFlows request. The response includes flow
// summaries and the NextToken to use in a subsequent ListFlows request.
type ListFlowsOutput struct {
_ struct{} `type:"structure"`
// A list of flow summaries.
Flows []*ListedFlow `locationName:"flows" type:"list"`
// The token that identifies which batch of results that you want to see. For
// example, you submit a ListFlows request with MaxResults set at 5. The service
// returns the first batch of results (up to 5) and a NextToken value. To see
// the next batch of results, you can submit the ListFlows request a second
// time and specify the NextToken value.
NextToken *string `locationName:"nextToken" type:"string"`
}
// String returns the string representation
func (s ListFlowsOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListFlowsOutput) GoString() string {
return s.String()
}
// SetFlows sets the Flows field's value.
func (s *ListFlowsOutput) SetFlows(v []*ListedFlow) *ListFlowsOutput {
s.Flows = v
return s
}
// SetNextToken sets the NextToken field's value.
func (s *ListFlowsOutput) SetNextToken(v string) *ListFlowsOutput {
s.NextToken = &v
return s
}
// An entitlement that has been granted to you from other AWS accounts.
type ListedEntitlement struct {
_ struct{} `type:"structure"`
// The ARN of the entitlement.
//
// EntitlementArn is a required field
EntitlementArn *string `locationName:"entitlementArn" type:"string" required:"true"`
// The name of the entitlement.
//
// EntitlementName is a required field
EntitlementName *string `locationName:"entitlementName" type:"string" required:"true"`
}
// String returns the string representation
func (s ListedEntitlement) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListedEntitlement) GoString() string {
return s.String()
}
// SetEntitlementArn sets the EntitlementArn field's value.
func (s *ListedEntitlement) SetEntitlementArn(v string) *ListedEntitlement {
s.EntitlementArn = &v
return s
}
// SetEntitlementName sets the EntitlementName field's value.
func (s *ListedEntitlement) SetEntitlementName(v string) *ListedEntitlement {
s.EntitlementName = &v
return s
}
// Provides a summary of a flow, including its ARN, Availability Zone, and source
// type.
type ListedFlow struct {
_ struct{} `type:"structure"`
// The Availability Zone that the flow was created in.
//
// AvailabilityZone is a required field
AvailabilityZone *string `locationName:"availabilityZone" type:"string" required:"true"`
// A description of the flow.
//
// Description is a required field
Description *string `locationName:"description" type:"string" required:"true"`
// The ARN of the flow.
//
// FlowArn is a required field
FlowArn *string `locationName:"flowArn" type:"string" required:"true"`
// The name of the flow.
//
// Name is a required field
Name *string `locationName:"name" type:"string" required:"true"`
// The type of source. This value is either owned (originated somewhere other
// than an AWS Elemental MediaConnect flow owned by another AWS account) or
// entitled (originated at an AWS Elemental MediaConnect flow owned by another
// AWS account).
//
// SourceType is a required field
SourceType *string `locationName:"sourceType" type:"string" required:"true" enum:"SourceType"`
// The current status of the flow.
//
// Status is a required field
Status *string `locationName:"status" type:"string" required:"true" enum:"Status"`
}
// String returns the string representation
func (s ListedFlow) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListedFlow) GoString() string {
return s.String()
}
// SetAvailabilityZone sets the AvailabilityZone field's value.
func (s *ListedFlow) SetAvailabilityZone(v string) *ListedFlow {
s.AvailabilityZone = &v
return s
}
// SetDescription sets the Description field's value.
func (s *ListedFlow) SetDescription(v string) *ListedFlow {
s.Description = &v
return s
}
// SetFlowArn sets the FlowArn field's value.
func (s *ListedFlow) SetFlowArn(v string) *ListedFlow {
s.FlowArn = &v
return s
}
// SetName sets the Name field's value.
func (s *ListedFlow) SetName(v string) *ListedFlow {
s.Name = &v
return s
}
// SetSourceType sets the SourceType field's value.
func (s *ListedFlow) SetSourceType(v string) *ListedFlow {
s.SourceType = &v
return s
}
// SetStatus sets the Status field's value.
func (s *ListedFlow) SetStatus(v string) *ListedFlow {
s.Status = &v
return s
}
// Messages that provide the state of the flow.
type Messages struct {
_ struct{} `type:"structure"`
// A list of errors that might have been generated from processes on this flow.
//
// Errors is a required field
Errors []*string `locationName:"errors" type:"list" required:"true"`
}
// String returns the string representation
func (s Messages) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s Messages) GoString() string {
return s.String()
}
// SetErrors sets the Errors field's value.
func (s *Messages) SetErrors(v []*string) *Messages {
s.Errors = v
return s
}
// The settings for an output.
type Output struct {
_ struct{} `type:"structure"`
// A description of the output.
Description *string `locationName:"description" type:"string"`
// The address where you want to send the output.
Destination *string `locationName:"destination" type:"string"`
// The type of key used for the encryption. If no keyType is provided, the service
// will use the default setting (static-key).
Encryption *Encryption `locationName:"encryption" type:"structure"`
// The ARN of the entitlement on the originator''s flow. This value is relevant
// only on entitled flows.
EntitlementArn *string `locationName:"entitlementArn" type:"string"`
// The input ARN of the AWS Elemental MediaLive channel. This parameter is relevant
// only for outputs that were added by creating a MediaLive input.
MediaLiveInputArn *string `locationName:"mediaLiveInputArn" type:"string"`
// The name of the output. This value must be unique within the current flow.
//
// Name is a required field
Name *string `locationName:"name" type:"string" required:"true"`
// The ARN of the output.
//
// OutputArn is a required field
OutputArn *string `locationName:"outputArn" type:"string" required:"true"`
// The port to use when content is distributed to this output.
Port *int64 `locationName:"port" type:"integer"`
// Attributes related to the transport stream that are used in the output.
Transport *Transport `locationName:"transport" type:"structure"`
}
// String returns the string representation
func (s Output) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s Output) GoString() string {
return s.String()
}
// SetDescription sets the Description field's value.
func (s *Output) SetDescription(v string) *Output {
s.Description = &v
return s
}
// SetDestination sets the Destination field's value.
func (s *Output) SetDestination(v string) *Output {
s.Destination = &v
return s
}
// SetEncryption sets the Encryption field's value.
func (s *Output) SetEncryption(v *Encryption) *Output {
s.Encryption = v
return s
}
// SetEntitlementArn sets the EntitlementArn field's value.
func (s *Output) SetEntitlementArn(v string) *Output {
s.EntitlementArn = &v
return s
}
// SetMediaLiveInputArn sets the MediaLiveInputArn field's value.
func (s *Output) SetMediaLiveInputArn(v string) *Output {
s.MediaLiveInputArn = &v
return s
}
// SetName sets the Name field's value.
func (s *Output) SetName(v string) *Output {
s.Name = &v
return s
}
// SetOutputArn sets the OutputArn field's value.
func (s *Output) SetOutputArn(v string) *Output {
s.OutputArn = &v
return s
}
// SetPort sets the Port field's value.
func (s *Output) SetPort(v int64) *Output {
s.Port = &v
return s
}
// SetTransport sets the Transport field's value.
func (s *Output) SetTransport(v *Transport) *Output {
s.Transport = v
return s
}
type RemoveFlowOutputInput struct {
_ struct{} `type:"structure"`
// FlowArn is a required field
FlowArn *string `location:"uri" locationName:"flowArn" type:"string" required:"true"`
// OutputArn is a required field
OutputArn *string `location:"uri" locationName:"outputArn" type:"string" required:"true"`
}
// String returns the string representation
func (s RemoveFlowOutputInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s RemoveFlowOutputInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *RemoveFlowOutputInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "RemoveFlowOutputInput"}
if s.FlowArn == nil {
invalidParams.Add(request.NewErrParamRequired("FlowArn"))
}
if s.FlowArn != nil && len(*s.FlowArn) < 1 {
invalidParams.Add(request.NewErrParamMinLen("FlowArn", 1))
}
if s.OutputArn == nil {
invalidParams.Add(request.NewErrParamRequired("OutputArn"))
}
if s.OutputArn != nil && len(*s.OutputArn) < 1 {
invalidParams.Add(request.NewErrParamMinLen("OutputArn", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetFlowArn sets the FlowArn field's value.
func (s *RemoveFlowOutputInput) SetFlowArn(v string) *RemoveFlowOutputInput {
s.FlowArn = &v
return s
}
// SetOutputArn sets the OutputArn field's value.
func (s *RemoveFlowOutputInput) SetOutputArn(v string) *RemoveFlowOutputInput {
s.OutputArn = &v
return s
}
// The result of a successful RemoveFlowOutput request including the flow ARN
// and the output ARN that was removed.
type RemoveFlowOutputOutput struct {
_ struct{} `type:"structure"`
// The ARN of the flow that is associated with the output you removed.
FlowArn *string `locationName:"flowArn" type:"string"`
// The ARN of the output that was removed.
OutputArn *string `locationName:"outputArn" type:"string"`
}
// String returns the string representation
func (s RemoveFlowOutputOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s RemoveFlowOutputOutput) GoString() string {
return s.String()
}
// SetFlowArn sets the FlowArn field's value.
func (s *RemoveFlowOutputOutput) SetFlowArn(v string) *RemoveFlowOutputOutput {
s.FlowArn = &v
return s
}
// SetOutputArn sets the OutputArn field's value.
func (s *RemoveFlowOutputOutput) SetOutputArn(v string) *RemoveFlowOutputOutput {
s.OutputArn = &v
return s
}
type RevokeFlowEntitlementInput struct {
_ struct{} `type:"structure"`
// EntitlementArn is a required field
EntitlementArn *string `location:"uri" locationName:"entitlementArn" type:"string" required:"true"`
// FlowArn is a required field
FlowArn *string `location:"uri" locationName:"flowArn" type:"string" required:"true"`
}
// String returns the string representation
func (s RevokeFlowEntitlementInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s RevokeFlowEntitlementInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *RevokeFlowEntitlementInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "RevokeFlowEntitlementInput"}
if s.EntitlementArn == nil {
invalidParams.Add(request.NewErrParamRequired("EntitlementArn"))
}
if s.EntitlementArn != nil && len(*s.EntitlementArn) < 1 {
invalidParams.Add(request.NewErrParamMinLen("EntitlementArn", 1))
}
if s.FlowArn == nil {
invalidParams.Add(request.NewErrParamRequired("FlowArn"))
}
if s.FlowArn != nil && len(*s.FlowArn) < 1 {
invalidParams.Add(request.NewErrParamMinLen("FlowArn", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetEntitlementArn sets the EntitlementArn field's value.
func (s *RevokeFlowEntitlementInput) SetEntitlementArn(v string) *RevokeFlowEntitlementInput {
s.EntitlementArn = &v
return s
}
// SetFlowArn sets the FlowArn field's value.
func (s *RevokeFlowEntitlementInput) SetFlowArn(v string) *RevokeFlowEntitlementInput {
s.FlowArn = &v
return s
}
// The result of a successful RevokeFlowEntitlement request. The response includes
// the ARN of the flow that was updated and the ARN of the entitlement that
// was revoked.
type RevokeFlowEntitlementOutput struct {
_ struct{} `type:"structure"`
// The ARN of the entitlement that was revoked.
EntitlementArn *string `locationName:"entitlementArn" type:"string"`
// The ARN of the flow that the entitlement was revoked from.
FlowArn *string `locationName:"flowArn" type:"string"`
}
// String returns the string representation
func (s RevokeFlowEntitlementOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s RevokeFlowEntitlementOutput) GoString() string {
return s.String()
}
// SetEntitlementArn sets the EntitlementArn field's value.
func (s *RevokeFlowEntitlementOutput) SetEntitlementArn(v string) *RevokeFlowEntitlementOutput {
s.EntitlementArn = &v
return s
}
// SetFlowArn sets the FlowArn field's value.
func (s *RevokeFlowEntitlementOutput) SetFlowArn(v string) *RevokeFlowEntitlementOutput {
s.FlowArn = &v
return s
}
// The settings for the source of the flow.
type SetSourceRequest struct {
_ struct{} `type:"structure"`
// The type of encryption that is used on the content ingested from this source.
Decryption *Encryption `locationName:"decryption" type:"structure"`
// A description for the source. This value is not used or seen outside of the
// current AWS Elemental MediaConnect account.
Description *string `locationName:"description" type:"string"`
// The ARN of the entitlement that allows you to subscribe to this flow. The
// entitlement is set by the flow originator, and the ARN is generated as part
// of the originator's flow.
EntitlementArn *string `locationName:"entitlementArn" type:"string"`
// The port that the flow will be listening on for incoming content.
IngestPort *int64 `locationName:"ingestPort" type:"integer"`
// The smoothing max bitrate for RTP and RTP-FEC streams.
MaxBitrate *int64 `locationName:"maxBitrate" type:"integer"`
// The maximum latency in milliseconds for Zixi-based streams.
MaxLatency *int64 `locationName:"maxLatency" type:"integer"`
// The name of the source.
Name *string `locationName:"name" type:"string"`
// The protocol that is used by the source.
Protocol *string `locationName:"protocol" type:"string" enum:"Protocol"`
// The stream ID that you want to use for this transport. This parameter applies
// only to Zixi-based streams.
StreamId *string `locationName:"streamId" type:"string"`
// The range of IP addresses that should be allowed to contribute content to
// your source. These IP addresses should in the form of a Classless Inter-Domain
// Routing (CIDR) block; for example, 10.0.0.0/16.
WhitelistCidr *string `locationName:"whitelistCidr" type:"string"`
}
// String returns the string representation
func (s SetSourceRequest) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s SetSourceRequest) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *SetSourceRequest) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "SetSourceRequest"}
if s.Decryption != nil {
if err := s.Decryption.Validate(); err != nil {
invalidParams.AddNested("Decryption", err.(request.ErrInvalidParams))
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetDecryption sets the Decryption field's value.
func (s *SetSourceRequest) SetDecryption(v *Encryption) *SetSourceRequest {
s.Decryption = v
return s
}
// SetDescription sets the Description field's value.
func (s *SetSourceRequest) SetDescription(v string) *SetSourceRequest {
s.Description = &v
return s
}
// SetEntitlementArn sets the EntitlementArn field's value.
func (s *SetSourceRequest) SetEntitlementArn(v string) *SetSourceRequest {
s.EntitlementArn = &v
return s
}
// SetIngestPort sets the IngestPort field's value.
func (s *SetSourceRequest) SetIngestPort(v int64) *SetSourceRequest {
s.IngestPort = &v
return s
}
// SetMaxBitrate sets the MaxBitrate field's value.
func (s *SetSourceRequest) SetMaxBitrate(v int64) *SetSourceRequest {
s.MaxBitrate = &v
return s
}
// SetMaxLatency sets the MaxLatency field's value.
func (s *SetSourceRequest) SetMaxLatency(v int64) *SetSourceRequest {
s.MaxLatency = &v
return s
}
// SetName sets the Name field's value.
func (s *SetSourceRequest) SetName(v string) *SetSourceRequest {
s.Name = &v
return s
}
// SetProtocol sets the Protocol field's value.
func (s *SetSourceRequest) SetProtocol(v string) *SetSourceRequest {
s.Protocol = &v
return s
}
// SetStreamId sets the StreamId field's value.
func (s *SetSourceRequest) SetStreamId(v string) *SetSourceRequest {
s.StreamId = &v
return s
}
// SetWhitelistCidr sets the WhitelistCidr field's value.
func (s *SetSourceRequest) SetWhitelistCidr(v string) *SetSourceRequest {
s.WhitelistCidr = &v
return s
}
// The settings for the source of the flow.
type Source struct {
_ struct{} `type:"structure"`
// The type of encryption that is used on the content ingested from this source.
Decryption *Encryption `locationName:"decryption" type:"structure"`
// A description for the source. This value is not used or seen outside of the
// current AWS Elemental MediaConnect account.
Description *string `locationName:"description" type:"string"`
// The ARN of the entitlement that allows you to subscribe to content that comes
// from another AWS account. The entitlement is set by the content originator
// and the ARN is generated as part of the originator's flow.
EntitlementArn *string `locationName:"entitlementArn" type:"string"`
// The IP address that the flow will be listening on for incoming content.
IngestIp *string `locationName:"ingestIp" type:"string"`
// The port that the flow will be listening on for incoming content.
IngestPort *int64 `locationName:"ingestPort" type:"integer"`
// The name of the source.
//
// Name is a required field
Name *string `locationName:"name" type:"string" required:"true"`
// The ARN of the source.
//
// SourceArn is a required field
SourceArn *string `locationName:"sourceArn" type:"string" required:"true"`
// Attributes related to the transport stream that are used in the source.
Transport *Transport `locationName:"transport" type:"structure"`
// The range of IP addresses that should be allowed to contribute content to
// your source. These IP addresses should in the form of a Classless Inter-Domain
// Routing (CIDR) block; for example, 10.0.0.0/16.
WhitelistCidr *string `locationName:"whitelistCidr" type:"string"`
}
// String returns the string representation
func (s Source) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s Source) GoString() string {
return s.String()
}
// SetDecryption sets the Decryption field's value.
func (s *Source) SetDecryption(v *Encryption) *Source {
s.Decryption = v
return s
}
// SetDescription sets the Description field's value.
func (s *Source) SetDescription(v string) *Source {
s.Description = &v
return s
}
// SetEntitlementArn sets the EntitlementArn field's value.
func (s *Source) SetEntitlementArn(v string) *Source {
s.EntitlementArn = &v
return s
}
// SetIngestIp sets the IngestIp field's value.
func (s *Source) SetIngestIp(v string) *Source {
s.IngestIp = &v
return s
}
// SetIngestPort sets the IngestPort field's value.
func (s *Source) SetIngestPort(v int64) *Source {
s.IngestPort = &v
return s
}
// SetName sets the Name field's value.
func (s *Source) SetName(v string) *Source {
s.Name = &v
return s
}
// SetSourceArn sets the SourceArn field's value.
func (s *Source) SetSourceArn(v string) *Source {
s.SourceArn = &v
return s
}
// SetTransport sets the Transport field's value.
func (s *Source) SetTransport(v *Transport) *Source {
s.Transport = v
return s
}
// SetWhitelistCidr sets the WhitelistCidr field's value.
func (s *Source) SetWhitelistCidr(v string) *Source {
s.WhitelistCidr = &v
return s
}
type StartFlowInput struct {
_ struct{} `type:"structure"`
// FlowArn is a required field
FlowArn *string `location:"uri" locationName:"flowArn" type:"string" required:"true"`
}
// String returns the string representation
func (s StartFlowInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s StartFlowInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *StartFlowInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "StartFlowInput"}
if s.FlowArn == nil {
invalidParams.Add(request.NewErrParamRequired("FlowArn"))
}
if s.FlowArn != nil && len(*s.FlowArn) < 1 {
invalidParams.Add(request.NewErrParamMinLen("FlowArn", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetFlowArn sets the FlowArn field's value.
func (s *StartFlowInput) SetFlowArn(v string) *StartFlowInput {
s.FlowArn = &v
return s
}
// The result of a successful StartFlow request.
type StartFlowOutput struct {
_ struct{} `type:"structure"`
// The ARN of the flow that you started.
FlowArn *string `locationName:"flowArn" type:"string"`
// The status of the flow when the StartFlow process begins.
Status *string `locationName:"status" type:"string" enum:"Status"`
}
// String returns the string representation
func (s StartFlowOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s StartFlowOutput) GoString() string {
return s.String()
}
// SetFlowArn sets the FlowArn field's value.
func (s *StartFlowOutput) SetFlowArn(v string) *StartFlowOutput {
s.FlowArn = &v
return s
}
// SetStatus sets the Status field's value.
func (s *StartFlowOutput) SetStatus(v string) *StartFlowOutput {
s.Status = &v
return s
}
type StopFlowInput struct {
_ struct{} `type:"structure"`
// FlowArn is a required field
FlowArn *string `location:"uri" locationName:"flowArn" type:"string" required:"true"`
}
// String returns the string representation
func (s StopFlowInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s StopFlowInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *StopFlowInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "StopFlowInput"}
if s.FlowArn == nil {
invalidParams.Add(request.NewErrParamRequired("FlowArn"))
}
if s.FlowArn != nil && len(*s.FlowArn) < 1 {
invalidParams.Add(request.NewErrParamMinLen("FlowArn", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetFlowArn sets the FlowArn field's value.
func (s *StopFlowInput) SetFlowArn(v string) *StopFlowInput {
s.FlowArn = &v
return s
}
// The result of a successful StopFlow request.
type StopFlowOutput struct {
_ struct{} `type:"structure"`
// The ARN of the flow that you stopped.
FlowArn *string `locationName:"flowArn" type:"string"`
// The status of the flow when the StopFlow process begins.
Status *string `locationName:"status" type:"string" enum:"Status"`
}
// String returns the string representation
func (s StopFlowOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s StopFlowOutput) GoString() string {
return s.String()
}
// SetFlowArn sets the FlowArn field's value.
func (s *StopFlowOutput) SetFlowArn(v string) *StopFlowOutput {
s.FlowArn = &v
return s
}
// SetStatus sets the Status field's value.
func (s *StopFlowOutput) SetStatus(v string) *StopFlowOutput {
s.Status = &v
return s
}
// Attributes related to the transport stream that are used in a source or output.
type Transport struct {
_ struct{} `type:"structure"`
// The smoothing max bitrate for RTP and RTP-FEC streams.
MaxBitrate *int64 `locationName:"maxBitrate" type:"integer"`
// The maximum latency in milliseconds for Zixi-based streams.
MaxLatency *int64 `locationName:"maxLatency" type:"integer"`
// The protocol that is used by the source or output.
//
// Protocol is a required field
Protocol *string `locationName:"protocol" type:"string" required:"true" enum:"Protocol"`
// The smoothing latency in milliseconds for RTP and RTP-FEC streams.
SmoothingLatency *int64 `locationName:"smoothingLatency" type:"integer"`
// The stream ID that you want to use for this transport. This parameter applies
// only to Zixi-based streams.
StreamId *string `locationName:"streamId" type:"string"`
}
// String returns the string representation
func (s Transport) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s Transport) GoString() string {
return s.String()
}
// SetMaxBitrate sets the MaxBitrate field's value.
func (s *Transport) SetMaxBitrate(v int64) *Transport {
s.MaxBitrate = &v
return s
}
// SetMaxLatency sets the MaxLatency field's value.
func (s *Transport) SetMaxLatency(v int64) *Transport {
s.MaxLatency = &v
return s
}
// SetProtocol sets the Protocol field's value.
func (s *Transport) SetProtocol(v string) *Transport {
s.Protocol = &v
return s
}
// SetSmoothingLatency sets the SmoothingLatency field's value.
func (s *Transport) SetSmoothingLatency(v int64) *Transport {
s.SmoothingLatency = &v
return s
}
// SetStreamId sets the StreamId field's value.
func (s *Transport) SetStreamId(v string) *Transport {
s.StreamId = &v
return s
}
// Information about the encryption of the flow.
type UpdateEncryption struct {
_ struct{} `type:"structure"`
// The type of algorithm that is used for the encryption (such as aes128, aes192,
// or aes256).
Algorithm *string `locationName:"algorithm" type:"string" enum:"Algorithm"`
// The type of key that is used for the encryption. If no keyType is provided,
// the service will use the default setting (static-key).
KeyType *string `locationName:"keyType" type:"string" enum:"KeyType"`
// The ARN of the role that you created during setup (when you set up AWS Elemental
// MediaConnect as a trusted entity).
RoleArn *string `locationName:"roleArn" type:"string"`
// The ARN that was assigned to the secret that you created in AWS Secrets Manager
// to store the encryption key.
SecretArn *string `locationName:"secretArn" type:"string"`
}
// String returns the string representation
func (s UpdateEncryption) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s UpdateEncryption) GoString() string {
return s.String()
}
// SetAlgorithm sets the Algorithm field's value.
func (s *UpdateEncryption) SetAlgorithm(v string) *UpdateEncryption {
s.Algorithm = &v
return s
}
// SetKeyType sets the KeyType field's value.
func (s *UpdateEncryption) SetKeyType(v string) *UpdateEncryption {
s.KeyType = &v
return s
}
// SetRoleArn sets the RoleArn field's value.
func (s *UpdateEncryption) SetRoleArn(v string) *UpdateEncryption {
s.RoleArn = &v
return s
}
// SetSecretArn sets the SecretArn field's value.
func (s *UpdateEncryption) SetSecretArn(v string) *UpdateEncryption {
s.SecretArn = &v
return s
}
// The updates that you want to make to a specific entitlement.
type UpdateFlowEntitlementInput struct {
_ struct{} `type:"structure"`
// A description of the entitlement. This description appears only on the AWS
// Elemental MediaConnect console and will not be seen by the subscriber or
// end user.
Description *string `locationName:"description" type:"string"`
// The type of encryption that will be used on the output associated with this
// entitlement.
Encryption *UpdateEncryption `locationName:"encryption" type:"structure"`
// EntitlementArn is a required field
EntitlementArn *string `location:"uri" locationName:"entitlementArn" type:"string" required:"true"`
// FlowArn is a required field
FlowArn *string `location:"uri" locationName:"flowArn" type:"string" required:"true"`
// The AWS account IDs that you want to share your content with. The receiving
// accounts (subscribers) will be allowed to create their own flow using your
// content as the source.
Subscribers []*string `locationName:"subscribers" type:"list"`
}
// String returns the string representation
func (s UpdateFlowEntitlementInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s UpdateFlowEntitlementInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *UpdateFlowEntitlementInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "UpdateFlowEntitlementInput"}
if s.EntitlementArn == nil {
invalidParams.Add(request.NewErrParamRequired("EntitlementArn"))
}
if s.EntitlementArn != nil && len(*s.EntitlementArn) < 1 {
invalidParams.Add(request.NewErrParamMinLen("EntitlementArn", 1))
}
if s.FlowArn == nil {
invalidParams.Add(request.NewErrParamRequired("FlowArn"))
}
if s.FlowArn != nil && len(*s.FlowArn) < 1 {
invalidParams.Add(request.NewErrParamMinLen("FlowArn", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetDescription sets the Description field's value.
func (s *UpdateFlowEntitlementInput) SetDescription(v string) *UpdateFlowEntitlementInput {
s.Description = &v
return s
}
// SetEncryption sets the Encryption field's value.
func (s *UpdateFlowEntitlementInput) SetEncryption(v *UpdateEncryption) *UpdateFlowEntitlementInput {
s.Encryption = v
return s
}
// SetEntitlementArn sets the EntitlementArn field's value.
func (s *UpdateFlowEntitlementInput) SetEntitlementArn(v string) *UpdateFlowEntitlementInput {
s.EntitlementArn = &v
return s
}
// SetFlowArn sets the FlowArn field's value.
func (s *UpdateFlowEntitlementInput) SetFlowArn(v string) *UpdateFlowEntitlementInput {
s.FlowArn = &v
return s
}
// SetSubscribers sets the Subscribers field's value.
func (s *UpdateFlowEntitlementInput) SetSubscribers(v []*string) *UpdateFlowEntitlementInput {
s.Subscribers = v
return s
}
// The result of a successful UpdateFlowEntitlement request. The response includes
// the ARN of the flow that was updated and the updated entitlement configuration.
type UpdateFlowEntitlementOutput struct {
_ struct{} `type:"structure"`
// The settings for a flow entitlement.
Entitlement *Entitlement `locationName:"entitlement" type:"structure"`
// The ARN of the flow that this entitlement was granted on.
FlowArn *string `locationName:"flowArn" type:"string"`
}
// String returns the string representation
func (s UpdateFlowEntitlementOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s UpdateFlowEntitlementOutput) GoString() string {
return s.String()
}
// SetEntitlement sets the Entitlement field's value.
func (s *UpdateFlowEntitlementOutput) SetEntitlement(v *Entitlement) *UpdateFlowEntitlementOutput {
s.Entitlement = v
return s
}
// SetFlowArn sets the FlowArn field's value.
func (s *UpdateFlowEntitlementOutput) SetFlowArn(v string) *UpdateFlowEntitlementOutput {
s.FlowArn = &v
return s
}
// The updates that you want to make to an existing output of an existing flow.
type UpdateFlowOutputInput struct {
_ struct{} `type:"structure"`
// A description of the output. This description appears only on the AWS Elemental
// MediaConnect console and will not be seen by the end user.
Description *string `locationName:"description" type:"string"`
// The IP address where you want to send the output.
Destination *string `locationName:"destination" type:"string"`
// The type of key used for the encryption. If no keyType is provided, the service
// will use the default setting (static-key).
Encryption *UpdateEncryption `locationName:"encryption" type:"structure"`
// FlowArn is a required field
FlowArn *string `location:"uri" locationName:"flowArn" type:"string" required:"true"`
// The maximum latency in milliseconds for Zixi-based streams.
MaxLatency *int64 `locationName:"maxLatency" type:"integer"`
// OutputArn is a required field
OutputArn *string `location:"uri" locationName:"outputArn" type:"string" required:"true"`
// The port to use when content is distributed to this output.
Port *int64 `locationName:"port" type:"integer"`
// The protocol to use for the output.
Protocol *string `locationName:"protocol" type:"string" enum:"Protocol"`
// The smoothing latency in milliseconds for RTP and RTP-FEC streams.
SmoothingLatency *int64 `locationName:"smoothingLatency" type:"integer"`
// The stream ID that you want to use for this transport. This parameter applies
// only to Zixi-based streams.
StreamId *string `locationName:"streamId" type:"string"`
}
// String returns the string representation
func (s UpdateFlowOutputInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s UpdateFlowOutputInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *UpdateFlowOutputInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "UpdateFlowOutputInput"}
if s.FlowArn == nil {
invalidParams.Add(request.NewErrParamRequired("FlowArn"))
}
if s.FlowArn != nil && len(*s.FlowArn) < 1 {
invalidParams.Add(request.NewErrParamMinLen("FlowArn", 1))
}
if s.OutputArn == nil {
invalidParams.Add(request.NewErrParamRequired("OutputArn"))
}
if s.OutputArn != nil && len(*s.OutputArn) < 1 {
invalidParams.Add(request.NewErrParamMinLen("OutputArn", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetDescription sets the Description field's value.
func (s *UpdateFlowOutputInput) SetDescription(v string) *UpdateFlowOutputInput {
s.Description = &v
return s
}
// SetDestination sets the Destination field's value.
func (s *UpdateFlowOutputInput) SetDestination(v string) *UpdateFlowOutputInput {
s.Destination = &v
return s
}
// SetEncryption sets the Encryption field's value.
func (s *UpdateFlowOutputInput) SetEncryption(v *UpdateEncryption) *UpdateFlowOutputInput {
s.Encryption = v
return s
}
// SetFlowArn sets the FlowArn field's value.
func (s *UpdateFlowOutputInput) SetFlowArn(v string) *UpdateFlowOutputInput {
s.FlowArn = &v
return s
}
// SetMaxLatency sets the MaxLatency field's value.
func (s *UpdateFlowOutputInput) SetMaxLatency(v int64) *UpdateFlowOutputInput {
s.MaxLatency = &v
return s
}
// SetOutputArn sets the OutputArn field's value.
func (s *UpdateFlowOutputInput) SetOutputArn(v string) *UpdateFlowOutputInput {
s.OutputArn = &v
return s
}
// SetPort sets the Port field's value.
func (s *UpdateFlowOutputInput) SetPort(v int64) *UpdateFlowOutputInput {
s.Port = &v
return s
}
// SetProtocol sets the Protocol field's value.
func (s *UpdateFlowOutputInput) SetProtocol(v string) *UpdateFlowOutputInput {
s.Protocol = &v
return s
}
// SetSmoothingLatency sets the SmoothingLatency field's value.
func (s *UpdateFlowOutputInput) SetSmoothingLatency(v int64) *UpdateFlowOutputInput {
s.SmoothingLatency = &v
return s
}
// SetStreamId sets the StreamId field's value.
func (s *UpdateFlowOutputInput) SetStreamId(v string) *UpdateFlowOutputInput {
s.StreamId = &v
return s
}
// The result of a successful UpdateFlowOutput request including the flow ARN
// and the updated output.
type UpdateFlowOutputOutput struct {
_ struct{} `type:"structure"`
// The ARN of the flow that is associated with the updated output.
FlowArn *string `locationName:"flowArn" type:"string"`
// The settings for an output.
Output *Output `locationName:"output" type:"structure"`
}
// String returns the string representation
func (s UpdateFlowOutputOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s UpdateFlowOutputOutput) GoString() string {
return s.String()
}
// SetFlowArn sets the FlowArn field's value.
func (s *UpdateFlowOutputOutput) SetFlowArn(v string) *UpdateFlowOutputOutput {
s.FlowArn = &v
return s
}
// SetOutput sets the Output field's value.
func (s *UpdateFlowOutputOutput) SetOutput(v *Output) *UpdateFlowOutputOutput {
s.Output = v
return s
}
// The settings for the updated source of the flow.
type UpdateFlowSourceInput struct {
_ struct{} `type:"structure"`
// The type of encryption used on the content ingested from this source.
Decryption *UpdateEncryption `locationName:"decryption" type:"structure"`
// A description for the source. This value is not used or seen outside of the
// current AWS Elemental MediaConnect account.
Description *string `locationName:"description" type:"string"`
// The ARN of the entitlement that allows you to subscribe to this flow. The
// entitlement is set by the flow originator, and the ARN is generated as part
// of the originator's flow.
EntitlementArn *string `locationName:"entitlementArn" type:"string"`
// FlowArn is a required field
FlowArn *string `location:"uri" locationName:"flowArn" type:"string" required:"true"`
// The port that the flow will be listening on for incoming content.
IngestPort *int64 `locationName:"ingestPort" type:"integer"`
// The smoothing max bitrate for RTP and RTP-FEC streams.
MaxBitrate *int64 `locationName:"maxBitrate" type:"integer"`
// The maximum latency in milliseconds for Zixi-based streams.
MaxLatency *int64 `locationName:"maxLatency" type:"integer"`
// The protocol that is used by the source.
Protocol *string `locationName:"protocol" type:"string" enum:"Protocol"`
// SourceArn is a required field
SourceArn *string `location:"uri" locationName:"sourceArn" type:"string" required:"true"`
// The stream ID that you want to use for this transport. This parameter applies
// only to Zixi-based streams.
StreamId *string `locationName:"streamId" type:"string"`
// The range of IP addresses that should be allowed to contribute content to
// your source. These IP addresses should in the form of a Classless Inter-Domain
// Routing (CIDR) block; for example, 10.0.0.0/16.
WhitelistCidr *string `locationName:"whitelistCidr" type:"string"`
}
// String returns the string representation
func (s UpdateFlowSourceInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s UpdateFlowSourceInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *UpdateFlowSourceInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "UpdateFlowSourceInput"}
if s.FlowArn == nil {
invalidParams.Add(request.NewErrParamRequired("FlowArn"))
}
if s.FlowArn != nil && len(*s.FlowArn) < 1 {
invalidParams.Add(request.NewErrParamMinLen("FlowArn", 1))
}
if s.SourceArn == nil {
invalidParams.Add(request.NewErrParamRequired("SourceArn"))
}
if s.SourceArn != nil && len(*s.SourceArn) < 1 {
invalidParams.Add(request.NewErrParamMinLen("SourceArn", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetDecryption sets the Decryption field's value.
func (s *UpdateFlowSourceInput) SetDecryption(v *UpdateEncryption) *UpdateFlowSourceInput {
s.Decryption = v
return s
}
// SetDescription sets the Description field's value.
func (s *UpdateFlowSourceInput) SetDescription(v string) *UpdateFlowSourceInput {
s.Description = &v
return s
}
// SetEntitlementArn sets the EntitlementArn field's value.
func (s *UpdateFlowSourceInput) SetEntitlementArn(v string) *UpdateFlowSourceInput {
s.EntitlementArn = &v
return s
}
// SetFlowArn sets the FlowArn field's value.
func (s *UpdateFlowSourceInput) SetFlowArn(v string) *UpdateFlowSourceInput {
s.FlowArn = &v
return s
}
// SetIngestPort sets the IngestPort field's value.
func (s *UpdateFlowSourceInput) SetIngestPort(v int64) *UpdateFlowSourceInput {
s.IngestPort = &v
return s
}
// SetMaxBitrate sets the MaxBitrate field's value.
func (s *UpdateFlowSourceInput) SetMaxBitrate(v int64) *UpdateFlowSourceInput {
s.MaxBitrate = &v
return s
}
// SetMaxLatency sets the MaxLatency field's value.
func (s *UpdateFlowSourceInput) SetMaxLatency(v int64) *UpdateFlowSourceInput {
s.MaxLatency = &v
return s
}
// SetProtocol sets the Protocol field's value.
func (s *UpdateFlowSourceInput) SetProtocol(v string) *UpdateFlowSourceInput {
s.Protocol = &v
return s
}
// SetSourceArn sets the SourceArn field's value.
func (s *UpdateFlowSourceInput) SetSourceArn(v string) *UpdateFlowSourceInput {
s.SourceArn = &v
return s
}
// SetStreamId sets the StreamId field's value.
func (s *UpdateFlowSourceInput) SetStreamId(v string) *UpdateFlowSourceInput {
s.StreamId = &v
return s
}
// SetWhitelistCidr sets the WhitelistCidr field's value.
func (s *UpdateFlowSourceInput) SetWhitelistCidr(v string) *UpdateFlowSourceInput {
s.WhitelistCidr = &v
return s
}
// The result of a successful UpdateFlowSource request. The response includes
// the ARN of the flow that was updated and the updated source configuration.
type UpdateFlowSourceOutput struct {
_ struct{} `type:"structure"`
// The ARN of the flow that you want to update.
FlowArn *string `locationName:"flowArn" type:"string"`
// The settings for the source of the flow.
Source *Source `locationName:"source" type:"structure"`
}
// String returns the string representation
func (s UpdateFlowSourceOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s UpdateFlowSourceOutput) GoString() string {
return s.String()
}
// SetFlowArn sets the FlowArn field's value.
func (s *UpdateFlowSourceOutput) SetFlowArn(v string) *UpdateFlowSourceOutput {
s.FlowArn = &v
return s
}
// SetSource sets the Source field's value.
func (s *UpdateFlowSourceOutput) SetSource(v *Source) *UpdateFlowSourceOutput {
s.Source = v
return s
}
const (
// AlgorithmAes128 is a Algorithm enum value
AlgorithmAes128 = "aes128"
// AlgorithmAes192 is a Algorithm enum value
AlgorithmAes192 = "aes192"
// AlgorithmAes256 is a Algorithm enum value
AlgorithmAes256 = "aes256"
)
const (
// KeyTypeStaticKey is a KeyType enum value
KeyTypeStaticKey = "static-key"
)
const (
// ProtocolZixiPush is a Protocol enum value
ProtocolZixiPush = "zixi-push"
// ProtocolRtpFec is a Protocol enum value
ProtocolRtpFec = "rtp-fec"
// ProtocolRtp is a Protocol enum value
ProtocolRtp = "rtp"
)
const (
// SourceTypeOwned is a SourceType enum value
SourceTypeOwned = "OWNED"
// SourceTypeEntitled is a SourceType enum value
SourceTypeEntitled = "ENTITLED"
)
const (
// StatusStandby is a Status enum value
StatusStandby = "STANDBY"
// StatusActive is a Status enum value
StatusActive = "ACTIVE"
// StatusUpdating is a Status enum value
StatusUpdating = "UPDATING"
// StatusDeleting is a Status enum value
StatusDeleting = "DELETING"
// StatusStarting is a Status enum value
StatusStarting = "STARTING"
// StatusStopping is a Status enum value
StatusStopping = "STOPPING"
// StatusError is a Status enum value
StatusError = "ERROR"
)
|