def rebuild_environment(EnvironmentId=None, EnvironmentName=None):
    """
    Deletes and recreates all of the AWS resources (for example: the Auto Scaling group, load balancer, etc.) for a specified environment and forces a restart.
    See also: AWS API Documentation
    
    Examples
    The following operation terminates and recreates the resources in an environment named my-env:
    Expected Output:
    
    :example: response = client.rebuild_environment(
        EnvironmentId='string',
        EnvironmentName='string'
    )
    
    
    :type EnvironmentId: string
    :param EnvironmentId: The ID of the environment to rebuild.
            Condition: You must specify either this or an EnvironmentName, or both. If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter error.
            

    :type EnvironmentName: string
    :param EnvironmentName: The name of the environment to rebuild.
            Condition: You must specify either this or an EnvironmentId, or both. If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter error.
            

    :return: response = client.rebuild_environment(
        EnvironmentName='my-env',
    )
    
    print(response)
    
    
    """
    pass
