aws-sdk-ec2 1.0.0.rc8 → 1.0.0.rc9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/aws-sdk-ec2.rb +1 -1
- data/lib/aws-sdk-ec2/client.rb +3001 -11
- metadata +4 -4
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA1:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 011b7e6f4f446059d291c35db8d3891789d14a6e
         | 
| 4 | 
            +
              data.tar.gz: a9cefa3bd19e3defb20f4e7118e7262a16583fcb
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 6fad71a7f556d63a5b7af60a6a47b0b23845f5cecacda477926d510214588712920fb1a4e21adedabb95a64dc1ed98afc9f7e94134f0350f1bb05e31a6b710a1
         | 
| 7 | 
            +
              data.tar.gz: 7bd1c08d4fb28791a0d078a205fd7202e498886706010dec3f113b97dd007a07394e42c87a3e6b6e5a616bf9a27d7a9b4a840c54df483abf6cc7865ac208026b
         | 
    
        data/lib/aws-sdk-ec2.rb
    CHANGED
    
    
    
        data/lib/aws-sdk-ec2/client.rb
    CHANGED
    
    | @@ -283,6 +283,35 @@ module Aws::EC2 | |
| 283 283 | 
             
                #   * {Types::AllocateAddressResult#allocation_id #allocation_id} => String
         | 
| 284 284 | 
             
                #   * {Types::AllocateAddressResult#domain #domain} => String
         | 
| 285 285 | 
             
                #
         | 
| 286 | 
            +
                #
         | 
| 287 | 
            +
                # @example Example: To allocate an Elastic IP address for EC2-VPC
         | 
| 288 | 
            +
                #
         | 
| 289 | 
            +
                #   # This example allocates an Elastic IP address to use with an instance in a VPC.
         | 
| 290 | 
            +
                #
         | 
| 291 | 
            +
                #   resp = client.allocate_address({
         | 
| 292 | 
            +
                #     domain: "vpc", 
         | 
| 293 | 
            +
                #   })
         | 
| 294 | 
            +
                #
         | 
| 295 | 
            +
                #   resp.to_h outputs the following:
         | 
| 296 | 
            +
                #   {
         | 
| 297 | 
            +
                #     allocation_id: "eipalloc-64d5890a", 
         | 
| 298 | 
            +
                #     domain: "vpc", 
         | 
| 299 | 
            +
                #     public_ip: "203.0.113.0", 
         | 
| 300 | 
            +
                #   }
         | 
| 301 | 
            +
                #
         | 
| 302 | 
            +
                # @example Example: To allocate an Elastic IP address for EC2-Classic
         | 
| 303 | 
            +
                #
         | 
| 304 | 
            +
                #   # This example allocates an Elastic IP address to use with an instance in EC2-Classic.
         | 
| 305 | 
            +
                #
         | 
| 306 | 
            +
                #   resp = client.allocate_address({
         | 
| 307 | 
            +
                #   })
         | 
| 308 | 
            +
                #
         | 
| 309 | 
            +
                #   resp.to_h outputs the following:
         | 
| 310 | 
            +
                #   {
         | 
| 311 | 
            +
                #     domain: "standard", 
         | 
| 312 | 
            +
                #     public_ip: "198.51.100.0", 
         | 
| 313 | 
            +
                #   }
         | 
| 314 | 
            +
                #
         | 
| 286 315 | 
             
                # @example Request syntax with placeholder values
         | 
| 287 316 | 
             
                #
         | 
| 288 317 | 
             
                #   resp = client.allocate_address({
         | 
| @@ -460,6 +489,27 @@ module Aws::EC2 | |
| 460 489 | 
             
                #
         | 
| 461 490 | 
             
                # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
         | 
| 462 491 | 
             
                #
         | 
| 492 | 
            +
                #
         | 
| 493 | 
            +
                # @example Example: To assign a specific secondary private IP address to an interface
         | 
| 494 | 
            +
                #
         | 
| 495 | 
            +
                #   # This example assigns the specified secondary private IP address to the specified network interface.
         | 
| 496 | 
            +
                #
         | 
| 497 | 
            +
                #   resp = client.assign_private_ip_addresses({
         | 
| 498 | 
            +
                #     network_interface_id: "eni-e5aa89a3", 
         | 
| 499 | 
            +
                #     private_ip_addresses: [
         | 
| 500 | 
            +
                #       "10.0.0.82", 
         | 
| 501 | 
            +
                #     ], 
         | 
| 502 | 
            +
                #   })
         | 
| 503 | 
            +
                #
         | 
| 504 | 
            +
                # @example Example: To assign secondary private IP addresses that Amazon EC2 selects to an interface
         | 
| 505 | 
            +
                #
         | 
| 506 | 
            +
                #   # This example assigns two secondary private IP addresses to the specified network interface. Amazon EC2 automatically assigns these IP addresses from the available IP addresses in the CIDR block range of the subnet the network interface is associated with.
         | 
| 507 | 
            +
                #
         | 
| 508 | 
            +
                #   resp = client.assign_private_ip_addresses({
         | 
| 509 | 
            +
                #     network_interface_id: "eni-e5aa89a3", 
         | 
| 510 | 
            +
                #     secondary_private_ip_address_count: 2, 
         | 
| 511 | 
            +
                #   })
         | 
| 512 | 
            +
                #
         | 
| 463 513 | 
             
                # @example Request syntax with placeholder values
         | 
| 464 514 | 
             
                #
         | 
| 465 515 | 
             
                #   resp = client.assign_private_ip_addresses({
         | 
| @@ -553,6 +603,44 @@ module Aws::EC2 | |
| 553 603 | 
             
                #
         | 
| 554 604 | 
             
                #   * {Types::AssociateAddressResult#association_id #association_id} => String
         | 
| 555 605 | 
             
                #
         | 
| 606 | 
            +
                #
         | 
| 607 | 
            +
                # @example Example: To associate an Elastic IP address in EC2-VPC
         | 
| 608 | 
            +
                #
         | 
| 609 | 
            +
                #   # This example associates the specified Elastic IP address with the specified instance in a VPC.
         | 
| 610 | 
            +
                #
         | 
| 611 | 
            +
                #   resp = client.associate_address({
         | 
| 612 | 
            +
                #     allocation_id: "eipalloc-64d5890a", 
         | 
| 613 | 
            +
                #     instance_id: "i-0b263919b6498b123", 
         | 
| 614 | 
            +
                #   })
         | 
| 615 | 
            +
                #
         | 
| 616 | 
            +
                #   resp.to_h outputs the following:
         | 
| 617 | 
            +
                #   {
         | 
| 618 | 
            +
                #     association_id: "eipassoc-2bebb745", 
         | 
| 619 | 
            +
                #   }
         | 
| 620 | 
            +
                #
         | 
| 621 | 
            +
                # @example Example: To associate an Elastic IP address with a network interface
         | 
| 622 | 
            +
                #
         | 
| 623 | 
            +
                #   # This example associates the specified Elastic IP address with the specified network interface.
         | 
| 624 | 
            +
                #
         | 
| 625 | 
            +
                #   resp = client.associate_address({
         | 
| 626 | 
            +
                #     allocation_id: "eipalloc-64d5890a", 
         | 
| 627 | 
            +
                #     network_interface_id: "eni-1a2b3c4d", 
         | 
| 628 | 
            +
                #   })
         | 
| 629 | 
            +
                #
         | 
| 630 | 
            +
                #   resp.to_h outputs the following:
         | 
| 631 | 
            +
                #   {
         | 
| 632 | 
            +
                #     association_id: "eipassoc-2bebb745", 
         | 
| 633 | 
            +
                #   }
         | 
| 634 | 
            +
                #
         | 
| 635 | 
            +
                # @example Example: To associate an Elastic IP address in EC2-Classic
         | 
| 636 | 
            +
                #
         | 
| 637 | 
            +
                #   # This example associates an Elastic IP address with an instance in EC2-Classic.
         | 
| 638 | 
            +
                #
         | 
| 639 | 
            +
                #   resp = client.associate_address({
         | 
| 640 | 
            +
                #     instance_id: "i-07ffe74c7330ebf53", 
         | 
| 641 | 
            +
                #     public_ip: "198.51.100.0", 
         | 
| 642 | 
            +
                #   })
         | 
| 643 | 
            +
                #
         | 
| 556 644 | 
             
                # @example Request syntax with placeholder values
         | 
| 557 645 | 
             
                #
         | 
| 558 646 | 
             
                #   resp = client.associate_address({
         | 
| @@ -610,6 +698,25 @@ module Aws::EC2 | |
| 610 698 | 
             
                #
         | 
| 611 699 | 
             
                # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
         | 
| 612 700 | 
             
                #
         | 
| 701 | 
            +
                #
         | 
| 702 | 
            +
                # @example Example: To associate a DHCP options set with a VPC
         | 
| 703 | 
            +
                #
         | 
| 704 | 
            +
                #   # This example associates the specified DHCP options set with the specified VPC.
         | 
| 705 | 
            +
                #
         | 
| 706 | 
            +
                #   resp = client.associate_dhcp_options({
         | 
| 707 | 
            +
                #     dhcp_options_id: "dopt-d9070ebb", 
         | 
| 708 | 
            +
                #     vpc_id: "vpc-a01106c2", 
         | 
| 709 | 
            +
                #   })
         | 
| 710 | 
            +
                #
         | 
| 711 | 
            +
                # @example Example: To associate the default DHCP options set with a VPC
         | 
| 712 | 
            +
                #
         | 
| 713 | 
            +
                #   # This example associates the default DHCP options set with the specified VPC.
         | 
| 714 | 
            +
                #
         | 
| 715 | 
            +
                #   resp = client.associate_dhcp_options({
         | 
| 716 | 
            +
                #     dhcp_options_id: "default", 
         | 
| 717 | 
            +
                #     vpc_id: "vpc-a01106c2", 
         | 
| 718 | 
            +
                #   })
         | 
| 719 | 
            +
                #
         | 
| 613 720 | 
             
                # @example Request syntax with placeholder values
         | 
| 614 721 | 
             
                #
         | 
| 615 722 | 
             
                #   resp = client.associate_dhcp_options({
         | 
| @@ -699,6 +806,21 @@ module Aws::EC2 | |
| 699 806 | 
             
                #
         | 
| 700 807 | 
             
                #   * {Types::AssociateRouteTableResult#association_id #association_id} => String
         | 
| 701 808 | 
             
                #
         | 
| 809 | 
            +
                #
         | 
| 810 | 
            +
                # @example Example: To associate a route table with a subnet
         | 
| 811 | 
            +
                #
         | 
| 812 | 
            +
                #   # This example associates the specified route table with the specified subnet.
         | 
| 813 | 
            +
                #
         | 
| 814 | 
            +
                #   resp = client.associate_route_table({
         | 
| 815 | 
            +
                #     route_table_id: "rtb-22574640", 
         | 
| 816 | 
            +
                #     subnet_id: "subnet-9d4a7b6", 
         | 
| 817 | 
            +
                #   })
         | 
| 818 | 
            +
                #
         | 
| 819 | 
            +
                #   resp.to_h outputs the following:
         | 
| 820 | 
            +
                #   {
         | 
| 821 | 
            +
                #     association_id: "rtbassoc-781d0d1a", 
         | 
| 822 | 
            +
                #   }
         | 
| 823 | 
            +
                #
         | 
| 702 824 | 
             
                # @example Request syntax with placeholder values
         | 
| 703 825 | 
             
                #
         | 
| 704 826 | 
             
                #   resp = client.associate_route_table({
         | 
| @@ -881,6 +1003,16 @@ module Aws::EC2 | |
| 881 1003 | 
             
                #
         | 
| 882 1004 | 
             
                # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
         | 
| 883 1005 | 
             
                #
         | 
| 1006 | 
            +
                #
         | 
| 1007 | 
            +
                # @example Example: To attach an Internet gateway to a VPC
         | 
| 1008 | 
            +
                #
         | 
| 1009 | 
            +
                #   # This example attaches the specified Internet gateway to the specified VPC.
         | 
| 1010 | 
            +
                #
         | 
| 1011 | 
            +
                #   resp = client.attach_internet_gateway({
         | 
| 1012 | 
            +
                #     internet_gateway_id: "igw-c0a643a9", 
         | 
| 1013 | 
            +
                #     vpc_id: "vpc-a01106c2", 
         | 
| 1014 | 
            +
                #   })
         | 
| 1015 | 
            +
                #
         | 
| 884 1016 | 
             
                # @example Request syntax with placeholder values
         | 
| 885 1017 | 
             
                #
         | 
| 886 1018 | 
             
                #   resp = client.attach_internet_gateway({
         | 
| @@ -919,6 +1051,22 @@ module Aws::EC2 | |
| 919 1051 | 
             
                #
         | 
| 920 1052 | 
             
                #   * {Types::AttachNetworkInterfaceResult#attachment_id #attachment_id} => String
         | 
| 921 1053 | 
             
                #
         | 
| 1054 | 
            +
                #
         | 
| 1055 | 
            +
                # @example Example: To attach a network interface to an instance
         | 
| 1056 | 
            +
                #
         | 
| 1057 | 
            +
                #   # This example attaches the specified network interface to the specified instance.
         | 
| 1058 | 
            +
                #
         | 
| 1059 | 
            +
                #   resp = client.attach_network_interface({
         | 
| 1060 | 
            +
                #     device_index: 1, 
         | 
| 1061 | 
            +
                #     instance_id: "i-1234567890abcdef0", 
         | 
| 1062 | 
            +
                #     network_interface_id: "eni-e5aa89a3", 
         | 
| 1063 | 
            +
                #   })
         | 
| 1064 | 
            +
                #
         | 
| 1065 | 
            +
                #   resp.to_h outputs the following:
         | 
| 1066 | 
            +
                #   {
         | 
| 1067 | 
            +
                #     attachment_id: "eni-attach-66c4350a", 
         | 
| 1068 | 
            +
                #   }
         | 
| 1069 | 
            +
                #
         | 
| 922 1070 | 
             
                # @example Request syntax with placeholder values
         | 
| 923 1071 | 
             
                #
         | 
| 924 1072 | 
             
                #   resp = client.attach_network_interface({
         | 
| @@ -1006,6 +1154,26 @@ module Aws::EC2 | |
| 1006 1154 | 
             
                #   * {Types::VolumeAttachment#volume_id #volume_id} => String
         | 
| 1007 1155 | 
             
                #   * {Types::VolumeAttachment#delete_on_termination #delete_on_termination} => Boolean
         | 
| 1008 1156 | 
             
                #
         | 
| 1157 | 
            +
                #
         | 
| 1158 | 
            +
                # @example Example: To attach a volume to an instance
         | 
| 1159 | 
            +
                #
         | 
| 1160 | 
            +
                #   # This example attaches a volume (``vol-1234567890abcdef0``) to an instance (``i-01474ef662b89480``) as ``/dev/sdf``.
         | 
| 1161 | 
            +
                #
         | 
| 1162 | 
            +
                #   resp = client.attach_volume({
         | 
| 1163 | 
            +
                #     device: "/dev/sdf", 
         | 
| 1164 | 
            +
                #     instance_id: "i-01474ef662b89480", 
         | 
| 1165 | 
            +
                #     volume_id: "vol-1234567890abcdef0", 
         | 
| 1166 | 
            +
                #   })
         | 
| 1167 | 
            +
                #
         | 
| 1168 | 
            +
                #   resp.to_h outputs the following:
         | 
| 1169 | 
            +
                #   {
         | 
| 1170 | 
            +
                #     attach_time: Time.parse("2016-08-29T18:52:32.724Z"), 
         | 
| 1171 | 
            +
                #     device: "/dev/sdf", 
         | 
| 1172 | 
            +
                #     instance_id: "i-01474ef662b89480", 
         | 
| 1173 | 
            +
                #     state: "attaching", 
         | 
| 1174 | 
            +
                #     volume_id: "vol-1234567890abcdef0", 
         | 
| 1175 | 
            +
                #   }
         | 
| 1176 | 
            +
                #
         | 
| 1009 1177 | 
             
                # @example Request syntax with placeholder values
         | 
| 1010 1178 | 
             
                #
         | 
| 1011 1179 | 
             
                #   resp = client.attach_volume({
         | 
| @@ -1668,6 +1836,51 @@ module Aws::EC2 | |
| 1668 1836 | 
             
                #   * {Types::CancelSpotFleetRequestsResponse#successful_fleet_requests #successful_fleet_requests} => Array<Types::CancelSpotFleetRequestsSuccessItem>
         | 
| 1669 1837 | 
             
                #   * {Types::CancelSpotFleetRequestsResponse#unsuccessful_fleet_requests #unsuccessful_fleet_requests} => Array<Types::CancelSpotFleetRequestsErrorItem>
         | 
| 1670 1838 | 
             
                #
         | 
| 1839 | 
            +
                #
         | 
| 1840 | 
            +
                # @example Example: To cancel a Spot fleet request
         | 
| 1841 | 
            +
                #
         | 
| 1842 | 
            +
                #   # This example cancels the specified Spot fleet request and terminates its associated Spot Instances.
         | 
| 1843 | 
            +
                #
         | 
| 1844 | 
            +
                #   resp = client.cancel_spot_fleet_requests({
         | 
| 1845 | 
            +
                #     spot_fleet_request_ids: [
         | 
| 1846 | 
            +
                #       "sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE", 
         | 
| 1847 | 
            +
                #     ], 
         | 
| 1848 | 
            +
                #     terminate_instances: true, 
         | 
| 1849 | 
            +
                #   })
         | 
| 1850 | 
            +
                #
         | 
| 1851 | 
            +
                #   resp.to_h outputs the following:
         | 
| 1852 | 
            +
                #   {
         | 
| 1853 | 
            +
                #     successful_fleet_requests: [
         | 
| 1854 | 
            +
                #       {
         | 
| 1855 | 
            +
                #         current_spot_fleet_request_state: "cancelled_running", 
         | 
| 1856 | 
            +
                #         previous_spot_fleet_request_state: "active", 
         | 
| 1857 | 
            +
                #         spot_fleet_request_id: "sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE", 
         | 
| 1858 | 
            +
                #       }, 
         | 
| 1859 | 
            +
                #     ], 
         | 
| 1860 | 
            +
                #   }
         | 
| 1861 | 
            +
                #
         | 
| 1862 | 
            +
                # @example Example: To cancel a Spot fleet request without terminating its Spot Instances
         | 
| 1863 | 
            +
                #
         | 
| 1864 | 
            +
                #   # This example cancels the specified Spot fleet request without terminating its associated Spot Instances.
         | 
| 1865 | 
            +
                #
         | 
| 1866 | 
            +
                #   resp = client.cancel_spot_fleet_requests({
         | 
| 1867 | 
            +
                #     spot_fleet_request_ids: [
         | 
| 1868 | 
            +
                #       "sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE", 
         | 
| 1869 | 
            +
                #     ], 
         | 
| 1870 | 
            +
                #     terminate_instances: false, 
         | 
| 1871 | 
            +
                #   })
         | 
| 1872 | 
            +
                #
         | 
| 1873 | 
            +
                #   resp.to_h outputs the following:
         | 
| 1874 | 
            +
                #   {
         | 
| 1875 | 
            +
                #     successful_fleet_requests: [
         | 
| 1876 | 
            +
                #       {
         | 
| 1877 | 
            +
                #         current_spot_fleet_request_state: "cancelled_terminating", 
         | 
| 1878 | 
            +
                #         previous_spot_fleet_request_state: "active", 
         | 
| 1879 | 
            +
                #         spot_fleet_request_id: "sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE", 
         | 
| 1880 | 
            +
                #       }, 
         | 
| 1881 | 
            +
                #     ], 
         | 
| 1882 | 
            +
                #   }
         | 
| 1883 | 
            +
                #
         | 
| 1671 1884 | 
             
                # @example Request syntax with placeholder values
         | 
| 1672 1885 | 
             
                #
         | 
| 1673 1886 | 
             
                #   resp = client.cancel_spot_fleet_requests({
         | 
| @@ -1724,6 +1937,27 @@ module Aws::EC2 | |
| 1724 1937 | 
             
                #
         | 
| 1725 1938 | 
             
                #   * {Types::CancelSpotInstanceRequestsResult#cancelled_spot_instance_requests #cancelled_spot_instance_requests} => Array<Types::CancelledSpotInstanceRequest>
         | 
| 1726 1939 | 
             
                #
         | 
| 1940 | 
            +
                #
         | 
| 1941 | 
            +
                # @example Example: To cancel Spot Instance requests
         | 
| 1942 | 
            +
                #
         | 
| 1943 | 
            +
                #   # This example cancels a Spot Instance request.
         | 
| 1944 | 
            +
                #
         | 
| 1945 | 
            +
                #   resp = client.cancel_spot_instance_requests({
         | 
| 1946 | 
            +
                #     spot_instance_request_ids: [
         | 
| 1947 | 
            +
                #       "sir-08b93456", 
         | 
| 1948 | 
            +
                #     ], 
         | 
| 1949 | 
            +
                #   })
         | 
| 1950 | 
            +
                #
         | 
| 1951 | 
            +
                #   resp.to_h outputs the following:
         | 
| 1952 | 
            +
                #   {
         | 
| 1953 | 
            +
                #     cancelled_spot_instance_requests: [
         | 
| 1954 | 
            +
                #       {
         | 
| 1955 | 
            +
                #         spot_instance_request_id: "sir-08b93456", 
         | 
| 1956 | 
            +
                #         state: "cancelled", 
         | 
| 1957 | 
            +
                #       }, 
         | 
| 1958 | 
            +
                #     ], 
         | 
| 1959 | 
            +
                #   }
         | 
| 1960 | 
            +
                #
         | 
| 1727 1961 | 
             
                # @example Request syntax with placeholder values
         | 
| 1728 1962 | 
             
                #
         | 
| 1729 1963 | 
             
                #   resp = client.cancel_spot_instance_requests({
         | 
| @@ -1768,6 +2002,21 @@ module Aws::EC2 | |
| 1768 2002 | 
             
                #   * {Types::ConfirmProductInstanceResult#owner_id #owner_id} => String
         | 
| 1769 2003 | 
             
                #   * {Types::ConfirmProductInstanceResult#return #return} => Boolean
         | 
| 1770 2004 | 
             
                #
         | 
| 2005 | 
            +
                #
         | 
| 2006 | 
            +
                # @example Example: To confirm the product instance
         | 
| 2007 | 
            +
                #
         | 
| 2008 | 
            +
                #   # This example determines whether the specified product code is associated with the specified instance.
         | 
| 2009 | 
            +
                #
         | 
| 2010 | 
            +
                #   resp = client.confirm_product_instance({
         | 
| 2011 | 
            +
                #     instance_id: "i-1234567890abcdef0", 
         | 
| 2012 | 
            +
                #     product_code: "774F4FF8", 
         | 
| 2013 | 
            +
                #   })
         | 
| 2014 | 
            +
                #
         | 
| 2015 | 
            +
                #   resp.to_h outputs the following:
         | 
| 2016 | 
            +
                #   {
         | 
| 2017 | 
            +
                #     owner_id: "123456789012", 
         | 
| 2018 | 
            +
                #   }
         | 
| 2019 | 
            +
                #
         | 
| 1771 2020 | 
             
                # @example Request syntax with placeholder values
         | 
| 1772 2021 | 
             
                #
         | 
| 1773 2022 | 
             
                #   resp = client.confirm_product_instance({
         | 
| @@ -1991,6 +2240,23 @@ module Aws::EC2 | |
| 1991 2240 | 
             
                #
         | 
| 1992 2241 | 
             
                #   * {Types::CopySnapshotResult#snapshot_id #snapshot_id} => String
         | 
| 1993 2242 | 
             
                #
         | 
| 2243 | 
            +
                #
         | 
| 2244 | 
            +
                # @example Example: To copy a snapshot
         | 
| 2245 | 
            +
                #
         | 
| 2246 | 
            +
                #   # This example copies a snapshot with the snapshot ID of ``snap-066877671789bd71b`` from the ``us-west-2`` region to the ``us-east-1`` region and adds a short description to identify the snapshot.
         | 
| 2247 | 
            +
                #
         | 
| 2248 | 
            +
                #   resp = client.copy_snapshot({
         | 
| 2249 | 
            +
                #     description: "This is my copied snapshot.", 
         | 
| 2250 | 
            +
                #     destination_region: "us-east-1", 
         | 
| 2251 | 
            +
                #     source_region: "us-west-2", 
         | 
| 2252 | 
            +
                #     source_snapshot_id: "snap-066877671789bd71b", 
         | 
| 2253 | 
            +
                #   })
         | 
| 2254 | 
            +
                #
         | 
| 2255 | 
            +
                #   resp.to_h outputs the following:
         | 
| 2256 | 
            +
                #   {
         | 
| 2257 | 
            +
                #     snapshot_id: "snap-066877671789bd71b", 
         | 
| 2258 | 
            +
                #   }
         | 
| 2259 | 
            +
                #
         | 
| 1994 2260 | 
             
                # @example Copy snapshot example
         | 
| 1995 2261 | 
             
                #   source_snapshot_id = 'snapshot-id'
         | 
| 1996 2262 | 
             
                #   source_region = 'us-east-1'
         | 
| @@ -2099,6 +2365,28 @@ module Aws::EC2 | |
| 2099 2365 | 
             
                #
         | 
| 2100 2366 | 
             
                #   * {Types::CreateCustomerGatewayResult#customer_gateway #customer_gateway} => Types::CustomerGateway
         | 
| 2101 2367 | 
             
                #
         | 
| 2368 | 
            +
                #
         | 
| 2369 | 
            +
                # @example Example: To create a customer gateway
         | 
| 2370 | 
            +
                #
         | 
| 2371 | 
            +
                #   # This example creates a customer gateway with the specified IP address for its outside interface.
         | 
| 2372 | 
            +
                #
         | 
| 2373 | 
            +
                #   resp = client.create_customer_gateway({
         | 
| 2374 | 
            +
                #     bgp_asn: 65534, 
         | 
| 2375 | 
            +
                #     public_ip: "12.1.2.3", 
         | 
| 2376 | 
            +
                #     type: "ipsec.1", 
         | 
| 2377 | 
            +
                #   })
         | 
| 2378 | 
            +
                #
         | 
| 2379 | 
            +
                #   resp.to_h outputs the following:
         | 
| 2380 | 
            +
                #   {
         | 
| 2381 | 
            +
                #     customer_gateway: {
         | 
| 2382 | 
            +
                #       bgp_asn: "65534", 
         | 
| 2383 | 
            +
                #       customer_gateway_id: "cgw-0e11f167", 
         | 
| 2384 | 
            +
                #       ip_address: "12.1.2.3", 
         | 
| 2385 | 
            +
                #       state: "available", 
         | 
| 2386 | 
            +
                #       type: "ipsec.1", 
         | 
| 2387 | 
            +
                #     }, 
         | 
| 2388 | 
            +
                #   }
         | 
| 2389 | 
            +
                #
         | 
| 2102 2390 | 
             
                # @example Request syntax with placeholder values
         | 
| 2103 2391 | 
             
                #
         | 
| 2104 2392 | 
             
                #   resp = client.create_customer_gateway({
         | 
| @@ -2191,6 +2479,43 @@ module Aws::EC2 | |
| 2191 2479 | 
             
                #
         | 
| 2192 2480 | 
             
                #   * {Types::CreateDhcpOptionsResult#dhcp_options #dhcp_options} => Types::DhcpOptions
         | 
| 2193 2481 | 
             
                #
         | 
| 2482 | 
            +
                #
         | 
| 2483 | 
            +
                # @example Example: To create a DHCP options set
         | 
| 2484 | 
            +
                #
         | 
| 2485 | 
            +
                #   # This example creates a DHCP options set.
         | 
| 2486 | 
            +
                #
         | 
| 2487 | 
            +
                #   resp = client.create_dhcp_options({
         | 
| 2488 | 
            +
                #     dhcp_configurations: [
         | 
| 2489 | 
            +
                #       {
         | 
| 2490 | 
            +
                #         key: "domain-name-servers", 
         | 
| 2491 | 
            +
                #         values: [
         | 
| 2492 | 
            +
                #           "10.2.5.1", 
         | 
| 2493 | 
            +
                #           "10.2.5.2", 
         | 
| 2494 | 
            +
                #         ], 
         | 
| 2495 | 
            +
                #       }, 
         | 
| 2496 | 
            +
                #     ], 
         | 
| 2497 | 
            +
                #   })
         | 
| 2498 | 
            +
                #
         | 
| 2499 | 
            +
                #   resp.to_h outputs the following:
         | 
| 2500 | 
            +
                #   {
         | 
| 2501 | 
            +
                #     dhcp_options: {
         | 
| 2502 | 
            +
                #       dhcp_configurations: [
         | 
| 2503 | 
            +
                #         {
         | 
| 2504 | 
            +
                #           key: "domain-name-servers", 
         | 
| 2505 | 
            +
                #           values: [
         | 
| 2506 | 
            +
                #             {
         | 
| 2507 | 
            +
                #               value: "10.2.5.2", 
         | 
| 2508 | 
            +
                #             }, 
         | 
| 2509 | 
            +
                #             {
         | 
| 2510 | 
            +
                #               value: "10.2.5.1", 
         | 
| 2511 | 
            +
                #             }, 
         | 
| 2512 | 
            +
                #           ], 
         | 
| 2513 | 
            +
                #         }, 
         | 
| 2514 | 
            +
                #       ], 
         | 
| 2515 | 
            +
                #       dhcp_options_id: "dopt-d9070ebb", 
         | 
| 2516 | 
            +
                #     }, 
         | 
| 2517 | 
            +
                #   }
         | 
| 2518 | 
            +
                #
         | 
| 2194 2519 | 
             
                # @example Request syntax with placeholder values
         | 
| 2195 2520 | 
             
                #
         | 
| 2196 2521 | 
             
                #   resp = client.create_dhcp_options({
         | 
| @@ -2603,6 +2928,25 @@ module Aws::EC2 | |
| 2603 2928 | 
             
                #
         | 
| 2604 2929 | 
             
                #   * {Types::CreateInternetGatewayResult#internet_gateway #internet_gateway} => Types::InternetGateway
         | 
| 2605 2930 | 
             
                #
         | 
| 2931 | 
            +
                #
         | 
| 2932 | 
            +
                # @example Example: To create an Internet gateway
         | 
| 2933 | 
            +
                #
         | 
| 2934 | 
            +
                #   # This example creates an Internet gateway.
         | 
| 2935 | 
            +
                #
         | 
| 2936 | 
            +
                #   resp = client.create_internet_gateway({
         | 
| 2937 | 
            +
                #   })
         | 
| 2938 | 
            +
                #
         | 
| 2939 | 
            +
                #   resp.to_h outputs the following:
         | 
| 2940 | 
            +
                #   {
         | 
| 2941 | 
            +
                #     internet_gateway: {
         | 
| 2942 | 
            +
                #       attachments: [
         | 
| 2943 | 
            +
                #       ], 
         | 
| 2944 | 
            +
                #       internet_gateway_id: "igw-c0a643a9", 
         | 
| 2945 | 
            +
                #       tags: [
         | 
| 2946 | 
            +
                #       ], 
         | 
| 2947 | 
            +
                #     }, 
         | 
| 2948 | 
            +
                #   }
         | 
| 2949 | 
            +
                #
         | 
| 2606 2950 | 
             
                # @example Request syntax with placeholder values
         | 
| 2607 2951 | 
             
                #
         | 
| 2608 2952 | 
             
                #   resp = client.create_internet_gateway({
         | 
| @@ -2664,6 +3008,15 @@ module Aws::EC2 | |
| 2664 3008 | 
             
                #   * {Types::KeyPair#key_material #key_material} => String
         | 
| 2665 3009 | 
             
                #   * {Types::KeyPair#key_name #key_name} => String
         | 
| 2666 3010 | 
             
                #
         | 
| 3011 | 
            +
                #
         | 
| 3012 | 
            +
                # @example Example: To create a key pair
         | 
| 3013 | 
            +
                #
         | 
| 3014 | 
            +
                #   # This example creates a key pair named my-key-pair.
         | 
| 3015 | 
            +
                #
         | 
| 3016 | 
            +
                #   resp = client.create_key_pair({
         | 
| 3017 | 
            +
                #     key_name: "my-key-pair", 
         | 
| 3018 | 
            +
                #   })
         | 
| 3019 | 
            +
                #
         | 
| 2667 3020 | 
             
                # @example Request syntax with placeholder values
         | 
| 2668 3021 | 
             
                #
         | 
| 2669 3022 | 
             
                #   resp = client.create_key_pair({
         | 
| @@ -2721,6 +3074,32 @@ module Aws::EC2 | |
| 2721 3074 | 
             
                #   * {Types::CreateNatGatewayResult#client_token #client_token} => String
         | 
| 2722 3075 | 
             
                #   * {Types::CreateNatGatewayResult#nat_gateway #nat_gateway} => Types::NatGateway
         | 
| 2723 3076 | 
             
                #
         | 
| 3077 | 
            +
                #
         | 
| 3078 | 
            +
                # @example Example: To create a NAT gateway
         | 
| 3079 | 
            +
                #
         | 
| 3080 | 
            +
                #   # This example creates a NAT gateway in subnet subnet-1a2b3c4d and associates an Elastic IP address with the allocation ID eipalloc-37fc1a52 with the NAT gateway.
         | 
| 3081 | 
            +
                #
         | 
| 3082 | 
            +
                #   resp = client.create_nat_gateway({
         | 
| 3083 | 
            +
                #     allocation_id: "eipalloc-37fc1a52", 
         | 
| 3084 | 
            +
                #     subnet_id: "subnet-1a2b3c4d", 
         | 
| 3085 | 
            +
                #   })
         | 
| 3086 | 
            +
                #
         | 
| 3087 | 
            +
                #   resp.to_h outputs the following:
         | 
| 3088 | 
            +
                #   {
         | 
| 3089 | 
            +
                #     nat_gateway: {
         | 
| 3090 | 
            +
                #       create_time: Time.parse("2015-12-17T12:45:26.732Z"), 
         | 
| 3091 | 
            +
                #       nat_gateway_addresses: [
         | 
| 3092 | 
            +
                #         {
         | 
| 3093 | 
            +
                #           allocation_id: "eipalloc-37fc1a52", 
         | 
| 3094 | 
            +
                #         }, 
         | 
| 3095 | 
            +
                #       ], 
         | 
| 3096 | 
            +
                #       nat_gateway_id: "nat-08d48af2a8e83edfd", 
         | 
| 3097 | 
            +
                #       state: "pending", 
         | 
| 3098 | 
            +
                #       subnet_id: "subnet-1a2b3c4d", 
         | 
| 3099 | 
            +
                #       vpc_id: "vpc-1122aabb", 
         | 
| 3100 | 
            +
                #     }, 
         | 
| 3101 | 
            +
                #   }
         | 
| 3102 | 
            +
                #
         | 
| 2724 3103 | 
             
                # @example Request syntax with placeholder values
         | 
| 2725 3104 | 
             
                #
         | 
| 2726 3105 | 
             
                #   resp = client.create_nat_gateway({
         | 
| @@ -2784,6 +3163,44 @@ module Aws::EC2 | |
| 2784 3163 | 
             
                #
         | 
| 2785 3164 | 
             
                #   * {Types::CreateNetworkAclResult#network_acl #network_acl} => Types::NetworkAcl
         | 
| 2786 3165 | 
             
                #
         | 
| 3166 | 
            +
                #
         | 
| 3167 | 
            +
                # @example Example: To create a network ACL
         | 
| 3168 | 
            +
                #
         | 
| 3169 | 
            +
                #   # This example creates a network ACL for the specified VPC.
         | 
| 3170 | 
            +
                #
         | 
| 3171 | 
            +
                #   resp = client.create_network_acl({
         | 
| 3172 | 
            +
                #     vpc_id: "vpc-a01106c2", 
         | 
| 3173 | 
            +
                #   })
         | 
| 3174 | 
            +
                #
         | 
| 3175 | 
            +
                #   resp.to_h outputs the following:
         | 
| 3176 | 
            +
                #   {
         | 
| 3177 | 
            +
                #     network_acl: {
         | 
| 3178 | 
            +
                #       associations: [
         | 
| 3179 | 
            +
                #       ], 
         | 
| 3180 | 
            +
                #       entries: [
         | 
| 3181 | 
            +
                #         {
         | 
| 3182 | 
            +
                #           cidr_block: "0.0.0.0/0", 
         | 
| 3183 | 
            +
                #           egress: true, 
         | 
| 3184 | 
            +
                #           protocol: "-1", 
         | 
| 3185 | 
            +
                #           rule_action: "deny", 
         | 
| 3186 | 
            +
                #           rule_number: 32767, 
         | 
| 3187 | 
            +
                #         }, 
         | 
| 3188 | 
            +
                #         {
         | 
| 3189 | 
            +
                #           cidr_block: "0.0.0.0/0", 
         | 
| 3190 | 
            +
                #           egress: false, 
         | 
| 3191 | 
            +
                #           protocol: "-1", 
         | 
| 3192 | 
            +
                #           rule_action: "deny", 
         | 
| 3193 | 
            +
                #           rule_number: 32767, 
         | 
| 3194 | 
            +
                #         }, 
         | 
| 3195 | 
            +
                #       ], 
         | 
| 3196 | 
            +
                #       is_default: false, 
         | 
| 3197 | 
            +
                #       network_acl_id: "acl-5fb85d36", 
         | 
| 3198 | 
            +
                #       tags: [
         | 
| 3199 | 
            +
                #       ], 
         | 
| 3200 | 
            +
                #       vpc_id: "vpc-a01106c2", 
         | 
| 3201 | 
            +
                #     }, 
         | 
| 3202 | 
            +
                #   }
         | 
| 3203 | 
            +
                #
         | 
| 2787 3204 | 
             
                # @example Request syntax with placeholder values
         | 
| 2788 3205 | 
             
                #
         | 
| 2789 3206 | 
             
                #   resp = client.create_network_acl({
         | 
| @@ -2898,6 +3315,24 @@ module Aws::EC2 | |
| 2898 3315 | 
             
                #
         | 
| 2899 3316 | 
             
                # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
         | 
| 2900 3317 | 
             
                #
         | 
| 3318 | 
            +
                #
         | 
| 3319 | 
            +
                # @example Example: To create a network ACL entry
         | 
| 3320 | 
            +
                #
         | 
| 3321 | 
            +
                #   # This example creates an entry for the specified network ACL. The rule allows ingress traffic from anywhere (0.0.0.0/0) on UDP port 53 (DNS) into any associated subnet.
         | 
| 3322 | 
            +
                #
         | 
| 3323 | 
            +
                #   resp = client.create_network_acl_entry({
         | 
| 3324 | 
            +
                #     cidr_block: "0.0.0.0/0", 
         | 
| 3325 | 
            +
                #     egress: false, 
         | 
| 3326 | 
            +
                #     network_acl_id: "acl-5fb85d36", 
         | 
| 3327 | 
            +
                #     port_range: {
         | 
| 3328 | 
            +
                #       from: 53, 
         | 
| 3329 | 
            +
                #       to: 53, 
         | 
| 3330 | 
            +
                #     }, 
         | 
| 3331 | 
            +
                #     protocol: "udp", 
         | 
| 3332 | 
            +
                #     rule_action: "allow", 
         | 
| 3333 | 
            +
                #     rule_number: 100, 
         | 
| 3334 | 
            +
                #   })
         | 
| 3335 | 
            +
                #
         | 
| 2901 3336 | 
             
                # @example Request syntax with placeholder values
         | 
| 2902 3337 | 
             
                #
         | 
| 2903 3338 | 
             
                #   resp = client.create_network_acl_entry({
         | 
| @@ -2994,6 +3429,51 @@ module Aws::EC2 | |
| 2994 3429 | 
             
                #
         | 
| 2995 3430 | 
             
                #   * {Types::CreateNetworkInterfaceResult#network_interface #network_interface} => Types::NetworkInterface
         | 
| 2996 3431 | 
             
                #
         | 
| 3432 | 
            +
                #
         | 
| 3433 | 
            +
                # @example Example: To create a network interface
         | 
| 3434 | 
            +
                #
         | 
| 3435 | 
            +
                #   # This example creates a network interface for the specified subnet.
         | 
| 3436 | 
            +
                #
         | 
| 3437 | 
            +
                #   resp = client.create_network_interface({
         | 
| 3438 | 
            +
                #     description: "my network interface", 
         | 
| 3439 | 
            +
                #     groups: [
         | 
| 3440 | 
            +
                #       "sg-903004f8", 
         | 
| 3441 | 
            +
                #     ], 
         | 
| 3442 | 
            +
                #     private_ip_address: "10.0.2.17", 
         | 
| 3443 | 
            +
                #     subnet_id: "subnet-9d4a7b6c", 
         | 
| 3444 | 
            +
                #   })
         | 
| 3445 | 
            +
                #
         | 
| 3446 | 
            +
                #   resp.to_h outputs the following:
         | 
| 3447 | 
            +
                #   {
         | 
| 3448 | 
            +
                #     network_interface: {
         | 
| 3449 | 
            +
                #       availability_zone: "us-east-1d", 
         | 
| 3450 | 
            +
                #       description: "my network interface", 
         | 
| 3451 | 
            +
                #       groups: [
         | 
| 3452 | 
            +
                #         {
         | 
| 3453 | 
            +
                #           group_id: "sg-903004f8", 
         | 
| 3454 | 
            +
                #           group_name: "default", 
         | 
| 3455 | 
            +
                #         }, 
         | 
| 3456 | 
            +
                #       ], 
         | 
| 3457 | 
            +
                #       mac_address: "02:1a:80:41:52:9c", 
         | 
| 3458 | 
            +
                #       network_interface_id: "eni-e5aa89a3", 
         | 
| 3459 | 
            +
                #       owner_id: "123456789012", 
         | 
| 3460 | 
            +
                #       private_ip_address: "10.0.2.17", 
         | 
| 3461 | 
            +
                #       private_ip_addresses: [
         | 
| 3462 | 
            +
                #         {
         | 
| 3463 | 
            +
                #           primary: true, 
         | 
| 3464 | 
            +
                #           private_ip_address: "10.0.2.17", 
         | 
| 3465 | 
            +
                #         }, 
         | 
| 3466 | 
            +
                #       ], 
         | 
| 3467 | 
            +
                #       requester_managed: false, 
         | 
| 3468 | 
            +
                #       source_dest_check: true, 
         | 
| 3469 | 
            +
                #       status: "pending", 
         | 
| 3470 | 
            +
                #       subnet_id: "subnet-9d4a7b6c", 
         | 
| 3471 | 
            +
                #       tag_set: [
         | 
| 3472 | 
            +
                #       ], 
         | 
| 3473 | 
            +
                #       vpc_id: "vpc-a01106c2", 
         | 
| 3474 | 
            +
                #     }, 
         | 
| 3475 | 
            +
                #   }
         | 
| 3476 | 
            +
                #
         | 
| 2997 3477 | 
             
                # @example Request syntax with placeholder values
         | 
| 2998 3478 | 
             
                #
         | 
| 2999 3479 | 
             
                #   resp = client.create_network_interface({
         | 
| @@ -3100,6 +3580,20 @@ module Aws::EC2 | |
| 3100 3580 | 
             
                #
         | 
| 3101 3581 | 
             
                # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
         | 
| 3102 3582 | 
             
                #
         | 
| 3583 | 
            +
                #
         | 
| 3584 | 
            +
                # @example Example: To create a placement group
         | 
| 3585 | 
            +
                #
         | 
| 3586 | 
            +
                #   # This example creates a placement group with the specified name.
         | 
| 3587 | 
            +
                #
         | 
| 3588 | 
            +
                #   resp = client.create_placement_group({
         | 
| 3589 | 
            +
                #     group_name: "my-cluster", 
         | 
| 3590 | 
            +
                #     strategy: "cluster", 
         | 
| 3591 | 
            +
                #   })
         | 
| 3592 | 
            +
                #
         | 
| 3593 | 
            +
                #   resp.to_h outputs the following:
         | 
| 3594 | 
            +
                #   {
         | 
| 3595 | 
            +
                #   }
         | 
| 3596 | 
            +
                #
         | 
| 3103 3597 | 
             
                # @example Request syntax with placeholder values
         | 
| 3104 3598 | 
             
                #
         | 
| 3105 3599 | 
             
                #   resp = client.create_placement_group({
         | 
| @@ -3293,6 +3787,17 @@ module Aws::EC2 | |
| 3293 3787 | 
             
                #
         | 
| 3294 3788 | 
             
                #   * {Types::CreateRouteResult#return #return} => Boolean
         | 
| 3295 3789 | 
             
                #
         | 
| 3790 | 
            +
                #
         | 
| 3791 | 
            +
                # @example Example: To create a route
         | 
| 3792 | 
            +
                #
         | 
| 3793 | 
            +
                #   # This example creates a route for the specified route table. The route matches all traffic (0.0.0.0/0) and routes it to the specified Internet gateway.
         | 
| 3794 | 
            +
                #
         | 
| 3795 | 
            +
                #   resp = client.create_route({
         | 
| 3796 | 
            +
                #     destination_cidr_block: "0.0.0.0/0", 
         | 
| 3797 | 
            +
                #     gateway_id: "igw-c0a643a9", 
         | 
| 3798 | 
            +
                #     route_table_id: "rtb-22574640", 
         | 
| 3799 | 
            +
                #   })
         | 
| 3800 | 
            +
                #
         | 
| 3296 3801 | 
             
                # @example Request syntax with placeholder values
         | 
| 3297 3802 | 
             
                #
         | 
| 3298 3803 | 
             
                #   resp = client.create_route({
         | 
| @@ -3344,6 +3849,36 @@ module Aws::EC2 | |
| 3344 3849 | 
             
                #
         | 
| 3345 3850 | 
             
                #   * {Types::CreateRouteTableResult#route_table #route_table} => Types::RouteTable
         | 
| 3346 3851 | 
             
                #
         | 
| 3852 | 
            +
                #
         | 
| 3853 | 
            +
                # @example Example: To create a route table
         | 
| 3854 | 
            +
                #
         | 
| 3855 | 
            +
                #   # This example creates a route table for the specified VPC.
         | 
| 3856 | 
            +
                #
         | 
| 3857 | 
            +
                #   resp = client.create_route_table({
         | 
| 3858 | 
            +
                #     vpc_id: "vpc-a01106c2", 
         | 
| 3859 | 
            +
                #   })
         | 
| 3860 | 
            +
                #
         | 
| 3861 | 
            +
                #   resp.to_h outputs the following:
         | 
| 3862 | 
            +
                #   {
         | 
| 3863 | 
            +
                #     route_table: {
         | 
| 3864 | 
            +
                #       associations: [
         | 
| 3865 | 
            +
                #       ], 
         | 
| 3866 | 
            +
                #       propagating_vgws: [
         | 
| 3867 | 
            +
                #       ], 
         | 
| 3868 | 
            +
                #       route_table_id: "rtb-22574640", 
         | 
| 3869 | 
            +
                #       routes: [
         | 
| 3870 | 
            +
                #         {
         | 
| 3871 | 
            +
                #           destination_cidr_block: "10.0.0.0/16", 
         | 
| 3872 | 
            +
                #           gateway_id: "local", 
         | 
| 3873 | 
            +
                #           state: "active", 
         | 
| 3874 | 
            +
                #         }, 
         | 
| 3875 | 
            +
                #       ], 
         | 
| 3876 | 
            +
                #       tags: [
         | 
| 3877 | 
            +
                #       ], 
         | 
| 3878 | 
            +
                #       vpc_id: "vpc-a01106c2", 
         | 
| 3879 | 
            +
                #     }, 
         | 
| 3880 | 
            +
                #   }
         | 
| 3881 | 
            +
                #
         | 
| 3347 3882 | 
             
                # @example Request syntax with placeholder values
         | 
| 3348 3883 | 
             
                #
         | 
| 3349 3884 | 
             
                #   resp = client.create_route_table({
         | 
| @@ -3540,6 +4075,29 @@ module Aws::EC2 | |
| 3540 4075 | 
             
                #   * {Types::Snapshot#owner_alias #owner_alias} => String
         | 
| 3541 4076 | 
             
                #   * {Types::Snapshot#tags #tags} => Array<Types::Tag>
         | 
| 3542 4077 | 
             
                #
         | 
| 4078 | 
            +
                #
         | 
| 4079 | 
            +
                # @example Example: To create a snapshot
         | 
| 4080 | 
            +
                #
         | 
| 4081 | 
            +
                #   # This example creates a snapshot of the volume with a volume ID of ``vol-1234567890abcdef0`` and a short description to identify the snapshot.
         | 
| 4082 | 
            +
                #
         | 
| 4083 | 
            +
                #   resp = client.create_snapshot({
         | 
| 4084 | 
            +
                #     description: "This is my root volume snapshot.", 
         | 
| 4085 | 
            +
                #     volume_id: "vol-1234567890abcdef0", 
         | 
| 4086 | 
            +
                #   })
         | 
| 4087 | 
            +
                #
         | 
| 4088 | 
            +
                #   resp.to_h outputs the following:
         | 
| 4089 | 
            +
                #   {
         | 
| 4090 | 
            +
                #     description: "This is my root volume snapshot.", 
         | 
| 4091 | 
            +
                #     owner_id: "012345678910", 
         | 
| 4092 | 
            +
                #     snapshot_id: "snap-066877671789bd71b", 
         | 
| 4093 | 
            +
                #     start_time: Time.parse("2014-02-28T21:06:01.000Z"), 
         | 
| 4094 | 
            +
                #     state: "pending", 
         | 
| 4095 | 
            +
                #     tags: [
         | 
| 4096 | 
            +
                #     ], 
         | 
| 4097 | 
            +
                #     volume_id: "vol-1234567890abcdef0", 
         | 
| 4098 | 
            +
                #     volume_size: 8, 
         | 
| 4099 | 
            +
                #   }
         | 
| 4100 | 
            +
                #
         | 
| 3543 4101 | 
             
                # @example Request syntax with placeholder values
         | 
| 3544 4102 | 
             
                #
         | 
| 3545 4103 | 
             
                #   resp = client.create_snapshot({
         | 
| @@ -3601,6 +4159,26 @@ module Aws::EC2 | |
| 3601 4159 | 
             
                #
         | 
| 3602 4160 | 
             
                #   * {Types::CreateSpotDatafeedSubscriptionResult#spot_datafeed_subscription #spot_datafeed_subscription} => Types::SpotDatafeedSubscription
         | 
| 3603 4161 | 
             
                #
         | 
| 4162 | 
            +
                #
         | 
| 4163 | 
            +
                # @example Example: To create a Spot Instance datafeed
         | 
| 4164 | 
            +
                #
         | 
| 4165 | 
            +
                #   # This example creates a Spot Instance data feed for your AWS account.
         | 
| 4166 | 
            +
                #
         | 
| 4167 | 
            +
                #   resp = client.create_spot_datafeed_subscription({
         | 
| 4168 | 
            +
                #     bucket: "my-s3-bucket", 
         | 
| 4169 | 
            +
                #     prefix: "spotdata", 
         | 
| 4170 | 
            +
                #   })
         | 
| 4171 | 
            +
                #
         | 
| 4172 | 
            +
                #   resp.to_h outputs the following:
         | 
| 4173 | 
            +
                #   {
         | 
| 4174 | 
            +
                #     spot_datafeed_subscription: {
         | 
| 4175 | 
            +
                #       bucket: "my-s3-bucket", 
         | 
| 4176 | 
            +
                #       owner_id: "123456789012", 
         | 
| 4177 | 
            +
                #       prefix: "spotdata", 
         | 
| 4178 | 
            +
                #       state: "Active", 
         | 
| 4179 | 
            +
                #     }, 
         | 
| 4180 | 
            +
                #   }
         | 
| 4181 | 
            +
                #
         | 
| 3604 4182 | 
             
                # @example Request syntax with placeholder values
         | 
| 3605 4183 | 
             
                #
         | 
| 3606 4184 | 
             
                #   resp = client.create_spot_datafeed_subscription({
         | 
| @@ -3690,6 +4268,28 @@ module Aws::EC2 | |
| 3690 4268 | 
             
                #
         | 
| 3691 4269 | 
             
                #   * {Types::CreateSubnetResult#subnet #subnet} => Types::Subnet
         | 
| 3692 4270 | 
             
                #
         | 
| 4271 | 
            +
                #
         | 
| 4272 | 
            +
                # @example Example: To create a subnet
         | 
| 4273 | 
            +
                #
         | 
| 4274 | 
            +
                #   # This example creates a subnet in the specified VPC with the specified CIDR block. We recommend that you let us select an Availability Zone for you.
         | 
| 4275 | 
            +
                #
         | 
| 4276 | 
            +
                #   resp = client.create_subnet({
         | 
| 4277 | 
            +
                #     cidr_block: "10.0.1.0/24", 
         | 
| 4278 | 
            +
                #     vpc_id: "vpc-a01106c2", 
         | 
| 4279 | 
            +
                #   })
         | 
| 4280 | 
            +
                #
         | 
| 4281 | 
            +
                #   resp.to_h outputs the following:
         | 
| 4282 | 
            +
                #   {
         | 
| 4283 | 
            +
                #     subnet: {
         | 
| 4284 | 
            +
                #       availability_zone: "us-west-2c", 
         | 
| 4285 | 
            +
                #       available_ip_address_count: 251, 
         | 
| 4286 | 
            +
                #       cidr_block: "10.0.1.0/24", 
         | 
| 4287 | 
            +
                #       state: "pending", 
         | 
| 4288 | 
            +
                #       subnet_id: "subnet-9d4a7b6c", 
         | 
| 4289 | 
            +
                #       vpc_id: "vpc-a01106c2", 
         | 
| 4290 | 
            +
                #     }, 
         | 
| 4291 | 
            +
                #   }
         | 
| 4292 | 
            +
                #
         | 
| 3693 4293 | 
             
                # @example Request syntax with placeholder values
         | 
| 3694 4294 | 
             
                #
         | 
| 3695 4295 | 
             
                #   resp = client.create_subnet({
         | 
| @@ -3761,6 +4361,23 @@ module Aws::EC2 | |
| 3761 4361 | 
             
                #
         | 
| 3762 4362 | 
             
                # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
         | 
| 3763 4363 | 
             
                #
         | 
| 4364 | 
            +
                #
         | 
| 4365 | 
            +
                # @example Example: To add a tag to a resource
         | 
| 4366 | 
            +
                #
         | 
| 4367 | 
            +
                #   # This example adds the tag Stack=production to the specified image, or overwrites an existing tag for the AMI where the tag key is Stack.
         | 
| 4368 | 
            +
                #
         | 
| 4369 | 
            +
                #   resp = client.create_tags({
         | 
| 4370 | 
            +
                #     resources: [
         | 
| 4371 | 
            +
                #       "ami-78a54011", 
         | 
| 4372 | 
            +
                #     ], 
         | 
| 4373 | 
            +
                #     tags: [
         | 
| 4374 | 
            +
                #       {
         | 
| 4375 | 
            +
                #         key: "Stack", 
         | 
| 4376 | 
            +
                #         value: "production", 
         | 
| 4377 | 
            +
                #       }, 
         | 
| 4378 | 
            +
                #     ], 
         | 
| 4379 | 
            +
                #   })
         | 
| 4380 | 
            +
                #
         | 
| 3764 4381 | 
             
                # @example Request syntax with placeholder values
         | 
| 3765 4382 | 
             
                #
         | 
| 3766 4383 | 
             
                #   resp = client.create_tags({
         | 
| @@ -3894,6 +4511,57 @@ module Aws::EC2 | |
| 3894 4511 | 
             
                #   * {Types::Volume#tags #tags} => Array<Types::Tag>
         | 
| 3895 4512 | 
             
                #   * {Types::Volume#volume_type #volume_type} => String
         | 
| 3896 4513 | 
             
                #
         | 
| 4514 | 
            +
                #
         | 
| 4515 | 
            +
                # @example Example: To create a new volume
         | 
| 4516 | 
            +
                #
         | 
| 4517 | 
            +
                #   # This example creates an 80 GiB General Purpose (SSD) volume in the Availability Zone ``us-east-1a``.
         | 
| 4518 | 
            +
                #
         | 
| 4519 | 
            +
                #   resp = client.create_volume({
         | 
| 4520 | 
            +
                #     availability_zone: "us-east-1a", 
         | 
| 4521 | 
            +
                #     size: 80, 
         | 
| 4522 | 
            +
                #     volume_type: "gp2", 
         | 
| 4523 | 
            +
                #   })
         | 
| 4524 | 
            +
                #
         | 
| 4525 | 
            +
                #   resp.to_h outputs the following:
         | 
| 4526 | 
            +
                #   {
         | 
| 4527 | 
            +
                #     availability_zone: "us-east-1a", 
         | 
| 4528 | 
            +
                #     create_time: Time.parse("2016-08-29T18:52:32.724Z"), 
         | 
| 4529 | 
            +
                #     encrypted: false, 
         | 
| 4530 | 
            +
                #     iops: 240, 
         | 
| 4531 | 
            +
                #     size: 80, 
         | 
| 4532 | 
            +
                #     snapshot_id: "", 
         | 
| 4533 | 
            +
                #     state: "creating", 
         | 
| 4534 | 
            +
                #     volume_id: "vol-6b60b7c7", 
         | 
| 4535 | 
            +
                #     volume_type: "gp2", 
         | 
| 4536 | 
            +
                #   }
         | 
| 4537 | 
            +
                #
         | 
| 4538 | 
            +
                # @example Example: To create a new Provisioned IOPS (SSD) volume from a snapshot
         | 
| 4539 | 
            +
                #
         | 
| 4540 | 
            +
                #   # This example creates a new Provisioned IOPS (SSD) volume with 1000 provisioned IOPS from a snapshot in the Availability Zone ``us-east-1a``.
         | 
| 4541 | 
            +
                #
         | 
| 4542 | 
            +
                #   resp = client.create_volume({
         | 
| 4543 | 
            +
                #     availability_zone: "us-east-1a", 
         | 
| 4544 | 
            +
                #     iops: 1000, 
         | 
| 4545 | 
            +
                #     snapshot_id: "snap-066877671789bd71b", 
         | 
| 4546 | 
            +
                #     volume_type: "io1", 
         | 
| 4547 | 
            +
                #   })
         | 
| 4548 | 
            +
                #
         | 
| 4549 | 
            +
                #   resp.to_h outputs the following:
         | 
| 4550 | 
            +
                #   {
         | 
| 4551 | 
            +
                #     attachments: [
         | 
| 4552 | 
            +
                #     ], 
         | 
| 4553 | 
            +
                #     availability_zone: "us-east-1a", 
         | 
| 4554 | 
            +
                #     create_time: Time.parse("2016-08-29T18:52:32.724Z"), 
         | 
| 4555 | 
            +
                #     iops: 1000, 
         | 
| 4556 | 
            +
                #     size: 500, 
         | 
| 4557 | 
            +
                #     snapshot_id: "snap-066877671789bd71b", 
         | 
| 4558 | 
            +
                #     state: "creating", 
         | 
| 4559 | 
            +
                #     tags: [
         | 
| 4560 | 
            +
                #     ], 
         | 
| 4561 | 
            +
                #     volume_id: "vol-1234567890abcdef0", 
         | 
| 4562 | 
            +
                #     volume_type: "io1", 
         | 
| 4563 | 
            +
                #   }
         | 
| 4564 | 
            +
                #
         | 
| 3897 4565 | 
             
                # @example Request syntax with placeholder values
         | 
| 3898 4566 | 
             
                #
         | 
| 3899 4567 | 
             
                #   resp = client.create_volume({
         | 
| @@ -4010,6 +4678,26 @@ module Aws::EC2 | |
| 4010 4678 | 
             
                #
         | 
| 4011 4679 | 
             
                #   * {Types::CreateVpcResult#vpc #vpc} => Types::Vpc
         | 
| 4012 4680 | 
             
                #
         | 
| 4681 | 
            +
                #
         | 
| 4682 | 
            +
                # @example Example: To create a VPC
         | 
| 4683 | 
            +
                #
         | 
| 4684 | 
            +
                #   # This example creates a VPC with the specified CIDR block.
         | 
| 4685 | 
            +
                #
         | 
| 4686 | 
            +
                #   resp = client.create_vpc({
         | 
| 4687 | 
            +
                #     cidr_block: "10.0.0.0/16", 
         | 
| 4688 | 
            +
                #   })
         | 
| 4689 | 
            +
                #
         | 
| 4690 | 
            +
                #   resp.to_h outputs the following:
         | 
| 4691 | 
            +
                #   {
         | 
| 4692 | 
            +
                #     vpc: {
         | 
| 4693 | 
            +
                #       cidr_block: "10.0.0.0/16", 
         | 
| 4694 | 
            +
                #       dhcp_options_id: "dopt-7a8b9c2d", 
         | 
| 4695 | 
            +
                #       instance_tenancy: "default", 
         | 
| 4696 | 
            +
                #       state: "pending", 
         | 
| 4697 | 
            +
                #       vpc_id: "vpc-a01106c2", 
         | 
| 4698 | 
            +
                #     }, 
         | 
| 4699 | 
            +
                #   }
         | 
| 4700 | 
            +
                #
         | 
| 4013 4701 | 
             
                # @example Request syntax with placeholder values
         | 
| 4014 4702 | 
             
                #
         | 
| 4015 4703 | 
             
                #   resp = client.create_vpc({
         | 
| @@ -4409,9 +5097,18 @@ module Aws::EC2 | |
| 4409 5097 | 
             
                #
         | 
| 4410 5098 | 
             
                # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
         | 
| 4411 5099 | 
             
                #
         | 
| 4412 | 
            -
                # @example Request syntax with placeholder values
         | 
| 4413 5100 | 
             
                #
         | 
| 4414 | 
            -
                # | 
| 5101 | 
            +
                # @example Example: To delete a customer gateway
         | 
| 5102 | 
            +
                #
         | 
| 5103 | 
            +
                #   # This example deletes the specified customer gateway.
         | 
| 5104 | 
            +
                #
         | 
| 5105 | 
            +
                #   resp = client.delete_customer_gateway({
         | 
| 5106 | 
            +
                #     customer_gateway_id: "cgw-0e11f167", 
         | 
| 5107 | 
            +
                #   })
         | 
| 5108 | 
            +
                #
         | 
| 5109 | 
            +
                # @example Request syntax with placeholder values
         | 
| 5110 | 
            +
                #
         | 
| 5111 | 
            +
                #   resp = client.delete_customer_gateway({
         | 
| 4415 5112 | 
             
                #     customer_gateway_id: "String", # required
         | 
| 4416 5113 | 
             
                #     dry_run: false,
         | 
| 4417 5114 | 
             
                #   })
         | 
| @@ -4441,6 +5138,15 @@ module Aws::EC2 | |
| 4441 5138 | 
             
                #
         | 
| 4442 5139 | 
             
                # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
         | 
| 4443 5140 | 
             
                #
         | 
| 5141 | 
            +
                #
         | 
| 5142 | 
            +
                # @example Example: To delete a DHCP options set
         | 
| 5143 | 
            +
                #
         | 
| 5144 | 
            +
                #   # This example deletes the specified DHCP options set.
         | 
| 5145 | 
            +
                #
         | 
| 5146 | 
            +
                #   resp = client.delete_dhcp_options({
         | 
| 5147 | 
            +
                #     dhcp_options_id: "dopt-d9070ebb", 
         | 
| 5148 | 
            +
                #   })
         | 
| 5149 | 
            +
                #
         | 
| 4444 5150 | 
             
                # @example Request syntax with placeholder values
         | 
| 4445 5151 | 
             
                #
         | 
| 4446 5152 | 
             
                #   resp = client.delete_dhcp_options({
         | 
| @@ -4537,6 +5243,15 @@ module Aws::EC2 | |
| 4537 5243 | 
             
                #
         | 
| 4538 5244 | 
             
                # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
         | 
| 4539 5245 | 
             
                #
         | 
| 5246 | 
            +
                #
         | 
| 5247 | 
            +
                # @example Example: To delete an Internet gateway
         | 
| 5248 | 
            +
                #
         | 
| 5249 | 
            +
                #   # This example deletes the specified Internet gateway.
         | 
| 5250 | 
            +
                #
         | 
| 5251 | 
            +
                #   resp = client.delete_internet_gateway({
         | 
| 5252 | 
            +
                #     internet_gateway_id: "igw-c0a643a9", 
         | 
| 5253 | 
            +
                #   })
         | 
| 5254 | 
            +
                #
         | 
| 4540 5255 | 
             
                # @example Request syntax with placeholder values
         | 
| 4541 5256 | 
             
                #
         | 
| 4542 5257 | 
             
                #   resp = client.delete_internet_gateway({
         | 
| @@ -4567,6 +5282,15 @@ module Aws::EC2 | |
| 4567 5282 | 
             
                #
         | 
| 4568 5283 | 
             
                # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
         | 
| 4569 5284 | 
             
                #
         | 
| 5285 | 
            +
                #
         | 
| 5286 | 
            +
                # @example Example: To delete a key pair
         | 
| 5287 | 
            +
                #
         | 
| 5288 | 
            +
                #   # This example deletes the specified key pair.
         | 
| 5289 | 
            +
                #
         | 
| 5290 | 
            +
                #   resp = client.delete_key_pair({
         | 
| 5291 | 
            +
                #     key_name: "my-key-pair", 
         | 
| 5292 | 
            +
                #   })
         | 
| 5293 | 
            +
                #
         | 
| 4570 5294 | 
             
                # @example Request syntax with placeholder values
         | 
| 4571 5295 | 
             
                #
         | 
| 4572 5296 | 
             
                #   resp = client.delete_key_pair({
         | 
| @@ -4595,6 +5319,20 @@ module Aws::EC2 | |
| 4595 5319 | 
             
                #
         | 
| 4596 5320 | 
             
                #   * {Types::DeleteNatGatewayResult#nat_gateway_id #nat_gateway_id} => String
         | 
| 4597 5321 | 
             
                #
         | 
| 5322 | 
            +
                #
         | 
| 5323 | 
            +
                # @example Example: To delete a NAT gateway
         | 
| 5324 | 
            +
                #
         | 
| 5325 | 
            +
                #   # This example deletes the specified NAT gateway.
         | 
| 5326 | 
            +
                #
         | 
| 5327 | 
            +
                #   resp = client.delete_nat_gateway({
         | 
| 5328 | 
            +
                #     nat_gateway_id: "nat-04ae55e711cec5680", 
         | 
| 5329 | 
            +
                #   })
         | 
| 5330 | 
            +
                #
         | 
| 5331 | 
            +
                #   resp.to_h outputs the following:
         | 
| 5332 | 
            +
                #   {
         | 
| 5333 | 
            +
                #     nat_gateway_id: "nat-04ae55e711cec5680", 
         | 
| 5334 | 
            +
                #   }
         | 
| 5335 | 
            +
                #
         | 
| 4598 5336 | 
             
                # @example Request syntax with placeholder values
         | 
| 4599 5337 | 
             
                #
         | 
| 4600 5338 | 
             
                #   resp = client.delete_nat_gateway({
         | 
| @@ -4629,6 +5367,15 @@ module Aws::EC2 | |
| 4629 5367 | 
             
                #
         | 
| 4630 5368 | 
             
                # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
         | 
| 4631 5369 | 
             
                #
         | 
| 5370 | 
            +
                #
         | 
| 5371 | 
            +
                # @example Example: To delete a network ACL
         | 
| 5372 | 
            +
                #
         | 
| 5373 | 
            +
                #   # This example deletes the specified network ACL.
         | 
| 5374 | 
            +
                #
         | 
| 5375 | 
            +
                #   resp = client.delete_network_acl({
         | 
| 5376 | 
            +
                #     network_acl_id: "acl-5fb85d36", 
         | 
| 5377 | 
            +
                #   })
         | 
| 5378 | 
            +
                #
         | 
| 4632 5379 | 
             
                # @example Request syntax with placeholder values
         | 
| 4633 5380 | 
             
                #
         | 
| 4634 5381 | 
             
                #   resp = client.delete_network_acl({
         | 
| @@ -4665,6 +5412,17 @@ module Aws::EC2 | |
| 4665 5412 | 
             
                #
         | 
| 4666 5413 | 
             
                # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
         | 
| 4667 5414 | 
             
                #
         | 
| 5415 | 
            +
                #
         | 
| 5416 | 
            +
                # @example Example: To delete a network ACL entry
         | 
| 5417 | 
            +
                #
         | 
| 5418 | 
            +
                #   # This example deletes ingress rule number 100 from the specified network ACL.
         | 
| 5419 | 
            +
                #
         | 
| 5420 | 
            +
                #   resp = client.delete_network_acl_entry({
         | 
| 5421 | 
            +
                #     egress: true, 
         | 
| 5422 | 
            +
                #     network_acl_id: "acl-5fb85d36", 
         | 
| 5423 | 
            +
                #     rule_number: 100, 
         | 
| 5424 | 
            +
                #   })
         | 
| 5425 | 
            +
                #
         | 
| 4668 5426 | 
             
                # @example Request syntax with placeholder values
         | 
| 4669 5427 | 
             
                #
         | 
| 4670 5428 | 
             
                #   resp = client.delete_network_acl_entry({
         | 
| @@ -4697,6 +5455,15 @@ module Aws::EC2 | |
| 4697 5455 | 
             
                #
         | 
| 4698 5456 | 
             
                # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
         | 
| 4699 5457 | 
             
                #
         | 
| 5458 | 
            +
                #
         | 
| 5459 | 
            +
                # @example Example: To delete a network interface
         | 
| 5460 | 
            +
                #
         | 
| 5461 | 
            +
                #   # This example deletes the specified network interface.
         | 
| 5462 | 
            +
                #
         | 
| 5463 | 
            +
                #   resp = client.delete_network_interface({
         | 
| 5464 | 
            +
                #     network_interface_id: "eni-e5aa89a3", 
         | 
| 5465 | 
            +
                #   })
         | 
| 5466 | 
            +
                #
         | 
| 4700 5467 | 
             
                # @example Request syntax with placeholder values
         | 
| 4701 5468 | 
             
                #
         | 
| 4702 5469 | 
             
                #   resp = client.delete_network_interface({
         | 
| @@ -4734,6 +5501,20 @@ module Aws::EC2 | |
| 4734 5501 | 
             
                #
         | 
| 4735 5502 | 
             
                # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
         | 
| 4736 5503 | 
             
                #
         | 
| 5504 | 
            +
                #
         | 
| 5505 | 
            +
                # @example Example: To delete a placement group
         | 
| 5506 | 
            +
                #
         | 
| 5507 | 
            +
                #   # This example deletes the specified placement group.
         | 
| 5508 | 
            +
                
         | 
| 5509 | 
            +
                #
         | 
| 5510 | 
            +
                #   resp = client.delete_placement_group({
         | 
| 5511 | 
            +
                #     group_name: "my-cluster", 
         | 
| 5512 | 
            +
                #   })
         | 
| 5513 | 
            +
                #
         | 
| 5514 | 
            +
                #   resp.to_h outputs the following:
         | 
| 5515 | 
            +
                #   {
         | 
| 5516 | 
            +
                #   }
         | 
| 5517 | 
            +
                #
         | 
| 4737 5518 | 
             
                # @example Request syntax with placeholder values
         | 
| 4738 5519 | 
             
                #
         | 
| 4739 5520 | 
             
                #   resp = client.delete_placement_group({
         | 
| @@ -4771,6 +5552,16 @@ module Aws::EC2 | |
| 4771 5552 | 
             
                #
         | 
| 4772 5553 | 
             
                # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
         | 
| 4773 5554 | 
             
                #
         | 
| 5555 | 
            +
                #
         | 
| 5556 | 
            +
                # @example Example: To delete a route
         | 
| 5557 | 
            +
                #
         | 
| 5558 | 
            +
                #   # This example deletes the specified route from the specified route table.
         | 
| 5559 | 
            +
                #
         | 
| 5560 | 
            +
                #   resp = client.delete_route({
         | 
| 5561 | 
            +
                #     destination_cidr_block: "0.0.0.0/0", 
         | 
| 5562 | 
            +
                #     route_table_id: "rtb-22574640", 
         | 
| 5563 | 
            +
                #   })
         | 
| 5564 | 
            +
                #
         | 
| 4774 5565 | 
             
                # @example Request syntax with placeholder values
         | 
| 4775 5566 | 
             
                #
         | 
| 4776 5567 | 
             
                #   resp = client.delete_route({
         | 
| @@ -4804,6 +5595,15 @@ module Aws::EC2 | |
| 4804 5595 | 
             
                #
         | 
| 4805 5596 | 
             
                # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
         | 
| 4806 5597 | 
             
                #
         | 
| 5598 | 
            +
                #
         | 
| 5599 | 
            +
                # @example Example: To delete a route table
         | 
| 5600 | 
            +
                #
         | 
| 5601 | 
            +
                #   # This example deletes the specified route table.
         | 
| 5602 | 
            +
                #
         | 
| 5603 | 
            +
                #   resp = client.delete_route_table({
         | 
| 5604 | 
            +
                #     route_table_id: "rtb-22574640", 
         | 
| 5605 | 
            +
                #   })
         | 
| 5606 | 
            +
                #
         | 
| 4807 5607 | 
             
                # @example Request syntax with placeholder values
         | 
| 4808 5608 | 
             
                #
         | 
| 4809 5609 | 
             
                #   resp = client.delete_route_table({
         | 
| @@ -4891,6 +5691,19 @@ module Aws::EC2 | |
| 4891 5691 | 
             
                #
         | 
| 4892 5692 | 
             
                # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
         | 
| 4893 5693 | 
             
                #
         | 
| 5694 | 
            +
                #
         | 
| 5695 | 
            +
                # @example Example: To delete a snapshot
         | 
| 5696 | 
            +
                #
         | 
| 5697 | 
            +
                #   # This example deletes a snapshot with the snapshot ID of ``snap-1234567890abcdef0``. If the command succeeds, no output is returned.
         | 
| 5698 | 
            +
                #
         | 
| 5699 | 
            +
                #   resp = client.delete_snapshot({
         | 
| 5700 | 
            +
                #     snapshot_id: "snap-1234567890abcdef0", 
         | 
| 5701 | 
            +
                #   })
         | 
| 5702 | 
            +
                #
         | 
| 5703 | 
            +
                #   resp.to_h outputs the following:
         | 
| 5704 | 
            +
                #   {
         | 
| 5705 | 
            +
                #   }
         | 
| 5706 | 
            +
                #
         | 
| 4894 5707 | 
             
                # @example Request syntax with placeholder values
         | 
| 4895 5708 | 
             
                #
         | 
| 4896 5709 | 
             
                #   resp = client.delete_snapshot({
         | 
| @@ -4917,6 +5730,14 @@ module Aws::EC2 | |
| 4917 5730 | 
             
                #
         | 
| 4918 5731 | 
             
                # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
         | 
| 4919 5732 | 
             
                #
         | 
| 5733 | 
            +
                #
         | 
| 5734 | 
            +
                # @example Example: To cancel a Spot Instance data feed subscription
         | 
| 5735 | 
            +
                #
         | 
| 5736 | 
            +
                #   # This example deletes a Spot data feed subscription for the account.
         | 
| 5737 | 
            +
                #
         | 
| 5738 | 
            +
                #   resp = client.delete_spot_datafeed_subscription({
         | 
| 5739 | 
            +
                #   })
         | 
| 5740 | 
            +
                #
         | 
| 4920 5741 | 
             
                # @example Request syntax with placeholder values
         | 
| 4921 5742 | 
             
                #
         | 
| 4922 5743 | 
             
                #   resp = client.delete_spot_datafeed_subscription({
         | 
| @@ -4946,6 +5767,15 @@ module Aws::EC2 | |
| 4946 5767 | 
             
                #
         | 
| 4947 5768 | 
             
                # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
         | 
| 4948 5769 | 
             
                #
         | 
| 5770 | 
            +
                #
         | 
| 5771 | 
            +
                # @example Example: To delete a subnet
         | 
| 5772 | 
            +
                #
         | 
| 5773 | 
            +
                #   # This example deletes the specified subnet.
         | 
| 5774 | 
            +
                #
         | 
| 5775 | 
            +
                #   resp = client.delete_subnet({
         | 
| 5776 | 
            +
                #     subnet_id: "subnet-9d4a7b6c", 
         | 
| 5777 | 
            +
                #   })
         | 
| 5778 | 
            +
                #
         | 
| 4949 5779 | 
             
                # @example Request syntax with placeholder values
         | 
| 4950 5780 | 
             
                #
         | 
| 4951 5781 | 
             
                #   resp = client.delete_subnet({
         | 
| @@ -4990,6 +5820,23 @@ module Aws::EC2 | |
| 4990 5820 | 
             
                #
         | 
| 4991 5821 | 
             
                # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
         | 
| 4992 5822 | 
             
                #
         | 
| 5823 | 
            +
                #
         | 
| 5824 | 
            +
                # @example Example: To delete a tag from a resource
         | 
| 5825 | 
            +
                #
         | 
| 5826 | 
            +
                #   # This example deletes the tag Stack=test from the specified image.
         | 
| 5827 | 
            +
                #
         | 
| 5828 | 
            +
                #   resp = client.delete_tags({
         | 
| 5829 | 
            +
                #     resources: [
         | 
| 5830 | 
            +
                #       "ami-78a54011", 
         | 
| 5831 | 
            +
                #     ], 
         | 
| 5832 | 
            +
                #     tags: [
         | 
| 5833 | 
            +
                #       {
         | 
| 5834 | 
            +
                #         key: "Stack", 
         | 
| 5835 | 
            +
                #         value: "test", 
         | 
| 5836 | 
            +
                #       }, 
         | 
| 5837 | 
            +
                #     ], 
         | 
| 5838 | 
            +
                #   })
         | 
| 5839 | 
            +
                #
         | 
| 4993 5840 | 
             
                # @example Request syntax with placeholder values
         | 
| 4994 5841 | 
             
                #
         | 
| 4995 5842 | 
             
                #   resp = client.delete_tags({
         | 
| @@ -5037,6 +5884,19 @@ module Aws::EC2 | |
| 5037 5884 | 
             
                #
         | 
| 5038 5885 | 
             
                # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
         | 
| 5039 5886 | 
             
                #
         | 
| 5887 | 
            +
                #
         | 
| 5888 | 
            +
                # @example Example: To delete a volume
         | 
| 5889 | 
            +
                #
         | 
| 5890 | 
            +
                #   # This example deletes an available volume with the volume ID of ``vol-049df61146c4d7901``. If the command succeeds, no output is returned.
         | 
| 5891 | 
            +
                #
         | 
| 5892 | 
            +
                #   resp = client.delete_volume({
         | 
| 5893 | 
            +
                #     volume_id: "vol-049df61146c4d7901", 
         | 
| 5894 | 
            +
                #   })
         | 
| 5895 | 
            +
                #
         | 
| 5896 | 
            +
                #   resp.to_h outputs the following:
         | 
| 5897 | 
            +
                #   {
         | 
| 5898 | 
            +
                #   }
         | 
| 5899 | 
            +
                #
         | 
| 5040 5900 | 
             
                # @example Request syntax with placeholder values
         | 
| 5041 5901 | 
             
                #
         | 
| 5042 5902 | 
             
                #   resp = client.delete_volume({
         | 
| @@ -5071,6 +5931,15 @@ module Aws::EC2 | |
| 5071 5931 | 
             
                #
         | 
| 5072 5932 | 
             
                # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
         | 
| 5073 5933 | 
             
                #
         | 
| 5934 | 
            +
                #
         | 
| 5935 | 
            +
                # @example Example: To delete a VPC
         | 
| 5936 | 
            +
                #
         | 
| 5937 | 
            +
                #   # This example deletes the specified VPC.
         | 
| 5938 | 
            +
                #
         | 
| 5939 | 
            +
                #   resp = client.delete_vpc({
         | 
| 5940 | 
            +
                #     vpc_id: "vpc-a01106c2", 
         | 
| 5941 | 
            +
                #   })
         | 
| 5942 | 
            +
                #
         | 
| 5074 5943 | 
             
                # @example Request syntax with placeholder values
         | 
| 5075 5944 | 
             
                #
         | 
| 5076 5945 | 
             
                #   resp = client.delete_vpc({
         | 
| @@ -5333,6 +6202,98 @@ module Aws::EC2 | |
| 5333 6202 | 
             
                #
         | 
| 5334 6203 | 
             
                #   * {Types::DescribeAccountAttributesResult#account_attributes #account_attributes} => Array<Types::AccountAttribute>
         | 
| 5335 6204 | 
             
                #
         | 
| 6205 | 
            +
                #
         | 
| 6206 | 
            +
                # @example Example: To describe a single attribute for your AWS account
         | 
| 6207 | 
            +
                #
         | 
| 6208 | 
            +
                #   # This example describes the supported-platforms attribute for your AWS account.
         | 
| 6209 | 
            +
                #
         | 
| 6210 | 
            +
                #   resp = client.describe_account_attributes({
         | 
| 6211 | 
            +
                #     attribute_names: [
         | 
| 6212 | 
            +
                #       "supported-platforms", 
         | 
| 6213 | 
            +
                #     ], 
         | 
| 6214 | 
            +
                #   })
         | 
| 6215 | 
            +
                #
         | 
| 6216 | 
            +
                #   resp.to_h outputs the following:
         | 
| 6217 | 
            +
                #   {
         | 
| 6218 | 
            +
                #     account_attributes: [
         | 
| 6219 | 
            +
                #       {
         | 
| 6220 | 
            +
                #         attribute_name: "supported-platforms", 
         | 
| 6221 | 
            +
                #         attribute_values: [
         | 
| 6222 | 
            +
                #           {
         | 
| 6223 | 
            +
                #             attribute_value: "EC2", 
         | 
| 6224 | 
            +
                #           }, 
         | 
| 6225 | 
            +
                #           {
         | 
| 6226 | 
            +
                #             attribute_value: "VPC", 
         | 
| 6227 | 
            +
                #           }, 
         | 
| 6228 | 
            +
                #         ], 
         | 
| 6229 | 
            +
                #       }, 
         | 
| 6230 | 
            +
                #     ], 
         | 
| 6231 | 
            +
                #   }
         | 
| 6232 | 
            +
                #
         | 
| 6233 | 
            +
                # @example Example: To describe all attributes for your AWS account
         | 
| 6234 | 
            +
                #
         | 
| 6235 | 
            +
                #   # This example describes the attributes for your AWS account.
         | 
| 6236 | 
            +
                #
         | 
| 6237 | 
            +
                #   resp = client.describe_account_attributes({
         | 
| 6238 | 
            +
                #   })
         | 
| 6239 | 
            +
                #
         | 
| 6240 | 
            +
                #   resp.to_h outputs the following:
         | 
| 6241 | 
            +
                #   {
         | 
| 6242 | 
            +
                #     account_attributes: [
         | 
| 6243 | 
            +
                #       {
         | 
| 6244 | 
            +
                #         attribute_name: "supported-platforms", 
         | 
| 6245 | 
            +
                #         attribute_values: [
         | 
| 6246 | 
            +
                #           {
         | 
| 6247 | 
            +
                #             attribute_value: "EC2", 
         | 
| 6248 | 
            +
                #           }, 
         | 
| 6249 | 
            +
                #           {
         | 
| 6250 | 
            +
                #             attribute_value: "VPC", 
         | 
| 6251 | 
            +
                #           }, 
         | 
| 6252 | 
            +
                #         ], 
         | 
| 6253 | 
            +
                #       }, 
         | 
| 6254 | 
            +
                #       {
         | 
| 6255 | 
            +
                #         attribute_name: "vpc-max-security-groups-per-interface", 
         | 
| 6256 | 
            +
                #         attribute_values: [
         | 
| 6257 | 
            +
                #           {
         | 
| 6258 | 
            +
                #             attribute_value: "5", 
         | 
| 6259 | 
            +
                #           }, 
         | 
| 6260 | 
            +
                #         ], 
         | 
| 6261 | 
            +
                #       }, 
         | 
| 6262 | 
            +
                #       {
         | 
| 6263 | 
            +
                #         attribute_name: "max-elastic-ips", 
         | 
| 6264 | 
            +
                #         attribute_values: [
         | 
| 6265 | 
            +
                #           {
         | 
| 6266 | 
            +
                #             attribute_value: "5", 
         | 
| 6267 | 
            +
                #           }, 
         | 
| 6268 | 
            +
                #         ], 
         | 
| 6269 | 
            +
                #       }, 
         | 
| 6270 | 
            +
                #       {
         | 
| 6271 | 
            +
                #         attribute_name: "max-instances", 
         | 
| 6272 | 
            +
                #         attribute_values: [
         | 
| 6273 | 
            +
                #           {
         | 
| 6274 | 
            +
                #             attribute_value: "20", 
         | 
| 6275 | 
            +
                #           }, 
         | 
| 6276 | 
            +
                #         ], 
         | 
| 6277 | 
            +
                #       }, 
         | 
| 6278 | 
            +
                #       {
         | 
| 6279 | 
            +
                #         attribute_name: "vpc-max-elastic-ips", 
         | 
| 6280 | 
            +
                #         attribute_values: [
         | 
| 6281 | 
            +
                #           {
         | 
| 6282 | 
            +
                #             attribute_value: "5", 
         | 
| 6283 | 
            +
                #           }, 
         | 
| 6284 | 
            +
                #         ], 
         | 
| 6285 | 
            +
                #       }, 
         | 
| 6286 | 
            +
                #       {
         | 
| 6287 | 
            +
                #         attribute_name: "default-vpc", 
         | 
| 6288 | 
            +
                #         attribute_values: [
         | 
| 6289 | 
            +
                #           {
         | 
| 6290 | 
            +
                #             attribute_value: "none", 
         | 
| 6291 | 
            +
                #           }, 
         | 
| 6292 | 
            +
                #         ], 
         | 
| 6293 | 
            +
                #       }, 
         | 
| 6294 | 
            +
                #     ], 
         | 
| 6295 | 
            +
                #   }
         | 
| 6296 | 
            +
                #
         | 
| 5336 6297 | 
             
                # @example Request syntax with placeholder values
         | 
| 5337 6298 | 
             
                #
         | 
| 5338 6299 | 
             
                #   resp = client.describe_account_attributes({
         | 
| @@ -5409,6 +6370,92 @@ module Aws::EC2 | |
| 5409 6370 | 
             
                #
         | 
| 5410 6371 | 
             
                #   * {Types::DescribeAddressesResult#addresses #addresses} => Array<Types::Address>
         | 
| 5411 6372 | 
             
                #
         | 
| 6373 | 
            +
                #
         | 
| 6374 | 
            +
                # @example Example: To describe your Elastic IP addresses
         | 
| 6375 | 
            +
                #
         | 
| 6376 | 
            +
                #   # This example describes your Elastic IP addresses.
         | 
| 6377 | 
            +
                #
         | 
| 6378 | 
            +
                #   resp = client.describe_addresses({
         | 
| 6379 | 
            +
                #   })
         | 
| 6380 | 
            +
                #
         | 
| 6381 | 
            +
                #   resp.to_h outputs the following:
         | 
| 6382 | 
            +
                #   {
         | 
| 6383 | 
            +
                #     addresses: [
         | 
| 6384 | 
            +
                #       {
         | 
| 6385 | 
            +
                #         domain: "standard", 
         | 
| 6386 | 
            +
                #         instance_id: "i-1234567890abcdef0", 
         | 
| 6387 | 
            +
                #         public_ip: "198.51.100.0", 
         | 
| 6388 | 
            +
                #       }, 
         | 
| 6389 | 
            +
                #       {
         | 
| 6390 | 
            +
                #         allocation_id: "eipalloc-12345678", 
         | 
| 6391 | 
            +
                #         association_id: "eipassoc-12345678", 
         | 
| 6392 | 
            +
                #         domain: "vpc", 
         | 
| 6393 | 
            +
                #         instance_id: "i-1234567890abcdef0", 
         | 
| 6394 | 
            +
                #         network_interface_id: "eni-12345678", 
         | 
| 6395 | 
            +
                #         network_interface_owner_id: "123456789012", 
         | 
| 6396 | 
            +
                #         private_ip_address: "10.0.1.241", 
         | 
| 6397 | 
            +
                #         public_ip: "203.0.113.0", 
         | 
| 6398 | 
            +
                #       }, 
         | 
| 6399 | 
            +
                #     ], 
         | 
| 6400 | 
            +
                #   }
         | 
| 6401 | 
            +
                #
         | 
| 6402 | 
            +
                # @example Example: To describe your Elastic IP addresses for EC2-VPC
         | 
| 6403 | 
            +
                #
         | 
| 6404 | 
            +
                #   # This example describes your Elastic IP addresses for use with instances in a VPC.
         | 
| 6405 | 
            +
                #
         | 
| 6406 | 
            +
                #   resp = client.describe_addresses({
         | 
| 6407 | 
            +
                #     filters: [
         | 
| 6408 | 
            +
                #       {
         | 
| 6409 | 
            +
                #         name: "domain", 
         | 
| 6410 | 
            +
                #         values: [
         | 
| 6411 | 
            +
                #           "vpc", 
         | 
| 6412 | 
            +
                #         ], 
         | 
| 6413 | 
            +
                #       }, 
         | 
| 6414 | 
            +
                #     ], 
         | 
| 6415 | 
            +
                #   })
         | 
| 6416 | 
            +
                #
         | 
| 6417 | 
            +
                #   resp.to_h outputs the following:
         | 
| 6418 | 
            +
                #   {
         | 
| 6419 | 
            +
                #     addresses: [
         | 
| 6420 | 
            +
                #       {
         | 
| 6421 | 
            +
                #         allocation_id: "eipalloc-12345678", 
         | 
| 6422 | 
            +
                #         association_id: "eipassoc-12345678", 
         | 
| 6423 | 
            +
                #         domain: "vpc", 
         | 
| 6424 | 
            +
                #         instance_id: "i-1234567890abcdef0", 
         | 
| 6425 | 
            +
                #         network_interface_id: "eni-12345678", 
         | 
| 6426 | 
            +
                #         network_interface_owner_id: "123456789012", 
         | 
| 6427 | 
            +
                #         private_ip_address: "10.0.1.241", 
         | 
| 6428 | 
            +
                #         public_ip: "203.0.113.0", 
         | 
| 6429 | 
            +
                #       }, 
         | 
| 6430 | 
            +
                #     ], 
         | 
| 6431 | 
            +
                #   }
         | 
| 6432 | 
            +
                #
         | 
| 6433 | 
            +
                # @example Example: To describe your Elastic IP addresses for EC2-Classic
         | 
| 6434 | 
            +
                #
         | 
| 6435 | 
            +
                #   # This example describes your Elastic IP addresses for use with instances in EC2-Classic.
         | 
| 6436 | 
            +
                #
         | 
| 6437 | 
            +
                #   resp = client.describe_addresses({
         | 
| 6438 | 
            +
                #     filters: [
         | 
| 6439 | 
            +
                #       {
         | 
| 6440 | 
            +
                #         name: "domain", 
         | 
| 6441 | 
            +
                #         values: [
         | 
| 6442 | 
            +
                #           "standard", 
         | 
| 6443 | 
            +
                #         ], 
         | 
| 6444 | 
            +
                #       }, 
         | 
| 6445 | 
            +
                #     ], 
         | 
| 6446 | 
            +
                #   })
         | 
| 6447 | 
            +
                #
         | 
| 6448 | 
            +
                #   resp.to_h outputs the following:
         | 
| 6449 | 
            +
                #   {
         | 
| 6450 | 
            +
                #     addresses: [
         | 
| 6451 | 
            +
                #       {
         | 
| 6452 | 
            +
                #         domain: "standard", 
         | 
| 6453 | 
            +
                #         instance_id: "i-1234567890abcdef0", 
         | 
| 6454 | 
            +
                #         public_ip: "198.51.100.0", 
         | 
| 6455 | 
            +
                #       }, 
         | 
| 6456 | 
            +
                #     ], 
         | 
| 6457 | 
            +
                #   }
         | 
| 6458 | 
            +
                #
         | 
| 5412 6459 | 
             
                # @example Request syntax with placeholder values
         | 
| 5413 6460 | 
             
                #
         | 
| 5414 6461 | 
             
                #   resp = client.describe_addresses({
         | 
| @@ -5484,6 +6531,48 @@ module Aws::EC2 | |
| 5484 6531 | 
             
                #
         | 
| 5485 6532 | 
             
                #   * {Types::DescribeAvailabilityZonesResult#availability_zones #availability_zones} => Array<Types::AvailabilityZone>
         | 
| 5486 6533 | 
             
                #
         | 
| 6534 | 
            +
                #
         | 
| 6535 | 
            +
                # @example Example: To describe your Availability Zones
         | 
| 6536 | 
            +
                #
         | 
| 6537 | 
            +
                #   # This example describes the Availability Zones that are available to you. The response includes Availability Zones only for the current region.
         | 
| 6538 | 
            +
                #
         | 
| 6539 | 
            +
                #   resp = client.describe_availability_zones({
         | 
| 6540 | 
            +
                #   })
         | 
| 6541 | 
            +
                #
         | 
| 6542 | 
            +
                #   resp.to_h outputs the following:
         | 
| 6543 | 
            +
                #   {
         | 
| 6544 | 
            +
                #     availability_zones: [
         | 
| 6545 | 
            +
                #       {
         | 
| 6546 | 
            +
                #         messages: [
         | 
| 6547 | 
            +
                #         ], 
         | 
| 6548 | 
            +
                #         region_name: "us-east-1", 
         | 
| 6549 | 
            +
                #         state: "available", 
         | 
| 6550 | 
            +
                #         zone_name: "us-east-1b", 
         | 
| 6551 | 
            +
                #       }, 
         | 
| 6552 | 
            +
                #       {
         | 
| 6553 | 
            +
                #         messages: [
         | 
| 6554 | 
            +
                #         ], 
         | 
| 6555 | 
            +
                #         region_name: "us-east-1", 
         | 
| 6556 | 
            +
                #         state: "available", 
         | 
| 6557 | 
            +
                #         zone_name: "us-east-1c", 
         | 
| 6558 | 
            +
                #       }, 
         | 
| 6559 | 
            +
                #       {
         | 
| 6560 | 
            +
                #         messages: [
         | 
| 6561 | 
            +
                #         ], 
         | 
| 6562 | 
            +
                #         region_name: "us-east-1", 
         | 
| 6563 | 
            +
                #         state: "available", 
         | 
| 6564 | 
            +
                #         zone_name: "us-east-1d", 
         | 
| 6565 | 
            +
                #       }, 
         | 
| 6566 | 
            +
                #       {
         | 
| 6567 | 
            +
                #         messages: [
         | 
| 6568 | 
            +
                #         ], 
         | 
| 6569 | 
            +
                #         region_name: "us-east-1", 
         | 
| 6570 | 
            +
                #         state: "available", 
         | 
| 6571 | 
            +
                #         zone_name: "us-east-1e", 
         | 
| 6572 | 
            +
                #       }, 
         | 
| 6573 | 
            +
                #     ], 
         | 
| 6574 | 
            +
                #   }
         | 
| 6575 | 
            +
                #
         | 
| 5487 6576 | 
             
                # @example Request syntax with placeholder values
         | 
| 5488 6577 | 
             
                #
         | 
| 5489 6578 | 
             
                #   resp = client.describe_availability_zones({
         | 
| @@ -5834,6 +6923,30 @@ module Aws::EC2 | |
| 5834 6923 | 
             
                #
         | 
| 5835 6924 | 
             
                #   * {Types::DescribeCustomerGatewaysResult#customer_gateways #customer_gateways} => Array<Types::CustomerGateway>
         | 
| 5836 6925 | 
             
                #
         | 
| 6926 | 
            +
                #
         | 
| 6927 | 
            +
                # @example Example: To describe a customer gateway
         | 
| 6928 | 
            +
                #
         | 
| 6929 | 
            +
                #   # This example describes the specified customer gateway.
         | 
| 6930 | 
            +
                #
         | 
| 6931 | 
            +
                #   resp = client.describe_customer_gateways({
         | 
| 6932 | 
            +
                #     customer_gateway_ids: [
         | 
| 6933 | 
            +
                #       "cgw-0e11f167", 
         | 
| 6934 | 
            +
                #     ], 
         | 
| 6935 | 
            +
                #   })
         | 
| 6936 | 
            +
                #
         | 
| 6937 | 
            +
                #   resp.to_h outputs the following:
         | 
| 6938 | 
            +
                #   {
         | 
| 6939 | 
            +
                #     customer_gateways: [
         | 
| 6940 | 
            +
                #       {
         | 
| 6941 | 
            +
                #         bgp_asn: "65534", 
         | 
| 6942 | 
            +
                #         customer_gateway_id: "cgw-0e11f167", 
         | 
| 6943 | 
            +
                #         ip_address: "12.1.2.3", 
         | 
| 6944 | 
            +
                #         state: "available", 
         | 
| 6945 | 
            +
                #         type: "ipsec.1", 
         | 
| 6946 | 
            +
                #       }, 
         | 
| 6947 | 
            +
                #     ], 
         | 
| 6948 | 
            +
                #   }
         | 
| 6949 | 
            +
                #
         | 
| 5837 6950 | 
             
                # @example Request syntax with placeholder values
         | 
| 5838 6951 | 
             
                #
         | 
| 5839 6952 | 
             
                #   resp = client.describe_customer_gateways({
         | 
| @@ -5918,6 +7031,39 @@ module Aws::EC2 | |
| 5918 7031 | 
             
                #
         | 
| 5919 7032 | 
             
                #   * {Types::DescribeDhcpOptionsResult#dhcp_options #dhcp_options} => Array<Types::DhcpOptions>
         | 
| 5920 7033 | 
             
                #
         | 
| 7034 | 
            +
                #
         | 
| 7035 | 
            +
                # @example Example: To describe a DHCP options set
         | 
| 7036 | 
            +
                #
         | 
| 7037 | 
            +
                #   # This example describes the specified DHCP options set.
         | 
| 7038 | 
            +
                #
         | 
| 7039 | 
            +
                #   resp = client.describe_dhcp_options({
         | 
| 7040 | 
            +
                #     dhcp_options_ids: [
         | 
| 7041 | 
            +
                #       "dopt-d9070ebb", 
         | 
| 7042 | 
            +
                #     ], 
         | 
| 7043 | 
            +
                #   })
         | 
| 7044 | 
            +
                #
         | 
| 7045 | 
            +
                #   resp.to_h outputs the following:
         | 
| 7046 | 
            +
                #   {
         | 
| 7047 | 
            +
                #     dhcp_options: [
         | 
| 7048 | 
            +
                #       {
         | 
| 7049 | 
            +
                #         dhcp_configurations: [
         | 
| 7050 | 
            +
                #           {
         | 
| 7051 | 
            +
                #             key: "domain-name-servers", 
         | 
| 7052 | 
            +
                #             values: [
         | 
| 7053 | 
            +
                #               {
         | 
| 7054 | 
            +
                #                 value: "10.2.5.2", 
         | 
| 7055 | 
            +
                #               }, 
         | 
| 7056 | 
            +
                #               {
         | 
| 7057 | 
            +
                #                 value: "10.2.5.1", 
         | 
| 7058 | 
            +
                #               }, 
         | 
| 7059 | 
            +
                #             ], 
         | 
| 7060 | 
            +
                #           }, 
         | 
| 7061 | 
            +
                #         ], 
         | 
| 7062 | 
            +
                #         dhcp_options_id: "dopt-d9070ebb", 
         | 
| 7063 | 
            +
                #       }, 
         | 
| 7064 | 
            +
                #     ], 
         | 
| 7065 | 
            +
                #   }
         | 
| 7066 | 
            +
                #
         | 
| 5921 7067 | 
             
                # @example Request syntax with placeholder values
         | 
| 5922 7068 | 
             
                #
         | 
| 5923 7069 | 
             
                #   resp = client.describe_dhcp_options({
         | 
| @@ -7111,6 +8257,78 @@ module Aws::EC2 | |
| 7111 8257 | 
             
                #   * {Types::InstanceAttribute#sriov_net_support #sriov_net_support} => Types::AttributeValue
         | 
| 7112 8258 | 
             
                #   * {Types::InstanceAttribute#user_data #user_data} => Types::AttributeValue
         | 
| 7113 8259 | 
             
                #
         | 
| 8260 | 
            +
                #
         | 
| 8261 | 
            +
                # @example Example: To describe the instance type
         | 
| 8262 | 
            +
                #
         | 
| 8263 | 
            +
                #   # This example describes the instance type of the specified instance.
         | 
| 8264 | 
            +
                
         | 
| 8265 | 
            +
                #
         | 
| 8266 | 
            +
                #   resp = client.describe_instance_attribute({
         | 
| 8267 | 
            +
                #     attribute: "instanceType", 
         | 
| 8268 | 
            +
                #     instance_id: "i-1234567890abcdef0", 
         | 
| 8269 | 
            +
                #   })
         | 
| 8270 | 
            +
                #
         | 
| 8271 | 
            +
                #   resp.to_h outputs the following:
         | 
| 8272 | 
            +
                #   {
         | 
| 8273 | 
            +
                #     instance_id: "i-1234567890abcdef0", 
         | 
| 8274 | 
            +
                #     instance_type: {
         | 
| 8275 | 
            +
                #       value: "t1.micro", 
         | 
| 8276 | 
            +
                #     }, 
         | 
| 8277 | 
            +
                #   }
         | 
| 8278 | 
            +
                #
         | 
| 8279 | 
            +
                # @example Example: To describe the disableApiTermination attribute
         | 
| 8280 | 
            +
                #
         | 
| 8281 | 
            +
                #   # This example describes the ``disableApiTermination`` attribute of the specified instance.
         | 
| 8282 | 
            +
                
         | 
| 8283 | 
            +
                #
         | 
| 8284 | 
            +
                #   resp = client.describe_instance_attribute({
         | 
| 8285 | 
            +
                #     attribute: "disableApiTermination", 
         | 
| 8286 | 
            +
                #     instance_id: "i-1234567890abcdef0", 
         | 
| 8287 | 
            +
                #   })
         | 
| 8288 | 
            +
                #
         | 
| 8289 | 
            +
                #   resp.to_h outputs the following:
         | 
| 8290 | 
            +
                #   {
         | 
| 8291 | 
            +
                #     disable_api_termination: {
         | 
| 8292 | 
            +
                #       value: false, 
         | 
| 8293 | 
            +
                #     }, 
         | 
| 8294 | 
            +
                #     instance_id: "i-1234567890abcdef0", 
         | 
| 8295 | 
            +
                #   }
         | 
| 8296 | 
            +
                #
         | 
| 8297 | 
            +
                # @example Example: To describe the block device mapping for an instance
         | 
| 8298 | 
            +
                #
         | 
| 8299 | 
            +
                #   # This example describes the ``blockDeviceMapping`` attribute of the specified instance.
         | 
| 8300 | 
            +
                
         | 
| 8301 | 
            +
                #
         | 
| 8302 | 
            +
                #   resp = client.describe_instance_attribute({
         | 
| 8303 | 
            +
                #     attribute: "blockDeviceMapping", 
         | 
| 8304 | 
            +
                #     instance_id: "i-1234567890abcdef0", 
         | 
| 8305 | 
            +
                #   })
         | 
| 8306 | 
            +
                #
         | 
| 8307 | 
            +
                #   resp.to_h outputs the following:
         | 
| 8308 | 
            +
                #   {
         | 
| 8309 | 
            +
                #     block_device_mappings: [
         | 
| 8310 | 
            +
                #       {
         | 
| 8311 | 
            +
                #         device_name: "/dev/sda1", 
         | 
| 8312 | 
            +
                #         ebs: {
         | 
| 8313 | 
            +
                #           attach_time: Time.parse("2013-05-17T22:42:34.000Z"), 
         | 
| 8314 | 
            +
                #           delete_on_termination: true, 
         | 
| 8315 | 
            +
                #           status: "attached", 
         | 
| 8316 | 
            +
                #           volume_id: "vol-049df61146c4d7901", 
         | 
| 8317 | 
            +
                #         }, 
         | 
| 8318 | 
            +
                #       }, 
         | 
| 8319 | 
            +
                #       {
         | 
| 8320 | 
            +
                #         device_name: "/dev/sdf", 
         | 
| 8321 | 
            +
                #         ebs: {
         | 
| 8322 | 
            +
                #           attach_time: Time.parse("2013-09-10T23:07:00.000Z"), 
         | 
| 8323 | 
            +
                #           delete_on_termination: false, 
         | 
| 8324 | 
            +
                #           status: "attached", 
         | 
| 8325 | 
            +
                #           volume_id: "vol-049df61146c4d7901", 
         | 
| 8326 | 
            +
                #         }, 
         | 
| 8327 | 
            +
                #       }, 
         | 
| 8328 | 
            +
                #     ], 
         | 
| 8329 | 
            +
                #     instance_id: "i-1234567890abcdef0", 
         | 
| 8330 | 
            +
                #   }
         | 
| 8331 | 
            +
                #
         | 
| 7114 8332 | 
             
                # @example Request syntax with placeholder values
         | 
| 7115 8333 | 
             
                #
         | 
| 7116 8334 | 
             
                #   resp = client.describe_instance_attribute({
         | 
| @@ -7794,6 +9012,39 @@ module Aws::EC2 | |
| 7794 9012 | 
             
                #
         | 
| 7795 9013 | 
             
                #   * {Types::DescribeInternetGatewaysResult#internet_gateways #internet_gateways} => Array<Types::InternetGateway>
         | 
| 7796 9014 | 
             
                #
         | 
| 9015 | 
            +
                #
         | 
| 9016 | 
            +
                # @example Example: To describe the Internet gateway for a VPC
         | 
| 9017 | 
            +
                #
         | 
| 9018 | 
            +
                #   # This example describes the Internet gateway for the specified VPC.
         | 
| 9019 | 
            +
                #
         | 
| 9020 | 
            +
                #   resp = client.describe_internet_gateways({
         | 
| 9021 | 
            +
                #     filters: [
         | 
| 9022 | 
            +
                #       {
         | 
| 9023 | 
            +
                #         name: "attachment.vpc-id", 
         | 
| 9024 | 
            +
                #         values: [
         | 
| 9025 | 
            +
                #           "vpc-a01106c2", 
         | 
| 9026 | 
            +
                #         ], 
         | 
| 9027 | 
            +
                #       }, 
         | 
| 9028 | 
            +
                #     ], 
         | 
| 9029 | 
            +
                #   })
         | 
| 9030 | 
            +
                #
         | 
| 9031 | 
            +
                #   resp.to_h outputs the following:
         | 
| 9032 | 
            +
                #   {
         | 
| 9033 | 
            +
                #     internet_gateways: [
         | 
| 9034 | 
            +
                #       {
         | 
| 9035 | 
            +
                #         attachments: [
         | 
| 9036 | 
            +
                #           {
         | 
| 9037 | 
            +
                #             state: "available", 
         | 
| 9038 | 
            +
                #             vpc_id: "vpc-a01106c2", 
         | 
| 9039 | 
            +
                #           }, 
         | 
| 9040 | 
            +
                #         ], 
         | 
| 9041 | 
            +
                #         internet_gateway_id: "igw-c0a643a9", 
         | 
| 9042 | 
            +
                #         tags: [
         | 
| 9043 | 
            +
                #         ], 
         | 
| 9044 | 
            +
                #       }, 
         | 
| 9045 | 
            +
                #     ], 
         | 
| 9046 | 
            +
                #   }
         | 
| 9047 | 
            +
                #
         | 
| 7797 9048 | 
             
                # @example Request syntax with placeholder values
         | 
| 7798 9049 | 
             
                #
         | 
| 7799 9050 | 
             
                #   resp = client.describe_internet_gateways({
         | 
| @@ -7858,6 +9109,27 @@ module Aws::EC2 | |
| 7858 9109 | 
             
                #
         | 
| 7859 9110 | 
             
                #   * {Types::DescribeKeyPairsResult#key_pairs #key_pairs} => Array<Types::KeyPairInfo>
         | 
| 7860 9111 | 
             
                #
         | 
| 9112 | 
            +
                #
         | 
| 9113 | 
            +
                # @example Example: To display a key pair
         | 
| 9114 | 
            +
                #
         | 
| 9115 | 
            +
                #   # This example displays the fingerprint for the specified key.
         | 
| 9116 | 
            +
                #
         | 
| 9117 | 
            +
                #   resp = client.describe_key_pairs({
         | 
| 9118 | 
            +
                #     key_names: [
         | 
| 9119 | 
            +
                #       "my-key-pair", 
         | 
| 9120 | 
            +
                #     ], 
         | 
| 9121 | 
            +
                #   })
         | 
| 9122 | 
            +
                #
         | 
| 9123 | 
            +
                #   resp.to_h outputs the following:
         | 
| 9124 | 
            +
                #   {
         | 
| 9125 | 
            +
                #     key_pairs: [
         | 
| 9126 | 
            +
                #       {
         | 
| 9127 | 
            +
                #         key_fingerprint: "1f:51:ae:28:bf:89:e9:d8:1f:25:5d:37:2d:7d:b8:ca:9f:f5:f1:6f", 
         | 
| 9128 | 
            +
                #         key_name: "my-key-pair", 
         | 
| 9129 | 
            +
                #       }, 
         | 
| 9130 | 
            +
                #     ], 
         | 
| 9131 | 
            +
                #   }
         | 
| 9132 | 
            +
                #
         | 
| 7861 9133 | 
             
                # @example Request syntax with placeholder values
         | 
| 7862 9134 | 
             
                #
         | 
| 7863 9135 | 
             
                #   resp = client.describe_key_pairs({
         | 
| @@ -7925,6 +9197,24 @@ module Aws::EC2 | |
| 7925 9197 | 
             
                #   * {Types::DescribeMovingAddressesResult#moving_address_statuses #moving_address_statuses} => Array<Types::MovingAddressStatus>
         | 
| 7926 9198 | 
             
                #   * {Types::DescribeMovingAddressesResult#next_token #next_token} => String
         | 
| 7927 9199 | 
             
                #
         | 
| 9200 | 
            +
                #
         | 
| 9201 | 
            +
                # @example Example: To describe your moving addresses
         | 
| 9202 | 
            +
                #
         | 
| 9203 | 
            +
                #   # This example describes all of your moving Elastic IP addresses.
         | 
| 9204 | 
            +
                #
         | 
| 9205 | 
            +
                #   resp = client.describe_moving_addresses({
         | 
| 9206 | 
            +
                #   })
         | 
| 9207 | 
            +
                #
         | 
| 9208 | 
            +
                #   resp.to_h outputs the following:
         | 
| 9209 | 
            +
                #   {
         | 
| 9210 | 
            +
                #     moving_address_statuses: [
         | 
| 9211 | 
            +
                #       {
         | 
| 9212 | 
            +
                #         move_status: "MovingToVpc", 
         | 
| 9213 | 
            +
                #         public_ip: "198.51.100.0", 
         | 
| 9214 | 
            +
                #       }, 
         | 
| 9215 | 
            +
                #     ], 
         | 
| 9216 | 
            +
                #   }
         | 
| 9217 | 
            +
                #
         | 
| 7928 9218 | 
             
                # @example Request syntax with placeholder values
         | 
| 7929 9219 | 
             
                #
         | 
| 7930 9220 | 
             
                #   resp = client.describe_moving_addresses({
         | 
| @@ -7989,6 +9279,43 @@ module Aws::EC2 | |
| 7989 9279 | 
             
                #   * {Types::DescribeNatGatewaysResult#nat_gateways #nat_gateways} => Array<Types::NatGateway>
         | 
| 7990 9280 | 
             
                #   * {Types::DescribeNatGatewaysResult#next_token #next_token} => String
         | 
| 7991 9281 | 
             
                #
         | 
| 9282 | 
            +
                #
         | 
| 9283 | 
            +
                # @example Example: To describe a NAT gateway
         | 
| 9284 | 
            +
                #
         | 
| 9285 | 
            +
                #   # This example describes the NAT gateway for the specified VPC.
         | 
| 9286 | 
            +
                #
         | 
| 9287 | 
            +
                #   resp = client.describe_nat_gateways({
         | 
| 9288 | 
            +
                #     filter: [
         | 
| 9289 | 
            +
                #       {
         | 
| 9290 | 
            +
                #         name: "vpc-id", 
         | 
| 9291 | 
            +
                #         values: [
         | 
| 9292 | 
            +
                #           "vpc-1a2b3c4d", 
         | 
| 9293 | 
            +
                #         ], 
         | 
| 9294 | 
            +
                #       }, 
         | 
| 9295 | 
            +
                #     ], 
         | 
| 9296 | 
            +
                #   })
         | 
| 9297 | 
            +
                #
         | 
| 9298 | 
            +
                #   resp.to_h outputs the following:
         | 
| 9299 | 
            +
                #   {
         | 
| 9300 | 
            +
                #     nat_gateways: [
         | 
| 9301 | 
            +
                #       {
         | 
| 9302 | 
            +
                #         create_time: Time.parse("2015-12-01T12:26:55.983Z"), 
         | 
| 9303 | 
            +
                #         nat_gateway_addresses: [
         | 
| 9304 | 
            +
                #           {
         | 
| 9305 | 
            +
                #             allocation_id: "eipalloc-89c620ec", 
         | 
| 9306 | 
            +
                #             network_interface_id: "eni-9dec76cd", 
         | 
| 9307 | 
            +
                #             private_ip: "10.0.0.149", 
         | 
| 9308 | 
            +
                #             public_ip: "198.11.222.333", 
         | 
| 9309 | 
            +
                #           }, 
         | 
| 9310 | 
            +
                #         ], 
         | 
| 9311 | 
            +
                #         nat_gateway_id: "nat-05dba92075d71c408", 
         | 
| 9312 | 
            +
                #         state: "available", 
         | 
| 9313 | 
            +
                #         subnet_id: "subnet-847e4dc2", 
         | 
| 9314 | 
            +
                #         vpc_id: "vpc-1a2b3c4d", 
         | 
| 9315 | 
            +
                #       }, 
         | 
| 9316 | 
            +
                #     ], 
         | 
| 9317 | 
            +
                #   }
         | 
| 9318 | 
            +
                #
         | 
| 7992 9319 | 
             
                # @example Request syntax with placeholder values
         | 
| 7993 9320 | 
             
                #
         | 
| 7994 9321 | 
             
                #   resp = client.describe_nat_gateways({
         | 
| @@ -8121,6 +9448,53 @@ module Aws::EC2 | |
| 8121 9448 | 
             
                #
         | 
| 8122 9449 | 
             
                #   * {Types::DescribeNetworkAclsResult#network_acls #network_acls} => Array<Types::NetworkAcl>
         | 
| 8123 9450 | 
             
                #
         | 
| 9451 | 
            +
                #
         | 
| 9452 | 
            +
                # @example Example: To describe a network ACL
         | 
| 9453 | 
            +
                #
         | 
| 9454 | 
            +
                #   # This example describes the specified network ACL.
         | 
| 9455 | 
            +
                #
         | 
| 9456 | 
            +
                #   resp = client.describe_network_acls({
         | 
| 9457 | 
            +
                #     network_acl_ids: [
         | 
| 9458 | 
            +
                #       "acl-5fb85d36", 
         | 
| 9459 | 
            +
                #     ], 
         | 
| 9460 | 
            +
                #   })
         | 
| 9461 | 
            +
                #
         | 
| 9462 | 
            +
                #   resp.to_h outputs the following:
         | 
| 9463 | 
            +
                #   {
         | 
| 9464 | 
            +
                #     network_acls: [
         | 
| 9465 | 
            +
                #       {
         | 
| 9466 | 
            +
                #         associations: [
         | 
| 9467 | 
            +
                #           {
         | 
| 9468 | 
            +
                #             network_acl_association_id: "aclassoc-66ea5f0b", 
         | 
| 9469 | 
            +
                #             network_acl_id: "acl-9aeb5ef7", 
         | 
| 9470 | 
            +
                #             subnet_id: "subnet-65ea5f08", 
         | 
| 9471 | 
            +
                #           }, 
         | 
| 9472 | 
            +
                #         ], 
         | 
| 9473 | 
            +
                #         entries: [
         | 
| 9474 | 
            +
                #           {
         | 
| 9475 | 
            +
                #             cidr_block: "0.0.0.0/0", 
         | 
| 9476 | 
            +
                #             egress: true, 
         | 
| 9477 | 
            +
                #             protocol: "-1", 
         | 
| 9478 | 
            +
                #             rule_action: "deny", 
         | 
| 9479 | 
            +
                #             rule_number: 32767, 
         | 
| 9480 | 
            +
                #           }, 
         | 
| 9481 | 
            +
                #           {
         | 
| 9482 | 
            +
                #             cidr_block: "0.0.0.0/0", 
         | 
| 9483 | 
            +
                #             egress: false, 
         | 
| 9484 | 
            +
                #             protocol: "-1", 
         | 
| 9485 | 
            +
                #             rule_action: "deny", 
         | 
| 9486 | 
            +
                #             rule_number: 32767, 
         | 
| 9487 | 
            +
                #           }, 
         | 
| 9488 | 
            +
                #         ], 
         | 
| 9489 | 
            +
                #         is_default: false, 
         | 
| 9490 | 
            +
                #         network_acl_id: "acl-5fb85d36", 
         | 
| 9491 | 
            +
                #         tags: [
         | 
| 9492 | 
            +
                #         ], 
         | 
| 9493 | 
            +
                #         vpc_id: "vpc-a01106c2", 
         | 
| 9494 | 
            +
                #       }, 
         | 
| 9495 | 
            +
                #     ], 
         | 
| 9496 | 
            +
                #   }
         | 
| 9497 | 
            +
                #
         | 
| 8124 9498 | 
             
                # @example Request syntax with placeholder values
         | 
| 8125 9499 | 
             
                #
         | 
| 8126 9500 | 
             
                #   resp = client.describe_network_acls({
         | 
| @@ -8191,6 +9565,84 @@ module Aws::EC2 | |
| 8191 9565 | 
             
                #   * {Types::DescribeNetworkInterfaceAttributeResult#network_interface_id #network_interface_id} => String
         | 
| 8192 9566 | 
             
                #   * {Types::DescribeNetworkInterfaceAttributeResult#source_dest_check #source_dest_check} => Types::AttributeBooleanValue
         | 
| 8193 9567 | 
             
                #
         | 
| 9568 | 
            +
                #
         | 
| 9569 | 
            +
                # @example Example: To describe the attachment attribute of a network interface
         | 
| 9570 | 
            +
                #
         | 
| 9571 | 
            +
                #   # This example describes the attachment attribute of the specified network interface.
         | 
| 9572 | 
            +
                #
         | 
| 9573 | 
            +
                #   resp = client.describe_network_interface_attribute({
         | 
| 9574 | 
            +
                #     attribute: "attachment", 
         | 
| 9575 | 
            +
                #     network_interface_id: "eni-686ea200", 
         | 
| 9576 | 
            +
                #   })
         | 
| 9577 | 
            +
                #
         | 
| 9578 | 
            +
                #   resp.to_h outputs the following:
         | 
| 9579 | 
            +
                #   {
         | 
| 9580 | 
            +
                #     attachment: {
         | 
| 9581 | 
            +
                #       attach_time: Time.parse("2015-05-21T20:02:20.000Z"), 
         | 
| 9582 | 
            +
                #       attachment_id: "eni-attach-43348162", 
         | 
| 9583 | 
            +
                #       delete_on_termination: true, 
         | 
| 9584 | 
            +
                #       device_index: 0, 
         | 
| 9585 | 
            +
                #       instance_id: "i-1234567890abcdef0", 
         | 
| 9586 | 
            +
                #       instance_owner_id: "123456789012", 
         | 
| 9587 | 
            +
                #       status: "attached", 
         | 
| 9588 | 
            +
                #     }, 
         | 
| 9589 | 
            +
                #     network_interface_id: "eni-686ea200", 
         | 
| 9590 | 
            +
                #   }
         | 
| 9591 | 
            +
                #
         | 
| 9592 | 
            +
                # @example Example: To describe the description attribute of a network interface
         | 
| 9593 | 
            +
                #
         | 
| 9594 | 
            +
                #   # This example describes the description attribute of the specified network interface.
         | 
| 9595 | 
            +
                #
         | 
| 9596 | 
            +
                #   resp = client.describe_network_interface_attribute({
         | 
| 9597 | 
            +
                #     attribute: "description", 
         | 
| 9598 | 
            +
                #     network_interface_id: "eni-686ea200", 
         | 
| 9599 | 
            +
                #   })
         | 
| 9600 | 
            +
                #
         | 
| 9601 | 
            +
                #   resp.to_h outputs the following:
         | 
| 9602 | 
            +
                #   {
         | 
| 9603 | 
            +
                #     description: {
         | 
| 9604 | 
            +
                #       value: "My description", 
         | 
| 9605 | 
            +
                #     }, 
         | 
| 9606 | 
            +
                #     network_interface_id: "eni-686ea200", 
         | 
| 9607 | 
            +
                #   }
         | 
| 9608 | 
            +
                #
         | 
| 9609 | 
            +
                # @example Example: To describe the groupSet attribute of a network interface
         | 
| 9610 | 
            +
                #
         | 
| 9611 | 
            +
                #   # This example describes the groupSet attribute of the specified network interface.
         | 
| 9612 | 
            +
                #
         | 
| 9613 | 
            +
                #   resp = client.describe_network_interface_attribute({
         | 
| 9614 | 
            +
                #     attribute: "groupSet", 
         | 
| 9615 | 
            +
                #     network_interface_id: "eni-686ea200", 
         | 
| 9616 | 
            +
                #   })
         | 
| 9617 | 
            +
                #
         | 
| 9618 | 
            +
                #   resp.to_h outputs the following:
         | 
| 9619 | 
            +
                #   {
         | 
| 9620 | 
            +
                #     groups: [
         | 
| 9621 | 
            +
                #       {
         | 
| 9622 | 
            +
                #         group_id: "sg-903004f8", 
         | 
| 9623 | 
            +
                #         group_name: "my-security-group", 
         | 
| 9624 | 
            +
                #       }, 
         | 
| 9625 | 
            +
                #     ], 
         | 
| 9626 | 
            +
                #     network_interface_id: "eni-686ea200", 
         | 
| 9627 | 
            +
                #   }
         | 
| 9628 | 
            +
                #
         | 
| 9629 | 
            +
                # @example Example: To describe the sourceDestCheck attribute of a network interface
         | 
| 9630 | 
            +
                #
         | 
| 9631 | 
            +
                #   # This example describes the sourceDestCheck attribute of the specified network interface.
         | 
| 9632 | 
            +
                #
         | 
| 9633 | 
            +
                #   resp = client.describe_network_interface_attribute({
         | 
| 9634 | 
            +
                #     attribute: "sourceDestCheck", 
         | 
| 9635 | 
            +
                #     network_interface_id: "eni-686ea200", 
         | 
| 9636 | 
            +
                #   })
         | 
| 9637 | 
            +
                #
         | 
| 9638 | 
            +
                #   resp.to_h outputs the following:
         | 
| 9639 | 
            +
                #   {
         | 
| 9640 | 
            +
                #     network_interface_id: "eni-686ea200", 
         | 
| 9641 | 
            +
                #     source_dest_check: {
         | 
| 9642 | 
            +
                #       value: true, 
         | 
| 9643 | 
            +
                #     }, 
         | 
| 9644 | 
            +
                #   }
         | 
| 9645 | 
            +
                #
         | 
| 8194 9646 | 
             
                # @example Request syntax with placeholder values
         | 
| 8195 9647 | 
             
                #
         | 
| 8196 9648 | 
             
                #   resp = client.describe_network_interface_attribute({
         | 
| @@ -8361,6 +9813,73 @@ module Aws::EC2 | |
| 8361 9813 | 
             
                #
         | 
| 8362 9814 | 
             
                #   * {Types::DescribeNetworkInterfacesResult#network_interfaces #network_interfaces} => Array<Types::NetworkInterface>
         | 
| 8363 9815 | 
             
                #
         | 
| 9816 | 
            +
                #
         | 
| 9817 | 
            +
                # @example Example: To describe a network interface
         | 
| 9818 | 
            +
                #
         | 
| 9819 | 
            +
                #   # 
         | 
| 9820 | 
            +
                #
         | 
| 9821 | 
            +
                #   resp = client.describe_network_interfaces({
         | 
| 9822 | 
            +
                #     network_interface_ids: [
         | 
| 9823 | 
            +
                #       "eni-e5aa89a3", 
         | 
| 9824 | 
            +
                #     ], 
         | 
| 9825 | 
            +
                #   })
         | 
| 9826 | 
            +
                #
         | 
| 9827 | 
            +
                #   resp.to_h outputs the following:
         | 
| 9828 | 
            +
                #   {
         | 
| 9829 | 
            +
                #     network_interfaces: [
         | 
| 9830 | 
            +
                #       {
         | 
| 9831 | 
            +
                #         association: {
         | 
| 9832 | 
            +
                #           association_id: "eipassoc-0fbb766a", 
         | 
| 9833 | 
            +
                #           ip_owner_id: "123456789012", 
         | 
| 9834 | 
            +
                #           public_dns_name: "ec2-203-0-113-12.compute-1.amazonaws.com", 
         | 
| 9835 | 
            +
                #           public_ip: "203.0.113.12", 
         | 
| 9836 | 
            +
                #         }, 
         | 
| 9837 | 
            +
                #         attachment: {
         | 
| 9838 | 
            +
                #           attach_time: Time.parse("2013-11-30T23:36:42.000Z"), 
         | 
| 9839 | 
            +
                #           attachment_id: "eni-attach-66c4350a", 
         | 
| 9840 | 
            +
                #           delete_on_termination: false, 
         | 
| 9841 | 
            +
                #           device_index: 1, 
         | 
| 9842 | 
            +
                #           instance_id: "i-1234567890abcdef0", 
         | 
| 9843 | 
            +
                #           instance_owner_id: "123456789012", 
         | 
| 9844 | 
            +
                #           status: "attached", 
         | 
| 9845 | 
            +
                #         }, 
         | 
| 9846 | 
            +
                #         availability_zone: "us-east-1d", 
         | 
| 9847 | 
            +
                #         description: "my network interface", 
         | 
| 9848 | 
            +
                #         groups: [
         | 
| 9849 | 
            +
                #           {
         | 
| 9850 | 
            +
                #             group_id: "sg-8637d3e3", 
         | 
| 9851 | 
            +
                #             group_name: "default", 
         | 
| 9852 | 
            +
                #           }, 
         | 
| 9853 | 
            +
                #         ], 
         | 
| 9854 | 
            +
                #         mac_address: "02:2f:8f:b0:cf:75", 
         | 
| 9855 | 
            +
                #         network_interface_id: "eni-e5aa89a3", 
         | 
| 9856 | 
            +
                #         owner_id: "123456789012", 
         | 
| 9857 | 
            +
                #         private_dns_name: "ip-10-0-1-17.ec2.internal", 
         | 
| 9858 | 
            +
                #         private_ip_address: "10.0.1.17", 
         | 
| 9859 | 
            +
                #         private_ip_addresses: [
         | 
| 9860 | 
            +
                #           {
         | 
| 9861 | 
            +
                #             association: {
         | 
| 9862 | 
            +
                #               association_id: "eipassoc-0fbb766a", 
         | 
| 9863 | 
            +
                #               ip_owner_id: "123456789012", 
         | 
| 9864 | 
            +
                #               public_dns_name: "ec2-203-0-113-12.compute-1.amazonaws.com", 
         | 
| 9865 | 
            +
                #               public_ip: "203.0.113.12", 
         | 
| 9866 | 
            +
                #             }, 
         | 
| 9867 | 
            +
                #             primary: true, 
         | 
| 9868 | 
            +
                #             private_dns_name: "ip-10-0-1-17.ec2.internal", 
         | 
| 9869 | 
            +
                #             private_ip_address: "10.0.1.17", 
         | 
| 9870 | 
            +
                #           }, 
         | 
| 9871 | 
            +
                #         ], 
         | 
| 9872 | 
            +
                #         requester_managed: false, 
         | 
| 9873 | 
            +
                #         source_dest_check: true, 
         | 
| 9874 | 
            +
                #         status: "in-use", 
         | 
| 9875 | 
            +
                #         subnet_id: "subnet-b61f49f0", 
         | 
| 9876 | 
            +
                #         tag_set: [
         | 
| 9877 | 
            +
                #         ], 
         | 
| 9878 | 
            +
                #         vpc_id: "vpc-a01106c2", 
         | 
| 9879 | 
            +
                #       }, 
         | 
| 9880 | 
            +
                #     ], 
         | 
| 9881 | 
            +
                #   }
         | 
| 9882 | 
            +
                #
         | 
| 8364 9883 | 
             
                # @example Request syntax with placeholder values
         | 
| 8365 9884 | 
             
                #
         | 
| 8366 9885 | 
             
                #   resp = client.describe_network_interfaces({
         | 
| @@ -8591,9 +10110,67 @@ module Aws::EC2 | |
| 8591 10110 | 
             
                #   If you have the required permissions, the error response is
         | 
| 8592 10111 | 
             
                #   `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
         | 
| 8593 10112 | 
             
                #
         | 
| 8594 | 
            -
                # @return [Types::DescribeRegionsResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
         | 
| 10113 | 
            +
                # @return [Types::DescribeRegionsResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
         | 
| 10114 | 
            +
                #
         | 
| 10115 | 
            +
                #   * {Types::DescribeRegionsResult#regions #regions} => Array<Types::Region>
         | 
| 10116 | 
            +
                #
         | 
| 10117 | 
            +
                #
         | 
| 10118 | 
            +
                # @example Example: To describe your regions
         | 
| 8595 10119 | 
             
                #
         | 
| 8596 | 
            -
                #    | 
| 10120 | 
            +
                #   # This example describes all the regions that are available to you.
         | 
| 10121 | 
            +
                #
         | 
| 10122 | 
            +
                #   resp = client.describe_regions({
         | 
| 10123 | 
            +
                #   })
         | 
| 10124 | 
            +
                #
         | 
| 10125 | 
            +
                #   resp.to_h outputs the following:
         | 
| 10126 | 
            +
                #   {
         | 
| 10127 | 
            +
                #     regions: [
         | 
| 10128 | 
            +
                #       {
         | 
| 10129 | 
            +
                #         endpoint: "ec2.ap-south-1.amazonaws.com", 
         | 
| 10130 | 
            +
                #         region_name: "ap-south-1", 
         | 
| 10131 | 
            +
                #       }, 
         | 
| 10132 | 
            +
                #       {
         | 
| 10133 | 
            +
                #         endpoint: "ec2.eu-west-1.amazonaws.com", 
         | 
| 10134 | 
            +
                #         region_name: "eu-west-1", 
         | 
| 10135 | 
            +
                #       }, 
         | 
| 10136 | 
            +
                #       {
         | 
| 10137 | 
            +
                #         endpoint: "ec2.ap-southeast-1.amazonaws.com", 
         | 
| 10138 | 
            +
                #         region_name: "ap-southeast-1", 
         | 
| 10139 | 
            +
                #       }, 
         | 
| 10140 | 
            +
                #       {
         | 
| 10141 | 
            +
                #         endpoint: "ec2.ap-southeast-2.amazonaws.com", 
         | 
| 10142 | 
            +
                #         region_name: "ap-southeast-2", 
         | 
| 10143 | 
            +
                #       }, 
         | 
| 10144 | 
            +
                #       {
         | 
| 10145 | 
            +
                #         endpoint: "ec2.eu-central-1.amazonaws.com", 
         | 
| 10146 | 
            +
                #         region_name: "eu-central-1", 
         | 
| 10147 | 
            +
                #       }, 
         | 
| 10148 | 
            +
                #       {
         | 
| 10149 | 
            +
                #         endpoint: "ec2.ap-northeast-2.amazonaws.com", 
         | 
| 10150 | 
            +
                #         region_name: "ap-northeast-2", 
         | 
| 10151 | 
            +
                #       }, 
         | 
| 10152 | 
            +
                #       {
         | 
| 10153 | 
            +
                #         endpoint: "ec2.ap-northeast-1.amazonaws.com", 
         | 
| 10154 | 
            +
                #         region_name: "ap-northeast-1", 
         | 
| 10155 | 
            +
                #       }, 
         | 
| 10156 | 
            +
                #       {
         | 
| 10157 | 
            +
                #         endpoint: "ec2.us-east-1.amazonaws.com", 
         | 
| 10158 | 
            +
                #         region_name: "us-east-1", 
         | 
| 10159 | 
            +
                #       }, 
         | 
| 10160 | 
            +
                #       {
         | 
| 10161 | 
            +
                #         endpoint: "ec2.sa-east-1.amazonaws.com", 
         | 
| 10162 | 
            +
                #         region_name: "sa-east-1", 
         | 
| 10163 | 
            +
                #       }, 
         | 
| 10164 | 
            +
                #       {
         | 
| 10165 | 
            +
                #         endpoint: "ec2.us-west-1.amazonaws.com", 
         | 
| 10166 | 
            +
                #         region_name: "us-west-1", 
         | 
| 10167 | 
            +
                #       }, 
         | 
| 10168 | 
            +
                #       {
         | 
| 10169 | 
            +
                #         endpoint: "ec2.us-west-2.amazonaws.com", 
         | 
| 10170 | 
            +
                #         region_name: "us-west-2", 
         | 
| 10171 | 
            +
                #       }, 
         | 
| 10172 | 
            +
                #     ], 
         | 
| 10173 | 
            +
                #   }
         | 
| 8597 10174 | 
             
                #
         | 
| 8598 10175 | 
             
                # @example Request syntax with placeholder values
         | 
| 8599 10176 | 
             
                #
         | 
| @@ -9267,6 +10844,45 @@ module Aws::EC2 | |
| 9267 10844 | 
             
                #
         | 
| 9268 10845 | 
             
                #   * {Types::DescribeRouteTablesResult#route_tables #route_tables} => Array<Types::RouteTable>
         | 
| 9269 10846 | 
             
                #
         | 
| 10847 | 
            +
                #
         | 
| 10848 | 
            +
                # @example Example: To describe a route table
         | 
| 10849 | 
            +
                #
         | 
| 10850 | 
            +
                #   # This example describes the specified route table.
         | 
| 10851 | 
            +
                #
         | 
| 10852 | 
            +
                #   resp = client.describe_route_tables({
         | 
| 10853 | 
            +
                #     route_table_ids: [
         | 
| 10854 | 
            +
                #       "rtb-1f382e7d", 
         | 
| 10855 | 
            +
                #     ], 
         | 
| 10856 | 
            +
                #   })
         | 
| 10857 | 
            +
                #
         | 
| 10858 | 
            +
                #   resp.to_h outputs the following:
         | 
| 10859 | 
            +
                #   {
         | 
| 10860 | 
            +
                #     route_tables: [
         | 
| 10861 | 
            +
                #       {
         | 
| 10862 | 
            +
                #         associations: [
         | 
| 10863 | 
            +
                #           {
         | 
| 10864 | 
            +
                #             main: true, 
         | 
| 10865 | 
            +
                #             route_table_association_id: "rtbassoc-d8ccddba", 
         | 
| 10866 | 
            +
                #             route_table_id: "rtb-1f382e7d", 
         | 
| 10867 | 
            +
                #           }, 
         | 
| 10868 | 
            +
                #         ], 
         | 
| 10869 | 
            +
                #         propagating_vgws: [
         | 
| 10870 | 
            +
                #         ], 
         | 
| 10871 | 
            +
                #         route_table_id: "rtb-1f382e7d", 
         | 
| 10872 | 
            +
                #         routes: [
         | 
| 10873 | 
            +
                #           {
         | 
| 10874 | 
            +
                #             destination_cidr_block: "10.0.0.0/16", 
         | 
| 10875 | 
            +
                #             gateway_id: "local", 
         | 
| 10876 | 
            +
                #             state: "active", 
         | 
| 10877 | 
            +
                #           }, 
         | 
| 10878 | 
            +
                #         ], 
         | 
| 10879 | 
            +
                #         tags: [
         | 
| 10880 | 
            +
                #         ], 
         | 
| 10881 | 
            +
                #         vpc_id: "vpc-a01106c2", 
         | 
| 10882 | 
            +
                #       }, 
         | 
| 10883 | 
            +
                #     ], 
         | 
| 10884 | 
            +
                #   }
         | 
| 10885 | 
            +
                #
         | 
| 9270 10886 | 
             
                # @example Request syntax with placeholder values
         | 
| 9271 10887 | 
             
                #
         | 
| 9272 10888 | 
             
                #   resp = client.describe_route_tables({
         | 
| @@ -9379,6 +10995,53 @@ module Aws::EC2 | |
| 9379 10995 | 
             
                #   * {Types::DescribeScheduledInstanceAvailabilityResult#next_token #next_token} => String
         | 
| 9380 10996 | 
             
                #   * {Types::DescribeScheduledInstanceAvailabilityResult#scheduled_instance_availability_set #scheduled_instance_availability_set} => Array<Types::ScheduledInstanceAvailability>
         | 
| 9381 10997 | 
             
                #
         | 
| 10998 | 
            +
                #
         | 
| 10999 | 
            +
                # @example Example: To describe an available schedule
         | 
| 11000 | 
            +
                #
         | 
| 11001 | 
            +
                #   # This example describes a schedule that occurs every week on Sunday, starting on the specified date. Note that the output contains a single schedule as an example.
         | 
| 11002 | 
            +
                #
         | 
| 11003 | 
            +
                #   resp = client.describe_scheduled_instance_availability({
         | 
| 11004 | 
            +
                #     first_slot_start_time_range: {
         | 
| 11005 | 
            +
                #       earliest_time: Time.parse("2016-01-31T00:00:00Z"), 
         | 
| 11006 | 
            +
                #       latest_time: Time.parse("2016-01-31T04:00:00Z"), 
         | 
| 11007 | 
            +
                #     }, 
         | 
| 11008 | 
            +
                #     recurrence: {
         | 
| 11009 | 
            +
                #       frequency: "Weekly", 
         | 
| 11010 | 
            +
                #       interval: 1, 
         | 
| 11011 | 
            +
                #       occurrence_days: [
         | 
| 11012 | 
            +
                #         1, 
         | 
| 11013 | 
            +
                #       ], 
         | 
| 11014 | 
            +
                #     }, 
         | 
| 11015 | 
            +
                #   })
         | 
| 11016 | 
            +
                #
         | 
| 11017 | 
            +
                #   resp.to_h outputs the following:
         | 
| 11018 | 
            +
                #   {
         | 
| 11019 | 
            +
                #     scheduled_instance_availability_set: [
         | 
| 11020 | 
            +
                #       {
         | 
| 11021 | 
            +
                #         availability_zone: "us-west-2b", 
         | 
| 11022 | 
            +
                #         available_instance_count: 20, 
         | 
| 11023 | 
            +
                #         first_slot_start_time: Time.parse("2016-01-31T00:00:00Z"), 
         | 
| 11024 | 
            +
                #         hourly_price: "0.095", 
         | 
| 11025 | 
            +
                #         instance_type: "c4.large", 
         | 
| 11026 | 
            +
                #         max_term_duration_in_days: 366, 
         | 
| 11027 | 
            +
                #         min_term_duration_in_days: 366, 
         | 
| 11028 | 
            +
                #         network_platform: "EC2-VPC", 
         | 
| 11029 | 
            +
                #         platform: "Linux/UNIX", 
         | 
| 11030 | 
            +
                #         purchase_token: "eyJ2IjoiMSIsInMiOjEsImMiOi...", 
         | 
| 11031 | 
            +
                #         recurrence: {
         | 
| 11032 | 
            +
                #           frequency: "Weekly", 
         | 
| 11033 | 
            +
                #           interval: 1, 
         | 
| 11034 | 
            +
                #           occurrence_day_set: [
         | 
| 11035 | 
            +
                #             1, 
         | 
| 11036 | 
            +
                #           ], 
         | 
| 11037 | 
            +
                #           occurrence_relative_to_end: false, 
         | 
| 11038 | 
            +
                #         }, 
         | 
| 11039 | 
            +
                #         slot_duration_in_hours: 23, 
         | 
| 11040 | 
            +
                #         total_scheduled_instance_hours: 1219, 
         | 
| 11041 | 
            +
                #       }, 
         | 
| 11042 | 
            +
                #     ], 
         | 
| 11043 | 
            +
                #   }
         | 
| 11044 | 
            +
                #
         | 
| 9382 11045 | 
             
                # @example Request syntax with placeholder values
         | 
| 9383 11046 | 
             
                #
         | 
| 9384 11047 | 
             
                #   resp = client.describe_scheduled_instance_availability({
         | 
| @@ -9479,6 +11142,47 @@ module Aws::EC2 | |
| 9479 11142 | 
             
                #   * {Types::DescribeScheduledInstancesResult#next_token #next_token} => String
         | 
| 9480 11143 | 
             
                #   * {Types::DescribeScheduledInstancesResult#scheduled_instance_set #scheduled_instance_set} => Array<Types::ScheduledInstance>
         | 
| 9481 11144 | 
             
                #
         | 
| 11145 | 
            +
                #
         | 
| 11146 | 
            +
                # @example Example: To describe your Scheduled Instances
         | 
| 11147 | 
            +
                #
         | 
| 11148 | 
            +
                #   # This example describes the specified Scheduled Instance.
         | 
| 11149 | 
            +
                #
         | 
| 11150 | 
            +
                #   resp = client.describe_scheduled_instances({
         | 
| 11151 | 
            +
                #     scheduled_instance_ids: [
         | 
| 11152 | 
            +
                #       "sci-1234-1234-1234-1234-123456789012", 
         | 
| 11153 | 
            +
                #     ], 
         | 
| 11154 | 
            +
                #   })
         | 
| 11155 | 
            +
                #
         | 
| 11156 | 
            +
                #   resp.to_h outputs the following:
         | 
| 11157 | 
            +
                #   {
         | 
| 11158 | 
            +
                #     scheduled_instance_set: [
         | 
| 11159 | 
            +
                #       {
         | 
| 11160 | 
            +
                #         availability_zone: "us-west-2b", 
         | 
| 11161 | 
            +
                #         create_date: Time.parse("2016-01-25T21:43:38.612Z"), 
         | 
| 11162 | 
            +
                #         hourly_price: "0.095", 
         | 
| 11163 | 
            +
                #         instance_count: 1, 
         | 
| 11164 | 
            +
                #         instance_type: "c4.large", 
         | 
| 11165 | 
            +
                #         network_platform: "EC2-VPC", 
         | 
| 11166 | 
            +
                #         next_slot_start_time: Time.parse("2016-01-31T09:00:00Z"), 
         | 
| 11167 | 
            +
                #         platform: "Linux/UNIX", 
         | 
| 11168 | 
            +
                #         recurrence: {
         | 
| 11169 | 
            +
                #           frequency: "Weekly", 
         | 
| 11170 | 
            +
                #           interval: 1, 
         | 
| 11171 | 
            +
                #           occurrence_day_set: [
         | 
| 11172 | 
            +
                #             1, 
         | 
| 11173 | 
            +
                #           ], 
         | 
| 11174 | 
            +
                #           occurrence_relative_to_end: false, 
         | 
| 11175 | 
            +
                #           occurrence_unit: "", 
         | 
| 11176 | 
            +
                #         }, 
         | 
| 11177 | 
            +
                #         scheduled_instance_id: "sci-1234-1234-1234-1234-123456789012", 
         | 
| 11178 | 
            +
                #         slot_duration_in_hours: 32, 
         | 
| 11179 | 
            +
                #         term_end_date: Time.parse("2017-01-31T09:00:00Z"), 
         | 
| 11180 | 
            +
                #         term_start_date: Time.parse("2016-01-31T09:00:00Z"), 
         | 
| 11181 | 
            +
                #         total_scheduled_instance_hours: 1696, 
         | 
| 11182 | 
            +
                #       }, 
         | 
| 11183 | 
            +
                #     ], 
         | 
| 11184 | 
            +
                #   }
         | 
| 11185 | 
            +
                #
         | 
| 9482 11186 | 
             
                # @example Request syntax with placeholder values
         | 
| 9483 11187 | 
             
                #
         | 
| 9484 11188 | 
             
                #   resp = client.describe_scheduled_instances({
         | 
| @@ -9753,6 +11457,23 @@ module Aws::EC2 | |
| 9753 11457 | 
             
                #   * {Types::DescribeSnapshotAttributeResult#product_codes #product_codes} => Array<Types::ProductCode>
         | 
| 9754 11458 | 
             
                #   * {Types::DescribeSnapshotAttributeResult#snapshot_id #snapshot_id} => String
         | 
| 9755 11459 | 
             
                #
         | 
| 11460 | 
            +
                #
         | 
| 11461 | 
            +
                # @example Example: To describe snapshot attributes
         | 
| 11462 | 
            +
                #
         | 
| 11463 | 
            +
                #   # This example describes the ``createVolumePermission`` attribute on a snapshot with the snapshot ID of ``snap-066877671789bd71b``.
         | 
| 11464 | 
            +
                #
         | 
| 11465 | 
            +
                #   resp = client.describe_snapshot_attribute({
         | 
| 11466 | 
            +
                #     attribute: "createVolumePermission", 
         | 
| 11467 | 
            +
                #     snapshot_id: "snap-066877671789bd71b", 
         | 
| 11468 | 
            +
                #   })
         | 
| 11469 | 
            +
                #
         | 
| 11470 | 
            +
                #   resp.to_h outputs the following:
         | 
| 11471 | 
            +
                #   {
         | 
| 11472 | 
            +
                #     create_volume_permissions: [
         | 
| 11473 | 
            +
                #     ], 
         | 
| 11474 | 
            +
                #     snapshot_id: "snap-066877671789bd71b", 
         | 
| 11475 | 
            +
                #   }
         | 
| 11476 | 
            +
                #
         | 
| 9756 11477 | 
             
                # @example Request syntax with placeholder values
         | 
| 9757 11478 | 
             
                #
         | 
| 9758 11479 | 
             
                #   resp = client.describe_snapshot_attribute({
         | 
| @@ -9920,6 +11641,69 @@ module Aws::EC2 | |
| 9920 11641 | 
             
                #   * {Types::DescribeSnapshotsResult#snapshots #snapshots} => Array<Types::Snapshot>
         | 
| 9921 11642 | 
             
                #   * {Types::DescribeSnapshotsResult#next_token #next_token} => String
         | 
| 9922 11643 | 
             
                #
         | 
| 11644 | 
            +
                #
         | 
| 11645 | 
            +
                # @example Example: To describe a snapshot
         | 
| 11646 | 
            +
                #
         | 
| 11647 | 
            +
                #   # This example describes a snapshot with the snapshot ID of ``snap-1234567890abcdef0``.
         | 
| 11648 | 
            +
                #
         | 
| 11649 | 
            +
                #   resp = client.describe_snapshots({
         | 
| 11650 | 
            +
                #     snapshot_ids: [
         | 
| 11651 | 
            +
                #       "snap-1234567890abcdef0", 
         | 
| 11652 | 
            +
                #     ], 
         | 
| 11653 | 
            +
                #   })
         | 
| 11654 | 
            +
                #
         | 
| 11655 | 
            +
                #   resp.to_h outputs the following:
         | 
| 11656 | 
            +
                #   {
         | 
| 11657 | 
            +
                #     next_token: "", 
         | 
| 11658 | 
            +
                #     snapshots: [
         | 
| 11659 | 
            +
                #       {
         | 
| 11660 | 
            +
                #         description: "This is my snapshot.", 
         | 
| 11661 | 
            +
                #         owner_id: "012345678910", 
         | 
| 11662 | 
            +
                #         progress: "100%", 
         | 
| 11663 | 
            +
                #         snapshot_id: "snap-1234567890abcdef0", 
         | 
| 11664 | 
            +
                #         start_time: Time.parse("2014-02-28T21:28:32.000Z"), 
         | 
| 11665 | 
            +
                #         state: "completed", 
         | 
| 11666 | 
            +
                #         volume_id: "vol-049df61146c4d7901", 
         | 
| 11667 | 
            +
                #         volume_size: 8, 
         | 
| 11668 | 
            +
                #       }, 
         | 
| 11669 | 
            +
                #     ], 
         | 
| 11670 | 
            +
                #   }
         | 
| 11671 | 
            +
                #
         | 
| 11672 | 
            +
                # @example Example: To describe snapshots using filters
         | 
| 11673 | 
            +
                #
         | 
| 11674 | 
            +
                #   # This example describes all snapshots owned by the ID 012345678910 that are in the ``pending`` status.
         | 
| 11675 | 
            +
                #
         | 
| 11676 | 
            +
                #   resp = client.describe_snapshots({
         | 
| 11677 | 
            +
                #     filters: [
         | 
| 11678 | 
            +
                #       {
         | 
| 11679 | 
            +
                #         name: "status", 
         | 
| 11680 | 
            +
                #         values: [
         | 
| 11681 | 
            +
                #           "pending", 
         | 
| 11682 | 
            +
                #         ], 
         | 
| 11683 | 
            +
                #       }, 
         | 
| 11684 | 
            +
                #     ], 
         | 
| 11685 | 
            +
                #     owner_ids: [
         | 
| 11686 | 
            +
                #       "012345678910", 
         | 
| 11687 | 
            +
                #     ], 
         | 
| 11688 | 
            +
                #   })
         | 
| 11689 | 
            +
                #
         | 
| 11690 | 
            +
                #   resp.to_h outputs the following:
         | 
| 11691 | 
            +
                #   {
         | 
| 11692 | 
            +
                #     next_token: "", 
         | 
| 11693 | 
            +
                #     snapshots: [
         | 
| 11694 | 
            +
                #       {
         | 
| 11695 | 
            +
                #         description: "This is my copied snapshot.", 
         | 
| 11696 | 
            +
                #         owner_id: "012345678910", 
         | 
| 11697 | 
            +
                #         progress: "87%", 
         | 
| 11698 | 
            +
                #         snapshot_id: "snap-066877671789bd71b", 
         | 
| 11699 | 
            +
                #         start_time: Time.parse("2014-02-28T21:37:27.000Z"), 
         | 
| 11700 | 
            +
                #         state: "pending", 
         | 
| 11701 | 
            +
                #         volume_id: "vol-1234567890abcdef0", 
         | 
| 11702 | 
            +
                #         volume_size: 8, 
         | 
| 11703 | 
            +
                #       }, 
         | 
| 11704 | 
            +
                #     ], 
         | 
| 11705 | 
            +
                #   }
         | 
| 11706 | 
            +
                #
         | 
| 9923 11707 | 
             
                # @example Request syntax with placeholder values
         | 
| 9924 11708 | 
             
                #
         | 
| 9925 11709 | 
             
                #   resp = client.describe_snapshots({
         | 
| @@ -9985,6 +11769,24 @@ module Aws::EC2 | |
| 9985 11769 | 
             
                #
         | 
| 9986 11770 | 
             
                #   * {Types::DescribeSpotDatafeedSubscriptionResult#spot_datafeed_subscription #spot_datafeed_subscription} => Types::SpotDatafeedSubscription
         | 
| 9987 11771 | 
             
                #
         | 
| 11772 | 
            +
                #
         | 
| 11773 | 
            +
                # @example Example: To describe the datafeed for your AWS account
         | 
| 11774 | 
            +
                #
         | 
| 11775 | 
            +
                #   # This example describes the Spot Instance datafeed subscription for your AWS account.
         | 
| 11776 | 
            +
                #
         | 
| 11777 | 
            +
                #   resp = client.describe_spot_datafeed_subscription({
         | 
| 11778 | 
            +
                #   })
         | 
| 11779 | 
            +
                #
         | 
| 11780 | 
            +
                #   resp.to_h outputs the following:
         | 
| 11781 | 
            +
                #   {
         | 
| 11782 | 
            +
                #     spot_datafeed_subscription: {
         | 
| 11783 | 
            +
                #       bucket: "my-s3-bucket", 
         | 
| 11784 | 
            +
                #       owner_id: "123456789012", 
         | 
| 11785 | 
            +
                #       prefix: "spotdata", 
         | 
| 11786 | 
            +
                #       state: "Active", 
         | 
| 11787 | 
            +
                #     }, 
         | 
| 11788 | 
            +
                #   }
         | 
| 11789 | 
            +
                #
         | 
| 9988 11790 | 
             
                # @example Request syntax with placeholder values
         | 
| 9989 11791 | 
             
                #
         | 
| 9990 11792 | 
             
                #   resp = client.describe_spot_datafeed_subscription({
         | 
| @@ -10035,6 +11837,27 @@ module Aws::EC2 | |
| 10035 11837 | 
             
                #   * {Types::DescribeSpotFleetInstancesResponse#next_token #next_token} => String
         | 
| 10036 11838 | 
             
                #   * {Types::DescribeSpotFleetInstancesResponse#spot_fleet_request_id #spot_fleet_request_id} => String
         | 
| 10037 11839 | 
             
                #
         | 
| 11840 | 
            +
                #
         | 
| 11841 | 
            +
                # @example Example: To describe the Spot Instances associated with a Spot fleet
         | 
| 11842 | 
            +
                #
         | 
| 11843 | 
            +
                #   # This example lists the Spot Instances associated with the specified Spot fleet.
         | 
| 11844 | 
            +
                #
         | 
| 11845 | 
            +
                #   resp = client.describe_spot_fleet_instances({
         | 
| 11846 | 
            +
                #     spot_fleet_request_id: "sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE", 
         | 
| 11847 | 
            +
                #   })
         | 
| 11848 | 
            +
                #
         | 
| 11849 | 
            +
                #   resp.to_h outputs the following:
         | 
| 11850 | 
            +
                #   {
         | 
| 11851 | 
            +
                #     active_instances: [
         | 
| 11852 | 
            +
                #       {
         | 
| 11853 | 
            +
                #         instance_id: "i-1234567890abcdef0", 
         | 
| 11854 | 
            +
                #         instance_type: "m3.medium", 
         | 
| 11855 | 
            +
                #         spot_instance_request_id: "sir-08b93456", 
         | 
| 11856 | 
            +
                #       }, 
         | 
| 11857 | 
            +
                #     ], 
         | 
| 11858 | 
            +
                #     spot_fleet_request_id: "sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE", 
         | 
| 11859 | 
            +
                #   }
         | 
| 11860 | 
            +
                #
         | 
| 10038 11861 | 
             
                # @example Request syntax with placeholder values
         | 
| 10039 11862 | 
             
                #
         | 
| 10040 11863 | 
             
                #   resp = client.describe_spot_fleet_instances({
         | 
| @@ -10103,6 +11926,55 @@ module Aws::EC2 | |
| 10103 11926 | 
             
                #   * {Types::DescribeSpotFleetRequestHistoryResponse#spot_fleet_request_id #spot_fleet_request_id} => String
         | 
| 10104 11927 | 
             
                #   * {Types::DescribeSpotFleetRequestHistoryResponse#start_time #start_time} => Time
         | 
| 10105 11928 | 
             
                #
         | 
| 11929 | 
            +
                #
         | 
| 11930 | 
            +
                # @example Example: To describe Spot fleet history
         | 
| 11931 | 
            +
                #
         | 
| 11932 | 
            +
                #   # This example returns the history for the specified Spot fleet starting at the specified time.
         | 
| 11933 | 
            +
                #
         | 
| 11934 | 
            +
                #   resp = client.describe_spot_fleet_request_history({
         | 
| 11935 | 
            +
                #     spot_fleet_request_id: "sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE", 
         | 
| 11936 | 
            +
                #     start_time: Time.parse("2015-05-26T00:00:00Z"), 
         | 
| 11937 | 
            +
                #   })
         | 
| 11938 | 
            +
                #
         | 
| 11939 | 
            +
                #   resp.to_h outputs the following:
         | 
| 11940 | 
            +
                #   {
         | 
| 11941 | 
            +
                #     history_records: [
         | 
| 11942 | 
            +
                #       {
         | 
| 11943 | 
            +
                #         event_information: {
         | 
| 11944 | 
            +
                #           event_sub_type: "submitted", 
         | 
| 11945 | 
            +
                #         }, 
         | 
| 11946 | 
            +
                #         event_type: "fleetRequestChange", 
         | 
| 11947 | 
            +
                #         timestamp: Time.parse("2015-05-26T23:17:20.697Z"), 
         | 
| 11948 | 
            +
                #       }, 
         | 
| 11949 | 
            +
                #       {
         | 
| 11950 | 
            +
                #         event_information: {
         | 
| 11951 | 
            +
                #           event_sub_type: "active", 
         | 
| 11952 | 
            +
                #         }, 
         | 
| 11953 | 
            +
                #         event_type: "fleetRequestChange", 
         | 
| 11954 | 
            +
                #         timestamp: Time.parse("2015-05-26T23:17:20.873Z"), 
         | 
| 11955 | 
            +
                #       }, 
         | 
| 11956 | 
            +
                #       {
         | 
| 11957 | 
            +
                #         event_information: {
         | 
| 11958 | 
            +
                #           event_sub_type: "launched", 
         | 
| 11959 | 
            +
                #           instance_id: "i-1234567890abcdef0", 
         | 
| 11960 | 
            +
                #         }, 
         | 
| 11961 | 
            +
                #         event_type: "instanceChange", 
         | 
| 11962 | 
            +
                #         timestamp: Time.parse("2015-05-26T23:21:21.712Z"), 
         | 
| 11963 | 
            +
                #       }, 
         | 
| 11964 | 
            +
                #       {
         | 
| 11965 | 
            +
                #         event_information: {
         | 
| 11966 | 
            +
                #           event_sub_type: "launched", 
         | 
| 11967 | 
            +
                #           instance_id: "i-1234567890abcdef1", 
         | 
| 11968 | 
            +
                #         }, 
         | 
| 11969 | 
            +
                #         event_type: "instanceChange", 
         | 
| 11970 | 
            +
                #         timestamp: Time.parse("2015-05-26T23:21:21.816Z"), 
         | 
| 11971 | 
            +
                #       }, 
         | 
| 11972 | 
            +
                #     ], 
         | 
| 11973 | 
            +
                #     next_token: "CpHNsscimcV5oH7bSbub03CI2Qms5+ypNpNm+53MNlR0YcXAkp0xFlfKf91yVxSExmbtma3awYxMFzNA663ZskT0AHtJ6TCb2Z8bQC2EnZgyELbymtWPfpZ1ZbauVg+P+TfGlWxWWB/Vr5dk5d4LfdgA/DRAHUrYgxzrEXAMPLE=", 
         | 
| 11974 | 
            +
                #     spot_fleet_request_id: "sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE", 
         | 
| 11975 | 
            +
                #     start_time: Time.parse("2015-05-26T00:00:00Z"), 
         | 
| 11976 | 
            +
                #   }
         | 
| 11977 | 
            +
                #
         | 
| 10106 11978 | 
             
                # @example Request syntax with placeholder values
         | 
| 10107 11979 | 
             
                #
         | 
| 10108 11980 | 
             
                #   resp = client.describe_spot_fleet_request_history({
         | 
| @@ -10164,6 +12036,62 @@ module Aws::EC2 | |
| 10164 12036 | 
             
                #   * {Types::DescribeSpotFleetRequestsResponse#next_token #next_token} => String
         | 
| 10165 12037 | 
             
                #   * {Types::DescribeSpotFleetRequestsResponse#spot_fleet_request_configs #spot_fleet_request_configs} => Array<Types::SpotFleetRequestConfig>
         | 
| 10166 12038 | 
             
                #
         | 
| 12039 | 
            +
                #
         | 
| 12040 | 
            +
                # @example Example: To describe a Spot fleet request
         | 
| 12041 | 
            +
                #
         | 
| 12042 | 
            +
                #   # This example describes the specified Spot fleet request.
         | 
| 12043 | 
            +
                #
         | 
| 12044 | 
            +
                #   resp = client.describe_spot_fleet_requests({
         | 
| 12045 | 
            +
                #     spot_fleet_request_ids: [
         | 
| 12046 | 
            +
                #       "sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE", 
         | 
| 12047 | 
            +
                #     ], 
         | 
| 12048 | 
            +
                #   })
         | 
| 12049 | 
            +
                #
         | 
| 12050 | 
            +
                #   resp.to_h outputs the following:
         | 
| 12051 | 
            +
                #   {
         | 
| 12052 | 
            +
                #     spot_fleet_request_configs: [
         | 
| 12053 | 
            +
                #       {
         | 
| 12054 | 
            +
                #         spot_fleet_request_config: {
         | 
| 12055 | 
            +
                #           iam_fleet_role: "arn:aws:iam::123456789012:role/my-spot-fleet-role", 
         | 
| 12056 | 
            +
                #           launch_specifications: [
         | 
| 12057 | 
            +
                #             {
         | 
| 12058 | 
            +
                #               ebs_optimized: false, 
         | 
| 12059 | 
            +
                #               image_id: "ami-1a2b3c4d", 
         | 
| 12060 | 
            +
                #               instance_type: "cc2.8xlarge", 
         | 
| 12061 | 
            +
                #               network_interfaces: [
         | 
| 12062 | 
            +
                #                 {
         | 
| 12063 | 
            +
                #                   associate_public_ip_address: true, 
         | 
| 12064 | 
            +
                #                   delete_on_termination: false, 
         | 
| 12065 | 
            +
                #                   device_index: 0, 
         | 
| 12066 | 
            +
                #                   secondary_private_ip_address_count: 0, 
         | 
| 12067 | 
            +
                #                   subnet_id: "subnet-a61dafcf", 
         | 
| 12068 | 
            +
                #                 }, 
         | 
| 12069 | 
            +
                #               ], 
         | 
| 12070 | 
            +
                #             }, 
         | 
| 12071 | 
            +
                #             {
         | 
| 12072 | 
            +
                #               ebs_optimized: false, 
         | 
| 12073 | 
            +
                #               image_id: "ami-1a2b3c4d", 
         | 
| 12074 | 
            +
                #               instance_type: "r3.8xlarge", 
         | 
| 12075 | 
            +
                #               network_interfaces: [
         | 
| 12076 | 
            +
                #                 {
         | 
| 12077 | 
            +
                #                   associate_public_ip_address: true, 
         | 
| 12078 | 
            +
                #                   delete_on_termination: false, 
         | 
| 12079 | 
            +
                #                   device_index: 0, 
         | 
| 12080 | 
            +
                #                   secondary_private_ip_address_count: 0, 
         | 
| 12081 | 
            +
                #                   subnet_id: "subnet-a61dafcf", 
         | 
| 12082 | 
            +
                #                 }, 
         | 
| 12083 | 
            +
                #               ], 
         | 
| 12084 | 
            +
                #             }, 
         | 
| 12085 | 
            +
                #           ], 
         | 
| 12086 | 
            +
                #           spot_price: "0.05", 
         | 
| 12087 | 
            +
                #           target_capacity: 20, 
         | 
| 12088 | 
            +
                #         }, 
         | 
| 12089 | 
            +
                #         spot_fleet_request_id: "sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE", 
         | 
| 12090 | 
            +
                #         spot_fleet_request_state: "active", 
         | 
| 12091 | 
            +
                #       }, 
         | 
| 12092 | 
            +
                #     ], 
         | 
| 12093 | 
            +
                #   }
         | 
| 12094 | 
            +
                #
         | 
| 10167 12095 | 
             
                # @example Request syntax with placeholder values
         | 
| 10168 12096 | 
             
                #
         | 
| 10169 12097 | 
             
                #   resp = client.describe_spot_fleet_requests({
         | 
| @@ -10414,6 +12342,60 @@ module Aws::EC2 | |
| 10414 12342 | 
             
                #
         | 
| 10415 12343 | 
             
                #   * {Types::DescribeSpotInstanceRequestsResult#spot_instance_requests #spot_instance_requests} => Array<Types::SpotInstanceRequest>
         | 
| 10416 12344 | 
             
                #
         | 
| 12345 | 
            +
                #
         | 
| 12346 | 
            +
                # @example Example: To describe a Spot Instance request
         | 
| 12347 | 
            +
                #
         | 
| 12348 | 
            +
                #   # This example describes the specified Spot Instance request.
         | 
| 12349 | 
            +
                #
         | 
| 12350 | 
            +
                #   resp = client.describe_spot_instance_requests({
         | 
| 12351 | 
            +
                #     spot_instance_request_ids: [
         | 
| 12352 | 
            +
                #       "sir-08b93456", 
         | 
| 12353 | 
            +
                #     ], 
         | 
| 12354 | 
            +
                #   })
         | 
| 12355 | 
            +
                #
         | 
| 12356 | 
            +
                #   resp.to_h outputs the following:
         | 
| 12357 | 
            +
                #   {
         | 
| 12358 | 
            +
                #     spot_instance_requests: [
         | 
| 12359 | 
            +
                #       {
         | 
| 12360 | 
            +
                #         create_time: Time.parse("2014-04-30T18:14:55.000Z"), 
         | 
| 12361 | 
            +
                #         instance_id: "i-1234567890abcdef0", 
         | 
| 12362 | 
            +
                #         launch_specification: {
         | 
| 12363 | 
            +
                #           block_device_mappings: [
         | 
| 12364 | 
            +
                #             {
         | 
| 12365 | 
            +
                #               device_name: "/dev/sda1", 
         | 
| 12366 | 
            +
                #               ebs: {
         | 
| 12367 | 
            +
                #                 delete_on_termination: true, 
         | 
| 12368 | 
            +
                #                 volume_size: 8, 
         | 
| 12369 | 
            +
                #                 volume_type: "standard", 
         | 
| 12370 | 
            +
                #               }, 
         | 
| 12371 | 
            +
                #             }, 
         | 
| 12372 | 
            +
                #           ], 
         | 
| 12373 | 
            +
                #           ebs_optimized: false, 
         | 
| 12374 | 
            +
                #           image_id: "ami-7aba833f", 
         | 
| 12375 | 
            +
                #           instance_type: "m1.small", 
         | 
| 12376 | 
            +
                #           key_name: "my-key-pair", 
         | 
| 12377 | 
            +
                #           security_groups: [
         | 
| 12378 | 
            +
                #             {
         | 
| 12379 | 
            +
                #               group_id: "sg-e38f24a7", 
         | 
| 12380 | 
            +
                #               group_name: "my-security-group", 
         | 
| 12381 | 
            +
                #             }, 
         | 
| 12382 | 
            +
                #           ], 
         | 
| 12383 | 
            +
                #         }, 
         | 
| 12384 | 
            +
                #         launched_availability_zone: "us-west-1b", 
         | 
| 12385 | 
            +
                #         product_description: "Linux/UNIX", 
         | 
| 12386 | 
            +
                #         spot_instance_request_id: "sir-08b93456", 
         | 
| 12387 | 
            +
                #         spot_price: "0.010000", 
         | 
| 12388 | 
            +
                #         state: "active", 
         | 
| 12389 | 
            +
                #         status: {
         | 
| 12390 | 
            +
                #           code: "fulfilled", 
         | 
| 12391 | 
            +
                #           message: "Your Spot request is fulfilled.", 
         | 
| 12392 | 
            +
                #           update_time: Time.parse("2014-04-30T18:16:21.000Z"), 
         | 
| 12393 | 
            +
                #         }, 
         | 
| 12394 | 
            +
                #         type: "one-time", 
         | 
| 12395 | 
            +
                #       }, 
         | 
| 12396 | 
            +
                #     ], 
         | 
| 12397 | 
            +
                #   }
         | 
| 12398 | 
            +
                #
         | 
| 10417 12399 | 
             
                # @example Request syntax with placeholder values
         | 
| 10418 12400 | 
             
                #
         | 
| 10419 12401 | 
             
                #   resp = client.describe_spot_instance_requests({
         | 
| @@ -10581,6 +12563,42 @@ module Aws::EC2 | |
| 10581 12563 | 
             
                #   * {Types::DescribeSpotPriceHistoryResult#next_token #next_token} => String
         | 
| 10582 12564 | 
             
                #   * {Types::DescribeSpotPriceHistoryResult#spot_price_history #spot_price_history} => Array<Types::SpotPrice>
         | 
| 10583 12565 | 
             
                #
         | 
| 12566 | 
            +
                #
         | 
| 12567 | 
            +
                # @example Example: To describe Spot price history for Linux/UNIX (Amazon VPC)
         | 
| 12568 | 
            +
                #
         | 
| 12569 | 
            +
                #   # This example returns the Spot Price history for m1.xlarge, Linux/UNIX (Amazon VPC) instances for a particular day in January.
         | 
| 12570 | 
            +
                #
         | 
| 12571 | 
            +
                #   resp = client.describe_spot_price_history({
         | 
| 12572 | 
            +
                #     end_time: Time.parse("2014-01-06T08:09:10"), 
         | 
| 12573 | 
            +
                #     instance_types: [
         | 
| 12574 | 
            +
                #       "m1.xlarge", 
         | 
| 12575 | 
            +
                #     ], 
         | 
| 12576 | 
            +
                #     product_descriptions: [
         | 
| 12577 | 
            +
                #       "Linux/UNIX (Amazon VPC)", 
         | 
| 12578 | 
            +
                #     ], 
         | 
| 12579 | 
            +
                #     start_time: Time.parse("2014-01-06T07:08:09"), 
         | 
| 12580 | 
            +
                #   })
         | 
| 12581 | 
            +
                #
         | 
| 12582 | 
            +
                #   resp.to_h outputs the following:
         | 
| 12583 | 
            +
                #   {
         | 
| 12584 | 
            +
                #     spot_price_history: [
         | 
| 12585 | 
            +
                #       {
         | 
| 12586 | 
            +
                #         availability_zone: "us-west-1a", 
         | 
| 12587 | 
            +
                #         instance_type: "m1.xlarge", 
         | 
| 12588 | 
            +
                #         product_description: "Linux/UNIX (Amazon VPC)", 
         | 
| 12589 | 
            +
                #         spot_price: "0.080000", 
         | 
| 12590 | 
            +
                #         timestamp: Time.parse("2014-01-06T04:32:53.000Z"), 
         | 
| 12591 | 
            +
                #       }, 
         | 
| 12592 | 
            +
                #       {
         | 
| 12593 | 
            +
                #         availability_zone: "us-west-1c", 
         | 
| 12594 | 
            +
                #         instance_type: "m1.xlarge", 
         | 
| 12595 | 
            +
                #         product_description: "Linux/UNIX (Amazon VPC)", 
         | 
| 12596 | 
            +
                #         spot_price: "0.080000", 
         | 
| 12597 | 
            +
                #         timestamp: Time.parse("2014-01-05T11:28:26.000Z"), 
         | 
| 12598 | 
            +
                #       }, 
         | 
| 12599 | 
            +
                #     ], 
         | 
| 12600 | 
            +
                #   }
         | 
| 12601 | 
            +
                #
         | 
| 10584 12602 | 
             
                # @example Request syntax with placeholder values
         | 
| 10585 12603 | 
             
                #
         | 
| 10586 12604 | 
             
                #   resp = client.describe_spot_price_history({
         | 
| @@ -10778,6 +12796,38 @@ module Aws::EC2 | |
| 10778 12796 | 
             
                #
         | 
| 10779 12797 | 
             
                #   * {Types::DescribeSubnetsResult#subnets #subnets} => Array<Types::Subnet>
         | 
| 10780 12798 | 
             
                #
         | 
| 12799 | 
            +
                #
         | 
| 12800 | 
            +
                # @example Example: To describe the subnets for a VPC
         | 
| 12801 | 
            +
                #
         | 
| 12802 | 
            +
                #   # This example describes the subnets for the specified VPC.
         | 
| 12803 | 
            +
                #
         | 
| 12804 | 
            +
                #   resp = client.describe_subnets({
         | 
| 12805 | 
            +
                #     filters: [
         | 
| 12806 | 
            +
                #       {
         | 
| 12807 | 
            +
                #         name: "vpc-id", 
         | 
| 12808 | 
            +
                #         values: [
         | 
| 12809 | 
            +
                #           "vpc-a01106c2", 
         | 
| 12810 | 
            +
                #         ], 
         | 
| 12811 | 
            +
                #       }, 
         | 
| 12812 | 
            +
                #     ], 
         | 
| 12813 | 
            +
                #   })
         | 
| 12814 | 
            +
                #
         | 
| 12815 | 
            +
                #   resp.to_h outputs the following:
         | 
| 12816 | 
            +
                #   {
         | 
| 12817 | 
            +
                #     subnets: [
         | 
| 12818 | 
            +
                #       {
         | 
| 12819 | 
            +
                #         availability_zone: "us-east-1c", 
         | 
| 12820 | 
            +
                #         available_ip_address_count: 251, 
         | 
| 12821 | 
            +
                #         cidr_block: "10.0.1.0/24", 
         | 
| 12822 | 
            +
                #         default_for_az: false, 
         | 
| 12823 | 
            +
                #         map_public_ip_on_launch: false, 
         | 
| 12824 | 
            +
                #         state: "available", 
         | 
| 12825 | 
            +
                #         subnet_id: "subnet-9d4a7b6c", 
         | 
| 12826 | 
            +
                #         vpc_id: "vpc-a01106c2", 
         | 
| 12827 | 
            +
                #       }, 
         | 
| 12828 | 
            +
                #     ], 
         | 
| 12829 | 
            +
                #   }
         | 
| 12830 | 
            +
                #
         | 
| 10781 12831 | 
             
                # @example Request syntax with placeholder values
         | 
| 10782 12832 | 
             
                #
         | 
| 10783 12833 | 
             
                #   resp = client.describe_subnets({
         | 
| @@ -10865,6 +12915,40 @@ module Aws::EC2 | |
| 10865 12915 | 
             
                #   * {Types::DescribeTagsResult#next_token #next_token} => String
         | 
| 10866 12916 | 
             
                #   * {Types::DescribeTagsResult#tags #tags} => Array<Types::TagDescription>
         | 
| 10867 12917 | 
             
                #
         | 
| 12918 | 
            +
                #
         | 
| 12919 | 
            +
                # @example Example: To describe the tags for a single resource
         | 
| 12920 | 
            +
                #
         | 
| 12921 | 
            +
                #   # This example describes the tags for the specified instance.
         | 
| 12922 | 
            +
                #
         | 
| 12923 | 
            +
                #   resp = client.describe_tags({
         | 
| 12924 | 
            +
                #     filters: [
         | 
| 12925 | 
            +
                #       {
         | 
| 12926 | 
            +
                #         name: "resource-id", 
         | 
| 12927 | 
            +
                #         values: [
         | 
| 12928 | 
            +
                #           "i-1234567890abcdef8", 
         | 
| 12929 | 
            +
                #         ], 
         | 
| 12930 | 
            +
                #       }, 
         | 
| 12931 | 
            +
                #     ], 
         | 
| 12932 | 
            +
                #   })
         | 
| 12933 | 
            +
                #
         | 
| 12934 | 
            +
                #   resp.to_h outputs the following:
         | 
| 12935 | 
            +
                #   {
         | 
| 12936 | 
            +
                #     tags: [
         | 
| 12937 | 
            +
                #       {
         | 
| 12938 | 
            +
                #         key: "Stack", 
         | 
| 12939 | 
            +
                #         resource_id: "i-1234567890abcdef8", 
         | 
| 12940 | 
            +
                #         resource_type: "instance", 
         | 
| 12941 | 
            +
                #         value: "test", 
         | 
| 12942 | 
            +
                #       }, 
         | 
| 12943 | 
            +
                #       {
         | 
| 12944 | 
            +
                #         key: "Name", 
         | 
| 12945 | 
            +
                #         resource_id: "i-1234567890abcdef8", 
         | 
| 12946 | 
            +
                #         resource_type: "instance", 
         | 
| 12947 | 
            +
                #         value: "Beta Server", 
         | 
| 12948 | 
            +
                #       }, 
         | 
| 12949 | 
            +
                #     ], 
         | 
| 12950 | 
            +
                #   }
         | 
| 12951 | 
            +
                #
         | 
| 10868 12952 | 
             
                # @example Request syntax with placeholder values
         | 
| 10869 12953 | 
             
                #
         | 
| 10870 12954 | 
             
                #   resp = client.describe_tags({
         | 
| @@ -10925,6 +13009,24 @@ module Aws::EC2 | |
| 10925 13009 | 
             
                #   * {Types::DescribeVolumeAttributeResult#product_codes #product_codes} => Array<Types::ProductCode>
         | 
| 10926 13010 | 
             
                #   * {Types::DescribeVolumeAttributeResult#volume_id #volume_id} => String
         | 
| 10927 13011 | 
             
                #
         | 
| 13012 | 
            +
                #
         | 
| 13013 | 
            +
                # @example Example: To describe a volume attribute
         | 
| 13014 | 
            +
                #
         | 
| 13015 | 
            +
                #   # This example describes the ``autoEnableIo`` attribute of the volume with the ID ``vol-049df61146c4d7901``.
         | 
| 13016 | 
            +
                #
         | 
| 13017 | 
            +
                #   resp = client.describe_volume_attribute({
         | 
| 13018 | 
            +
                #     attribute: "autoEnableIO", 
         | 
| 13019 | 
            +
                #     volume_id: "vol-049df61146c4d7901", 
         | 
| 13020 | 
            +
                #   })
         | 
| 13021 | 
            +
                #
         | 
| 13022 | 
            +
                #   resp.to_h outputs the following:
         | 
| 13023 | 
            +
                #   {
         | 
| 13024 | 
            +
                #     auto_enable_io: {
         | 
| 13025 | 
            +
                #       value: false, 
         | 
| 13026 | 
            +
                #     }, 
         | 
| 13027 | 
            +
                #     volume_id: "vol-049df61146c4d7901", 
         | 
| 13028 | 
            +
                #   }
         | 
| 13029 | 
            +
                #
         | 
| 10928 13030 | 
             
                # @example Request syntax with placeholder values
         | 
| 10929 13031 | 
             
                #
         | 
| 10930 13032 | 
             
                #   resp = client.describe_volume_attribute({
         | 
| @@ -11066,6 +13168,65 @@ module Aws::EC2 | |
| 11066 13168 | 
             
                #   * {Types::DescribeVolumeStatusResult#next_token #next_token} => String
         | 
| 11067 13169 | 
             
                #   * {Types::DescribeVolumeStatusResult#volume_statuses #volume_statuses} => Array<Types::VolumeStatusItem>
         | 
| 11068 13170 | 
             
                #
         | 
| 13171 | 
            +
                #
         | 
| 13172 | 
            +
                # @example Example: To describe the status of a single volume
         | 
| 13173 | 
            +
                #
         | 
| 13174 | 
            +
                #   # This example describes the status for the volume ``vol-1234567890abcdef0``.
         | 
| 13175 | 
            +
                #
         | 
| 13176 | 
            +
                #   resp = client.describe_volume_status({
         | 
| 13177 | 
            +
                #     volume_ids: [
         | 
| 13178 | 
            +
                #       "vol-1234567890abcdef0", 
         | 
| 13179 | 
            +
                #     ], 
         | 
| 13180 | 
            +
                #   })
         | 
| 13181 | 
            +
                #
         | 
| 13182 | 
            +
                #   resp.to_h outputs the following:
         | 
| 13183 | 
            +
                #   {
         | 
| 13184 | 
            +
                #     volume_statuses: [
         | 
| 13185 | 
            +
                #       {
         | 
| 13186 | 
            +
                #         actions: [
         | 
| 13187 | 
            +
                #         ], 
         | 
| 13188 | 
            +
                #         availability_zone: "us-east-1a", 
         | 
| 13189 | 
            +
                #         events: [
         | 
| 13190 | 
            +
                #         ], 
         | 
| 13191 | 
            +
                #         volume_id: "vol-1234567890abcdef0", 
         | 
| 13192 | 
            +
                #         volume_status: {
         | 
| 13193 | 
            +
                #           details: [
         | 
| 13194 | 
            +
                #             {
         | 
| 13195 | 
            +
                #               name: "io-enabled", 
         | 
| 13196 | 
            +
                #               status: "passed", 
         | 
| 13197 | 
            +
                #             }, 
         | 
| 13198 | 
            +
                #             {
         | 
| 13199 | 
            +
                #               name: "io-performance", 
         | 
| 13200 | 
            +
                #               status: "not-applicable", 
         | 
| 13201 | 
            +
                #             }, 
         | 
| 13202 | 
            +
                #           ], 
         | 
| 13203 | 
            +
                #           status: "ok", 
         | 
| 13204 | 
            +
                #         }, 
         | 
| 13205 | 
            +
                #       }, 
         | 
| 13206 | 
            +
                #     ], 
         | 
| 13207 | 
            +
                #   }
         | 
| 13208 | 
            +
                #
         | 
| 13209 | 
            +
                # @example Example: To describe the status of impaired volumes
         | 
| 13210 | 
            +
                #
         | 
| 13211 | 
            +
                #   # This example describes the status for all volumes that are impaired. In this example output, there are no impaired volumes.
         | 
| 13212 | 
            +
                #
         | 
| 13213 | 
            +
                #   resp = client.describe_volume_status({
         | 
| 13214 | 
            +
                #     filters: [
         | 
| 13215 | 
            +
                #       {
         | 
| 13216 | 
            +
                #         name: "volume-status.status", 
         | 
| 13217 | 
            +
                #         values: [
         | 
| 13218 | 
            +
                #           "impaired", 
         | 
| 13219 | 
            +
                #         ], 
         | 
| 13220 | 
            +
                #       }, 
         | 
| 13221 | 
            +
                #     ], 
         | 
| 13222 | 
            +
                #   })
         | 
| 13223 | 
            +
                #
         | 
| 13224 | 
            +
                #   resp.to_h outputs the following:
         | 
| 13225 | 
            +
                #   {
         | 
| 13226 | 
            +
                #     volume_statuses: [
         | 
| 13227 | 
            +
                #     ], 
         | 
| 13228 | 
            +
                #   }
         | 
| 13229 | 
            +
                #
         | 
| 11069 13230 | 
             
                # @example Request syntax with placeholder values
         | 
| 11070 13231 | 
             
                #
         | 
| 11071 13232 | 
             
                #   resp = client.describe_volume_status({
         | 
| @@ -11218,6 +13379,86 @@ module Aws::EC2 | |
| 11218 13379 | 
             
                #   * {Types::DescribeVolumesResult#volumes #volumes} => Array<Types::Volume>
         | 
| 11219 13380 | 
             
                #   * {Types::DescribeVolumesResult#next_token #next_token} => String
         | 
| 11220 13381 | 
             
                #
         | 
| 13382 | 
            +
                #
         | 
| 13383 | 
            +
                # @example Example: To describe all volumes
         | 
| 13384 | 
            +
                #
         | 
| 13385 | 
            +
                #   # This example describes all of your volumes in the default region.
         | 
| 13386 | 
            +
                #
         | 
| 13387 | 
            +
                #   resp = client.describe_volumes({
         | 
| 13388 | 
            +
                #   })
         | 
| 13389 | 
            +
                #
         | 
| 13390 | 
            +
                #   resp.to_h outputs the following:
         | 
| 13391 | 
            +
                #   {
         | 
| 13392 | 
            +
                #     next_token: "", 
         | 
| 13393 | 
            +
                #     volumes: [
         | 
| 13394 | 
            +
                #       {
         | 
| 13395 | 
            +
                #         attachments: [
         | 
| 13396 | 
            +
                #           {
         | 
| 13397 | 
            +
                #             attach_time: Time.parse("2013-12-18T22:35:00.000Z"), 
         | 
| 13398 | 
            +
                #             delete_on_termination: true, 
         | 
| 13399 | 
            +
                #             device: "/dev/sda1", 
         | 
| 13400 | 
            +
                #             instance_id: "i-1234567890abcdef0", 
         | 
| 13401 | 
            +
                #             state: "attached", 
         | 
| 13402 | 
            +
                #             volume_id: "vol-049df61146c4d7901", 
         | 
| 13403 | 
            +
                #           }, 
         | 
| 13404 | 
            +
                #         ], 
         | 
| 13405 | 
            +
                #         availability_zone: "us-east-1a", 
         | 
| 13406 | 
            +
                #         create_time: Time.parse("2013-12-18T22:35:00.084Z"), 
         | 
| 13407 | 
            +
                #         size: 8, 
         | 
| 13408 | 
            +
                #         snapshot_id: "snap-1234567890abcdef0", 
         | 
| 13409 | 
            +
                #         state: "in-use", 
         | 
| 13410 | 
            +
                #         volume_id: "vol-049df61146c4d7901", 
         | 
| 13411 | 
            +
                #         volume_type: "standard", 
         | 
| 13412 | 
            +
                #       }, 
         | 
| 13413 | 
            +
                #     ], 
         | 
| 13414 | 
            +
                #   }
         | 
| 13415 | 
            +
                #
         | 
| 13416 | 
            +
                # @example Example: To describe volumes that are attached to a specific instance
         | 
| 13417 | 
            +
                #
         | 
| 13418 | 
            +
                #   # This example describes all volumes that are both attached to the instance with the ID i-1234567890abcdef0 and set to delete when the instance terminates.
         | 
| 13419 | 
            +
                #
         | 
| 13420 | 
            +
                #   resp = client.describe_volumes({
         | 
| 13421 | 
            +
                #     filters: [
         | 
| 13422 | 
            +
                #       {
         | 
| 13423 | 
            +
                #         name: "attachment.instance-id", 
         | 
| 13424 | 
            +
                #         values: [
         | 
| 13425 | 
            +
                #           "i-1234567890abcdef0", 
         | 
| 13426 | 
            +
                #         ], 
         | 
| 13427 | 
            +
                #       }, 
         | 
| 13428 | 
            +
                #       {
         | 
| 13429 | 
            +
                #         name: "attachment.delete-on-termination", 
         | 
| 13430 | 
            +
                #         values: [
         | 
| 13431 | 
            +
                #           "true", 
         | 
| 13432 | 
            +
                #         ], 
         | 
| 13433 | 
            +
                #       }, 
         | 
| 13434 | 
            +
                #     ], 
         | 
| 13435 | 
            +
                #   })
         | 
| 13436 | 
            +
                #
         | 
| 13437 | 
            +
                #   resp.to_h outputs the following:
         | 
| 13438 | 
            +
                #   {
         | 
| 13439 | 
            +
                #     volumes: [
         | 
| 13440 | 
            +
                #       {
         | 
| 13441 | 
            +
                #         attachments: [
         | 
| 13442 | 
            +
                #           {
         | 
| 13443 | 
            +
                #             attach_time: Time.parse("2013-12-18T22:35:00.000Z"), 
         | 
| 13444 | 
            +
                #             delete_on_termination: true, 
         | 
| 13445 | 
            +
                #             device: "/dev/sda1", 
         | 
| 13446 | 
            +
                #             instance_id: "i-1234567890abcdef0", 
         | 
| 13447 | 
            +
                #             state: "attached", 
         | 
| 13448 | 
            +
                #             volume_id: "vol-049df61146c4d7901", 
         | 
| 13449 | 
            +
                #           }, 
         | 
| 13450 | 
            +
                #         ], 
         | 
| 13451 | 
            +
                #         availability_zone: "us-east-1a", 
         | 
| 13452 | 
            +
                #         create_time: Time.parse("2013-12-18T22:35:00.084Z"), 
         | 
| 13453 | 
            +
                #         size: 8, 
         | 
| 13454 | 
            +
                #         snapshot_id: "snap-1234567890abcdef0", 
         | 
| 13455 | 
            +
                #         state: "in-use", 
         | 
| 13456 | 
            +
                #         volume_id: "vol-049df61146c4d7901", 
         | 
| 13457 | 
            +
                #         volume_type: "standard", 
         | 
| 13458 | 
            +
                #       }, 
         | 
| 13459 | 
            +
                #     ], 
         | 
| 13460 | 
            +
                #   }
         | 
| 13461 | 
            +
                #
         | 
| 11221 13462 | 
             
                # @example Request syntax with placeholder values
         | 
| 11222 13463 | 
             
                #
         | 
| 11223 13464 | 
             
                #   resp = client.describe_volumes({
         | 
| @@ -11377,6 +13618,41 @@ module Aws::EC2 | |
| 11377 13618 | 
             
                #   * {Types::DescribeVpcAttributeResult#enable_dns_hostnames #enable_dns_hostnames} => Types::AttributeBooleanValue
         | 
| 11378 13619 | 
             
                #   * {Types::DescribeVpcAttributeResult#enable_dns_support #enable_dns_support} => Types::AttributeBooleanValue
         | 
| 11379 13620 | 
             
                #
         | 
| 13621 | 
            +
                #
         | 
| 13622 | 
            +
                # @example Example: To describe the enableDnsSupport attribute
         | 
| 13623 | 
            +
                #
         | 
| 13624 | 
            +
                #   # This example describes the enableDnsSupport attribute. This attribute indicates whether DNS resolution is enabled for the VPC. If this attribute is true, the Amazon DNS server resolves DNS hostnames for your instances to their corresponding IP addresses; otherwise, it does not.
         | 
| 13625 | 
            +
                #
         | 
| 13626 | 
            +
                #   resp = client.describe_vpc_attribute({
         | 
| 13627 | 
            +
                #     attribute: "enableDnsSupport", 
         | 
| 13628 | 
            +
                #     vpc_id: "vpc-a01106c2", 
         | 
| 13629 | 
            +
                #   })
         | 
| 13630 | 
            +
                #
         | 
| 13631 | 
            +
                #   resp.to_h outputs the following:
         | 
| 13632 | 
            +
                #   {
         | 
| 13633 | 
            +
                #     enable_dns_support: {
         | 
| 13634 | 
            +
                #       value: true, 
         | 
| 13635 | 
            +
                #     }, 
         | 
| 13636 | 
            +
                #     vpc_id: "vpc-a01106c2", 
         | 
| 13637 | 
            +
                #   }
         | 
| 13638 | 
            +
                #
         | 
| 13639 | 
            +
                # @example Example: To describe the enableDnsHostnames attribute
         | 
| 13640 | 
            +
                #
         | 
| 13641 | 
            +
                #   # This example describes the enableDnsHostnames attribute. This attribute indicates whether the instances launched in the VPC get DNS hostnames. If this attribute is true, instances in the VPC get DNS hostnames; otherwise, they do not.
         | 
| 13642 | 
            +
                #
         | 
| 13643 | 
            +
                #   resp = client.describe_vpc_attribute({
         | 
| 13644 | 
            +
                #     attribute: "enableDnsHostnames", 
         | 
| 13645 | 
            +
                #     vpc_id: "vpc-a01106c2", 
         | 
| 13646 | 
            +
                #   })
         | 
| 13647 | 
            +
                #
         | 
| 13648 | 
            +
                #   resp.to_h outputs the following:
         | 
| 13649 | 
            +
                #   {
         | 
| 13650 | 
            +
                #     enable_dns_hostnames: {
         | 
| 13651 | 
            +
                #       value: true, 
         | 
| 13652 | 
            +
                #     }, 
         | 
| 13653 | 
            +
                #     vpc_id: "vpc-a01106c2", 
         | 
| 13654 | 
            +
                #   }
         | 
| 13655 | 
            +
                #
         | 
| 11380 13656 | 
             
                # @example Request syntax with placeholder values
         | 
| 11381 13657 | 
             
                #
         | 
| 11382 13658 | 
             
                #   resp = client.describe_vpc_attribute({
         | 
| @@ -11822,6 +14098,37 @@ module Aws::EC2 | |
| 11822 14098 | 
             
                #
         | 
| 11823 14099 | 
             
                #   * {Types::DescribeVpcsResult#vpcs #vpcs} => Array<Types::Vpc>
         | 
| 11824 14100 | 
             
                #
         | 
| 14101 | 
            +
                #
         | 
| 14102 | 
            +
                # @example Example: To describe a VPC
         | 
| 14103 | 
            +
                #
         | 
| 14104 | 
            +
                #   # This example describes the specified VPC.
         | 
| 14105 | 
            +
                #
         | 
| 14106 | 
            +
                #   resp = client.describe_vpcs({
         | 
| 14107 | 
            +
                #     vpc_ids: [
         | 
| 14108 | 
            +
                #       "vpc-a01106c2", 
         | 
| 14109 | 
            +
                #     ], 
         | 
| 14110 | 
            +
                #   })
         | 
| 14111 | 
            +
                #
         | 
| 14112 | 
            +
                #   resp.to_h outputs the following:
         | 
| 14113 | 
            +
                #   {
         | 
| 14114 | 
            +
                #     vpcs: [
         | 
| 14115 | 
            +
                #       {
         | 
| 14116 | 
            +
                #         cidr_block: "10.0.0.0/16", 
         | 
| 14117 | 
            +
                #         dhcp_options_id: "dopt-7a8b9c2d", 
         | 
| 14118 | 
            +
                #         instance_tenancy: "default", 
         | 
| 14119 | 
            +
                #         is_default: false, 
         | 
| 14120 | 
            +
                #         state: "available", 
         | 
| 14121 | 
            +
                #         tags: [
         | 
| 14122 | 
            +
                #           {
         | 
| 14123 | 
            +
                #             key: "Name", 
         | 
| 14124 | 
            +
                #             value: "MyVPC", 
         | 
| 14125 | 
            +
                #           }, 
         | 
| 14126 | 
            +
                #         ], 
         | 
| 14127 | 
            +
                #         vpc_id: "vpc-a01106c2", 
         | 
| 14128 | 
            +
                #       }, 
         | 
| 14129 | 
            +
                #     ], 
         | 
| 14130 | 
            +
                #   }
         | 
| 14131 | 
            +
                #
         | 
| 11825 14132 | 
             
                # @example Request syntax with placeholder values
         | 
| 11826 14133 | 
             
                #
         | 
| 11827 14134 | 
             
                #   resp = client.describe_vpcs({
         | 
| @@ -12138,6 +14445,16 @@ module Aws::EC2 | |
| 12138 14445 | 
             
                #
         | 
| 12139 14446 | 
             
                # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
         | 
| 12140 14447 | 
             
                #
         | 
| 14448 | 
            +
                #
         | 
| 14449 | 
            +
                # @example Example: To detach an Internet gateway from a VPC
         | 
| 14450 | 
            +
                #
         | 
| 14451 | 
            +
                #   # This example detaches the specified Internet gateway from the specified VPC.
         | 
| 14452 | 
            +
                #
         | 
| 14453 | 
            +
                #   resp = client.detach_internet_gateway({
         | 
| 14454 | 
            +
                #     internet_gateway_id: "igw-c0a643a9", 
         | 
| 14455 | 
            +
                #     vpc_id: "vpc-a01106c2", 
         | 
| 14456 | 
            +
                #   })
         | 
| 14457 | 
            +
                #
         | 
| 12141 14458 | 
             
                # @example Request syntax with placeholder values
         | 
| 12142 14459 | 
             
                #
         | 
| 12143 14460 | 
             
                #   resp = client.detach_internet_gateway({
         | 
| @@ -12171,6 +14488,15 @@ module Aws::EC2 | |
| 12171 14488 | 
             
                #
         | 
| 12172 14489 | 
             
                # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
         | 
| 12173 14490 | 
             
                #
         | 
| 14491 | 
            +
                #
         | 
| 14492 | 
            +
                # @example Example: To detach a network interface from an instance
         | 
| 14493 | 
            +
                #
         | 
| 14494 | 
            +
                #   # This example detaches the specified network interface from its attached instance.
         | 
| 14495 | 
            +
                #
         | 
| 14496 | 
            +
                #   resp = client.detach_network_interface({
         | 
| 14497 | 
            +
                #     attachment_id: "eni-attach-66c4350a", 
         | 
| 14498 | 
            +
                #   })
         | 
| 14499 | 
            +
                #
         | 
| 12174 14500 | 
             
                # @example Request syntax with placeholder values
         | 
| 12175 14501 | 
             
                #
         | 
| 12176 14502 | 
             
                #   resp = client.detach_network_interface({
         | 
| @@ -12241,6 +14567,24 @@ module Aws::EC2 | |
| 12241 14567 | 
             
                #   * {Types::VolumeAttachment#volume_id #volume_id} => String
         | 
| 12242 14568 | 
             
                #   * {Types::VolumeAttachment#delete_on_termination #delete_on_termination} => Boolean
         | 
| 12243 14569 | 
             
                #
         | 
| 14570 | 
            +
                #
         | 
| 14571 | 
            +
                # @example Example: To detach a volume from an instance
         | 
| 14572 | 
            +
                #
         | 
| 14573 | 
            +
                #   # This example detaches the volume (``vol-049df61146c4d7901``) from the instance it is attached to.
         | 
| 14574 | 
            +
                #
         | 
| 14575 | 
            +
                #   resp = client.detach_volume({
         | 
| 14576 | 
            +
                #     volume_id: "vol-1234567890abcdef0", 
         | 
| 14577 | 
            +
                #   })
         | 
| 14578 | 
            +
                #
         | 
| 14579 | 
            +
                #   resp.to_h outputs the following:
         | 
| 14580 | 
            +
                #   {
         | 
| 14581 | 
            +
                #     attach_time: Time.parse("2014-02-27T19:23:06.000Z"), 
         | 
| 14582 | 
            +
                #     device: "/dev/sdb", 
         | 
| 14583 | 
            +
                #     instance_id: "i-1234567890abcdef0", 
         | 
| 14584 | 
            +
                #     state: "detaching", 
         | 
| 14585 | 
            +
                #     volume_id: "vol-049df61146c4d7901", 
         | 
| 14586 | 
            +
                #   }
         | 
| 14587 | 
            +
                #
         | 
| 12244 14588 | 
             
                # @example Request syntax with placeholder values
         | 
| 12245 14589 | 
             
                #
         | 
| 12246 14590 | 
             
                #   resp = client.detach_volume({
         | 
| @@ -12321,6 +14665,16 @@ module Aws::EC2 | |
| 12321 14665 | 
             
                #
         | 
| 12322 14666 | 
             
                # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
         | 
| 12323 14667 | 
             
                #
         | 
| 14668 | 
            +
                #
         | 
| 14669 | 
            +
                # @example Example: To disable route propagation
         | 
| 14670 | 
            +
                #
         | 
| 14671 | 
            +
                #   # This example disables the specified virtual private gateway from propagating static routes to the specified route table.
         | 
| 14672 | 
            +
                #
         | 
| 14673 | 
            +
                #   resp = client.disable_vgw_route_propagation({
         | 
| 14674 | 
            +
                #     gateway_id: "vgw-9a4cacf3", 
         | 
| 14675 | 
            +
                #     route_table_id: "rtb-22574640", 
         | 
| 14676 | 
            +
                #   })
         | 
| 14677 | 
            +
                #
         | 
| 12324 14678 | 
             
                # @example Request syntax with placeholder values
         | 
| 12325 14679 | 
             
                #
         | 
| 12326 14680 | 
             
                #   resp = client.disable_vgw_route_propagation({
         | 
| @@ -12429,13 +14783,30 @@ module Aws::EC2 | |
| 12429 14783 | 
             
                # @option params [String] :public_ip
         | 
| 12430 14784 | 
             
                #   \[EC2-Classic\] The Elastic IP address. Required for EC2-Classic.
         | 
| 12431 14785 | 
             
                #
         | 
| 12432 | 
            -
                # @option params [Boolean] :dry_run
         | 
| 12433 | 
            -
                #   Checks whether you have the required permissions for the action,
         | 
| 12434 | 
            -
                #   without actually making the request, and provides an error response.
         | 
| 12435 | 
            -
                #   If you have the required permissions, the error response is
         | 
| 12436 | 
            -
                #   `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
         | 
| 14786 | 
            +
                # @option params [Boolean] :dry_run
         | 
| 14787 | 
            +
                #   Checks whether you have the required permissions for the action,
         | 
| 14788 | 
            +
                #   without actually making the request, and provides an error response.
         | 
| 14789 | 
            +
                #   If you have the required permissions, the error response is
         | 
| 14790 | 
            +
                #   `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
         | 
| 14791 | 
            +
                #
         | 
| 14792 | 
            +
                # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
         | 
| 14793 | 
            +
                #
         | 
| 14794 | 
            +
                #
         | 
| 14795 | 
            +
                # @example Example: To disassociate an Elastic IP address in EC2-VPC
         | 
| 14796 | 
            +
                #
         | 
| 14797 | 
            +
                #   # This example disassociates an Elastic IP address from an instance in a VPC.
         | 
| 14798 | 
            +
                #
         | 
| 14799 | 
            +
                #   resp = client.disassociate_address({
         | 
| 14800 | 
            +
                #     association_id: "eipassoc-2bebb745", 
         | 
| 14801 | 
            +
                #   })
         | 
| 14802 | 
            +
                #
         | 
| 14803 | 
            +
                # @example Example: To disassociate an Elastic IP addresses in EC2-Classic
         | 
| 12437 14804 | 
             
                #
         | 
| 12438 | 
            -
                #  | 
| 14805 | 
            +
                #   # This example disassociates an Elastic IP address from an instance in EC2-Classic.
         | 
| 14806 | 
            +
                #
         | 
| 14807 | 
            +
                #   resp = client.disassociate_address({
         | 
| 14808 | 
            +
                #     public_ip: "198.51.100.0", 
         | 
| 14809 | 
            +
                #   })
         | 
| 12439 14810 | 
             
                #
         | 
| 12440 14811 | 
             
                # @example Request syntax with placeholder values
         | 
| 12441 14812 | 
             
                #
         | 
| @@ -12513,6 +14884,15 @@ module Aws::EC2 | |
| 12513 14884 | 
             
                #
         | 
| 12514 14885 | 
             
                # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
         | 
| 12515 14886 | 
             
                #
         | 
| 14887 | 
            +
                #
         | 
| 14888 | 
            +
                # @example Example: To disassociate a route table
         | 
| 14889 | 
            +
                #
         | 
| 14890 | 
            +
                #   # This example disassociates the specified route table from its associated subnet.
         | 
| 14891 | 
            +
                #
         | 
| 14892 | 
            +
                #   resp = client.disassociate_route_table({
         | 
| 14893 | 
            +
                #     association_id: "rtbassoc-781d0d1a", 
         | 
| 14894 | 
            +
                #   })
         | 
| 14895 | 
            +
                #
         | 
| 12516 14896 | 
             
                # @example Request syntax with placeholder values
         | 
| 12517 14897 | 
             
                #
         | 
| 12518 14898 | 
             
                #   resp = client.disassociate_route_table({
         | 
| @@ -12612,6 +14992,16 @@ module Aws::EC2 | |
| 12612 14992 | 
             
                #
         | 
| 12613 14993 | 
             
                # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
         | 
| 12614 14994 | 
             
                #
         | 
| 14995 | 
            +
                #
         | 
| 14996 | 
            +
                # @example Example: To enable route propagation
         | 
| 14997 | 
            +
                #
         | 
| 14998 | 
            +
                #   # This example enables the specified virtual private gateway to propagate static routes to the specified route table.
         | 
| 14999 | 
            +
                #
         | 
| 15000 | 
            +
                #   resp = client.enable_vgw_route_propagation({
         | 
| 15001 | 
            +
                #     gateway_id: "vgw-9a4cacf3", 
         | 
| 15002 | 
            +
                #     route_table_id: "rtb-22574640", 
         | 
| 15003 | 
            +
                #   })
         | 
| 15004 | 
            +
                #
         | 
| 12615 15005 | 
             
                # @example Request syntax with placeholder values
         | 
| 12616 15006 | 
             
                #
         | 
| 12617 15007 | 
             
                #   resp = client.enable_vgw_route_propagation({
         | 
| @@ -12642,6 +15032,15 @@ module Aws::EC2 | |
| 12642 15032 | 
             
                #
         | 
| 12643 15033 | 
             
                # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
         | 
| 12644 15034 | 
             
                #
         | 
| 15035 | 
            +
                #
         | 
| 15036 | 
            +
                # @example Example: To enable I/O for a volume
         | 
| 15037 | 
            +
                #
         | 
| 15038 | 
            +
                #   # This example enables I/O on volume ``vol-1234567890abcdef0``.
         | 
| 15039 | 
            +
                #
         | 
| 15040 | 
            +
                #   resp = client.enable_volume_io({
         | 
| 15041 | 
            +
                #     volume_id: "vol-1234567890abcdef0", 
         | 
| 15042 | 
            +
                #   })
         | 
| 15043 | 
            +
                #
         | 
| 12645 15044 | 
             
                # @example Request syntax with placeholder values
         | 
| 12646 15045 | 
             
                #
         | 
| 12647 15046 | 
             
                #   resp = client.enable_volume_io({
         | 
| @@ -14026,6 +16425,53 @@ module Aws::EC2 | |
| 14026 16425 | 
             
                #
         | 
| 14027 16426 | 
             
                # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
         | 
| 14028 16427 | 
             
                #
         | 
| 16428 | 
            +
                #
         | 
| 16429 | 
            +
                # @example Example: To modify the attachment attribute of a network interface
         | 
| 16430 | 
            +
                #
         | 
| 16431 | 
            +
                #   # This example modifies the attachment attribute of the specified network interface.
         | 
| 16432 | 
            +
                #
         | 
| 16433 | 
            +
                #   resp = client.modify_network_interface_attribute({
         | 
| 16434 | 
            +
                #     attachment: {
         | 
| 16435 | 
            +
                #       attachment_id: "eni-attach-43348162", 
         | 
| 16436 | 
            +
                #       delete_on_termination: false, 
         | 
| 16437 | 
            +
                #     }, 
         | 
| 16438 | 
            +
                #     network_interface_id: "eni-686ea200", 
         | 
| 16439 | 
            +
                #   })
         | 
| 16440 | 
            +
                #
         | 
| 16441 | 
            +
                # @example Example: To modify the description attribute of a network interface
         | 
| 16442 | 
            +
                #
         | 
| 16443 | 
            +
                #   # This example modifies the description attribute of the specified network interface.
         | 
| 16444 | 
            +
                #
         | 
| 16445 | 
            +
                #   resp = client.modify_network_interface_attribute({
         | 
| 16446 | 
            +
                #     description: {
         | 
| 16447 | 
            +
                #       value: "My description", 
         | 
| 16448 | 
            +
                #     }, 
         | 
| 16449 | 
            +
                #     network_interface_id: "eni-686ea200", 
         | 
| 16450 | 
            +
                #   })
         | 
| 16451 | 
            +
                #
         | 
| 16452 | 
            +
                # @example Example: To modify the groupSet attribute of a network interface
         | 
| 16453 | 
            +
                #
         | 
| 16454 | 
            +
                #   # This example command modifies the groupSet attribute of the specified network interface.
         | 
| 16455 | 
            +
                #
         | 
| 16456 | 
            +
                #   resp = client.modify_network_interface_attribute({
         | 
| 16457 | 
            +
                #     groups: [
         | 
| 16458 | 
            +
                #       "sg-903004f8", 
         | 
| 16459 | 
            +
                #       "sg-1a2b3c4d", 
         | 
| 16460 | 
            +
                #     ], 
         | 
| 16461 | 
            +
                #     network_interface_id: "eni-686ea200", 
         | 
| 16462 | 
            +
                #   })
         | 
| 16463 | 
            +
                #
         | 
| 16464 | 
            +
                # @example Example: To modify the sourceDestCheck attribute of a network interface
         | 
| 16465 | 
            +
                #
         | 
| 16466 | 
            +
                #   # This example command modifies the sourceDestCheck attribute of the specified network interface.
         | 
| 16467 | 
            +
                #
         | 
| 16468 | 
            +
                #   resp = client.modify_network_interface_attribute({
         | 
| 16469 | 
            +
                #     network_interface_id: "eni-686ea200", 
         | 
| 16470 | 
            +
                #     source_dest_check: {
         | 
| 16471 | 
            +
                #       value: false, 
         | 
| 16472 | 
            +
                #     }, 
         | 
| 16473 | 
            +
                #   })
         | 
| 16474 | 
            +
                #
         | 
| 14029 16475 | 
             
                # @example Request syntax with placeholder values
         | 
| 14030 16476 | 
             
                #
         | 
| 14031 16477 | 
             
                #   resp = client.modify_network_interface_attribute({
         | 
| @@ -14161,6 +16607,41 @@ module Aws::EC2 | |
| 14161 16607 | 
             
                #
         | 
| 14162 16608 | 
             
                # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
         | 
| 14163 16609 | 
             
                #
         | 
| 16610 | 
            +
                #
         | 
| 16611 | 
            +
                # @example Example: To modify a snapshot attribute
         | 
| 16612 | 
            +
                #
         | 
| 16613 | 
            +
                #   # This example modifies snapshot ``snap-1234567890abcdef0`` to remove the create volume permission for a user with the account ID ``123456789012``. If the command succeeds, no output is returned.
         | 
| 16614 | 
            +
                #
         | 
| 16615 | 
            +
                #   resp = client.modify_snapshot_attribute({
         | 
| 16616 | 
            +
                #     attribute: "createVolumePermission", 
         | 
| 16617 | 
            +
                #     operation_type: "remove", 
         | 
| 16618 | 
            +
                #     snapshot_id: "snap-1234567890abcdef0", 
         | 
| 16619 | 
            +
                #     user_ids: [
         | 
| 16620 | 
            +
                #       "123456789012", 
         | 
| 16621 | 
            +
                #     ], 
         | 
| 16622 | 
            +
                #   })
         | 
| 16623 | 
            +
                #
         | 
| 16624 | 
            +
                #   resp.to_h outputs the following:
         | 
| 16625 | 
            +
                #   {
         | 
| 16626 | 
            +
                #   }
         | 
| 16627 | 
            +
                #
         | 
| 16628 | 
            +
                # @example Example: To make a snapshot public
         | 
| 16629 | 
            +
                #
         | 
| 16630 | 
            +
                #   # This example makes the snapshot ``snap-1234567890abcdef0`` public.
         | 
| 16631 | 
            +
                #
         | 
| 16632 | 
            +
                #   resp = client.modify_snapshot_attribute({
         | 
| 16633 | 
            +
                #     attribute: "createVolumePermission", 
         | 
| 16634 | 
            +
                #     group_names: [
         | 
| 16635 | 
            +
                #       "all", 
         | 
| 16636 | 
            +
                #     ], 
         | 
| 16637 | 
            +
                #     operation_type: "add", 
         | 
| 16638 | 
            +
                #     snapshot_id: "snap-1234567890abcdef0", 
         | 
| 16639 | 
            +
                #   })
         | 
| 16640 | 
            +
                #
         | 
| 16641 | 
            +
                #   resp.to_h outputs the following:
         | 
| 16642 | 
            +
                #   {
         | 
| 16643 | 
            +
                #   }
         | 
| 16644 | 
            +
                #
         | 
| 14164 16645 | 
             
                # @example Request syntax with placeholder values
         | 
| 14165 16646 | 
             
                #
         | 
| 14166 16647 | 
             
                #   resp = client.modify_snapshot_attribute({
         | 
| @@ -14234,6 +16715,36 @@ module Aws::EC2 | |
| 14234 16715 | 
             
                #
         | 
| 14235 16716 | 
             
                #   * {Types::ModifySpotFleetRequestResponse#return #return} => Boolean
         | 
| 14236 16717 | 
             
                #
         | 
| 16718 | 
            +
                #
         | 
| 16719 | 
            +
                # @example Example: To increase the target capacity of a Spot fleet request
         | 
| 16720 | 
            +
                #
         | 
| 16721 | 
            +
                #   # This example increases the target capacity of the specified Spot fleet request.
         | 
| 16722 | 
            +
                #
         | 
| 16723 | 
            +
                #   resp = client.modify_spot_fleet_request({
         | 
| 16724 | 
            +
                #     spot_fleet_request_id: "sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE", 
         | 
| 16725 | 
            +
                #     target_capacity: 20, 
         | 
| 16726 | 
            +
                #   })
         | 
| 16727 | 
            +
                #
         | 
| 16728 | 
            +
                #   resp.to_h outputs the following:
         | 
| 16729 | 
            +
                #   {
         | 
| 16730 | 
            +
                #     return: true, 
         | 
| 16731 | 
            +
                #   }
         | 
| 16732 | 
            +
                #
         | 
| 16733 | 
            +
                # @example Example: To decrease the target capacity of a Spot fleet request
         | 
| 16734 | 
            +
                #
         | 
| 16735 | 
            +
                #   # This example decreases the target capacity of the specified Spot fleet request without terminating any Spot Instances as a result.
         | 
| 16736 | 
            +
                #
         | 
| 16737 | 
            +
                #   resp = client.modify_spot_fleet_request({
         | 
| 16738 | 
            +
                #     excess_capacity_termination_policy: "NoTermination ", 
         | 
| 16739 | 
            +
                #     spot_fleet_request_id: "sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE", 
         | 
| 16740 | 
            +
                #     target_capacity: 10, 
         | 
| 16741 | 
            +
                #   })
         | 
| 16742 | 
            +
                #
         | 
| 16743 | 
            +
                #   resp.to_h outputs the following:
         | 
| 16744 | 
            +
                #   {
         | 
| 16745 | 
            +
                #     return: true, 
         | 
| 16746 | 
            +
                #   }
         | 
| 16747 | 
            +
                #
         | 
| 14237 16748 | 
             
                # @example Request syntax with placeholder values
         | 
| 14238 16749 | 
             
                #
         | 
| 14239 16750 | 
             
                #   resp = client.modify_spot_fleet_request({
         | 
| @@ -14280,6 +16791,18 @@ module Aws::EC2 | |
| 14280 16791 | 
             
                #
         | 
| 14281 16792 | 
             
                # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
         | 
| 14282 16793 | 
             
                #
         | 
| 16794 | 
            +
                #
         | 
| 16795 | 
            +
                # @example Example: To change a subnet's public IP addressing behavior
         | 
| 16796 | 
            +
                #
         | 
| 16797 | 
            +
                #   # This example modifies the specified subnet so that all instances launched into this subnet are assigned a public IP address.
         | 
| 16798 | 
            +
                #
         | 
| 16799 | 
            +
                #   resp = client.modify_subnet_attribute({
         | 
| 16800 | 
            +
                #     map_public_ip_on_launch: {
         | 
| 16801 | 
            +
                #       value: true, 
         | 
| 16802 | 
            +
                #     }, 
         | 
| 16803 | 
            +
                #     subnet_id: "subnet-1a2b3c4d", 
         | 
| 16804 | 
            +
                #   })
         | 
| 16805 | 
            +
                #
         | 
| 14283 16806 | 
             
                # @example Request syntax with placeholder values
         | 
| 14284 16807 | 
             
                #
         | 
| 14285 16808 | 
             
                #   resp = client.modify_subnet_attribute({
         | 
| @@ -14457,6 +16980,23 @@ module Aws::EC2 | |
| 14457 16980 | 
             
                #
         | 
| 14458 16981 | 
             
                # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
         | 
| 14459 16982 | 
             
                #
         | 
| 16983 | 
            +
                #
         | 
| 16984 | 
            +
                # @example Example: To modify a volume attribute
         | 
| 16985 | 
            +
                #
         | 
| 16986 | 
            +
                #   # This example sets the ``autoEnableIo`` attribute of the volume with the ID ``vol-1234567890abcdef0`` to ``true``. If the command succeeds, no output is returned.
         | 
| 16987 | 
            +
                #
         | 
| 16988 | 
            +
                #   resp = client.modify_volume_attribute({
         | 
| 16989 | 
            +
                #     auto_enable_io: {
         | 
| 16990 | 
            +
                #       value: true, 
         | 
| 16991 | 
            +
                #     }, 
         | 
| 16992 | 
            +
                #     dry_run: true, 
         | 
| 16993 | 
            +
                #     volume_id: "vol-1234567890abcdef0", 
         | 
| 16994 | 
            +
                #   })
         | 
| 16995 | 
            +
                #
         | 
| 16996 | 
            +
                #   resp.to_h outputs the following:
         | 
| 16997 | 
            +
                #   {
         | 
| 16998 | 
            +
                #   }
         | 
| 16999 | 
            +
                #
         | 
| 14460 17000 | 
             
                # @example Request syntax with placeholder values
         | 
| 14461 17001 | 
             
                #
         | 
| 14462 17002 | 
             
                #   resp = client.modify_volume_attribute({
         | 
| @@ -14503,6 +17043,29 @@ module Aws::EC2 | |
| 14503 17043 | 
             
                #
         | 
| 14504 17044 | 
             
                # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
         | 
| 14505 17045 | 
             
                #
         | 
| 17046 | 
            +
                #
         | 
| 17047 | 
            +
                # @example Example: To modify the enableDnsSupport attribute
         | 
| 17048 | 
            +
                #
         | 
| 17049 | 
            +
                #   # This example modifies the enableDnsSupport attribute. This attribute indicates whether DNS resolution is enabled for the VPC. If this attribute is true, the Amazon DNS server resolves DNS hostnames for instances in the VPC to their corresponding IP addresses; otherwise, it does not.
         | 
| 17050 | 
            +
                #
         | 
| 17051 | 
            +
                #   resp = client.modify_vpc_attribute({
         | 
| 17052 | 
            +
                #     enable_dns_support: {
         | 
| 17053 | 
            +
                #       value: false, 
         | 
| 17054 | 
            +
                #     }, 
         | 
| 17055 | 
            +
                #     vpc_id: "vpc-a01106c2", 
         | 
| 17056 | 
            +
                #   })
         | 
| 17057 | 
            +
                #
         | 
| 17058 | 
            +
                # @example Example: To modify the enableDnsHostnames attribute
         | 
| 17059 | 
            +
                #
         | 
| 17060 | 
            +
                #   # This example modifies the enableDnsHostnames attribute. This attribute indicates whether instances launched in the VPC get DNS hostnames. If this attribute is true, instances in the VPC get DNS hostnames; otherwise, they do not.
         | 
| 17061 | 
            +
                #
         | 
| 17062 | 
            +
                #   resp = client.modify_vpc_attribute({
         | 
| 17063 | 
            +
                #     enable_dns_hostnames: {
         | 
| 17064 | 
            +
                #       value: false, 
         | 
| 17065 | 
            +
                #     }, 
         | 
| 17066 | 
            +
                #     vpc_id: "vpc-a01106c2", 
         | 
| 17067 | 
            +
                #   })
         | 
| 17068 | 
            +
                #
         | 
| 14506 17069 | 
             
                # @example Request syntax with placeholder values
         | 
| 14507 17070 | 
             
                #
         | 
| 14508 17071 | 
             
                #   resp = client.modify_vpc_attribute({
         | 
| @@ -14725,6 +17288,20 @@ module Aws::EC2 | |
| 14725 17288 | 
             
                #   * {Types::MoveAddressToVpcResult#allocation_id #allocation_id} => String
         | 
| 14726 17289 | 
             
                #   * {Types::MoveAddressToVpcResult#status #status} => String
         | 
| 14727 17290 | 
             
                #
         | 
| 17291 | 
            +
                #
         | 
| 17292 | 
            +
                # @example Example: To move an address to EC2-VPC
         | 
| 17293 | 
            +
                #
         | 
| 17294 | 
            +
                #   # This example moves the specified Elastic IP address to the EC2-VPC platform.
         | 
| 17295 | 
            +
                #
         | 
| 17296 | 
            +
                #   resp = client.move_address_to_vpc({
         | 
| 17297 | 
            +
                #     public_ip: "54.123.4.56", 
         | 
| 17298 | 
            +
                #   })
         | 
| 17299 | 
            +
                #
         | 
| 17300 | 
            +
                #   resp.to_h outputs the following:
         | 
| 17301 | 
            +
                #   {
         | 
| 17302 | 
            +
                #     status: "MoveInProgress", 
         | 
| 17303 | 
            +
                #   }
         | 
| 17304 | 
            +
                #
         | 
| 14728 17305 | 
             
                # @example Request syntax with placeholder values
         | 
| 14729 17306 | 
             
                #
         | 
| 14730 17307 | 
             
                #   resp = client.move_address_to_vpc({
         | 
| @@ -14925,6 +17502,50 @@ module Aws::EC2 | |
| 14925 17502 | 
             
                #
         | 
| 14926 17503 | 
             
                #   * {Types::PurchaseScheduledInstancesResult#scheduled_instance_set #scheduled_instance_set} => Array<Types::ScheduledInstance>
         | 
| 14927 17504 | 
             
                #
         | 
| 17505 | 
            +
                #
         | 
| 17506 | 
            +
                # @example Example: To purchase a Scheduled Instance
         | 
| 17507 | 
            +
                #
         | 
| 17508 | 
            +
                #   # This example purchases a Scheduled Instance.
         | 
| 17509 | 
            +
                #
         | 
| 17510 | 
            +
                #   resp = client.purchase_scheduled_instances({
         | 
| 17511 | 
            +
                #     purchase_requests: [
         | 
| 17512 | 
            +
                #       {
         | 
| 17513 | 
            +
                #         instance_count: 1, 
         | 
| 17514 | 
            +
                #         purchase_token: "eyJ2IjoiMSIsInMiOjEsImMiOi...", 
         | 
| 17515 | 
            +
                #       }, 
         | 
| 17516 | 
            +
                #     ], 
         | 
| 17517 | 
            +
                #   })
         | 
| 17518 | 
            +
                #
         | 
| 17519 | 
            +
                #   resp.to_h outputs the following:
         | 
| 17520 | 
            +
                #   {
         | 
| 17521 | 
            +
                #     scheduled_instance_set: [
         | 
| 17522 | 
            +
                #       {
         | 
| 17523 | 
            +
                #         availability_zone: "us-west-2b", 
         | 
| 17524 | 
            +
                #         create_date: Time.parse("2016-01-25T21:43:38.612Z"), 
         | 
| 17525 | 
            +
                #         hourly_price: "0.095", 
         | 
| 17526 | 
            +
                #         instance_count: 1, 
         | 
| 17527 | 
            +
                #         instance_type: "c4.large", 
         | 
| 17528 | 
            +
                #         network_platform: "EC2-VPC", 
         | 
| 17529 | 
            +
                #         next_slot_start_time: Time.parse("2016-01-31T09:00:00Z"), 
         | 
| 17530 | 
            +
                #         platform: "Linux/UNIX", 
         | 
| 17531 | 
            +
                #         recurrence: {
         | 
| 17532 | 
            +
                #           frequency: "Weekly", 
         | 
| 17533 | 
            +
                #           interval: 1, 
         | 
| 17534 | 
            +
                #           occurrence_day_set: [
         | 
| 17535 | 
            +
                #             1, 
         | 
| 17536 | 
            +
                #           ], 
         | 
| 17537 | 
            +
                #           occurrence_relative_to_end: false, 
         | 
| 17538 | 
            +
                #           occurrence_unit: "", 
         | 
| 17539 | 
            +
                #         }, 
         | 
| 17540 | 
            +
                #         scheduled_instance_id: "sci-1234-1234-1234-1234-123456789012", 
         | 
| 17541 | 
            +
                #         slot_duration_in_hours: 32, 
         | 
| 17542 | 
            +
                #         term_end_date: Time.parse("2017-01-31T09:00:00Z"), 
         | 
| 17543 | 
            +
                #         term_start_date: Time.parse("2016-01-31T09:00:00Z"), 
         | 
| 17544 | 
            +
                #         total_scheduled_instance_hours: 1696, 
         | 
| 17545 | 
            +
                #       }, 
         | 
| 17546 | 
            +
                #     ], 
         | 
| 17547 | 
            +
                #   }
         | 
| 17548 | 
            +
                #
         | 
| 14928 17549 | 
             
                # @example Request syntax with placeholder values
         | 
| 14929 17550 | 
             
                #
         | 
| 14930 17551 | 
             
                #   resp = client.purchase_scheduled_instances({
         | 
| @@ -15238,6 +17859,23 @@ module Aws::EC2 | |
| 15238 17859 | 
             
                #
         | 
| 15239 17860 | 
             
                # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
         | 
| 15240 17861 | 
             
                #
         | 
| 17862 | 
            +
                #
         | 
| 17863 | 
            +
                # @example Example: To release an Elastic IP address for EC2-VPC
         | 
| 17864 | 
            +
                #
         | 
| 17865 | 
            +
                #   # This example releases an Elastic IP address for use with instances in a VPC.
         | 
| 17866 | 
            +
                #
         | 
| 17867 | 
            +
                #   resp = client.release_address({
         | 
| 17868 | 
            +
                #     allocation_id: "eipalloc-64d5890a", 
         | 
| 17869 | 
            +
                #   })
         | 
| 17870 | 
            +
                #
         | 
| 17871 | 
            +
                # @example Example: To release an Elastic IP addresses for EC2-Classic
         | 
| 17872 | 
            +
                #
         | 
| 17873 | 
            +
                #   # This example releases an Elastic IP address for use with instances in EC2-Classic.
         | 
| 17874 | 
            +
                #
         | 
| 17875 | 
            +
                #   resp = client.release_address({
         | 
| 17876 | 
            +
                #     public_ip: "198.51.100.0", 
         | 
| 17877 | 
            +
                #   })
         | 
| 17878 | 
            +
                #
         | 
| 15241 17879 | 
             
                # @example Request syntax with placeholder values
         | 
| 15242 17880 | 
             
                #
         | 
| 15243 17881 | 
             
                #   resp = client.release_address({
         | 
| @@ -15372,6 +18010,21 @@ module Aws::EC2 | |
| 15372 18010 | 
             
                #
         | 
| 15373 18011 | 
             
                #   * {Types::ReplaceNetworkAclAssociationResult#new_association_id #new_association_id} => String
         | 
| 15374 18012 | 
             
                #
         | 
| 18013 | 
            +
                #
         | 
| 18014 | 
            +
                # @example Example: To replace the network ACL associated with a subnet
         | 
| 18015 | 
            +
                #
         | 
| 18016 | 
            +
                #   # This example associates the specified network ACL with the subnet for the specified network ACL association.
         | 
| 18017 | 
            +
                #
         | 
| 18018 | 
            +
                #   resp = client.replace_network_acl_association({
         | 
| 18019 | 
            +
                #     association_id: "aclassoc-e5b95c8c", 
         | 
| 18020 | 
            +
                #     network_acl_id: "acl-5fb85d36", 
         | 
| 18021 | 
            +
                #   })
         | 
| 18022 | 
            +
                #
         | 
| 18023 | 
            +
                #   resp.to_h outputs the following:
         | 
| 18024 | 
            +
                #   {
         | 
| 18025 | 
            +
                #     new_association_id: "aclassoc-3999875b", 
         | 
| 18026 | 
            +
                #   }
         | 
| 18027 | 
            +
                #
         | 
| 15375 18028 | 
             
                # @example Request syntax with placeholder values
         | 
| 15376 18029 | 
             
                #
         | 
| 15377 18030 | 
             
                #   resp = client.replace_network_acl_association({
         | 
| @@ -15450,6 +18103,24 @@ module Aws::EC2 | |
| 15450 18103 | 
             
                #
         | 
| 15451 18104 | 
             
                # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
         | 
| 15452 18105 | 
             
                #
         | 
| 18106 | 
            +
                #
         | 
| 18107 | 
            +
                # @example Example: To replace a network ACL entry
         | 
| 18108 | 
            +
                #
         | 
| 18109 | 
            +
                #   # This example replaces an entry for the specified network ACL. The new rule 100 allows ingress traffic from 203.0.113.12/24 on UDP port 53 (DNS) into any associated subnet.
         | 
| 18110 | 
            +
                #
         | 
| 18111 | 
            +
                #   resp = client.replace_network_acl_entry({
         | 
| 18112 | 
            +
                #     cidr_block: "203.0.113.12/24", 
         | 
| 18113 | 
            +
                #     egress: false, 
         | 
| 18114 | 
            +
                #     network_acl_id: "acl-5fb85d36", 
         | 
| 18115 | 
            +
                #     port_range: {
         | 
| 18116 | 
            +
                #       from: 53, 
         | 
| 18117 | 
            +
                #       to: 53, 
         | 
| 18118 | 
            +
                #     }, 
         | 
| 18119 | 
            +
                #     protocol: "udp", 
         | 
| 18120 | 
            +
                #     rule_action: "allow", 
         | 
| 18121 | 
            +
                #     rule_number: 100, 
         | 
| 18122 | 
            +
                #   })
         | 
| 18123 | 
            +
                #
         | 
| 15453 18124 | 
             
                # @example Request syntax with placeholder values
         | 
| 15454 18125 | 
             
                #
         | 
| 15455 18126 | 
             
                #   resp = client.replace_network_acl_entry({
         | 
| @@ -15529,6 +18200,17 @@ module Aws::EC2 | |
| 15529 18200 | 
             
                #
         | 
| 15530 18201 | 
             
                # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
         | 
| 15531 18202 | 
             
                #
         | 
| 18203 | 
            +
                #
         | 
| 18204 | 
            +
                # @example Example: To replace a route
         | 
| 18205 | 
            +
                #
         | 
| 18206 | 
            +
                #   # This example replaces the specified route in the specified table table. The new route matches the specified CIDR and sends the traffic to the specified virtual private gateway.
         | 
| 18207 | 
            +
                #
         | 
| 18208 | 
            +
                #   resp = client.replace_route({
         | 
| 18209 | 
            +
                #     destination_cidr_block: "10.0.0.0/16", 
         | 
| 18210 | 
            +
                #     gateway_id: "vgw-9a4cacf3", 
         | 
| 18211 | 
            +
                #     route_table_id: "rtb-22574640", 
         | 
| 18212 | 
            +
                #   })
         | 
| 18213 | 
            +
                #
         | 
| 15532 18214 | 
             
                # @example Request syntax with placeholder values
         | 
| 15533 18215 | 
             
                #
         | 
| 15534 18216 | 
             
                #   resp = client.replace_route({
         | 
| @@ -15584,6 +18266,21 @@ module Aws::EC2 | |
| 15584 18266 | 
             
                #
         | 
| 15585 18267 | 
             
                #   * {Types::ReplaceRouteTableAssociationResult#new_association_id #new_association_id} => String
         | 
| 15586 18268 | 
             
                #
         | 
| 18269 | 
            +
                #
         | 
| 18270 | 
            +
                # @example Example: To replace the route table associated with a subnet
         | 
| 18271 | 
            +
                #
         | 
| 18272 | 
            +
                #   # This example associates the specified route table with the subnet for the specified route table association.
         | 
| 18273 | 
            +
                #
         | 
| 18274 | 
            +
                #   resp = client.replace_route_table_association({
         | 
| 18275 | 
            +
                #     association_id: "rtbassoc-781d0d1a", 
         | 
| 18276 | 
            +
                #     route_table_id: "rtb-22574640", 
         | 
| 18277 | 
            +
                #   })
         | 
| 18278 | 
            +
                #
         | 
| 18279 | 
            +
                #   resp.to_h outputs the following:
         | 
| 18280 | 
            +
                #   {
         | 
| 18281 | 
            +
                #     new_association_id: "rtbassoc-3a1f0f58", 
         | 
| 18282 | 
            +
                #   }
         | 
| 18283 | 
            +
                #
         | 
| 15587 18284 | 
             
                # @example Request syntax with placeholder values
         | 
| 15588 18285 | 
             
                #
         | 
| 15589 18286 | 
             
                #   resp = client.replace_route_table_association({
         | 
| @@ -15725,6 +18422,147 @@ module Aws::EC2 | |
| 15725 18422 | 
             
                #
         | 
| 15726 18423 | 
             
                #   * {Types::RequestSpotFleetResponse#spot_fleet_request_id #spot_fleet_request_id} => String
         | 
| 15727 18424 | 
             
                #
         | 
| 18425 | 
            +
                #
         | 
| 18426 | 
            +
                # @example Example: To request a Spot fleet in the subnet with the lowest price
         | 
| 18427 | 
            +
                #
         | 
| 18428 | 
            +
                #   # This example creates a Spot fleet request with two launch specifications that differ only by subnet. The Spot fleet launches the instances in the specified subnet with the lowest price. If the instances are launched in a default VPC, they receive a public IP address by default. If the instances are launched in a nondefault VPC, they do not receive a public IP address by default. Note that you can't specify different subnets from the same Availability Zone in a Spot fleet request.
         | 
| 18429 | 
            +
                #
         | 
| 18430 | 
            +
                #   resp = client.request_spot_fleet({
         | 
| 18431 | 
            +
                #     spot_fleet_request_config: {
         | 
| 18432 | 
            +
                #       iam_fleet_role: "arn:aws:iam::123456789012:role/my-spot-fleet-role", 
         | 
| 18433 | 
            +
                #       launch_specifications: [
         | 
| 18434 | 
            +
                #         {
         | 
| 18435 | 
            +
                #           iam_instance_profile: {
         | 
| 18436 | 
            +
                #             arn: "arn:aws:iam::123456789012:instance-profile/my-iam-role", 
         | 
| 18437 | 
            +
                #           }, 
         | 
| 18438 | 
            +
                #           image_id: "ami-1a2b3c4d", 
         | 
| 18439 | 
            +
                #           instance_type: "m3.medium", 
         | 
| 18440 | 
            +
                #           key_name: "my-key-pair", 
         | 
| 18441 | 
            +
                #           security_groups: [
         | 
| 18442 | 
            +
                #             {
         | 
| 18443 | 
            +
                #               group_id: "sg-1a2b3c4d", 
         | 
| 18444 | 
            +
                #             }, 
         | 
| 18445 | 
            +
                #           ], 
         | 
| 18446 | 
            +
                #           subnet_id: "subnet-1a2b3c4d, subnet-3c4d5e6f", 
         | 
| 18447 | 
            +
                #         }, 
         | 
| 18448 | 
            +
                #       ], 
         | 
| 18449 | 
            +
                #       spot_price: "0.04", 
         | 
| 18450 | 
            +
                #       target_capacity: 2, 
         | 
| 18451 | 
            +
                #     }, 
         | 
| 18452 | 
            +
                #   })
         | 
| 18453 | 
            +
                #
         | 
| 18454 | 
            +
                #   resp.to_h outputs the following:
         | 
| 18455 | 
            +
                #   {
         | 
| 18456 | 
            +
                #     spot_fleet_request_id: "sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE", 
         | 
| 18457 | 
            +
                #   }
         | 
| 18458 | 
            +
                #
         | 
| 18459 | 
            +
                # @example Example: To request a Spot fleet in the Availability Zone with the lowest price
         | 
| 18460 | 
            +
                #
         | 
| 18461 | 
            +
                #   # This example creates a Spot fleet request with two launch specifications that differ only by Availability Zone. The Spot fleet launches the instances in the specified Availability Zone with the lowest price. If your account supports EC2-VPC only, Amazon EC2 launches the Spot instances in the default subnet of the Availability Zone. If your account supports EC2-Classic, Amazon EC2 launches the instances in EC2-Classic in the Availability Zone.
         | 
| 18462 | 
            +
                #
         | 
| 18463 | 
            +
                #   resp = client.request_spot_fleet({
         | 
| 18464 | 
            +
                #     spot_fleet_request_config: {
         | 
| 18465 | 
            +
                #       iam_fleet_role: "arn:aws:iam::123456789012:role/my-spot-fleet-role", 
         | 
| 18466 | 
            +
                #       launch_specifications: [
         | 
| 18467 | 
            +
                #         {
         | 
| 18468 | 
            +
                #           iam_instance_profile: {
         | 
| 18469 | 
            +
                #             arn: "arn:aws:iam::123456789012:instance-profile/my-iam-role", 
         | 
| 18470 | 
            +
                #           }, 
         | 
| 18471 | 
            +
                #           image_id: "ami-1a2b3c4d", 
         | 
| 18472 | 
            +
                #           instance_type: "m3.medium", 
         | 
| 18473 | 
            +
                #           key_name: "my-key-pair", 
         | 
| 18474 | 
            +
                #           placement: {
         | 
| 18475 | 
            +
                #             availability_zone: "us-west-2a, us-west-2b", 
         | 
| 18476 | 
            +
                #           }, 
         | 
| 18477 | 
            +
                #           security_groups: [
         | 
| 18478 | 
            +
                #             {
         | 
| 18479 | 
            +
                #               group_id: "sg-1a2b3c4d", 
         | 
| 18480 | 
            +
                #             }, 
         | 
| 18481 | 
            +
                #           ], 
         | 
| 18482 | 
            +
                #         }, 
         | 
| 18483 | 
            +
                #       ], 
         | 
| 18484 | 
            +
                #       spot_price: "0.04", 
         | 
| 18485 | 
            +
                #       target_capacity: 2, 
         | 
| 18486 | 
            +
                #     }, 
         | 
| 18487 | 
            +
                #   })
         | 
| 18488 | 
            +
                #
         | 
| 18489 | 
            +
                #   resp.to_h outputs the following:
         | 
| 18490 | 
            +
                #   {
         | 
| 18491 | 
            +
                #     spot_fleet_request_id: "sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE", 
         | 
| 18492 | 
            +
                #   }
         | 
| 18493 | 
            +
                #
         | 
| 18494 | 
            +
                # @example Example: To launch Spot instances in a subnet and assign them public IP addresses
         | 
| 18495 | 
            +
                #
         | 
| 18496 | 
            +
                #   # This example assigns public addresses to instances launched in a nondefault VPC. Note that when you specify a network interface, you must include the subnet ID and security group ID using the network interface.
         | 
| 18497 | 
            +
                #
         | 
| 18498 | 
            +
                #   resp = client.request_spot_fleet({
         | 
| 18499 | 
            +
                #     spot_fleet_request_config: {
         | 
| 18500 | 
            +
                #       iam_fleet_role: "arn:aws:iam::123456789012:role/my-spot-fleet-role", 
         | 
| 18501 | 
            +
                #       launch_specifications: [
         | 
| 18502 | 
            +
                #         {
         | 
| 18503 | 
            +
                #           iam_instance_profile: {
         | 
| 18504 | 
            +
                #             arn: "arn:aws:iam::880185128111:instance-profile/my-iam-role", 
         | 
| 18505 | 
            +
                #           }, 
         | 
| 18506 | 
            +
                #           image_id: "ami-1a2b3c4d", 
         | 
| 18507 | 
            +
                #           instance_type: "m3.medium", 
         | 
| 18508 | 
            +
                #           key_name: "my-key-pair", 
         | 
| 18509 | 
            +
                #           network_interfaces: [
         | 
| 18510 | 
            +
                #             {
         | 
| 18511 | 
            +
                #               associate_public_ip_address: true, 
         | 
| 18512 | 
            +
                #               device_index: 0, 
         | 
| 18513 | 
            +
                #               groups: [
         | 
| 18514 | 
            +
                #                 "sg-1a2b3c4d", 
         | 
| 18515 | 
            +
                #               ], 
         | 
| 18516 | 
            +
                #               subnet_id: "subnet-1a2b3c4d", 
         | 
| 18517 | 
            +
                #             }, 
         | 
| 18518 | 
            +
                #           ], 
         | 
| 18519 | 
            +
                #         }, 
         | 
| 18520 | 
            +
                #       ], 
         | 
| 18521 | 
            +
                #       spot_price: "0.04", 
         | 
| 18522 | 
            +
                #       target_capacity: 2, 
         | 
| 18523 | 
            +
                #     }, 
         | 
| 18524 | 
            +
                #   })
         | 
| 18525 | 
            +
                #
         | 
| 18526 | 
            +
                #   resp.to_h outputs the following:
         | 
| 18527 | 
            +
                #   {
         | 
| 18528 | 
            +
                #     spot_fleet_request_id: "sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE", 
         | 
| 18529 | 
            +
                #   }
         | 
| 18530 | 
            +
                #
         | 
| 18531 | 
            +
                # @example Example: To request a Spot fleet using the diversified allocation strategy
         | 
| 18532 | 
            +
                #
         | 
| 18533 | 
            +
                #   # This example creates a Spot fleet request that launches 30 instances using the diversified allocation strategy. The launch specifications differ by instance type. The Spot fleet distributes the instances across the launch specifications such that there are 10 instances of each type.
         | 
| 18534 | 
            +
                #
         | 
| 18535 | 
            +
                #   resp = client.request_spot_fleet({
         | 
| 18536 | 
            +
                #     spot_fleet_request_config: {
         | 
| 18537 | 
            +
                #       allocation_strategy: "diversified", 
         | 
| 18538 | 
            +
                #       iam_fleet_role: "arn:aws:iam::123456789012:role/my-spot-fleet-role", 
         | 
| 18539 | 
            +
                #       launch_specifications: [
         | 
| 18540 | 
            +
                #         {
         | 
| 18541 | 
            +
                #           image_id: "ami-1a2b3c4d", 
         | 
| 18542 | 
            +
                #           instance_type: "c4.2xlarge", 
         | 
| 18543 | 
            +
                #           subnet_id: "subnet-1a2b3c4d", 
         | 
| 18544 | 
            +
                #         }, 
         | 
| 18545 | 
            +
                #         {
         | 
| 18546 | 
            +
                #           image_id: "ami-1a2b3c4d", 
         | 
| 18547 | 
            +
                #           instance_type: "m3.2xlarge", 
         | 
| 18548 | 
            +
                #           subnet_id: "subnet-1a2b3c4d", 
         | 
| 18549 | 
            +
                #         }, 
         | 
| 18550 | 
            +
                #         {
         | 
| 18551 | 
            +
                #           image_id: "ami-1a2b3c4d", 
         | 
| 18552 | 
            +
                #           instance_type: "r3.2xlarge", 
         | 
| 18553 | 
            +
                #           subnet_id: "subnet-1a2b3c4d", 
         | 
| 18554 | 
            +
                #         }, 
         | 
| 18555 | 
            +
                #       ], 
         | 
| 18556 | 
            +
                #       spot_price: "0.70", 
         | 
| 18557 | 
            +
                #       target_capacity: 30, 
         | 
| 18558 | 
            +
                #     }, 
         | 
| 18559 | 
            +
                #   })
         | 
| 18560 | 
            +
                #
         | 
| 18561 | 
            +
                #   resp.to_h outputs the following:
         | 
| 18562 | 
            +
                #   {
         | 
| 18563 | 
            +
                #     spot_fleet_request_id: "sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE", 
         | 
| 18564 | 
            +
                #   }
         | 
| 18565 | 
            +
                #
         | 
| 15728 18566 | 
             
                # @example Request syntax with placeholder values
         | 
| 15729 18567 | 
             
                #
         | 
| 15730 18568 | 
             
                #   resp = client.request_spot_fleet({
         | 
| @@ -15938,6 +18776,52 @@ module Aws::EC2 | |
| 15938 18776 | 
             
                #
         | 
| 15939 18777 | 
             
                #   * {Types::RequestSpotInstancesResult#spot_instance_requests #spot_instance_requests} => Array<Types::SpotInstanceRequest>
         | 
| 15940 18778 | 
             
                #
         | 
| 18779 | 
            +
                #
         | 
| 18780 | 
            +
                # @example Example: To create a one-time Spot Instance request
         | 
| 18781 | 
            +
                #
         | 
| 18782 | 
            +
                #   # This example creates a one-time Spot Instance request for five instances in the specified Availability Zone. If your account supports EC2-VPC only, Amazon EC2 launches the instances in the default subnet of the specified Availability Zone. If your account supports EC2-Classic, Amazon EC2 launches the instances in EC2-Classic in the specified Availability Zone.
         | 
| 18783 | 
            +
                #
         | 
| 18784 | 
            +
                #   resp = client.request_spot_instances({
         | 
| 18785 | 
            +
                #     instance_count: 5, 
         | 
| 18786 | 
            +
                #     launch_specification: {
         | 
| 18787 | 
            +
                #       iam_instance_profile: {
         | 
| 18788 | 
            +
                #         arn: "arn:aws:iam::123456789012:instance-profile/my-iam-role", 
         | 
| 18789 | 
            +
                #       }, 
         | 
| 18790 | 
            +
                #       image_id: "ami-1a2b3c4d", 
         | 
| 18791 | 
            +
                #       instance_type: "m3.medium", 
         | 
| 18792 | 
            +
                #       key_name: "my-key-pair", 
         | 
| 18793 | 
            +
                #       placement: {
         | 
| 18794 | 
            +
                #         availability_zone: "us-west-2a", 
         | 
| 18795 | 
            +
                #       }, 
         | 
| 18796 | 
            +
                #       security_group_ids: [
         | 
| 18797 | 
            +
                #         "sg-1a2b3c4d", 
         | 
| 18798 | 
            +
                #       ], 
         | 
| 18799 | 
            +
                #     }, 
         | 
| 18800 | 
            +
                #     spot_price: "0.03", 
         | 
| 18801 | 
            +
                #     type: "one-time", 
         | 
| 18802 | 
            +
                #   })
         | 
| 18803 | 
            +
                #
         | 
| 18804 | 
            +
                # @example Example: To create a one-time Spot Instance request
         | 
| 18805 | 
            +
                #
         | 
| 18806 | 
            +
                #   # This example command creates a one-time Spot Instance request for five instances in the specified subnet. Amazon EC2 launches the instances in the specified subnet. If the VPC is a nondefault VPC, the instances do not receive a public IP address by default.
         | 
| 18807 | 
            +
                #
         | 
| 18808 | 
            +
                #   resp = client.request_spot_instances({
         | 
| 18809 | 
            +
                #     instance_count: 5, 
         | 
| 18810 | 
            +
                #     launch_specification: {
         | 
| 18811 | 
            +
                #       iam_instance_profile: {
         | 
| 18812 | 
            +
                #         arn: "arn:aws:iam::123456789012:instance-profile/my-iam-role", 
         | 
| 18813 | 
            +
                #       }, 
         | 
| 18814 | 
            +
                #       image_id: "ami-1a2b3c4d", 
         | 
| 18815 | 
            +
                #       instance_type: "m3.medium", 
         | 
| 18816 | 
            +
                #       security_group_ids: [
         | 
| 18817 | 
            +
                #         "sg-1a2b3c4d", 
         | 
| 18818 | 
            +
                #       ], 
         | 
| 18819 | 
            +
                #       subnet_id: "subnet-1a2b3c4d", 
         | 
| 18820 | 
            +
                #     }, 
         | 
| 18821 | 
            +
                #     spot_price: "0.050", 
         | 
| 18822 | 
            +
                #     type: "one-time", 
         | 
| 18823 | 
            +
                #   })
         | 
| 18824 | 
            +
                #
         | 
| 15941 18825 | 
             
                # @example Request syntax with placeholder values
         | 
| 15942 18826 | 
             
                #
         | 
| 15943 18827 | 
             
                #   resp = client.request_spot_instances({
         | 
| @@ -16244,6 +19128,20 @@ module Aws::EC2 | |
| 16244 19128 | 
             
                #
         | 
| 16245 19129 | 
             
                # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
         | 
| 16246 19130 | 
             
                #
         | 
| 19131 | 
            +
                #
         | 
| 19132 | 
            +
                # @example Example: To reset a snapshot attribute
         | 
| 19133 | 
            +
                #
         | 
| 19134 | 
            +
                #   # This example resets the create volume permissions for snapshot ``snap-1234567890abcdef0``. If the command succeeds, no output is returned.
         | 
| 19135 | 
            +
                #
         | 
| 19136 | 
            +
                #   resp = client.reset_snapshot_attribute({
         | 
| 19137 | 
            +
                #     attribute: "createVolumePermission", 
         | 
| 19138 | 
            +
                #     snapshot_id: "snap-1234567890abcdef0", 
         | 
| 19139 | 
            +
                #   })
         | 
| 19140 | 
            +
                #
         | 
| 19141 | 
            +
                #   resp.to_h outputs the following:
         | 
| 19142 | 
            +
                #   {
         | 
| 19143 | 
            +
                #   }
         | 
| 19144 | 
            +
                #
         | 
| 16247 19145 | 
             
                # @example Request syntax with placeholder values
         | 
| 16248 19146 | 
             
                #
         | 
| 16249 19147 | 
             
                #   resp = client.reset_snapshot_attribute({
         | 
| @@ -16281,6 +19179,21 @@ module Aws::EC2 | |
| 16281 19179 | 
             
                #   * {Types::RestoreAddressToClassicResult#public_ip #public_ip} => String
         | 
| 16282 19180 | 
             
                #   * {Types::RestoreAddressToClassicResult#status #status} => String
         | 
| 16283 19181 | 
             
                #
         | 
| 19182 | 
            +
                #
         | 
| 19183 | 
            +
                # @example Example: To restore an address to EC2-Classic
         | 
| 19184 | 
            +
                #
         | 
| 19185 | 
            +
                #   # This example restores the specified Elastic IP address to the EC2-Classic platform.
         | 
| 19186 | 
            +
                #
         | 
| 19187 | 
            +
                #   resp = client.restore_address_to_classic({
         | 
| 19188 | 
            +
                #     public_ip: "198.51.100.0", 
         | 
| 19189 | 
            +
                #   })
         | 
| 19190 | 
            +
                #
         | 
| 19191 | 
            +
                #   resp.to_h outputs the following:
         | 
| 19192 | 
            +
                #   {
         | 
| 19193 | 
            +
                #     public_ip: "198.51.100.0", 
         | 
| 19194 | 
            +
                #     status: "MoveInProgress", 
         | 
| 19195 | 
            +
                #   }
         | 
| 19196 | 
            +
                #
         | 
| 16284 19197 | 
             
                # @example Request syntax with placeholder values
         | 
| 16285 19198 | 
             
                #
         | 
| 16286 19199 | 
             
                #   resp = client.restore_address_to_classic({
         | 
| @@ -17055,6 +19968,71 @@ module Aws::EC2 | |
| 17055 19968 | 
             
                #
         | 
| 17056 19969 | 
             
                #   * {Types::RunScheduledInstancesResult#instance_id_set #instance_id_set} => Array<String>
         | 
| 17057 19970 | 
             
                #
         | 
| 19971 | 
            +
                #
         | 
| 19972 | 
            +
                # @example Example: To launch a Scheduled Instance in a VPC
         | 
| 19973 | 
            +
                #
         | 
| 19974 | 
            +
                #   # This example launches the specified Scheduled Instance in a VPC.
         | 
| 19975 | 
            +
                #
         | 
| 19976 | 
            +
                #   resp = client.run_scheduled_instances({
         | 
| 19977 | 
            +
                #     instance_count: 1, 
         | 
| 19978 | 
            +
                #     launch_specification: {
         | 
| 19979 | 
            +
                #       iam_instance_profile: {
         | 
| 19980 | 
            +
                #         name: "my-iam-role", 
         | 
| 19981 | 
            +
                #       }, 
         | 
| 19982 | 
            +
                #       image_id: "ami-12345678", 
         | 
| 19983 | 
            +
                #       instance_type: "c4.large", 
         | 
| 19984 | 
            +
                #       key_name: "my-key-pair", 
         | 
| 19985 | 
            +
                #       network_interfaces: [
         | 
| 19986 | 
            +
                #         {
         | 
| 19987 | 
            +
                #           associate_public_ip_address: true, 
         | 
| 19988 | 
            +
                #           device_index: 0, 
         | 
| 19989 | 
            +
                #           groups: [
         | 
| 19990 | 
            +
                #             "sg-12345678", 
         | 
| 19991 | 
            +
                #           ], 
         | 
| 19992 | 
            +
                #           subnet_id: "subnet-12345678", 
         | 
| 19993 | 
            +
                #         }, 
         | 
| 19994 | 
            +
                #       ], 
         | 
| 19995 | 
            +
                #     }, 
         | 
| 19996 | 
            +
                #     scheduled_instance_id: "sci-1234-1234-1234-1234-123456789012", 
         | 
| 19997 | 
            +
                #   })
         | 
| 19998 | 
            +
                #
         | 
| 19999 | 
            +
                #   resp.to_h outputs the following:
         | 
| 20000 | 
            +
                #   {
         | 
| 20001 | 
            +
                #     instance_id_set: [
         | 
| 20002 | 
            +
                #       "i-1234567890abcdef0", 
         | 
| 20003 | 
            +
                #     ], 
         | 
| 20004 | 
            +
                #   }
         | 
| 20005 | 
            +
                #
         | 
| 20006 | 
            +
                # @example Example: To launch a Scheduled Instance in EC2-Classic
         | 
| 20007 | 
            +
                #
         | 
| 20008 | 
            +
                #   # This example launches the specified Scheduled Instance in EC2-Classic.
         | 
| 20009 | 
            +
                #
         | 
| 20010 | 
            +
                #   resp = client.run_scheduled_instances({
         | 
| 20011 | 
            +
                #     instance_count: 1, 
         | 
| 20012 | 
            +
                #     launch_specification: {
         | 
| 20013 | 
            +
                #       iam_instance_profile: {
         | 
| 20014 | 
            +
                #         name: "my-iam-role", 
         | 
| 20015 | 
            +
                #       }, 
         | 
| 20016 | 
            +
                #       image_id: "ami-12345678", 
         | 
| 20017 | 
            +
                #       instance_type: "c4.large", 
         | 
| 20018 | 
            +
                #       key_name: "my-key-pair", 
         | 
| 20019 | 
            +
                #       placement: {
         | 
| 20020 | 
            +
                #         availability_zone: "us-west-2b", 
         | 
| 20021 | 
            +
                #       }, 
         | 
| 20022 | 
            +
                #       security_group_ids: [
         | 
| 20023 | 
            +
                #         "sg-12345678", 
         | 
| 20024 | 
            +
                #       ], 
         | 
| 20025 | 
            +
                #     }, 
         | 
| 20026 | 
            +
                #     scheduled_instance_id: "sci-1234-1234-1234-1234-123456789012", 
         | 
| 20027 | 
            +
                #   })
         | 
| 20028 | 
            +
                #
         | 
| 20029 | 
            +
                #   resp.to_h outputs the following:
         | 
| 20030 | 
            +
                #   {
         | 
| 20031 | 
            +
                #     instance_id_set: [
         | 
| 20032 | 
            +
                #       "i-1234567890abcdef0", 
         | 
| 20033 | 
            +
                #     ], 
         | 
| 20034 | 
            +
                #   }
         | 
| 20035 | 
            +
                #
         | 
| 17058 20036 | 
             
                # @example Request syntax with placeholder values
         | 
| 17059 20037 | 
             
                #
         | 
| 17060 20038 | 
             
                #   resp = client.run_scheduled_instances({
         | 
| @@ -17415,6 +20393,18 @@ module Aws::EC2 | |
| 17415 20393 | 
             
                #
         | 
| 17416 20394 | 
             
                # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
         | 
| 17417 20395 | 
             
                #
         | 
| 20396 | 
            +
                #
         | 
| 20397 | 
            +
                # @example Example: To unassign a secondary private IP address from a network interface
         | 
| 20398 | 
            +
                #
         | 
| 20399 | 
            +
                #   # This example unassigns the specified private IP address from the specified network interface.
         | 
| 20400 | 
            +
                #
         | 
| 20401 | 
            +
                #   resp = client.unassign_private_ip_addresses({
         | 
| 20402 | 
            +
                #     network_interface_id: "eni-e5aa89a3", 
         | 
| 20403 | 
            +
                #     private_ip_addresses: [
         | 
| 20404 | 
            +
                #       "10.0.0.82", 
         | 
| 20405 | 
            +
                #     ], 
         | 
| 20406 | 
            +
                #   })
         | 
| 20407 | 
            +
                #
         | 
| 17418 20408 | 
             
                # @example Request syntax with placeholder values
         | 
| 17419 20409 | 
             
                #
         | 
| 17420 20410 | 
             
                #   resp = client.unassign_private_ip_addresses({
         | 
| @@ -17487,7 +20477,7 @@ module Aws::EC2 | |
| 17487 20477 | 
             
                    params: params,
         | 
| 17488 20478 | 
             
                    config: config)
         | 
| 17489 20479 | 
             
                  context[:gem_name] = 'aws-sdk-ec2'
         | 
| 17490 | 
            -
                  context[:gem_version] = '1.0.0. | 
| 20480 | 
            +
                  context[:gem_version] = '1.0.0.rc9'
         | 
| 17491 20481 | 
             
                  Seahorse::Client::Request.new(handlers, context)
         | 
| 17492 20482 | 
             
                end
         | 
| 17493 20483 |  |