def attach_network_interface(DryRun=None, NetworkInterfaceId=None,
    InstanceId=None, DeviceIndex=None):
    """
    Attaches a network interface to an instance.
    See also: AWS API Documentation
    
    Examples
    This example attaches the specified network interface to the specified instance.
    Expected Output:
    
    :example: response = client.attach_network_interface(
        DryRun=True|False,
        NetworkInterfaceId='string',
        InstanceId='string',
        DeviceIndex=123
    )
    
    
    :type DryRun: boolean
    :param DryRun: Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation . Otherwise, it is UnauthorizedOperation .

    :type NetworkInterfaceId: string
    :param NetworkInterfaceId: [REQUIRED]
            The ID of the network interface.
            

    :type InstanceId: string
    :param InstanceId: [REQUIRED]
            The ID of the instance.
            

    :type DeviceIndex: integer
    :param DeviceIndex: [REQUIRED]
            The index of the device for the network interface attachment.
            

    :rtype: dict
    :return: {
        'AttachmentId': 'string'
    }
    
    
    """
    pass
