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
|
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package controltower
import (
"fmt"
"time"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/awsutil"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/private/protocol"
"github.com/aws/aws-sdk-go/private/protocol/restjson"
)
const opDeleteLandingZone = "DeleteLandingZone"
// DeleteLandingZoneRequest generates a "aws/request.Request" representing the
// client's request for the DeleteLandingZone 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 DeleteLandingZone for more information on using the DeleteLandingZone
// 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 DeleteLandingZoneRequest method.
// req, resp := client.DeleteLandingZoneRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/DeleteLandingZone
func (c *ControlTower) DeleteLandingZoneRequest(input *DeleteLandingZoneInput) (req *request.Request, output *DeleteLandingZoneOutput) {
op := &request.Operation{
Name: opDeleteLandingZone,
HTTPMethod: "POST",
HTTPPath: "/delete-landingzone",
}
if input == nil {
input = &DeleteLandingZoneInput{}
}
output = &DeleteLandingZoneOutput{}
req = c.newRequest(op, input, output)
return
}
// DeleteLandingZone API operation for AWS Control Tower.
//
// Decommissions a landing zone. This API call starts an asynchronous operation
// that deletes Amazon Web Services Control Tower resources deployed in accounts
// managed by Amazon Web Services Control Tower.
//
// 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 Control Tower's
// API operation DeleteLandingZone for usage and error information.
//
// Returned Error Types:
//
// - ValidationException
// The input does not satisfy the constraints specified by an Amazon Web Services
// service.
//
// - ConflictException
// Updating or deleting the resource can cause an inconsistent state.
//
// - InternalServerException
// An unexpected error occurred during processing of a request.
//
// - AccessDeniedException
// You do not have sufficient access to perform this action.
//
// - ThrottlingException
// The request was denied due to request throttling.
//
// - ResourceNotFoundException
// The request references a resource that does not exist.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/DeleteLandingZone
func (c *ControlTower) DeleteLandingZone(input *DeleteLandingZoneInput) (*DeleteLandingZoneOutput, error) {
req, out := c.DeleteLandingZoneRequest(input)
return out, req.Send()
}
// DeleteLandingZoneWithContext is the same as DeleteLandingZone with the addition of
// the ability to pass a context and additional request options.
//
// See DeleteLandingZone 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 *ControlTower) DeleteLandingZoneWithContext(ctx aws.Context, input *DeleteLandingZoneInput, opts ...request.Option) (*DeleteLandingZoneOutput, error) {
req, out := c.DeleteLandingZoneRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opDisableControl = "DisableControl"
// DisableControlRequest generates a "aws/request.Request" representing the
// client's request for the DisableControl 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 DisableControl for more information on using the DisableControl
// 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 DisableControlRequest method.
// req, resp := client.DisableControlRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/DisableControl
func (c *ControlTower) DisableControlRequest(input *DisableControlInput) (req *request.Request, output *DisableControlOutput) {
op := &request.Operation{
Name: opDisableControl,
HTTPMethod: "POST",
HTTPPath: "/disable-control",
}
if input == nil {
input = &DisableControlInput{}
}
output = &DisableControlOutput{}
req = c.newRequest(op, input, output)
return
}
// DisableControl API operation for AWS Control Tower.
//
// This API call turns off a control. It starts an asynchronous operation that
// deletes Amazon Web Services resources on the specified organizational unit
// and the accounts it contains. The resources will vary according to the control
// that you specify. For usage examples, see the Amazon Web Services Control
// Tower User Guide (https://docs.aws.amazon.com/controltower/latest/userguide/control-api-examples-short.html).
//
// 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 Control Tower's
// API operation DisableControl for usage and error information.
//
// Returned Error Types:
//
// - ValidationException
// The input does not satisfy the constraints specified by an Amazon Web Services
// service.
//
// - ConflictException
// Updating or deleting the resource can cause an inconsistent state.
//
// - ServiceQuotaExceededException
// The request would cause a service quota to be exceeded. The limit is 10 concurrent
// operations.
//
// - InternalServerException
// An unexpected error occurred during processing of a request.
//
// - AccessDeniedException
// You do not have sufficient access to perform this action.
//
// - ThrottlingException
// The request was denied due to request throttling.
//
// - ResourceNotFoundException
// The request references a resource that does not exist.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/DisableControl
func (c *ControlTower) DisableControl(input *DisableControlInput) (*DisableControlOutput, error) {
req, out := c.DisableControlRequest(input)
return out, req.Send()
}
// DisableControlWithContext is the same as DisableControl with the addition of
// the ability to pass a context and additional request options.
//
// See DisableControl 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 *ControlTower) DisableControlWithContext(ctx aws.Context, input *DisableControlInput, opts ...request.Option) (*DisableControlOutput, error) {
req, out := c.DisableControlRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opEnableControl = "EnableControl"
// EnableControlRequest generates a "aws/request.Request" representing the
// client's request for the EnableControl 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 EnableControl for more information on using the EnableControl
// 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 EnableControlRequest method.
// req, resp := client.EnableControlRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/EnableControl
func (c *ControlTower) EnableControlRequest(input *EnableControlInput) (req *request.Request, output *EnableControlOutput) {
op := &request.Operation{
Name: opEnableControl,
HTTPMethod: "POST",
HTTPPath: "/enable-control",
}
if input == nil {
input = &EnableControlInput{}
}
output = &EnableControlOutput{}
req = c.newRequest(op, input, output)
return
}
// EnableControl API operation for AWS Control Tower.
//
// This API call activates a control. It starts an asynchronous operation that
// creates Amazon Web Services resources on the specified organizational unit
// and the accounts it contains. The resources created will vary according to
// the control that you specify. For usage examples, see the Amazon Web Services
// Control Tower User Guide (https://docs.aws.amazon.com/controltower/latest/userguide/control-api-examples-short.html).
//
// 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 Control Tower's
// API operation EnableControl for usage and error information.
//
// Returned Error Types:
//
// - ValidationException
// The input does not satisfy the constraints specified by an Amazon Web Services
// service.
//
// - ConflictException
// Updating or deleting the resource can cause an inconsistent state.
//
// - ServiceQuotaExceededException
// The request would cause a service quota to be exceeded. The limit is 10 concurrent
// operations.
//
// - InternalServerException
// An unexpected error occurred during processing of a request.
//
// - AccessDeniedException
// You do not have sufficient access to perform this action.
//
// - ThrottlingException
// The request was denied due to request throttling.
//
// - ResourceNotFoundException
// The request references a resource that does not exist.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/EnableControl
func (c *ControlTower) EnableControl(input *EnableControlInput) (*EnableControlOutput, error) {
req, out := c.EnableControlRequest(input)
return out, req.Send()
}
// EnableControlWithContext is the same as EnableControl with the addition of
// the ability to pass a context and additional request options.
//
// See EnableControl 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 *ControlTower) EnableControlWithContext(ctx aws.Context, input *EnableControlInput, opts ...request.Option) (*EnableControlOutput, error) {
req, out := c.EnableControlRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opGetControlOperation = "GetControlOperation"
// GetControlOperationRequest generates a "aws/request.Request" representing the
// client's request for the GetControlOperation 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 GetControlOperation for more information on using the GetControlOperation
// 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 GetControlOperationRequest method.
// req, resp := client.GetControlOperationRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/GetControlOperation
func (c *ControlTower) GetControlOperationRequest(input *GetControlOperationInput) (req *request.Request, output *GetControlOperationOutput) {
op := &request.Operation{
Name: opGetControlOperation,
HTTPMethod: "POST",
HTTPPath: "/get-control-operation",
}
if input == nil {
input = &GetControlOperationInput{}
}
output = &GetControlOperationOutput{}
req = c.newRequest(op, input, output)
return
}
// GetControlOperation API operation for AWS Control Tower.
//
// Returns the status of a particular EnableControl or DisableControl operation.
// Displays a message in case of error. Details for an operation are available
// for 90 days. For usage examples, see the Amazon Web Services Control Tower
// User Guide (https://docs.aws.amazon.com/controltower/latest/userguide/control-api-examples-short.html).
//
// 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 Control Tower's
// API operation GetControlOperation for usage and error information.
//
// Returned Error Types:
//
// - ValidationException
// The input does not satisfy the constraints specified by an Amazon Web Services
// service.
//
// - InternalServerException
// An unexpected error occurred during processing of a request.
//
// - AccessDeniedException
// You do not have sufficient access to perform this action.
//
// - ThrottlingException
// The request was denied due to request throttling.
//
// - ResourceNotFoundException
// The request references a resource that does not exist.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/GetControlOperation
func (c *ControlTower) GetControlOperation(input *GetControlOperationInput) (*GetControlOperationOutput, error) {
req, out := c.GetControlOperationRequest(input)
return out, req.Send()
}
// GetControlOperationWithContext is the same as GetControlOperation with the addition of
// the ability to pass a context and additional request options.
//
// See GetControlOperation 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 *ControlTower) GetControlOperationWithContext(ctx aws.Context, input *GetControlOperationInput, opts ...request.Option) (*GetControlOperationOutput, error) {
req, out := c.GetControlOperationRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opGetEnabledControl = "GetEnabledControl"
// GetEnabledControlRequest generates a "aws/request.Request" representing the
// client's request for the GetEnabledControl 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 GetEnabledControl for more information on using the GetEnabledControl
// 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 GetEnabledControlRequest method.
// req, resp := client.GetEnabledControlRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/GetEnabledControl
func (c *ControlTower) GetEnabledControlRequest(input *GetEnabledControlInput) (req *request.Request, output *GetEnabledControlOutput) {
op := &request.Operation{
Name: opGetEnabledControl,
HTTPMethod: "POST",
HTTPPath: "/get-enabled-control",
}
if input == nil {
input = &GetEnabledControlInput{}
}
output = &GetEnabledControlOutput{}
req = c.newRequest(op, input, output)
return
}
// GetEnabledControl API operation for AWS Control Tower.
//
// Retrieves details about an enabled control. For usage examples, see the Amazon
// Web Services Control Tower User Guide (https://docs.aws.amazon.com/controltower/latest/userguide/control-api-examples-short.html).
//
// 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 Control Tower's
// API operation GetEnabledControl for usage and error information.
//
// Returned Error Types:
//
// - ValidationException
// The input does not satisfy the constraints specified by an Amazon Web Services
// service.
//
// - InternalServerException
// An unexpected error occurred during processing of a request.
//
// - AccessDeniedException
// You do not have sufficient access to perform this action.
//
// - ThrottlingException
// The request was denied due to request throttling.
//
// - ResourceNotFoundException
// The request references a resource that does not exist.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/GetEnabledControl
func (c *ControlTower) GetEnabledControl(input *GetEnabledControlInput) (*GetEnabledControlOutput, error) {
req, out := c.GetEnabledControlRequest(input)
return out, req.Send()
}
// GetEnabledControlWithContext is the same as GetEnabledControl with the addition of
// the ability to pass a context and additional request options.
//
// See GetEnabledControl 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 *ControlTower) GetEnabledControlWithContext(ctx aws.Context, input *GetEnabledControlInput, opts ...request.Option) (*GetEnabledControlOutput, error) {
req, out := c.GetEnabledControlRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opGetLandingZoneOperation = "GetLandingZoneOperation"
// GetLandingZoneOperationRequest generates a "aws/request.Request" representing the
// client's request for the GetLandingZoneOperation 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 GetLandingZoneOperation for more information on using the GetLandingZoneOperation
// 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 GetLandingZoneOperationRequest method.
// req, resp := client.GetLandingZoneOperationRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/GetLandingZoneOperation
func (c *ControlTower) GetLandingZoneOperationRequest(input *GetLandingZoneOperationInput) (req *request.Request, output *GetLandingZoneOperationOutput) {
op := &request.Operation{
Name: opGetLandingZoneOperation,
HTTPMethod: "POST",
HTTPPath: "/get-landingzone-operation",
}
if input == nil {
input = &GetLandingZoneOperationInput{}
}
output = &GetLandingZoneOperationOutput{}
req = c.newRequest(op, input, output)
return
}
// GetLandingZoneOperation API operation for AWS Control Tower.
//
// Returns the status of the specified landing zone operation. Details for an
// operation are available for 60 days.
//
// 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 Control Tower's
// API operation GetLandingZoneOperation for usage and error information.
//
// Returned Error Types:
//
// - ValidationException
// The input does not satisfy the constraints specified by an Amazon Web Services
// service.
//
// - InternalServerException
// An unexpected error occurred during processing of a request.
//
// - AccessDeniedException
// You do not have sufficient access to perform this action.
//
// - ThrottlingException
// The request was denied due to request throttling.
//
// - ResourceNotFoundException
// The request references a resource that does not exist.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/GetLandingZoneOperation
func (c *ControlTower) GetLandingZoneOperation(input *GetLandingZoneOperationInput) (*GetLandingZoneOperationOutput, error) {
req, out := c.GetLandingZoneOperationRequest(input)
return out, req.Send()
}
// GetLandingZoneOperationWithContext is the same as GetLandingZoneOperation with the addition of
// the ability to pass a context and additional request options.
//
// See GetLandingZoneOperation 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 *ControlTower) GetLandingZoneOperationWithContext(ctx aws.Context, input *GetLandingZoneOperationInput, opts ...request.Option) (*GetLandingZoneOperationOutput, error) {
req, out := c.GetLandingZoneOperationRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opListEnabledControls = "ListEnabledControls"
// ListEnabledControlsRequest generates a "aws/request.Request" representing the
// client's request for the ListEnabledControls 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 ListEnabledControls for more information on using the ListEnabledControls
// 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 ListEnabledControlsRequest method.
// req, resp := client.ListEnabledControlsRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/ListEnabledControls
func (c *ControlTower) ListEnabledControlsRequest(input *ListEnabledControlsInput) (req *request.Request, output *ListEnabledControlsOutput) {
op := &request.Operation{
Name: opListEnabledControls,
HTTPMethod: "POST",
HTTPPath: "/list-enabled-controls",
Paginator: &request.Paginator{
InputTokens: []string{"nextToken"},
OutputTokens: []string{"nextToken"},
LimitToken: "maxResults",
TruncationToken: "",
},
}
if input == nil {
input = &ListEnabledControlsInput{}
}
output = &ListEnabledControlsOutput{}
req = c.newRequest(op, input, output)
return
}
// ListEnabledControls API operation for AWS Control Tower.
//
// Lists the controls enabled by Amazon Web Services Control Tower on the specified
// organizational unit and the accounts it contains. For usage examples, see
// the Amazon Web Services Control Tower User Guide (https://docs.aws.amazon.com/controltower/latest/userguide/control-api-examples-short.html).
//
// 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 Control Tower's
// API operation ListEnabledControls for usage and error information.
//
// Returned Error Types:
//
// - ValidationException
// The input does not satisfy the constraints specified by an Amazon Web Services
// service.
//
// - InternalServerException
// An unexpected error occurred during processing of a request.
//
// - AccessDeniedException
// You do not have sufficient access to perform this action.
//
// - ThrottlingException
// The request was denied due to request throttling.
//
// - ResourceNotFoundException
// The request references a resource that does not exist.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/ListEnabledControls
func (c *ControlTower) ListEnabledControls(input *ListEnabledControlsInput) (*ListEnabledControlsOutput, error) {
req, out := c.ListEnabledControlsRequest(input)
return out, req.Send()
}
// ListEnabledControlsWithContext is the same as ListEnabledControls with the addition of
// the ability to pass a context and additional request options.
//
// See ListEnabledControls 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 *ControlTower) ListEnabledControlsWithContext(ctx aws.Context, input *ListEnabledControlsInput, opts ...request.Option) (*ListEnabledControlsOutput, error) {
req, out := c.ListEnabledControlsRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
// ListEnabledControlsPages iterates over the pages of a ListEnabledControls operation,
// calling the "fn" function with the response data for each page. To stop
// iterating, return false from the fn function.
//
// See ListEnabledControls 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 ListEnabledControls operation.
// pageNum := 0
// err := client.ListEnabledControlsPages(params,
// func(page *controltower.ListEnabledControlsOutput, lastPage bool) bool {
// pageNum++
// fmt.Println(page)
// return pageNum <= 3
// })
func (c *ControlTower) ListEnabledControlsPages(input *ListEnabledControlsInput, fn func(*ListEnabledControlsOutput, bool) bool) error {
return c.ListEnabledControlsPagesWithContext(aws.BackgroundContext(), input, fn)
}
// ListEnabledControlsPagesWithContext same as ListEnabledControlsPages 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 *ControlTower) ListEnabledControlsPagesWithContext(ctx aws.Context, input *ListEnabledControlsInput, fn func(*ListEnabledControlsOutput, bool) bool, opts ...request.Option) error {
p := request.Pagination{
NewRequest: func() (*request.Request, error) {
var inCpy *ListEnabledControlsInput
if input != nil {
tmp := *input
inCpy = &tmp
}
req, _ := c.ListEnabledControlsRequest(inCpy)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return req, nil
},
}
for p.Next() {
if !fn(p.Page().(*ListEnabledControlsOutput), !p.HasNextPage()) {
break
}
}
return p.Err()
}
const opListLandingZones = "ListLandingZones"
// ListLandingZonesRequest generates a "aws/request.Request" representing the
// client's request for the ListLandingZones 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 ListLandingZones for more information on using the ListLandingZones
// 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 ListLandingZonesRequest method.
// req, resp := client.ListLandingZonesRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/ListLandingZones
func (c *ControlTower) ListLandingZonesRequest(input *ListLandingZonesInput) (req *request.Request, output *ListLandingZonesOutput) {
op := &request.Operation{
Name: opListLandingZones,
HTTPMethod: "POST",
HTTPPath: "/list-landingzones",
Paginator: &request.Paginator{
InputTokens: []string{"nextToken"},
OutputTokens: []string{"nextToken"},
LimitToken: "maxResults",
TruncationToken: "",
},
}
if input == nil {
input = &ListLandingZonesInput{}
}
output = &ListLandingZonesOutput{}
req = c.newRequest(op, input, output)
return
}
// ListLandingZones API operation for AWS Control Tower.
//
// Returns the landing zone ARN for the landing zone deployed in your managed
// account. This API also creates an ARN for existing accounts that do not yet
// have a landing zone ARN.
//
// Returns one landing zone ARN.
//
// 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 Control Tower's
// API operation ListLandingZones for usage and error information.
//
// Returned Error Types:
//
// - ValidationException
// The input does not satisfy the constraints specified by an Amazon Web Services
// service.
//
// - InternalServerException
// An unexpected error occurred during processing of a request.
//
// - AccessDeniedException
// You do not have sufficient access to perform this action.
//
// - ThrottlingException
// The request was denied due to request throttling.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/ListLandingZones
func (c *ControlTower) ListLandingZones(input *ListLandingZonesInput) (*ListLandingZonesOutput, error) {
req, out := c.ListLandingZonesRequest(input)
return out, req.Send()
}
// ListLandingZonesWithContext is the same as ListLandingZones with the addition of
// the ability to pass a context and additional request options.
//
// See ListLandingZones 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 *ControlTower) ListLandingZonesWithContext(ctx aws.Context, input *ListLandingZonesInput, opts ...request.Option) (*ListLandingZonesOutput, error) {
req, out := c.ListLandingZonesRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
// ListLandingZonesPages iterates over the pages of a ListLandingZones operation,
// calling the "fn" function with the response data for each page. To stop
// iterating, return false from the fn function.
//
// See ListLandingZones 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 ListLandingZones operation.
// pageNum := 0
// err := client.ListLandingZonesPages(params,
// func(page *controltower.ListLandingZonesOutput, lastPage bool) bool {
// pageNum++
// fmt.Println(page)
// return pageNum <= 3
// })
func (c *ControlTower) ListLandingZonesPages(input *ListLandingZonesInput, fn func(*ListLandingZonesOutput, bool) bool) error {
return c.ListLandingZonesPagesWithContext(aws.BackgroundContext(), input, fn)
}
// ListLandingZonesPagesWithContext same as ListLandingZonesPages 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 *ControlTower) ListLandingZonesPagesWithContext(ctx aws.Context, input *ListLandingZonesInput, fn func(*ListLandingZonesOutput, bool) bool, opts ...request.Option) error {
p := request.Pagination{
NewRequest: func() (*request.Request, error) {
var inCpy *ListLandingZonesInput
if input != nil {
tmp := *input
inCpy = &tmp
}
req, _ := c.ListLandingZonesRequest(inCpy)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return req, nil
},
}
for p.Next() {
if !fn(p.Page().(*ListLandingZonesOutput), !p.HasNextPage()) {
break
}
}
return p.Err()
}
const opListTagsForResource = "ListTagsForResource"
// ListTagsForResourceRequest generates a "aws/request.Request" representing the
// client's request for the ListTagsForResource 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 ListTagsForResource for more information on using the ListTagsForResource
// 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 ListTagsForResourceRequest method.
// req, resp := client.ListTagsForResourceRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/ListTagsForResource
func (c *ControlTower) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) {
op := &request.Operation{
Name: opListTagsForResource,
HTTPMethod: "GET",
HTTPPath: "/tags/{resourceArn}",
}
if input == nil {
input = &ListTagsForResourceInput{}
}
output = &ListTagsForResourceOutput{}
req = c.newRequest(op, input, output)
return
}
// ListTagsForResource API operation for AWS Control Tower.
//
// Returns a list of tags associated with the resource. For usage examples,
// see the Amazon Web Services Control Tower User Guide (https://docs.aws.amazon.com/controltower/latest/userguide/control-api-examples-short.html).
//
// 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 Control Tower's
// API operation ListTagsForResource for usage and error information.
//
// Returned Error Types:
//
// - ValidationException
// The input does not satisfy the constraints specified by an Amazon Web Services
// service.
//
// - InternalServerException
// An unexpected error occurred during processing of a request.
//
// - ResourceNotFoundException
// The request references a resource that does not exist.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/ListTagsForResource
func (c *ControlTower) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) {
req, out := c.ListTagsForResourceRequest(input)
return out, req.Send()
}
// ListTagsForResourceWithContext is the same as ListTagsForResource with the addition of
// the ability to pass a context and additional request options.
//
// See ListTagsForResource 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 *ControlTower) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error) {
req, out := c.ListTagsForResourceRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opResetLandingZone = "ResetLandingZone"
// ResetLandingZoneRequest generates a "aws/request.Request" representing the
// client's request for the ResetLandingZone 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 ResetLandingZone for more information on using the ResetLandingZone
// 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 ResetLandingZoneRequest method.
// req, resp := client.ResetLandingZoneRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/ResetLandingZone
func (c *ControlTower) ResetLandingZoneRequest(input *ResetLandingZoneInput) (req *request.Request, output *ResetLandingZoneOutput) {
op := &request.Operation{
Name: opResetLandingZone,
HTTPMethod: "POST",
HTTPPath: "/reset-landingzone",
}
if input == nil {
input = &ResetLandingZoneInput{}
}
output = &ResetLandingZoneOutput{}
req = c.newRequest(op, input, output)
return
}
// ResetLandingZone API operation for AWS Control Tower.
//
// This API call resets a landing zone. It starts an asynchronous operation
// that resets the landing zone to the parameters specified in its original
// configuration.
//
// 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 Control Tower's
// API operation ResetLandingZone for usage and error information.
//
// Returned Error Types:
//
// - ValidationException
// The input does not satisfy the constraints specified by an Amazon Web Services
// service.
//
// - ConflictException
// Updating or deleting the resource can cause an inconsistent state.
//
// - InternalServerException
// An unexpected error occurred during processing of a request.
//
// - AccessDeniedException
// You do not have sufficient access to perform this action.
//
// - ThrottlingException
// The request was denied due to request throttling.
//
// - ResourceNotFoundException
// The request references a resource that does not exist.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/ResetLandingZone
func (c *ControlTower) ResetLandingZone(input *ResetLandingZoneInput) (*ResetLandingZoneOutput, error) {
req, out := c.ResetLandingZoneRequest(input)
return out, req.Send()
}
// ResetLandingZoneWithContext is the same as ResetLandingZone with the addition of
// the ability to pass a context and additional request options.
//
// See ResetLandingZone 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 *ControlTower) ResetLandingZoneWithContext(ctx aws.Context, input *ResetLandingZoneInput, opts ...request.Option) (*ResetLandingZoneOutput, error) {
req, out := c.ResetLandingZoneRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opTagResource = "TagResource"
// TagResourceRequest generates a "aws/request.Request" representing the
// client's request for the TagResource 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 TagResource for more information on using the TagResource
// 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 TagResourceRequest method.
// req, resp := client.TagResourceRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/TagResource
func (c *ControlTower) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput) {
op := &request.Operation{
Name: opTagResource,
HTTPMethod: "POST",
HTTPPath: "/tags/{resourceArn}",
}
if input == nil {
input = &TagResourceInput{}
}
output = &TagResourceOutput{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// TagResource API operation for AWS Control Tower.
//
// Applies tags to a resource. For usage examples, see the Amazon Web Services
// Control Tower User Guide (https://docs.aws.amazon.com/controltower/latest/userguide/control-api-examples-short.html).
//
// 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 Control Tower's
// API operation TagResource for usage and error information.
//
// Returned Error Types:
//
// - ValidationException
// The input does not satisfy the constraints specified by an Amazon Web Services
// service.
//
// - InternalServerException
// An unexpected error occurred during processing of a request.
//
// - ResourceNotFoundException
// The request references a resource that does not exist.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/TagResource
func (c *ControlTower) TagResource(input *TagResourceInput) (*TagResourceOutput, error) {
req, out := c.TagResourceRequest(input)
return out, req.Send()
}
// TagResourceWithContext is the same as TagResource with the addition of
// the ability to pass a context and additional request options.
//
// See TagResource 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 *ControlTower) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error) {
req, out := c.TagResourceRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opUntagResource = "UntagResource"
// UntagResourceRequest generates a "aws/request.Request" representing the
// client's request for the UntagResource 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 UntagResource for more information on using the UntagResource
// 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 UntagResourceRequest method.
// req, resp := client.UntagResourceRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/UntagResource
func (c *ControlTower) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) {
op := &request.Operation{
Name: opUntagResource,
HTTPMethod: "DELETE",
HTTPPath: "/tags/{resourceArn}",
}
if input == nil {
input = &UntagResourceInput{}
}
output = &UntagResourceOutput{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// UntagResource API operation for AWS Control Tower.
//
// Removes tags from a resource. For usage examples, see the Amazon Web Services
// Control Tower User Guide (https://docs.aws.amazon.com/controltower/latest/userguide/control-api-examples-short.html).
//
// 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 Control Tower's
// API operation UntagResource for usage and error information.
//
// Returned Error Types:
//
// - ValidationException
// The input does not satisfy the constraints specified by an Amazon Web Services
// service.
//
// - InternalServerException
// An unexpected error occurred during processing of a request.
//
// - ResourceNotFoundException
// The request references a resource that does not exist.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/UntagResource
func (c *ControlTower) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) {
req, out := c.UntagResourceRequest(input)
return out, req.Send()
}
// UntagResourceWithContext is the same as UntagResource with the addition of
// the ability to pass a context and additional request options.
//
// See UntagResource 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 *ControlTower) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error) {
req, out := c.UntagResourceRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
// You do not have sufficient access to perform this action.
type AccessDeniedException struct {
_ struct{} `type:"structure"`
RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s AccessDeniedException) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s AccessDeniedException) GoString() string {
return s.String()
}
func newErrorAccessDeniedException(v protocol.ResponseMetadata) error {
return &AccessDeniedException{
RespMetadata: v,
}
}
// Code returns the exception type name.
func (s *AccessDeniedException) Code() string {
return "AccessDeniedException"
}
// Message returns the exception's message.
func (s *AccessDeniedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
return ""
}
// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *AccessDeniedException) OrigErr() error {
return nil
}
func (s *AccessDeniedException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
func (s *AccessDeniedException) StatusCode() int {
return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
func (s *AccessDeniedException) RequestID() string {
return s.RespMetadata.RequestID
}
// Updating or deleting the resource can cause an inconsistent state.
type ConflictException struct {
_ struct{} `type:"structure"`
RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ConflictException) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ConflictException) GoString() string {
return s.String()
}
func newErrorConflictException(v protocol.ResponseMetadata) error {
return &ConflictException{
RespMetadata: v,
}
}
// Code returns the exception type name.
func (s *ConflictException) Code() string {
return "ConflictException"
}
// Message returns the exception's message.
func (s *ConflictException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
return ""
}
// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *ConflictException) OrigErr() error {
return nil
}
func (s *ConflictException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
func (s *ConflictException) StatusCode() int {
return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
func (s *ConflictException) RequestID() string {
return s.RespMetadata.RequestID
}
// An operation performed by the control.
type ControlOperation struct {
_ struct{} `type:"structure"`
// The time that the operation finished.
EndTime *time.Time `locationName:"endTime" type:"timestamp" timestampFormat:"iso8601"`
// One of ENABLE_CONTROL or DISABLE_CONTROL.
OperationType *string `locationName:"operationType" type:"string" enum:"ControlOperationType"`
// The time that the operation began.
StartTime *time.Time `locationName:"startTime" type:"timestamp" timestampFormat:"iso8601"`
// One of IN_PROGRESS, SUCEEDED, or FAILED.
Status *string `locationName:"status" type:"string" enum:"ControlOperationStatus"`
// If the operation result is FAILED, this string contains a message explaining
// why the operation failed.
StatusMessage *string `locationName:"statusMessage" type:"string"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ControlOperation) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ControlOperation) GoString() string {
return s.String()
}
// SetEndTime sets the EndTime field's value.
func (s *ControlOperation) SetEndTime(v time.Time) *ControlOperation {
s.EndTime = &v
return s
}
// SetOperationType sets the OperationType field's value.
func (s *ControlOperation) SetOperationType(v string) *ControlOperation {
s.OperationType = &v
return s
}
// SetStartTime sets the StartTime field's value.
func (s *ControlOperation) SetStartTime(v time.Time) *ControlOperation {
s.StartTime = &v
return s
}
// SetStatus sets the Status field's value.
func (s *ControlOperation) SetStatus(v string) *ControlOperation {
s.Status = &v
return s
}
// SetStatusMessage sets the StatusMessage field's value.
func (s *ControlOperation) SetStatusMessage(v string) *ControlOperation {
s.StatusMessage = &v
return s
}
type DeleteLandingZoneInput struct {
_ struct{} `type:"structure"`
// The unique identifier of the landing zone.
//
// LandingZoneIdentifier is a required field
LandingZoneIdentifier *string `locationName:"landingZoneIdentifier" type:"string" required:"true"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DeleteLandingZoneInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DeleteLandingZoneInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *DeleteLandingZoneInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "DeleteLandingZoneInput"}
if s.LandingZoneIdentifier == nil {
invalidParams.Add(request.NewErrParamRequired("LandingZoneIdentifier"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetLandingZoneIdentifier sets the LandingZoneIdentifier field's value.
func (s *DeleteLandingZoneInput) SetLandingZoneIdentifier(v string) *DeleteLandingZoneInput {
s.LandingZoneIdentifier = &v
return s
}
type DeleteLandingZoneOutput struct {
_ struct{} `type:"structure"`
// >A unique identifier assigned to a DeleteLandingZone operation. You can use
// this identifier as an input parameter of GetLandingZoneOperation to check
// the operation's status.
//
// OperationIdentifier is a required field
OperationIdentifier *string `locationName:"operationIdentifier" min:"36" type:"string" required:"true"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DeleteLandingZoneOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DeleteLandingZoneOutput) GoString() string {
return s.String()
}
// SetOperationIdentifier sets the OperationIdentifier field's value.
func (s *DeleteLandingZoneOutput) SetOperationIdentifier(v string) *DeleteLandingZoneOutput {
s.OperationIdentifier = &v
return s
}
type DisableControlInput struct {
_ struct{} `type:"structure"`
// The ARN of the control. Only Strongly recommended and Elective controls are
// permitted, with the exception of the landing zone Region deny control. For
// information on how to find the controlIdentifier, see the overview page (https://docs.aws.amazon.com/controltower/latest/APIReference/Welcome.html).
//
// ControlIdentifier is a required field
ControlIdentifier *string `locationName:"controlIdentifier" min:"20" type:"string" required:"true"`
// The ARN of the organizational unit. For information on how to find the targetIdentifier,
// see the overview page (https://docs.aws.amazon.com/controltower/latest/APIReference/Welcome.html).
//
// TargetIdentifier is a required field
TargetIdentifier *string `locationName:"targetIdentifier" min:"20" type:"string" required:"true"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DisableControlInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DisableControlInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *DisableControlInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "DisableControlInput"}
if s.ControlIdentifier == nil {
invalidParams.Add(request.NewErrParamRequired("ControlIdentifier"))
}
if s.ControlIdentifier != nil && len(*s.ControlIdentifier) < 20 {
invalidParams.Add(request.NewErrParamMinLen("ControlIdentifier", 20))
}
if s.TargetIdentifier == nil {
invalidParams.Add(request.NewErrParamRequired("TargetIdentifier"))
}
if s.TargetIdentifier != nil && len(*s.TargetIdentifier) < 20 {
invalidParams.Add(request.NewErrParamMinLen("TargetIdentifier", 20))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetControlIdentifier sets the ControlIdentifier field's value.
func (s *DisableControlInput) SetControlIdentifier(v string) *DisableControlInput {
s.ControlIdentifier = &v
return s
}
// SetTargetIdentifier sets the TargetIdentifier field's value.
func (s *DisableControlInput) SetTargetIdentifier(v string) *DisableControlInput {
s.TargetIdentifier = &v
return s
}
type DisableControlOutput struct {
_ struct{} `type:"structure"`
// The ID of the asynchronous operation, which is used to track status. The
// operation is available for 90 days.
//
// OperationIdentifier is a required field
OperationIdentifier *string `locationName:"operationIdentifier" min:"36" type:"string" required:"true"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DisableControlOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DisableControlOutput) GoString() string {
return s.String()
}
// SetOperationIdentifier sets the OperationIdentifier field's value.
func (s *DisableControlOutput) SetOperationIdentifier(v string) *DisableControlOutput {
s.OperationIdentifier = &v
return s
}
// The drift summary of the enabled control.
//
// Amazon Web Services Control Tower expects the enabled control configuration
// to include all supported and governed Regions. If the enabled control differs
// from the expected configuration, it is defined to be in a state of drift.
// You can repair this drift by resetting the enabled control.
type DriftStatusSummary struct {
_ struct{} `type:"structure"`
// The drift status of the enabled control.
//
// Valid values:
//
// * DRIFTED: The enabledControl deployed in this configuration doesn’t
// match the configuration that Amazon Web Services Control Tower expected.
//
// * IN_SYNC: The enabledControl deployed in this configuration matches the
// configuration that Amazon Web Services Control Tower expected.
//
// * NOT_CHECKING: Amazon Web Services Control Tower does not check drift
// for this enabled control. Drift is not supported for the control type.
//
// * UNKNOWN: Amazon Web Services Control Tower is not able to check the
// drift status for the enabled control.
DriftStatus *string `locationName:"driftStatus" type:"string" enum:"DriftStatus"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DriftStatusSummary) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DriftStatusSummary) GoString() string {
return s.String()
}
// SetDriftStatus sets the DriftStatus field's value.
func (s *DriftStatusSummary) SetDriftStatus(v string) *DriftStatusSummary {
s.DriftStatus = &v
return s
}
type EnableControlInput struct {
_ struct{} `type:"structure"`
// The ARN of the control. Only Strongly recommended and Elective controls are
// permitted, with the exception of the landing zone Region deny control. For
// information on how to find the controlIdentifier, see the overview page (https://docs.aws.amazon.com/controltower/latest/APIReference/Welcome.html).
//
// ControlIdentifier is a required field
ControlIdentifier *string `locationName:"controlIdentifier" min:"20" type:"string" required:"true"`
// Tags to be applied to the EnabledControl resource.
Tags map[string]*string `locationName:"tags" type:"map"`
// The ARN of the organizational unit. For information on how to find the targetIdentifier,
// see the overview page (https://docs.aws.amazon.com/controltower/latest/APIReference/Welcome.html).
//
// TargetIdentifier is a required field
TargetIdentifier *string `locationName:"targetIdentifier" min:"20" type:"string" required:"true"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s EnableControlInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s EnableControlInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *EnableControlInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "EnableControlInput"}
if s.ControlIdentifier == nil {
invalidParams.Add(request.NewErrParamRequired("ControlIdentifier"))
}
if s.ControlIdentifier != nil && len(*s.ControlIdentifier) < 20 {
invalidParams.Add(request.NewErrParamMinLen("ControlIdentifier", 20))
}
if s.TargetIdentifier == nil {
invalidParams.Add(request.NewErrParamRequired("TargetIdentifier"))
}
if s.TargetIdentifier != nil && len(*s.TargetIdentifier) < 20 {
invalidParams.Add(request.NewErrParamMinLen("TargetIdentifier", 20))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetControlIdentifier sets the ControlIdentifier field's value.
func (s *EnableControlInput) SetControlIdentifier(v string) *EnableControlInput {
s.ControlIdentifier = &v
return s
}
// SetTags sets the Tags field's value.
func (s *EnableControlInput) SetTags(v map[string]*string) *EnableControlInput {
s.Tags = v
return s
}
// SetTargetIdentifier sets the TargetIdentifier field's value.
func (s *EnableControlInput) SetTargetIdentifier(v string) *EnableControlInput {
s.TargetIdentifier = &v
return s
}
type EnableControlOutput struct {
_ struct{} `type:"structure"`
// The ARN of the EnabledControl resource.
Arn *string `locationName:"arn" min:"20" type:"string"`
// The ID of the asynchronous operation, which is used to track status. The
// operation is available for 90 days.
//
// OperationIdentifier is a required field
OperationIdentifier *string `locationName:"operationIdentifier" min:"36" type:"string" required:"true"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s EnableControlOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s EnableControlOutput) GoString() string {
return s.String()
}
// SetArn sets the Arn field's value.
func (s *EnableControlOutput) SetArn(v string) *EnableControlOutput {
s.Arn = &v
return s
}
// SetOperationIdentifier sets the OperationIdentifier field's value.
func (s *EnableControlOutput) SetOperationIdentifier(v string) *EnableControlOutput {
s.OperationIdentifier = &v
return s
}
// Information about the enabled control.
type EnabledControlDetails struct {
_ struct{} `type:"structure"`
// The ARN of the enabled control.
Arn *string `locationName:"arn" min:"20" type:"string"`
// The control identifier of the enabled control. For information on how to
// find the controlIdentifier, see the overview page (https://docs.aws.amazon.com/controltower/latest/APIReference/Welcome.html).
ControlIdentifier *string `locationName:"controlIdentifier" min:"20" type:"string"`
// The drift status of the enabled control.
DriftStatusSummary *DriftStatusSummary `locationName:"driftStatusSummary" type:"structure"`
// The deployment summary of the enabled control.
StatusSummary *EnablementStatusSummary `locationName:"statusSummary" type:"structure"`
// The ARN of the organizational unit. For information on how to find the targetIdentifier,
// see the overview page (https://docs.aws.amazon.com/controltower/latest/APIReference/Welcome.html).
TargetIdentifier *string `locationName:"targetIdentifier" min:"20" type:"string"`
// Target Amazon Web Services Regions for the enabled control.
TargetRegions []*Region `locationName:"targetRegions" type:"list"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s EnabledControlDetails) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s EnabledControlDetails) GoString() string {
return s.String()
}
// SetArn sets the Arn field's value.
func (s *EnabledControlDetails) SetArn(v string) *EnabledControlDetails {
s.Arn = &v
return s
}
// SetControlIdentifier sets the ControlIdentifier field's value.
func (s *EnabledControlDetails) SetControlIdentifier(v string) *EnabledControlDetails {
s.ControlIdentifier = &v
return s
}
// SetDriftStatusSummary sets the DriftStatusSummary field's value.
func (s *EnabledControlDetails) SetDriftStatusSummary(v *DriftStatusSummary) *EnabledControlDetails {
s.DriftStatusSummary = v
return s
}
// SetStatusSummary sets the StatusSummary field's value.
func (s *EnabledControlDetails) SetStatusSummary(v *EnablementStatusSummary) *EnabledControlDetails {
s.StatusSummary = v
return s
}
// SetTargetIdentifier sets the TargetIdentifier field's value.
func (s *EnabledControlDetails) SetTargetIdentifier(v string) *EnabledControlDetails {
s.TargetIdentifier = &v
return s
}
// SetTargetRegions sets the TargetRegions field's value.
func (s *EnabledControlDetails) SetTargetRegions(v []*Region) *EnabledControlDetails {
s.TargetRegions = v
return s
}
// Returns a summary of information about an enabled control.
type EnabledControlSummary struct {
_ struct{} `type:"structure"`
// The ARN of the enabled control.
Arn *string `locationName:"arn" min:"20" type:"string"`
// The controlIdentifier of the enabled control.
ControlIdentifier *string `locationName:"controlIdentifier" min:"20" type:"string"`
// The drift status of the enabled control.
DriftStatusSummary *DriftStatusSummary `locationName:"driftStatusSummary" type:"structure"`
// A short description of the status of the enabled control.
StatusSummary *EnablementStatusSummary `locationName:"statusSummary" type:"structure"`
// The ARN of the organizational unit.
TargetIdentifier *string `locationName:"targetIdentifier" min:"20" type:"string"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s EnabledControlSummary) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s EnabledControlSummary) GoString() string {
return s.String()
}
// SetArn sets the Arn field's value.
func (s *EnabledControlSummary) SetArn(v string) *EnabledControlSummary {
s.Arn = &v
return s
}
// SetControlIdentifier sets the ControlIdentifier field's value.
func (s *EnabledControlSummary) SetControlIdentifier(v string) *EnabledControlSummary {
s.ControlIdentifier = &v
return s
}
// SetDriftStatusSummary sets the DriftStatusSummary field's value.
func (s *EnabledControlSummary) SetDriftStatusSummary(v *DriftStatusSummary) *EnabledControlSummary {
s.DriftStatusSummary = v
return s
}
// SetStatusSummary sets the StatusSummary field's value.
func (s *EnabledControlSummary) SetStatusSummary(v *EnablementStatusSummary) *EnabledControlSummary {
s.StatusSummary = v
return s
}
// SetTargetIdentifier sets the TargetIdentifier field's value.
func (s *EnabledControlSummary) SetTargetIdentifier(v string) *EnabledControlSummary {
s.TargetIdentifier = &v
return s
}
// The deployment summary of the enabled control.
type EnablementStatusSummary struct {
_ struct{} `type:"structure"`
// The last operation identifier for the enabled control.
LastOperationIdentifier *string `locationName:"lastOperationIdentifier" min:"36" type:"string"`
// The deployment status of the enabled control.
//
// Valid values:
//
// * SUCCEEDED: The enabledControl configuration was deployed successfully.
//
// * UNDER_CHANGE: The enabledControl configuration is changing.
//
// * FAILED: The enabledControl configuration failed to deploy.
Status *string `locationName:"status" type:"string" enum:"EnablementStatus"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s EnablementStatusSummary) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s EnablementStatusSummary) GoString() string {
return s.String()
}
// SetLastOperationIdentifier sets the LastOperationIdentifier field's value.
func (s *EnablementStatusSummary) SetLastOperationIdentifier(v string) *EnablementStatusSummary {
s.LastOperationIdentifier = &v
return s
}
// SetStatus sets the Status field's value.
func (s *EnablementStatusSummary) SetStatus(v string) *EnablementStatusSummary {
s.Status = &v
return s
}
type GetControlOperationInput struct {
_ struct{} `type:"structure"`
// The ID of the asynchronous operation, which is used to track status. The
// operation is available for 90 days.
//
// OperationIdentifier is a required field
OperationIdentifier *string `locationName:"operationIdentifier" min:"36" type:"string" required:"true"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s GetControlOperationInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s GetControlOperationInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *GetControlOperationInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "GetControlOperationInput"}
if s.OperationIdentifier == nil {
invalidParams.Add(request.NewErrParamRequired("OperationIdentifier"))
}
if s.OperationIdentifier != nil && len(*s.OperationIdentifier) < 36 {
invalidParams.Add(request.NewErrParamMinLen("OperationIdentifier", 36))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetOperationIdentifier sets the OperationIdentifier field's value.
func (s *GetControlOperationInput) SetOperationIdentifier(v string) *GetControlOperationInput {
s.OperationIdentifier = &v
return s
}
type GetControlOperationOutput struct {
_ struct{} `type:"structure"`
// An operation performed by the control.
//
// ControlOperation is a required field
ControlOperation *ControlOperation `locationName:"controlOperation" type:"structure" required:"true"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s GetControlOperationOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s GetControlOperationOutput) GoString() string {
return s.String()
}
// SetControlOperation sets the ControlOperation field's value.
func (s *GetControlOperationOutput) SetControlOperation(v *ControlOperation) *GetControlOperationOutput {
s.ControlOperation = v
return s
}
type GetEnabledControlInput struct {
_ struct{} `type:"structure"`
// The controlIdentifier of the enabled control.
//
// EnabledControlIdentifier is a required field
EnabledControlIdentifier *string `locationName:"enabledControlIdentifier" min:"20" type:"string" required:"true"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s GetEnabledControlInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s GetEnabledControlInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *GetEnabledControlInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "GetEnabledControlInput"}
if s.EnabledControlIdentifier == nil {
invalidParams.Add(request.NewErrParamRequired("EnabledControlIdentifier"))
}
if s.EnabledControlIdentifier != nil && len(*s.EnabledControlIdentifier) < 20 {
invalidParams.Add(request.NewErrParamMinLen("EnabledControlIdentifier", 20))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetEnabledControlIdentifier sets the EnabledControlIdentifier field's value.
func (s *GetEnabledControlInput) SetEnabledControlIdentifier(v string) *GetEnabledControlInput {
s.EnabledControlIdentifier = &v
return s
}
type GetEnabledControlOutput struct {
_ struct{} `type:"structure"`
// Information about the enabled control.
//
// EnabledControlDetails is a required field
EnabledControlDetails *EnabledControlDetails `locationName:"enabledControlDetails" type:"structure" required:"true"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s GetEnabledControlOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s GetEnabledControlOutput) GoString() string {
return s.String()
}
// SetEnabledControlDetails sets the EnabledControlDetails field's value.
func (s *GetEnabledControlOutput) SetEnabledControlDetails(v *EnabledControlDetails) *GetEnabledControlOutput {
s.EnabledControlDetails = v
return s
}
type GetLandingZoneOperationInput struct {
_ struct{} `type:"structure"`
// A unique identifier assigned to a landing zone operation.
//
// OperationIdentifier is a required field
OperationIdentifier *string `locationName:"operationIdentifier" min:"36" type:"string" required:"true"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s GetLandingZoneOperationInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s GetLandingZoneOperationInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *GetLandingZoneOperationInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "GetLandingZoneOperationInput"}
if s.OperationIdentifier == nil {
invalidParams.Add(request.NewErrParamRequired("OperationIdentifier"))
}
if s.OperationIdentifier != nil && len(*s.OperationIdentifier) < 36 {
invalidParams.Add(request.NewErrParamMinLen("OperationIdentifier", 36))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetOperationIdentifier sets the OperationIdentifier field's value.
func (s *GetLandingZoneOperationInput) SetOperationIdentifier(v string) *GetLandingZoneOperationInput {
s.OperationIdentifier = &v
return s
}
type GetLandingZoneOperationOutput struct {
_ struct{} `type:"structure"`
// Details about a landing zone operation.
//
// OperationDetails is a required field
OperationDetails *LandingZoneOperationDetail `locationName:"operationDetails" type:"structure" required:"true"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s GetLandingZoneOperationOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s GetLandingZoneOperationOutput) GoString() string {
return s.String()
}
// SetOperationDetails sets the OperationDetails field's value.
func (s *GetLandingZoneOperationOutput) SetOperationDetails(v *LandingZoneOperationDetail) *GetLandingZoneOperationOutput {
s.OperationDetails = v
return s
}
// An unexpected error occurred during processing of a request.
type InternalServerException struct {
_ struct{} `type:"structure"`
RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s InternalServerException) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s InternalServerException) GoString() string {
return s.String()
}
func newErrorInternalServerException(v protocol.ResponseMetadata) error {
return &InternalServerException{
RespMetadata: v,
}
}
// Code returns the exception type name.
func (s *InternalServerException) Code() string {
return "InternalServerException"
}
// Message returns the exception's message.
func (s *InternalServerException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
return ""
}
// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *InternalServerException) OrigErr() error {
return nil
}
func (s *InternalServerException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
func (s *InternalServerException) StatusCode() int {
return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
func (s *InternalServerException) RequestID() string {
return s.RespMetadata.RequestID
}
// Information about a landing zone operation.
type LandingZoneOperationDetail struct {
_ struct{} `type:"structure"`
// The landing zone operation end time.
EndTime *time.Time `locationName:"endTime" type:"timestamp" timestampFormat:"iso8601"`
// The landing zone operation type.
//
// Valid values:
//
// * DELETE: The DeleteLandingZone operation.
//
// * CREATE: The CreateLandingZone operation.
//
// * UPDATE: The UpdateLandingZone operation.
//
// * RESET: The ResetLandingZone operation.
OperationType *string `locationName:"operationType" type:"string" enum:"LandingZoneOperationType"`
// The landing zone operation start time.
StartTime *time.Time `locationName:"startTime" type:"timestamp" timestampFormat:"iso8601"`
// Valid values:
//
// * SUCCEEDED: The landing zone operation succeeded.
//
// * IN_PROGRESS: The landing zone operation is in progress.
//
// * FAILED: The landing zone operation failed.
Status *string `locationName:"status" type:"string" enum:"LandingZoneOperationStatus"`
// If the operation result is FAILED, this string contains a message explaining
// why the operation failed.
StatusMessage *string `locationName:"statusMessage" type:"string"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s LandingZoneOperationDetail) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s LandingZoneOperationDetail) GoString() string {
return s.String()
}
// SetEndTime sets the EndTime field's value.
func (s *LandingZoneOperationDetail) SetEndTime(v time.Time) *LandingZoneOperationDetail {
s.EndTime = &v
return s
}
// SetOperationType sets the OperationType field's value.
func (s *LandingZoneOperationDetail) SetOperationType(v string) *LandingZoneOperationDetail {
s.OperationType = &v
return s
}
// SetStartTime sets the StartTime field's value.
func (s *LandingZoneOperationDetail) SetStartTime(v time.Time) *LandingZoneOperationDetail {
s.StartTime = &v
return s
}
// SetStatus sets the Status field's value.
func (s *LandingZoneOperationDetail) SetStatus(v string) *LandingZoneOperationDetail {
s.Status = &v
return s
}
// SetStatusMessage sets the StatusMessage field's value.
func (s *LandingZoneOperationDetail) SetStatusMessage(v string) *LandingZoneOperationDetail {
s.StatusMessage = &v
return s
}
// Returns a summary of information about a landing zone.
type LandingZoneSummary struct {
_ struct{} `type:"structure"`
// The ARN of the landing zone.
Arn *string `locationName:"arn" min:"20" type:"string"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s LandingZoneSummary) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s LandingZoneSummary) GoString() string {
return s.String()
}
// SetArn sets the Arn field's value.
func (s *LandingZoneSummary) SetArn(v string) *LandingZoneSummary {
s.Arn = &v
return s
}
type ListEnabledControlsInput struct {
_ struct{} `type:"structure"`
// How many results to return per API call.
MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"`
// The token to continue the list from a previous API call with the same parameters.
NextToken *string `locationName:"nextToken" type:"string"`
// The ARN of the organizational unit. For information on how to find the targetIdentifier,
// see the overview page (https://docs.aws.amazon.com/controltower/latest/APIReference/Welcome.html).
//
// TargetIdentifier is a required field
TargetIdentifier *string `locationName:"targetIdentifier" min:"20" type:"string" required:"true"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ListEnabledControlsInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ListEnabledControlsInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *ListEnabledControlsInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "ListEnabledControlsInput"}
if s.MaxResults != nil && *s.MaxResults < 1 {
invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
}
if s.TargetIdentifier == nil {
invalidParams.Add(request.NewErrParamRequired("TargetIdentifier"))
}
if s.TargetIdentifier != nil && len(*s.TargetIdentifier) < 20 {
invalidParams.Add(request.NewErrParamMinLen("TargetIdentifier", 20))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetMaxResults sets the MaxResults field's value.
func (s *ListEnabledControlsInput) SetMaxResults(v int64) *ListEnabledControlsInput {
s.MaxResults = &v
return s
}
// SetNextToken sets the NextToken field's value.
func (s *ListEnabledControlsInput) SetNextToken(v string) *ListEnabledControlsInput {
s.NextToken = &v
return s
}
// SetTargetIdentifier sets the TargetIdentifier field's value.
func (s *ListEnabledControlsInput) SetTargetIdentifier(v string) *ListEnabledControlsInput {
s.TargetIdentifier = &v
return s
}
type ListEnabledControlsOutput struct {
_ struct{} `type:"structure"`
// Lists the controls enabled by Amazon Web Services Control Tower on the specified
// organizational unit and the accounts it contains.
//
// EnabledControls is a required field
EnabledControls []*EnabledControlSummary `locationName:"enabledControls" type:"list" required:"true"`
// Retrieves the next page of results. If the string is empty, the response
// is the end of the results.
NextToken *string `locationName:"nextToken" type:"string"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ListEnabledControlsOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ListEnabledControlsOutput) GoString() string {
return s.String()
}
// SetEnabledControls sets the EnabledControls field's value.
func (s *ListEnabledControlsOutput) SetEnabledControls(v []*EnabledControlSummary) *ListEnabledControlsOutput {
s.EnabledControls = v
return s
}
// SetNextToken sets the NextToken field's value.
func (s *ListEnabledControlsOutput) SetNextToken(v string) *ListEnabledControlsOutput {
s.NextToken = &v
return s
}
type ListLandingZonesInput struct {
_ struct{} `type:"structure"`
// The maximum number of returned landing zone ARNs, which is one.
MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"`
// The token to continue the list from a previous API call with the same parameters.
NextToken *string `locationName:"nextToken" type:"string"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ListLandingZonesInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ListLandingZonesInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *ListLandingZonesInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "ListLandingZonesInput"}
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 *ListLandingZonesInput) SetMaxResults(v int64) *ListLandingZonesInput {
s.MaxResults = &v
return s
}
// SetNextToken sets the NextToken field's value.
func (s *ListLandingZonesInput) SetNextToken(v string) *ListLandingZonesInput {
s.NextToken = &v
return s
}
type ListLandingZonesOutput struct {
_ struct{} `type:"structure"`
// The ARN of the landing zone.
//
// LandingZones is a required field
LandingZones []*LandingZoneSummary `locationName:"landingZones" type:"list" required:"true"`
// Retrieves the next page of results. If the string is empty, the response
// is the end of the results.
NextToken *string `locationName:"nextToken" type:"string"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ListLandingZonesOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ListLandingZonesOutput) GoString() string {
return s.String()
}
// SetLandingZones sets the LandingZones field's value.
func (s *ListLandingZonesOutput) SetLandingZones(v []*LandingZoneSummary) *ListLandingZonesOutput {
s.LandingZones = v
return s
}
// SetNextToken sets the NextToken field's value.
func (s *ListLandingZonesOutput) SetNextToken(v string) *ListLandingZonesOutput {
s.NextToken = &v
return s
}
type ListTagsForResourceInput struct {
_ struct{} `type:"structure" nopayload:"true"`
// The ARN of the resource.
//
// ResourceArn is a required field
ResourceArn *string `location:"uri" locationName:"resourceArn" min:"20" type:"string" required:"true"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ListTagsForResourceInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ListTagsForResourceInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *ListTagsForResourceInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourceInput"}
if s.ResourceArn == nil {
invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
}
if s.ResourceArn != nil && len(*s.ResourceArn) < 20 {
invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 20))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetResourceArn sets the ResourceArn field's value.
func (s *ListTagsForResourceInput) SetResourceArn(v string) *ListTagsForResourceInput {
s.ResourceArn = &v
return s
}
type ListTagsForResourceOutput struct {
_ struct{} `type:"structure"`
// A list of tags, as key:value strings.
//
// Tags is a required field
Tags map[string]*string `locationName:"tags" type:"map" required:"true"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ListTagsForResourceOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ListTagsForResourceOutput) GoString() string {
return s.String()
}
// SetTags sets the Tags field's value.
func (s *ListTagsForResourceOutput) SetTags(v map[string]*string) *ListTagsForResourceOutput {
s.Tags = v
return s
}
// An Amazon Web Services Region in which Amazon Web Services Control Tower
// expects to find the control deployed.
//
// The expected Regions are based on the Regions that are governed by the landing
// zone. In certain cases, a control is not actually enabled in the Region as
// expected, such as during drift, or mixed governance (https://docs.aws.amazon.com/controltower/latest/userguide/region-how.html#mixed-governance).
type Region struct {
_ struct{} `type:"structure"`
// The Amazon Web Services Region name.
Name *string `locationName:"name" min:"1" type:"string"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s Region) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s Region) GoString() string {
return s.String()
}
// SetName sets the Name field's value.
func (s *Region) SetName(v string) *Region {
s.Name = &v
return s
}
type ResetLandingZoneInput struct {
_ struct{} `type:"structure"`
// The unique identifier of the landing zone.
//
// LandingZoneIdentifier is a required field
LandingZoneIdentifier *string `locationName:"landingZoneIdentifier" type:"string" required:"true"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ResetLandingZoneInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ResetLandingZoneInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *ResetLandingZoneInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "ResetLandingZoneInput"}
if s.LandingZoneIdentifier == nil {
invalidParams.Add(request.NewErrParamRequired("LandingZoneIdentifier"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetLandingZoneIdentifier sets the LandingZoneIdentifier field's value.
func (s *ResetLandingZoneInput) SetLandingZoneIdentifier(v string) *ResetLandingZoneInput {
s.LandingZoneIdentifier = &v
return s
}
type ResetLandingZoneOutput struct {
_ struct{} `type:"structure"`
// A unique identifier assigned to a ResetLandingZone operation. You can use
// this identifier as an input parameter of GetLandingZoneOperation to check
// the operation's status.
//
// OperationIdentifier is a required field
OperationIdentifier *string `locationName:"operationIdentifier" min:"36" type:"string" required:"true"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ResetLandingZoneOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ResetLandingZoneOutput) GoString() string {
return s.String()
}
// SetOperationIdentifier sets the OperationIdentifier field's value.
func (s *ResetLandingZoneOutput) SetOperationIdentifier(v string) *ResetLandingZoneOutput {
s.OperationIdentifier = &v
return s
}
// The request references a resource that does not exist.
type ResourceNotFoundException struct {
_ struct{} `type:"structure"`
RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ResourceNotFoundException) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ResourceNotFoundException) GoString() string {
return s.String()
}
func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error {
return &ResourceNotFoundException{
RespMetadata: v,
}
}
// Code returns the exception type name.
func (s *ResourceNotFoundException) Code() string {
return "ResourceNotFoundException"
}
// Message returns the exception's message.
func (s *ResourceNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
return ""
}
// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *ResourceNotFoundException) OrigErr() error {
return nil
}
func (s *ResourceNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
func (s *ResourceNotFoundException) StatusCode() int {
return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
func (s *ResourceNotFoundException) RequestID() string {
return s.RespMetadata.RequestID
}
// The request would cause a service quota to be exceeded. The limit is 10 concurrent
// operations.
type ServiceQuotaExceededException struct {
_ struct{} `type:"structure"`
RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ServiceQuotaExceededException) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ServiceQuotaExceededException) GoString() string {
return s.String()
}
func newErrorServiceQuotaExceededException(v protocol.ResponseMetadata) error {
return &ServiceQuotaExceededException{
RespMetadata: v,
}
}
// Code returns the exception type name.
func (s *ServiceQuotaExceededException) Code() string {
return "ServiceQuotaExceededException"
}
// Message returns the exception's message.
func (s *ServiceQuotaExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
return ""
}
// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *ServiceQuotaExceededException) OrigErr() error {
return nil
}
func (s *ServiceQuotaExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
func (s *ServiceQuotaExceededException) StatusCode() int {
return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
func (s *ServiceQuotaExceededException) RequestID() string {
return s.RespMetadata.RequestID
}
type TagResourceInput struct {
_ struct{} `type:"structure"`
// The ARN of the resource to be tagged.
//
// ResourceArn is a required field
ResourceArn *string `location:"uri" locationName:"resourceArn" min:"20" type:"string" required:"true"`
// Tags to be applied to the resource.
//
// Tags is a required field
Tags map[string]*string `locationName:"tags" type:"map" required:"true"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s TagResourceInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s TagResourceInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *TagResourceInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "TagResourceInput"}
if s.ResourceArn == nil {
invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
}
if s.ResourceArn != nil && len(*s.ResourceArn) < 20 {
invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 20))
}
if s.Tags == nil {
invalidParams.Add(request.NewErrParamRequired("Tags"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetResourceArn sets the ResourceArn field's value.
func (s *TagResourceInput) SetResourceArn(v string) *TagResourceInput {
s.ResourceArn = &v
return s
}
// SetTags sets the Tags field's value.
func (s *TagResourceInput) SetTags(v map[string]*string) *TagResourceInput {
s.Tags = v
return s
}
type TagResourceOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s TagResourceOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s TagResourceOutput) GoString() string {
return s.String()
}
// The request was denied due to request throttling.
type ThrottlingException struct {
_ struct{} `type:"structure"`
RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
// The ID of the service quota that was exceeded.
QuotaCode *string `locationName:"quotaCode" type:"string"`
// The number of seconds to wait before retrying.
RetryAfterSeconds *int64 `location:"header" locationName:"Retry-After" type:"integer"`
// The ID of the service that is associated with the error.
ServiceCode *string `locationName:"serviceCode" type:"string"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ThrottlingException) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ThrottlingException) GoString() string {
return s.String()
}
func newErrorThrottlingException(v protocol.ResponseMetadata) error {
return &ThrottlingException{
RespMetadata: v,
}
}
// Code returns the exception type name.
func (s *ThrottlingException) Code() string {
return "ThrottlingException"
}
// Message returns the exception's message.
func (s *ThrottlingException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
return ""
}
// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *ThrottlingException) OrigErr() error {
return nil
}
func (s *ThrottlingException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
func (s *ThrottlingException) StatusCode() int {
return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
func (s *ThrottlingException) RequestID() string {
return s.RespMetadata.RequestID
}
type UntagResourceInput struct {
_ struct{} `type:"structure" nopayload:"true"`
// The ARN of the resource.
//
// ResourceArn is a required field
ResourceArn *string `location:"uri" locationName:"resourceArn" min:"20" type:"string" required:"true"`
// Tag keys to be removed from the resource.
//
// TagKeys is a required field
TagKeys []*string `location:"querystring" locationName:"tagKeys" type:"list" required:"true"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s UntagResourceInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s UntagResourceInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *UntagResourceInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "UntagResourceInput"}
if s.ResourceArn == nil {
invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
}
if s.ResourceArn != nil && len(*s.ResourceArn) < 20 {
invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 20))
}
if s.TagKeys == nil {
invalidParams.Add(request.NewErrParamRequired("TagKeys"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetResourceArn sets the ResourceArn field's value.
func (s *UntagResourceInput) SetResourceArn(v string) *UntagResourceInput {
s.ResourceArn = &v
return s
}
// SetTagKeys sets the TagKeys field's value.
func (s *UntagResourceInput) SetTagKeys(v []*string) *UntagResourceInput {
s.TagKeys = v
return s
}
type UntagResourceOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s UntagResourceOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s UntagResourceOutput) GoString() string {
return s.String()
}
// The input does not satisfy the constraints specified by an Amazon Web Services
// service.
type ValidationException struct {
_ struct{} `type:"structure"`
RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ValidationException) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ValidationException) GoString() string {
return s.String()
}
func newErrorValidationException(v protocol.ResponseMetadata) error {
return &ValidationException{
RespMetadata: v,
}
}
// Code returns the exception type name.
func (s *ValidationException) Code() string {
return "ValidationException"
}
// Message returns the exception's message.
func (s *ValidationException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
return ""
}
// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *ValidationException) OrigErr() error {
return nil
}
func (s *ValidationException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
func (s *ValidationException) StatusCode() int {
return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
func (s *ValidationException) RequestID() string {
return s.RespMetadata.RequestID
}
const (
// ControlOperationStatusSucceeded is a ControlOperationStatus enum value
ControlOperationStatusSucceeded = "SUCCEEDED"
// ControlOperationStatusFailed is a ControlOperationStatus enum value
ControlOperationStatusFailed = "FAILED"
// ControlOperationStatusInProgress is a ControlOperationStatus enum value
ControlOperationStatusInProgress = "IN_PROGRESS"
)
// ControlOperationStatus_Values returns all elements of the ControlOperationStatus enum
func ControlOperationStatus_Values() []string {
return []string{
ControlOperationStatusSucceeded,
ControlOperationStatusFailed,
ControlOperationStatusInProgress,
}
}
const (
// ControlOperationTypeEnableControl is a ControlOperationType enum value
ControlOperationTypeEnableControl = "ENABLE_CONTROL"
// ControlOperationTypeDisableControl is a ControlOperationType enum value
ControlOperationTypeDisableControl = "DISABLE_CONTROL"
// ControlOperationTypeUpdateEnabledControl is a ControlOperationType enum value
ControlOperationTypeUpdateEnabledControl = "UPDATE_ENABLED_CONTROL"
)
// ControlOperationType_Values returns all elements of the ControlOperationType enum
func ControlOperationType_Values() []string {
return []string{
ControlOperationTypeEnableControl,
ControlOperationTypeDisableControl,
ControlOperationTypeUpdateEnabledControl,
}
}
const (
// DriftStatusDrifted is a DriftStatus enum value
DriftStatusDrifted = "DRIFTED"
// DriftStatusInSync is a DriftStatus enum value
DriftStatusInSync = "IN_SYNC"
// DriftStatusNotChecking is a DriftStatus enum value
DriftStatusNotChecking = "NOT_CHECKING"
// DriftStatusUnknown is a DriftStatus enum value
DriftStatusUnknown = "UNKNOWN"
)
// DriftStatus_Values returns all elements of the DriftStatus enum
func DriftStatus_Values() []string {
return []string{
DriftStatusDrifted,
DriftStatusInSync,
DriftStatusNotChecking,
DriftStatusUnknown,
}
}
const (
// EnablementStatusSucceeded is a EnablementStatus enum value
EnablementStatusSucceeded = "SUCCEEDED"
// EnablementStatusFailed is a EnablementStatus enum value
EnablementStatusFailed = "FAILED"
// EnablementStatusUnderChange is a EnablementStatus enum value
EnablementStatusUnderChange = "UNDER_CHANGE"
)
// EnablementStatus_Values returns all elements of the EnablementStatus enum
func EnablementStatus_Values() []string {
return []string{
EnablementStatusSucceeded,
EnablementStatusFailed,
EnablementStatusUnderChange,
}
}
const (
// LandingZoneOperationStatusSucceeded is a LandingZoneOperationStatus enum value
LandingZoneOperationStatusSucceeded = "SUCCEEDED"
// LandingZoneOperationStatusFailed is a LandingZoneOperationStatus enum value
LandingZoneOperationStatusFailed = "FAILED"
// LandingZoneOperationStatusInProgress is a LandingZoneOperationStatus enum value
LandingZoneOperationStatusInProgress = "IN_PROGRESS"
)
// LandingZoneOperationStatus_Values returns all elements of the LandingZoneOperationStatus enum
func LandingZoneOperationStatus_Values() []string {
return []string{
LandingZoneOperationStatusSucceeded,
LandingZoneOperationStatusFailed,
LandingZoneOperationStatusInProgress,
}
}
const (
// LandingZoneOperationTypeDelete is a LandingZoneOperationType enum value
LandingZoneOperationTypeDelete = "DELETE"
// LandingZoneOperationTypeCreate is a LandingZoneOperationType enum value
LandingZoneOperationTypeCreate = "CREATE"
// LandingZoneOperationTypeUpdate is a LandingZoneOperationType enum value
LandingZoneOperationTypeUpdate = "UPDATE"
// LandingZoneOperationTypeReset is a LandingZoneOperationType enum value
LandingZoneOperationTypeReset = "RESET"
)
// LandingZoneOperationType_Values returns all elements of the LandingZoneOperationType enum
func LandingZoneOperationType_Values() []string {
return []string{
LandingZoneOperationTypeDelete,
LandingZoneOperationTypeCreate,
LandingZoneOperationTypeUpdate,
LandingZoneOperationTypeReset,
}
}
|