def test_invoke_method(restApiId=None, resourceId=None, httpMethod=None,
    pathWithQueryString=None, body=None, headers=None, clientCertificateId=
    None, stageVariables=None):
    """
    Simulate the execution of a  Method in your  RestApi with headers, parameters, and an incoming request body.
    See also: AWS API Documentation
    
    
    :example: response = client.test_invoke_method(
        restApiId='string',
        resourceId='string',
        httpMethod='string',
        pathWithQueryString='string',
        body='string',
        headers={
            'string': 'string'
        },
        clientCertificateId='string',
        stageVariables={
            'string': 'string'
        }
    )
    
    
    :type restApiId: string
    :param restApiId: [REQUIRED]
            Specifies a test invoke method request's API identifier.
            

    :type resourceId: string
    :param resourceId: [REQUIRED]
            Specifies a test invoke method request's resource ID.
            

    :type httpMethod: string
    :param httpMethod: [REQUIRED]
            Specifies a test invoke method request's HTTP method.
            

    :type pathWithQueryString: string
    :param pathWithQueryString: The URI path, including query string, of the simulated invocation request. Use this to specify path parameters and query string parameters.

    :type body: string
    :param body: The simulated request body of an incoming invocation request.

    :type headers: dict
    :param headers: A key-value map of headers to simulate an incoming invocation request.
            (string) --
            (string) --
            

    :type clientCertificateId: string
    :param clientCertificateId: A ClientCertificate identifier to use in the test invocation. API Gateway will use the certificate when making the HTTPS request to the defined back-end endpoint.

    :type stageVariables: dict
    :param stageVariables: A key-value map of stage variables to simulate an invocation on a deployed Stage .
            (string) --
            (string) --
            

    :rtype: dict
    :return: {
        'status': 123,
        'body': 'string',
        'headers': {
            'string': 'string'
        },
        'log': 'string',
        'latency': 123
    }
    
    
    :returns: 
    (string) --
    (string) --
    
    
    
    """
    pass
